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