What is {son of} of {son of} of {William FitzMaurice, 2nd Earl of Kerry} ?
Who gave Kerry's son { son } of { William FitzMaurice, 2nd Earl }?
Who gave the{son of} of {son of} of {William FitzMaurice, 2nd Earl of Kerry} ?
SELECT ?m WHERE { ?g property:father ?m . resource:William_FitzMaurice,_2nd_Earl_of_Kerry property:mother ?g }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8009095> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P25>. ?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:Q8009095 wdt:P25 ?X . ?X wdt:P22 ?answer}
William Petty