Question: which one has a smaller population, Columbia (which has the ZIP code 65211) or Boise?
Choices:
Franklin
Columbia
Greenville
Boise
Boulder
Oakland
Compton
Waukegan
Columbus
Lansing
Program:
function: Find
inputs: Columbia
function: FilterStr
dependencies: 0
inputs: postal code
65211
function: Find
inputs: Boise
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Columbia" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "65211" . } UNION { ?e <pred:name> "Boise" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Columbia