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