Question: What was China previous dynasty before Yuan ?
Paraphrase: What was China past tradition some time recently Yuan ?
SPARQL (Wikidata):  select distinct ?sbj where { ?sbj wdt:P1366 wd:Q7313 . ?sbj wdt:P31 wd:Q50068795 } 
Answer: Southern Song Dynasty, Song dynasty