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