Question: Does Saxony (the one whose elevation (above sea level) is 342 metre) or Bavaria have lesser nominal GDP ?
Choices:
Lower Saxony
Rhineland-Palatinate
Thuringia
Saxony-Anhalt
Brandenburg
Bavaria
Mecklenburg-Vorpommern
Saxony
Schleswig-Holstein
Bremen
Program:
function: Find
inputs: Saxony
function: FilterNum
dependencies: 0
inputs: elevation above sea level
342 metre
=
function: Find
inputs: Bavaria
function: SelectBetween
dependencies: 1
2
inputs: nominal GDP
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Saxony" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "342"^^xsd:double . } UNION { ?e <pred:name> "Bavaria" . } ?e <nominal_GDP> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Saxony