-- 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_MITELMAN"."TCGA_VERSIONED"."BIOSPECIMEN_GDC_2017_02" (num_slides, avg_percent_monocyte_infiltration, case_barcode, project_short_name, avg_percent_tumor_nuclei, num_portions, days_to_collection, case_gdc_id, max_percent_monocyte_infiltration, avg_percent_tumor_cells, sample_type, bcr, 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, max_percent_normal_cells, is_ffpe, avg_percent_stromal_cells, min_percent_lymphocyte_infiltration, min_percent_necrosis, max_percent_stromal_cells, min_percent_neutrophil_infiltration, sample_type_name, min_percent_tumor_cells, min_percent_stromal_cells, avg_percent_neutrophil_infiltration, min_percent_normal_cells, avg_percent_normal_cells, max_percent_neutrophil_infiltration) VALUES (0, NULL, 'TCGA-EA-A439', 'TCGA-CESC', NULL, 1, 98.0, '3edb62c1-25ad-4deb-a005-e881a887d06a', NULL, NULL, '10', 'Nationwide Children''s Hospital', 13.0, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, 256, NULL, 'c45d416f-8f6c-4845-9030-4019c4120bc8', NULL, 'TCGA-EA-A439-10A', NULL, 'NO', NULL, NULL, NULL, NULL, NULL, 'Blood Derived Normal', NULL, NULL, NULL, NULL, NULL, NULL), (0, NULL, 'TCGA-LP-A4AU', 'TCGA-CESC', NULL, 1, 272.0, 'e15d92a1-6925-4b58-a494-d6f665f67b83', NULL, NULL, '10', 'Nationwide Children''s Hospital', 3.0, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, 256, NULL, '183cd482-306b-4989-81c2-97a1ec2affe2', NULL, 'TCGA-LP-A4AU-10A', NULL, 'NO', NULL, NULL, NULL, NULL, NULL, 'Blood Derived Normal', NULL, NULL, NULL, NULL, NULL, NULL), (0, NULL, 'TCGA-EX-A449', 'TCGA-CESC', NULL, 1, 79.0, 'eb0eb159-732e-43ff-a402-7f2d9f67daa8', NULL, NULL, '10', 'Nationwide Children''s Hospital', 0.0, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, 256, NULL, '6e2d25bd-add2-416a-8174-1da8849f39d2', NULL, 'TCGA-EX-A449-10A', NULL, 'NO', NULL, NULL, NULL, NULL, NULL, 'Blood Derived Normal', NULL, NULL, NULL, NULL, NULL, NULL), (0, NULL, 'TCGA-LP-A4AV', 'TCGA-CESC', NULL, 1, 413.0, 'f241d6b1-2c32-4478-8f8d-8c746464f7d1', NULL, NULL, '10', 'Nationwide Children''s Hospital', 364.0, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, 256, NULL, 'ec08f8ee-da6a-4cfa-aee9-07754224fc58', NULL, 'TCGA-LP-A4AV-10A', NULL, 'NO', NULL, NULL, NULL, NULL, NULL, 'Blood Derived Normal', NULL, NULL, NULL, NULL, NULL, NULL), (0, NULL, 'TCGA-LP-A4AX', 'TCGA-CESC', NULL, 1, 263.0, '3223fec6-1d35-419a-8ee9-7c5885b8be1e', NULL, NULL, '10', 'Nationwide Children''s Hospital', 2.0, NULL, NULL, NULL, 'TCGA', NULL, NULL, NULL, 256, NULL, 'aa734cf9-0c3c-4ce2-9c1e-3e3f9866c6d1', NULL, 'TCGA-LP-A4AX-10A', NULL, 'NO', NULL, NULL, NULL, NULL, NULL, 'Blood Derived Normal', NULL, NULL, NULL, NULL, NULL, NULL);