text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  CREATE TABLE instructor (dept_name VARCHAR, salary INTEGER)
  ### Question:
  Find the names and average salaries of all departments whose average salary is greater than 42000.
  ### Answer:
  SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name HAVING AVG(salary) > 42000