How many laps did pere riba ride?
CREATE TABLE table_name_52 (laps INTEGER, rider VARCHAR)
SELECT SUM(laps) FROM table_name_52 WHERE rider = "pere riba"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (laps INTEGER, rider VARCHAR) Question: How many laps did pere riba ride? [/INST] SELECT SUM(laps) FROM table_name_52 WHERE rider = "pere riba" </s>