Schema: CREATE TABLE table_name_21 (total VARCHAR, silver VARCHAR, gold VARCHAR)
Question: How many totals have a Silver of 40, and a Gold smaller than 39?
SQL: SELECT COUNT(total) FROM table_name_21 WHERE silver = 40 AND gold < 39