-- DBMS: snowflake
create or replace TABLE TARGETS (
	"id" VARCHAR(16777216),
	"approvedSymbol" VARCHAR(16777216),
	"biotype" VARCHAR(16777216),
	"transcriptIds" VARIANT,
	"canonicalTranscript" VARIANT,
	"canonicalExons" VARIANT,
	"genomicLocation" VARIANT,
	"alternativeGenes" VARIANT,
	"approvedName" VARCHAR(16777216),
	"go" VARIANT,
	"hallmarks" VARIANT,
	"synonyms" VARIANT,
	"symbolSynonyms" VARIANT,
	"nameSynonyms" VARIANT,
	"functionDescriptions" VARIANT,
	"subcellularLocations" VARIANT,
	"targetClass" VARIANT,
	"obsoleteSymbols" VARIANT,
	"obsoleteNames" VARIANT,
	"constraint" VARIANT,
	"tep" VARIANT,
	"proteinIds" VARIANT,
	"dbXrefs" VARIANT,
	"chemicalProbes" VARIANT,
	"homologues" VARIANT,
	"tractability" VARIANT,
	"safetyLiabilities" VARIANT,
	"pathways" VARIANT
);

INSERT INTO "OPEN_TARGETS_PLATFORM_1"."PLATFORM"."TARGETS" (pathways, genomicLocation, safetyLiabilities, alternativeGenes, subcellularLocations, symbolSynonyms, homologues, nameSynonyms, hallmarks, canonicalTranscript, obsoleteSymbols, chemicalProbes, proteinIds, dbXrefs, approvedSymbol, synonyms, constraint, tractability, targetClass, transcriptIds, functionDescriptions, biotype, canonicalExons, id, approvedName, go, obsoleteNames, tep) VALUES (NULL, '{
  "chromosome": "13",
  "end": 71704655,
  "start": 71704181,
  "strand": 1
}', NULL, NULL, NULL, '{
  "list": [
    {
      "element": {
        "label": "RPL21_49_1320",
        "source": "NCBI_entrez"
      }
    },
    {
      "element": {
        "label": "RPL21P109",
        "source": "NCBI_entrez"
      }
    }
  ]
}', NULL, '{
  "list": []
}', NULL, '{
  "chromosome": "13",
  "end": 71704655,
  "id": "ENST00000422213",
  "start": 71704181,
  "strand": "+"
}', '{
  "list": []
}', NULL, NULL, '{
  "list": [
    {
      "element": {
        "id": "36388",
        "source": "HGNC"
      }
    }
  ]
}', 'RPL21P109', '{
  "list": [
    {
      "element": {
        "label": "RPL21_49_1320",
        "source": "NCBI_entrez"
      }
    },
    {
      "element": {
        "label": "RPL21P109",
        "source": "NCBI_entrez"
      }
    }
  ]
}', NULL, NULL, NULL, '{
  "list": [
    {
      "element": "ENST00000422213"
    }
  ]
}', NULL, 'processed_pseudogene', '{
  "list": [
    {
      "element": "71704181"
    },
    {
      "element": "71704655"
    }
  ]
}', 'ENSG00000237816', 'ribosomal protein L21 pseudogene 109', NULL, '{
  "list": []
}', NULL), (NULL, '{
  "chromosome": "13",
  "end": 99200757,
  "start": 99181223,
  "strand": -1
}', NULL, NULL, NULL, '{
  "list": [
    {
      "element": {
        "label": "UBAC2-AS1",
        "source": "NCBI_entrez"
      }
    }
  ]
}', NULL, '{
  "list": [
    {
      "element": {
        "label": "UBAC2 antisense RNA 1 (non-protein coding)",
        "source": "NCBI_entrez"
      }
    }
  ]
}', NULL, '{
  "chromosome": "13",
  "end": 99200693,
  "id": "ENST00000671580",
  "start": 99181223,
  "strand": "-"
}', '{
  "list": []
}', NULL, NULL, '{
  "list": [
    {
      "element": {
        "id": "42502",
        "source": "HGNC"
      }
    }
  ]
}', 'UBAC2-AS1', '{
  "list": [
    {
      "element": {
        "label": "UBAC2 antisense RNA 1 (non-protein coding)",
        "source": "NCBI_entrez"
      }
    },
    {
      "element": {
        "label": "UBAC2-AS1",
        "source": "NCBI_entrez"
      }
    }
  ]
}', NULL, NULL, NULL, '{
  "list": [
    {
      "element": "ENST00000671580"
    },
    {
      "element": "ENST00000658188"
    },
    {
      "element": "ENST00000426037"
    },
    {
      "element": "ENST00000445737"
    },
    {
      "element": "ENST00000687067"
    },
    {
      "element": "ENST00000668873"
    },
    {
      "element": "ENST00000668596"
    },
    {
      "element": "ENST00000662755"
    }
  ]
}', NULL, 'lncRNA', '{
  "list": [
    {
      "element": "99181223"
    },
    {
      "element": "99181875"
    },
    {
      "element": "99197548"
    },
    {
      "element": "99197802"
    },
    {
      "element": "99200366"
    },
    {
      "element": "99200693"
    },
    {
      "element": "99182585"
    },
    {
      "element": "99182702"
    }
  ]
}', 'ENSG00000228889', 'UBAC2 antisense RNA 1', NULL, '{
  "list": [
    {
      "element": {
        "label": "UBAC2 antisense RNA 1 (non-protein coding)",
        "source": "HGNC"
      }
    }
  ]
}', NULL), (NULL, '{
  "chromosome": "13",
  "end": 71914178,
  "start": 71913704,
  "strand": -1
}', NULL, NULL, NULL, '{
  "list": [
    {
      "element": {
        "label": "RPS10_8_1322",
        "source": "NCBI_entrez"
      }
    },
    {
      "element": {
        "label": "RPS10P21",
        "source": "NCBI_entrez"
      }
    }
  ]
}', NULL, '{
  "list": []
}', NULL, '{
  "chromosome": "13",
  "end": 71914178,
  "id": "ENST00000430654",
  "start": 71913704,
  "strand": "-"
}', '{
  "list": []
}', NULL, NULL, '{
  "list": [
    {
      "element": {
        "id": "35906",
        "source": "HGNC"
      }
    }
  ]
}', 'RPS10P21', '{
  "list": [
    {
      "element": {
        "label": "RPS10_8_1322",
        "source": "NCBI_entrez"
      }
    },
    {
      "element": {
        "label": "RPS10P21",
        "source": "NCBI_entrez"
      }
    }
  ]
}', NULL, NULL, NULL, '{
  "list": [
    {
      "element": "ENST00000430654"
    }
  ]
}', NULL, 'processed_pseudogene', '{
  "list": [
    {
      "element": "71913704"
    },
    {
      "element": "71914178"
    }
  ]
}', 'ENSG00000232881', 'ribosomal protein S10 pseudogene 21', NULL, '{
  "list": []
}', NULL), (NULL, '{
  "chromosome": "13",
  "end": 48771827,
  "start": 48771128,
  "strand": 1
}', NULL, NULL, NULL, '{
  "list": [
    {
      "element": {
        "label": "PSME2P2",
        "source": "NCBI_entrez"
      }
    }
  ]
}', NULL, '{
  "list": [
    {
      "element": {
        "label": "proteasome (prosome, macropain) activator subunit 2 (PA28 beta) pseudogene",
        "source": "NCBI_entrez"
      }
    }
  ]
}', NULL, '{
  "chromosome": "13",
  "end": 48771827,
  "id": "ENST00000453033",
  "start": 48771128,
  "strand": "+"
}', '{
  "list": []
}', NULL, NULL, '{
  "list": [
    {
      "element": {
        "id": "30160",
        "source": "HGNC"
      }
    }
  ]
}', 'PSME2P2', '{
  "list": [
    {
      "element": {
        "label": "proteasome (prosome, macropain) activator subunit 2 (PA28 beta) pseudogene",
        "source": "NCBI_entrez"
      }
    },
    {
      "element": {
        "label": "PSME2P2",
        "source": "NCBI_entrez"
      }
    }
  ]
}', NULL, NULL, NULL, '{
  "list": [
    {
      "element": "ENST00000453033"
    }
  ]
}', NULL, 'processed_pseudogene', '{
  "list": [
    {
      "element": "48771128"
    },
    {
      "element": "48771827"
    }
  ]
}', 'ENSG00000225131', 'proteasome activator subunit 2 pseudogene 2', NULL, '{
  "list": []
}', NULL), (NULL, '{
  "chromosome": "13",
  "end": 97987216,
  "start": 97986950,
  "strand": -1
}', NULL, NULL, NULL, '{
  "list": [
    {
      "element": {
        "label": "FTLP8",
        "source": "NCBI_entrez"
      }
    }
  ]
}', NULL, '{
  "list": [
    {
      "element": {
        "label": "ferritin, light polypeptide pseudogene 8",
        "source": "NCBI_entrez"
      }
    }
  ]
}', NULL, '{
  "chromosome": "13",
  "end": 97987216,
  "id": "ENST00000446770",
  "start": 97986950,
  "strand": "-"
}', '{
  "list": []
}', NULL, NULL, '{
  "list": [
    {
      "element": {
        "id": "37956",
        "source": "HGNC"
      }
    }
  ]
}', 'FTLP8', '{
  "list": [
    {
      "element": {
        "label": "ferritin, light polypeptide pseudogene 8",
        "source": "NCBI_entrez"
      }
    },
    {
      "element": {
        "label": "FTLP8",
        "source": "NCBI_entrez"
      }
    }
  ]
}', NULL, NULL, NULL, '{
  "list": [
    {
      "element": "ENST00000446770"
    }
  ]
}', NULL, 'processed_pseudogene', '{
  "list": [
    {
      "element": "97986950"
    },
    {
      "element": "97987216"
    }
  ]
}', 'ENSG00000232217', 'ferritin light chain pseudogene 8', NULL, '{
  "list": [
    {
      "element": {
        "label": "ferritin, light polypeptide pseudogene 8",
        "source": "HGNC"
      }
    }
  ]
}', NULL);