Question: Which area has higher elevation above sea level, Melbourne (the one whose population is 76068) or Salem (the one whose area is 47.397114 square kilometre)?
Choices:
Melbourne
Franklin
Waukegan
Columbus
Greenville
Lansing
Boulder
New Haven
Oakland
Salem
Program:
function: Find
inputs: Melbourne
function: FilterNum
dependencies: 0
inputs: population
76068
=
function: Find
inputs: Salem
function: FilterNum
dependencies: 2
inputs: area
47.397114 square kilometre
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Melbourne" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "76068"^^xsd:double . } UNION { ?e <pred:name> "Salem" . ?e <area> ?pv_2 . ?pv_2 <pred:unit> "square kilometre" . ?pv_2 <pred:value> "47.397114"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Salem