Task: Text to Code
Input (English): What is the code of the product type with an average price higher than the average price of all products?
Output (English): SELECT product_type_code FROM products GROUP BY product_type_code HAVING avg(product_price)  >  (SELECT avg(product_price) FROM products)