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_97 (seasons_completed INTEGER, finals_appearances VARCHAR, division_titles VARCHAR, playoff_appearances VARCHAR)
system
What is the average number of seasons completed of the team with less than 1 division titles, 0 playoff appearances, and more than 0 finals appearances?
user
SELECT AVG(seasons_completed) FROM table_name_97 WHERE division_titles < 1 AND playoff_appearances = 0 AND finals_appearances > 0
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_97 (seasons_completed INTEGER, finals_appearances VARCHAR, division_titles VARCHAR, playoff_appearances VARCHAR)<|im_end|>
<|im_start|>user
What is the average number of seasons completed of the team with less than 1 division titles, 0 playoff appearances, and more than 0 finals appearances?<|im_end|>
