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