Table: judo_1997_mediterranean_games
Columns: rank
nation
gold
silver
bronze
total

Question: What is the sum of all gold medals for Algeria when total medals is less than 3?
SQL: SELECT SUM("gold") FROM judo_1997_mediterranean_games WHERE "nation" = 'algeria' AND "total" < 3