What is {brother or sister} of {daddy} of {Hamengkubuwono V} ?
Who is the child of the father of Hamengkubuwono V?
Who is the child of the father of Hamengkubuwono V?
SELECT ?f WHERE { ?c property:sibling ?f . resource:Hamengkubuwono_V property:father ?c }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2581159> . ?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> ?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/P3373> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q2581159 wdt:P22 ?X . ?X wdt:P3373 ?answer}
Diponegoro