Question: Which area has lower elevation above sea level, Nicosia or Moscow (the one that is the origin of the name Moscow Oblast)?
Choices:
Riga
Tallinn
Doha
Manila
New Delhi
Moscow
Sarajevo
Paris
Mexico City
Nicosia
Program:
function: Find
inputs: Nicosia
function: Find
inputs: Moscow Oblast
function: Relate
dependencies: 1
inputs: named after
forward
function: Find
inputs: Moscow
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nicosia" .  } UNION { ?e <pred:name> "Moscow" . ?e_1 <named_after> ?e . ?e_1 <pred:name> "Moscow Oblast" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Moscow