What part of Somogy County came to an end in the year 1989 which was located in the administrative territorial entity?
SELECT ?obj WHERE { wd:Q190522 p:P131 ?s . ?s ps:P131 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1989')) }
somogy county: Q190522