CREATE TABLE table_name_23 (gold INT, total VARCHAR, bronze VARCHAR)

What is the sum of gold medals won by teams that won 5 total medals and fewer than 2 bronze medals?
SELECT SUM(gold) FROM table_name_23 WHERE total = 5 AND bronze < 2
SELECT SUM("gold") FROM "table_name_23" WHERE "bronze" < 2 AND "total" = 5