Which team had a year entering the league under 2009, located in Bath?
CREATE TABLE table_name_21 (team VARCHAR, year_entered_league VARCHAR, location VARCHAR)
SELECT team FROM table_name_21 WHERE year_entered_league < 2009 AND location = "bath"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (team VARCHAR, year_entered_league VARCHAR, location VARCHAR) Question: Which team had a year entering the league under 2009, located in Bath? [/INST] SELECT team FROM table_name_21 WHERE year_entered_league < 2009 AND location = "bath" </s>