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