Question: Which one of independent German cities in the German Empire (headquarter location of Kingdom of Prussia) were situated the highest above sea level ?
Choices:
Frankfurt (Oder)
Chatham
Bayreuth
Baden-Baden
Phillips Academy
Tangerine Dream
Big Daddy
Coburg
Weimar
Hugh Bonneville
Program:
function: Find
inputs: Kingdom of Prussia
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: German Empire
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: independent city of Germany
function: SelectAmong
dependencies: 5
inputs: elevation above sea level
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent city of Germany" . ?e <country> ?e_1 . ?e_1 <pred:name> "German Empire" . ?e_2 <headquarters_location> ?e_1 . ?e_2 <pred:name> "Kingdom of Prussia" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bayreuth