-- DBMS: snowflake
create or replace TABLE CLINICAL_GDC_R29 (
	"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__tumor_stage" 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__height" FLOAT,
	"exp__weight" FLOAT,
	"exp__bmi" FLOAT,
	"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_R29" (diag__progression_or_recurrence, diag__year_of_diagnosis, diag__updated_datetime, exp__weight, exp__updated_datetime, diag__ajcc_clinical_m, exp__bmi, updated_datetime, diag__age_at_diagnosis, diag__igcccg_stage, diag__prior_malignancy, diag__primary_diagnosis, diag__site_of_resection_or_biopsy, case_id, demo__race, diag__classification_of_tumor, demo__ethnicity, diag__ajcc_pathologic_m, diag__tissue_or_organ_of_origin, demo__days_to_death, demo__updated_datetime, diag__morphology, exp__alcohol_history, diag__ajcc_staging_system_edition, demo__created_datetime, state, diag__ajcc_pathologic_n, demo__year_of_death, demo__age_at_index, demo__state, diag__ajcc_clinical_stage, diag__ann_arbor_b_symptoms, exp__years_smoked, demo__year_of_birth, diag__created_datetime, diag__prior_treatment, exp__cigarettes_per_day, diag__tumor_grade, diag__ajcc_pathologic_t, submitter_id, diag__primary_gleason_grade, diag__tumor_stage, diag__days_to_last_follow_up, exp__state, demo__demographic_id, diag__secondary_gleason_grade, diag__diagnosis_id, diag__figo_stage, demo__gender, diag__ann_arbor_extranodal_involvement, demo__vital_status, diag__icd_10_code, demo__days_to_birth, diag__ajcc_pathologic_stage, primary_site, exp__exposure_id, diag__state, exp__height, proj__project_id, diag__ann_arbor_clinical_stage, proj__name, disease_type, diag__synchronous_malignancy, diag__treat__count, diag__ajcc_clinical_n, diag__masaoka_stage, diag__ajcc_clinical_t, exp__pack_years_smoked, diag__last_known_disease_status, exp__created_datetime) VALUES (NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556731882659809, NULL, NULL, NULL, NULL, NULL, '47c49c54-95f8-42c8-94e4-411280452512', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-FL-A1YH', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Uterus, NOS', NULL, NULL, NULL, 'TCGA-UCEC', NULL, 'Uterine Corpus Endometrial Carcinoma', 'Not Reported', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556729625009083, NULL, NULL, NULL, NULL, NULL, '5fc37519-1408-4abd-a5bc-c85a68d451b2', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-02-0329', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Brain', NULL, NULL, NULL, 'TCGA-GBM', NULL, 'Glioblastoma Multiforme', 'Gliomas', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556730777541779, NULL, NULL, NULL, NULL, NULL, '61224b62-8dbd-48aa-bf15-6b04a05d12a5', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-01-0639', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ovary', NULL, NULL, NULL, 'TCGA-OV', NULL, 'Ovarian Serous Cystadenocarcinoma', 'Not Reported', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556729657340275, NULL, NULL, NULL, NULL, NULL, '79c45580-bd0d-48c3-8f42-974c724a3835', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-06-0676', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Brain', NULL, NULL, NULL, 'TCGA-GBM', NULL, 'Glioblastoma Multiforme', 'Not Reported', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556730390916966, NULL, NULL, NULL, NULL, NULL, '175cb088-9b10-4fa9-95c0-7837fdc7bcf9', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'released', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-17-Z037', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Bronchus and lung', NULL, NULL, NULL, 'TCGA-LUAD', NULL, 'Lung Adenocarcinoma', 'Adenomas and Adenocarcinomas', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);