Jan Spytek Tarnowski — statesperson, Kingdom of Poland