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