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