Return all information about employees with salaries between 8000 and 12000 for which commission is not null or where their department id is not 40.
select * from employees where salary between 8000 and 12000 and commission_pct != "null" or department_id != 40