CREATE TABLE table_train_124 ("id" INT, "loss_of_consciousness" BOOLEAN, "serum_glucose" BOOLEAN, "myelosuppression" BOOLEAN, "retinoids_hepatotoxic" BOOLEAN, "pulmonary_disease" BOOLEAN, "etiology" BOOLEAN, "abnormal_thyroid_function" BOOLEAN, "laboratory_abnormality" BOOLEAN, "chest_pain" BOOLEAN, "dsm_iv_criteria" BOOLEAN, "neurodegenerative_disease" BOOLEAN, "active_infection" BOOLEAN, "epilepsy" BOOLEAN, "major_psychiatric_disorder" BOOLEAN, "investigational_new_drug" BOOLEAN, "head_injury" BOOLEAN, "stroke" BOOLEAN, "substance_dependence" BOOLEAN, "anterograde_amnesia" BOOLEAN, "renal_disease" BOOLEAN, "cerebrovascular_disease" BOOLEAN, "hepatic_disease" BOOLEAN, "other_systemic_disease" BOOLEAN, "psychiatric_disease" BOOLEAN, "clinical_disorder" BOOLEAN, "multiple_sclerosis" BOOLEAN, "retinoids" BOOLEAN, "cardiovascular_disease" BOOLEAN, "hematologic_disease" BOOLEAN, "prothrombin_time" BOOLEAN, "focal_brain_lesion" BOOLEAN, "ventricular_fibrillation" BOOLEAN, "psychosis" BOOLEAN, "liver_disease" BOOLEAN, "bipolar_disorder" BOOLEAN, "chronic_inflammatory" BOOLEAN, "brain_lesions" BOOLEAN, "diabetes" BOOLEAN, "vitamin_b12_deficiency" BOOLEAN, "medical_disorder" BOOLEAN, "total_bilirubin" BOOLEAN, "gastrointestinal_disease" BOOLEAN, "endocrine_disease" BOOLEAN, "metabolic" BOOLEAN, "ventricular_tachycardia" BOOLEAN, "neurological_disease" BOOLEAN, "seizure_disorder" BOOLEAN, "ast_or_alt" BOOLEAN, "alcohol_abuse" BOOLEAN, "ad" BOOLEAN, "neurosurgery" BOOLEAN, "allergy_to_retinoids" BOOLEAN, "brain_radiation" BOOLEAN, "major_depression" BOOLEAN, "NOUSE" FLOAT)

patients with vitamin b12 deficiency, abnormal thyroid function, or personal history of either any clinically defined medical disorder or any clinically defined neurological / psychiatric disorder ( other than ad ) , including ( but not limited to ) :, stroke, brain lesions, , cerebrovascular condition, other neurodegenerative disease, significant head trauma ( loss of consciousness greater than half an hour, or related anterograde amnesia ) , multiple sclerosis; or personal history of previous neurosurgery or brain radiation
SELECT * FROM table_train_124 WHERE vitamin_b12_deficiency = 1 OR abnormal_thyroid_function = 1 OR medical_disorder = 1 OR neurological_disease = 1 OR psychiatric_disease = 1 AND ad = 0 OR (stroke = 1 OR brain_lesions = 1 OR cerebrovascular_disease = 1 OR neurodegenerative_disease = 1 OR (head_injury = 1 OR loss_of_consciousness = 1 OR anterograde_amnesia = 1) OR multiple_sclerosis = 1 OR neurosurgery = 1 OR brain_radiation = 1)
SELECT * FROM "table_train_124" WHERE ("abnormal_thyroid_function" = 1 OR "anterograde_amnesia" = 1 OR "brain_lesions" = 1 OR "brain_radiation" = 1 OR "cerebrovascular_disease" = 1 OR "head_injury" = 1 OR "loss_of_consciousness" = 1 OR "medical_disorder" = 1 OR "multiple_sclerosis" = 1 OR "neurodegenerative_disease" = 1 OR "neurological_disease" = 1 OR "neurosurgery" = 1 OR "psychiatric_disease" = 1 OR "stroke" = 1 OR "vitamin_b12_deficiency" = 1) AND ("ad" = 0 OR "anterograde_amnesia" = 1 OR "brain_lesions" = 1 OR "brain_radiation" = 1 OR "cerebrovascular_disease" = 1 OR "head_injury" = 1 OR "loss_of_consciousness" = 1 OR "multiple_sclerosis" = 1 OR "neurodegenerative_disease" = 1 OR "neurosurgery" = 1 OR "stroke" = 1)