-- 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_MITELMAN"."TCGA_VERSIONED"."CLINICAL_CPTAC_TCGA_PDC_V2_10" (site_of_resection_or_biopsy, primary_site, project_submitter_id, vital_status, morphology, ethnicity, ajcc_pathologic_stage, year_of_birth, hpv_status, case_id, prior_treatment, demographic_id, ldh_normal_range_upper, lymph_nodes_positive, year_of_diagnosis, ajcc_pathologic_n, prior_malignancy, disease_type, diagnosis_submitter_id, ajcc_pathologic_m, diagnosis_id, circumferential_resection_margin, colon_polyps_history, demographic_submitter_id, ldh_level_at_diagnosis, days_to_new_event, primary_diagnosis, year_of_death, days_to_hiv_diagnosis, new_event_type, figo_stage, days_to_death, tumor_stage, hiv_positive, tissue_or_organ_of_origin, new_event_anatomic_site, race, age_at_diagnosis, days_to_last_follow_up, hpv_positive_type, days_to_birth, case_submitter_id, gender, ajcc_pathologic_t) VALUES (NULL, NULL, 'CPTAC-TCGA', NULL, NULL, NULL, NULL, nan, NULL, '6a47870c-ec51-11e9-81b4-2a2ae2dbcce4', NULL, '1f061f27-f645-11e9-9a07-0a80fada099c', NULL, NULL, NULL, NULL, NULL, 'Other', 'OVARIAN-CONTROL-DX', NULL, '87232c66-f649-11e9-9a07-0a80fada099c', NULL, NULL, 'OVARIAN-CONTROL-DM', NULL, NULL, NULL, nan, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, nan, nan, NULL, nan, 'OVARIAN-CONTROL', NULL, NULL), (NULL, NULL, 'CPTAC-TCGA', NULL, NULL, NULL, NULL, nan, NULL, '6a4781d0-ec51-11e9-81b4-2a2ae2dbcce4', NULL, '1f061a39-f645-11e9-9a07-0a80fada099c', NULL, NULL, NULL, NULL, NULL, 'Other', 'Internal Reference-DX', NULL, '872323c4-f649-11e9-9a07-0a80fada099c', NULL, NULL, 'Internal Reference-DM', NULL, NULL, NULL, nan, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, nan, nan, NULL, nan, 'Internal Reference', NULL, NULL), ('Ovary', 'Ovary', 'CPTAC-TCGA', 'Dead', '8441/3', NULL, NULL, 1935.0, '--', '929c0fda-63d7-11e8-bcf1-0a2705229b82', NULL, 'f69ba3ce-7588-11e8-bcf1-0a2705229b82', '--', '--', '1993', NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', 'TCGA-24-2267-DX', NULL, 'ff2f20c8-70ca-11e8-bcf1-0a2705229b82', '--', '--', 'TCGA-24-2267-DM', '--', '--', 'Serous cystadenocarcinoma, NOS', 1996.0, '--', '--', 'Stage IIB', 1446.0, NULL, '--', 'Ovary', '--', 'White', 21293.0, 1446.0, '--', -21293.0, 'TCGA-24-2267', 'Female', NULL), ('Ovary', 'Ovary', 'CPTAC-TCGA', 'Dead', '8441/3', NULL, NULL, 1932.0, '--', '67344504-63d7-11e8-bcf1-0a2705229b82', NULL, 'f6998567-7588-11e8-bcf1-0a2705229b82', '--', '--', '1999', NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', 'TCGA-24-1431-DX', NULL, 'ff2c0d02-70ca-11e8-bcf1-0a2705229b82', '--', '--', 'TCGA-24-1431-DM', '--', '--', 'Serous cystadenocarcinoma, NOS', 2000.0, '--', '--', 'Stage IIIC', 583.0, NULL, '--', 'Ovary', '--', 'White', 24758.0, 583.0, '--', -24758.0, 'TCGA-24-1431', 'Female', NULL), ('Ovary', 'Ovary', 'CPTAC-TCGA', 'Dead', '8441/3', NULL, NULL, 1927.0, '--', 'b66911c2-63d7-11e8-bcf1-0a2705229b82', NULL, 'f6996d3e-7588-11e8-bcf1-0a2705229b82', '--', '--', '1993', NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', 'TCGA-29-1690-DX', NULL, 'ff2bd38f-70ca-11e8-bcf1-0a2705229b82', '--', '--', 'TCGA-29-1690-DM', '--', '--', 'Serous cystadenocarcinoma, NOS', 1996.0, '--', '--', 'Stage IIIC', 1448.0, NULL, '--', 'Ovary', '--', 'White', 24319.0, 1360.0, '--', -24319.0, 'TCGA-29-1690', 'Female', NULL);