Question: Who has more kids, Shakira who speaks Italian or Christopher Reeve?
Choices:
Rahul Dev Burman
Christopher Reeve
James E. Reilly
Simon Cowell
Max Fleischer
David Byrne
William Henry Harrison
Sylvester Stallone
Shakira
Paul Simon
Program:
function: Find
inputs: Italian
function: Relate
dependencies: 0
inputs: languages spoken, written or signed
backward
function: Find
inputs: Shakira
function: And
dependencies: 1
2
function: Find
inputs: Christopher Reeve
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shakira" . ?e <languages_spoken,_written_or_signed> ?e_1 . ?e_1 <pred:name> "Italian" .   } UNION { ?e <pred:name> "Christopher Reeve" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Christopher Reeve