What is {is son of} of {has children} of {Eileen O'Casey} ?
Who {is child of} {Eileen O'Casey} {has children} ?
Who {is son of} {Eileen O'Casey} {has children} ?
SELECT ?x WHERE { ?t property:father ?x . resource:Eileen_O'Casey property:child ?t }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q18559727> . ?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/P22> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q18559727 wdt:P40 ?X . ?X wdt:P22 ?answer}
Seán O'Casey