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