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