CREATE TABLE table_5497 ("Rank" TEXT, "Nation" TEXT, "Gold" FLOAT, "Silver" FLOAT, "Bronze" FLOAT, "Total" FLOAT)

What is the average total with a nation of thailand with a gold smaller than 17?
SELECT AVG("Total") FROM table_5497 WHERE "Nation" = 'thailand' AND "Gold" < '17'
SELECT AVG("Total") FROM "table_5497" WHERE "Gold" < '17' AND "Nation" = 'thailand'