What position did Mikhail Gorbachev hold before being replaced by Vladimir Ivashko?
SELECT ?obj WHERE { wd:Q30487 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q1065213 }
mikhail gorbachev: Q30487 volodymyr ivashko: Q1065213