Anna Miełżyńska was the great-grandmother of which Queen consort of the Polish-Lithuanian Commonwealth?
Anna Miełżyńska Anna Miełżyńska (about 1600-after 1640) of the Nowina clan was a Polish noble lady, the wife of Remigian Zaleski, Castellan of Łęczyca and the mother of Teresa Zaleska, who was the grandmother of Catherine Opalińska, the Queen consort of King Stanislaus Leszczynski of Poland. Her father was Łukasz Miełżyński (about 1560-1628), who was the Castellan of Gniezno (he is referred in some sources as Count). Her mother was Elżbieta Czacka (about 1575-after 1612).
Sophia of Halshany Sophia of Halshany or Sonka Olshanskaya (Belarusian: Соф'я Гальшанская, "Sofja Halšanskaja" ; Lithuanian: "Sofija Alšėniškė" ; Polish: "Zofia Holszańska" ;  1405 – September 21, 1461 in Kraków) was a Grand Duchy of Lithuania princess of Halshany. As the fourth and last wife of Jogaila, King of Poland and Supreme Duke of Lithuania, she was Queen consort of Poland (1422–1434). As the mother of Władysław III, King of Poland and Hungary, and Casimir IV, Grand Duke of Lithuania and King of Poland, she was the founder of the Jagiellon dynasty.