What is {continent} of {West Antarctica}, that has {has boroughs} is {Heard Island and McDonald Islands} ?
"What is the {continent} of {West Antarctica}, that {has boroughs} named {Heard Island and McDonald Islands} ?"
"What is the {continent} of {West Antarctica}, that {has boroughs} named {Heard Island and McDonald Islands} ?"
SELECT ?w WHERE { resource:West_Antarctica property:continent ?w . ?w property:contains_administrative_territorial_entity resource:Heard_Island_and_McDonald_Islands }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q530917> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P30>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P150> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q131198> . }
SELECT ?answer WHERE { wd:Q530917 wdt:P30 ?answer . ?answer wdt:P150 wd:Q131198}
Antarctica