Task: Text to Code
Input (English): Find the job ID for those jobs which average salary is above 8000.
Output (English): SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000