Question: Does Tori Spelling or Peter Tork have fewer offspring?
Choices:
Sylvester Stallone
David Byrne
Peter Tork
Max Fleischer
Tori Spelling
Simon Cowell
Paul Simon
William Henry Harrison
James E. Reilly
Rahul Dev Burman
Program:
function: Find
inputs: Tori Spelling
function: Find
inputs: Peter Tork
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tori Spelling" .  } UNION { ?e <pred:name> "Peter Tork" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Peter Tork