Table: olympic_medalists_7
Columns: rank
athlete
nation
olympics
gold
silver
bronze
total_min_2_medals

Question: What is the maximum rank of the nation that won 4 gold medals?
SQL: SELECT MAX("rank") FROM olympic_medalists_7 WHERE "gold" = 4