-- DBMS: snowflake
create or replace TABLE CLINICAL_GDC_R31 (
	"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" NUMBER(38,0),
	"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" NUMBER(38,0),
	"demo__state" VARCHAR(16777216),
	"demo__created_datetime" NUMBER(38,0),
	"demo__updated_datetime" NUMBER(38,0),
	"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__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" NUMBER(38,0),
	"diag__updated_datetime" NUMBER(38,0),
	"exp__exposure_id" VARCHAR(16777216),
	"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" NUMBER(38,0),
	"exp__updated_datetime" NUMBER(38,0),
	"state" VARCHAR(16777216),
	"updated_datetime" NUMBER(38,0)
);

INSERT INTO "TCGA_MITELMAN"."TCGA_VERSIONED"."CLINICAL_GDC_R31" (diag__igcccg_stage, proj__name, demo__created_datetime, exp__created_datetime, diag__ajcc_clinical_n, diag__classification_of_tumor, diag__primary_diagnosis, diag__ajcc_pathologic_m, diag__days_to_last_follow_up, diag__state, exp__years_smoked, diag__tumor_grade, diag__ajcc_staging_system_edition, diag__ajcc_pathologic_stage, demo__age_at_index, diag__ajcc_clinical_m, diag__updated_datetime, diag__age_at_diagnosis, diag__icd_10_code, demo__gender, diag__ajcc_clinical_t, diag__ann_arbor_b_symptoms, proj__project_id, diag__figo_stage, demo__demographic_id, diag__year_of_diagnosis, diag__ann_arbor_extranodal_involvement, exp__alcohol_history, case_id, demo__year_of_birth, demo__state, submitter_id, diag__treat__count, diag__site_of_resection_or_biopsy, exp__state, demo__year_of_death, diag__secondary_gleason_grade, exp__cigarettes_per_day, diag__created_datetime, exp__exposure_id, demo__days_to_death, diag__synchronous_malignancy, exp__pack_years_smoked, demo__race, demo__vital_status, primary_site, diag__morphology, diag__ann_arbor_clinical_stage, diag__diagnosis_id, diag__masaoka_stage, diag__ajcc_pathologic_n, diag__progression_or_recurrence, diag__prior_treatment, diag__last_known_disease_status, exp__updated_datetime, updated_datetime, diag__ajcc_clinical_stage, demo__updated_datetime, state, diag__ajcc_pathologic_t, diag__primary_gleason_grade, diag__tissue_or_organ_of_origin, disease_type, diag__prior_malignancy, demo__days_to_birth, demo__ethnicity) VALUES (NULL, 'Glioblastoma Multiforme', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-GBM', NULL, NULL, NULL, NULL, NULL, '0ff91707-190e-4e2d-a3a0-42e3207225e9', NULL, NULL, 'TCGA-06-0121', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Brain', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556729625009083, NULL, NULL, 'released', NULL, NULL, NULL, 'Gliomas', NULL, NULL, NULL), (NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, 'e998a607-ac73-4849-afaa-57eee49cf051', NULL, NULL, 'TCGA-17-Z000', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Bronchus and lung', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556730373818117, NULL, NULL, 'released', NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', NULL, NULL, NULL), (NULL, 'Ovarian Serous Cystadenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-OV', NULL, NULL, NULL, NULL, NULL, 'dde3c31f-51cb-4236-9aa9-0c9eda6105eb', NULL, NULL, 'TCGA-01-0633', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ovary', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556730777541779, NULL, NULL, 'released', NULL, NULL, NULL, 'Not Reported', NULL, NULL, NULL), (NULL, 'Ovarian Serous Cystadenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-OV', NULL, NULL, NULL, NULL, NULL, '124fd913-124b-44f5-8728-1591a0771e9b', NULL, NULL, 'TCGA-01-0637', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ovary', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556730777541779, NULL, NULL, 'released', NULL, NULL, NULL, 'Not Reported', NULL, NULL, NULL), (NULL, 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-DLBC', NULL, NULL, NULL, NULL, NULL, 'd682d35c-0ec5-4e6e-8349-ac2e39bec86f', NULL, NULL, 'TCGA-GZ-6638', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Hematopoietic and reticuloendothelial systems', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556729544527569, NULL, NULL, 'released', NULL, NULL, NULL, 'Not Reported', NULL, NULL, NULL);