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