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