Question: Which Chinese Dynasty had it's capital at Nanjing?
Paraphrase: Which Chinese Line had it's capital at Nanjing?
SPARQL (Wikidata):  select distinct ?obj where { wd:Q16666 wdt:P1376 ?obj . ?obj wdt:P31 wd:Q12857432 } 
Answer: Eastern Jin dynasty, Liang dynasty, Southern Song Dynasty, Southern Ming Dynasty, Liu Song dynasty, Chen dynasty, Southern Qi