Question: Is the elevation higher for Perugia or for Edmonton, at 645 meters above sea level?
Choices:
Perugia
Dundee
Santo Domingo
Bergen
Kingston
Cork
Trieste
Edmonton
Chihuahua
Kilkenny
Program:
function: Find
inputs: Perugia
function: Find
inputs: Edmonton
function: FilterNum
dependencies: 1
inputs: elevation above sea level
645 metre
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Perugia" . } UNION { ?e <pred:name> "Edmonton" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "645"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Edmonton