-- DBMS: snowflake
create or replace TABLE CLINICAL_CPTAC_TCGA_PDC_V2_10 (
	"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" FLOAT,
	"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_V2_10" (site_of_resection_or_biopsy, primary_site, vital_status, project_submitter_id, morphology, ethnicity, ajcc_pathologic_stage, year_of_birth, hpv_status, case_id, prior_treatment, lymph_nodes_positive, demographic_id, ldh_normal_range_upper, year_of_diagnosis, ajcc_pathologic_n, prior_malignancy, disease_type, ajcc_pathologic_m, diagnosis_submitter_id, circumferential_resection_margin, diagnosis_id, ldh_level_at_diagnosis, demographic_submitter_id, colon_polyps_history, primary_diagnosis, year_of_death, days_to_new_event, days_to_hiv_diagnosis, figo_stage, new_event_type, days_to_death, hiv_positive, tumor_stage, tissue_or_organ_of_origin, race, new_event_anatomic_site, age_at_diagnosis, days_to_last_follow_up, hpv_positive_type, case_submitter_id, days_to_birth, gender, ajcc_pathologic_t) VALUES (NULL, NULL, NULL, 'CPTAC-TCGA', NULL, NULL, NULL, nan, NULL, '6a4781d0-ec51-11e9-81b4-2a2ae2dbcce4', NULL, NULL, '1f061a39-f645-11e9-9a07-0a80fada099c', NULL, NULL, NULL, NULL, 'Other', NULL, 'Internal Reference-DX', NULL, '872323c4-f649-11e9-9a07-0a80fada099c', NULL, 'Internal Reference-DM', NULL, NULL, nan, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, nan, nan, NULL, 'Internal Reference', nan, NULL, NULL), ('Ovary', 'Ovary', 'Alive', 'CPTAC-TCGA', '8441/3', NULL, NULL, 1966.0, '--', 'eda3394b-63d7-11e8-bcf1-0a2705229b82', NULL, '--', 'f69adb15-7588-11e8-bcf1-0a2705229b82', '--', '2008', NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', NULL, 'TCGA-36-2545-DX', '--', 'ff2e21c1-70ca-11e8-bcf1-0a2705229b82', '--', 'TCGA-36-2545-DM', '--', 'Serous cystadenocarcinoma, NOS', nan, '--', '--', 'Stage IIIA', '--', nan, '--', NULL, 'Ovary', NULL, '--', 15444.0, 557.0, '--', 'TCGA-36-2545', -15444.0, 'Female', NULL), ('Ovary', 'Ovary', 'Alive', 'CPTAC-TCGA', '8441/3', 'Not Hispanic or Latino', NULL, 1950.0, '--', '0067a0e0-63d8-11e8-bcf1-0a2705229b82', NULL, '--', 'f69a9a64-7588-11e8-bcf1-0a2705229b82', '--', '2005', NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', NULL, 'TCGA-61-1911-DX', '--', 'ff2cb83d-70ca-11e8-bcf1-0a2705229b82', '--', 'TCGA-61-1911-DM', '--', 'Serous cystadenocarcinoma, NOS', nan, '--', '--', 'Stage IIA', '--', nan, '--', NULL, 'Ovary', 'White', '--', 20144.0, 1293.0, '--', 'TCGA-61-1911', -20144.0, 'Female', NULL), ('Ovary', 'Ovary', 'Dead', 'CPTAC-TCGA', '8441/3', 'Not Hispanic or Latino', NULL, 1936.0, '--', 'a0ad4f83-63d7-11e8-bcf1-0a2705229b82', NULL, '--', 'f6994e92-7588-11e8-bcf1-0a2705229b82', '--', '2001', NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', NULL, 'TCGA-25-1320-DX', '--', 'ff3175fa-70ca-11e8-bcf1-0a2705229b82', '--', 'TCGA-25-1320-DM', '--', 'Serous cystadenocarcinoma, NOS', 2004.0, '--', '--', 'Stage IIIC', '--', 1155.0, '--', NULL, 'Ovary', 'White', '--', 24018.0, 1124.0, '--', 'TCGA-25-1320', -24018.0, 'Female', NULL), ('Ovary', 'Ovary', 'Dead', 'CPTAC-TCGA', '8441/3', NULL, NULL, 1939.0, '--', 'c1a57e52-63d7-11e8-bcf1-0a2705229b82', NULL, '--', 'f69ae80e-7588-11e8-bcf1-0a2705229b82', '--', '1998', NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', NULL, 'TCGA-29-1762-DX', '--', 'ff2e485c-70ca-11e8-bcf1-0a2705229b82', '--', 'TCGA-29-1762-DM', '--', 'Serous cystadenocarcinoma, NOS', 2005.0, '--', '--', 'Stage IV', '--', 2634.0, '--', NULL, 'Ovary', 'White', '--', 21879.0, 2606.0, '--', 'TCGA-29-1762', -21879.0, 'Female', NULL);