-- 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"."TCGA_VERSIONED"."CLINICAL_GDC_R27" (diag__ajcc_pathologic_t, diag__diagnosis_id, diag__masaoka_stage, diag__ajcc_clinical_stage, demo__state, diag__ajcc_pathologic_stage, diag__days_to_last_follow_up, exp__created_datetime, diag__state, diag__progression_or_recurrence, disease_type, diag__prior_malignancy, diag__morphology, diag__ajcc_clinical_n, exp__weight, diag__site_of_resection_or_biopsy, state, diag__ann_arbor_b_symptoms, diag__synchronous_malignancy, exp__cigarettes_per_day, exp__exposure_id, diag__ajcc_staging_system_edition, diag__secondary_gleason_grade, demo__year_of_death, diag__tissue_or_organ_of_origin, exp__alcohol_history, exp__updated_datetime, exp__bmi, diag__last_known_disease_status, submitter_id, diag__ann_arbor_clinical_stage, diag__primary_diagnosis, demo__year_of_birth, demo__age_at_index, diag__ajcc_clinical_m, exp__height, exp__pack_years_smoked, diag__updated_datetime, diag__ajcc_pathologic_m, diag__created_datetime, diag__ann_arbor_extranodal_involvement, diag__ajcc_clinical_t, diag__figo_stage, diag__igcccg_stage, demo__created_datetime, diag__prior_treatment, diag__icd_10_code, demo__days_to_death, diag__ajcc_pathologic_n, diag__treat__count, case_id, demo__days_to_birth, demo__demographic_id, diag__tumor_stage, demo__updated_datetime, demo__gender, diag__primary_gleason_grade, diag__classification_of_tumor, proj__name, proj__project_id, demo__ethnicity, diag__year_of_diagnosis, diag__age_at_diagnosis, exp__years_smoked, updated_datetime, diag__tumor_grade, demo__vital_status, demo__race, exp__state, primary_site) VALUES (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ductal and Lobular Neoplasms', NULL, NULL, NULL, NULL, NULL, 'released', NULL, 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, NULL, 0, '57a1604c-60b7-4b30-a75e-f70939532c5c', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Breast Invasive Carcinoma', 'TCGA-BRCA', NULL, NULL, NULL, NULL, '2019-05-01T11:44:31.171098-05:00', NULL, NULL, NULL, NULL, 'Breast'), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-ZK-AAYZ', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, '91544f6b-90b6-45df-a501-3097fe0c74be', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Cholangiocarcinoma', 'TCGA-CHOL', NULL, NULL, NULL, NULL, '2019-05-01T11:49:18.743955-05:00', NULL, NULL, NULL, NULL, 'Liver and intrahepatic bile ducts'), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-5M-AAT5', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, '515a062e-f68e-4100-a923-bd2ce0bbe071', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Colon Adenocarcinoma', 'TCGA-COAD', NULL, NULL, NULL, NULL, '2019-05-01T11:49:37.062924-05:00', NULL, NULL, NULL, NULL, 'Colon'), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Not Reported', NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-GS-6634', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, '1ec1e2c4-ba2c-40fc-b5e1-e8f6e38caec6', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'TCGA-DLBC', NULL, NULL, NULL, NULL, '2019-05-01T11:52:08.125793-05:00', NULL, NULL, NULL, NULL, 'Hematopoietic and reticuloendothelial systems'), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Not Reported', NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-GS-6632', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, '24506980-2857-4069-9af3-79ce4527eb00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'TCGA-DLBC', NULL, NULL, NULL, NULL, '2019-05-01T11:52:08.125793-05:00', NULL, NULL, NULL, NULL, 'Hematopoietic and reticuloendothelial systems');