-- DBMS: snowflake
create or replace TABLE CLINICAL_GDC_R37 (
	"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" BOOLEAN,
	"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_R37" (diag__ajcc_clinical_n, diag__ajcc_pathologic_stage, diag__treat__count, demo__days_to_birth, proj__project_id, exp__alcohol_history, diag__figo_stage, demo__created_datetime, demo__updated_datetime, diag__secondary_gleason_grade, diag__ann_arbor_b_symptoms, diag__prior_malignancy, diag__synchronous_malignancy, diag__primary_gleason_grade, diag__ajcc_staging_system_edition, diag__morphology, diag__year_of_diagnosis, demo__gender, disease_type, exp__pack_years_smoked, diag__days_to_last_follow_up, diag__created_datetime, exp__created_datetime, diag__igcccg_stage, exp__cigarettes_per_day, diag__updated_datetime, diag__site_of_resection_or_biopsy, primary_site, state, updated_datetime, demo__demographic_id, demo__state, diag__primary_diagnosis, diag__classification_of_tumor, diag__ajcc_pathologic_t, diag__age_at_diagnosis, exp__state, demo__ethnicity, diag__masaoka_stage, diag__icd_10_code, diag__ajcc_pathologic_m, diag__tissue_or_organ_of_origin, diag__prior_treatment, demo__days_to_death, diag__ajcc_clinical_m, diag__last_known_disease_status, case_id, demo__vital_status, demo__year_of_death, exp__updated_datetime, demo__age_at_index, diag__diagnosis_id, diag__tumor_grade, exp__exposure_id, submitter_id, diag__progression_or_recurrence, diag__ajcc_pathologic_n, proj__name, diag__ann_arbor_extranodal_involvement, exp__years_smoked, demo__race, diag__ann_arbor_clinical_stage, diag__state, diag__ajcc_clinical_stage, diag__ajcc_clinical_t, demo__year_of_birth) VALUES (NULL, NULL, 0, NULL, 'TCGA-DLBC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Not Reported', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Hematopoietic and reticuloendothelial systems', 'released', 1556729528125793, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'c81277e2-557f-4129-b0ed-84c74e6c8b1e', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-GS-6630', NULL, NULL, 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, 0, NULL, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Bronchus and lung', 'released', 1556730390916966, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'c43c8eea-7014-4abe-b805-397a9062d3e0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-17-Z031', NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, 0, NULL, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Bronchus and lung', 'released', 1556730390916966, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '94ee639e-3cb4-4943-b5f1-a89eb902153c', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-17-Z041', NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, 0, NULL, 'TCGA-READ', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Rectum', 'released', 1556736290898263, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '375436b3-66ac-4d5e-b495-18a96d812a69', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-F5-6810', NULL, NULL, 'Rectum Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, 0, NULL, 'TCGA-OV', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Cystic, Mucinous and Serous Neoplasms', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ovary', 'released', 1556730828007074, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '78821fb5-0669-42c7-b62b-b61d6b7d7ac6', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-13-0922', NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);