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