-- 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"."TCGA_VERSIONED"."CLINICAL_CPTAC_TCGA_PDC_V1_21" (ldh_normal_range_upper, race, ajcc_pathologic_t, days_to_birth, 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, year_of_death, gender, ethnicity, year_of_birth, circumferential_resection_margin, case_id, primary_site, hiv_positive, colon_polyps_history, tumor_stage, prior_malignancy, diagnosis_submitter_id, site_of_resection_or_biopsy, ajcc_pathologic_m, hpv_status, case_submitter_id, prior_treatment, year_of_diagnosis) VALUES (NULL, NULL, NULL, nan, 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', nan, NULL, NULL, nan, NULL, '6a47870c-ec51-11e9-81b4-2a2ae2dbcce4', NULL, NULL, NULL, NULL, NULL, 'OVARIAN-CONTROL-DX', NULL, NULL, NULL, 'OVARIAN-CONTROL', NULL, NULL), ('--', NULL, 'T4', -27667.0, 122.0, '--', 'Mucinous adenocarcinoma', '--', '--', 'TCGA-AA-A00N-DM', NULL, 'N0', 27667.0, 'Dead', '--', '--', 'Colon Adenocarcinoma', '--', '--', nan, 'ff2c0aba-70ca-11e8-bcf1-0a2705229b82', 'Cecum', NULL, '8480/3', 'Stage IIB', 'f69cd4b0-7588-11e8-bcf1-0a2705229b82', 'CPTAC-TCGA', 2008.0, 'Male', NULL, 1933.0, '--', '64a2daab-63d8-11e8-bcf1-0a2705229b82', 'Colon', '--', '--', 'Stage IIB', False, 'TCGA-AA-A00N-DX', 'Cecum', 'M0', '--', 'TCGA-AA-A00N', False, '2008'), ('--', NULL, 'T3', -30834.0, 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', 2007.0, 'Female', NULL, 1922.0, '--', '8498bc72-63d8-11e8-bcf1-0a2705229b82', 'Colon', '--', '--', 'Stage IIA', False, 'TCGA-AA-A02R-DX', 'Cecum', 'M0', '--', 'TCGA-AA-A02R', False, '2006'), ('--', 'White', NULL, -19969.0, 951.0, '--', 'Serous cystadenocarcinoma, NOS', '--', '--', 'TCGA-29-1710-DM', 'Stage IIIC', NULL, 19969.0, 'Dead', '--', '--', 'Ovarian Serous Cystadenocarcinoma', '--', '--', 889.0, 'ff2c7e90-70ca-11e8-bcf1-0a2705229b82', 'Ovary', NULL, '8441/3', NULL, 'f699b8ba-7588-11e8-bcf1-0a2705229b82', 'CPTAC-TCGA', 2008.0, 'Female', NULL, 1952.0, '--', 'bf27811f-63d7-11e8-bcf1-0a2705229b82', 'Ovary', '--', '--', NULL, NULL, 'TCGA-29-1710-DX', 'Ovary', NULL, '--', 'TCGA-29-1710', False, '2006'), ('--', 'White', NULL, -22377.0, 880.0, '--', 'Serous cystadenocarcinoma, NOS', '--', '--', 'TCGA-42-2588-DM', 'Stage IV', NULL, 22377.0, 'Dead', '--', '--', 'Ovarian Serous Cystadenocarcinoma', '--', '--', 287.0, 'ff2c8592-70ca-11e8-bcf1-0a2705229b82', 'Ovary', NULL, '8441/3', NULL, 'f699bba1-7588-11e8-bcf1-0a2705229b82', 'CPTAC-TCGA', nan, 'Female', 'Not Hispanic or Latino', 1948.0, '--', 'f158835b-63d7-11e8-bcf1-0a2705229b82', 'Ovary', '--', '--', NULL, NULL, 'TCGA-42-2588-DX', 'Ovary', NULL, '--', 'TCGA-42-2588', False, '2009');