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