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