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