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