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