Task: Text to Code
Input (English): Step 1: find the number of rows of each value of Major in Student table.
Step 2: find StuID in Student table whose corresponding value in step 1 is greater than 2
Output (English): SELECT StuID FROM Student GROUP BY Major HAVING Count ( * ) > 2