Question: Which has higher elevation above sea level, Duisburg or Ontario (the one that shares border with Upland)?
Choices:
Bordeaux
Aachen
Lyon
Fort Smith
Duisburg
Wuppertal
Dnipro
Ontario
Utrecht
Halle (Saale)
Answer: Ontario
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Duisburg" .  } UNION { ?e <pred:name> "Ontario" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Upland" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Duisburg
function: Find
inputs: Upland
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Ontario
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater