Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE table_test_31 ( "id" int, "ejection_fraction_ef" int, "macular_disease" bool, "systemic" bool, "alt" float, "iud" bool, "condom_with_spermicide" bool, "gender" string, "meropenem" bool, "non_q_wave_myocardial_infarction" bool, "hbcab" bool, "unstable_angina" bool, "birth_control_pills" bool, "cystic_fibrosis" bool, "hbv_surface_antigen_hbsag" bool, "oocytes" int, "severe_dry_eyes" bool, "afc" int, "morphological_characteristics" bool, "ovarian_reserve_test" bool, "atherectomy" bool, "hiv_infection" bool, "hormonal_contraceptives" bool, "mellitus" bool, "poor_ovarian_responder" bool, "recurrent_heart_pain" bool, "ast" float, "piperacillin" bool, "coronary_conduit" bool, "diabetic" string, "elective" bool, "ciprofloxacin" bool, "colistin" bool, "central_vision" bool, "serological_tests" bool, "inhaled_corticosteroids" bool, "angina" bool, "surgical_sterilization" bool, "retinal_disease" bool, "hcv_ab" bool, "high_risk_clinical" bool, "advanced_maternal_age" bool, "antibiotic_treatment" bool, "adequate_contraception" bool, "uveitis_disease" bool, "unprotected_left_main_coronary_artery" bool, "ovarian_response" bool, "acute_q_wave_myocardial_infarction" bool, "urgent_coronary_balloon_angioplasty" bool, "asthma" bool, "serum_creatinine" float, "intrauterine_device" bool, "kidney_disease" bool, "spermicide" bool, "fda_approved_device" bool, "anti_hepatitis_c_virus_hcv_antibody" bool, "active_scleral_disease" bool, "barrier_methods" bool, "tazobactam" bool, "glaucoma" bool, "cefepime" bool, "depo_provera" bool, "organ_failure" bool, "dysthyroid_eye_disease" bool, "peripheral_arterial_disease" bool, "cerebral_infarction" bool, "anti_hepatitis_b_core_antibody" bool, "hypertension" bool, "bilirubin" float, "risk_factor" bool, "myocardial_infarction" bool, "lupron_depot" bool, "ocular" bool, "age" float, "linezolid" bool, "NOUSE" float )

### Question ###
diagnosis of any of the following ocular conditions: active scleral disease, glaucoma, retinal disease potentially affecting central vision, macular disease or uveitis, severe dry eyes and dysthyroid eye disease

### Accurate SQL ###

SELECT * FROM table_test_31 WHERE ocular = 1 OR (active_scleral_disease = 1 OR glaucoma = 1 OR (retinal_disease = 1 AND central_vision = 1) OR macular_disease = 1 OR uveitis_disease = 1 OR severe_dry_eyes = 1 OR dysthyroid_eye_disease = 1)