Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE table_name_12 ( loss INTEGER, gain VARCHAR, avg_g VARCHAR, long VARCHAR )

### Question ###
What is the loss when the average/gain is less than 16.7, gain is 104 and long is larger than 4?

### Accurate SQL ###

SELECT AVG(loss) FROM table_name_12 WHERE avg_g < 16.7 AND long > 4 AND gain = 104