Question: Which has less elevation above sea level, Burnaby or Dresden whose population is 504209?
Choices:
Santo Domingo
Cork
Trieste
Kingston
Dundee
Chihuahua
Burnaby
Dresden
Bergen
Abidjan
Answer: Dresden
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Burnaby" . } UNION { ?e <pred:name> "Dresden" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "504209"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Burnaby
function: Find
inputs: Dresden
function: FilterNum
dependencies: 1
inputs: population
504209
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less