What is {based in} of {Goyang}, that has {has wards} is {Gimpo} ?
What wards in Gimpo are part of Goyang?
What parts of Goyang have wards in Gimpo?
SELECT ?a WHERE { resource:Goyang property:located_in_the_administrative_territorial_entity ?a . ?a property:contains_administrative_territorial_entity resource:Gimpo }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q42061> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P131>. ?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/Q42080> . }
SELECT ?answer WHERE { wd:Q42061 wdt:P131 ?answer . ?answer wdt:P150 wd:Q42080}
Gyeonggi Province