CREATE TABLE table_name_86 (total NUMBER, silver VARCHAR2, rank VARCHAR2)

How many total medals does rank 3 with less than 40 silver medals?
SELECT MAX(total) FROM table_name_86 WHERE silver < 40 AND rank = 3
SELECT MAX("total") FROM "table_name_86" WHERE "rank" = 3 AND "silver" < 40