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