-- 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_MITELMAN"."TCGA_VERSIONED"."CLINICAL_GDC_2018_06" (weight, new_tumor_event_after_initial_treatment, icd_o_3_site, other_malignancy_histological_type, days_to_last_known_alive, case_gdc_id, tss_code, program_dbgap_accession_number, number_of_lymphnodes_positive_by_he, pathologic_T, tobacco_smoking_history, stopped_smoking_year, clinical_N, days_to_initial_pathologic_diagnosis, menopause_status, histological_type, hpv_calls, psa_value, year_of_initial_pathologic_diagnosis, pathologic_M, h_pylori_infection, race, days_to_last_followup, pregnancies, vital_status, lymphnodes_examined, icd_o_3_histology, pathologic_N, anatomic_neoplasm_subdivision, history_of_neoadjuvant_treatment, residual_tumor, batch_number, person_neoplasm_cancer_status, disease_code, primary_neoplasm_melanoma_dx, lymphatic_invasion, primary_therapy_outcome_success, ethnicity, country, venous_invasion, project_short_name, bmi, age_began_smoking_in_years, hpv_status, days_to_submitted_specimen_dx, colorectal_cancer, bcr, clinical_stage, history_of_colon_polyps, case_barcode, clinical_M, other_malignancy_anatomic_site, tumor_tissue_site, tumor_type, mononucleotide_and_dinucleotide_marker_panel_analysis_status, number_of_lymphnodes_examined, clinical_T, program_name, days_to_death, lymphovascular_invasion_present, gleason_score_combined, other_malignancy_type, project_name, icd_10, pathologic_stage, age_at_diagnosis, other_dx, year_of_tobacco_smoking_onset, height, days_to_birth, neoplasm_histologic_grade, number_pack_years_smoked, gender) VALUES (NULL, NULL, NULL, NULL, NULL, '8b3a111a-aa46-41b9-bbec-28f4290da939', NULL, 'phs000178', 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, NULL, NULL, NULL, NULL, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-17-Z026', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, '87eeaf49-3c02-402f-9ae4-3627391e7749', NULL, 'phs000178', 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, NULL, NULL, NULL, NULL, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-17-Z028', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, '79684460-f74c-4954-80fa-b418827bf2ef', NULL, 'phs000178', 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, NULL, NULL, NULL, NULL, 'TCGA-LUAD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-17-Z057', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, 'Lung Adenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, '80690bbb-05db-413c-b1bc-96b744dea49e', NULL, 'phs000178', 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, NULL, NULL, NULL, NULL, 'TCGA-OV', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-72-4233', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, 'Ovarian Serous Cystadenocarcinoma', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (NULL, NULL, NULL, NULL, NULL, '22a82b1a-c799-40d9-8ff4-09b093947263', NULL, 'phs000178', 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, 'TGCT', NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-TGCT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA-2G-AAKO', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, NULL, 'Testicular Germ Cell Tumors', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);