-- DBMS: snowflake
create or replace TABLE CLINICAL_GDC_R26 (
	"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" FLOAT,
	"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" FLOAT,
	"demo__state" VARCHAR(16777216),
	"demo__created_datetime" VARCHAR(16777216),
	"demo__updated_datetime" VARCHAR(16777216),
	"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" VARCHAR(16777216),
	"diag__updated_datetime" VARCHAR(16777216),
	"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" VARCHAR(16777216),
	"exp__updated_datetime" VARCHAR(16777216),
	"state" VARCHAR(16777216),
	"updated_datetime" VARCHAR(16777216)
);

INSERT INTO "TCGA_MITELMAN"."TCGA_VERSIONED"."CLINICAL_GDC_R26" (diag__secondary_gleason_grade, diag__ann_arbor_b_symptoms, diag__ajcc_clinical_t, exp__alcohol_history, updated_datetime, diag__masaoka_stage, diag__ajcc_pathologic_stage, diag__created_datetime, exp__weight, diag__prior_treatment, demo__year_of_death, diag__ajcc_pathologic_t, diag__figo_stage, diag__updated_datetime, disease_type, primary_site, state, diag__igcccg_stage, diag__ann_arbor_extranodal_involvement, exp__bmi, diag__year_of_diagnosis, diag__primary_diagnosis, diag__treat__count, diag__site_of_resection_or_biopsy, diag__ajcc_clinical_stage, demo__state, diag__state, demo__race, demo__days_to_birth, diag__ajcc_staging_system_edition, diag__ajcc_clinical_n, exp__cigarettes_per_day, demo__year_of_birth, diag__tissue_or_organ_of_origin, exp__height, demo__vital_status, diag__ann_arbor_clinical_stage, diag__age_at_diagnosis, diag__progression_or_recurrence, diag__classification_of_tumor, submitter_id, exp__years_smoked, exp__created_datetime, proj__project_id, case_id, proj__name, diag__ajcc_clinical_m, demo__demographic_id, exp__pack_years_smoked, diag__morphology, diag__tumor_grade, diag__synchronous_malignancy, demo__created_datetime, diag__diagnosis_id, exp__exposure_id, demo__updated_datetime, diag__tumor_stage, exp__updated_datetime, diag__days_to_last_follow_up, demo__days_to_death, diag__ajcc_pathologic_m, diag__primary_gleason_grade, demo__age_at_index, diag__ajcc_pathologic_n, diag__prior_malignancy, demo__ethnicity, demo__gender, diag__last_known_disease_status, exp__state, diag__icd_10_code) VALUES (NULL, NULL, NULL, 'Not Reported', '2019-08-06T14:13:44.884705-05:00', NULL, 'Stage X', NULL, NULL, 'No', nan, 'TX', NULL, '2019-08-08T16:19:58.650144-05:00', 'Ductal and Lobular Neoplasms', 'Breast', 'released', NULL, NULL, NULL, 2004, 'Lobular carcinoma, NOS', 2, 'Breast, NOS', NULL, 'released', 'released', 'white', -20211.0, '6th', NULL, NULL, 1949, 'Breast, NOS', NULL, 'Alive', NULL, 20211, 'not reported', 'not reported', 'TCGA-3C-AAAU', NULL, NULL, 'TCGA-BRCA', '6e7d5ec6-a469-467c-b748-237353c23416', 'Breast Invasive Carcinoma', NULL, 'cee0a94c-1d9e-5650-a500-a6b021fe138d', NULL, '8520/3', 'not reported', 'No', NULL, '8cfb8afb-b915-5255-865b-a5923f47b351', '72f0be98-dffa-5d35-88fe-f9ca774d6db0', '2019-07-31T21:21:01.590763-05:00', 'stage x', '2019-07-31T21:21:01.590763-05:00', 4047.0, nan, 'MX', NULL, 55, 'NX', 'no', 'not hispanic or latino', 'female', 'not reported', 'released', 'C50.9'), (NULL, NULL, NULL, 'Not Reported', '2019-08-06T14:14:19.396452-05:00', NULL, 'Stage X', NULL, NULL, 'No', nan, 'T4b', NULL, '2019-08-08T16:21:32.660138-05:00', 'Ductal and Lobular Neoplasms', 'Breast', 'released', NULL, NULL, NULL, 2008, 'Infiltrating duct carcinoma, NOS', 2, 'Breast, NOS', NULL, 'released', 'released', 'not reported', -29800.0, '6th', NULL, NULL, 1927, 'Breast, NOS', NULL, 'Alive', NULL, 29800, 'not reported', 'not reported', 'TCGA-A8-A07E', NULL, NULL, 'TCGA-BRCA', '853456d8-2367-404e-abc9-020fe8bbd209', 'Breast Invasive Carcinoma', NULL, '5b527883-990b-5c9e-a301-6afdfef1e9ae', NULL, '8500/3', 'not reported', 'Not Reported', NULL, 'cd137203-ee96-54f9-a713-9cedb738d24e', '4b717e95-f6f0-535e-8db3-b713f42b3b3e', '2019-07-31T21:47:28.898395-05:00', 'stage x', '2019-07-31T21:47:28.898395-05:00', 608.0, nan, 'MX', NULL, 81, 'N3a', 'yes', 'not reported', 'female', 'not reported', 'released', 'C50.9'), (NULL, NULL, NULL, 'Not Reported', '2019-08-06T14:14:30.298341-05:00', NULL, 'Stage X', NULL, NULL, 'No', nan, 'T2', NULL, '2019-08-08T16:22:07.499730-05:00', 'Ductal and Lobular Neoplasms', 'Breast', 'released', NULL, NULL, NULL, 2009, 'Infiltrating duct carcinoma, NOS', 2, 'Breast, NOS', NULL, 'released', 'released', 'not reported', -25355.0, '6th', NULL, NULL, 1940, 'Breast, NOS', NULL, 'Alive', NULL, 25355, 'not reported', 'not reported', 'TCGA-A8-A09C', NULL, NULL, 'TCGA-BRCA', '80f3f48a-cc21-415c-b181-c77e7ba1c563', 'Breast Invasive Carcinoma', NULL, 'a696eb4e-6327-5623-8c68-8b71b336c866', NULL, '8500/3', 'not reported', 'Not Reported', NULL, '7f3f10a1-50c0-54fe-96be-6f294792ddda', 'cfaec1c2-587a-539b-ba8f-5920c8e378c8', '2019-07-31T21:22:28.091532-05:00', 'stage x', '2019-07-31T21:22:28.091532-05:00', 31.0, nan, 'MX', NULL, 69, 'N0', 'yes', 'not reported', 'female', 'not reported', 'released', 'C50.9'), (NULL, NULL, NULL, 'Not Reported', '2019-08-06T14:15:27.659269-05:00', NULL, 'Stage X', NULL, NULL, 'No', nan, 'TX', NULL, '2019-08-08T16:24:46.807013-05:00', 'Ductal and Lobular Neoplasms', 'Breast', 'released', NULL, NULL, NULL, 1989, 'Infiltrating duct carcinoma, NOS', 2, 'Breast, NOS', NULL, 'released', 'released', 'black or african american', -22449.0, NULL, NULL, NULL, 1928, 'Breast, NOS', NULL, 'Alive', NULL, 22449, 'not reported', 'not reported', 'TCGA-B6-A0RE', NULL, NULL, 'TCGA-BRCA', '08da7c4c-3067-4bcf-9d7a-78566df72e69', 'Breast Invasive Carcinoma', NULL, 'c23ea384-a6c0-59e8-9156-861ee004bb44', NULL, '8500/3', 'not reported', 'No', NULL, 'bd1910ec-4316-5dfa-b8a3-615a4ea5b944', 'dda74c27-8918-5614-9526-e339693e74a3', '2019-07-31T21:30:52.133469-05:00', 'stage x', '2019-07-31T21:30:52.133469-05:00', 7777.0, nan, 'M0', NULL, 61, 'N0 (i-)', 'no', 'not hispanic or latino', 'female', 'not reported', 'released', 'C50.9'), (NULL, NULL, NULL, 'Not Reported', '2019-08-06T14:15:27.659269-05:00', NULL, 'Stage X', NULL, NULL, 'No', 1994.0, 'T1', NULL, '2019-08-08T16:24:46.807013-05:00', 'Ductal and Lobular Neoplasms', 'Breast', 'released', NULL, NULL, NULL, 1992, 'Infiltrating duct carcinoma, NOS', 2, 'Breast, NOS', NULL, 'released', 'released', 'white', -17073.0, '4th', NULL, NULL, 1946, 'Breast, NOS', NULL, 'Dead', NULL, 17073, 'not reported', 'not reported', 'TCGA-B6-A0I8', NULL, NULL, 'TCGA-BRCA', '6e6408d6-6c48-4dfc-9f1c-28b7386e87b4', 'Breast Invasive Carcinoma', NULL, '089578db-3a99-5d38-9743-92ddf9c74d6f', NULL, '8500/3', 'not reported', 'Not Reported', NULL, 'd8a2218c-063e-5177-aca1-fb6f474dc441', '6420f411-cf6b-509a-861b-b6c8a1c0f3c9', '2019-07-31T21:44:41.685074-05:00', 'stage x', '2019-07-31T21:44:41.685074-05:00', nan, 749.0, 'M0', NULL, 46, 'NX', 'yes', 'not hispanic or latino', 'female', 'not reported', 'released', 'C50.9');