Original: In the episode, Bart fails four consecutive history exams and the school psychiatrist recommends that Bart repeat the fourth grade.
Simplified: In this episode, Bart fails four history exams in a row and the school that Bart repeat the fourth grade.