Question: which person has less children, Tim Burton or Chris Cornell?
Choices:
Rahul Dev Burman
James E. Reilly
David Byrne
William Henry Harrison
Sylvester Stallone
Chris Cornell
Simon Cowell
Tim Burton
Max Fleischer
Paul Simon
Program:
function: Find
inputs: Tim Burton
function: Find
inputs: Chris Cornell
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tim Burton" .  } UNION { ?e <pred:name> "Chris Cornell" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Tim Burton