What is {children} of {husbands} of {Philip II of France} ?
Who are the children of the spouses of Philip II of France?
Who are the children of the husbands of Philip II of France?
SELECT ?i WHERE { resource:Philip_II_of_France property:spouse ?n . ?n property:child ?i }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q34428> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26>. ?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/P40> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q34428 wdt:P26 ?X . ?X wdt:P40 ?answer}
Philip Hurepel Marie of France, Duchess of Brabant Louis VIII of France