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