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_39 (ansi_code INTEGER, township VARCHAR, water__sqmi_ VARCHAR)

### Question ###
What is the average ANSI code for the town of Sherman and the smaller of the water area in square miles than 0.005?

### Accurate SQL ###

SELECT AVG(ansi_code) FROM table_name_39 WHERE township = "sherman" AND water__sqmi_ < 0.005