Question: Which has higher elevation above sea level, South Australia or Salzburg (the one that shares border with Bavaria)?
Choices:
Chiapas
Lublin Voivodeship
South Australia
Punjab
Podlaskie Voivodeship
Greater Poland Voivodeship
Minas Gerais
Salzburg
New South Wales
Upper Austria
Answer: Salzburg
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "South Australia" .  } UNION { ?e <pred:name> "Salzburg" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Bavaria" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: South Australia
function: Find
inputs: Bavaria
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Salzburg
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater