Question: Which one has the largest elevation above sea level between the states of Germany that shares border with Saxony-Anhalt (the one whose nominal GDP per capita is 24000 euro)?
Choices:
Saxony-Anhalt
Saxony
Bavaria
Mecklenburg-Vorpommern
Thuringia
Brandenburg
Bremen
North Rhine-Westphalia
Schleswig-Holstein
Rhineland-Palatinate
Answer: Saxony
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> "Saxony-Anhalt" . ?e_1 <nominal_GDP_per_capita> ?pv_1 . ?pv_1 <pred:unit> "euro" . ?pv_1 <pred:value> "24000"^^xsd:double . ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Saxony-Anhalt
function: FilterNum
dependencies: 0
inputs: nominal GDP per capita
24000 euro
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: state of Germany
function: SelectAmong
dependencies: 3
inputs: elevation above sea level
largest