Original: This provided that after Anne, the Crown would go to their nearest Protestant relative, Sophia, Electress of Hanover, and her Protestant heirs.
Simplified: After Anne, the Crown would go to their nearest Protestant relative, Sophia, Electress of Hanover, and her Protestant heirs.