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