Based on the life of the Electoral Princess Sophia Dorothea, wife of King