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