-- DBMS: snowflake
create or replace TABLE EVIDENCE (
	"datasourceId" VARCHAR(16777216),
	"targetId" VARCHAR(16777216),
	"_corrupt_record" VARCHAR(16777216),
	"alleleOrigins" VARIANT,
	"allelicRequirements" VARIANT,
	"ancestry" VARCHAR(16777216),
	"ancestryId" VARCHAR(16777216),
	"beta" FLOAT,
	"betaConfidenceIntervalLower" FLOAT,
	"betaConfidenceIntervalUpper" FLOAT,
	"biologicalModelAllelicComposition" VARCHAR(16777216),
	"biologicalModelGeneticBackground" VARCHAR(16777216),
	"biologicalModelId" VARCHAR(16777216),
	"biomarkerName" VARCHAR(16777216),
	"biomarkers" VARIANT,
	"biosamplesFromSource" VARIANT,
	"cellType" VARCHAR(16777216),
	"clinicalPhase" FLOAT,
	"clinicalSignificances" VARIANT,
	"clinicalStatus" VARCHAR(16777216),
	"cohortDescription" VARCHAR(16777216),
	"cohortId" VARCHAR(16777216),
	"cohortPhenotypes" VARIANT,
	"cohortShortName" VARCHAR(16777216),
	"confidence" VARCHAR(16777216),
	"contrast" VARCHAR(16777216),
	"crisprScreenLibrary" VARCHAR(16777216),
	"datatypeId" VARCHAR(16777216),
	"diseaseCellLines" VARIANT,
	"diseaseFromSource" VARCHAR(16777216),
	"diseaseFromSourceId" VARCHAR(16777216),
	"diseaseFromSourceMappedId" VARCHAR(16777216),
	"diseaseModelAssociatedHumanPhenotypes" VARIANT,
	"diseaseModelAssociatedModelPhenotypes" VARIANT,
	"drugFromSource" VARCHAR(16777216),
	"drugId" VARCHAR(16777216),
	"drugResponse" VARCHAR(16777216),
	"geneticBackground" VARCHAR(16777216),
	"literature" VARIANT,
	"log2FoldChangePercentileRank" NUMBER(38,0),
	"log2FoldChangeValue" FLOAT,
	"mutatedSamples" VARIANT,
	"oddsRatio" FLOAT,
	"oddsRatioConfidenceIntervalLower" FLOAT,
	"oddsRatioConfidenceIntervalUpper" FLOAT,
	"pValueExponent" NUMBER(38,0),
	"pValueMantissa" FLOAT,
	"pathways" VARIANT,
	"pmcIds" VARIANT,
	"projectId" VARCHAR(16777216),
	"publicationFirstAuthor" VARCHAR(16777216),
	"publicationYear" NUMBER(38,0),
	"reactionId" VARCHAR(16777216),
	"reactionName" VARCHAR(16777216),
	"releaseDate" VARCHAR(16777216),
	"releaseVersion" VARCHAR(16777216),
	"resourceScore" FLOAT,
	"sex" VARIANT,
	"significantDriverMethods" VARIANT,
	"statisticalMethod" VARCHAR(16777216),
	"statisticalMethodOverview" VARCHAR(16777216),
	"statisticalTestTail" VARCHAR(16777216),
	"studyCases" NUMBER(38,0),
	"studyCasesWithQualifyingVariants" NUMBER(38,0),
	"studyId" VARCHAR(16777216),
	"studyOverview" VARCHAR(16777216),
	"studySampleSize" NUMBER(38,0),
	"studyStartDate" VARCHAR(16777216),
	"studyStopReason" VARCHAR(16777216),
	"studyStopReasonCategories" VARIANT,
	"targetFromSource" VARCHAR(16777216),
	"targetFromSourceId" VARCHAR(16777216),
	"targetInModel" VARCHAR(16777216),
	"targetInModelEnsemblId" VARCHAR(16777216),
	"targetInModelMgiId" VARCHAR(16777216),
	"targetModulation" VARCHAR(16777216),
	"textMiningSentences" VARIANT,
	"urls" VARIANT,
	"variantAminoacidDescriptions" VARIANT,
	"variantFunctionalConsequenceFromQtlId" VARCHAR(16777216),
	"variantFunctionalConsequenceId" VARCHAR(16777216),
	"variantHgvsId" VARCHAR(16777216),
	"variantId" VARCHAR(16777216),
	"variantRsId" VARCHAR(16777216),
	"diseaseId" VARCHAR(16777216),
	"id" VARCHAR(16777216),
	"score" FLOAT,
	"variantEffect" VARCHAR(16777216),
	"directionOnTrait" VARCHAR(16777216),
	"sourceId" VARCHAR(16777216)
);

INSERT INTO "OPEN_TARGETS_PLATFORM_2"."OPEN_TARGETS_PLATFORM"."EVIDENCE" (biomarkerName, crisprScreenLibrary, mutatedSamples, targetInModelMgiId, resourceScore, statisticalMethodOverview, ancestry, variantFunctionalConsequenceId, clinicalPhase, studyStartDate, studyStopReason, datatypeId, allelicRequirements, diseaseModelAssociatedModelPhenotypes, drugId, score, betaConfidenceIntervalLower, statisticalMethod, biologicalModelGeneticBackground, targetInModel, pValueMantissa, pmcIds, diseaseFromSourceId, studyId, biosamplesFromSource, contrast, significantDriverMethods, log2FoldChangePercentileRank, drugResponse, log2FoldChangeValue, reactionId, diseaseFromSourceMappedId, oddsRatioConfidenceIntervalLower, targetInModelEnsemblId, targetFromSource, diseaseId, sourceId, biomarkers, clinicalSignificances, pathways, statisticalTestTail, betaConfidenceIntervalUpper, beta, cellType, publicationYear, biologicalModelId, confidence, diseaseFromSource, cohortDescription, variantHgvsId, oddsRatio, projectId, studyCasesWithQualifyingVariants, reactionName, urls, oddsRatioConfidenceIntervalUpper, pValueExponent, releaseVersion, geneticBackground, publicationFirstAuthor, biologicalModelAllelicComposition, diseaseCellLines, variantEffect, variantId, cohortPhenotypes, studySampleSize, releaseDate, studyOverview, targetFromSourceId, literature, alleleOrigins, studyCases, clinicalStatus, variantFunctionalConsequenceFromQtlId, cohortShortName, targetModulation, diseaseModelAssociatedHumanPhenotypes, cohortId, drugFromSource, variantRsId, variantAminoacidDescriptions, textMiningSentences, datasourceId, sex, studyStopReasonCategories, _corrupt_record, ancestryId, targetId, directionOnTrait, id) VALUES (NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'SO_0001583', NULL, NULL, NULL, 'genetic_association', NULL, NULL, NULL, 0.32, NULL, NULL, NULL, NULL, NULL, NULL, 'C0009405', 'RCV001224160', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'EFO_0009911', NULL, NULL, NULL, 'EFO_0009911', 'eva', NULL, '{
  "list": [
    {
      "element": "uncertain significance"
    }
  ]
}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'criteria provided, single submitter', 'Hereditary nonpolyposis colorectal neoplasms', NULL, 'NC_000003.12:g.37020408A>C', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '3_37020408_A_C', '{
  "list": [
    {
      "element": "Hereditary nonpolyposis colorectal neoplasms"
    }
  ]
}', NULL, '2020-07-16', NULL, 'ENSG00000076242', NULL, '{
  "list": [
    {
      "element": "germline"
    }
  ]
}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'rs2082986773', NULL, NULL, 'eva', NULL, NULL, NULL, NULL, 'ENSG00000076242', NULL, '50b2c6bc93614589c937ac57f2eb87ca24b0b0a2'), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'SO_0001583', NULL, NULL, NULL, 'genetic_association', NULL, NULL, NULL, 0.32, NULL, NULL, NULL, NULL, NULL, NULL, 'C0009405', 'RCV000463624', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'EFO_0009911', NULL, NULL, NULL, 'EFO_0009911', 'eva', NULL, '{
  "list": [
    {
      "element": "uncertain significance"
    }
  ]
}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'criteria provided, single submitter', 'Hereditary nonpolyposis colorectal neoplasms', NULL, 'NC_000007.14:g.5999205G>C', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '7_5999205_G_C', '{
  "list": [
    {
      "element": "Hereditary nonpolyposis colorectal neoplasms"
    }
  ]
}', NULL, '2017-04-17', NULL, 'ENSG00000122512', NULL, '{
  "list": [
    {
      "element": "germline"
    }
  ]
}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'rs779946576', NULL, NULL, 'eva', NULL, NULL, NULL, NULL, 'ENSG00000122512', NULL, '7ffe9d541638f3e79d5ef709585c4bfe40bef304'), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'SO_0001583', NULL, NULL, NULL, 'genetic_association', NULL, NULL, NULL, 0.32, NULL, NULL, NULL, NULL, NULL, NULL, 'C0009405', 'RCV001220818', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'EFO_0009911', NULL, NULL, NULL, 'EFO_0009911', 'eva', NULL, '{
  "list": [
    {
      "element": "uncertain significance"
    }
  ]
}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'criteria provided, single submitter', 'Hereditary nonpolyposis colorectal neoplasms', NULL, 'NC_000007.14:g.5987500T>C', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '7_5987500_T_C', '{
  "list": [
    {
      "element": "Hereditary nonpolyposis colorectal neoplasms"
    }
  ]
}', NULL, '2020-07-16', NULL, 'ENSG00000122512', NULL, '{
  "list": [
    {
      "element": "germline"
    }
  ]
}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'rs1562635355', NULL, NULL, 'eva', NULL, NULL, NULL, NULL, 'ENSG00000122512', NULL, '4650af2a5dc81814e179cd3d7d18d2970345ba63'), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'SO_0001583', NULL, NULL, NULL, 'genetic_association', NULL, NULL, NULL, 0.32, NULL, NULL, NULL, NULL, NULL, NULL, 'C3493776', 'RCV000504179', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'MONDO_0010142', NULL, NULL, NULL, 'MONDO_0010142', 'eva', NULL, '{
  "list": [
    {
      "element": "conflicting interpretations of pathogenicity"
    }
  ]
}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'criteria provided, conflicting interpretations', 'Hypothyroidism due to TSH receptor mutations', NULL, 'NC_000014.9:g.81062179C>T', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '14_81062179_C_T', '{
  "list": [
    {
      "element": "HYPOTHYROIDISM DUE TO UNRESPONSIVENESS TO THYROTROPIN"
    },
    {
      "element": "HYPOTHYROIDISM, CONGENITAL, DUE TO TSH RESISTANCE"
    },
    {
      "element": "HYPOTHYROIDISM, NONAUTOIMMUNE"
    },
    {
      "element": "Hypothyroidism due to TSH receptor mutations"
    },
    {
      "element": "Hypothyroidism, congenital, nongoitrous, 1"
    },
    {
      "element": "THYROID-STIMULATING HORMONE, RESISTANCE TO"
    },
    {
      "element": "TSH RESISTANCE"
    }
  ]
}', NULL, '2017-08-28', NULL, 'ENSG00000165409', NULL, '{
  "list": [
    {
      "element": "germline"
    }
  ]
}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'rs142063461', NULL, NULL, 'eva', NULL, NULL, NULL, NULL, 'ENSG00000165409', NULL, 'e45a0aecaf6731d92b419a547360bef87504f8c1'), (NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'SO_0001819', NULL, NULL, NULL, 'genetic_association', NULL, NULL, NULL, 0.32, NULL, NULL, NULL, NULL, NULL, NULL, 'C2930980', 'RCV000363985', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'EFO_0009071', NULL, NULL, NULL, 'EFO_0009071', 'eva', NULL, '{
  "list": [
    {
      "element": "uncertain significance"
    }
  ]
}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'criteria provided, single submitter', 'Malignant hyperthermia, susceptibility to, 1', NULL, 'NC_000019.10:g.38442438G>T', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '19_38442438_G_T', '{
  "list": [
    {
      "element": "Anesthesia related hyperthermia"
    },
    {
      "element": "Fulminating hyperpyrexia"
    },
    {
      "element": "Malignant hyperpyrexia"
    },
    {
      "element": "Malignant hyperthermia suceptibility 1"
    },
    {
      "element": "Malignant hyperthermia, susceptibility to, 1"
    },
    {
      "element": "Pharmacogenic myopathy"
    }
  ]
}', NULL, '2016-12-06', NULL, 'ENSG00000196218', NULL, '{
  "list": [
    {
      "element": "germline"
    }
  ]
}', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'rs532101469', NULL, NULL, 'eva', NULL, NULL, NULL, NULL, 'ENSG00000196218', NULL, '5243f6c8887c0d4f17ee34f35a7a62d5af7ebe85');