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