Question: Does Tours or Hildesheim (postal codes 31101–31141) have the lower elevation?
Choices:
Fort Smith
Dnipro
Bordeaux
Hildesheim
Aachen
Wuppertal
Lyon
Halle (Saale)
Stuttgart
Tours
Program:
function: Find
inputs: Tours
function: Find
inputs: Hildesheim
function: FilterStr
dependencies: 1
inputs: postal code
31101–31141
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tours" . } UNION { ?e <pred:name> "Hildesheim" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "31101–31141" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Tours