Question: Does Sammy Davis Jr. or Haim Saban have more children?
Choices:
Paul Simon
Simon Cowell
Rahul Dev Burman
Max Fleischer
William Henry Harrison
James E. Reilly
Haim Saban
Sammy Davis Jr.
David Byrne
Sylvester Stallone
Program:
function: Find
inputs: Sammy Davis Jr.
function: Find
inputs: Haim Saban
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sammy Davis Jr." .  } UNION { ?e <pred:name> "Haim Saban" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Sammy Davis Jr.