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