-- DBMS: snowflake
create or replace TABLE CLINICAL_GDC_R27 (
	"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_R27" (diag__ajcc_pathologic_t, diag__diagnosis_id, diag__masaoka_stage, diag__ajcc_clinical_stage, exp__created_datetime, diag__ajcc_pathologic_stage, demo__state, diag__days_to_last_follow_up, diag__state, disease_type, diag__progression_or_recurrence, diag__prior_malignancy, exp__weight, diag__ajcc_clinical_n, diag__morphology, diag__ann_arbor_b_symptoms, diag__site_of_resection_or_biopsy, state, diag__synchronous_malignancy, exp__cigarettes_per_day, diag__ajcc_staging_system_edition, exp__exposure_id, demo__year_of_death, diag__tissue_or_organ_of_origin, diag__secondary_gleason_grade, exp__updated_datetime, exp__bmi, exp__alcohol_history, diag__last_known_disease_status, submitter_id, diag__primary_diagnosis, diag__ann_arbor_clinical_stage, demo__age_at_index, demo__year_of_birth, diag__ajcc_clinical_m, diag__updated_datetime, exp__height, exp__pack_years_smoked, diag__ajcc_pathologic_m, diag__ajcc_clinical_t, diag__ann_arbor_extranodal_involvement, diag__created_datetime, diag__figo_stage, diag__igcccg_stage, demo__created_datetime, diag__prior_treatment, diag__icd_10_code, demo__days_to_death, diag__treat__count, diag__ajcc_pathologic_n, demo__days_to_birth, case_id, demo__gender, diag__tumor_stage, demo__updated_datetime, demo__demographic_id, diag__primary_gleason_grade, diag__classification_of_tumor, demo__ethnicity, proj__name, proj__project_id, diag__year_of_diagnosis, exp__years_smoked, updated_datetime, diag__age_at_diagnosis, diag__tumor_grade, demo__race, primary_site, demo__vital_status, exp__state) VALUES (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ductal and Lobular Neoplasms', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-BH-A0B2', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '57a1604c-60b7-4b30-a75e-f70939532c5c', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Breast Invasive Carcinoma', 'TCGA-BRCA', NULL, NULL, '2019-05-01T11:44:31.171098-05:00', NULL, NULL, NULL, 'Breast', NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-5A-A8ZG', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 'c8e57f03-ac69-49bb-954b-4c40fe371f75', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Cholangiocarcinoma', 'TCGA-CHOL', NULL, NULL, '2019-05-01T11:49:18.743955-05:00', NULL, NULL, NULL, 'Liver and intrahepatic bile ducts', NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Not Reported', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-GS-6629', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 'dac5f5db-1a2a-47f9-8d46-a3d4eed0864b', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'TCGA-DLBC', NULL, NULL, '2019-05-01T11:52:08.125793-05:00', NULL, NULL, NULL, 'Hematopoietic and reticuloendothelial systems', NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Not Reported', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-GZ-6638', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 'd682d35c-0ec5-4e6e-8349-ac2e39bec86f', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'TCGA-DLBC', NULL, NULL, '2019-05-01T11:52:24.527569-05:00', NULL, NULL, NULL, 'Hematopoietic and reticuloendothelial systems', NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Not Reported', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-GZ-6640', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '44f10972-9f1f-4f7d-b8a0-0062c961001b', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'TCGA-DLBC', NULL, NULL, '2019-05-01T11:52:24.527569-05:00', NULL, NULL, NULL, 'Hematopoietic and reticuloendothelial systems', NULL, NULL);