Question: Who has more children, Franklin Delano Roosevelt or Will Ferrell?
Choices:
William Henry Harrison
James E. Reilly
Simon Cowell
David Byrne
Franklin Delano Roosevelt
Max Fleischer
Rahul Dev Burman
Paul Simon
Richard Gere
Will Ferrell
Program:
function: Find
inputs: Franklin Delano Roosevelt
function: Find
inputs: Will Ferrell
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Franklin Delano Roosevelt" .  } UNION { ?e <pred:name> "Will Ferrell" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Franklin Delano Roosevelt