Task: Text to Code
Input (English): Step 1: For each row in jobs table, find the corresponding rows in employees table.
Step 2: find the  rows in the results of step 1 whose MAX_SALARY less than or equals D ordered descending by SALARY
Output (English): SELECT * FROM jobs AS T1 JOIN employees AS T2 ON T1.JOB_ID = T2.JOB_ID WHERE T1.MAX_SALARY < = "D" ORDER BY T2.SALARY Desc