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