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