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