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