CREATE TABLE table_name_40 (gold INT, rank VARCHAR, bronze VARCHAR)

What is the most gold when the rank is 7 and bronze is less than 0?
SELECT MAX(gold) FROM table_name_40 WHERE rank = "7" AND bronze < 0
SELECT MAX("gold") FROM "table_name_40" WHERE "7" = "rank" AND "bronze" < 0