Question: Which one has fewer kids, Matt Frewer or Peter Tork?
Choices:
Max Fleischer
Matt Frewer
Sylvester Stallone
Paul Simon
James E. Reilly
Rahul Dev Burman
Peter Tork
Richard Gere
Simon Cowell
David Byrne
Program:
function: Find
inputs: Matt Frewer
function: Find
inputs: Peter Tork
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Matt Frewer" .  } UNION { ?e <pred:name> "Peter Tork" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Matt Frewer