What is {office held} of {daughter} of {Iskandar Muda} ?
What office does the girl of Iskandar Muda hold?
What office does the daughter of Iskandar Muda hold?
SELECT ?k WHERE { ?e property:position_held ?k . resource:Iskandar_Muda property:child ?e }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q375774> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P40>. ?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/P39> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q375774 wdt:P40 ?X . ?X wdt:P39 ?answer}
Sultan of Aceh