Table: marathon_results
Columns: rank
nation
gold
silver
bronze
total

Question: What is the highest total number of medals for a team ranked smaller than 1 and had 20 gold medals?
SQL: SELECT MAX("total") FROM marathon_results WHERE "gold" = 20 AND "rank" < 1

Question: What is the nation that had more than 1 gold medal and a total of 62 medals?
SQL: SELECT "nation" FROM marathon_results WHERE "gold" > 1 AND "total" = 62

Question: What is the highest total medals when there were 0 gold medals and 1 silver?
SQL: SELECT MAX("total") FROM marathon_results WHERE "silver" = 1 AND "gold" < 0