Question: Which area has higher elevation above sea level, Auburn (the one whose local dialing code is 530) or Vancouver (the one whose elevation (above sea level) is 52 metre)?
Choices:
Lansing
Columbus
Oakland
New Haven
Vancouver
Waukegan
Auburn
Franklin
Greenville
Compton
Program:
function: Find
inputs: Auburn
function: FilterStr
dependencies: 0
inputs: local dialing code
530
function: Find
inputs: Vancouver
function: FilterNum
dependencies: 2
inputs: elevation above sea level
52 metre
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Auburn" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "530" . } UNION { ?e <pred:name> "Vancouver" . ?e <elevation_above_sea_level> ?pv_2 . ?pv_2 <pred:unit> "metre" . ?pv_2 <pred:value> "52"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Auburn