-- DBMS: snowflake
create or replace TABLE CLINICAL_CPTAC_TCGA_PDC_V1_21 (
	"case_id" VARCHAR(16777216),
	"case_submitter_id" VARCHAR(16777216),
	"project_submitter_id" VARCHAR(16777216),
	"primary_site" VARCHAR(16777216),
	"disease_type" VARCHAR(16777216),
	"demographic_id" VARCHAR(16777216),
	"demographic_submitter_id" VARCHAR(16777216),
	"race" VARCHAR(16777216),
	"ethnicity" VARCHAR(16777216),
	"gender" VARCHAR(16777216),
	"days_to_birth" NUMBER(38,0),
	"days_to_death" NUMBER(38,0),
	"year_of_birth" NUMBER(38,0),
	"year_of_death" NUMBER(38,0),
	"vital_status" VARCHAR(16777216),
	"diagnosis_id" VARCHAR(16777216),
	"diagnosis_submitter_id" VARCHAR(16777216),
	"primary_diagnosis" VARCHAR(16777216),
	"age_at_diagnosis" NUMBER(38,0),
	"year_of_diagnosis" VARCHAR(16777216),
	"days_to_hiv_diagnosis" VARCHAR(16777216),
	"days_to_last_follow_up" NUMBER(38,0),
	"days_to_last_known_disease_status" NUMBER(38,0),
	"days_to_new_event" VARCHAR(16777216),
	"ajcc_pathologic_m" VARCHAR(16777216),
	"ajcc_pathologic_n" VARCHAR(16777216),
	"ajcc_pathologic_stage" VARCHAR(16777216),
	"ajcc_pathologic_t" VARCHAR(16777216),
	"circumferential_resection_margin" VARCHAR(16777216),
	"colon_polyps_history" VARCHAR(16777216),
	"figo_stage" VARCHAR(16777216),
	"hiv_positive" VARCHAR(16777216),
	"hpv_positive_type" VARCHAR(16777216),
	"hpv_status" VARCHAR(16777216),
	"ldh_level_at_diagnosis" VARCHAR(16777216),
	"ldh_normal_range_upper" VARCHAR(16777216),
	"lymph_nodes_positive" VARCHAR(16777216),
	"morphology" VARCHAR(16777216),
	"new_event_anatomic_site" VARCHAR(16777216),
	"new_event_type" VARCHAR(16777216),
	"prior_malignancy" BOOLEAN,
	"prior_treatment" BOOLEAN,
	"site_of_resection_or_biopsy" VARCHAR(16777216),
	"tissue_or_organ_of_origin" VARCHAR(16777216),
	"tumor_stage" VARCHAR(16777216)
);

INSERT INTO "TCGA_MITELMAN"."TCGA_VERSIONED"."CLINICAL_CPTAC_TCGA_PDC_V1_21" (ldh_normal_range_upper, race, days_to_birth, ajcc_pathologic_t, days_to_death, ldh_level_at_diagnosis, primary_diagnosis, new_event_anatomic_site, days_to_new_event, demographic_submitter_id, figo_stage, ajcc_pathologic_n, age_at_diagnosis, vital_status, hpv_positive_type, days_to_hiv_diagnosis, disease_type, new_event_type, lymph_nodes_positive, days_to_last_follow_up, diagnosis_id, tissue_or_organ_of_origin, days_to_last_known_disease_status, morphology, ajcc_pathologic_stage, demographic_id, project_submitter_id, gender, year_of_death, year_of_birth, circumferential_resection_margin, case_id, ethnicity, primary_site, hiv_positive, colon_polyps_history, tumor_stage, diagnosis_submitter_id, prior_malignancy, case_submitter_id, prior_treatment, site_of_resection_or_biopsy, hpv_status, ajcc_pathologic_m, year_of_diagnosis) VALUES (NULL, NULL, nan, NULL, nan, NULL, NULL, NULL, NULL, 'OVARIAN-CONTROL-DM', NULL, NULL, nan, NULL, NULL, NULL, 'Other', NULL, NULL, nan, '87232c66-f649-11e9-9a07-0a80fada099c', NULL, NULL, NULL, NULL, '1f061f27-f645-11e9-9a07-0a80fada099c', 'CPTAC-TCGA', NULL, nan, nan, NULL, '6a47870c-ec51-11e9-81b4-2a2ae2dbcce4', NULL, NULL, NULL, NULL, NULL, 'OVARIAN-CONTROL-DX', NULL, 'OVARIAN-CONTROL', NULL, NULL, NULL, NULL, NULL), (NULL, NULL, nan, NULL, nan, NULL, NULL, NULL, NULL, 'Internal Reference-DM', NULL, NULL, nan, NULL, NULL, NULL, 'Other', NULL, NULL, nan, '872323c4-f649-11e9-9a07-0a80fada099c', NULL, NULL, NULL, NULL, '1f061a39-f645-11e9-9a07-0a80fada099c', 'CPTAC-TCGA', NULL, nan, nan, NULL, '6a4781d0-ec51-11e9-81b4-2a2ae2dbcce4', NULL, NULL, NULL, NULL, NULL, 'Internal Reference-DX', NULL, 'Internal Reference', NULL, NULL, NULL, NULL, NULL), ('--', NULL, -30834.0, 'T3', 670.0, '--', 'Adenocarcinoma, NOS', '--', '--', 'TCGA-AA-A02R-DM', NULL, 'N0', 30834.0, 'Dead', '--', '--', 'Colon Adenocarcinoma', '--', '--', nan, 'ff2c3345-70ca-11e8-bcf1-0a2705229b82', 'Cecum', NULL, '8140/3', 'Stage IIA', 'f69ceac9-7588-11e8-bcf1-0a2705229b82', 'CPTAC-TCGA', 'Female', 2007.0, 1922.0, '--', '8498bc72-63d8-11e8-bcf1-0a2705229b82', NULL, 'Colon', '--', '--', 'Stage IIA', 'TCGA-AA-A02R-DX', False, 'TCGA-AA-A02R', False, 'Cecum', '--', 'M0', '2006'), ('--', NULL, -30256.0, 'T3', 90.0, '--', 'Adenocarcinoma, NOS', '--', '--', 'TCGA-AA-A02E-DM', NULL, 'N1', 30256.0, 'Dead', '--', '--', 'Colon Adenocarcinoma', '--', '--', nan, 'ff2cab4d-70ca-11e8-bcf1-0a2705229b82', 'Cecum', NULL, '8140/3', 'Stage IV', 'f69d4a2c-7588-11e8-bcf1-0a2705229b82', 'CPTAC-TCGA', 'Female', 2007.0, 1925.0, '--', '7f9ddc5a-63d8-11e8-bcf1-0a2705229b82', NULL, 'Colon', '--', '--', 'Stage IV', 'TCGA-AA-A02E-DX', False, 'TCGA-AA-A02E', False, 'Cecum', '--', 'M1', '2007'), ('--', NULL, -32872.0, 'T3', 549.0, '--', 'Mucinous adenocarcinoma', '--', '--', 'TCGA-AA-A03F-DM', NULL, 'N2', 32872.0, 'Dead', '--', '--', 'Colon Adenocarcinoma', '--', '--', 0.0, 'ff2c86b4-70ca-11e8-bcf1-0a2705229b82', 'Cecum', NULL, '8480/3', 'Stage III', 'f69d341a-7588-11e8-bcf1-0a2705229b82', 'CPTAC-TCGA', 'Female', nan, 1914.0, '--', '87208dbd-63d8-11e8-bcf1-0a2705229b82', NULL, 'Colon', '--', '--', 'Stage III', 'TCGA-AA-A03F-DX', False, 'TCGA-AA-A03F', False, 'Cecum', '--', 'M0', '2004');