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