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