Question: Which one has fewer children, Gerald Ford or Ted Levine ?
Choices:
Sylvester Stallone
David Byrne
Ted Levine
Simon Cowell
Rahul Dev Burman
Gerald Ford
Paul Simon
Richard Gere
James E. Reilly
Max Fleischer
Program:
function: Find
inputs: Gerald Ford
function: Find
inputs: Ted Levine
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gerald Ford" .  } UNION { ?e <pred:name> "Ted Levine" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Ted Levine