What position did Stanisław Koniecpolski held where he was replaced by Mikołaj Potock?
SELECT ?obj WHERE { wd:Q722463 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q2626598 }
stanisław koniecpolski: Q722463 mikołaj potocki: Q2626598