Question: Does Chiapas or Johor have lesser elevation (above sea level) ?
Choices:
Upper Austria
Tasmania
New South Wales
Chiapas
Podlaskie Voivodeship
Lublin Voivodeship
Johor
Punjab
England
Minas Gerais
Program:
function: Find
inputs: Chiapas
function: Find
inputs: Johor
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chiapas" .  } UNION { ?e <pred:name> "Johor" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Johor