Question: Which country was part of the Austrian Empire until 1866?
Paraphrase: Which countries were part of the Austrian Empire until 1866?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q131964 p:P463 ?s . ?s ps:P463 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1866')) }