What are the job ids corresponding to jobs with average salary above 8000?
select job_id from employees group by job_id having avg(salary) > 8000