What is the sum of caps for players with less than 9 goals ranked below 8?
CREATE TABLE table_name_83 (caps INTEGER, goals VARCHAR, rank VARCHAR)
SELECT SUM(caps) FROM table_name_83 WHERE goals < 9 AND rank > 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (caps INTEGER, goals VARCHAR, rank VARCHAR) Question: What is the sum of caps for players with less than 9 goals ranked below 8? [/INST] SELECT SUM(caps) FROM table_name_83 WHERE goals < 9 AND rank > 8 </s>