What is the {continent} for {located on terrain feature} of {Melanesia}
What landmass is Melanesia found on?
What continent is Melanesia located on?
SELECT DISTINCT ?d WHERE { resource:Melanesia property:located_on_terrain_feature ?d . ?d rdf:type ontology:continent }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q37394> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P706> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q5107> } 
 select distinct ?obj where { wd:Q37394 wdt:P706 ?obj . ?obj wdt:P31 wd:Q5107 } 
Oceania