-- DBMS: snowflake
create or replace TABLE TCGA_BIOSPECIMEN_REL9 (
	"sample_barcode" VARCHAR(16777216),
	"sample_gdc_id" VARCHAR(16777216),
	"case_barcode" VARCHAR(16777216),
	"case_gdc_id" VARCHAR(16777216),
	"sample_type" VARCHAR(16777216),
	"sample_type_name" VARCHAR(16777216),
	"program_name" VARCHAR(16777216),
	"project_short_name" VARCHAR(16777216),
	"batch_number" NUMBER(38,0),
	"bcr" VARCHAR(16777216),
	"days_to_collection" FLOAT,
	"days_to_sample_procurement" FLOAT,
	"is_ffpe" VARCHAR(16777216),
	"num_portions" NUMBER(38,0),
	"num_slides" NUMBER(38,0),
	"avg_percent_lymphocyte_infiltration" FLOAT,
	"avg_percent_monocyte_infiltration" FLOAT,
	"avg_percent_necrosis" FLOAT,
	"avg_percent_neutrophil_infiltration" FLOAT,
	"avg_percent_normal_cells" FLOAT,
	"avg_percent_stromal_cells" FLOAT,
	"avg_percent_tumor_cells" FLOAT,
	"avg_percent_tumor_nuclei" FLOAT,
	"max_percent_lymphocyte_infiltration" FLOAT,
	"max_percent_monocyte_infiltration" FLOAT,
	"max_percent_necrosis" FLOAT,
	"max_percent_neutrophil_infiltration" FLOAT,
	"max_percent_normal_cells" FLOAT,
	"max_percent_stromal_cells" FLOAT,
	"max_percent_tumor_cells" FLOAT,
	"max_percent_tumor_nuclei" FLOAT,
	"min_percent_lymphocyte_infiltration" FLOAT,
	"min_percent_monocyte_infiltration" FLOAT,
	"min_percent_necrosis" FLOAT,
	"min_percent_neutrophil_infiltration" FLOAT,
	"min_percent_normal_cells" FLOAT,
	"min_percent_stromal_cells" FLOAT,
	"min_percent_tumor_cells" FLOAT,
	"min_percent_tumor_nuclei" FLOAT
);

INSERT INTO "IDC"."IDC_V17"."TCGA_BIOSPECIMEN_REL9" (min_percent_lymphocyte_infiltration, project_short_name, avg_percent_tumor_cells, min_percent_stromal_cells, sample_gdc_id, days_to_collection, bcr, avg_percent_stromal_cells, avg_percent_tumor_nuclei, batch_number, max_percent_stromal_cells, num_portions, min_percent_neutrophil_infiltration, max_percent_tumor_nuclei, min_percent_tumor_cells, sample_type, case_gdc_id, avg_percent_monocyte_infiltration, case_barcode, avg_percent_neutrophil_infiltration, min_percent_necrosis, max_percent_necrosis, num_slides, sample_barcode, max_percent_tumor_cells, avg_percent_necrosis, max_percent_monocyte_infiltration, avg_percent_normal_cells, program_name, sample_type_name, min_percent_normal_cells, min_percent_tumor_nuclei, avg_percent_lymphocyte_infiltration, max_percent_lymphocyte_infiltration, is_ffpe, max_percent_normal_cells, days_to_sample_procurement, max_percent_neutrophil_infiltration, min_percent_monocyte_infiltration) VALUES (NULL, 'TCGA-CESC', NULL, NULL, 'a18a106c-712f-4161-9227-a0659d23d648', 76.0, 'Nationwide Children''s Hospital', NULL, NULL, 256, NULL, 1, NULL, NULL, NULL, '10', '63dcfa32-c69e-45ad-bea3-ae672acb11c6', NULL, 'TCGA-FU-A40J', NULL, NULL, NULL, 0, 'TCGA-FU-A40J-10A', NULL, NULL, NULL, NULL, 'TCGA', 'Blood Derived Normal', NULL, NULL, NULL, NULL, 'NO', NULL, 42.0, NULL, NULL), (NULL, 'TCGA-CESC', NULL, NULL, 'ce324702-d597-49e4-8669-bcf2833c0f28', 259.0, 'Nationwide Children''s Hospital', NULL, NULL, 256, NULL, 1, NULL, NULL, NULL, '10', '74e47ded-2c00-4455-aaa6-cd662dfbf05e', NULL, 'TCGA-LP-A4AW', NULL, NULL, NULL, 0, 'TCGA-LP-A4AW-10A', NULL, NULL, NULL, NULL, 'TCGA', 'Blood Derived Normal', NULL, NULL, NULL, NULL, 'NO', NULL, 27.0, NULL, NULL), (NULL, 'TCGA-CESC', NULL, NULL, 'ba226de0-7a7c-42dc-84a4-10c0cf798244', 3385.0, 'Nationwide Children''s Hospital', NULL, NULL, 256, NULL, 1, NULL, NULL, NULL, '10', 'e7c7783c-1d0f-4f42-a4cf-518825e91d91', NULL, 'TCGA-IR-A3LB', NULL, NULL, NULL, 0, 'TCGA-IR-A3LB-10A', NULL, NULL, NULL, NULL, 'TCGA', 'Blood Derived Normal', NULL, NULL, NULL, NULL, 'NO', NULL, 25.0, NULL, NULL), (NULL, 'TCGA-CESC', NULL, NULL, '183cd482-306b-4989-81c2-97a1ec2affe2', 272.0, 'Nationwide Children''s Hospital', NULL, NULL, 256, NULL, 1, NULL, NULL, NULL, '10', 'e15d92a1-6925-4b58-a494-d6f665f67b83', NULL, 'TCGA-LP-A4AU', NULL, NULL, NULL, 0, 'TCGA-LP-A4AU-10A', NULL, NULL, NULL, NULL, 'TCGA', 'Blood Derived Normal', NULL, NULL, NULL, NULL, 'NO', NULL, 3.0, NULL, NULL), (NULL, 'TCGA-CESC', NULL, NULL, '7522576d-1d75-43a3-9ca4-64d425c4e30d', 172.0, 'Nationwide Children''s Hospital', NULL, NULL, 256, NULL, 1, NULL, NULL, NULL, '10', '7b356c12-b226-4e58-be7f-44e50e3eefbe', NULL, 'TCGA-EA-A410', NULL, NULL, NULL, 0, 'TCGA-EA-A410-10A', NULL, NULL, NULL, NULL, 'TCGA', 'Blood Derived Normal', NULL, NULL, NULL, NULL, 'NO', NULL, 15.0, NULL, NULL);