Question: Does the higher elevation belong to Thuringia, a German administrative division, or to Bremen, officially named Freie Hansestadt Bremen?
Choices:
Rhineland-Palatinate
Thuringia
Bavaria
Saxony-Anhalt
Saxony
Lower Saxony
Bremen
Schleswig-Holstein
Mecklenburg-Vorpommern
North Rhine-Westphalia
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Thuringia
function: And
dependencies: 1
2
function: Find
inputs: Bremen
function: FilterStr
dependencies: 4
inputs: official name
Freie Hansestadt Bremen
function: SelectBetween
dependencies: 3
5
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Thuringia" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Germany" . } UNION { ?e <pred:name> "Bremen" . ?e <official_name> ?pv_1 . ?pv_1 <pred:value> "Freie Hansestadt Bremen" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Thuringia