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