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