CREATE TABLE table_test_5 ("id" INT, "systemic_lupus_erythematosus" BOOLEAN, "anemia" BOOLEAN, "gender" TEXT, "pregnancy_or_lactation" BOOLEAN, "serum_potassium" FLOAT, "hemoglobin_a1c_hba1c" FLOAT, "heart_disease" BOOLEAN, "renal_disease" BOOLEAN, "creatinine_clearance_cl" FLOAT, "estimated_glomerular_filtration_rate_egfr" INT, "chronic_inflammatory_disease" BOOLEAN, "global_lvef" INT, "rheumatoid_arthritis" BOOLEAN, "liver_disease" BOOLEAN, "serum_creatinine" FLOAT, "kidney_disease" BOOLEAN, "lung_disease" BOOLEAN, "age" FLOAT, "NOUSE" FLOAT)

male or non _ pregnant female , aged 18 _ 80 years old
SELECT * FROM table_test_5 WHERE (gender = 'male' OR (gender = 'female' AND pregnancy_or_lactation = 0)) AND (age >= 18 AND age <= 80)
SELECT * FROM "table_test_5" WHERE "age" <= 80 AND "age" >= 18 AND ("gender" = 'female' OR "gender" = 'male') AND ("gender" = 'male' OR "pregnancy_or_lactation" = 0)