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