Question: Of German states bordering North Rhine-Westphalia, which is lowest in elevation?
Choices:
North Rhine-Westphalia
Saxony-Anhalt
Schleswig-Holstein
Hesse
Mecklenburg-Vorpommern
Rhineland-Palatinate
Saxony
Lower Saxony
Thuringia
Bavaria
Program:
function: Find
inputs: North Rhine-Westphalia
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: state of Germany
function: SelectAmong
dependencies: 2
inputs: elevation above sea level
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of Germany" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "North Rhine-Westphalia" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Rhineland-Palatinate