Question: Which has higher elevation above sea level, Elizabeth (the one whose postal code is 07208) or Perth Amboy?
Choices: Bayonne
Plainfield
Passaic
Hoboken
Jersey City
Perth Amboy
East Orange
Atlantic City
Paterson
Elizabeth
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Elizabeth" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "07208" . } UNION { ?e <pred:name> "Perth Amboy" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Elizabeth
function: FilterStr
dependencies: 0
inputs: postal code
07208
function: Find
inputs: Perth Amboy
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
Answer: Perth Amboy