-- DROP SCHEMA "DiseaseBurden";

CREATE SCHEMA "DiseaseBurden" AUTHORIZATION root;



CREATE TABLE "DiseaseBurden".measures (
    id int NOT NULL,
    "label" varchar NOT NULL,
    CONSTRAINT measures_pk PRIMARY KEY (id)
);
CREATE INDEX measures_name_idx ON "DiseaseBurden".measures ("label");

insert into "DiseaseBurden".measures (id, "label") 
values 
    (1,'Deaths'),
    (2,'DALYs (Disability-Adjusted Life Years)'),
    (3,'YLDs (Years Lived with Disability)'),
    (4,'YLLs (Years of Life Lost)'),
    (5,'Prevalence'),
    (6,'Incidence')
;

CREATE TABLE "DiseaseBurden".sex (
    id int NOT NULL,
    sex varchar NOT NULL,
    CONSTRAINT sex_pk PRIMARY KEY (id)
);
CREATE INDEX sex_name_idx ON "DiseaseBurden".sex ("sex");

insert into "DiseaseBurden".sex (id, sex) 
values 
    (1,'Male'),
    (2,'Female'),
    (3,'Both')
;




CREATE TABLE "DiseaseBurden".metric (
    id int NOT NULL,
    metric_label varchar NOT NULL,
    CONSTRAINT disease_burden_pk PRIMARY KEY (id)
);
CREATE INDEX disease_burden_label_idx ON "DiseaseBurden".metric ("metric_label");

insert into "DiseaseBurden".metric (id, metric_label) 
values 
    (1,'Number'),
    (2,'Percent'),
    (3,'Rate'),
    (5,'Years')
;




CREATE TABLE "DiseaseBurden".rei (
    id int NOT NULL,
    rei_label varchar NOT NULL,
    CONSTRAINT rei_pk PRIMARY KEY (id)
);
CREATE INDEX rei_label_idx ON "DiseaseBurden".rei ("rei_label");

insert into "DiseaseBurden".rei (id, rei_label) 
values 
    (169, 'All risk factors'),
    (202, 'Environmental/occupational risks'),
    (203, 'Behavioral risks'),
    (104, 'Metabolic risks'),
    (171, 'Etiologies'),
    (191, 'Impairments'),
    (362, 'Injuries'),
    (82, 'Unsafe water, sanitation, and handwashing'),
    (83, 'Unsafe water source'),
    (84, 'Unsafe sanitation'),
    (238, 'No access to handwashing facility'),
    (85, 'Air pollution'),
    (380, 'Particulate matter pollution'),
    (86, 'Ambient particulate matter pollution'),
    (87, 'Household air pollution from solid fuels'),
    (88, 'Ambient ozone pollution'),
    (331, 'Suboptimal temperature'),
    (337, 'High temperature'),
    (338, 'Low temperature'),
    (89, 'Other environmental risks'),
    (90, 'Residential radon'),
    (91, 'Lead exposure'),
    (126, 'Occupational risks'),
    (127, 'Occupational carcinogens'),
    (150, 'Occupational exposure to asbestos'),
    (151, 'Occupational exposure to arsenic'),
    (152, 'Occupational exposure to benzene'),
    (153, 'Occupational exposure to beryllium'),
    (154, 'Occupational exposure to cadmium'),
    (155, 'Occupational exposure to chromium'),
    (156, 'Occupational exposure to diesel engine exhaust'),
    (158, 'Occupational exposure to formaldehyde'),
    (159, 'Occupational exposure to nickel'),
    (160, 'Occupational exposure to polycyclic aromatic hydrocarbons'),
    (161, 'Occupational exposure to silica'),
    (162, 'Occupational exposure to sulfuric acid'),
    (237, 'Occupational exposure to trichloroethylene'),
    (128, 'Occupational asthmagens'),
    (129, 'Occupational particulate matter, gases, and fumes'),
    (130, 'Occupational noise'),
    (131, 'Occupational injuries'),
    (132, 'Occupational ergonomic factors'),
    (92, 'Child and maternal malnutrition'),
    (93, 'Suboptimal breastfeeding'),
    (136, 'Non-exclusive breastfeeding'),
    (137, 'Discontinued breastfeeding'),
    (239, 'Child growth failure'),
    (94, 'Child underweight'),
    (240, 'Child wasting'),
    (241, 'Child stunting'),
    (339, 'Low birth weight and short gestation'),
    (334, 'Short gestation'),
    (335, 'Low birth weight'),
    (95, 'Iron deficiency'),
    (96, 'Vitamin A deficiency'),
    (97, 'Zinc deficiency'),
    (98, 'Tobacco'),
    (99, 'Smoking'),
    (332, 'Chewing tobacco'),
    (100, 'Secondhand smoke'),
    (102, 'Alcohol use'),
    (103, 'Drug use'),
    (110, 'Dietary risks'),
    (111, 'Diet low in fruits'),
    (112, 'Diet low in vegetables'),
    (333, 'Diet low in legumes'),
    (113, 'Diet low in whole grains'),
    (114, 'Diet low in nuts and seeds'),
    (115, 'Diet low in milk'),
    (116, 'Diet high in red meat'),
    (117, 'Diet high in processed meat'),
    (118, 'Diet high in sugar-sweetened beverages'),
    (119, 'Diet low in fiber'),
    (147, 'Diet low in calcium'),
    (121, 'Diet low in seafood omega-3 fatty acids'),
    (122, 'Diet low in polyunsaturated fatty acids'),
    (123, 'Diet high in trans fatty acids'),
    (124, 'Diet high in sodium'),
    (135, 'Intimate partner violence'),
    (381, 'Childhood sexual abuse and bullying'),
    (134, 'Childhood sexual abuse'),
    (363, 'Bullying victimization'),
    (170, 'Unsafe sex'),
    (125, 'Low physical activity'),
    (105, 'High fasting plasma glucose'),
    (367, 'High LDL cholesterol'),
    (107, 'High systolic blood pressure'),
    (108, 'High body-mass index'),
    (109, 'Low bone mineral density'),
    (341, 'Impaired kidney function'),
    (173, 'Cholera'),
    (174, 'Non-typhoidal Salmonella'),
    (175, 'Shigella'),
    (176, 'Enteropathogenic E coli'),
    (177, 'Enterotoxigenic E coli'),
    (178, 'Campylobacter'),
    (179, 'Entamoeba'),
    (180, 'Cryptosporidium'),
    (181, 'Rotavirus'),
    (182, 'Aeromonas'),
    (183, 'Clostridium difficile'),
    (184, 'Norovirus'),
    (185, 'Adenovirus'),
    (187, 'Influenza'),
    (188, 'Pneumococcus'),
    (189, 'H influenzae type B'),
    (190, 'Respiratory syncytial virus'),
    (386, 'Meningococcal meningitis'),
    (192, 'Anemia'),
    (205, 'Mild anemia'),
    (206, 'Moderate anemia'),
    (207, 'Severe anemia'),
    (193, 'Epilepsy'),
    (208, 'Treated epilepsy'),
    (209, 'Moderate epilepsy'),
    (210, 'Severe epilepsy'),
    (194, 'Guillain-Barré syndrome'),
    (195, 'Hearing loss'),
    (211, 'Mild hearing loss'),
    (212, 'Moderate hearing loss'),
    (213, 'Moderately severe hearing loss'),
    (214, 'Severe hearing loss'),
    (215, 'Profound hearing loss'),
    (216, 'Complete hearing loss'),
    (196, 'Heart failure'),
    (217, 'Mild heart failure'),
    (218, 'Moderate heart failure'),
    (219, 'Severe heart failure'),
    (379, 'Treated heart failure'),
    (198, 'Infertility'),
    (220, 'Primary infertility'),
    (221, 'Secondary infertility'),
    (197, 'Developmental intellectual disability'),
    (236, 'Borderline intellectual disability'),
    (222, 'Mild intellectual disability'),
    (223, 'Moderate intellectual disability'),
    (224, 'Severe intellectual disability'),
    (225, 'Profound intellectual disability'),
    (199, 'Pelvic inflammatory disease'),
    (226, 'Moderate pelvic inflammatory disease'),
    (227, 'Severe pelvic inflammatory disease'),
    (200, 'Blindness and vision loss'),
    (229, 'Moderate vision loss'),
    (230, 'Severe vision loss'),
    (231, 'Blindness'),
    (233, 'Presbyopia'),
    (298, 'Amputations'),
    (250, 'Amputation of lower limbs, bilateral'),
    (261, 'Amputation of upper limbs, bilateral'),
    (272, 'Amputation of fingers (excluding thumb)'),
    (283, 'Amputation of lower limb, unilateral'),
    (293, 'Amputation of upper limb, unilateral'),
    (294, 'Amputation of thumb'),
    (295, 'Amputation of toe/toes'),
    (299, 'Burns'),
    (251, 'Lower airway burns'),
    (296, 'Burns, <20% total burned surface area without lower airway burns'),
    (297, 'Burns, >=20% total burned surface area or >= 10% burned surface area if head/neck or hands/wrist involved w/o lower airway burns'),
    (300, 'Fractures'),
    (256, 'Fracture of clavicle, scapula, or humerus'),
    (257, 'Fracture of face bones'),
    (258, 'Fracture of foot bones except ankle'),
    (259, 'Fracture of hand (wrist and other distal part of hand)'),
    (260, 'Fracture of hip'),
    (262, 'Fracture of patella, tibia or fibula, or ankle'),
    (263, 'Fracture of pelvis'),
    (264, 'Fracture of radius and/or ulna'),
    (265, 'Fracture of skull'),
    (266, 'Fracture of sternum and/or fracture of one or more ribs'),
    (267, 'Fracture of vertebral column'),
    (268, 'Fracture of femur, other than femoral neck'),
    (301, 'Head Injuries'),
    (269, 'Minor TBI'),
    (270, 'Moderate/Severe TBI'),
    (302, 'Spinal Injuries'),
    (276, 'Spinal cord lesion at neck level'),
    (277, 'Spinal cord lesion below neck level'),
    (303, 'Minor Injuries'),
    (255, 'Muscle and tendon injuries, including sprains and strains lesser dislocations'),
    (273, 'Foreign body in ear'),
    (284, 'Open wound(s)'),
    (288, 'Contusion in any part of the body'),
    (291, 'Superficial injury of any part of the body'),
    (304, 'Other Injuries'),
    (252, 'Dislocation of hip'),
    (253, 'Dislocation of knee'),
    (254, 'Dislocation of shoulder'),
    (274, 'Foreign body in respiratory system'),
    (275, 'Foreign body in GI and urogenital system'),
    (278, 'Drowning and nonfatal submersion'),
    (279, 'Asphyxiation'),
    (280, 'Crush injury'),
    (281, 'Nerve injury'),
    (282, 'Injury to eyes'),
    (285, 'Poisoning requiring urgent care'),
    (286, 'Severe chest Injury'),
    (287, 'Internal hemorrhage in abdomen and pelvis'),
    (289, 'Effect of different environmental factors'),
    (290, 'Complications following therapeutic procedures'),
    (292, 'Multiple fractures, dislocations, crashes, wounds, pains, and strains')
;



CREATE TABLE "DiseaseBurden".age_group (
    id int NOT NULL,
    age_group varchar NOT NULL,
    CONSTRAINT age_group_pk PRIMARY KEY (id)
);
CREATE INDEX age_group_idx ON "DiseaseBurden".age_group ("age_group");

insert into "DiseaseBurden".age_group (id, age_group) 
values 
    (1, 'Under 5'),
    (2, 'Early Neonatal'),
    (3, 'Late Neonatal'),
    (4, 'Post Neonatal'),
    (5, '1 to 4'),
    (6, '5 to 9'),
    (7, '10 to 14'),
    (8, '15 to 19'),
    (9, '20 to 24'),
    (10, '25 to 29'),
    (11, '30 to 34'),
    (12, '35 to 39'),
    (13, '40 to 44'),
    (14, '45 to 49'),
    (15, '50 to 54'),
    (16, '55 to 59'),
    (17, '60 to 64'),
    (18, '65 to 69'),
    (19, '70 to 74'),
    (20, '75 to 79'),
    (21, '80 plus'),
    (22, 'All Ages'),
    (23, '5-14 years'),
    (24, '15-49 years'),
    (25, '50-69 years'),
    (26, '70+ years'),
    (27, 'Age-standardized'),
    (28, '<1 year'),
    (30, '80 to 84'),
    (31, '85 to 89'),
    (32, '90 to 94'),
    (37, '20 plus'),
    (39, '0 to 14'),
    (41, '50 to 74 years'),
    (42, 'Neonatal'),
    (157, '25 plus'),
    (158, '<20 years'),
    (159, '10 to 24'),
    (160, '85 plus'),
    (164, 'Birth'),
    (169, '10 to 54'),
    (172, '0 to 9'),
    (188, '5 to 19'),
    (197, '15 to 39'),
    (206, '25 to 49'),
    (228, '55 plus'),
    (230, '60 to 79'),
    (232, '65 to 74'),
    (234, '75 plus'),
    (235, '95 plus'),
    (243, '75 to 84'),
    (284, '20 to 54 years'),
    (285, '55 to 89 years'),
    (286, '60 to 89 years'),
    (287, '65 to 89 years'),
    (288, '70 to 89 years'),
    (289, '75 to 94 years'),
    (420, '<70 years')
;



CREATE TABLE "DiseaseBurden".cause (
    id int NOT NULL,
    cause varchar NOT NULL,
    CONSTRAINT cause_pk PRIMARY KEY (id)
);
CREATE INDEX cause_name_idx ON "DiseaseBurden".cause ("cause");

insert into "DiseaseBurden".cause (id, cause) 
values
    (294, 'All causes'),
    (295, 'Communicable, maternal, neonatal, and nutritional diseases'),
    (955, 'HIV/AIDS and sexually transmitted infections'),
    (298, 'HIV/AIDS'),
    (948, 'HIV/AIDS - Drug-susceptible Tuberculosis'),
    (949, 'HIV/AIDS - Multidrug-resistant Tuberculosis without extensive drug resistance'),
    (950, 'HIV/AIDS - Extensively drug-resistant Tuberculosis'),
    (300, 'HIV/AIDS resulting in other diseases'),
    (393, 'Sexually transmitted infections excluding HIV'),
    (394, 'Syphilis'),
    (395, 'Chlamydial infection'),
    (396, 'Gonococcal infection'),
    (397, 'Trichomoniasis'),
    (398, 'Genital herpes'),
    (399, 'Other sexually transmitted infections'),
    (956, 'Respiratory infections and tuberculosis'),
    (297, 'Tuberculosis'),
    (954, 'Latent tuberculosis infection'),
    (934, 'Drug-susceptible tuberculosis'),
    (946, 'Multidrug-resistant tuberculosis without extensive drug resistance'),
    (947, 'Extensively drug-resistant tuberculosis'),
    (322, 'Lower respiratory infections'),
    (328, 'Upper respiratory infections'),
    (329, 'Otitis media'),
    (957, 'Enteric infections'),
    (302, 'Diarrheal diseases'),
    (958, 'Typhoid and paratyphoid'),
    (319, 'Typhoid fever'),
    (320, 'Paratyphoid fever'),
    (959, 'Invasive Non-typhoidal Salmonella (iNTS)'),
    (321, 'Other intestinal infectious diseases'),
    (344, 'Neglected tropical diseases and malaria'),
    (345, 'Malaria'),
    (346, 'Chagas disease'),
    (347, 'Leishmaniasis'),
    (348, 'Visceral leishmaniasis'),
    (349, 'Cutaneous and mucocutaneous leishmaniasis'),
    (350, 'African trypanosomiasis'),
    (351, 'Schistosomiasis'),
    (352, 'Cysticercosis'),
    (353, 'Cystic echinococcosis'),
    (354, 'Lymphatic filariasis'),
    (355, 'Onchocerciasis'),
    (356, 'Trachoma'),
    (357, 'Dengue'),
    (358, 'Yellow fever'),
    (359, 'Rabies'),
    (360, 'Intestinal nematode infections'),
    (361, 'Ascariasis'),
    (362, 'Trichuriasis'),
    (363, 'Hookworm disease'),
    (364, 'Food-borne trematodiases'),
    (405, 'Leprosy'),
    (843, 'Ebola'),
    (935, 'Zika virus'),
    (936, 'Guinea worm disease'),
    (365, 'Other neglected tropical diseases'),
    (961, 'Other infectious diseases'),
    (332, 'Meningitis'),
    (337, 'Encephalitis'),
    (338, 'Diphtheria'),
    (339, 'Whooping cough'),
    (340, 'Tetanus'),
    (341, 'Measles'),
    (342, 'Varicella and herpes zoster'),
    (400, 'Acute hepatitis'),
    (401, 'Acute hepatitis A'),
    (402, 'Acute hepatitis B'),
    (403, 'Acute hepatitis C'),
    (404, 'Acute hepatitis E'),
    (408, 'Other unspecified infectious diseases'),
    (962, 'Maternal and neonatal disorders'),
    (366, 'Maternal disorders'),
    (367, 'Maternal hemorrhage'),
    (368, 'Maternal sepsis and other maternal infections'),
    (369, 'Maternal hypertensive disorders'),
    (370, 'Maternal obstructed labor and uterine rupture'),
    (995, 'Maternal abortion and miscarriage'),
    (374, 'Ectopic pregnancy'),
    (375, 'Indirect maternal deaths'),
    (376, 'Late maternal deaths'),
    (741, 'Maternal deaths aggravated by HIV/AIDS'),
    (379, 'Other maternal disorders'),
    (380, 'Neonatal disorders'),
    (381, 'Neonatal preterm birth'),
    (382, 'Neonatal encephalopathy due to birth asphyxia and trauma'),
    (383, 'Neonatal sepsis and other neonatal infections'),
    (384, 'Hemolytic disease and other neonatal jaundice'),
    (385, 'Other neonatal disorders'),
    (386, 'Nutritional deficiencies'),
    (387, 'Protein-energy malnutrition'),
    (388, 'Iodine deficiency'),
    (389, 'Vitamin A deficiency'),
    (390, 'Dietary iron deficiency'),
    (391, 'Other nutritional deficiencies'),
    (409, 'Non-communicable diseases'),
    (410, 'Neoplasms'),
    (444, 'Lip and oral cavity cancer'),
    (447, 'Nasopharynx cancer'),
    (450, 'Other pharynx cancer'),
    (411, 'Esophageal cancer'),
    (414, 'Stomach cancer'),
    (441, 'Colon and rectum cancer'),
    (417, 'Liver cancer'),
    (418, 'Liver cancer due to hepatitis B'),
    (419, 'Liver cancer due to hepatitis C'),
    (420, 'Liver cancer due to alcohol use'),
    (996, 'Liver cancer due to NASH'),
    (1021, 'Liver cancer due to other causes'),
    (453, 'Gallbladder and biliary tract cancer'),
    (456, 'Pancreatic cancer'),
    (423, 'Larynx cancer'),
    (426, 'Tracheal, bronchus, and lung cancer'),
    (459, 'Malignant skin melanoma'),
    (462, 'Non-melanoma skin cancer'),
    (849, 'Non-melanoma skin cancer (squamous-cell carcinoma)'),
    (850, 'Non-melanoma skin cancer (basal-cell carcinoma)'),
    (429, 'Breast cancer'),
    (432, 'Cervical cancer'),
    (435, 'Uterine cancer'),
    (465, 'Ovarian cancer'),
    (438, 'Prostate cancer'),
    (468, 'Testicular cancer'),
    (471, 'Kidney cancer'),
    (474, 'Bladder cancer'),
    (477, 'Brain and central nervous system cancer'),
    (480, 'Thyroid cancer'),
    (483, 'Mesothelioma'),
    (484, 'Hodgkin lymphoma'),
    (485, 'Non-Hodgkin lymphoma'),
    (486, 'Multiple myeloma'),
    (487, 'Leukemia'),
    (845, 'Acute lymphoid leukemia'),
    (846, 'Chronic lymphoid leukemia'),
    (847, 'Acute myeloid leukemia'),
    (848, 'Chronic myeloid leukemia'),
    (943, 'Other leukemia'),
    (1022, 'Other malignant neoplasms'),
    (490, 'Other neoplasms'),
    (964, 'Myelodysplastic, myeloproliferative, and other hematopoietic neoplasms'),
    (965, 'Benign and in situ intestinal neoplasms'),
    (966, 'Benign and in situ cervical and uterine neoplasms'),
    (967, 'Other benign and in situ neoplasms'),
    (491, 'Cardiovascular diseases'),
    (492, 'Rheumatic heart disease'),
    (493, 'Ischemic heart disease'),
    (494, 'Stroke'),
    (495, 'Ischemic stroke'),
    (496, 'Intracerebral hemorrhage'),
    (497, 'Subarachnoid hemorrhage'),
    (498, 'Hypertensive heart disease'),
    (504, 'Non-rheumatic valvular heart disease'),
    (968, 'Non-rheumatic calcific aortic valve disease'),
    (969, 'Non-rheumatic degenerative mitral valve disease'),
    (970, 'Other non-rheumatic valve diseases'),
    (499, 'Cardiomyopathy and myocarditis'),
    (942, 'Myocarditis'),
    (938, 'Alcoholic cardiomyopathy'),
    (944, 'Other cardiomyopathy'),
    (500, 'Atrial fibrillation and flutter'),
    (501, 'Aortic aneurysm'),
    (502, 'Peripheral artery disease'),
    (503, 'Endocarditis'),
    (1023, 'Other cardiovascular and circulatory diseases'),
    (508, 'Chronic respiratory diseases'),
    (509, 'Chronic obstructive pulmonary disease'),
    (510, 'Pneumoconiosis'),
    (511, 'Silicosis'),
    (512, 'Asbestosis'),
    (513, 'Coal workers pneumoconiosis'),
    (514, 'Other pneumoconiosis'),
    (515, 'Asthma'),
    (516, 'Interstitial lung disease and pulmonary sarcoidosis'),
    (520, 'Other chronic respiratory diseases'),
    (526, 'Digestive diseases'),
    (521, 'Cirrhosis and other chronic liver diseases'),
    (522, 'Cirrhosis and other chronic liver diseases due to hepatitis B'),
    (523, 'Cirrhosis and other chronic liver diseases due to hepatitis C'),
    (524, 'Cirrhosis and other chronic liver diseases due to alcohol use'),
    (971, 'Cirrhosis and other chronic liver diseases due to NAFLD'),
    (525, 'Cirrhosis and other chronic liver diseases due to other causes'),
    (992, 'Upper digestive system diseases'),
    (527, 'Peptic ulcer disease'),
    (528, 'Gastritis and duodenitis'),
    (536, 'Gastroesophageal reflux disease'),
    (529, 'Appendicitis'),
    (530, 'Paralytic ileus and intestinal obstruction'),
    (531, 'Inguinal, femoral, and abdominal hernia'),
    (532, 'Inflammatory bowel disease'),
    (533, 'Vascular intestinal disorders'),
    (534, 'Gallbladder and biliary diseases'),
    (535, 'Pancreatitis'),
    (541, 'Other digestive diseases'),
    (542, 'Neurological disorders'),
    (543, 'Alzheimer`s disease and other dementias'),
    (544, 'Parkinson`s disease'),
    (545, 'Idiopathic epilepsy'),
    (546, 'Multiple sclerosis'),
    (554, 'Motor neuron disease'),
    (972, 'Headache disorders'),
    (547, 'Migraine'),
    (548, 'Tension-type headache'),
    (557, 'Other neurological disorders'),
    (558, 'Mental disorders'),
    (559, 'Schizophrenia'),
    (567, 'Depressive disorders'),
    (568, 'Major depressive disorder'),
    (569, 'Dysthymia'),
    (570, 'Bipolar disorder'),
    (571, 'Anxiety disorders'),
    (572, 'Eating disorders'),
    (573, 'Anorexia nervosa'),
    (574, 'Bulimia nervosa'),
    (575, 'Autism spectrum disorders'),
    (578, 'Attention-deficit/hyperactivity disorder'),
    (579, 'Conduct disorder'),
    (582, 'Idiopathic developmental intellectual disability'),
    (585, 'Other mental disorders'),
    (973, 'Substance use disorders'),
    (560, 'Alcohol use disorders'),
    (561, 'Drug use disorders'),
    (562, 'Opioid use disorders'),
    (563, 'Cocaine use disorders'),
    (564, 'Amphetamine use disorders'),
    (565, 'Cannabis use disorders'),
    (566, 'Other drug use disorders'),
    (974, 'Diabetes and kidney diseases'),
    (587, 'Diabetes mellitus'),
    (975, 'Diabetes mellitus type 1'),
    (976, 'Diabetes mellitus type 2'),
    (589, 'Chronic kidney disease'),
    (997, 'Chronic kidney disease due to diabetes mellitus type 1'),
    (998, 'Chronic kidney disease due to diabetes mellitus type 2'),
    (591, 'Chronic kidney disease due to hypertension'),
    (592, 'Chronic kidney disease due to glomerulonephritis'),
    (593, 'Chronic kidney disease due to other and unspecified causes'),
    (588, 'Acute glomerulonephritis'),
    (653, 'Skin and subcutaneous diseases'),
    (654, 'Dermatitis'),
    (977, 'Atopic dermatitis'),
    (978, 'Contact dermatitis'),
    (979, 'Seborrhoeic dermatitis'),
    (655, 'Psoriasis'),
    (980, 'Bacterial skin diseases'),
    (656, 'Cellulitis'),
    (657, 'Pyoderma'),
    (658, 'Scabies'),
    (659, 'Fungal skin diseases'),
    (660, 'Viral skin diseases'),
    (661, 'Acne vulgaris'),
    (662, 'Alopecia areata'),
    (663, 'Pruritus'),
    (664, 'Urticaria'),
    (665, 'Decubitus ulcer'),
    (668, 'Other skin and subcutaneous diseases'),
    (669, 'Sense organ diseases'),
    (981, 'Blindness and vision loss'),
    (670, 'Glaucoma'),
    (671, 'Cataract'),
    (672, 'Age-related macular degeneration'),
    (999, 'Refraction disorders'),
    (1000, 'Near vision loss'),
    (675, 'Other vision loss'),
    (674, 'Age-related and other hearing loss'),
    (679, 'Other sense organ diseases'),
    (626, 'Musculoskeletal disorders'),
    (627, 'Rheumatoid arthritis'),
    (628, 'Osteoarthritis'),
    (1014, 'Osteoarthritis hip'),
    (1015, 'Osteoarthritis knee'),
    (1016, 'Osteoarthritis hand'),
    (1017, 'Osteoarthritis other'),
    (630, 'Low back pain'),
    (631, 'Neck pain'),
    (632, 'Gout'),
    (639, 'Other musculoskeletal disorders'),
    (640, 'Other non-communicable diseases'),
    (641, 'Congenital birth defects'),
    (642, 'Neural tube defects'),
    (643, 'Congenital heart anomalies'),
    (644, 'Orofacial clefts'),
    (645, 'Down syndrome'),
    (646, 'Turner syndrome'),
    (647, 'Klinefelter syndrome'),
    (648, 'Other chromosomal abnormalities'),
    (649, 'Congenital musculoskeletal and limb anomalies'),
    (650, 'Urogenital congenital anomalies'),
    (651, 'Digestive congenital anomalies'),
    (652, 'Other congenital birth defects'),
    (594, 'Urinary diseases and male infertility'),
    (595, 'Urinary tract infections and interstitial nephritis'),
    (596, 'Urolithiasis'),
    (597, 'Benign prostatic hyperplasia'),
    (598, 'Male infertility'),
    (602, 'Other urinary diseases'),
    (603, 'Gynecological diseases'),
    (604, 'Uterine fibroids'),
    (605, 'Polycystic ovarian syndrome'),
    (606, 'Female infertility'),
    (607, 'Endometriosis'),
    (608, 'Genital prolapse'),
    (609, 'Premenstrual syndrome'),
    (612, 'Other gynecological diseases'),
    (613, 'Hemoglobinopathies and hemolytic anemias'),
    (614, 'Thalassemias'),
    (837, 'Thalassemias trait'),
    (615, 'Sickle cell disorders'),
    (838, 'Sickle cell trait'),
    (616, 'G6PD deficiency'),
    (839, 'G6PD trait'),
    (618, 'Other hemoglobinopathies and hemolytic anemias'),
    (619, 'Endocrine, metabolic, blood, and immune disorders'),
    (680, 'Oral disorders'),
    (681, 'Caries of deciduous teeth'),
    (682, 'Caries of permanent teeth'),
    (683, 'Periodontal diseases'),
    (684, 'Edentulism'),
    (685, 'Other oral disorders'),
    (686, 'Sudden infant death syndrome'),
    (687, 'Injuries'),
    (688, 'Transport injuries'),
    (689, 'Road injuries'),
    (690, 'Pedestrian road injuries'),
    (691, 'Cyclist road injuries'),
    (692, 'Motorcyclist road injuries'),
    (693, 'Motor vehicle road injuries'),
    (694, 'Other road injuries'),
    (695, 'Other transport injuries'),
    (696, 'Unintentional injuries'),
    (697, 'Falls'),
    (698, 'Drowning'),
    (699, 'Fire, heat, and hot substances'),
    (700, 'Poisonings'),
    (701, 'Poisoning by carbon monoxide'),
    (703, 'Poisoning by other means'),
    (704, 'Exposure to mechanical forces'),
    (705, 'Unintentional firearm injuries'),
    (707, 'Other exposure to mechanical forces'),
    (708, 'Adverse effects of medical treatment'),
    (709, 'Animal contact'),
    (710, 'Venomous animal contact'),
    (711, 'Non-venomous animal contact'),
    (712, 'Foreign body'),
    (713, 'Pulmonary aspiration and foreign body in airway'),
    (714, 'Foreign body in eyes'),
    (715, 'Foreign body in other body part'),
    (842, 'Environmental heat and cold exposure'),
    (729, 'Exposure to forces of nature'),
    (716, 'Other unintentional injuries'),
    (717, 'Self-harm and interpersonal violence'),
    (718, 'Self-harm'),
    (721, 'Self-harm by firearm'),
    (723, 'Self-harm by other specified means'),
    (724, 'Interpersonal violence'),
    (725, 'Physical violence by firearm'),
    (726, 'Physical violence by sharp object'),
    (941, 'Sexual violence'),
    (727, 'Physical violence by other means'),
    (945, 'Conflict and terrorism'),
    (854, 'Executions and police conflict'),
    (1029, 'Total cancers'),
    (1026, 'Total burden related to hepatitis B'),
    (1027, 'Total burden related to hepatitis C'),
    (1028, 'Total burden related to Non-alcoholic fatty liver disease (NAFLD)')
;



CREATE TABLE "DiseaseBurden".location (
    id int NOT NULL,
    location varchar NOT NULL,
    CONSTRAINT location_pk PRIMARY KEY (id)
);
CREATE INDEX location_name_idx ON "DiseaseBurden".location ("location");

insert into "DiseaseBurden".location (id, location) 
values 
    (35467, '?ita'),
    (35450, '?saka'),
    (4709, 'Aceh'),
    (4750, 'Acre'),
    (44861, 'Addis Ababa'),
    (44853, 'Afar'),
    (160, 'Afghanistan'),
    (44559, 'Africa'),
    (44563, 'African Region'),
    (44587, 'African Union'),
    (60133, 'Agder'),
    (4643, 'Aguascalientes'),
    (35446, 'Aichi'),
    (35428, 'Akita'),
    (523, 'Alabama'),
    (4751, 'Alagoas'),
    (524, 'Alaska'),
    (43, 'Albania'),
    (44864, 'Alborz'),
    (139, 'Algeria'),
    (4753, 'Amap�'),
    (4752, 'Amazonas'),
    (44560, 'America'),
    (298, 'American Samoa'),
    (44854, 'Amhara'),
    (120, 'Andean Latin America'),
    (74, 'Andorra'),
    (168, 'Angola'),
    (105, 'Antigua and Barbuda'),
    (35425, 'Aomori'),
    (44865, 'Ardebil'),
    (97, 'Argentina'),
    (525, 'Arizona'),
    (526, 'Arkansas'),
    (33, 'Armenia'),
    (44561, 'Asia'),
    (70, 'Australasia'),
    (71, 'Australia'),
    (75, 'Austria'),
    (53615, 'Azad Jammu & Kashmir'),
    (34, 'Azerbaijan'),
    (106, 'Bahamas'),
    (4754, 'Bahia'),
    (140, 'Bahrain'),
    (4644, 'Baja California'),
    (4645, 'Baja California Sur'),
    (4726, 'Bali'),
    (53616, 'Balochistan'),
    (4717, 'Bangka-Belitung Islands'),
    (161, 'Bangladesh'),
    (4725, 'Banten'),
    (107, 'Barbados'),
    (35617, 'Baringo'),
    (44754, 'Barking and Dagenham'),
    (44729, 'Barnet'),
    (44692, 'Barnsley'),
    (44784, 'Bath and North East Somerset'),
    (44716, 'Bedford'),
    (57, 'Belarus'),
    (76, 'Belgium'),
    (108, 'Belize'),
    (4715, 'Bengkulu'),
    (200, 'Benin'),
    (44857, 'Benishangul-Gumuz'),
    (305, 'Bermuda'),
    (44732, 'Bexley'),
    (162, 'Bhutan'),
    (44714, 'Birmingham'),
    (44674, 'Blackburn with Darwen'),
    (44676, 'Blackpool'),
    (121, 'Bolivia (Plurinational State of)'),
    (44662, 'Bolton'),
    (35618, 'Bomet'),
    (44, 'Bosnia and Herzegovina'),
    (193, 'Botswana'),
    (44790, 'Bournemouth'),
    (44765, 'Bracknell Forest'),
    (44684, 'Bradford'),
    (135, 'Brazil'),
    (44735, 'Brent'),
    (44770, 'Brighton and Hove'),
    (44789, 'Bristol, City of'),
    (44731, 'Bromley'),
    (66, 'Brunei Darussalam'),
    (44760, 'Buckinghamshire'),
    (45, 'Bulgaria'),
    (35619, 'Bungoma'),
    (201, 'Burkina Faso'),
    (175, 'Burundi'),
    (44664, 'Bury'),
    (44868, 'Bushehr'),
    (35620, 'Busia'),
    (203, 'Cabo Verde'),
    (44682, 'Calderdale'),
    (527, 'California'),
    (10, 'Cambodia'),
    (44721, 'Cambridgeshire'),
    (44748, 'Camden'),
    (202, 'Cameroon'),
    (4646, 'Campeche'),
    (101, 'Canada'),
    (104, 'Caribbean'),
    (4755, 'Cear�'),
    (169, 'Central African Republic'),
    (32, 'Central Asia'),
    (44717, 'Central Bedfordshire'),
    (42, 'Central Europe'),
    (31, 'Central Europe, Eastern Europe, and Central Asia'),
    (4722, 'Central Java'),
    (4730, 'Central Kalimantan'),
    (124, 'Central Latin America'),
    (167, 'Central Sub-Saharan Africa'),
    (4734, 'Central Sulawesi'),
    (204, 'Chad'),
    (44869, 'Chahar Mahaal and Bakhtiari'),
    (44655, 'Cheshire East'),
    (44658, 'Cheshire West and Chester'),
    (4649, 'Chiapas'),
    (35435, 'Chiba'),
    (4650, 'Chihuahua'),
    (98, 'Chile'),
    (6, 'China'),
    (4647, 'Coahuila'),
    (4648, 'Colima'),
    (125, 'Colombia'),
    (528, 'Colorado'),
    (44534, 'Commonwealth'),
    (44535, 'Commonwealth High Income'),
    (44537, 'Commonwealth Low Income'),
    (44536, 'Commonwealth Middle Income'),
    (176, 'Comoros'),
    (170, 'Congo'),
    (529, 'Connecticut'),
    (320, 'Cook Islands'),
    (44791, 'Cornwall'),
    (126, 'Costa Rica'),
    (44649, 'County Durham'),
    (44709, 'Coventry'),
    (46, 'Croatia'),
    (44742, 'Croydon'),
    (109, 'Cuba'),
    (44661, 'Cumbria'),
    (77, 'Cyprus'),
    (47, 'Czechia'),
    (205, 'C�te d`Ivoire'),
    (44643, 'Darlington'),
    (530, 'Delaware'),
    (7, 'Democratic People`s Republic of Korea'),
    (171, 'Democratic Republic of the Congo'),
    (78, 'Denmark'),
    (44697, 'Derby'),
    (44698, 'Derbyshire'),
    (44782, 'Devon'),
    (44862, 'Dire Dawa'),
    (531, 'District of Columbia'),
    (4756, 'Distrito Federal'),
    (177, 'Djibouti'),
    (110, 'Dominica'),
    (111, 'Dominican Republic'),
    (44690, 'Doncaster'),
    (44779, 'Dorset'),
    (44708, 'Dudley'),
    (4652, 'Durango'),
    (44744, 'Ealing'),
    (5, 'East Asia'),
    (239, 'East Asia & Pacific - WB'),
    (44866, 'East Azarbayejan'),
    (4724, 'East Java'),
    (4732, 'East Kalimantan'),
    (4621, 'East Midlands'),
    (4728, 'East Nusa Tenggara'),
    (4623, 'East of England'),
    (44679, 'East Riding of Yorkshire'),
    (44772, 'East Sussex'),
    (482, 'Eastern Cape'),
    (56, 'Eastern Europe'),
    (44567, 'Eastern Mediterranean Region'),
    (174, 'Eastern Sub-Saharan Africa'),
    (122, 'Ecuador'),
    (141, 'Egypt'),
    (35461, 'Ehime'),
    (127, 'El Salvador'),
    (35621, 'Elgeyo-Marakwet'),
    (35622, 'Embu'),
    (44741, 'Enfield'),
    (4749, 'England'),
    (172, 'Equatorial Guinea'),
    (178, 'Eritrea'),
    (4757, 'Esp�rito Santo'),
    (44720, 'Essex'),
    (58, 'Estonia'),
    (197, 'Eswatini'),
    (179, 'Ethiopia'),
    (44562, 'Europe'),
    (240, 'Europe & Central Asia - WB'),
    (44566, 'European Region'),
    (4743, 'European Union'),
    (44870, 'Fars'),
    (22, 'Fiji'),
    (79, 'Finland'),
    (532, 'Florida'),
    (44590, 'Four World Regions'),
    (80, 'France'),
    (483, 'Free State'),
    (35441, 'Fukui'),
    (35463, 'Fukuoka'),
    (35430, 'Fukushima'),
    (44586, 'G20'),
    (173, 'Gabon'),
    (44860, 'Gambella'),
    (206, 'Gambia'),
    (35623, 'Garissa'),
    (44650, 'Gateshead'),
    (484, 'Gauteng'),
    (35, 'Georgia'),
    (533, 'Georgia'),
    (81, 'Germany'),
    (207, 'Ghana'),
    (35444, 'Gifu'),
    (44871, 'Gilan'),
    (53617, 'Gilgit-Baltistan'),
    (1, 'Global'),
    (44785, 'Gloucestershire'),
    (4758, 'Goi�s'),
    (44872, 'Golestan'),
    (4737, 'Gorontalo'),
    (4624, 'Greater London'),
    (82, 'Greece'),
    (349, 'Greenland'),
    (44745, 'Greenwich'),
    (112, 'Grenada'),
    (351, 'Guam'),
    (4653, 'Guanajuato'),
    (128, 'Guatemala'),
    (4654, 'Guerrero'),
    (208, 'Guinea'),
    (209, 'Guinea-Bissau'),
    (35433, 'Gunma'),
    (113, 'Guyana'),
    (44756, 'Hackney'),
    (114, 'Haiti'),
    (44670, 'Halton'),
    (44873, 'Hamadan'),
    (44743, 'Hammersmith and Fulham'),
    (44764, 'Hampshire'),
    (44859, 'Harari'),
    (44755, 'Haringey'),
    (44740, 'Harrow'),
    (44654, 'Hartlepool'),
    (44737, 'Havering'),
    (534, 'Hawaii'),
    (44703, 'Herefordshire, County of'),
    (44719, 'Hertfordshire'),
    (4655, 'Hidalgo'),
    (44635, 'High SDI'),
    (64, 'High-income'),
    (65, 'High-income Asia Pacific'),
    (100, 'High-income North America'),
    (44634, 'High-middle SDI'),
    (44736, 'Hillingdon'),
    (35457, 'Hiroshima'),
    (35424, 'Hokkaid?'),
    (35624, 'HomaBay'),
    (129, 'Honduras'),
    (44874, 'Hormozgan'),
    (44751, 'Hounslow'),
    (48, 'Hungary'),
    (35451, 'Hy?go'),
    (35431, 'Ibaraki'),
    (83, 'Iceland'),
    (535, 'Idaho'),
    (44875, 'Ilam'),
    (536, 'Illinois'),
    (163, 'India'),
    (537, 'Indiana'),
    (11, 'Indonesia'),
    (60135, 'Innlandet'),
    (538, 'Iowa'),
    (142, 'Iran (Islamic Republic of)'),
    (143, 'Iraq'),
    (84, 'Ireland'),
    (44876, 'Isfahan'),
    (35440, 'Ishikawa'),
    (35625, 'Isiolo'),
    (53618, 'Islamabad Capital Territory'),
    (44774, 'Isle of Wight'),
    (44757, 'Islington'),
    (85, 'Israel'),
    (86, 'Italy'),
    (35426, 'Iwate'),
    (4720, 'Jakarta'),
    (4656, 'Jalisco'),
    (115, 'Jamaica'),
    (4713, 'Jambi'),
    (67, 'Japan'),
    (144, 'Jordan'),
    (35462, 'K?chi'),
    (35460, 'Kagawa'),
    (35469, 'Kagoshima'),
    (35626, 'Kajiado'),
    (35627, 'Kakamega'),
    (35437, 'Kanagawa'),
    (539, 'Kansas'),
    (36, 'Kazakhstan'),
    (44728, 'Kensington and Chelsea'),
    (44769, 'Kent'),
    (540, 'Kentucky'),
    (180, 'Kenya'),
    (35628, 'Kericho'),
    (44877, 'Kerman'),
    (44878, 'Kermanshah'),
    (44880, 'Khorasan-e-Razavi'),
    (44882, 'Khuzestan'),
    (53619, 'Khyber Pakhtunkhwa'),
    (35629, 'Kiambu'),
    (35630, 'Kilifi'),
    (44691, 'Kingston upon Hull, City of'),
    (44738, 'Kingston upon Thames'),
    (23, 'Kiribati'),
    (35631, 'Kirinyaga'),
    (44685, 'Kirklees'),
    (35632, 'Kisii'),
    (35633, 'Kisumu'),
    (35634, 'Kitui'),
    (44675, 'Knowsley'),
    (44883, 'Kohgiluyeh and Boyer-Ahmad'),
    (35466, 'Kumamoto'),
    (44884, 'Kurdistan'),
    (145, 'Kuwait'),
    (35635, 'Kwale'),
    (485, 'KwaZulu-Natal'),
    (35449, 'Ky?to'),
    (37, 'Kyrgyzstan'),
    (35636, 'Laikipia'),
    (44749, 'Lambeth'),
    (4716, 'Lampung'),
    (35637, 'Lamu'),
    (44660, 'Lancashire'),
    (12, 'Lao People`s Democratic Republic'),
    (241, 'Latin America & Caribbean - WB'),
    (103, 'Latin America and Caribbean'),
    (59, 'Latvia'),
    (146, 'Lebanon'),
    (44686, 'Leeds'),
    (44701, 'Leicester'),
    (44694, 'Leicestershire'),
    (194, 'Lesotho'),
    (44750, 'Lewisham'),
    (210, 'Liberia'),
    (147, 'Libya'),
    (486, 'Limpopo'),
    (44695, 'Lincolnshire'),
    (60, 'Lithuania'),
    (44671, 'Liverpool'),
    (44885, 'Lorestan'),
    (541, 'Louisiana'),
    (44637, 'Low SDI'),
    (44636, 'Low-middle SDI'),
    (44726, 'Luton'),
    (87, 'Luxembourg'),
    (35638, 'Machakos'),
    (181, 'Madagascar'),
    (542, 'Maine'),
    (35639, 'Makueni'),
    (182, 'Malawi'),
    (13, 'Malaysia'),
    (14, 'Maldives'),
    (211, 'Mali'),
    (88, 'Malta'),
    (4739, 'Maluku'),
    (44677, 'Manchester'),
    (35640, 'Mandera'),
    (4759, 'Maranh�o'),
    (44886, 'Markazi'),
    (35641, 'Marsabit'),
    (24, 'Marshall Islands'),
    (543, 'Maryland'),
    (544, 'Massachusetts'),
    (4762, 'Mato Grosso'),
    (4761, 'Mato Grosso do Sul'),
    (212, 'Mauritania'),
    (183, 'Mauritius'),
    (44887, 'Mazandaran'),
    (44771, 'Medway'),
    (44734, 'Merton'),
    (35642, 'Meru'),
    (130, 'Mexico'),
    (4651, 'Mexico City'),
    (545, 'Michigan'),
    (4658, 'Michoac�n de Ocampo'),
    (25, 'Micronesia (Federated States of)'),
    (243, 'Middle East & North Africa - WB'),
    (44639, 'Middle SDI'),
    (44651, 'Middlesbrough'),
    (35447, 'Mie'),
    (35643, 'Migori'),
    (44775, 'Milton Keynes'),
    (4760, 'Minas Gerais'),
    (546, 'Minnesota'),
    (547, 'Mississippi'),
    (548, 'Missouri'),
    (35427, 'Miyagi'),
    (35468, 'Miyazaki'),
    (35644, 'Mombasa'),
    (367, 'Monaco'),
    (38, 'Mongolia'),
    (549, 'Montana'),
    (50, 'Montenegro'),
    (4659, 'Morelos'),
    (148, 'Morocco'),
    (184, 'Mozambique'),
    (487, 'Mpumalanga'),
    (35645, 'Murang`a'),
    (15, 'Myanmar'),
    (4923, 'M�re og Romsdal'),
    (4657, 'M�xico'),
    (35443, 'Nagano'),
    (35465, 'Nagasaki'),
    (35646, 'Nairobi'),
    (35647, 'Nakuru'),
    (195, 'Namibia'),
    (35648, 'Nandi'),
    (35452, 'Nara'),
    (35649, 'Narok'),
    (369, 'Nauru'),
    (4660, 'Nayarit'),
    (550, 'Nebraska'),
    (164, 'Nepal'),
    (89, 'Netherlands'),
    (551, 'Nevada'),
    (552, 'New Hampshire'),
    (553, 'New Jersey'),
    (554, 'New Mexico'),
    (555, 'New York'),
    (72, 'New Zealand'),
    (44646, 'Newcastle upon Tyne'),
    (44753, 'Newham'),
    (131, 'Nicaragua'),
    (213, 'Niger'),
    (214, 'Nigeria'),
    (35438, 'Niigata'),
    (374, 'Niue'),
    (44642, 'Nordic Region'),
    (4926, 'Nordland'),
    (44723, 'Norfolk'),
    (137, 'North Africa and Middle East'),
    (138, 'North Africa and Middle East'),
    (44638, 'North America'),
    (556, 'North Carolina'),
    (557, 'North Dakota'),
    (4618, 'North East England'),
    (44681, 'North East Lincolnshire'),
    (4719, 'North Kalimantan'),
    (44879, 'North Khorasan'),
    (44683, 'North Lincolnshire'),
    (49, 'North Macedonia'),
    (4740, 'North Maluku'),
    (44781, 'North Somerset'),
    (4733, 'North Sulawesi'),
    (4710, 'North Sumatra'),
    (44647, 'North Tyneside'),
    (4619, 'North West England'),
    (44678, 'North Yorkshire'),
    (488, 'North-West'),
    (44693, 'Northamptonshire'),
    (489, 'Northern Cape'),
    (433, 'Northern Ireland'),
    (376, 'Northern Mariana Islands'),
    (44644, 'Northumberland'),
    (90, 'Norway'),
    (44700, 'Nottingham'),
    (44699, 'Nottinghamshire'),
    (4661, 'Nuevo Le�n'),
    (35650, 'Nyamira'),
    (35651, 'Nyandarua'),
    (35652, 'Nyeri'),
    (4662, 'Oaxaca'),
    (21, 'Oceania'),
    (44584, 'OECD Countries'),
    (558, 'Ohio'),
    (35456, 'Okayama'),
    (35470, 'Okinawa'),
    (559, 'Oklahoma'),
    (44667, 'Oldham'),
    (150, 'Oman'),
    (560, 'Oregon'),
    (44855, 'Oromia'),
    (4910, 'Oslo'),
    (44767, 'Oxfordshire'),
    (165, 'Pakistan'),
    (380, 'Palau'),
    (149, 'Palestine'),
    (132, 'Panama'),
    (4742, 'Papua'),
    (26, 'Papua New Guinea'),
    (136, 'Paraguay'),
    (4765, 'Paran�'),
    (4764, 'Para�ba'),
    (4763, 'Par�'),
    (561, 'Pennsylvania'),
    (4766, 'Pernambuco'),
    (123, 'Peru'),
    (44725, 'Peterborough'),
    (16, 'Philippines'),
    (4767, 'Piaui'),
    (44792, 'Plymouth'),
    (51, 'Poland'),
    (44783, 'Poole'),
    (44773, 'Portsmouth'),
    (91, 'Portugal'),
    (4663, 'Puebla'),
    (385, 'Puerto Rico'),
    (53620, 'Punjab'),
    (151, 'Qatar'),
    (44888, 'Qazvin'),
    (44889, 'Qom'),
    (4664, 'Quer�taro'),
    (4665, 'Quintana Roo'),
    (44768, 'Reading'),
    (44733, 'Redbridge'),
    (44648, 'Redcar and Cleveland'),
    (44564, 'Region of the Americas'),
    (68, 'Republic of Korea'),
    (61, 'Republic of Moldova'),
    (562, 'Rhode Island'),
    (4712, 'Riau'),
    (4718, 'Riau Islands'),
    (44727, 'Richmond upon Thames'),
    (4768, 'Rio de Janeiro'),
    (4769, 'Rio Grande do Norte'),
    (4772, 'Rio Grande do Sul'),
    (44668, 'Rochdale'),
    (4920, 'Rogaland'),
    (52, 'Romania'),
    (4770, 'Rond�nia'),
    (4771, 'Roraima'),
    (44689, 'Rotherham'),
    (62, 'Russian Federation'),
    (44696, 'Rutland'),
    (185, 'Rwanda'),
    (35464, 'Saga'),
    (393, 'Saint Kitts and Nevis'),
    (116, 'Saint Lucia'),
    (117, 'Saint Vincent and the Grenadines'),
    (35434, 'Saitama'),
    (44673, 'Salford'),
    (35653, 'Samburu'),
    (27, 'Samoa'),
    (4666, 'San Luis Potos�'),
    (396, 'San Marino'),
    (44715, 'Sandwell'),
    (4773, 'Santa Catarina'),
    (215, 'Sao Tome and Principe'),
    (152, 'Saudi Arabia'),
    (434, 'Scotland'),
    (44659, 'Sefton'),
    (44890, 'Semnan'),
    (216, 'Senegal'),
    (53, 'Serbia'),
    (4774, 'Sergipe'),
    (186, 'Seychelles'),
    (44687, 'Sheffield'),
    (35448, 'Shiga'),
    (35455, 'Shimane'),
    (35445, 'Shizuoka'),
    (44705, 'Shropshire'),
    (35654, 'Siaya'),
    (217, 'Sierra Leone'),
    (4667, 'Sinaloa'),
    (53621, 'Sindh'),
    (69, 'Singapore'),
    (44891, 'Sistan and Baluchistan'),
    (44777, 'Slough'),
    (54, 'Slovakia'),
    (55, 'Slovenia'),
    (44704, 'Solihull'),
    (28, 'Solomon Islands'),
    (44856, 'Somali'),
    (187, 'Somalia'),
    (44786, 'Somerset'),
    (4668, 'Sonora'),
    (196, 'South Africa'),
    (158, 'South Asia'),
    (159, 'South Asia'),
    (244, 'South Asia - WB'),
    (563, 'South Carolina'),
    (564, 'South Dakota'),
    (4625, 'South East England'),
    (44778, 'South Gloucestershire'),
    (4731, 'South Kalimantan'),
    (44881, 'South Khorasan'),
    (435, 'South Sudan'),
    (4735, 'South Sulawesi'),
    (4714, 'South Sumatra'),
    (44652, 'South Tyneside'),
    (4626, 'South West England'),
    (44565, 'South-East Asia Region'),
    (44776, 'Southampton'),
    (9, 'Southeast Asia'),
    (4, 'Southeast Asia, East Asia, and Oceania'),
    (4736, 'Southeast Sulawesi'),
    (44724, 'Southend-on-Sea'),
    (96, 'Southern Latin America'),
    (44858, 'Southern Nations, Nationalities, and Peoples'),
    (192, 'Southern Sub-Saharan Africa'),
    (44752, 'Southwark'),
    (92, 'Spain'),
    (17, 'Sri Lanka'),
    (44665, 'St Helens'),
    (44707, 'Staffordshire'),
    (4944, 'Stockholm'),
    (44656, 'Stockport'),
    (44645, 'Stockton-on-Tees'),
    (44711, 'Stoke-on-Trent'),
    (166, 'Sub-Saharan Africa'),
    (242, 'Sub-Saharan Africa - WB'),
    (522, 'Sudan'),
    (44718, 'Suffolk'),
    (44653, 'Sunderland'),
    (118, 'Suriname'),
    (44761, 'Surrey'),
    (44739, 'Sutton'),
    (93, 'Sweden'),
    (4940, 'Sweden except Stockholm'),
    (44787, 'Swindon'),
    (94, 'Switzerland'),
    (153, 'Syrian Arab Republic'),
    (4775, 'S�o Paulo'),
    (35436, 'T?ky?'),
    (4669, 'Tabasco'),
    (35655, 'TaitaTaveta'),
    (8, 'Taiwan (Province of China)'),
    (39, 'Tajikistan'),
    (4670, 'Tamaulipas'),
    (44672, 'Tameside'),
    (35656, 'TanaRiver'),
    (44892, 'Tehran'),
    (44710, 'Telford and Wrekin'),
    (565, 'Tennessee'),
    (566, 'Texas'),
    (18, 'Thailand'),
    (35657, 'TharakaNithi'),
    (44722, 'Thurrock'),
    (44852, 'Tigray'),
    (19, 'Timor-Leste'),
    (4671, 'Tlaxcala'),
    (4776, 'Tocantins'),
    (35432, 'Tochigi'),
    (218, 'Togo'),
    (413, 'Tokelau'),
    (35459, 'Tokushima'),
    (29, 'Tonga'),
    (44788, 'Torbay'),
    (35454, 'Tottori'),
    (44758, 'Tower Hamlets'),
    (35439, 'Toyama'),
    (44657, 'Trafford'),
    (35658, 'TransNzoia'),
    (119, 'Trinidad and Tobago'),
    (60137, 'Troms og Finnmark'),
    (134, 'Tropical Latin America'),
    (53432, 'Tr�ndelag'),
    (154, 'Tunisia'),
    (35659, 'Turkana'),
    (155, 'Turkey'),
    (40, 'Turkmenistan'),
    (416, 'Tuvalu'),
    (35660, 'UasinGishu'),
    (190, 'Uganda'),
    (63, 'Ukraine'),
    (156, 'United Arab Emirates'),
    (95, 'United Kingdom'),
    (189, 'United Republic of Tanzania'),
    (102, 'United States of America'),
    (422, 'United States Virgin Islands'),
    (99, 'Uruguay'),
    (567, 'Utah'),
    (41, 'Uzbekistan'),
    (30, 'Vanuatu'),
    (133, 'Venezuela (Bolivarian Republic of)'),
    (4672, 'Veracruz de Ignacio de la Llave'),
    (568, 'Vermont'),
    (60134, 'Vestfold og Telemark'),
    (60132, 'Vestland'),
    (20, 'Viet Nam'),
    (35661, 'Vihiga'),
    (60136, 'Viken'),
    (569, 'Virginia'),
    (35662, 'Wajir'),
    (35453, 'Wakayama'),
    (44688, 'Wakefield'),
    (4636, 'Wales'),
    (44712, 'Walsall'),
    (44747, 'Waltham Forest'),
    (44746, 'Wandsworth'),
    (44666, 'Warrington'),
    (44702, 'Warwickshire'),
    (570, 'Washington'),
    (44867, 'West Azarbayejan'),
    (44763, 'West Berkshire'),
    (4721, 'West Java'),
    (4729, 'West Kalimantan'),
    (4622, 'West Midlands'),
    (4727, 'West Nusa Tenggara'),
    (4741, 'West Papua'),
    (4738, 'West Sulawesi'),
    (4711, 'West Sumatra'),
    (44766, 'West Sussex'),
    (571, 'West Virginia'),
    (490, 'Western Cape'),
    (73, 'Western Europe'),
    (44568, 'Western Pacific Region'),
    (199, 'Western Sub-Saharan Africa'),
    (44730, 'Westminster'),
    (35663, 'WestPokot'),
    (479, 'WHO region'),
    (44669, 'Wigan'),
    (44780, 'Wiltshire'),
    (44762, 'Windsor and Maidenhead'),
    (44663, 'Wirral'),
    (572, 'Wisconsin'),
    (44759, 'Wokingham'),
    (44713, 'Wolverhampton'),
    (44706, 'Worcestershire'),
    (44575, 'World Bank High Income'),
    (44591, 'World Bank Income Levels'),
    (44578, 'World Bank Low Income'),
    (44577, 'World Bank Lower Middle Income'),
    (478, 'World Bank Regions'),
    (44576, 'World Bank Upper Middle Income'),
    (573, 'Wyoming'),
    (35429, 'Yamagata'),
    (35458, 'Yamaguchi'),
    (35442, 'Yamanashi'),
    (44893, 'Yazd'),
    (157, 'Yemen'),
    (4723, 'Yogyakarta'),
    (44680, 'York'),
    (4620, 'Yorkshire and the Humber'),
    (4673, 'Yucat�n'),
    (4674, 'Zacatecas'),
    (191, 'Zambia'),
    (44894, 'Zanjan'),
    (198, 'Zimbabwe')
;


CREATE TABLE "DiseaseBurden".burdens (
    measure_id int4 NOT NULL,
    location_id int4 NOT NULL,
    sex_id int4 NOT NULL,
    age_id int4 NOT NULL,
    cause_id int4 NOT NULL,
    metric_id int4 NOT NULL,
    "year" date NOT NULL,
    val float8 NOT NULL,
    upper_95 float8 NOT NULL,
    lower_95 float8 NOT NULL
    CONSTRAINT burdens_pk PRIMARY KEY (measure_id, location_id, sex_id, age_id, cause_id, metric_id, "year"),
);
-- Column comments

COMMENT ON COLUMN "DiseaseBurden".burdens.val IS 'Represents the mean value';
COMMENT ON COLUMN "DiseaseBurden".burdens.upper_95 IS 'Upper bound on 95% confidence interval';
COMMENT ON COLUMN "DiseaseBurden".burdens.lower_95 IS 'Lower bound on 95% confidence interval';
