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