Question: In 936 AD, what was the capital of Nanjing?
Paraphrase: What was the capital of Nanjing in 936 AD?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q16666 p:P1376 ?s . ?s ps:P1376 ?obj . ?s pq:P582 ?x filter(contains(?x , '936-0-0')) }