Database: hr_1
Question: What are the job ids for jobs done more than once for a period of more than 300 days?
SQL: select job_id from job_history where end_date - start_date  > 300 group by job_id having count(*) >= 2