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_train_231 ( "id" int, "hemoglobin_a1c_hba1c" float, "heart_disease" bool, "stroke" bool, "renal_disease" bool, "estimated_glomerular_filtration_rate_egfr" int, "allergy_to_milk" bool, "NOUSE" float )

### Question ###
hemoglobin a1c greater than or equal to 7 % and less than or equal to 10 % within 3 months prior to visit 1

### Accurate SQL ###

SELECT * FROM table_train_231 WHERE hemoglobin_a1c_hba1c >= 7 AND hemoglobin_a1c_hba1c <= 10