-- DBMS: snowflake
create or replace TABLE CLINICAL_CPTAC_TCGA_PDC_V1_9 (
	"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),
	"cause_of_death" VARCHAR(16777216),
	"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_new_event" VARCHAR(16777216),
	"ajcc_clinical_m" VARCHAR(16777216),
	"ajcc_clinical_n" VARCHAR(16777216),
	"ajcc_clinical_stage" VARCHAR(16777216),
	"ajcc_clinical_t" VARCHAR(16777216),
	"ajcc_pathologic_m" VARCHAR(16777216),
	"ajcc_pathologic_n" VARCHAR(16777216),
	"ajcc_pathologic_stage" VARCHAR(16777216),
	"ajcc_pathologic_t" VARCHAR(16777216),
	"ann_arbor_b_symptoms" VARCHAR(16777216),
	"ann_arbor_clinical_stage" VARCHAR(16777216),
	"ann_arbor_extranodal_involvement" VARCHAR(16777216),
	"ann_arbor_pathologic_stage" VARCHAR(16777216),
	"burkitt_lymphoma_clinical_variant" VARCHAR(16777216),
	"circumferential_resection_margin" VARCHAR(16777216),
	"classification_of_tumor" VARCHAR(16777216),
	"colon_polyps_history" VARCHAR(16777216),
	"figo_stage" VARCHAR(16777216),
	"hiv_positive" VARCHAR(16777216),
	"hpv_positive_type" VARCHAR(16777216),
	"hpv_status" VARCHAR(16777216),
	"iss_stage" VARCHAR(16777216),
	"last_known_disease_status" VARCHAR(16777216),
	"laterality" VARCHAR(16777216),
	"ldh_level_at_diagnosis" VARCHAR(16777216),
	"ldh_normal_range_upper" VARCHAR(16777216),
	"lymph_nodes_positive" VARCHAR(16777216),
	"lymphatic_invasion_present" VARCHAR(16777216),
	"method_of_diagnosis" VARCHAR(16777216),
	"morphology" VARCHAR(16777216),
	"new_event_anatomic_site" VARCHAR(16777216),
	"new_event_type" VARCHAR(16777216),
	"perineural_invasion_present" VARCHAR(16777216),
	"prior_malignancy" VARCHAR(16777216),
	"prior_treatment" VARCHAR(16777216),
	"progression_or_recurrence" VARCHAR(16777216),
	"residual_disease" VARCHAR(16777216),
	"site_of_resection_or_biopsy" VARCHAR(16777216),
	"tissue_or_organ_of_origin" VARCHAR(16777216),
	"tumor_grade" VARCHAR(16777216),
	"tumor_stage" VARCHAR(16777216),
	"vascular_invasion_present" VARCHAR(16777216)
);

INSERT INTO "TCGA"."TCGA_VERSIONED"."CLINICAL_CPTAC_TCGA_PDC_V1_9" (gender, prior_malignancy, morphology, site_of_resection_or_biopsy, ajcc_clinical_n, ldh_level_at_diagnosis, progression_or_recurrence, vascular_invasion_present, burkitt_lymphoma_clinical_variant, days_to_new_event, year_of_diagnosis, hiv_positive, days_to_hiv_diagnosis, project_submitter_id, demographic_submitter_id, hpv_status, ajcc_clinical_m, ajcc_clinical_t, iss_stage, tumor_grade, ethnicity, primary_site, year_of_death, new_event_anatomic_site, lymphatic_invasion_present, age_at_diagnosis, vital_status, days_to_birth, ann_arbor_extranodal_involvement, primary_diagnosis, lymph_nodes_positive, days_to_last_follow_up, tissue_or_organ_of_origin, residual_disease, diagnosis_id, prior_treatment, ldh_normal_range_upper, race, cause_of_death, classification_of_tumor, last_known_disease_status, days_to_death, ajcc_pathologic_n, ann_arbor_clinical_stage, ajcc_pathologic_m, new_event_type, perineural_invasion_present, figo_stage, case_id, tumor_stage, ajcc_clinical_stage, ajcc_pathologic_stage, ann_arbor_pathologic_stage, case_submitter_id, hpv_positive_type, method_of_diagnosis, ann_arbor_b_symptoms, demographic_id, laterality, circumferential_resection_margin, disease_type, year_of_birth, ajcc_pathologic_t, colon_polyps_history, diagnosis_submitter_id) VALUES (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'CPTAC-TCGA', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Not Reported', NULL, NULL, NULL, nan, NULL, nan, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '6a477ef6-ec51-11e9-81b4-2a2ae2dbcce4', NULL, NULL, NULL, NULL, 'Internal Reference', NULL, NULL, NULL, NULL, NULL, NULL, 'Other', nan, NULL, NULL, NULL), ('Female', 'Yes', '8500/3', 'Breast, NOS', 'Not Reported', '--', 'Not Reported', 'Not Reported', 'Not Reported', '--', '2009', '--', '--', 'CPTAC-TCGA', 'TCGA-A7-A0CD-DM', '--', 'Not Reported', 'Not Reported', 'Not Reported', 'Not Reported', 'Not Hispanic or Latino', 'Breast', NULL, '--', 'Not Reported', 24242.0, 'Alive', -24242.0, 'Not Reported', 'Infiltrating duct carcinoma, NOS', '--', 1165.0, 'Breast, NOS', 'Not Reported', 'ff2ffe73-70ca-11e8-bcf1-0a2705229b82', 'No', '--', 'White', NULL, 'Not Reported', 'Not Reported', NULL, 'N0', 'Not Reported', 'M0', '--', 'Not Reported', 'Not Reported', '31d4b8ba-63d8-11e8-bcf1-0a2705229b82', 'Stage I', 'Not Reported', 'Stage I', 'Not Reported', 'TCGA-A7-A0CD', '--', 'Not Reported', 'Not Reported', 'f69bf1b6-7588-11e8-bcf1-0a2705229b82', 'Not Reported', '--', 'Breast Invasive Carcinoma', 1943.0, 'T1', '--', 'TCGA-A7-A0CD-DX'), ('Male', 'No', '8140/3', 'Sigmoid colon', 'Not Reported', '--', 'Not Reported', 'Not Reported', 'Not Reported', '--', '2008', '--', '--', 'CPTAC-TCGA', 'TCGA-AA-3558-DM', '--', 'Not Reported', 'Not Reported', 'Not Reported', 'Not Reported', 'Not Reported', 'Colon', NULL, '--', 'Not Reported', 25752.0, 'Alive', -25752.0, 'Not Reported', 'Adenocarcinoma, NOS', '--', 638.0, 'Sigmoid colon', 'Not Reported', 'ff2ca3c8-70ca-11e8-bcf1-0a2705229b82', 'No', '--', 'Not Reported', NULL, 'Not Reported', 'Not Reported', NULL, 'N0', 'Not Reported', 'M0', '--', 'Not Reported', 'Not Reported', '4afcfca3-63d8-11e8-bcf1-0a2705229b82', 'Stage I', 'Not Reported', 'Stage I', 'Not Reported', 'TCGA-AA-3558', '--', 'Not Reported', 'Not Reported', 'f69d46fa-7588-11e8-bcf1-0a2705229b82', 'Not Reported', '--', 'Colon Adenocarcinoma', 1938.0, 'T2', '--', 'TCGA-AA-3558-DX'), ('Male', 'Yes', '8140/3', 'Colon, NOS', 'Not Reported', '--', 'Not Reported', 'Not Reported', 'Not Reported', '--', '2007', '--', '--', 'CPTAC-TCGA', 'TCGA-AA-3986-DM', '--', 'Not Reported', 'Not Reported', 'Not Reported', 'Not Reported', 'Not Reported', 'Colon', NULL, '--', 'Not Reported', 26967.0, 'Alive', -26967.0, 'Not Reported', 'Adenocarcinoma, NOS', '--', 580.0, 'Colon, NOS', 'Not Reported', 'ff2c9b6e-70ca-11e8-bcf1-0a2705229b82', 'No', '--', 'Not Reported', NULL, 'Not Reported', 'Not Reported', NULL, 'N0', 'Not Reported', 'M0', '--', 'Not Reported', 'Not Reported', '5a578797-63d8-11e8-bcf1-0a2705229b82', 'Stage I', 'Not Reported', 'Stage I', 'Not Reported', 'TCGA-AA-3986', '--', 'Not Reported', 'Not Reported', 'f69d44cd-7588-11e8-bcf1-0a2705229b82', 'Not Reported', '--', 'Colon Adenocarcinoma', 1934.0, 'T2', '--', 'TCGA-AA-3986-DX'), ('Female', 'No', '8140/3', 'Sigmoid colon', 'Not Reported', '--', 'Not Reported', 'Not Reported', 'Not Reported', '--', '2004', '--', '--', 'CPTAC-TCGA', 'TCGA-AA-A03J-DM', '--', 'Not Reported', 'Not Reported', 'Not Reported', 'Not Reported', 'Not Reported', 'Colon', NULL, '--', 'Not Reported', 23986.0, 'Alive', -23986.0, 'Not Reported', 'Adenocarcinoma, NOS', '--', 1246.0, 'Sigmoid colon', 'Not Reported', 'ff2cba7d-70ca-11e8-bcf1-0a2705229b82', 'No', '--', 'Not Reported', NULL, 'Not Reported', 'Not Reported', NULL, 'N0', 'Not Reported', 'M0', '--', 'Not Reported', 'Not Reported', '885ec435-63d8-11e8-bcf1-0a2705229b82', 'Stage I', 'Not Reported', 'Stage I', 'Not Reported', 'TCGA-AA-A03J', '--', 'Not Reported', 'Not Reported', 'f69d51b4-7588-11e8-bcf1-0a2705229b82', 'Not Reported', '--', 'Colon Adenocarcinoma', 1939.0, 'T2', '--', 'TCGA-AA-A03J-DX');