What is {headquarters location} of {National Museum} that is {location} is {Main building of National Museum in Prague} ?
Where is Prague's national museum headquartered?
Where is the headquarters of the national museum of Prague?
SELECT ?t WHERE { resource:National_Museum_(Prague) property:headquarters_location ?p . ?p property:location resource:Main_building_of_National_Museum_in_Prague . ?p property:headquarters_location ?t }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q188112> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P159> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P276> <http://wikidata.dbpedia.org/resource/Q43755714>
} 

SELECT ?obj WHERE { wd:Q188112 p:P159 ?s . ?s ps:P159 ?obj . ?s pq:P276 wd:Q43755714 }