Question: Who replaced Michal Korybut Wisniowiecki as the King of Poland?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q54041 p:P39 ?s . ?s ps:P39 wd:Q3273712 . ?s pq:P1365 ?value}