user: Question: What is the average total with a nation of thailand with a gold smaller than 17?
Columns: ['Rank', 'Nation', 'Gold', 'Silver', 'Bronze', 'Total']
Types: ['text', 'text', 'real', 'real', 'real', 'real']
Sample row: ['1', 'Thailand', 17.0, 19.0, 9.0, 45.0]
SQL:

assistant: SELECT AVG("Total") FROM "Table" WHERE "Nation" = 'thailand' AND "Gold" < 17.0;