SCHEMA:
CREATE TABLE instructor (dept_name VARCHAR, salary INTEGER)
USER:
Find the minimum salary for the departments whose average salary is above the average payment of all instructors.

QUERY:
SELECT MIN(salary), dept_name FROM instructor GROUP BY dept_name HAVING AVG(salary) > (SELECT AVG(salary) FROM instructor)