What are the apps for less than 61 goals and before rank 6?
CREATE TABLE table_name_51 (apps INTEGER, rank VARCHAR, goals VARCHAR)
SELECT SUM(apps) FROM table_name_51 WHERE rank < 6 AND goals < 61
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (apps INTEGER, rank VARCHAR, goals VARCHAR) Question: What are the apps for less than 61 goals and before rank 6? [/INST] SELECT SUM(apps) FROM table_name_51 WHERE rank < 6 AND goals < 61 </s>