-- DBMS: snowflake
create or replace TABLE VARIANTS (
	"chr_id" VARCHAR(16777216),
	"position" NUMBER(38,0),
	"ref_allele" VARCHAR(16777216),
	"alt_allele" VARCHAR(16777216),
	"chr_id_b37" VARCHAR(16777216),
	"position_b37" NUMBER(38,0),
	"rs_id" VARCHAR(16777216),
	"most_severe_consequence" VARCHAR(16777216),
	"cadd" VARIANT,
	"af" VARIANT,
	"gene_id_any_distance" NUMBER(38,0),
	"gene_id_any" VARCHAR(16777216),
	"gene_id_prot_coding_distance" NUMBER(38,0),
	"gene_id_prot_coding" VARCHAR(16777216)
);

INSERT INTO "OPEN_TARGETS_GENETICS_2"."OPEN_TARGETS_GENETICS"."VARIANTS" (gene_id_any, gene_id_prot_coding, chr_id_b37, af, position_b37, most_severe_consequence, chr_id, gene_id_prot_coding_distance, ref_allele, gene_id_any_distance, alt_allele, rs_id, position, cadd) VALUES ('ENSG00000124496', 'ENSG00000124496', '6', '{
  "gnomad_afr": 3.442735827404177e-04,
  "gnomad_amr": 0.000000000000000e+00,
  "gnomad_asj": 0.000000000000000e+00,
  "gnomad_eas": 0.000000000000000e+00,
  "gnomad_fin": 0.000000000000000e+00,
  "gnomad_nfe": 5.833549390718175e-04,
  "gnomad_nfe_est": 2.180549498473615e-04,
  "gnomad_nfe_nwe": 4.652244708071644e-04,
  "gnomad_nfe_onf": 1.870907390084191e-03,
  "gnomad_nfe_seu": 0.000000000000000e+00,
  "gnomad_oth": 0.000000000000000e+00
}', 42438185, 'intergenic_variant', '6', 18396, 'T', 18396, 'C', 'rs531169951', 42470447, '{
  "phred": 8.746000000000000e+00,
  "raw": 4.342410000000000e-01
}'), ('ENSG00000124596', 'ENSG00000124596', '6', '{
  "gnomad_afr": 3.444316877152698e-04,
  "gnomad_amr": 2.364066193853428e-03,
  "gnomad_asj": 0.000000000000000e+00,
  "gnomad_eas": 0.000000000000000e+00,
  "gnomad_fin": 7.200460829493088e-03,
  "gnomad_nfe": 2.786417833074132e-03,
  "gnomad_nfe_est": 1.741401828471920e-03,
  "gnomad_nfe_nwe": 3.607167791482430e-03,
  "gnomad_nfe_onf": 1.870907390084191e-03,
  "gnomad_nfe_seu": 0.000000000000000e+00,
  "gnomad_oth": 9.191176470588235e-04
}', 41090022, 'intron_variant', '6', 24496, 'G', 24496, 'A', 'rs184798575', 41122283, '{
  "phred": 6.941000000000000e+00,
  "raw": 2.792420000000000e-01
}'), ('ENSG00000124602', 'ENSG00000124602', '6', '{
  "gnomad_afr": 0.000000000000000e+00,
  "gnomad_amr": 0.000000000000000e+00,
  "gnomad_asj": 0.000000000000000e+00,
  "gnomad_eas": 0.000000000000000e+00,
  "gnomad_fin": 7.479861910241657e-03,
  "gnomad_nfe": 3.175631885936487e-03,
  "gnomad_nfe_est": 8.936355710549258e-03,
  "gnomad_nfe_nwe": 4.652244708071644e-04,
  "gnomad_nfe_onf": 1.870907390084191e-03,
  "gnomad_nfe_seu": 0.000000000000000e+00,
  "gnomad_oth": 5.514705882352942e-03
}', 40990984, 'downstream_gene_variant', '6', 15976, 'C', 15976, 'A', 'rs112292329', 41023245, '{
  "phred": 1.224000000000000e+00,
  "raw": -1.201120000000000e-01
}'), ('ENSG00000124615', 'ENSG00000124615', '6', '{
  "gnomad_afr": 3.441945846718678e-04,
  "gnomad_amr": 0.000000000000000e+00,
  "gnomad_asj": 0.000000000000000e+00,
  "gnomad_eas": 0.000000000000000e+00,
  "gnomad_fin": 0.000000000000000e+00,
  "gnomad_nfe": 1.101607050285122e-03,
  "gnomad_nfe_est": 2.177700348432056e-04,
  "gnomad_nfe_nwe": 1.395998138669149e-03,
  "gnomad_nfe_onf": 1.870907390084191e-03,
  "gnomad_nfe_seu": 0.000000000000000e+00,
  "gnomad_oth": 0.000000000000000e+00
}', 39969703, 'downstream_gene_variant', '6', 67413, 'T', 67413, 'C', 'rs183541452', 40001964, '{
  "phred": 1.291000000000000e+01,
  "raw": 9.445340000000000e-01
}'), ('ENSG00000124615', 'ENSG00000124615', '6', '{
  "gnomad_afr": 7.571231617647059e-02,
  "gnomad_amr": 3.537735849056604e-03,
  "gnomad_asj": 3.448275862068965e-03,
  "gnomad_eas": 0.000000000000000e+00,
  "gnomad_fin": 0.000000000000000e+00,
  "gnomad_nfe": 4.538381742738589e-04,
  "gnomad_nfe_est": 0.000000000000000e+00,
  "gnomad_nfe_nwe": 2.327746741154562e-04,
  "gnomad_nfe_onf": 1.870907390084191e-03,
  "gnomad_nfe_seu": 9.433962264150943e-03,
  "gnomad_oth": 7.352941176470588e-03
}', 39912732, 'intergenic_variant', '6', 10442, 'C', 10442, 'T', 'rs9296316', 39944993, '{
  "phred": 6.460000000000000e-01,
  "raw": -2.151350000000000e-01
}');