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