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