What is {administrative centre of} of {administrative centre} of {Kingdom of Galicia–Volhynia} ?
Galicia-Volhynia is the administrative centre of which Kingdom?
Which administrative centre of Kingdom of Galicia–Volhynia ?
SELECT ?q WHERE { resource:Kingdom_of_Galicia–Volhynia property:capital ?c . ?c property:capital_of ?q }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q239502> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P36>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1376> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q239502 wdt:P36 ?X . ?X wdt:P1376 ?answer}
Kingdom of Galicia–Volhynia Volodymyr-Volynskyi Raion Volodymyr-Volynsky Uyezd Volodymyr-Volynskyi Raion Lviv Oblast Kingdom of Galicia–Volhynia Halych Raion Principality of Halych Chełm Voivodeship Kholm Governorate Kholmskii uezd Chełm powiat