-- DBMS: snowflake
create or replace TABLE CLINICAL_GDC_R38 (
	"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),
	"exp__exposure_id" VARCHAR(16777216),
	"exp__years_smoked" NUMBER(38,0),
	"exp__pack_years_smoked" FLOAT,
	"exp__cigarettes_per_day" FLOAT,
	"exp__alcohol_history" BOOLEAN,
	"exp__state" VARCHAR(16777216),
	"exp__created_datetime" NUMBER(38,0),
	"exp__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__days_to_diagnosis" NUMBER(38,0),
	"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" NUMBER(38,0),
	"diag__ajcc_pathologic_stage" VARCHAR(16777216),
	"diag__ann_arbor_extranodal_involvement" BOOLEAN,
	"diag__ajcc_clinical_stage" VARCHAR(16777216),
	"diag__secondary_gleason_grade" VARCHAR(16777216),
	"diag__synchronous_malignancy" BOOLEAN,
	"diag__morphology" VARCHAR(16777216),
	"diag__ajcc_pathologic_t" VARCHAR(16777216),
	"diag__igcccg_stage" VARCHAR(16777216),
	"diag__ann_arbor_clinical_stage" VARCHAR(16777216),
	"diag__ann_arbor_b_symptoms" BOOLEAN,
	"diag__prior_treatment" BOOLEAN,
	"diag__ajcc_pathologic_n" VARCHAR(16777216),
	"diag__tissue_or_organ_of_origin" VARCHAR(16777216),
	"diag__prior_malignancy" BOOLEAN,
	"diag__state" VARCHAR(16777216),
	"diag__created_datetime" NUMBER(38,0),
	"diag__updated_datetime" NUMBER(38,0),
	"state" VARCHAR(16777216),
	"created_datetime" NUMBER(38,0),
	"updated_datetime" NUMBER(38,0)
);

INSERT INTO "TCGA_MITELMAN"."TCGA_VERSIONED"."CLINICAL_GDC_R38" (diag__ajcc_staging_system_edition, diag__masaoka_stage, diag__icd_10_code, diag__created_datetime, case_id, demo__updated_datetime, exp__created_datetime, exp__updated_datetime, proj__project_id, diag__ann_arbor_b_symptoms, demo__days_to_death, diag__ajcc_pathologic_m, proj__name, diag__ajcc_clinical_t, diag__updated_datetime, demo__year_of_birth, diag__age_at_diagnosis, diag__ajcc_clinical_n, diag__ann_arbor_extranodal_involvement, diag__figo_stage, diag__ajcc_pathologic_t, diag__primary_diagnosis, exp__alcohol_history, diag__state, created_datetime, diag__year_of_diagnosis, exp__state, diag__tissue_or_organ_of_origin, demo__age_at_index, diag__ajcc_clinical_m, demo__created_datetime, state, demo__state, demo__race, updated_datetime, diag__ajcc_clinical_stage, diag__secondary_gleason_grade, submitter_id, exp__pack_years_smoked, disease_type, diag__treat__count, diag__ajcc_pathologic_n, demo__vital_status, exp__cigarettes_per_day, demo__gender, diag__site_of_resection_or_biopsy, demo__ethnicity, diag__primary_gleason_grade, diag__synchronous_malignancy, exp__exposure_id, diag__prior_malignancy, diag__diagnosis_id, demo__days_to_birth, diag__morphology, diag__igcccg_stage, diag__days_to_diagnosis, primary_site, diag__days_to_last_follow_up, diag__ann_arbor_clinical_stage, diag__ajcc_pathologic_stage, demo__demographic_id, diag__prior_treatment, demo__year_of_death, exp__years_smoked) VALUES (NULL, NULL, NULL, NULL, 'a56d2b48-375d-4193-91a9-f589c39523fb', NULL, NULL, NULL, 'TCGA-LUAD', NULL, NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, 1556730390916966, NULL, NULL, 'TCGA-17-Z021', NULL, 'Adenomas and Adenocarcinomas', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Bronchus and lung', NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, '515a062e-f68e-4100-a923-bd2ce0bbe071', NULL, NULL, NULL, 'TCGA-COAD', NULL, NULL, NULL, 'Colon Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, 1556729377062924, NULL, NULL, 'TCGA-5M-AAT5', NULL, 'Adenomas and Adenocarcinomas', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Colon', NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, 'd69f7591-8917-4097-9b16-7977fa6a0dc6', NULL, NULL, NULL, 'TCGA-TGCT', NULL, NULL, NULL, 'Testicular Germ Cell Tumors', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, 1556731579157204, NULL, NULL, 'TCGA-2G-AALN', NULL, 'Germ Cell Neoplasms', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Testis', NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, '257c9416-e86a-4c71-9dee-7212c2e56351', NULL, NULL, NULL, 'TCGA-LUAD', NULL, NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, 1556730390916966, NULL, NULL, 'TCGA-17-Z060', NULL, 'Adenomas and Adenocarcinomas', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Bronchus and lung', NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, '61224b62-8dbd-48aa-bf15-6b04a05d12a5', NULL, NULL, NULL, 'TCGA-OV', NULL, NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, 1556730777541779, NULL, NULL, 'TCGA-01-0639', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ovary', NULL, NULL, NULL, NULL, NULL, NULL, NULL);