What is the {historical Chinese state} for {replaced by} of {Yuan dynasty}
What was China past tradition some time recently Yuan ?
What was China previous dynasty before Yuan ?
SELECT DISTINCT ?p WHERE { ?p property:replaced_by resource:Yuan_Empire . ?p rdf:type ontology:historical_Chinese_state }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1366> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q7313> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q50068795> } 
 select distinct ?sbj where { ?sbj wdt:P1366 wd:Q7313 . ?sbj wdt:P31 wd:Q50068795 } 
Southern Song Dynasty Song dynasty