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