-- 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"."TCGA_VERSIONED"."CLINICAL_GDC_R38" (diag__created_datetime, diag__icd_10_code, diag__masaoka_stage, diag__ajcc_staging_system_edition, case_id, demo__updated_datetime, exp__created_datetime, proj__project_id, demo__days_to_death, exp__updated_datetime, diag__ann_arbor_b_symptoms, diag__ajcc_pathologic_m, diag__ajcc_clinical_t, proj__name, diag__updated_datetime, diag__ajcc_clinical_n, demo__year_of_birth, diag__age_at_diagnosis, diag__ajcc_pathologic_t, diag__figo_stage, diag__ann_arbor_extranodal_involvement, diag__state, diag__primary_diagnosis, exp__alcohol_history, created_datetime, diag__year_of_diagnosis, exp__state, diag__tissue_or_organ_of_origin, diag__ajcc_clinical_m, demo__age_at_index, state, demo__created_datetime, demo__race, demo__state, updated_datetime, submitter_id, diag__secondary_gleason_grade, exp__pack_years_smoked, diag__ajcc_clinical_stage, demo__vital_status, diag__ajcc_pathologic_n, disease_type, diag__treat__count, exp__cigarettes_per_day, demo__gender, demo__ethnicity, diag__site_of_resection_or_biopsy, diag__synchronous_malignancy, diag__primary_gleason_grade, exp__exposure_id, diag__prior_malignancy, diag__morphology, diag__diagnosis_id, demo__days_to_birth, primary_site, diag__igcccg_stage, diag__days_to_diagnosis, diag__ann_arbor_clinical_stage, diag__days_to_last_follow_up, diag__prior_treatment, demo__demographic_id, diag__ajcc_pathologic_stage, exp__years_smoked, demo__year_of_death) VALUES (NULL, NULL, NULL, NULL, 'b3c31fdc-26a7-4b39-8127-8006307eb1f5', NULL, NULL, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, 1556730390916966, 'TCGA-17-Z040', NULL, NULL, NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', 0, 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, NULL, NULL, '0b0a54ac-bb74-40a4-b647-d067fb9de1ff', NULL, NULL, 'TCGA-UCEC', 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, 'released', NULL, NULL, NULL, 1556731882659809, 'TCGA-FL-A1YF', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Uterus, NOS', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, '257c9416-e86a-4c71-9dee-7212c2e56351', NULL, NULL, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, 1556730390916966, 'TCGA-17-Z060', NULL, NULL, NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', 0, 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, NULL, NULL, 'dac5f5db-1a2a-47f9-8d46-a3d4eed0864b', NULL, NULL, 'TCGA-DLBC', NULL, 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, 'released', NULL, NULL, NULL, 1556729528125793, 'TCGA-GS-6629', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Hematopoietic and reticuloendothelial systems', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, 'e44e279b-103e-436e-8988-1139b000bdfd', NULL, NULL, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, 1556730390916966, 'TCGA-17-Z022', NULL, NULL, NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Bronchus and lung', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);