What is {county seat for} of {Herat}, that has {disestablished} is {1507-1-1} ?
What is the title of the district situate of Herat that was disestablished in 1-1-1507?
What is the name of the county seat of Herat that was disestablished in 1-1-1507?
SELECT ?k WHERE { resource:Herat property:capital_of ?k . FILTER ( CONTAINS ( YEAR ( ?s ) , '1507' ) ) . ?k property:dissolved,_abolished_or_demolished_date ?s }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q45313> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1376>. ?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/P576> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <1507-1-1> . }
SELECT ?answer WHERE { wd:Q45313 wdt:P1376 ?answer . ?answer wdt:P576 ?x FILTER(contains(YEAR(?x),'1507'))}
Timurid Empire