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