Input (grade 10): This provided that after Anne, the Crown would go to their nearest Protestant relative, Sophia, Electress of Hanover, and her Protestant heirs.
Output (grade 8): After Anne, the Crown would go to their nearest Protestant relative, Sophia, Electress of Hanover, and her Protestant heirs.