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