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