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