Question: What position did Stanisław Koniecpolski held where he was replaced by Mikołaj Potock?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q722463 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q2626598 }