-- DBMS: snowflake
create or replace TABLE KNOWNDRUGSAGGREGATED (
	"drugId" VARCHAR(16777216),
	"targetId" VARCHAR(16777216),
	"diseaseId" VARCHAR(16777216),
	"phase" FLOAT,
	"status" VARCHAR(16777216),
	"urls" VARIANT,
	"ancestors" VARIANT,
	"label" VARCHAR(16777216),
	"approvedSymbol" VARCHAR(16777216),
	"approvedName" VARCHAR(16777216),
	"targetClass" VARIANT,
	"prefName" VARCHAR(16777216),
	"tradeNames" VARIANT,
	"synonyms" VARIANT,
	"drugType" VARCHAR(16777216),
	"mechanismOfAction" VARCHAR(16777216),
	"targetName" VARCHAR(16777216)
);

INSERT INTO "OPEN_TARGETS_PLATFORM_1"."PLATFORM"."KNOWNDRUGSAGGREGATED" (prefName, status, mechanismOfAction, urls, targetId, ancestors, tradeNames, diseaseId, synonyms, label, drugId, phase, targetName, approvedSymbol, approvedName, drugType, targetClass) VALUES ('BICALUTAMIDE', 'Recruiting', 'Androgen Receptor antagonist', '{
  "list": [
    {
      "element": {
        "niceName": "ClinicalTrials",
        "url": "https://clinicaltrials.gov/study/NCT04025372"
      }
    },
    {
      "element": {
        "niceName": "ClinicalTrials",
        "url": "https://clinicaltrials.gov/study/NCT04734730"
      }
    },
    {
      "element": {
        "niceName": "ClinicalTrials",
        "url": "https://clinicaltrials.gov/study/NCT03541928"
      }
    }
  ]
}', 'ENSG00000169083', '{
  "list": [
    {
      "element": "OTAR_0000017"
    },
    {
      "element": "EFO_0009555"
    },
    {
      "element": "EFO_0007355"
    },
    {
      "element": "MONDO_0024582"
    },
    {
      "element": "MONDO_0002149"
    },
    {
      "element": "MONDO_0023370"
    },
    {
      "element": "EFO_1000051"
    },
    {
      "element": "EFO_0009602"
    },
    {
      "element": "MONDO_0045024"
    },
    {
      "element": "MONDO_0021259"
    },
    {
      "element": "MONDO_0004992"
    },
    {
      "element": "EFO_0000512"
    },
    {
      "element": "EFO_0000616"
    }
  ]
}', '{
  "list": [
    {
      "element": "Bicalutamide"
    },
    {
      "element": "Calutide"
    },
    {
      "element": "Casodex"
    },
    {
      "element": "Cosudex"
    },
    {
      "element": "Kalumid"
    }
  ]
}', 'MONDO_0008315', '{
  "list": [
    {
      "element": "Bicalutamide"
    },
    {
      "element": "Casodex"
    },
    {
      "element": "ICI 176,334"
    },
    {
      "element": "ICI-176334"
    },
    {
      "element": "ICI176,334-1"
    },
    {
      "element": "NSC-759816"
    }
  ]
}', 'prostate cancer', 'CHEMBL409', 2.0, 'Androgen Receptor', 'AR', 'androgen receptor', 'Small molecule', '{
  "list": [
    {
      "element": "Transcription factor"
    },
    {
      "element": "Unclassified protein"
    }
  ]
}'), ('BICALUTAMIDE', 'Active, not recruiting', 'Androgen Receptor antagonist', '{
  "list": [
    {
      "element": {
        "niceName": "ClinicalTrials",
        "url": "https://clinicaltrials.gov/study/NCT03650894"
      }
    }
  ]
}', 'ENSG00000169083', '{
  "list": [
    {
      "element": "OTAR_0000017"
    },
    {
      "element": "MONDO_0021350"
    },
    {
      "element": "MONDO_0000653"
    },
    {
      "element": "MONDO_0023370"
    },
    {
      "element": "MONDO_0007254"
    },
    {
      "element": "MONDO_0045024"
    },
    {
      "element": "MONDO_0004992"
    },
    {
      "element": "EFO_0009483"
    },
    {
      "element": "MONDO_0003274"
    },
    {
      "element": "EFO_0003869"
    },
    {
      "element": "EFO_0000313"
    },
    {
      "element": "EFO_0010285"
    },
    {
      "element": "EFO_0006858"
    },
    {
      "element": "EFO_0000616"
    }
  ]
}', '{
  "list": [
    {
      "element": "Bicalutamide"
    },
    {
      "element": "Calutide"
    },
    {
      "element": "Casodex"
    },
    {
      "element": "Cosudex"
    },
    {
      "element": "Kalumid"
    }
  ]
}', 'EFO_0000305', '{
  "list": [
    {
      "element": "Bicalutamide"
    },
    {
      "element": "Casodex"
    },
    {
      "element": "ICI 176,334"
    },
    {
      "element": "ICI-176334"
    },
    {
      "element": "ICI176,334-1"
    },
    {
      "element": "NSC-759816"
    }
  ]
}', 'breast carcinoma', 'CHEMBL409', 2.0, 'Androgen Receptor', 'AR', 'androgen receptor', 'Small molecule', '{
  "list": [
    {
      "element": "Transcription factor"
    },
    {
      "element": "Unclassified protein"
    }
  ]
}'), ('BICALUTAMIDE', 'Unknown status', 'Androgen Receptor antagonist', '{
  "list": [
    {
      "element": {
        "niceName": "ClinicalTrials",
        "url": "https://clinicaltrials.gov/study/NCT02910050"
      }
    }
  ]
}', 'ENSG00000169083', '{
  "list": [
    {
      "element": "EFO_0003869"
    },
    {
      "element": "OTAR_0000017"
    },
    {
      "element": "MONDO_0021350"
    },
    {
      "element": "MONDO_0000653"
    },
    {
      "element": "MONDO_0023370"
    },
    {
      "element": "MONDO_0045024"
    },
    {
      "element": "MONDO_0004992"
    },
    {
      "element": "EFO_0010285"
    },
    {
      "element": "EFO_0009483"
    },
    {
      "element": "MONDO_0003274"
    },
    {
      "element": "EFO_0000616"
    }
  ]
}', '{
  "list": [
    {
      "element": "Bicalutamide"
    },
    {
      "element": "Calutide"
    },
    {
      "element": "Casodex"
    },
    {
      "element": "Cosudex"
    },
    {
      "element": "Kalumid"
    }
  ]
}', 'MONDO_0007254', '{
  "list": [
    {
      "element": "Bicalutamide"
    },
    {
      "element": "Casodex"
    },
    {
      "element": "ICI 176,334"
    },
    {
      "element": "ICI-176334"
    },
    {
      "element": "ICI176,334-1"
    },
    {
      "element": "NSC-759816"
    }
  ]
}', 'breast cancer', 'CHEMBL409', 2.0, 'Androgen Receptor', 'AR', 'androgen receptor', 'Small molecule', '{
  "list": [
    {
      "element": "Transcription factor"
    },
    {
      "element": "Unclassified protein"
    }
  ]
}'), ('BICALUTAMIDE', 'Recruiting', 'Androgen Receptor antagonist', '{
  "list": [
    {
      "element": {
        "niceName": "ClinicalTrials",
        "url": "https://clinicaltrials.gov/study/NCT06365788"
      }
    }
  ]
}', 'ENSG00000169083', '{
  "list": [
    {
      "element": "OTAR_0000017"
    },
    {
      "element": "MONDO_0021350"
    },
    {
      "element": "MONDO_0023370"
    },
    {
      "element": "MONDO_0045024"
    },
    {
      "element": "EFO_0010285"
    },
    {
      "element": "EFO_0009483"
    },
    {
      "element": "EFO_0000616"
    }
  ]
}', '{
  "list": [
    {
      "element": "Bicalutamide"
    },
    {
      "element": "Calutide"
    },
    {
      "element": "Casodex"
    },
    {
      "element": "Cosudex"
    },
    {
      "element": "Kalumid"
    }
  ]
}', 'EFO_0003869', '{
  "list": [
    {
      "element": "Bicalutamide"
    },
    {
      "element": "Casodex"
    },
    {
      "element": "ICI 176,334"
    },
    {
      "element": "ICI-176334"
    },
    {
      "element": "ICI176,334-1"
    },
    {
      "element": "NSC-759816"
    }
  ]
}', 'breast neoplasm', 'CHEMBL409', 2.0, 'Androgen Receptor', 'AR', 'androgen receptor', 'Small molecule', '{
  "list": [
    {
      "element": "Transcription factor"
    },
    {
      "element": "Unclassified protein"
    }
  ]
}'), ('BICALUTAMIDE', 'Terminated', 'Androgen Receptor antagonist', '{
  "list": [
    {
      "element": {
        "niceName": "ClinicalTrials",
        "url": "https://clinicaltrials.gov/study/NCT00514917"
      }
    }
  ]
}', 'ENSG00000169083', '{
  "list": [
    {
      "element": "OTAR_0000017"
    },
    {
      "element": "MONDO_0024276"
    },
    {
      "element": "EFO_0009555"
    },
    {
      "element": "EFO_0007355"
    },
    {
      "element": "MONDO_0024582"
    },
    {
      "element": "MONDO_0002149"
    },
    {
      "element": "MONDO_0023370"
    },
    {
      "element": "EFO_1000051"
    },
    {
      "element": "EFO_0009602"
    },
    {
      "element": "MONDO_0045024"
    },
    {
      "element": "MONDO_0021259"
    },
    {
      "element": "MONDO_0004992"
    },
    {
      "element": "MONDO_0008315"
    },
    {
      "element": "EFO_0000512"
    },
    {
      "element": "EFO_0000313"
    },
    {
      "element": "EFO_0000228"
    },
    {
      "element": "EFO_0001663"
    },
    {
      "element": "EFO_0006858"
    },
    {
      "element": "EFO_0000616"
    }
  ]
}', '{
  "list": [
    {
      "element": "Bicalutamide"
    },
    {
      "element": "Calutide"
    },
    {
      "element": "Casodex"
    },
    {
      "element": "Cosudex"
    },
    {
      "element": "Kalumid"
    }
  ]
}', 'EFO_0000673', '{
  "list": [
    {
      "element": "Bicalutamide"
    },
    {
      "element": "Casodex"
    },
    {
      "element": "ICI 176,334"
    },
    {
      "element": "ICI-176334"
    },
    {
      "element": "ICI176,334-1"
    },
    {
      "element": "NSC-759816"
    }
  ]
}', 'prostate adenocarcinoma', 'CHEMBL409', 3.0, 'Androgen Receptor', 'AR', 'androgen receptor', 'Small molecule', '{
  "list": [
    {
      "element": "Transcription factor"
    },
    {
      "element": "Unclassified protein"
    }
  ]
}');