What is the {Chinese dynasty} for {replaced by} of {Yuan dynasty}
What dynasty came after the Yuan in China?
What Chinese dynasty replaced the Yuan dynasty?
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Chinese_dynasty . resource:Yuan_Empire property:replaced_by ?e }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7313> . ?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> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q12857432> } 
 select distinct ?obj where { wd:Q7313 wdt:P1366 ?obj . ?obj wdt:P31 wd:Q12857432 } 
Northern Yuan Dynasty