What is {country} of {Herat} that is {start time} is {1370-0-0} ?
On what date in 1370 was Herat country founded?
When is the Herat country started in 1370?
SELECT ?r WHERE { ?a property:start_time ?u . resource:Herat property:country ?a . FILTER ( CONTAINS ( YEAR ( ?u ) , '1370' ) ) . ?a property:country ?r }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q45313> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P17> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1370-0-0>
} 

SELECT ?obj WHERE { wd:Q45313 p:P17 ?s . ?s ps:P17 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1370')) }