Original: Anne enjoyed a close and happy family upbringing in Denmark, thanks largely to Queen Sophie, who tended the children herself during their illnesses.
Simplified: Anne enjoyed a close and happy family education in Denmark. This was mostly because of Queen Sophie.