What is {has kids} of {has sister} of {Amlaíb} ?
Amlaib's sister has how many children?
Tell me how many kids Amlaib's sister has.
SELECT ?y WHERE { ?v property:child ?y . resource:Amlaíb property:sibling ?v }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q281752> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P3373>. ?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:Q281752 wdt:P3373 ?X . ?X wdt:P40 ?answer}
Constantine III of Scotland Malcolm (?)