Question: Which one has fewer kids, Carmelo Anthony or Catherine Zeta-Jones ?
Choices:
Max Fleischer
James E. Reilly
David Byrne
William Henry Harrison
Paul Simon
Catherine Zeta-Jones
Carmelo Anthony
Simon Cowell
Richard Gere
Sylvester Stallone
Program:
function: Find
inputs: Carmelo Anthony
function: Find
inputs: Catherine Zeta-Jones
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carmelo Anthony" .  } UNION { ?e <pred:name> "Catherine Zeta-Jones" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Carmelo Anthony