What is {county seat} of {Kabul Shahi}, that has {sister city} is {Istanbul} ?
Over which period of years did the Kabul Shahi dynasties rule over modern day Istanbul?
When did the Kabul Shahi dynasties rule over the land now known as Istanbul?
SELECT ?m WHERE { ?m property:twinned_administrative_body resource:Istanbul . resource:Kabul_Shahi property:capital ?m }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q654380> . ?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> ?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/P190> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q406> . }
SELECT ?answer WHERE { wd:Q654380 wdt:P36 ?answer . ?answer wdt:P190 wd:Q406}
Kabul