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