Question: Which has a lesser number of children, David Walliams or Annette Bening?
Choices:
Annette Bening
William Henry Harrison
David Walliams
Max Fleischer
James E. Reilly
Simon Cowell
Rahul Dev Burman
Paul Simon
Sylvester Stallone
Richard Gere
Program:
function: Find
inputs: David Walliams
function: Find
inputs: Annette Bening
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "David Walliams" .  } UNION { ?e <pred:name> "Annette Bening" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: David Walliams