-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.open_targets_platform.molecule`
(
  id STRING,
  canonicalSmiles STRING,
  inchiKey STRING,
  drugType STRING NOT NULL,
  blackBoxWarning BOOL,
  name STRING,
  yearOfFirstApproval INT64,
  maximumClinicalTrialPhase FLOAT64,
  parentId STRING,
  hasBeenWithdrawn BOOL,
  isApproved BOOL,
  tradeNames STRUCT<list ARRAY<STRUCT<element STRING>>> NOT NULL,
  synonyms STRUCT<list ARRAY<STRUCT<element STRING>>> NOT NULL,
  crossReferences STRUCT<key_value ARRAY<STRUCT<key STRING NOT NULL, value STRUCT<list ARRAY<STRUCT<element STRING>>>>>>,
  childChemblIds STRUCT<list ARRAY<STRUCT<element STRING NOT NULL>>>,
  linkedDiseases STRUCT<`rows` STRUCT<list ARRAY<STRUCT<element STRING>>> NOT NULL, count INT64 NOT NULL>,
  linkedTargets STRUCT<`rows` STRUCT<list ARRAY<STRUCT<element STRING NOT NULL>>> NOT NULL, count INT64 NOT NULL>,
  description STRING
);

INSERT INTO `bigquery-public-data.open_targets_platform.molecule` (id, canonicalSmiles, inchiKey, drugType, blackBoxWarning, name, yearOfFirstApproval, maximumClinicalTrialPhase, parentId, hasBeenWithdrawn, isApproved, tradeNames, synonyms, crossReferences, childChemblIds, linkedDiseases, linkedTargets, description) VALUES ('CHEMBL1237122', 'CCCCC[C@](C)(O)/C=C/[C@@H]1[C@@H](C/C=C\CCCC(=O)O)[C@@H](O)C[C@H]1O', 'DLJKPYFALUEJCK-IIELGFQLSA-N', 'Small molecule', True, 'CARBOPROST', 1979, 4.0, NULL, False, True, {'list': "[{'element': 'Hemabate'}]"}, {'list': "[{'element': '(15s)-15-methyl-pgf2.alpha.'}\n {'element': '15-methyl-pgf2.alpha.'}\n {'element': '15-methylprostaglandin f2.alpha.'} {'element': 'Carboprost'}\n {'element': 'U-32,921'} {'element': 'U-32921'}]"}, NULL, {'list': "[{'element': 'CHEMBL1237105'}]"}, {'rows': {'list': "[{'element': 'EFO_0000731'} {'element': 'EFO_0009579'}\n {'element': 'MP_0001914'}]"}, 'count': 3}, {'rows': {'list': "[{'element': 'ENSG00000122420'}]"}, 'count': 1}, 'Small molecule drug with a maximum clinical trial phase of IV (across all indications) that was first approved in 1979 and is indicated for postpartum hemorrhage and hemorrhage and has 1 investigational indication. This drug has a black box warning from the FDA.'), ('CHEMBL3234446', 'CSCC[C@H](NC(=O)[C@@H]1CCCN1C(=O)CNC(=O)[C@H](CCCCN)NC(=O)[C@H](Cc1cnc[nH]1)NC(=O)[C@H](CO)NC(=O)[C@H](CC(C)C)NC(=O)[C@H](CCCNC(=N)N)NC(=O)[C@@H]1CCCN1C(=O)[C@H](CCCNC(=N)N)NC(=O)[C@H](CCC(N)=O)NC(=O)[C@H](CCCNC(=N)N)NC(=O)[C@H](CCCNC(=N)N)NC(=O)[C@H](Cc1ccccc1)NC(=O)[C@@H](N)CCCCN)C(=O)N1CCC[C@H]1C(=O)N[C@@H](Cc1ccccc1)C(=O)O', 'SVWSKJCJNAIKNH-MJZUAXFLSA-N', 'Protein', False, 'CHEMBL3234446', NULL, nan, NULL, False, NULL, {'list': '[]'}, {'list': '[]'}, NULL, NULL, NULL, NULL, 'Protein drug.'), ('CHEMBL217406', 'CSCC[C@H](NC(=O)[C@H](CC(C)C)NC(=O)CNC(=O)[C@@H](NC(=O)[C@H](Cc1ccccc1)NC(=O)[C@H](CO)NC(=O)[C@H](CC(=O)O)NC(=O)[C@@H](NC(=O)[C@H](CCCCN)NC(=O)[C@@H](N)Cc1c[nH]cn1)[C@@H](C)O)C(C)C)C(N)=O', 'HEAUFJZALFKPBA-JPQUDPSNSA-N', 'Protein', False, 'NEUROKININ A', NULL, nan, NULL, False, NULL, {'list': '[]'}, {'list': '[]'}, NULL, NULL, NULL, NULL, 'Protein drug.'), ('CHEMBL408891', 'CCC[C@H](NC(=O)[C@H](CCCN=C(N)N)NC(=O)[C@H](Cc1c[nH]c2ccccc12)NC(=O)[C@H](Cc1ccc(O)cc1)NC(=O)[C@H](CCCN=C(N)N)NC(=O)[C@H](CCC)NC(=O)[C@H](CCCN=C(N)N)NC(=O)[C@@H](N)Cc1c[nH]c2ccccc12)C(=O)N[C@@H](CCCN=C(N)N)C(=O)N[C@@H](Cc1ccc(O)cc1)C(N)=O', 'QTWWWOBSQULXHE-MTVPJWGZSA-N', 'Protein', False, 'CHEMBL408891', NULL, nan, NULL, False, NULL, {'list': '[]'}, {'list': '[]'}, NULL, NULL, NULL, NULL, 'Protein drug.'), ('CHEMBL413825', 'C[C@@H]1NC(=O)[C@@H]([C@@H](C)O)NC(=O)CNC(=O)[C@@H](Cc2c[nH]cn2)NC(=O)[C@H](Cc2c[nH]c3ccccc23)NC(=O)[C@@H](CC(N)=O)NC(=O)CNC(=O)[C@H](CC(=O)N[C@@H](Cc2c[nH]c3ccccc23)C(=O)N[C@@H](Cc2ccccc2)C(=O)N[C@@H](Cc2ccccc2)C(=O)N[C@@H](CC(N)=O)C(=O)N[C@@H](Cc2ccc(O)cc2)C(=O)N[C@@H](Cc2ccc(O)cc2)C(=O)N[C@@H](Cc2c[nH]c3ccccc23)C(=O)O)NC(=O)[C@H]2CCCN2C1=O', 'VWFLFTLWXQPVNV-SYUZYMOHSA-N', 'Protein', False, 'CHEMBL413825', NULL, nan, NULL, False, NULL, {'list': '[]'}, {'list': '[]'}, NULL, NULL, NULL, NULL, 'Protein drug.');