SCHEMA:
CREATE TABLE table_name_51 (total INTEGER, tour VARCHAR, giro VARCHAR)
USER:
The sun of total that has a tour of 7 and a Giro smaller than 3 is 12.

QUERY:
SELECT SUM(total) FROM table_name_51 WHERE tour = 7 AND giro < 3