Question: Which has a smaller population, Redding or Beverly Hills?
Choices:
Redding
Beverly Hills
Lansing
Franklin
Columbus
Waukegan
Oakland
Compton
Greenville
Boulder
Program:
function: Find
inputs: Redding
function: Find
inputs: Beverly Hills
function: SelectBetween
dependencies: 0
1
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Redding" .  } UNION { ?e <pred:name> "Beverly Hills" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Beverly Hills