What is {has children} of {is son of} of {Frederick William, Elector of Brandenburg} ?
Whose child is the child of Frederick William, the Voter of Brandenburg?
Whose child is the son of Frederick William, the Elector of Brandenburg?
SELECT ?o WHERE { resource:Frederick_William property:father ?a . ?a property:child ?o }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q152727> . ?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/P40> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q152727 wdt:P22 ?X . ?X wdt:P40 ?answer}
Frederick William Margravine Hedwig Sophie of Brandenburg Margravine Louise Charlotte of Brandenburg