What is {is son of} of {wives} of {Charles Lucien Bonaparte} ?
Who was Charles Lucien Bonaparte married to?
Who is the son of Charles Lucien Bonaparte's wife?
SELECT ?n WHERE { ?c property:father ?n . resource:Charles_Lucien_Bonaparte property:spouse ?c }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q157521> . ?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/P22> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q157521 wdt:P26 ?X . ?X wdt:P22 ?answer}
Joseph Bonaparte