Question: What German state that shares a border with Hesse has the highest elevation above sea level?
Choices:
Schleswig-Holstein
Saxony
Thuringia
Saxony-Anhalt
Lower Saxony
Rhineland-Palatinate
North Rhine-Westphalia
Mecklenburg-Vorpommern
Bremen
Bavaria
Program:
function: Find
inputs: Hesse
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: state of Germany
function: SelectAmong
dependencies: 2
inputs: elevation above sea level
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of Germany" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Hesse" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bavaria