Input (grade 6): He attends Hogwarts School of Witchcraft and Wizardry to learn magic.
Output (grade 4): He goes to Hogwarts School of Witchcraft and Wizardry to learn magic.