-- 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"."TCGA_VERSIONED"."CLINICAL_GDC_R29" (exp__weight, diag__year_of_diagnosis, diag__updated_datetime, diag__progression_or_recurrence, exp__bmi, exp__updated_datetime, diag__ajcc_clinical_m, updated_datetime, diag__igcccg_stage, diag__age_at_diagnosis, diag__prior_malignancy, demo__race, case_id, diag__primary_diagnosis, diag__site_of_resection_or_biopsy, demo__ethnicity, diag__classification_of_tumor, diag__ajcc_pathologic_m, demo__updated_datetime, demo__days_to_death, diag__morphology, diag__tissue_or_organ_of_origin, exp__alcohol_history, diag__ajcc_staging_system_edition, state, demo__created_datetime, diag__ajcc_pathologic_n, demo__year_of_death, demo__state, demo__age_at_index, diag__ann_arbor_b_symptoms, diag__ajcc_clinical_stage, exp__years_smoked, demo__year_of_birth, diag__created_datetime, diag__tumor_grade, exp__cigarettes_per_day, diag__prior_treatment, diag__ajcc_pathologic_t, diag__primary_gleason_grade, submitter_id, diag__tumor_stage, diag__days_to_last_follow_up, demo__demographic_id, exp__state, diag__diagnosis_id, diag__secondary_gleason_grade, demo__gender, diag__ann_arbor_extranodal_involvement, diag__figo_stage, demo__vital_status, diag__icd_10_code, demo__days_to_birth, diag__ajcc_pathologic_stage, primary_site, proj__project_id, diag__state, exp__height, exp__exposure_id, diag__ann_arbor_clinical_stage, disease_type, diag__ajcc_clinical_n, proj__name, diag__treat__count, diag__synchronous_malignancy, diag__ajcc_clinical_t, diag__masaoka_stage, 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, '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, NULL, NULL, 'TCGA-FL-A1YH', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Uterus, NOS', 'TCGA-UCEC', NULL, NULL, NULL, NULL, 'Not Reported', NULL, 'Uterine Corpus Endometrial Carcinoma', 0, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556729625009083, 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, NULL, NULL, 'TCGA-02-0329', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Brain', 'TCGA-GBM', NULL, NULL, NULL, NULL, 'Gliomas', NULL, 'Glioblastoma Multiforme', 0, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556730777541779, 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, NULL, NULL, 'TCGA-01-0639', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ovary', 'TCGA-OV', NULL, NULL, NULL, NULL, 'Not Reported', NULL, 'Ovarian Serous Cystadenocarcinoma', 0, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556730390916966, NULL, NULL, NULL, NULL, '94ee639e-3cb4-4943-b5f1-a89eb902153c', 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, NULL, NULL, 'TCGA-17-Z041', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Bronchus and lung', 'TCGA-LUAD', NULL, NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', NULL, 'Lung Adenocarcinoma', 0, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1556730373818117, NULL, NULL, NULL, NULL, '53d7b0c2-b8ed-43c8-9ffd-a586e0a68086', 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, NULL, NULL, 'TCGA-17-Z006', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Bronchus and lung', 'TCGA-LUAD', NULL, NULL, NULL, NULL, 'Adenomas and Adenocarcinomas', NULL, 'Lung Adenocarcinoma', 0, NULL, NULL, NULL, NULL, NULL, NULL);