Table schema:
CREATE TABLE table_name_40 (gold INTEGER, rank VARCHAR, bronze VARCHAR)

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