Question: What is the end of time for Han Dynasty has a capital as Chang'an?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q7209 p:P36 ?s . ?s ps:P36 wd:Q6501000 . ?s pq:P582 ?value}