Question: Which one is larger, Mississauga or Edmonton (the one whose elevation (above sea level) is 645 metre)?
Choices:
Cork
Edmonton
Kilkenny
Trieste
Chihuahua
Abidjan
Santo Domingo
Dundee
Bergen
Kingston
Program:
function: Find
inputs: Mississauga
function: Find
inputs: Edmonton
function: FilterNum
dependencies: 1
inputs: elevation above sea level
645 metre
=
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mississauga" . } 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 <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Edmonton