What is {parent} of {Shunzhi Emperor}, that has {has child} is {Bombogor} ?
Who is the parent of Shunzhi Sovereign, who includes a child named Who is the parent of Shunzhi Sovereign, who includes a child named Bombogor?
Who is the parent of Shunzhi Emperor, who has a child named Bombogor?
SELECT ?f WHERE { resource:Shunzhi_Emperor property:father ?f . ?f property:child resource:Bombogor }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q310453> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P22>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P40> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q7267221> . }
SELECT ?answer WHERE { wd:Q310453 wdt:P22 ?answer . ?answer wdt:P40 wd:Q7267221}
Hong Taiji