CREATE TABLE table_train_141 ("id" NUMBER, "gender" CLOB, "hypothyroidism" BOOLEAN, "depression" BOOLEAN, "mini_mental_state_examination_mmse" NUMBER, "neuropsychiatric_diagnoses" BOOLEAN, "memory_box" FLOAT, "early_stage_ad" BOOLEAN, "head_injury" BOOLEAN, "stroke" BOOLEAN, "body_weight" FLOAT, "major_medical_illness" BOOLEAN, "rbans_dmi" NUMBER, "psychosis" BOOLEAN, "alzheimer_disease_ad" BOOLEAN, "diabetes" BOOLEAN, "body_mass_index_bmi" FLOAT, "ad" BOOLEAN, "hypertension" BOOLEAN, "clinical_dementia_rating_cdr" FLOAT, "age" FLOAT, "NOUSE" FLOAT)

a diagnosis of ad, and mini _ mental status examination ( mmse ) score between >= 18 and <= 26 .
SELECT * FROM table_train_141 WHERE ad = 1 OR alzheimer_disease_ad = 1 AND (mini_mental_state_examination_mmse >= 18 AND mini_mental_state_examination_mmse <= 26)
SELECT * FROM "table_train_141" WHERE "ad" = 1 OR "alzheimer_disease_ad" = 1 AND "mini_mental_state_examination_mmse" <= 26 AND "mini_mental_state_examination_mmse" >= 18