Question: Which area has lower elevation above sea level, Bozeman or Midland (the one whose postal code is 48640–48686)?
Choices: New Haven
Midland
Bozeman
Boulder
Lansing
Waukegan
Columbus
Greenville
Oakland
Compton
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bozeman" . } UNION { ?e <pred:name> "Midland" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "48640–48686" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Bozeman
function: Find
inputs: Midland
function: FilterStr
dependencies: 1
inputs: postal code
48640–48686
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
Answer: Midland