What is the sum of Poles, when Season is before 2005, when Position is "2nd", and when Wins is less than 6?
CREATE TABLE table_name_1 (poles INTEGER, wins VARCHAR, season VARCHAR, position VARCHAR)
SELECT SUM(poles) FROM table_name_1 WHERE season < 2005 AND position = "2nd" AND wins < 6
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (poles INTEGER, wins VARCHAR, season VARCHAR, position VARCHAR) Question: What is the sum of Poles, when Season is before 2005, when Position is "2nd", and when Wins is less than 6? [/INST] SELECT SUM(poles) FROM table_name_1 WHERE season < 2005 AND position = "2nd" AND wins < 6 </s>