Task: Text to Code
Input (English): Step 1: For each row in jobs table, find the corresponding rows in employees table.
Step 2: find PHONE_NUMBER of the results of step 1 whose SALARY greater than 8000 and MAX_SALARY less than 12000
Output (English): SELECT T2.PHONE_NUMBER FROM jobs AS T1 JOIN employees AS T2 ON T1.JOB_ID = T2.JOB_ID WHERE T2.SALARY > 8000 AND T1.MAX_SALARY < 12000