CREATE TABLE table_train_249 ("id" INT, "gender" TEXT, "allergy_to_dapagliflozin" BOOLEAN, "body_weight" FLOAT, "estimated_glomerular_filtration_rate_egfr" INT, "body_mass_index_bmi" FLOAT, "age" FLOAT, "NOUSE" FLOAT)

bmi > 24 ( female ) and > 25 ( male ) kg / m2
SELECT * FROM table_train_249 WHERE (body_mass_index_bmi > 24 AND gender = 'female') OR (body_mass_index_bmi > 25 AND gender = 'male')
SELECT * FROM "table_train_249" WHERE "body_mass_index_bmi" > 24 AND ("body_mass_index_bmi" > 25 OR "gender" = 'female') AND ("gender" = 'female' OR "gender" = 'male')