Question: What in Bavaria ended at 1945-0-0?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q980 p:P31 ?s . ?s ps:P31 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1945')) }