What is {has daughter} of {James VII and II}, that has {is son of} is {Anne Hyde} ?
Who has girl with James vii and ii, and is the child of Anne Hyde?
Who has daughter with James vii and ii, and is the son of Anne Hyde?
SELECT ?j WHERE { ?j property:mother resource:Anne_Hyde . resource:James_II_of_England property:child ?j }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q126188> . ?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> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P25> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q145609> . }
SELECT ?answer WHERE { wd:Q126188 wdt:P40 ?answer . ?answer wdt:P25 wd:Q145609}
Anne of Great Britain Mary II James Stuart, Duke of Cambridge Charles Stuart, Duke of Cambridge Edgar Stuart, Duke of Cambridge Charles Stuart, Duke of Kendal Henrietta Stuart Catherine Stuart