CREATE TABLE table_train_147 ("id" NUMBER, "pregnancy_or_lactation" BOOLEAN, "systolic_blood_pressure_sbp" NUMBER, "hemoglobin_a1c_hba1c" FLOAT, "obesity" BOOLEAN, "fasting_blood_glucose_fbg" FLOAT, "heart_rate" NUMBER, "body_mass_index_bmi" FLOAT, "underweight" BOOLEAN, "NOUSE" FLOAT)

pre _ pregnancy body mass index < 18 kg / m2 ( underweight ) or > 40 kg / m2 ( morbidly obese )
SELECT * FROM table_train_147 WHERE (underweight = 1 OR body_mass_index_bmi < 18) OR (obesity = 1 OR body_mass_index_bmi > 40) AND pregnancy_or_lactation = 1
SELECT * FROM "table_train_147" WHERE "body_mass_index_bmi" < 18 OR "body_mass_index_bmi" > 40 OR "obesity" = 1 OR "underweight" = 1 AND "pregnancy_or_lactation" = 1