-- DBMS: snowflake
create or replace TABLE VARIANT_DISEASE_CREDSET (
	"bio_feature" VARCHAR(16777216),
	"gene_id" VARCHAR(16777216),
	"is95_credset" BOOLEAN,
	"is99_credset" BOOLEAN,
	"lead_alt" VARCHAR(16777216),
	"lead_chrom" VARCHAR(16777216),
	"lead_pos" NUMBER(38,0),
	"lead_ref" VARCHAR(16777216),
	"lead_variant_id" VARCHAR(16777216),
	"logABF" FLOAT,
	"multisignal_method" VARCHAR(16777216),
	"phenotype_id" VARCHAR(16777216),
	"postprob" FLOAT,
	"postprob_cumsum" FLOAT,
	"study_id" VARCHAR(16777216),
	"tag_alt" VARCHAR(16777216),
	"tag_beta" FLOAT,
	"tag_beta_cond" FLOAT,
	"tag_chrom" VARCHAR(16777216),
	"tag_pos" NUMBER(38,0),
	"tag_pval" FLOAT,
	"tag_pval_cond" FLOAT,
	"tag_ref" VARCHAR(16777216),
	"tag_se" FLOAT,
	"tag_se_cond" FLOAT,
	"tag_variant_id" VARCHAR(16777216),
	"type" VARCHAR(16777216)
);

INSERT INTO "OPEN_TARGETS_GENETICS_2"."OPEN_TARGETS_GENETICS"."VARIANT_DISEASE_CREDSET" (lead_variant_id, study_id, multisignal_method, tag_se, tag_pval_cond, bio_feature, is95_credset, lead_ref, tag_variant_id, tag_pval, tag_se_cond, tag_chrom, lead_pos, lead_alt, tag_beta, tag_beta_cond, postprob_cumsum, is99_credset, phenotype_id, tag_pos, type, tag_alt, tag_ref, lead_chrom, gene_id, logABF, postprob) VALUES ('16:88859681:C:T', 'GTEx-sQTL', 'conditional', 0.165198702143443, 0.002204009576863, 'Brain_Hypothalamus', True, 'C', '16:88835979:A:G', 0.002204009576863, 0.165198702143443, '16', 88859681, 'T', 0.51591145992279, 0.51591145992279, 0.127989430022184, True, 'chr16:88858789:88859893:clu_14174:ENSG00000167515', 88835979, 'sqtl', 'G', 'A', '16', 'ENSG00000167515', 1.676584172519616, 0.001186556345535), ('16:88859681:C:T', 'GTEx-sQTL', 'conditional', 0.232980618529962, 5.849564e-09, 'Brain_Nucleus_accumbens_basal_ganglia', True, 'C', '16:88859681:C:T', 5.849564e-09, 0.232980618529962, '16', 88859681, 'T', 1.435778379440308, 1.435778379440308, 0.022010837942402, True, 'chr16:88858789:88859893:clu_14742:ENSG00000167515', 88859681, 'sqtl', 'T', 'C', '16', 'ENSG00000167515', 2.929041280206965, 0.003396616630789), ('16:88859681:C:T', 'GTEx-sQTL', 'conditional', 0.145518235428382, 0.003067051370895, 'Esophagus_Muscularis', True, 'C', '16:88818829:G:A', 0.003067051370895, 0.145518235428382, '16', 88859681, 'T', 0.433811098337173, 0.433811098337173, 0.084389300877985, True, 'chr16:88858789:88859893:clu_17208:ENSG00000167515', 88818829, 'sqtl', 'A', 'G', '16', 'ENSG00000167515', 1.804649280449579, 0.001271014620772), ('16:88859681:C:T', 'GTEx-sQTL', 'conditional', 0.103485795075938, 0.000198651, 'Skin_Sun_Exposed_Lower_leg', True, 'C', '16:88757658:T:A', 0.00044064790691, 0.104685, '16', 88859681, 'T', 0.366225868463516, 0.389504, 0.520190461093556, True, 'chr16:88858789:88859893:clu_19318:ENSG00000167515', 88757658, 'sqtl', 'A', 'T', '16', 'ENSG00000167515', 3.369933972014137, 0.002924729433072), ('16:88859681:C:T', 'GTEx-sQTL', 'conditional', 0.097908345103703, 0.000151549, 'Skin_Sun_Exposed_Lower_leg', True, 'C', '16:88822333:A:G', 0.00032322780011, 0.0990842, '16', 88859681, 'T', 0.354627251625061, 0.375382, 0.513579000285566, True, 'chr16:88858789:88859893:clu_19318:ENSG00000167515', 88822333, 'sqtl', 'G', 'A', '16', 'ENSG00000167515', 3.648069726782077, 0.003862589176249);