Question: Is the population lower in Oak Park or in the Lynn at zip codes 01901–01905?
Choices:
Compton
Franklin
Oakland
Lansing
Greenville
Columbus
Waukegan
Lynn
Boulder
Oak Park
Program:
function: Find
inputs: Oak Park
function: Find
inputs: Lynn
function: FilterStr
dependencies: 1
inputs: postal code
01901–01905
function: SelectBetween
dependencies: 0
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Oak Park" . } UNION { ?e <pred:name> "Lynn" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "01901–01905" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Oak Park