Tell me the average wins for class of 50cc and rank of 8th
CREATE TABLE table_name_47 (wins INTEGER, class VARCHAR, rank VARCHAR)
SELECT AVG(wins) FROM table_name_47 WHERE class = "50cc" AND rank = "8th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (wins INTEGER, class VARCHAR, rank VARCHAR) Question: Tell me the average wins for class of 50cc and rank of 8th [/INST] SELECT AVG(wins) FROM table_name_47 WHERE class = "50cc" AND rank = "8th" </s>