Question: Which is located at a higher elevation above sea level, Chiapas or Sonora?
Choices:
New South Wales
Upper Austria
Greater Poland Voivodeship
Tasmania
Chiapas
Lublin Voivodeship
Minas Gerais
Punjab
Sonora
Podlaskie Voivodeship
Program:
function: Find
inputs: Chiapas
function: Find
inputs: Sonora
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chiapas" .  } UNION { ?e <pred:name> "Sonora" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chiapas