CREATE TABLE table_name_2 (rank INT, gold INT)

What's the total Rank that has a Gold that's smaller than 0?
SELECT SUM(rank) FROM table_name_2 WHERE gold < 0
SELECT SUM("rank") FROM "table_name_2" WHERE "gold" < 0