Question: Which person has more children, Andrea Bocelli or Anurag Kashyap?
Choices:
Andrea Bocelli
Anurag Kashyap
William Henry Harrison
James E. Reilly
Richard Gere
David Byrne
Max Fleischer
Sylvester Stallone
Simon Cowell
Paul Simon
Program:
function: Find
inputs: Andrea Bocelli
function: Find
inputs: Anurag Kashyap
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Andrea Bocelli" .  } UNION { ?e <pred:name> "Anurag Kashyap" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Andrea Bocelli