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