CREATE TABLE table_train_180 ("id" INT, "gender" TEXT, "pregnancy_or_lactation" BOOLEAN, "systolic_blood_pressure_sbp" INT, "hemoglobin_a1c_hba1c" FLOAT, "diabetic" TEXT, "post_load_glucose" INT, "diastolic_blood_pressure_dbp" INT, "impaired_glucose_tolerance" BOOLEAN, "fasting_glucose" INT, "age" FLOAT, "NOUSE" FLOAT)

hemoglobin less than 13.5 for male and less than 12 for female
SELECT * FROM table_train_180 WHERE (gender = 'male' AND hemoglobin_a1c_hba1c < 13.5) OR (gender = 'female' AND hemoglobin_a1c_hba1c < 12)
SELECT * FROM "table_train_180" WHERE ("gender" = 'female' OR "gender" = 'male') AND ("gender" = 'male' OR "hemoglobin_a1c_hba1c" < 12) AND "hemoglobin_a1c_hba1c" < 13.5