subject is a male or female between the ages of 50 and 80 with a body mass index ( bmi ) below 31 . female must be post _ menopausal at least 1 year or surgically sterilized.
CREATE TABLE table_train_84 (
    "id" int,
    "gender" string,
    "mini_mental_state_examination_mmse" int,
    "modified_hachinski_ischemia_scale" int,
    "post_menopausal" bool,
    "allergy_to_rifaximin" bool,
    "surgically_sterilized" bool,
    "body_mass_index_bmi" float,
    "age" float,
    "NOUSE" float
)
SELECT * FROM table_train_84 WHERE (gender = 'male' OR (gender = 'female' AND (post_menopausal >= 1 OR surgically_sterilized = 1))) AND (age >= 50 AND age <= 80) AND body_mass_index_bmi < 31
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: subject is a male or female between the ages of 50 and 80 with a body mass index ( bmi ) below 31 . female must be post _ menopausal at least 1 year or surgically sterilized. ### Input: CREATE TABLE table_train_84 (
    "id" int,
    "gender" string,
    "mini_mental_state_examination_mmse" int,
    "modified_hachinski_ischemia_scale" int,
    "post_menopausal" bool,
    "allergy_to_rifaximin" bool,
    "surgically_sterilized" bool,
    "body_mass_index_bmi" float,
    "age" float,
    "NOUSE" float
) ### Response: SELECT * FROM table_train_84 WHERE (gender = 'male' OR (gender = 'female' AND (post_menopausal >= 1 OR surgically_sterilized = 1))) AND (age >= 50 AND age <= 80) AND body_mass_index_bmi < 31