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