What is the total grid number when Fonsi Nieto had more than 22 laps?
CREATE TABLE table_name_59 (grid VARCHAR, rider VARCHAR, laps VARCHAR)
SELECT COUNT(grid) FROM table_name_59 WHERE rider = "fonsi nieto" AND laps > 22
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (grid VARCHAR, rider VARCHAR, laps VARCHAR) Question: What is the total grid number when Fonsi Nieto had more than 22 laps? [/INST] SELECT COUNT(grid) FROM table_name_59 WHERE rider = "fonsi nieto" AND laps > 22 </s>