Question: What is the average total with a nation of thailand with a gold smaller than 17?
SQL: SELECT AVG Total FROM table WHERE Nation = thailand AND Gold < 17