-- 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"."TCGA_VERSIONED"."CLINICAL_GDC_R31" (demo__created_datetime, diag__ajcc_clinical_n, exp__created_datetime, proj__name, diag__igcccg_stage, diag__classification_of_tumor, diag__ajcc_pathologic_m, diag__primary_diagnosis, 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, proj__project_id, diag__ann_arbor_b_symptoms, diag__figo_stage, diag__ann_arbor_extranodal_involvement, diag__year_of_diagnosis, demo__demographic_id, demo__year_of_birth, exp__alcohol_history, case_id, demo__state, exp__state, submitter_id, diag__treat__count, diag__site_of_resection_or_biopsy, diag__secondary_gleason_grade, demo__year_of_death, exp__cigarettes_per_day, exp__exposure_id, diag__created_datetime, demo__days_to_death, diag__synchronous_malignancy, demo__race, exp__pack_years_smoked, demo__vital_status, diag__morphology, primary_site, diag__ann_arbor_clinical_stage, diag__diagnosis_id, diag__progression_or_recurrence, diag__masaoka_stage, diag__ajcc_pathologic_n, diag__last_known_disease_status, diag__prior_treatment, diag__ajcc_clinical_stage, updated_datetime, exp__updated_datetime, demo__updated_datetime, state, diag__ajcc_pathologic_t, diag__primary_gleason_grade, diag__tissue_or_organ_of_origin, disease_type, demo__days_to_birth, demo__ethnicity, diag__prior_malignancy) VALUES (NULL, NULL, NULL, 'Glioblastoma Multiforme', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-GBM', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1d26c6ae-f2fc-49e4-83a4-b79398c3d8f8', NULL, NULL, 'TCGA-06-AABW', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Brain', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556729688648067, NULL, NULL, 'released', NULL, NULL, NULL, 'Not Reported', NULL, NULL, NULL), (NULL, NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-OV', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '80690bbb-05db-413c-b1bc-96b744dea49e', NULL, NULL, 'TCGA-72-4233', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ovary', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556730967112417, NULL, NULL, 'released', NULL, NULL, NULL, 'Cystic, Mucinous and Serous Neoplasms', NULL, NULL, NULL), (NULL, NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '19ca36e6-2154-4224-89b1-117a4a4407f6', NULL, NULL, 'TCGA-17-Z050', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Bronchus and lung', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556730390916966, NULL, NULL, 'released', NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', NULL, NULL, NULL), (NULL, NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-OV', NULL, NULL, 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, 1556730777541779, NULL, NULL, 'released', NULL, NULL, NULL, 'Not Reported', NULL, NULL, NULL), (NULL, NULL, NULL, 'Uterine Corpus Endometrial Carcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-UCEC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '47c49c54-95f8-42c8-94e4-411280452512', NULL, NULL, 'TCGA-FL-A1YH', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Uterus, NOS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556731882659809, NULL, NULL, 'released', NULL, NULL, NULL, 'Not Reported', NULL, NULL, NULL);