Question: Which has a lesser population, New Bedford or Odessa (whose postal code is 79761–79766)?
Choices:
Greenville
New Haven
Oakland
Lansing
Boulder
Franklin
Compton
Odessa
New Bedford
Columbus
Program:
function: Find
inputs: New Bedford
function: Find
inputs: Odessa
function: FilterStr
dependencies: 1
inputs: postal code
79761–79766
function: SelectBetween
dependencies: 0
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "New Bedford" . } UNION { ?e <pred:name> "Odessa" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "79761–79766" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: New Bedford