Task: Text to Code
Input (English): Step 1: For each row in employees table, find the corresponding rows in job_history table.
Step 2: find employees's EMPLOYEE_ID, END_DATE of the results of step 1 whose SALARY equals 24000
Output (English): SELECT T1.EMPLOYEE_ID , T2.END_DATE FROM employees AS T1 JOIN job_history AS T2 ON T1.EMPLOYEE_ID = T2.EMPLOYEE_ID WHERE T1.SALARY = 24000