--GDO ovary incidence code with --AGE CTE AGE_DATA as ( select * from GDO.age)--STAGE CTE , STAGE_DATA as ( select * from GDO.stage), tumour_cohort_ovary as ( select t.tumourid , t.diagnosisyear , case when (t.SITE_ICD10R4_O2_FROM2013 = 'D391' or e.stage_pi_2109 = 'Y') then nvl(e.stage_best_2109,'X') else 'X' end as stage_best , t.age , case when t.SITE_ICD10R4_O2_FROM2013 in ('C577','C578','C579') then 'Non-specific site' else morph_cat_3 end as morph_cat_3 from av2019.av_tumour_england t left join av2019.av_tumour_experimental_england e on t.tumourid=e.tumourid left outer join GDO.morph_ovary tt --left outer join analysischarlieturner.ova_tum_types tt on substr(t.SITE_ICD10R4_O2_FROM2013,1,1) = tt.site_icd10 and nvl(t.morph_icd10_o2,8000) = tt.morph_icd10_o2 where (t.SITE_ICD10R4_O2_3CHAR_FROM2013 in ('C56', 'C57') OR -- for C48, restrict to women and remove sarcomas (follows CAS-SOP 4.2 and Becca Elleray's code) (t.SITE_ICD10R4_O2_3CHAR_FROM2013 in ('C48') and (t.morph_icd10_o2 not in (8693, 8800, 8801, 8802, 8803, 8804, 8805, 8806, 8810, 8963, 8990, 8991, 9040, 9041, 9042, 9043, 9044, 9490, 9500) and (t.morph_icd10_o2 not between 8811 and 8921) and (t.morph_icd10_o2 not between 9120 and 9373) and (t.morph_icd10_o2 not between 9530 and 9582) and sex=2 --- this is duplication, but reminds people to do it for the C48 split. ) OR t.SITE_ICD10R4_O2_FROM2013 in ('D391') ) ) -- standard filters and t.statusofregistration like 'F' and t.ctry_code like 'E' and t.dedup_flag=1 -- Excluding duplicates and t.age between 0 and 200 -- Sensible age and t.sex = 2 -- Sex is female for ovarian -- diagnosis year in initial range and t.diagnosisyear between 2013 and 2019 ) , statisticofinterest_ovary as (select tumourid as tumourid_1, 1 as statisticofinterest_ovary from tumour_cohort_ovary), tumour_cohort_linked_ovary AS ( SELECT * FROM tumour_cohort_ovary tc_ovary LEFT JOIN statisticofinterest_ovary ON statisticofinterest_ovary.tumourid_1 = tc_ovary.tumourid LEFT JOIN STAGE_DATA stages ON stages.STAGE_BEST = tc_ovary.STAGE_BEST LEFT JOIN AGE_DATA ages ON ages.AGE = tc_ovary.AGE) , extractpartition_ovary as ( SELECT '2013' AS "Year", 'All' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' UNION ALL SELECT '2013' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Borderline' UNION ALL SELECT '2013' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 00-29' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 00-29' UNION ALL SELECT '2013' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 30-39' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 30-39' UNION ALL SELECT '2013' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 40-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 40-49' UNION ALL SELECT '2013' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 50-59' UNION ALL SELECT '2013' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 60-69' UNION ALL SELECT '2013' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 70+' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 00-49' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 50-59' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 60-69' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 70+' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 00-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 00-59' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 60-69' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 70-79' UNION ALL SELECT '2013' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 80+' UNION ALL SELECT '2013' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' UNION ALL SELECT '2013' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 00-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 00-69' UNION ALL SELECT '2013' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 70-79' UNION ALL SELECT '2013' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 80+' UNION ALL SELECT '2013' AS "Year", 'Non-specific site' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Non-specific site' UNION ALL SELECT '2013' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' UNION ALL SELECT '2013' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 00-49' UNION ALL SELECT '2013' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 50+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2013' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 50+' UNION ALL SELECT '2014' AS "Year", 'All' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' UNION ALL SELECT '2014' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Borderline' UNION ALL SELECT '2014' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 00-29' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 00-29' UNION ALL SELECT '2014' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 30-39' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 30-39' UNION ALL SELECT '2014' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 40-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 40-49' UNION ALL SELECT '2014' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 50-59' UNION ALL SELECT '2014' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 60-69' UNION ALL SELECT '2014' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 70+' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 00-49' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 50-59' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 60-69' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 70+' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 00-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 00-59' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 60-69' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 70-79' UNION ALL SELECT '2014' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 80+' UNION ALL SELECT '2014' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' UNION ALL SELECT '2014' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 00-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 00-69' UNION ALL SELECT '2014' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 70-79' UNION ALL SELECT '2014' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 80+' UNION ALL SELECT '2014' AS "Year", 'Non-specific site' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Non-specific site' UNION ALL SELECT '2014' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' UNION ALL SELECT '2014' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 00-49' UNION ALL SELECT '2014' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 50+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2014' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 50+' UNION ALL SELECT '2015' AS "Year", 'All' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' UNION ALL SELECT '2015' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Borderline' UNION ALL SELECT '2015' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 00-29' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 00-29' UNION ALL SELECT '2015' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 30-39' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 30-39' UNION ALL SELECT '2015' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 40-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 40-49' UNION ALL SELECT '2015' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 50-59' UNION ALL SELECT '2015' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 60-69' UNION ALL SELECT '2015' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 70+' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 00-49' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 50-59' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 60-69' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 70+' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 00-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 00-59' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 60-69' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 70-79' UNION ALL SELECT '2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 80+' UNION ALL SELECT '2015' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' UNION ALL SELECT '2015' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 00-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 00-69' UNION ALL SELECT '2015' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 70-79' UNION ALL SELECT '2015' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 80+' UNION ALL SELECT '2015' AS "Year", 'Non-specific site' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Non-specific site' UNION ALL SELECT '2015' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' UNION ALL SELECT '2015' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 00-49' UNION ALL SELECT '2015' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 50+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2015' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 50+' UNION ALL SELECT '2016' AS "Year", 'All' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' UNION ALL SELECT '2016' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Borderline' UNION ALL SELECT '2016' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 00-29' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 00-29' UNION ALL SELECT '2016' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 30-39' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 30-39' UNION ALL SELECT '2016' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 40-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 40-49' UNION ALL SELECT '2016' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 50-59' UNION ALL SELECT '2016' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 60-69' UNION ALL SELECT '2016' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 70+' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 00-49' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 50-59' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 60-69' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 70+' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 00-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 00-59' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 60-69' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 70-79' UNION ALL SELECT '2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 80+' UNION ALL SELECT '2016' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' UNION ALL SELECT '2016' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 00-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 00-69' UNION ALL SELECT '2016' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 70-79' UNION ALL SELECT '2016' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 80+' UNION ALL SELECT '2016' AS "Year", 'Non-specific site' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Non-specific site' UNION ALL SELECT '2016' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' UNION ALL SELECT '2016' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 00-49' UNION ALL SELECT '2016' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 50+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2016' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 50+' UNION ALL SELECT '2017' AS "Year", 'All' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' UNION ALL SELECT '2017' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Borderline' UNION ALL SELECT '2017' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 00-29' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 00-29' UNION ALL SELECT '2017' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 30-39' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 30-39' UNION ALL SELECT '2017' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 40-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 40-49' UNION ALL SELECT '2017' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 50-59' UNION ALL SELECT '2017' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 60-69' UNION ALL SELECT '2017' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 70+' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 00-49' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 50-59' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 60-69' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 70+' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 00-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 00-59' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 60-69' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 70-79' UNION ALL SELECT '2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 80+' UNION ALL SELECT '2017' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' UNION ALL SELECT '2017' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 00-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 00-69' UNION ALL SELECT '2017' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 70-79' UNION ALL SELECT '2017' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 80+' UNION ALL SELECT '2017' AS "Year", 'Non-specific site' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Non-specific site' UNION ALL SELECT '2017' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' UNION ALL SELECT '2017' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 00-49' UNION ALL SELECT '2017' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 50+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2017' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 50+' UNION ALL SELECT '2018' AS "Year", 'All' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' UNION ALL SELECT '2018' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Borderline' UNION ALL SELECT '2018' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 00-29' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 00-29' UNION ALL SELECT '2018' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 30-39' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 30-39' UNION ALL SELECT '2018' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 40-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 40-49' UNION ALL SELECT '2018' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 50-59' UNION ALL SELECT '2018' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 60-69' UNION ALL SELECT '2018' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 70+' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 00-49' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 50-59' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 60-69' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 70+' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 00-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 00-59' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 60-69' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 70-79' UNION ALL SELECT '2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 80+' UNION ALL SELECT '2018' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' UNION ALL SELECT '2018' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 00-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 00-69' UNION ALL SELECT '2018' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 70-79' UNION ALL SELECT '2018' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 80+' UNION ALL SELECT '2018' AS "Year", 'Non-specific site' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Non-specific site' UNION ALL SELECT '2018' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' UNION ALL SELECT '2018' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 00-49' UNION ALL SELECT '2018' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 50+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2018' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 50+' UNION ALL SELECT '2019' AS "Year", 'All' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' UNION ALL SELECT '2019' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Borderline' UNION ALL SELECT '2019' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 00-29' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 00-29' UNION ALL SELECT '2019' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 30-39' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 30-39' UNION ALL SELECT '2019' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 40-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 40-49' UNION ALL SELECT '2019' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 50-59' UNION ALL SELECT '2019' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 60-69' UNION ALL SELECT '2019' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 70+' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 00-49' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 50-59' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 60-69' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 70+' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 00-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 00-59' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 60-69' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 70-79' UNION ALL SELECT '2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 80+' UNION ALL SELECT '2019' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' UNION ALL SELECT '2019' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 00-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 00-69' UNION ALL SELECT '2019' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 70-79' UNION ALL SELECT '2019' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 80+' UNION ALL SELECT '2019' AS "Year", 'Non-specific site' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Non-specific site' UNION ALL SELECT '2019' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' UNION ALL SELECT '2019' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 00-49' UNION ALL SELECT '2019' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 50+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR = '2019' AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 50+' UNION ALL SELECT '2013-2015' AS "Year", 'All' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 UNION ALL SELECT '2013-2015' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Borderline' UNION ALL SELECT '2013-2015' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 00-29' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 00-29' UNION ALL SELECT '2013-2015' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 30-39' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 30-39' UNION ALL SELECT '2013-2015' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 40-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 40-49' UNION ALL SELECT '2013-2015' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 50-59' UNION ALL SELECT '2013-2015' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 60-69' UNION ALL SELECT '2013-2015' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 70+' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 00-49' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 50-59' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 60-69' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 70+' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 00-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 00-59' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 60-69' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 70-79' UNION ALL SELECT '2013-2015' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 80+' UNION ALL SELECT '2013-2015' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' UNION ALL SELECT '2013-2015' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 00-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 00-69' UNION ALL SELECT '2013-2015' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 70-79' UNION ALL SELECT '2013-2015' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 80+' UNION ALL SELECT '2013-2015' AS "Year", 'Non-specific site' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Non-specific site' UNION ALL SELECT '2013-2015' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' UNION ALL SELECT '2013-2015' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 00-49' UNION ALL SELECT '2013-2015' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 50+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 50+' UNION ALL SELECT '2014-2016' AS "Year", 'All' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 UNION ALL SELECT '2014-2016' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Borderline' UNION ALL SELECT '2014-2016' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 00-29' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 00-29' UNION ALL SELECT '2014-2016' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 30-39' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 30-39' UNION ALL SELECT '2014-2016' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 40-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 40-49' UNION ALL SELECT '2014-2016' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 50-59' UNION ALL SELECT '2014-2016' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 60-69' UNION ALL SELECT '2014-2016' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 70+' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 00-49' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 50-59' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 60-69' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 70+' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 00-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 00-59' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 60-69' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 70-79' UNION ALL SELECT '2014-2016' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 80+' UNION ALL SELECT '2014-2016' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' UNION ALL SELECT '2014-2016' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 00-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 00-69' UNION ALL SELECT '2014-2016' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 70-79' UNION ALL SELECT '2014-2016' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 80+' UNION ALL SELECT '2014-2016' AS "Year", 'Non-specific site' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Non-specific site' UNION ALL SELECT '2014-2016' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' UNION ALL SELECT '2014-2016' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 00-49' UNION ALL SELECT '2014-2016' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 50+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 50+' UNION ALL SELECT '2015-2017' AS "Year", 'All' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 UNION ALL SELECT '2015-2017' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Borderline' UNION ALL SELECT '2015-2017' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 00-29' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 00-29' UNION ALL SELECT '2015-2017' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 30-39' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 30-39' UNION ALL SELECT '2015-2017' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 40-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 40-49' UNION ALL SELECT '2015-2017' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 50-59' UNION ALL SELECT '2015-2017' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 60-69' UNION ALL SELECT '2015-2017' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 70+' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 00-49' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 50-59' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 60-69' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 70+' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 00-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 00-59' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 60-69' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 70-79' UNION ALL SELECT '2015-2017' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 80+' UNION ALL SELECT '2015-2017' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' UNION ALL SELECT '2015-2017' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 00-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 00-69' UNION ALL SELECT '2015-2017' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 70-79' UNION ALL SELECT '2015-2017' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 80+' UNION ALL SELECT '2015-2017' AS "Year", 'Non-specific site' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Non-specific site' UNION ALL SELECT '2015-2017' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' UNION ALL SELECT '2015-2017' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 00-49' UNION ALL SELECT '2015-2017' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 50+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 50+' UNION ALL SELECT '2016-2018' AS "Year", 'All' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 UNION ALL SELECT '2016-2018' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Borderline' UNION ALL SELECT '2016-2018' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 00-29' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 00-29' UNION ALL SELECT '2016-2018' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 30-39' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 30-39' UNION ALL SELECT '2016-2018' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 40-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 40-49' UNION ALL SELECT '2016-2018' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 50-59' UNION ALL SELECT '2016-2018' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 60-69' UNION ALL SELECT '2016-2018' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 70+' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 00-49' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 50-59' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 60-69' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 70+' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 00-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 00-59' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 60-69' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 70-79' UNION ALL SELECT '2016-2018' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 80+' UNION ALL SELECT '2016-2018' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' UNION ALL SELECT '2016-2018' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 00-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 00-69' UNION ALL SELECT '2016-2018' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 70-79' UNION ALL SELECT '2016-2018' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 80+' UNION ALL SELECT '2016-2018' AS "Year", 'Non-specific site' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Non-specific site' UNION ALL SELECT '2016-2018' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' UNION ALL SELECT '2016-2018' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 00-49' UNION ALL SELECT '2016-2018' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 50+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2016 AND 2018 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 50+' UNION ALL SELECT '2017-2019' AS "Year", 'All' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 UNION ALL SELECT '2017-2019' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Borderline' UNION ALL SELECT '2017-2019' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 00-29' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 00-29' UNION ALL SELECT '2017-2019' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 30-39' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 30-39' UNION ALL SELECT '2017-2019' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 40-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 40-49' UNION ALL SELECT '2017-2019' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 50-59' UNION ALL SELECT '2017-2019' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 60-69' UNION ALL SELECT '2017-2019' AS "Year", 'Borderline' AS "Tumour Type", 'All' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Borderline' AND SPLIT_30_TO_70 = 'Age 70+' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 00-49' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 50-59' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 60-69' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 1' AS "Stage", 'Age 70+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 1' AND SPLIT_50_TO_70 = 'Age 70+' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 2-3' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 2-3' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 00-49' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 50-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 50-59' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 60-69' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 70-79' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage 4' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage 4' AND SPLIT_50_TO_80 = 'Age 80+' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 00-59' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 00-59' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 60-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 60-69' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 70-79' UNION ALL SELECT '2017-2019' AS "Year", 'Malignant epithelial' AS "Tumour Type", 'Stage unknown' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Malignant epithelial' AND STAGE_SPLIT14 = 'Stage unknown' AND SPLIT_60_TO_80 = 'Age 80+' UNION ALL SELECT '2017-2019' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' UNION ALL SELECT '2017-2019' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 00-69' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 00-69' UNION ALL SELECT '2017-2019' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 70-79' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 70-79' UNION ALL SELECT '2017-2019' AS "Year", 'Miscellaneous and unspecified' AS "Tumour Type", 'All' AS "Stage", 'Age 80+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Miscellaneous and unspecified' AND SPLIT_70_80 = 'Age 80+' UNION ALL SELECT '2017-2019' AS "Year", 'Non-specific site' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Non-specific site' UNION ALL SELECT '2017-2019' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'All' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' UNION ALL SELECT '2017-2019' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 00-49' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 00-49' UNION ALL SELECT '2017-2019' AS "Year", 'Sex cord-stromal and germ cell' AS "Tumour Type", 'All' AS "Stage", 'Age 50+' AS "Age", SUM(statisticofinterest_ovary) as statistic_of_interest FROM tumour_cohort_linked_ovary WHERE DIAGNOSISYEAR BETWEEN 2017 AND 2019 AND MORPH_CAT_3 = 'Sex cord-stromal and germ cell' AND SPLIT_50 = 'Age 50+' ) , --Geography lookup lsoatoregionlookup as ( select distinct lsoa11_code as lsoa11, case when nhs_region_2021_name in ('East of England','Midlands') then 'Midlands and East of England' when nhs_region_2021_name in ('North West', 'North East and Yorkshire') then 'North of England' when nhs_region_2021_name in ('South West','South East') then 'South of England' else nhs_region_2021_name end as region from av2019.at_geography_england where substr(lsoa11_code,1,1) = 'E' ),lsoatoalllookup as( select distinct lsoa11_code as lsoa11, 'All' as region from av2019.at_geography_england where substr(lsoa11_code,1,1) = 'E') , geoglookup as ( select * from lsoatoregionlookup union select * from lsoatoalllookup) --Sex lookup , sexlookup as ( select 1 as basesex, '1' as sex from dual union select 2 as basesex, '2' as sex from dual union select 1 as basesex, 'All' as sex from dual union select 2 as basesex, 'All' as sex from dual) --Year lookup --Select single years ,yearlookup as ( select n as baseyear , to_char(n) as year from (select rownum n from dual --Last year connect by level <=2019 ) --First year where n >=2013 UNION select n as baseyear ,'2013-2015' as year from (select rownum n from dual --Last year connect by level <=2015 ) --First year where n >=2013 UNION select n as baseyear ,'2014-2016' as year from (select rownum n from dual --Last year connect by level <=2016 ) --First year where n >=2014 UNION select n as baseyear ,'2015-2017' as year from (select rownum n from dual --Last year connect by level <=2017 ) --First year where n >=2015 UNION select n as baseyear ,'2016-2018' as year from (select rownum n from dual --Last year connect by level <=2018 ) --First year where n >=2016 UNION select n as baseyear ,'2017-2019' as year from (select rownum n from dual --Last year connect by level <=2019 ) --First year where n >=2017 ) --Age lookup , agelookup as ( select distinct floor(AGE/5)+1 as baseage, 'All' as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, FIVEYEARAGE as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_50_70 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, TENYEARAGE as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_30_TO_70 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_70 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_50 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_50_TO_80 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_50_TO_70 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_70_80 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_20_50_70 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_20_50_70_80 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_30_50_70 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_30_50_70_80 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_60_70 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_60_TO_80 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_50_70_80 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_30 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_30_50 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_30_TO_50 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_20_40 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_20_TO_40 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_25 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_25_50 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_40 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_35 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_40_TO_70 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_5_10_20_30_50_70 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_20_30_50_70 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_20_TO_90 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_60_70_75_80 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_80 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_70_75_80 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_13_25_40_60_80 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_25_40_60_80 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_25_40_60 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_25_40_TO_80 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_5_THEN_10 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_60 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_60_80 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_40_TO_80 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_40_TO_90 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_25_70 as age from AGE_DATA UNION select distinct floor(AGE/5)+1 as baseage, SPLIT_25_60_TO_80 as age from AGE_DATA) --Populations table , population_table as ( select g.region, s.sex, y.year, a.age, sum(popcount) as popcount from ons2019.populations_normalised pops left outer join geoglookup g on pops.lsoa11 = g.lsoa11 left outer join sexlookup s on pops.sex = s.basesex left outer join yearlookup y on pops.year = y.baseyear left outer join agelookup a on pops.quinaryagegroupint = a.baseage group by g.region, s.sex, y.year, a.age ), ovary as( SELECT 'Ovary, fallopian tube and primary peritoneal carcinomas' AS "Cancer Site", "Year" AS "Year", "Tumour Type" AS "Tumour Type", 'All' AS "Tumour Type 2", 'All' AS "Tumour Type 3", 'Not split by Basis of Diagnosis' AS "Basis of Diagnosis", case when "Stage" = 'All' then 'All stages' else "Stage" end AS "Stage", 'Not split by Stage Detail' AS "Stage Detail", 'Not split by Stage Detail 2' AS "Stage Detail 2", case when "Age" = 'All' then 'All ages' else "Age" end AS "Age", 'All England' AS "Region", 'Female' AS "Sex", 'Not split by grade' AS "Grade", 'Not split by nodal status' AS "Nodal Status", statistic_of_interest as "Incidence", pops.popcount as "Population" from extractpartition_ovary ep left outer join population_table pops on ep."Year" = pops.year and ep."Age" = pops.age where pops.region ='All' and pops.sex='2' --End of code for ovary ) select * from ovary