CREATE TABLE table_dev_22 ("id" NUMBER, "gender" CLOB, "hemoglobin_a1c_hba1c" FLOAT, "heart_disease" BOOLEAN, "cardiovascular_disease" BOOLEAN, "esophageal_varices" BOOLEAN, "liver_disease" BOOLEAN, "diabetes" BOOLEAN, "serum_creatinine" FLOAT, "hypertension" BOOLEAN, "portal_hypertension" BOOLEAN, "NOUSE" FLOAT)

have had diabetes for at least 1 year, and in good control ( hba1c less than 8.5 % )
SELECT * FROM table_dev_22 WHERE diabetes = 1 AND hemoglobin_a1c_hba1c < 8.5
SELECT * FROM "table_dev_22" WHERE "diabetes" = 1 AND "hemoglobin_a1c_hba1c" < 8.5