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