Question: Does Kristin Scott Thomas or Sam Raimi have fewer kids?
Choices:
Kristin Scott Thomas
Paul Simon
William Henry Harrison
Simon Cowell
Sam Raimi
James E. Reilly
Max Fleischer
Sylvester Stallone
Richard Gere
David Byrne
Program:
function: Find
inputs: Kristin Scott Thomas
function: Find
inputs: Sam Raimi
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kristin Scott Thomas" .  } UNION { ?e <pred:name> "Sam Raimi" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kristin Scott Thomas