Question: Which has less population, Medford whose postal code is 97501 or Ogden?
Choices: New Haven
Waukegan
Columbus
Medford
Franklin
Oakland
Lansing
Ogden
Greenville
Compton
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Medford" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "97501" . } UNION { ?e <pred:name> "Ogden" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Medford
function: FilterStr
dependencies: 0
inputs: postal code
97501
function: Find
inputs: Ogden
function: SelectBetween
dependencies: 1
2
inputs: population
less
Answer: Medford