What is {is child of} of {has sister} of {Wanyan Ningji} ?
Who is Wanyan Ningji's niece?
Who is the child of Wanyan Ningji's sister?
SELECT ?z WHERE { ?i property:father ?z . resource:Wanyan_Ningji property:sibling ?i }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q16260511> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P3373>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P22> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q16260511 wdt:P3373 ?X . ?X wdt:P22 ?answer}
Emperor Taizu of Jin Emperor Taizu of Jin Emperor Taizu of Jin Emperor Taizu of Jin Emperor Taizu of Jin Emperor Taizu of Jin Emperor Taizu of Jin Emperor Taizu of Jin Emperor Taizu of Jin Emperor Taizu of Jin Emperor Taizu of Jin Emperor Taizu of Jin Emperor Taizu of Jin Emperor Taizu of Jin Emperor Taizu of Jin Emperor Taizu of Jin