What is {age of majority} of {loyalty} of {Moshe Dayan} ?
Of those who are loyal to Moshe Dayan, what is the majority age?
What is the majority age of those who are loyal to Moshe Dayan?
SELECT ?r WHERE { resource:Moshe_Dayan property:allegiance ?s . ?s property:age_of_majority ?r }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q188783> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P945>. ?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/P2997> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q188783 wdt:P945 ?X . ?X wdt:P2997 ?answer}
18 18