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