-- DBMS: bigquery
CREATE TABLE `open-targets-prod.platform.knownDrugsAggregated`
(
  drugId STRING,
  targetId STRING,
  diseaseId STRING,
  phase FLOAT64,
  status STRING,
  urls STRUCT<list ARRAY<STRUCT<element STRUCT<niceName STRING, url STRING>>>> NOT NULL,
  ancestors STRUCT<list ARRAY<STRUCT<element STRING>>>,
  label STRING,
  approvedSymbol STRING,
  approvedName STRING,
  targetClass STRUCT<list ARRAY<STRUCT<element STRING>>>,
  prefName STRING,
  tradeNames STRUCT<list ARRAY<STRUCT<element STRING>>>,
  synonyms STRUCT<list ARRAY<STRUCT<element STRING>>>,
  drugType STRING,
  mechanismOfAction STRING,
  targetName STRING
);

INSERT INTO `open-targets-prod.platform.knownDrugsAggregated` (drugId, targetId, diseaseId, phase, status, urls, ancestors, label, approvedSymbol, approvedName, targetClass, prefName, tradeNames, synonyms, drugType, mechanismOfAction, targetName) VALUES ('CHEMBL409', 'ENSG00000169083', 'MONDO_0008315', 2.0, 'Recruiting', {'list': "[{'element': {'niceName': 'ClinicalTrials', 'url': 'https://clinicaltrials.gov/study/NCT04025372'}}\n {'element': {'niceName': 'ClinicalTrials', 'url': 'https://clinicaltrials.gov/study/NCT04734730'}}\n {'element': {'niceName': 'ClinicalTrials', 'url': 'https://clinicaltrials.gov/study/NCT03541928'}}]"}, {'list': "[{'element': 'OTAR_0000017'} {'element': 'EFO_0009555'}\n {'element': 'EFO_0007355'} {'element': 'MONDO_0024582'}\n {'element': 'MONDO_0002149'} {'element': 'MONDO_0023370'}\n {'element': 'EFO_1000051'} {'element': 'EFO_0009602'}\n {'element': 'MONDO_0045024'} {'element': 'MONDO_0021259'}\n {'element': 'MONDO_0004992'} {'element': 'EFO_0000512'}\n {'element': 'EFO_0000616'}]"}, 'prostate cancer', 'AR', 'androgen receptor', {'list': "[{'element': 'Transcription factor'} {'element': 'Unclassified protein'}]"}, 'BICALUTAMIDE', {'list': "[{'element': 'Bicalutamide'} {'element': 'Calutide'}\n {'element': 'Casodex'} {'element': 'Cosudex'} {'element': 'Kalumid'}]"}, {'list': "[{'element': 'Bicalutamide'} {'element': 'Casodex'}\n {'element': 'ICI 176,334'} {'element': 'ICI-176334'}\n {'element': 'ICI176,334-1'} {'element': 'NSC-759816'}]"}, 'Small molecule', 'Androgen Receptor antagonist', 'Androgen Receptor'), ('CHEMBL409', 'ENSG00000169083', 'EFO_0000196', 3.0, 'Completed', {'list': "[{'element': {'niceName': 'ClinicalTrials', 'url': 'https://clinicaltrials.gov/study/NCT00672282'}}\n {'element': {'niceName': 'ClinicalTrials', 'url': 'https://clinicaltrials.gov/study/NCT00657904'}}\n {'element': {'niceName': 'ClinicalTrials', 'url': 'https://clinicaltrials.gov/study/NCT00673205'}}]"}, {'list': "[{'element': 'OTAR_0000017'} {'element': 'EFO_0009555'}\n {'element': 'EFO_0007355'} {'element': 'MONDO_0024582'}\n {'element': 'MONDO_0002149'} {'element': 'MONDO_0023370'}\n {'element': 'EFO_1000051'} {'element': 'EFO_0009602'}\n {'element': 'MONDO_0045024'} {'element': 'MONDO_0021259'}\n {'element': 'MONDO_0004992'} {'element': 'MONDO_0008315'}\n {'element': 'EFO_0000512'} {'element': 'EFO_0000313'}\n {'element': 'EFO_0001663'} {'element': 'EFO_0006858'}\n {'element': 'EFO_0000616'}]"}, 'metastatic prostate cancer', 'AR', 'androgen receptor', {'list': "[{'element': 'Transcription factor'} {'element': 'Unclassified protein'}]"}, 'BICALUTAMIDE', {'list': "[{'element': 'Bicalutamide'} {'element': 'Calutide'}\n {'element': 'Casodex'} {'element': 'Cosudex'} {'element': 'Kalumid'}]"}, {'list': "[{'element': 'Bicalutamide'} {'element': 'Casodex'}\n {'element': 'ICI 176,334'} {'element': 'ICI-176334'}\n {'element': 'ICI176,334-1'} {'element': 'NSC-759816'}]"}, 'Small molecule', 'Androgen Receptor antagonist', 'Androgen Receptor'), ('CHEMBL409', 'ENSG00000169083', 'MONDO_0008315', 3.0, 'Terminated', {'list': "[{'element': {'niceName': 'ClinicalTrials', 'url': 'https://clinicaltrials.gov/study/NCT00014586'}}\n {'element': {'niceName': 'ClinicalTrials', 'url': 'https://clinicaltrials.gov/study/NCT00243646'}}\n {'element': {'niceName': 'ClinicalTrials', 'url': 'https://clinicaltrials.gov/study/NCT00831233'}}\n {'element': {'niceName': 'ClinicalTrials', 'url': 'https://clinicaltrials.gov/study/NCT00388804'}}\n {'element': {'niceName': 'ClinicalTrials', 'url': 'https://clinicaltrials.gov/study/NCT01313273'}}\n {'element': {'niceName': 'ClinicalTrials', 'url': 'https://clinicaltrials.gov/study/NCT00651326'}}]"}, {'list': "[{'element': 'OTAR_0000017'} {'element': 'EFO_0009555'}\n {'element': 'EFO_0007355'} {'element': 'MONDO_0024582'}\n {'element': 'MONDO_0002149'} {'element': 'MONDO_0023370'}\n {'element': 'EFO_1000051'} {'element': 'EFO_0009602'}\n {'element': 'MONDO_0045024'} {'element': 'MONDO_0021259'}\n {'element': 'MONDO_0004992'} {'element': 'EFO_0000512'}\n {'element': 'EFO_0000616'}]"}, 'prostate cancer', 'AR', 'androgen receptor', {'list': "[{'element': 'Transcription factor'} {'element': 'Unclassified protein'}]"}, 'BICALUTAMIDE', {'list': "[{'element': 'Bicalutamide'} {'element': 'Calutide'}\n {'element': 'Casodex'} {'element': 'Cosudex'} {'element': 'Kalumid'}]"}, {'list': "[{'element': 'Bicalutamide'} {'element': 'Casodex'}\n {'element': 'ICI 176,334'} {'element': 'ICI-176334'}\n {'element': 'ICI176,334-1'} {'element': 'NSC-759816'}]"}, 'Small molecule', 'Androgen Receptor antagonist', 'Androgen Receptor'), ('CHEMBL409', 'ENSG00000169083', 'EFO_0000305', 2.0, 'Active, not recruiting', {'list': "[{'element': {'niceName': 'ClinicalTrials', 'url': 'https://clinicaltrials.gov/study/NCT03650894'}}]"}, {'list': "[{'element': 'OTAR_0000017'} {'element': 'MONDO_0021350'}\n {'element': 'MONDO_0000653'} {'element': 'MONDO_0023370'}\n {'element': 'MONDO_0007254'} {'element': 'MONDO_0045024'}\n {'element': 'MONDO_0004992'} {'element': 'EFO_0009483'}\n {'element': 'MONDO_0003274'} {'element': 'EFO_0003869'}\n {'element': 'EFO_0000313'} {'element': 'EFO_0010285'}\n {'element': 'EFO_0006858'} {'element': 'EFO_0000616'}]"}, 'breast carcinoma', 'AR', 'androgen receptor', {'list': "[{'element': 'Transcription factor'} {'element': 'Unclassified protein'}]"}, 'BICALUTAMIDE', {'list': "[{'element': 'Bicalutamide'} {'element': 'Calutide'}\n {'element': 'Casodex'} {'element': 'Cosudex'} {'element': 'Kalumid'}]"}, {'list': "[{'element': 'Bicalutamide'} {'element': 'Casodex'}\n {'element': 'ICI 176,334'} {'element': 'ICI-176334'}\n {'element': 'ICI176,334-1'} {'element': 'NSC-759816'}]"}, 'Small molecule', 'Androgen Receptor antagonist', 'Androgen Receptor'), ('CHEMBL409', 'ENSG00000169083', 'MONDO_0007254', 2.0, 'Unknown status', {'list': "[{'element': {'niceName': 'ClinicalTrials', 'url': 'https://clinicaltrials.gov/study/NCT02910050'}}]"}, {'list': "[{'element': 'EFO_0003869'} {'element': 'OTAR_0000017'}\n {'element': 'MONDO_0021350'} {'element': 'MONDO_0000653'}\n {'element': 'MONDO_0023370'} {'element': 'MONDO_0045024'}\n {'element': 'MONDO_0004992'} {'element': 'EFO_0010285'}\n {'element': 'EFO_0009483'} {'element': 'MONDO_0003274'}\n {'element': 'EFO_0000616'}]"}, 'breast cancer', 'AR', 'androgen receptor', {'list': "[{'element': 'Transcription factor'} {'element': 'Unclassified protein'}]"}, 'BICALUTAMIDE', {'list': "[{'element': 'Bicalutamide'} {'element': 'Calutide'}\n {'element': 'Casodex'} {'element': 'Cosudex'} {'element': 'Kalumid'}]"}, {'list': "[{'element': 'Bicalutamide'} {'element': 'Casodex'}\n {'element': 'ICI 176,334'} {'element': 'ICI-176334'}\n {'element': 'ICI176,334-1'} {'element': 'NSC-759816'}]"}, 'Small molecule', 'Androgen Receptor antagonist', 'Androgen Receptor');