Question: Which area has lower elevation above sea level, Seville or Verona (the one whose UN/LOCODE is ITVRN)?
Choices:
Kilkenny
Verona
Dundee
Abidjan
Trieste
Chihuahua
Kingston
Bergen
Seville
Santo Domingo
Program:
function: Find
inputs: Seville
function: Find
inputs: Verona
function: FilterStr
dependencies: 1
inputs: UN/LOCODE
ITVRN
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Seville" . } UNION { ?e <pred:name> "Verona" . ?e <UN/LOCODE> ?pv_1 . ?pv_1 <pred:value> "ITVRN" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Seville