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