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