Question: What Transylvanian country ended in 1804?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q39473 p:P17 ?s . ?s ps:P17 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1804')) }