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