Task: Text to Code
Input (English): Step 1: For each row in Students table, find the corresponding rows in Student_Course_Enrolment table.
Step 2: find the number of rows of each value of Student_Course_Enrolment's student_id in the results of step 1.
Step 3: find Student_Course_Enrolment's student_id, middle_name of step 1 results ordered descending by the results of step 2.
Step 4: only show the first 2 rows of the results
Output (English): SELECT T2.student_id , T1.middle_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T2.student_id ORDER BY Count ( * ) Desc LIMIT 2