Task: Text to Code
Input (English): Step 1: For each row in Minor_in table, find corresponding rows in Student table and in Department table.
Step 2: find the number of rows of each value of Major in the results of step 1.
Step 3: find DName of the results of step 1 with largest value in the results of step 2
Output (English): SELECT T2.DName FROM Student AS T1 JOIN Department AS T2 JOIN Minor_in AS T3 ON T1.StuID = T3.StuID AND T3.DNO = T2.DNO GROUP BY T1.Major ORDER BY Count ( * ) Desc LIMIT 1