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