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