What is {seat} of {KGB}, that has {has states} is {Golyanovo District} ?
With states of the Golyanovo Area, what is the situate of the KGB?
With states of the Golyanovo District, what is the seat of the KGB?
SELECT ?f WHERE { resource:KGB property:headquarters_location ?f . ?f property:contains_administrative_territorial_entity resource:Golyanovo_District }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q80919> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P159>. ?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/Q2365753> . }
SELECT ?answer WHERE { wd:Q80919 wdt:P159 ?answer . ?answer wdt:P150 wd:Q2365753}
Moscow