SCHEMA:
CREATE TABLE table_name_52 (laps INTEGER, rider VARCHAR)
USER:
How many laps did pere riba ride?

QUERY:
SELECT SUM(laps) FROM table_name_52 WHERE rider = "pere riba"