Answer
Ulrika Eleonora's older sister was Hedvig Sophia, the eldest daughter of King Charles XI and Ulrika Eleonora of Denmark. However, Hedvig Sophia did not succeed to the throne as she died in childbirth at the age of 23, leaving her younger sister Ulrika Eleonora to become the reigning queen of Sweden upon their father's demise in 1697.