CREATE TABLE table_train_120 ("id" INT, "residual_neurologic_impairment" BOOLEAN, "mini_mental_state_examination_mmse" INT, "systolic_blood_pressure_sbp" INT, "memory_impairments" BOOLEAN, "progressive_neurologic_disease" BOOLEAN, "epilepsy" BOOLEAN, "head_injury" BOOLEAN, "stroke" BOOLEAN, "multiple_sclerosis" BOOLEAN, "dementia" BOOLEAN, "diastolic_blood_pressure_dbp" INT, "heart_rate" INT, "intracranial_brain_lesions" BOOLEAN, "neurological_disease" BOOLEAN, "ad" BOOLEAN, "neurosurgery" BOOLEAN, "hypertension" BOOLEAN, "clinical_dementia_rating_cdr" FLOAT, "NOUSE" FLOAT)

current or past history of any neurological disorder other than dementia, such as epilepsy, stroke ( cortical stroke ) , progressive neurologic disease ( e.g. multiple sclerosis ) or intracranial brain lesions; and history of previous neurosurgery or head trauma that resulted in residual neurologic impairment.
SELECT * FROM table_train_120 WHERE (neurological_disease = 1 AND dementia = 0 OR (epilepsy = 1 OR stroke = 1 OR (progressive_neurologic_disease = 1 OR multiple_sclerosis = 1) OR intracranial_brain_lesions = 1)) AND (neurosurgery = 1 OR (head_injury = 1 AND residual_neurologic_impairment = 1))
SELECT * FROM "table_train_120" WHERE ("dementia" = 0 OR "epilepsy" = 1 OR "intracranial_brain_lesions" = 1 OR "multiple_sclerosis" = 1 OR "progressive_neurologic_disease" = 1 OR "stroke" = 1) AND ("epilepsy" = 1 OR "intracranial_brain_lesions" = 1 OR "multiple_sclerosis" = 1 OR "neurological_disease" = 1 OR "progressive_neurologic_disease" = 1 OR "stroke" = 1) AND ("head_injury" = 1 OR "neurosurgery" = 1) AND ("neurosurgery" = 1 OR "residual_neurologic_impairment" = 1)