Question: Does Missoula or Naples (postal codes 34101–34105) have the higher elevation?
Choices:
Franklin
Waukegan
Naples
Oakland
Compton
Greenville
Missoula
Lansing
New Haven
Columbus
Answer: Missoula
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Missoula" . } UNION { ?e <pred:name> "Naples" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "34101–34105" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Missoula
function: Find
inputs: Naples
function: FilterStr
dependencies: 1
inputs: postal code
34101–34105
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater