What is the average total with a nation of thailand with a gold smaller than 17?
CREATE TABLE table_name_54 (
    total INTEGER,
    nation VARCHAR,
    gold VARCHAR
)
SELECT AVG(total) FROM table_name_54 WHERE nation = "thailand" AND gold < 17
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the average total with a nation of thailand with a gold smaller than 17? ### Input: CREATE TABLE table_name_54 (
    total INTEGER,
    nation VARCHAR,
    gold VARCHAR
) ### Response: SELECT AVG(total) FROM table_name_54 WHERE nation = "thailand" AND gold < 17