Task: Parse the natural language query into a SQL query that can be executed on the table.
input: What are the name and budget of the departments with average instructor salary greater than the overall average?
Given two tables: instructor, department.
output: SELECT d.name, d.budget FROM instructor i JOIN department d ON i.dept_name = d.name GROUP BY i.dept_name HAVING AVG(i.salary) > (SELECT AVG(salary) FROM instructor)