Question: What territorial entity of the German Confederation ended in 1866?
Paraphrase: Give me the name of territorial entity that separated from German Confederation in 1866?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q151624 p:P150 ?s . ?s ps:P150 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1866')) }