CREATE TABLE table_train_127 ("id" NUMBER, "depression" BOOLEAN, "mini_mental_state_examination_mmse" NUMBER, "back_pain" BOOLEAN, "renal_disease" BOOLEAN, "osteoarthritis" BOOLEAN, "hamilton_depression_scale_hds" NUMBER, "liver_disease" BOOLEAN, "painful_condition" BOOLEAN, "other_chronic_musculoskeletal_pain" BOOLEAN, "major_depression" BOOLEAN, "NOUSE" FLOAT)

history of a typically painful condition, such as osteoarthritis, back pain, or other chronic musculoskeletal pain
SELECT * FROM table_train_127 WHERE painful_condition = 1 OR (osteoarthritis = 1 OR back_pain = 1 OR other_chronic_musculoskeletal_pain = 1)
SELECT * FROM "table_train_127" WHERE "back_pain" = 1 OR "osteoarthritis" = 1 OR "other_chronic_musculoskeletal_pain" = 1 OR "painful_condition" = 1