Question: Of German states bordering Mecklenburg-Vorpommern, which has the lowest elevation relative to sea level?
Choices:
Rhineland-Palatinate
Thuringia
Bavaria
Schleswig-Holstein
Bremen
Brandenburg
Saxony-Anhalt
Mecklenburg-Vorpommern
Lower Saxony
North Rhine-Westphalia
Program:
function: Find
inputs: Mecklenburg-Vorpommern
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> "Mecklenburg-Vorpommern" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Brandenburg