Question: Among the German state that border Thuringia (the one whose official name is Thüringen), which one has the highest elevation above sea level ?
Choices:
Thuringia
Schleswig-Holstein
Saxony-Anhalt
Rhineland-Palatinate
Hesse
Brandenburg
Mecklenburg-Vorpommern
Saxony
Bavaria
Lower Saxony
Answer: Bavaria
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> "Thuringia" . ?e_1 <official_name> ?pv_1 . ?pv_1 <pred:value> "Thüringen" . ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Thuringia
function: FilterStr
dependencies: 0
inputs: official name
Thüringen
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: state of Germany
function: SelectAmong
dependencies: 3
inputs: elevation above sea level
largest