CREATE TABLE table_train_74 ("id" INT, "gender" TEXT, "pregnancy_or_lactation" BOOLEAN, "mini_mental_state_examination_mmse" INT, "clinical_dementia_rating_cdr" FLOAT, "age" FLOAT, "NOUSE" FLOAT)

male and female patients >= 40 and <= 65 years of age.
SELECT * FROM table_train_74 WHERE (gender = 'male' OR gender = 'female') AND (age >= 40 AND age <= 65)
SELECT * FROM "table_train_74" WHERE "age" <= 65 AND "age" >= 40 AND ("gender" = 'female' OR "gender" = 'male')