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