-- 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"."TCGA_VERSIONED"."CLINICAL_GDC_R37" (diag__treat__count, proj__project_id, diag__ajcc_clinical_n, diag__ajcc_pathologic_stage, demo__days_to_birth, 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__morphology, diag__ajcc_staging_system_edition, diag__year_of_diagnosis, demo__gender, exp__pack_years_smoked, disease_type, diag__days_to_last_follow_up, diag__igcccg_stage, exp__created_datetime, diag__created_datetime, exp__cigarettes_per_day, diag__updated_datetime, diag__site_of_resection_or_biopsy, primary_site, state, updated_datetime, demo__demographic_id, diag__age_at_diagnosis, exp__state, demo__state, diag__ajcc_pathologic_t, diag__primary_diagnosis, diag__classification_of_tumor, demo__ethnicity, diag__tissue_or_organ_of_origin, diag__prior_treatment, diag__icd_10_code, diag__masaoka_stage, diag__ajcc_pathologic_m, diag__ajcc_clinical_m, demo__days_to_death, diag__last_known_disease_status, case_id, demo__year_of_death, demo__vital_status, exp__updated_datetime, demo__age_at_index, diag__diagnosis_id, exp__exposure_id, diag__tumor_grade, diag__progression_or_recurrence, submitter_id, proj__name, diag__ajcc_pathologic_n, diag__ann_arbor_extranodal_involvement, exp__years_smoked, demo__race, diag__ann_arbor_clinical_stage, diag__state, diag__ajcc_clinical_stage, demo__year_of_birth, diag__ajcc_clinical_t) VALUES (0, 'TCGA-DLBC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Not Reported', 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, NULL, 'TCGA-GS-6630', 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (0, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Bronchus and lung', 'released', 1556730373818117, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '53d7b0c2-b8ed-43c8-9ffd-a586e0a68086', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-17-Z006', 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (0, 'TCGA-TGCT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Germ Cell Neoplasms', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Testis', 'released', 1556731579157204, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '34103b46-3d61-44a4-8b52-dcd29b5185a1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-2G-AALO', 'Testicular Germ Cell Tumors', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (0, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', 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, '5730b09c-a69f-425a-8af9-61172f9dfe56', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-17-Z020', 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (0, 'TCGA-UCEC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Not Reported', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Uterus, NOS', 'released', 1556731882659809, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '7d8e6965-51ea-4864-968e-5cecfb7da48a', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-FL-A1YG', 'Uterine Corpus Endometrial Carcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);