How many total medals one with less than 40 silver medals rank em 3?
Rank Province Gold Silver Bronze Total
2009 Thailand National Games
18615220
real text real real real real
2-18615220-1
Top ten medals
Top ten medals
1 Bangkok 129 114 80 323
2 Suphan Buri 39 24 30 93
3 Trang 36 15 28 79
4 Chonburi 30 40 32 102
5 Nakhon Ratchasima 17 22 29 68
6 Chiang Mai 16 25 38 79
7 Nonthaburi 13 13 21 47
8 Si Sa Ket 13 5 14 32
9 Ubon Ratchathani 12 8 25 45
10 Samut Sakhon 10 9 11 30
SELECT MAX Total FROM table WHERE Silver < 40 AND Rank = 3
40 3