Question: Which has higher elevation above sea level, Lawton or Northampton whose postal code is 01060?
Choices:
Lansing
Oakland
Franklin
Columbus
Northampton
Lawton
Waukegan
Compton
Boulder
Greenville
Program:
function: Find
inputs: Lawton
function: Find
inputs: Northampton
function: FilterStr
dependencies: 1
inputs: postal code
01060
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lawton" . } UNION { ?e <pred:name> "Northampton" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "01060" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lawton