-- 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_MITELMAN"."TCGA_VERSIONED"."CLINICAL_CPTAC_TCGA_PDC_V1_17" (vital_status, days_to_death, primary_site, ajcc_pathologic_m, hiv_positive, prior_treatment, days_to_hiv_diagnosis, ldh_normal_range_upper, project_submitter_id, hpv_positive_type, year_of_death, morphology, days_to_last_known_disease_status, ethnicity, site_of_resection_or_biopsy, days_to_new_event, new_event_anatomic_site, hpv_status, ajcc_pathologic_t, tissue_or_organ_of_origin, ldh_level_at_diagnosis, year_of_birth, age_at_diagnosis, disease_type, figo_stage, diagnosis_id, gender, demographic_id, lymph_nodes_positive, days_to_last_follow_up, case_submitter_id, circumferential_resection_margin, demographic_submitter_id, ajcc_pathologic_stage, race, new_event_type, year_of_diagnosis, days_to_birth, prior_malignancy, tumor_stage, ajcc_pathologic_n, primary_diagnosis, case_id, colon_polyps_history, diagnosis_submitter_id) VALUES (NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, 'CPTAC-TCGA', NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, nan, 'Other', NULL, '87232c66-f649-11e9-9a07-0a80fada099c', NULL, '1f061f27-f645-11e9-9a07-0a80fada099c', NULL, nan, 'OVARIAN-CONTROL', NULL, 'OVARIAN-CONTROL-DM', NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, '6a47870c-ec51-11e9-81b4-2a2ae2dbcce4', NULL, 'OVARIAN-CONTROL-DX'), ('Alive', nan, 'Ovary', NULL, '--', False, '--', '--', 'CPTAC-TCGA', '--', nan, '8441/3', NULL, 'Not Hispanic or Latino', 'Ovary', '--', '--', '--', NULL, 'Ovary', '--', 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, NULL, 'Serous cystadenocarcinoma, NOS', '3b72a8e5-63d7-11e8-bcf1-0a2705229b82', '--', 'TCGA-13-1410-DX'), ('Dead', 583.0, 'Ovary', NULL, '--', False, '--', '--', 'CPTAC-TCGA', '--', 2000.0, '8441/3', NULL, NULL, 'Ovary', '--', '--', '--', NULL, 'Ovary', '--', 1932.0, 24758.0, 'Ovarian Serous Cystadenocarcinoma', 'Stage IIIC', 'ff2c0d02-70ca-11e8-bcf1-0a2705229b82', 'Female', 'f6998567-7588-11e8-bcf1-0a2705229b82', '--', 583.0, 'TCGA-24-1431', '--', 'TCGA-24-1431-DM', NULL, 'White', '--', '1999', -24758.0, NULL, NULL, NULL, 'Serous cystadenocarcinoma, NOS', '67344504-63d7-11e8-bcf1-0a2705229b82', '--', 'TCGA-24-1431-DX'), ('Dead', 1213.0, 'Ovary', NULL, '--', False, '--', '--', 'CPTAC-TCGA', '--', 2003.0, '8441/3', NULL, NULL, 'Ovary', '--', '--', '--', NULL, 'Ovary', '--', 1951.0, 17943.0, 'Ovarian Serous Cystadenocarcinoma', 'Stage IIIC', 'ff2c3468-70ca-11e8-bcf1-0a2705229b82', 'Female', 'f69994ad-7588-11e8-bcf1-0a2705229b82', '--', 1213.0, 'TCGA-24-1557', '--', 'TCGA-24-1557-DM', NULL, 'White', '--', '2000', -17943.0, NULL, NULL, NULL, 'Serous cystadenocarcinoma, NOS', '7b889f56-63d7-11e8-bcf1-0a2705229b82', '--', 'TCGA-24-1557-DX'), ('Dead', 1769.0, 'Ovary', NULL, '--', False, '--', '--', 'CPTAC-TCGA', '--', 1998.0, '8441/3', NULL, NULL, 'Ovary', '--', '--', '--', NULL, 'Ovary', '--', 1922.0, 26476.0, 'Ovarian Serous Cystadenocarcinoma', 'Stage IIIC', 'ff2f2838-70ca-11e8-bcf1-0a2705229b82', 'Female', 'f69ba71a-7588-11e8-bcf1-0a2705229b82', '--', 1769.0, 'TCGA-24-2024', '--', 'TCGA-24-2024-DM', NULL, 'Black or African American', '--', '1994', -26476.0, NULL, NULL, NULL, 'Serous cystadenocarcinoma, NOS', '8b0bd36f-63d7-11e8-bcf1-0a2705229b82', '--', 'TCGA-24-2024-DX');