Question: Which German state bordering Saxony, population 4149477, is lowest in elevation?
Choices:
Saxony
Mecklenburg-Vorpommern
Thuringia
Bavaria
Saxony-Anhalt
Schleswig-Holstein
Rhineland-Palatinate
Brandenburg
Bremen
Lower Saxony
Program:
function: Find
inputs: Saxony
function: FilterNum
dependencies: 0
inputs: population
4149477
=
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
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> "Saxony" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "4149477"^^xsd:double . ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Brandenburg