-- DBMS: snowflake
create or replace TABLE CLINICAL_GDC_R24 (
	"submitter_id" VARCHAR(16777216),
	"case_id" VARCHAR(16777216),
	"diag__treat__count" NUMBER(38,0),
	"primary_site" VARCHAR(16777216),
	"disease_type" VARCHAR(16777216),
	"proj__name" VARCHAR(16777216),
	"proj__project_id" VARCHAR(16777216),
	"demo__demographic_id" VARCHAR(16777216),
	"demo__gender" VARCHAR(16777216),
	"demo__race" VARCHAR(16777216),
	"demo__ethnicity" VARCHAR(16777216),
	"demo__vital_status" VARCHAR(16777216),
	"demo__days_to_birth" FLOAT,
	"demo__year_of_birth" NUMBER(38,0),
	"demo__age_at_index" NUMBER(38,0),
	"demo__year_of_death" NUMBER(38,0),
	"demo__days_to_death" FLOAT,
	"demo__state" VARCHAR(16777216),
	"demo__created_datetime" VARCHAR(16777216),
	"demo__updated_datetime" VARCHAR(16777216),
	"diag__diagnosis_id" VARCHAR(16777216),
	"diag__ajcc_clinical_n" VARCHAR(16777216),
	"diag__masaoka_stage" VARCHAR(16777216),
	"diag__ajcc_clinical_m" VARCHAR(16777216),
	"diag__primary_diagnosis" VARCHAR(16777216),
	"diag__primary_gleason_grade" VARCHAR(16777216),
	"diag__year_of_diagnosis" NUMBER(38,0),
	"diag__figo_stage" VARCHAR(16777216),
	"diag__progression_or_recurrence" VARCHAR(16777216),
	"diag__ajcc_pathologic_m" VARCHAR(16777216),
	"diag__site_of_resection_or_biopsy" VARCHAR(16777216),
	"diag__ajcc_staging_system_edition" VARCHAR(16777216),
	"diag__icd_10_code" VARCHAR(16777216),
	"diag__age_at_diagnosis" NUMBER(38,0),
	"diag__ajcc_clinical_t" VARCHAR(16777216),
	"diag__days_to_last_follow_up" FLOAT,
	"diag__ajcc_pathologic_stage" VARCHAR(16777216),
	"diag__tumor_grade" VARCHAR(16777216),
	"diag__last_known_disease_status" VARCHAR(16777216),
	"diag__ann_arbor_extranodal_involvement" VARCHAR(16777216),
	"diag__ajcc_clinical_stage" VARCHAR(16777216),
	"diag__secondary_gleason_grade" VARCHAR(16777216),
	"diag__synchronous_malignancy" VARCHAR(16777216),
	"diag__morphology" VARCHAR(16777216),
	"diag__ajcc_pathologic_t" VARCHAR(16777216),
	"diag__igcccg_stage" VARCHAR(16777216),
	"diag__classification_of_tumor" VARCHAR(16777216),
	"diag__ann_arbor_clinical_stage" VARCHAR(16777216),
	"diag__ann_arbor_b_symptoms" VARCHAR(16777216),
	"diag__tumor_stage" VARCHAR(16777216),
	"diag__prior_treatment" VARCHAR(16777216),
	"diag__ajcc_pathologic_n" VARCHAR(16777216),
	"diag__tissue_or_organ_of_origin" VARCHAR(16777216),
	"diag__prior_malignancy" VARCHAR(16777216),
	"diag__state" VARCHAR(16777216),
	"diag__created_datetime" VARCHAR(16777216),
	"diag__updated_datetime" VARCHAR(16777216),
	"exp__exposure_id" VARCHAR(16777216),
	"exp__height" FLOAT,
	"exp__weight" FLOAT,
	"exp__bmi" FLOAT,
	"exp__years_smoked" FLOAT,
	"exp__pack_years_smoked" FLOAT,
	"exp__cigarettes_per_day" FLOAT,
	"exp__alcohol_history" VARCHAR(16777216),
	"exp__state" VARCHAR(16777216),
	"exp__created_datetime" VARCHAR(16777216),
	"exp__updated_datetime" VARCHAR(16777216),
	"state" VARCHAR(16777216),
	"updated_datetime" VARCHAR(16777216)
);

INSERT INTO "TCGA"."TCGA_VERSIONED"."CLINICAL_GDC_R24" (demo__year_of_birth, diag__updated_datetime, diag__state, demo__race, diag__prior_treatment, diag__ajcc_clinical_t, diag__last_known_disease_status, demo__vital_status, diag__year_of_diagnosis, exp__updated_datetime, exp__state, diag__primary_gleason_grade, primary_site, diag__tumor_stage, diag__ajcc_pathologic_m, exp__exposure_id, exp__years_smoked, diag__ajcc_pathologic_stage, state, diag__days_to_last_follow_up, diag__progression_or_recurrence, submitter_id, disease_type, proj__name, diag__primary_diagnosis, proj__project_id, case_id, diag__ajcc_clinical_stage, demo__gender, demo__ethnicity, diag__ajcc_clinical_m, diag__tumor_grade, diag__ajcc_pathologic_n, diag__igcccg_stage, diag__prior_malignancy, exp__height, demo__days_to_birth, demo__year_of_death, demo__updated_datetime, diag__ajcc_staging_system_edition, demo__age_at_index, diag__treat__count, diag__age_at_diagnosis, diag__diagnosis_id, demo__state, diag__ann_arbor_b_symptoms, diag__ann_arbor_extranodal_involvement, demo__demographic_id, diag__created_datetime, diag__masaoka_stage, updated_datetime, exp__alcohol_history, diag__synchronous_malignancy, diag__classification_of_tumor, diag__site_of_resection_or_biopsy, demo__created_datetime, diag__tissue_or_organ_of_origin, diag__secondary_gleason_grade, exp__cigarettes_per_day, diag__ajcc_clinical_n, exp__weight, diag__ann_arbor_clinical_stage, diag__morphology, diag__figo_stage, exp__pack_years_smoked, exp__created_datetime, exp__bmi, diag__ajcc_pathologic_t, diag__icd_10_code, demo__days_to_death) VALUES (1949, '2019-08-08T16:19:58.650144-05:00', 'released', 'white', 'No', NULL, 'not reported', 'Alive', 2004, '2019-07-31T21:21:01.590763-05:00', 'released', NULL, 'Breast', 'stage x', 'MX', '72f0be98-dffa-5d35-88fe-f9ca774d6db0', NULL, 'Stage X', 'released', 4047.0, 'not reported', 'TCGA-3C-AAAU', 'Ductal and Lobular Neoplasms', 'Breast Invasive Carcinoma', 'Lobular carcinoma, NOS', 'TCGA-BRCA', '6e7d5ec6-a469-467c-b748-237353c23416', NULL, 'female', 'not hispanic or latino', NULL, 'not reported', 'NX', NULL, 'no', NULL, -20211.0, nan, '2019-07-31T21:21:01.590763-05:00', '6th', 55, 2, 20211, '8cfb8afb-b915-5255-865b-a5923f47b351', 'released', NULL, NULL, 'cee0a94c-1d9e-5650-a500-a6b021fe138d', NULL, NULL, '2019-08-06T14:13:44.884705-05:00', 'Not Reported', 'No', 'not reported', 'Breast, NOS', NULL, 'Breast, NOS', NULL, NULL, NULL, NULL, NULL, '8520/3', NULL, NULL, NULL, NULL, 'TX', 'C50.9', nan), (1933, '2019-08-08T16:22:07.499730-05:00', 'released', 'not reported', 'No', NULL, 'not reported', 'Alive', 2009, '2019-07-31T22:01:30.125880-05:00', 'released', NULL, 'Breast', 'stage x', 'MX', 'c807c394-967d-59db-96e1-e546746f7fc4', NULL, 'Stage X', 'released', 304.0, 'not reported', 'TCGA-A8-A099', 'Ductal and Lobular Neoplasms', 'Breast Invasive Carcinoma', 'Infiltrating duct carcinoma, NOS', 'TCGA-BRCA', 'e98b69bc-766a-485f-b5e8-9166b8d457b3', NULL, 'female', 'not reported', NULL, 'not reported', 'N3a', NULL, 'no', NULL, -28063.0, nan, '2019-07-31T22:01:30.125880-05:00', '6th', 76, 2, 28063, 'ac4de228-4029-5115-a666-5560f6166b80', 'released', NULL, NULL, '5826870b-dcb8-5a6d-9007-c7a79e2f98e0', NULL, NULL, '2019-08-06T14:14:30.298341-05:00', 'Not Reported', 'No', 'not reported', 'Breast, NOS', NULL, 'Breast, NOS', NULL, NULL, NULL, NULL, NULL, '8500/3', NULL, NULL, NULL, NULL, 'T4b', 'C50.9', nan), (1902, '2019-08-08T16:24:46.807013-05:00', 'released', 'white', 'No', NULL, 'not reported', 'Dead', 1992, '2019-07-31T21:54:35.934301-05:00', 'released', NULL, 'Breast', 'stage x', 'MX', 'ec5e8dfd-5f29-5f33-b1b9-f5fdbc2352d3', NULL, 'Stage X', 'released', nan, 'not reported', 'TCGA-B6-A0IC', 'Ductal and Lobular Neoplasms', 'Breast Invasive Carcinoma', 'Intraductal papillary adenocarcinoma with invasion', 'TCGA-BRCA', 'b804f7ae-da8f-4414-be11-f880f1859160', NULL, 'female', 'not hispanic or latino', NULL, 'not reported', 'NX', NULL, 'no', NULL, -32872.0, 1996.0, '2019-07-31T21:54:35.934301-05:00', '3rd', 90, 2, 32872, 'a12be7b3-4b65-5bb7-83b1-4dc7b90359f8', 'released', NULL, NULL, '94f127d7-5901-54b3-8d03-4e34170270f2', NULL, NULL, '2019-08-06T14:15:27.659269-05:00', 'Not Reported', 'No', 'not reported', 'Breast, NOS', NULL, 'Breast, NOS', NULL, NULL, NULL, NULL, NULL, '8503/3', NULL, NULL, NULL, NULL, 'T2', 'C50.9', nan), (1938, '2019-08-08T16:24:46.807013-05:00', 'released', 'black or african american', 'No', NULL, 'not reported', 'Dead', 1996, '2019-07-31T21:33:03.910747-05:00', 'released', NULL, 'Breast', 'stage x', 'MX', '926851f2-981f-5ea0-b9bd-9a26d3a38d5a', NULL, 'Stage X', 'released', nan, 'not reported', 'TCGA-B6-A0WS', 'Ductal and Lobular Neoplasms', 'Breast Invasive Carcinoma', 'Infiltrating duct carcinoma, NOS', 'TCGA-BRCA', '197741de-a098-4f04-bb37-8ea8b3bb39bc', NULL, 'female', 'not hispanic or latino', NULL, 'not reported', 'NX', NULL, 'no', NULL, -21230.0, 2004.0, '2019-07-31T21:33:03.910747-05:00', '4th', 58, 2, 21230, '3ee2c5f4-e025-5b2a-93cd-47c39f15f5c3', 'released', NULL, NULL, '4e9fc1e7-8073-5beb-8608-97e5ee9ffc28', NULL, NULL, '2019-08-06T14:15:27.659269-05:00', 'Not Reported', 'No', 'not reported', 'Breast, NOS', NULL, 'Breast, NOS', NULL, NULL, NULL, NULL, NULL, '8500/3', NULL, NULL, NULL, NULL, 'T1c', 'C50.9', 2965.0), (1939, '2019-08-08T16:24:46.807013-05:00', 'released', 'black or african american', 'No', NULL, 'not reported', 'Dead', 1997, '2019-07-31T22:03:34.607155-05:00', 'released', NULL, 'Breast', 'stage x', 'MX', 'd07bf71a-996b-556b-8d39-3a54e7de7137', NULL, 'Stage X', 'released', nan, 'not reported', 'TCGA-B6-A0WW', 'Ductal and Lobular Neoplasms', 'Breast Invasive Carcinoma', 'Infiltrating duct carcinoma, NOS', 'TCGA-BRCA', 'f02931f8-d72a-481d-b532-8b141dab115f', NULL, 'female', 'not hispanic or latino', NULL, 'not reported', 'N1b', NULL, 'no', NULL, -21479.0, 1998.0, '2019-07-31T22:03:34.607155-05:00', '4th', 58, 2, 21479, '9e8222ae-6c5b-5d76-99df-af644e4656e9', 'released', NULL, NULL, '5815ab99-6483-5522-8581-740b434a3216', NULL, NULL, '2019-08-06T14:15:27.659269-05:00', 'Not Reported', 'No', 'not reported', 'Breast, NOS', NULL, 'Breast, NOS', NULL, NULL, NULL, NULL, NULL, '8500/3', NULL, NULL, NULL, NULL, 'T2', 'C50.9', 558.0);