-- 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_MITELMAN"."TCGA_VERSIONED"."CLINICAL_GDC_R24" (diag__updated_datetime, demo__race, diag__state, demo__year_of_birth, diag__prior_treatment, demo__vital_status, diag__last_known_disease_status, diag__year_of_diagnosis, diag__ajcc_clinical_t, diag__primary_gleason_grade, exp__updated_datetime, exp__state, primary_site, diag__tumor_stage, diag__ajcc_pathologic_m, exp__years_smoked, diag__ajcc_pathologic_stage, exp__exposure_id, state, diag__days_to_last_follow_up, diag__progression_or_recurrence, submitter_id, disease_type, proj__name, proj__project_id, diag__primary_diagnosis, diag__ajcc_pathologic_n, case_id, diag__tumor_grade, demo__ethnicity, diag__ajcc_clinical_m, demo__gender, diag__ajcc_clinical_stage, diag__igcccg_stage, demo__year_of_death, demo__days_to_birth, exp__height, diag__prior_malignancy, diag__ajcc_staging_system_edition, demo__age_at_index, demo__updated_datetime, diag__treat__count, diag__age_at_diagnosis, diag__diagnosis_id, demo__state, diag__ann_arbor_b_symptoms, demo__demographic_id, diag__ann_arbor_extranodal_involvement, diag__created_datetime, diag__masaoka_stage, updated_datetime, exp__alcohol_history, diag__classification_of_tumor, diag__site_of_resection_or_biopsy, diag__synchronous_malignancy, demo__created_datetime, exp__cigarettes_per_day, exp__weight, diag__ajcc_clinical_n, diag__ann_arbor_clinical_stage, diag__tissue_or_organ_of_origin, diag__secondary_gleason_grade, diag__morphology, diag__ajcc_pathologic_t, exp__bmi, exp__pack_years_smoked, diag__figo_stage, exp__created_datetime, demo__days_to_death, diag__icd_10_code) VALUES ('2019-08-08T16:19:58.650144-05:00', 'white', 'released', 1949, 'No', 'Alive', 'not reported', 2004, NULL, NULL, '2019-07-31T21:21:01.590763-05:00', 'released', 'Breast', 'stage x', 'MX', NULL, 'Stage X', '72f0be98-dffa-5d35-88fe-f9ca774d6db0', 'released', 4047.0, 'not reported', 'TCGA-3C-AAAU', 'Ductal and Lobular Neoplasms', 'Breast Invasive Carcinoma', 'TCGA-BRCA', 'Lobular carcinoma, NOS', 'NX', '6e7d5ec6-a469-467c-b748-237353c23416', 'not reported', 'not hispanic or latino', NULL, 'female', NULL, NULL, nan, -20211.0, NULL, 'no', '6th', 55, '2019-07-31T21:21:01.590763-05:00', 2, 20211, '8cfb8afb-b915-5255-865b-a5923f47b351', 'released', NULL, 'cee0a94c-1d9e-5650-a500-a6b021fe138d', NULL, NULL, NULL, '2019-08-06T14:13:44.884705-05:00', 'Not Reported', 'not reported', 'Breast, NOS', 'No', NULL, NULL, NULL, NULL, NULL, 'Breast, NOS', NULL, '8520/3', 'TX', NULL, NULL, NULL, NULL, nan, 'C50.9'), ('2019-08-08T16:21:32.660138-05:00', 'not reported', 'released', 1927, 'No', 'Alive', 'not reported', 2008, NULL, NULL, '2019-07-31T21:47:28.898395-05:00', 'released', 'Breast', 'stage x', 'MX', NULL, 'Stage X', '4b717e95-f6f0-535e-8db3-b713f42b3b3e', 'released', 608.0, 'not reported', 'TCGA-A8-A07E', 'Ductal and Lobular Neoplasms', 'Breast Invasive Carcinoma', 'TCGA-BRCA', 'Infiltrating duct carcinoma, NOS', 'N3a', '853456d8-2367-404e-abc9-020fe8bbd209', 'not reported', 'not reported', NULL, 'female', NULL, NULL, nan, -29800.0, NULL, 'yes', '6th', 81, '2019-07-31T21:47:28.898395-05:00', 2, 29800, 'cd137203-ee96-54f9-a713-9cedb738d24e', 'released', NULL, '5b527883-990b-5c9e-a301-6afdfef1e9ae', NULL, NULL, NULL, '2019-08-06T14:14:19.396452-05:00', 'Not Reported', 'not reported', 'Breast, NOS', 'Not Reported', NULL, NULL, NULL, NULL, NULL, 'Breast, NOS', NULL, '8500/3', 'T4b', NULL, NULL, NULL, NULL, nan, 'C50.9'), ('2019-08-08T16:22:07.499730-05:00', 'not reported', 'released', 1940, 'No', 'Alive', 'not reported', 2009, NULL, NULL, '2019-07-31T21:22:28.091532-05:00', 'released', 'Breast', 'stage x', 'MX', NULL, 'Stage X', 'cfaec1c2-587a-539b-ba8f-5920c8e378c8', 'released', 31.0, 'not reported', 'TCGA-A8-A09C', 'Ductal and Lobular Neoplasms', 'Breast Invasive Carcinoma', 'TCGA-BRCA', 'Infiltrating duct carcinoma, NOS', 'N0', '80f3f48a-cc21-415c-b181-c77e7ba1c563', 'not reported', 'not reported', NULL, 'female', NULL, NULL, nan, -25355.0, NULL, 'yes', '6th', 69, '2019-07-31T21:22:28.091532-05:00', 2, 25355, '7f3f10a1-50c0-54fe-96be-6f294792ddda', 'released', NULL, 'a696eb4e-6327-5623-8c68-8b71b336c866', NULL, NULL, NULL, '2019-08-06T14:14:30.298341-05:00', 'Not Reported', 'not reported', 'Breast, NOS', 'Not Reported', NULL, NULL, NULL, NULL, NULL, 'Breast, NOS', NULL, '8500/3', 'T2', NULL, NULL, NULL, NULL, nan, 'C50.9'), ('2019-08-08T16:22:07.499730-05:00', 'not reported', 'released', 1969, 'No', 'Alive', 'not reported', 2009, NULL, NULL, '2019-07-31T21:26:00.447503-05:00', 'released', 'Breast', 'stage x', 'M0', NULL, 'Stage X', 'cbc1f369-1323-52ec-bd75-cbe8375f457d', 'released', 304.0, 'not reported', 'TCGA-A8-A09A', 'Ductal and Lobular Neoplasms', 'Breast Invasive Carcinoma', 'TCGA-BRCA', 'Infiltrating duct carcinoma, NOS', 'NX', 'b205bba0-1870-4458-9088-8817e20389fe', 'not reported', 'not reported', NULL, 'female', NULL, NULL, nan, -14883.0, NULL, 'no', '6th', 40, '2019-07-31T21:26:00.447503-05:00', 2, 14883, 'aa70622c-48e3-5826-a614-8f3304955055', 'released', NULL, '898d28a1-8d59-5bcb-a6d7-da38dadbeb55', NULL, NULL, NULL, '2019-08-06T14:14:30.298341-05:00', 'Not Reported', 'not reported', 'Breast, NOS', 'No', NULL, NULL, NULL, NULL, NULL, 'Breast, NOS', NULL, '8500/3', 'T2', NULL, NULL, NULL, NULL, nan, 'C50.9'), ('2019-08-08T16:24:46.807013-05:00', 'black or african american', 'released', 1938, 'No', 'Dead', 'not reported', 1996, NULL, NULL, '2019-07-31T21:33:03.910747-05:00', 'released', 'Breast', 'stage x', 'MX', NULL, 'Stage X', '926851f2-981f-5ea0-b9bd-9a26d3a38d5a', 'released', nan, 'not reported', 'TCGA-B6-A0WS', 'Ductal and Lobular Neoplasms', 'Breast Invasive Carcinoma', 'TCGA-BRCA', 'Infiltrating duct carcinoma, NOS', 'NX', '197741de-a098-4f04-bb37-8ea8b3bb39bc', 'not reported', 'not hispanic or latino', NULL, 'female', NULL, NULL, 2004.0, -21230.0, NULL, 'no', '4th', 58, '2019-07-31T21:33:03.910747-05:00', 2, 21230, '3ee2c5f4-e025-5b2a-93cd-47c39f15f5c3', 'released', NULL, '4e9fc1e7-8073-5beb-8608-97e5ee9ffc28', NULL, NULL, NULL, '2019-08-06T14:15:27.659269-05:00', 'Not Reported', 'not reported', 'Breast, NOS', 'No', NULL, NULL, NULL, NULL, NULL, 'Breast, NOS', NULL, '8500/3', 'T1c', NULL, NULL, NULL, NULL, 2965.0, 'C50.9');