Question: Does Shiraz (whose elevation is 1500 meters above sea level) or Newcastle have the larger male population?
Choices:
Trieste
Santo Domingo
Chihuahua
Kilkenny
Kingston
Abidjan
Bergen
Cork
Shiraz
Newcastle
Answer: Shiraz
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shiraz" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "1500"^^xsd:double . } UNION { ?e <pred:name> "Newcastle" . } ?e <male_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Shiraz
function: FilterNum
dependencies: 0
inputs: elevation above sea level
1500 metre
=
function: Find
inputs: Newcastle
function: SelectBetween
dependencies: 1
2
inputs: male population
greater