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