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