CREATE TABLE table_train_252 ("id" INT, "gender" TEXT, "pregnancy_or_lactation" BOOLEAN, "fasting_plasma_glucose_fpg" FLOAT, "hemoglobin_a1c_hba1c" FLOAT, "hba1c" FLOAT, "serum_creatinine" FLOAT, "metformin" BOOLEAN, "age" FLOAT, "NOUSE" FLOAT)

for subjects treated with metformin: serum creatinine >= 1.5 mg / dl ( 133 umol / l ) for male or >= 1.4 mg / dl ( 124 umol ) for female
SELECT * FROM table_train_252 WHERE metformin = 1 OR ((serum_creatinine >= 1.5 AND gender = 'male') OR (serum_creatinine >= 1.4 AND gender = 'female'))
SELECT * FROM "table_train_252" WHERE ("gender" = 'female' OR "gender" = 'male' OR "metformin" = 1) AND ("gender" = 'female' OR "metformin" = 1 OR "serum_creatinine" >= 1.5) AND ("metformin" = 1 OR "serum_creatinine" >= 1.4)