Question: What is the capital of Nanjing?
Paraphrase: What is the capital of Nanjing?
SPARQL (Wikidata):  select distinct ?sbj where { ?sbj wdt:P36 wd:Q16666 . ?sbj wdt:P31 wd:Q50068795 } 
Answer: Eastern Wu, Liang dynasty, Southern Ming Dynasty, Wu guo, Southern Tang