What is {sister town} of {chef-lieu} of {Qajar dynasty} ?
What is the sister town of the chef-lieu of the Qajar dynasty?
What is the sister town of the chef-lieu of the Qajar dynasty?
SELECT ?z WHERE { resource:Qajar_dynasty property:capital ?b . ?b property:twinned_administrative_body ?z }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q189326> . ?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/P190> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q189326 wdt:P36 ?X . ?X wdt:P190 ?answer}