Question: Tell me the one that has less children, Barbara Walters or Charles Dance.
Choices:
Barbara Walters
Paul Simon
Charles Dance
James E. Reilly
Simon Cowell
Max Fleischer
Richard Gere
William Henry Harrison
David Byrne
Rahul Dev Burman
Program:
function: Find
inputs: Charles Dance
function: Find
inputs: Barbara Walters
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charles Dance" .  } UNION { ?e <pred:name> "Barbara Walters" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Barbara Walters