-- DBMS: snowflake
create or replace TABLE VARIANT_DISEASE (
	"study_id" VARCHAR(16777216),
	"lead_chrom" VARCHAR(16777216),
	"lead_pos" NUMBER(38,0),
	"lead_ref" VARCHAR(16777216),
	"lead_alt" VARCHAR(16777216),
	"direction" VARCHAR(16777216),
	"beta" FLOAT,
	"beta_ci_lower" FLOAT,
	"beta_ci_upper" FLOAT,
	"odds_ratio" FLOAT,
	"oddsr_ci_lower" FLOAT,
	"oddsr_ci_upper" FLOAT,
	"pval_mantissa" FLOAT,
	"pval_exponent" NUMBER(38,0),
	"pval" FLOAT,
	"ancestry_initial" VARIANT,
	"ancestry_replication" VARIANT,
	"n_cases" NUMBER(38,0),
	"n_initial" NUMBER(38,0),
	"n_replication" NUMBER(38,0),
	"pmid" VARCHAR(16777216),
	"pub_author" VARCHAR(16777216),
	"pub_date" VARCHAR(16777216),
	"pub_journal" VARCHAR(16777216),
	"pub_title" VARCHAR(16777216),
	"has_sumstats" BOOLEAN,
	"num_assoc_loci" NUMBER(38,0),
	"source" VARCHAR(16777216),
	"trait_reported" VARCHAR(16777216),
	"trait_efos" VARIANT,
	"trait_category" VARCHAR(16777216),
	"tag_chrom" VARCHAR(16777216),
	"tag_pos" NUMBER(38,0),
	"tag_ref" VARCHAR(16777216),
	"tag_alt" VARCHAR(16777216),
	"overall_r2" FLOAT,
	"pics_95perc_credset" BOOLEAN,
	"AFR_1000G_prop" FLOAT,
	"AMR_1000G_prop" FLOAT,
	"EAS_1000G_prop" FLOAT,
	"EUR_1000G_prop" FLOAT,
	"SAS_1000G_prop" FLOAT,
	"log10_ABF" FLOAT,
	"posterior_prob" FLOAT
);

INSERT INTO "OPEN_TARGETS_GENETICS_2"."OPEN_TARGETS_GENETICS"."VARIANT_DISEASE" (oddsr_ci_lower, tag_pos, pub_journal, beta, posterior_prob, lead_ref, overall_r2, lead_chrom, SAS_1000G_prop, pval_exponent, AMR_1000G_prop, ancestry_replication, n_initial, study_id, EUR_1000G_prop, trait_category, pub_title, tag_chrom, n_replication, source, tag_alt, trait_reported, ancestry_initial, pub_author, log10_ABF, odds_ratio, pval_mantissa, direction, pics_95perc_credset, pmid, EAS_1000G_prop, pval, lead_pos, n_cases, trait_efos, oddsr_ci_upper, pub_date, beta_ci_lower, lead_alt, num_assoc_loci, AFR_1000G_prop, has_sumstats, tag_ref, beta_ci_upper) VALUES (NULL, 110274252, 'Cell', 0.0226952, nan, 'T', 0.692728283809, '9', 0.0, -13, 0.0, '{
  "list": []
}', 408112, 'GCST90002396', 1.0, 'measurement', 'The Polygenic and Monogenic Basis of Blood Traits and Diseases.', '9', NULL, 'GCST', 'C', 'Mean reticulocyte volume', '{
  "list": [
    {
      "element": "European=408112"
    }
  ]
}', 'Vuckovic D', nan, NULL, 1.5, '+', False, 'PMID:32888494', 0.0, 1.5000000000000002e-13, 110256475, NULL, '{
  "list": [
    {
      "element": "EFO_0010701"
    }
  ]
}', NULL, '2020-09-01', 0.0166737468, 'C', 835, 0.0, True, 'T', 0.0287166531999999), (NULL, 180526646, 'Cell', 0.0162795999999999, 0.006984791309124, 'T', 0.966161214225, '5', 0.0, -13, 0.0, '{
  "list": []
}', 408112, 'GCST90002396', 1.0, 'measurement', 'The Polygenic and Monogenic Basis of Blood Traits and Diseases.', '5', NULL, 'GCST', 'G', 'Mean reticulocyte volume', '{
  "list": [
    {
      "element": "European=408112"
    }
  ]
}', 'Vuckovic D', 20.488303155989882, NULL, 4.9, '+', True, 'PMID:32888494', 0.0, 4.9e-13, 180560937, NULL, '{
  "list": [
    {
      "element": "EFO_0010701"
    }
  ]
}', NULL, '2020-09-01', 0.0118647195999999, 'G', 835, 0.0, True, 'T', 0.0206944804), (NULL, 50129991, 'Cell', 0.0158271, nan, 'C', 0.886853509441, '3', 0.0, -13, 0.0, '{
  "list": []
}', 408112, 'GCST90002396', 1.0, 'measurement', 'The Polygenic and Monogenic Basis of Blood Traits and Diseases.', '3', NULL, 'GCST', 'C', 'Mean reticulocyte volume', '{
  "list": [
    {
      "element": "European=408112"
    }
  ]
}', 'Vuckovic D', nan, NULL, 1.9, '+', True, 'PMID:32888494', 0.0, 1.9e-13, 49994700, NULL, '{
  "list": [
    {
      "element": "EFO_0010701"
    }
  ]
}', NULL, '2020-09-01', 0.0116080236, 'T', 835, 0.0, True, 'CT', 0.0200461764), (NULL, 98001173, 'Cell', -0.0587315999999999, nan, 'G', 0.9827430995560001, '9', 0.0, -115, 0.0, '{
  "list": []
}', 408112, 'GCST90002396', 1.0, 'measurement', 'The Polygenic and Monogenic Basis of Blood Traits and Diseases.', '9', NULL, 'GCST', 'T', 'Mean reticulocyte volume', '{
  "list": [
    {
      "element": "European=408112"
    }
  ]
}', 'Vuckovic D', nan, NULL, 4.5, '-', False, 'PMID:32888494', 0.0, 4.5e-115, 98031425, NULL, '{
  "list": [
    {
      "element": "EFO_0010701"
    }
  ]
}', NULL, '2020-09-01', -0.0637803639999999, 'A', 835, 0.0, True, 'C', -0.053682836), (NULL, 2985884, 'Cell', 0.0123316, nan, 'T', 0.8591380486089999, '20', 0.0, -9, 0.0, '{
  "list": []
}', 408112, 'GCST90002396', 1.0, 'measurement', 'The Polygenic and Monogenic Basis of Blood Traits and Diseases.', '20', NULL, 'GCST', 'C', 'Mean reticulocyte volume', '{
  "list": [
    {
      "element": "European=408112"
    }
  ]
}', 'Vuckovic D', nan, NULL, 7.400000000000001, '+', True, 'PMID:32888494', 0.0, 7.400000000000002e-09, 3015777, NULL, '{
  "list": [
    {
      "element": "EFO_0010701"
    }
  ]
}', NULL, '2020-09-01', 0.008151214, 'A', 835, 0.0, True, 'CTTGT', 0.016511986);