-- DBMS: snowflake
create or replace TABLE CLINICAL_GDC_2018_06 (
	"program_name" VARCHAR(16777216),
	"case_barcode" VARCHAR(16777216),
	"case_gdc_id" VARCHAR(16777216),
	"program_dbgap_accession_number" VARCHAR(16777216),
	"project_short_name" VARCHAR(16777216),
	"project_name" VARCHAR(16777216),
	"disease_code" VARCHAR(16777216),
	"gender" VARCHAR(16777216),
	"vital_status" VARCHAR(16777216),
	"race" VARCHAR(16777216),
	"ethnicity" VARCHAR(16777216),
	"age_at_diagnosis" NUMBER(38,0),
	"days_to_birth" NUMBER(38,0),
	"days_to_death" NUMBER(38,0),
	"days_to_initial_pathologic_diagnosis" NUMBER(38,0),
	"days_to_last_followup" NUMBER(38,0),
	"days_to_last_known_alive" NUMBER(38,0),
	"days_to_submitted_specimen_dx" NUMBER(38,0),
	"clinical_stage" VARCHAR(16777216),
	"clinical_T" VARCHAR(16777216),
	"clinical_N" VARCHAR(16777216),
	"clinical_M" VARCHAR(16777216),
	"pathologic_stage" VARCHAR(16777216),
	"pathologic_T" VARCHAR(16777216),
	"pathologic_N" VARCHAR(16777216),
	"pathologic_M" VARCHAR(16777216),
	"year_of_initial_pathologic_diagnosis" NUMBER(38,0),
	"tumor_tissue_site" VARCHAR(16777216),
	"primary_neoplasm_melanoma_dx" VARCHAR(16777216),
	"anatomic_neoplasm_subdivision" VARCHAR(16777216),
	"country" VARCHAR(16777216),
	"other_dx" VARCHAR(16777216),
	"other_malignancy_anatomic_site" VARCHAR(16777216),
	"other_malignancy_type" VARCHAR(16777216),
	"other_malignancy_histological_type" VARCHAR(16777216),
	"history_of_neoadjuvant_treatment" VARCHAR(16777216),
	"primary_therapy_outcome_success" VARCHAR(16777216),
	"histological_type" VARCHAR(16777216),
	"neoplasm_histologic_grade" VARCHAR(16777216),
	"icd_10" VARCHAR(16777216),
	"icd_o_3_site" VARCHAR(16777216),
	"icd_o_3_histology" VARCHAR(16777216),
	"person_neoplasm_cancer_status" VARCHAR(16777216),
	"residual_tumor" VARCHAR(16777216),
	"tumor_type" VARCHAR(16777216),
	"new_tumor_event_after_initial_treatment" VARCHAR(16777216),
	"lymphnodes_examined" VARCHAR(16777216),
	"number_of_lymphnodes_examined" NUMBER(38,0),
	"number_of_lymphnodes_positive_by_he" NUMBER(38,0),
	"lymphatic_invasion" VARCHAR(16777216),
	"venous_invasion" VARCHAR(16777216),
	"lymphovascular_invasion_present" VARCHAR(16777216),
	"bcr" VARCHAR(16777216),
	"batch_number" NUMBER(38,0),
	"tss_code" VARCHAR(16777216),
	"age_began_smoking_in_years" NUMBER(38,0),
	"year_of_tobacco_smoking_onset" NUMBER(38,0),
	"stopped_smoking_year" NUMBER(38,0),
	"tobacco_smoking_history" NUMBER(38,0),
	"number_pack_years_smoked" FLOAT,
	"height" FLOAT,
	"weight" FLOAT,
	"bmi" FLOAT,
	"mononucleotide_and_dinucleotide_marker_panel_analysis_status" VARCHAR(16777216),
	"menopause_status" VARCHAR(16777216),
	"pregnancies" VARCHAR(16777216),
	"hpv_status" VARCHAR(16777216),
	"hpv_calls" VARCHAR(16777216),
	"h_pylori_infection" VARCHAR(16777216),
	"gleason_score_combined" NUMBER(38,0),
	"psa_value" FLOAT,
	"colorectal_cancer" VARCHAR(16777216),
	"history_of_colon_polyps" VARCHAR(16777216)
);

INSERT INTO "TCGA"."TCGA_VERSIONED"."CLINICAL_GDC_2018_06" (new_tumor_event_after_initial_treatment, weight, other_malignancy_histological_type, icd_o_3_site, days_to_last_known_alive, tss_code, program_dbgap_accession_number, case_gdc_id, tobacco_smoking_history, pathologic_T, number_of_lymphnodes_positive_by_he, days_to_initial_pathologic_diagnosis, clinical_N, stopped_smoking_year, menopause_status, histological_type, psa_value, pathologic_M, year_of_initial_pathologic_diagnosis, hpv_calls, h_pylori_infection, pregnancies, race, days_to_last_followup, pathologic_N, icd_o_3_histology, lymphnodes_examined, vital_status, anatomic_neoplasm_subdivision, batch_number, history_of_neoadjuvant_treatment, person_neoplasm_cancer_status, residual_tumor, disease_code, lymphatic_invasion, primary_neoplasm_melanoma_dx, project_short_name, venous_invasion, country, ethnicity, primary_therapy_outcome_success, bmi, age_began_smoking_in_years, colorectal_cancer, days_to_submitted_specimen_dx, hpv_status, bcr, clinical_stage, clinical_M, history_of_colon_polyps, case_barcode, tumor_tissue_site, other_malignancy_anatomic_site, tumor_type, mononucleotide_and_dinucleotide_marker_panel_analysis_status, number_of_lymphnodes_examined, program_name, clinical_T, days_to_death, lymphovascular_invasion_present, gleason_score_combined, icd_10, other_malignancy_type, pathologic_stage, project_name, other_dx, age_at_diagnosis, height, year_of_tobacco_smoking_onset, neoplasm_histologic_grade, days_to_birth, number_pack_years_smoked, gender) VALUES (NULL, NULL, NULL, NULL, NULL, NULL, 'phs000178', '8b3a111a-aa46-41b9-bbec-28f4290da939', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'LUAD', NULL, NULL, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-17-Z026', NULL, NULL, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, 'phs000178', 'b3c31fdc-26a7-4b39-8127-8006307eb1f5', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'LUAD', NULL, NULL, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-17-Z040', NULL, NULL, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, 'phs000178', '80690bbb-05db-413c-b1bc-96b744dea49e', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'OV', NULL, NULL, 'TCGA-OV', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-72-4233', NULL, NULL, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, 'phs000178', '94ee639e-3cb4-4943-b5f1-a89eb902153c', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'LUAD', NULL, NULL, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-17-Z041', NULL, NULL, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, NULL, 'phs000178', '1e5053ae-9a78-41ed-81cd-1a43756fca09', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'UCEC', NULL, NULL, 'TCGA-UCEC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-FL-A1YT', NULL, NULL, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Uterine Corpus Endometrial Carcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);