-- DBMS: snowflake
create or replace TABLE CLINICAL_GDC_R25 (
	"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_R25" (diag__ajcc_pathologic_m, diag__age_at_diagnosis, exp__pack_years_smoked, diag__state, exp__created_datetime, diag__tumor_grade, exp__weight, diag__last_known_disease_status, diag__diagnosis_id, exp__height, exp__cigarettes_per_day, exp__years_smoked, diag__ann_arbor_clinical_stage, diag__secondary_gleason_grade, demo__gender, demo__race, diag__ajcc_clinical_t, exp__state, diag__ajcc_pathologic_stage, exp__updated_datetime, proj__name, primary_site, demo__days_to_birth, diag__ajcc_pathologic_t, diag__year_of_diagnosis, diag__prior_treatment, diag__ajcc_staging_system_edition, demo__created_datetime, demo__year_of_death, diag__primary_diagnosis, updated_datetime, diag__synchronous_malignancy, diag__site_of_resection_or_biopsy, diag__morphology, diag__classification_of_tumor, submitter_id, demo__ethnicity, demo__age_at_index, diag__prior_malignancy, diag__tumor_stage, diag__ajcc_clinical_n, diag__primary_gleason_grade, diag__igcccg_stage, diag__ann_arbor_b_symptoms, diag__ajcc_clinical_m, demo__year_of_birth, demo__updated_datetime, diag__progression_or_recurrence, diag__figo_stage, diag__ajcc_clinical_stage, state, diag__tissue_or_organ_of_origin, exp__alcohol_history, exp__bmi, diag__ann_arbor_extranodal_involvement, case_id, demo__demographic_id, diag__created_datetime, demo__vital_status, demo__state, diag__ajcc_pathologic_n, diag__icd_10_code, diag__treat__count, diag__updated_datetime, diag__days_to_last_follow_up, proj__project_id, diag__masaoka_stage, disease_type, exp__exposure_id, demo__days_to_death) VALUES ('MX', 20211, NULL, 'released', NULL, 'not reported', NULL, 'not reported', '8cfb8afb-b915-5255-865b-a5923f47b351', NULL, NULL, NULL, NULL, NULL, 'female', 'white', NULL, 'released', 'Stage X', '2019-07-31T21:21:01.590763-05:00', 'Breast Invasive Carcinoma', 'Breast', -20211.0, 'TX', 2004, 'No', '6th', NULL, nan, 'Lobular carcinoma, NOS', '2019-08-06T14:13:44.884705-05:00', 'No', 'Breast, NOS', '8520/3', 'not reported', 'TCGA-3C-AAAU', 'not hispanic or latino', 55, 'no', 'stage x', NULL, NULL, NULL, NULL, NULL, 1949, '2019-07-31T21:21:01.590763-05:00', 'not reported', NULL, NULL, 'released', 'Breast, NOS', 'Not Reported', NULL, NULL, '6e7d5ec6-a469-467c-b748-237353c23416', 'cee0a94c-1d9e-5650-a500-a6b021fe138d', NULL, 'Alive', 'released', 'NX', 'C50.9', 2, '2019-08-08T16:19:58.650144-05:00', 4047.0, 'TCGA-BRCA', NULL, 'Ductal and Lobular Neoplasms', '72f0be98-dffa-5d35-88fe-f9ca774d6db0', nan), ('MX', 28063, NULL, 'released', NULL, 'not reported', NULL, 'not reported', 'ac4de228-4029-5115-a666-5560f6166b80', NULL, NULL, NULL, NULL, NULL, 'female', 'not reported', NULL, 'released', 'Stage X', '2019-07-31T22:01:30.125880-05:00', 'Breast Invasive Carcinoma', 'Breast', -28063.0, 'T4b', 2009, 'No', '6th', NULL, nan, 'Infiltrating duct carcinoma, NOS', '2019-08-06T14:14:30.298341-05:00', 'No', 'Breast, NOS', '8500/3', 'not reported', 'TCGA-A8-A099', 'not reported', 76, 'no', 'stage x', NULL, NULL, NULL, NULL, NULL, 1933, '2019-07-31T22:01:30.125880-05:00', 'not reported', NULL, NULL, 'released', 'Breast, NOS', 'Not Reported', NULL, NULL, 'e98b69bc-766a-485f-b5e8-9166b8d457b3', '5826870b-dcb8-5a6d-9007-c7a79e2f98e0', NULL, 'Alive', 'released', 'N3a', 'C50.9', 2, '2019-08-08T16:22:07.499730-05:00', 304.0, 'TCGA-BRCA', NULL, 'Ductal and Lobular Neoplasms', 'c807c394-967d-59db-96e1-e546746f7fc4', nan), ('M0', 17073, NULL, 'released', NULL, 'not reported', NULL, 'not reported', 'd8a2218c-063e-5177-aca1-fb6f474dc441', NULL, NULL, NULL, NULL, NULL, 'female', 'white', NULL, 'released', 'Stage X', '2019-07-31T21:44:41.685074-05:00', 'Breast Invasive Carcinoma', 'Breast', -17073.0, 'T1', 1992, 'No', '4th', NULL, 1994.0, 'Infiltrating duct carcinoma, NOS', '2019-08-06T14:15:27.659269-05:00', 'Not Reported', 'Breast, NOS', '8500/3', 'not reported', 'TCGA-B6-A0I8', 'not hispanic or latino', 46, 'yes', 'stage x', NULL, NULL, NULL, NULL, NULL, 1946, '2019-07-31T21:44:41.685074-05:00', 'not reported', NULL, NULL, 'released', 'Breast, NOS', 'Not Reported', NULL, NULL, '6e6408d6-6c48-4dfc-9f1c-28b7386e87b4', '089578db-3a99-5d38-9743-92ddf9c74d6f', NULL, 'Dead', 'released', 'NX', 'C50.9', 2, '2019-08-08T16:24:46.807013-05:00', nan, 'TCGA-BRCA', NULL, 'Ductal and Lobular Neoplasms', '6420f411-cf6b-509a-861b-b6c8a1c0f3c9', 749.0), ('MX', 21047, NULL, 'released', NULL, 'not reported', NULL, 'not reported', '2e6f3c3f-a1c8-52e8-b787-d91827502e1c', NULL, NULL, NULL, NULL, NULL, 'female', 'black or african american', NULL, 'released', 'Stage X', '2019-07-31T21:32:23.448965-05:00', 'Breast Invasive Carcinoma', 'Breast', -21047.0, 'TX', 1993, 'No', '4th', NULL, 1999.0, 'Infiltrating duct carcinoma, NOS', '2019-08-06T14:15:27.659269-05:00', 'No', 'Breast, NOS', '8500/3', 'not reported', 'TCGA-B6-A0RM', 'not hispanic or latino', 57, 'no', 'stage x', NULL, NULL, NULL, NULL, NULL, 1936, '2019-07-31T21:32:23.448965-05:00', 'not reported', NULL, NULL, 'released', 'Breast, NOS', 'Not Reported', NULL, NULL, '151f3677-6854-4265-9126-d92c646c67ae', '41581b05-576c-5402-9265-24049fe99408', NULL, 'Dead', 'released', 'NX', 'C50.9', 2, '2019-08-08T16:24:46.807013-05:00', nan, 'TCGA-BRCA', NULL, 'Ductal and Lobular Neoplasms', '4922d609-8c94-51fe-ac2b-7c32706ce8b9', 2373.0), ('MX', 16705, NULL, 'released', NULL, 'not reported', NULL, 'not reported', 'b031486f-c946-5bd9-b099-96f90ba52be6', NULL, NULL, NULL, NULL, NULL, 'female', 'white', NULL, 'released', 'Stage X', '2019-07-31T21:32:36.220500-05:00', 'Breast Invasive Carcinoma', 'Breast', -16705.0, 'T1c', 1996, 'No', '4th', NULL, 2003.0, 'Infiltrating duct mixed with other types of carcinoma', '2019-08-06T14:15:27.659269-05:00', 'No', 'Breast, NOS', '8523/3', 'not reported', 'TCGA-B6-A0IN', 'not hispanic or latino', 45, 'no', 'stage x', NULL, NULL, NULL, NULL, NULL, 1951, '2019-07-31T21:32:36.220500-05:00', 'not reported', NULL, NULL, 'released', 'Breast, NOS', 'Not Reported', NULL, NULL, '16a8d916-ad46-4690-b1a5-3b2b323f4336', 'ea0233bd-d6e4-5437-bbaa-2173deb3e011', NULL, 'Dead', 'released', 'NX', 'C50.9', 2, '2019-08-08T16:24:46.807013-05:00', nan, 'TCGA-BRCA', NULL, 'Ductal and Lobular Neoplasms', '3514ca40-5c8d-53b9-a62d-636c719b0d02', 2573.0);