--This SQL script produces a table for the statistic of interest with the defined Get Data Out groups for oesophageal and stomach.
--Run on CASREF01
--oesophageal and stomach tumour cohort for GDO
with tumour_cohort_oes as
(
select t.tumourid
, t.diagnosisyear
, t.site_icd10_o2
, s.site
, s.oesophageal_subsite
, s.stomach_subsite
, nvl(avte.morph_icdo3rev2011,8000) as morph_icdo3rev2011
, nvl(avte.stage_best_1901,'X') as stage_best
, t.age
from av2017.at_tumour_england t
left join av2017.at_tumour_experimental_england avte on t.tumourid = avte.tumourid
left join analysischarlieturner.GDO_OES_STOMACH_SITES s on t.site_icd10_o2 = s.site_icd10_o2 and nvl(avte.morph_icdo3rev2011,'8000') = nvl(s.morph_icdo3rev2011,'8000')
where
t.diagnosisyear in ('2013','2014','2015','2016','2017')
-- This is all of stomach and oeosphagus
and t.site_icd10_o2_3char in ('C15', 'C16')
--Standard NCRAS cohort filters
-- Only finals
and t.statusofregistration = 'F'
-- Only English
and t.ctry_code = 'E'
-- Only known sex, no sex = 9
and t.sex in ('1','2')
-- Not duplicates:
and t.dedup_flag = 1
and t.age between 0 and 200
)
,
statisticofinterest_oes as
(select tumourid, 1 as statisticofinterest_oes from tumour_cohort_oes),
tumour_cohort_linked_oes AS ( SELECT * FROM tumour_cohort_oes tc_oes
LEFT JOIN statisticofinterest_oes ON statisticofinterest_oes.tumourid = tc_oes.tumourid
LEFT JOIN ANALYSISCHARLIETURNER.stages ON ANALYSISCHARLIETURNER.stages.STAGE_BEST = tc_oes.STAGE_BEST
LEFT JOIN ANALYSISCHARLIETURNER.ages ages ON ages.AGE = tc_oes.AGE
LEFT JOIN ANALYSISCHARLIETURNER.GDO_OES_STOMACH_MORPH morph ON morph.MORPH_ICDO3REV2011 = tc_oes.MORPH_ICDO3REV2011)
, extractpartition_oes as (
SELECT '2013' AS "Year",
'All' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2013' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2013'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2014' AS "Year",
'All' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2014' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2014'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2015' AS "Year",
'All' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2015'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2016' AS "Year",
'All' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2016'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2017' AS "Year",
'All' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR = '2017'
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2013-2015' AS "Year",
'All' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2013-2015' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2013 AND 2015
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2014-2016' AS "Year",
'All' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2014-2016' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2014 AND 2016
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2015-2017' AS "Year",
'All' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-59' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 00-59'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 60-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 60-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_60_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Lower third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Lower third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1-3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 1-3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage 4'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Overlapping lesion and unspecified'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_SPLIT13 = 'Stage unknown'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'ADC'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'All' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 00-69' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'Age 70+' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Oesophagus' AS "Tumour Type",
'All' AS "Age",
'SCC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Upper and middle third' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Oesophagus'
AND OESOPHAGEAL_SUBSITE = 'Upper and middle third'
AND OESOPHAGEAL_MORPHOLOGY = 'SCC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'All' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_70 = 'Age 70+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Cardia and oesophagogastric junction' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Cardia and oesophagogastric junction'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 00-79'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Non-Cardia' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Non-Cardia'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_80 = 'Age 80+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'All' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 1' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 1'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 2' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 2'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 3' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 3'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage 4' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage 4'
AND SPLIT_70_80 = 'Age 80+'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'ADC' AS "Tumour Type 3",
'Stage unknown' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'ADC'
AND STAGE_1234X = 'Stage unknown'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'All' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 00-69' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 00-69'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 70-79' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 70-79'
UNION ALL
SELECT '2015-2017' AS "Year",
'Stomach' AS "Tumour Type",
'Age 80+' AS "Age",
'Other' AS "Tumour Type 3",
'All' AS "Stage",
'Overlapping lesion and unspecified' AS "Tumour Type 2",
SUM(statisticofinterest_oes) as statistic_of_interest
FROM tumour_cohort_linked_oes
WHERE DIAGNOSISYEAR BETWEEN 2015 AND 2017
AND SITE = 'Stomach'
AND STOMACH_SUBSITE = 'Overlapping lesion and unspecified'
AND STOMACH_MORPHOLOGY = 'Other'
AND SPLIT_70_80 = 'Age 80+'
) ,
lsoatoregionlookup
as
(
select distinct lsoa11, nhser17nm as Region from nspl_201805
left outer join ANALYSISNCR.CCG18_NHSER17_18_LKP_DATALAKE nr
on nspl_201805.ccg = nr.ccgapr18cd
where substr(lsoa11,1,1) = 'E'
)
, lsoatoalllookup
as
(
select distinct lsoa11, 'All' as Region from nspl_201805
where substr(lsoa11,1,1) = 'E'
)
, geoglookup as
(select * from lsoatoregionlookup
union
select * from lsoatoalllookup)
/*
reminding myself how dual works:
select rownum from dual;
select rownum from dual
-- LAST YEAR NEEDED
connect by level <= 3;
*/
,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 look up
-- This is hacky, there must be a better way?
-- But it does produce a look up table for 2013-2017
-- and also the three year rolling groups for 2013-2017
,yearlookup
as
(
select n as baseyear
, to_char(n) as year
from
( select rownum n from dual
-- LAST YEAR NEEDED
connect by level <= 2017
)
-- FIRST YEAR NEEDED
where n >= 2013
UNION
select n as baseyear
, '2013-2015' as year
from
( select rownum n from dual
-- LAST YEAR NEEDED
connect by level <= 2015
)
-- FIRST YEAR NEEDED
where n >= 2013
UNION
select n as baseyear
, '2014-2016' as year
from
( select rownum n from dual
-- LAST YEAR NEEDED
connect by level <= 2016
)
-- FIRST YEAR NEEDED
where n >= 2014
UNION
select n as baseyear
, '2015-2017' as year
from
( select rownum n from dual
-- LAST YEAR NEEDED
connect by level <= 2017
)
-- FIRST YEAR NEEDED
where n >= 2015
)
-- Making age lookup.
--select * from analysischarlieturner.ages;
-- We don't have a systematic 'we definitely used this age partition'
-- So we should assume any age partition in the age table could be being used.
-- There are currently 30 age partitions.
-- This is a bit tedious.
-- You can at least get a list of them:
/*
select COLUMN_NAME from ALL_TAB_COLUMNS
where owner = 'ANALYSISCHARLIETURNER'
and TABLE_NAME = 'AGES'
order by COLUMN_NAME;
*/
-- If I had grip, I would write some R to automate creating this table
-- Instead I did it in Excel
, agelookup
as
(
select distinct floor(AGES.AGE/5)+1 as baseage, 'All' as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_13_25_40_60_80 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_20_30_50_70 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_20_40 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_20_50_70 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_20_50_70_80 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_20_TO_40 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_20_TO_90 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_25 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_25_40_60 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_25_40_60_80 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_25_40_TO_80 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_25_50 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_30 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_30_50 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_30_50_70 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_30_50_70_80 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_30_TO_50 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_30_TO_70 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_35 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_40 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_40_TO_70 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_5_THEN_10 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_50 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_50_70 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_50_70_80 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_50_TO_70 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_50_TO_80 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_5_10_20_30_50_70 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_60 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_60_70 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_60_70_75_80 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_60_TO_80 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_70 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_70_75_80 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_70_80 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, SPLIT_80 as age from analysischarlieturner.ages
UNION
select distinct floor(AGES.AGE/5)+1 as baseage, TENYEARAGE as age from analysischarlieturner.ages)
-- So, I have a region lookup, a sex lookup, a year lookup, and an age lookup.
-- We have no joins for the Welsh LSOAs and for the years before 2013.
-- But that is what we wanted
-- All ages and sexs have joined to something.
, population_table as
(
select g.region, s.sex, y.year, a.age, sum(popcount) as popcount from ons2017.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
)
,
oes as(
SELECT
'Oesophageal and stomach' AS "Cancer Site",
"Year" AS "Year",
"Tumour Type" AS "Tumour Type",
"Tumour Type 2" AS "Tumour Type 2",
"Tumour Type 3" AS "Tumour Type 3",
'All' AS "Basis of Diagnosis",
case when "Stage" = 'All' then 'All stages' else "Stage" end AS "Stage",
'Not split by stage detail' AS "Stage detail",
case when "Age" = 'All' then 'All ages' else "Age" end AS "Age",
'All England' AS "Region",
'Persons' AS "Sex",
'Not split by grade' AS "Grade",
'Not split by nodal status' AS "Nodal Status",
statistic_of_interest as "statistic_of_interest",
pops.popcount as "Population"
from extractpartition_oes ep
left outer join population_table pops
on ep."Year" = pops.year
and ep."Age" = pops.age
where pops.region ='All'
and pops.sex='All'
)
select * from oes;