How many products have a price higher than the average?
CREATE TABLE products (product_price INTEGER)
SELECT COUNT(*) FROM products WHERE product_price > (SELECT AVG(product_price) FROM products)
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE products (product_price INTEGER) Question: How many products have a price higher than the average? [/INST] SELECT COUNT(*) FROM products WHERE product_price > (SELECT AVG(product_price) FROM products) </s>