You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE products (product_price INTEGER)
system
How many products have a price higher than the average?
user
SELECT COUNT(*) FROM products WHERE product_price > (SELECT AVG(product_price) FROM products)
assistant
<|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE products (product_price INTEGER)<|im_end|>
<|im_start|>user
How many products have a price higher than the average?<|im_end|>
