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