Question: Does Raj Kapoor or Benjamin Bratt have fewer kids?
Choices:
William Henry Harrison
Paul Simon
James E. Reilly
Max Fleischer
Benjamin Bratt
Rahul Dev Burman
Raj Kapoor
Simon Cowell
Sylvester Stallone
David Byrne
Program:
function: Find
inputs: Raj Kapoor
function: Find
inputs: Benjamin Bratt
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Raj Kapoor" .  } UNION { ?e <pred:name> "Benjamin Bratt" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Benjamin Bratt