Question: What position did Mikhail Gorbachev hold before being replaced by Vladimir Ivashko?
Paraphrase: What was Midhail Gorbachev's title before being replaced by Vladimir Ivashko?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q30487 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q1065213 }