-- DBMS: snowflake
create or replace TABLE BIOSPECIMEN_GDC_2017_02 (
	"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 "TCGA"."TCGA_VERSIONED"."BIOSPECIMEN_GDC_2017_02" (avg_percent_monocyte_infiltration, num_slides, case_barcode, project_short_name, avg_percent_tumor_nuclei, num_portions, case_gdc_id, max_percent_monocyte_infiltration, days_to_collection, sample_type, bcr, avg_percent_tumor_cells, days_to_sample_procurement, max_percent_necrosis, max_percent_tumor_nuclei, min_percent_monocyte_infiltration, program_name, avg_percent_lymphocyte_infiltration, min_percent_tumor_nuclei, max_percent_tumor_cells, batch_number, avg_percent_necrosis, sample_gdc_id, max_percent_lymphocyte_infiltration, sample_barcode, is_ffpe, avg_percent_stromal_cells, max_percent_normal_cells, min_percent_necrosis, min_percent_lymphocyte_infiltration, max_percent_stromal_cells, min_percent_neutrophil_infiltration, sample_type_name, min_percent_stromal_cells, min_percent_tumor_cells, avg_percent_neutrophil_infiltration, min_percent_normal_cells, avg_percent_normal_cells, max_percent_neutrophil_infiltration) VALUES (NULL, 0, 'TCGA-EA-A411', 'TCGA-CESC', NULL, 1, '84cb84d0-7c7e-453c-8cc5-65b5af941028', NULL, 100.0, '10', 'Nationwide Children''s Hospital', NULL, 0.0, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, 256, NULL, 'cb601af7-b63c-4fa2-b8f0-256002e19007', NULL, 'TCGA-EA-A411-10A', 'NO', NULL, NULL, NULL, NULL, NULL, NULL, 'Blood Derived Normal', NULL, NULL, NULL, NULL, NULL, NULL), (NULL, 0, 'TCGA-EA-A410', 'TCGA-CESC', NULL, 1, '7b356c12-b226-4e58-be7f-44e50e3eefbe', NULL, 172.0, '10', 'Nationwide Children''s Hospital', NULL, 15.0, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, 256, NULL, '7522576d-1d75-43a3-9ca4-64d425c4e30d', NULL, 'TCGA-EA-A410-10A', 'NO', NULL, NULL, NULL, NULL, NULL, NULL, 'Blood Derived Normal', NULL, NULL, NULL, NULL, NULL, NULL), (NULL, 0, 'TCGA-EX-A449', 'TCGA-CESC', NULL, 1, 'eb0eb159-732e-43ff-a402-7f2d9f67daa8', NULL, 79.0, '10', 'Nationwide Children''s Hospital', NULL, 0.0, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, 256, NULL, '6e2d25bd-add2-416a-8174-1da8849f39d2', NULL, 'TCGA-EX-A449-10A', 'NO', NULL, NULL, NULL, NULL, NULL, NULL, 'Blood Derived Normal', NULL, NULL, NULL, NULL, NULL, NULL), (NULL, 0, 'TCGA-LP-A4AW', 'TCGA-CESC', NULL, 1, '74e47ded-2c00-4455-aaa6-cd662dfbf05e', NULL, 259.0, '10', 'Nationwide Children''s Hospital', NULL, 27.0, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, 256, NULL, 'ce324702-d597-49e4-8669-bcf2833c0f28', NULL, 'TCGA-LP-A4AW-10A', 'NO', NULL, NULL, NULL, NULL, NULL, NULL, 'Blood Derived Normal', NULL, NULL, NULL, NULL, NULL, NULL), (NULL, 0, 'TCGA-EA-A43B', 'TCGA-CESC', NULL, 1, '3265f9c1-7242-4c7d-b4ad-b6519ee94f84', NULL, 196.0, '10', 'Nationwide Children''s Hospital', NULL, 55.0, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, 256, NULL, '7895cace-838b-4d99-bc76-920f0244da8b', NULL, 'TCGA-EA-A43B-10A', 'NO', NULL, NULL, NULL, NULL, NULL, NULL, 'Blood Derived Normal', NULL, NULL, NULL, NULL, NULL, NULL);