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