-- DBMS: snowflake
create or replace TABLE CLINICAL_CPTAC_TCGA_PDC_V1_17 (
	"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_17" (days_to_death, vital_status, primary_site, ajcc_pathologic_m, hiv_positive, prior_treatment, days_to_hiv_diagnosis, ldh_normal_range_upper, hpv_positive_type, project_submitter_id, morphology, year_of_death, days_to_last_known_disease_status, ethnicity, site_of_resection_or_biopsy, hpv_status, days_to_new_event, new_event_anatomic_site, tissue_or_organ_of_origin, ajcc_pathologic_t, year_of_birth, age_at_diagnosis, ldh_level_at_diagnosis, disease_type, figo_stage, diagnosis_id, gender, demographic_id, lymph_nodes_positive, days_to_last_follow_up, circumferential_resection_margin, case_submitter_id, demographic_submitter_id, ajcc_pathologic_stage, race, new_event_type, year_of_diagnosis, days_to_birth, prior_malignancy, ajcc_pathologic_n, primary_diagnosis, tumor_stage, colon_polyps_history, case_id, diagnosis_submitter_id) VALUES (nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'CPTAC-TCGA', NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, nan, NULL, 'Other', NULL, '87232c66-f649-11e9-9a07-0a80fada099c', NULL, '1f061f27-f645-11e9-9a07-0a80fada099c', NULL, nan, NULL, 'OVARIAN-CONTROL', 'OVARIAN-CONTROL-DM', NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, '6a47870c-ec51-11e9-81b4-2a2ae2dbcce4', 'OVARIAN-CONTROL-DX'), (nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'CPTAC-TCGA', NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, nan, NULL, 'Other', NULL, '872323c4-f649-11e9-9a07-0a80fada099c', NULL, '1f061a39-f645-11e9-9a07-0a80fada099c', NULL, nan, NULL, 'Internal Reference', 'Internal Reference-DM', NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, '6a4781d0-ec51-11e9-81b4-2a2ae2dbcce4', 'Internal Reference-DX'), (nan, 'Alive', 'Ovary', NULL, '--', False, '--', '--', '--', 'CPTAC-TCGA', '8441/3', nan, NULL, 'Not Hispanic or Latino', 'Ovary', '--', '--', '--', 'Ovary', NULL, 1966.0, 16016.0, '--', 'Ovarian Serous Cystadenocarcinoma', 'Stage IIIC', 'ff2bdd49-70ca-11e8-bcf1-0a2705229b82', 'Female', 'f699713b-7588-11e8-bcf1-0a2705229b82', '--', 61.0, '--', 'TCGA-61-1995', 'TCGA-61-1995-DM', NULL, 'White', '--', '2009', -16016.0, NULL, NULL, 'Serous cystadenocarcinoma, NOS', NULL, '--', '06b79e23-63d8-11e8-bcf1-0a2705229b82', 'TCGA-61-1995-DX'), (nan, 'Alive', 'Ovary', NULL, '--', False, '--', '--', '--', 'CPTAC-TCGA', '8441/3', nan, NULL, 'Not Hispanic or Latino', 'Ovary', '--', '--', '--', 'Ovary', NULL, 1951.0, 20950.0, '--', 'Ovarian Serous Cystadenocarcinoma', 'Stage IV', 'ff2ca176-70ca-11e8-bcf1-0a2705229b82', 'Female', 'f69a92b3-7588-11e8-bcf1-0a2705229b82', '--', 2464.0, '--', 'TCGA-13-1410', 'TCGA-13-1410-DM', NULL, 'White', '--', '2008', -20950.0, NULL, NULL, 'Serous cystadenocarcinoma, NOS', NULL, '--', '3b72a8e5-63d7-11e8-bcf1-0a2705229b82', 'TCGA-13-1410-DX'), (1102.0, 'Dead', 'Ovary', NULL, '--', False, '--', '--', '--', 'CPTAC-TCGA', '8441/3', 2000.0, NULL, NULL, 'Specified parts of peritoneum', '--', '--', '--', 'Ovary', NULL, 1941.0, 20530.0, '--', 'Ovarian Serous Cystadenocarcinoma', 'Stage IIIC', 'ff2f2a94-70ca-11e8-bcf1-0a2705229b82', 'Female', 'f69ba8a4-7588-11e8-bcf1-0a2705229b82', '--', 1102.0, '--', 'TCGA-24-2290', 'TCGA-24-2290-DM', NULL, 'White', '--', '1997', -20530.0, NULL, NULL, 'Serous cystadenocarcinoma, NOS', NULL, '--', '9688e191-63d7-11e8-bcf1-0a2705229b82', 'TCGA-24-2290-DX');