CREATE TABLE table_name_24 (gold NUMBER, silver VARCHAR2, total VARCHAR2)

What is the total number of gold medals won by nations that won 2 silver medals but fewer than 7 in total?
SELECT SUM(gold) FROM table_name_24 WHERE silver = 2 AND total < 7
SELECT SUM("gold") FROM "table_name_24" WHERE "silver" = 2 AND "total" < 7