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 table_name_46 (rating INTEGER, air_date VARCHAR)
system
what is the average rating when the air date is november 23, 2007?
user
SELECT AVG(rating) FROM table_name_46 WHERE air_date = "november 23, 2007"
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 table_name_46 (rating INTEGER, air_date VARCHAR)<|im_end|>
<|im_start|>user
what is the average rating when the air date is november 23, 2007?<|im_end|>
