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