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