-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.ebi_chembl.molecule_dictionary_30`
(
  molregno INT64 NOT NULL OPTIONS(description="Internal Primary Key for the molecule"),
  pref_name STRING OPTIONS(description=" Preferred name for the molecule"),
  chembl_id STRING NOT NULL OPTIONS(description="ChEMBL identifier for this compound (for use on web interface etc)"),
  max_phase INT64 NOT NULL OPTIONS(description="Maximum phase of development reached for the compound (4 = approved). Null where max phase has not yet been assigned."),
  therapeutic_flag INT64 NOT NULL OPTIONS(description="Indicates that a drug has a therapeutic application (as opposed to e.g., an imaging agent, additive etc)."),
  dosed_ingredient INT64 NOT NULL OPTIONS(description="Indicates that the drug is dosed in this form (e.g., a particular salt)"),
  structure_type STRING NOT NULL OPTIONS(description="Indications whether the molecule has a small molecule structure or a protein sequence (MOL indicates an entry in the compound_structures table, SEQ indications an entry in the protein_therapeutics table, NONE indicates an entry in neither table, e.g., structure unknown)"),
  chebi_par_id INT64 OPTIONS(description="Preferred ChEBI ID for the compound (where different from assigned)"),
  molecule_type STRING OPTIONS(description="Type of molecule (Small molecule, Protein, Antibody, Oligosaccharide, Oligonucleotide, Cell, Unknown)"),
  first_approval INT64 OPTIONS(description="Earliest known approval year for the molecule"),
  oral INT64 NOT NULL OPTIONS(description="Indicates whether the drug is known to be administered orally."),
  parenteral INT64 NOT NULL OPTIONS(description="Indicates whether the drug is known to be administered parenterally"),
  topical INT64 NOT NULL OPTIONS(description="Indicates whether the drug is known to be administered topically."),
  black_box_warning INT64 NOT NULL OPTIONS(description="Indicates that the drug has a black box warning"),
  natural_product INT64 NOT NULL OPTIONS(description="Indicates whether the compound is natural product-derived (currently curated only for drugs)"),
  first_in_class INT64 NOT NULL OPTIONS(description="Indicates whether this is known to be the first compound of its class (e.g., acting on a particular target)."),
  chirality INT64 NOT NULL OPTIONS(description="Shows whether a drug is dosed as a racemic mixture (0), single stereoisomer (1) or is an achiral molecule (2)"),
  prodrug INT64 NOT NULL OPTIONS(description="Indicates that the molecule is a pro-drug (see molecule hierarchy for active component, where known)"),
  inorganic_flag INT64 NOT NULL OPTIONS(description="Indicates whether the molecule is inorganic (i.e., containing only metal atoms and <2 carbon atoms)"),
  usan_year INT64 OPTIONS(description="The year in which the application for a USAN/INN name was made"),
  availability_type INT64 OPTIONS(description="The availability type for the drug (0 = discontinued, 1 = prescription only, 2 = over the counter)"),
  usan_stem STRING OPTIONS(description="Where the compound has been assigned a USAN name, this indicates the stem, as described in the USAN_STEM table."),
  polymer_flag INT64 OPTIONS(description="Indicates whether a molecule is a small molecule polymer (e.g., polistyrex)"),
  usan_substem STRING OPTIONS(description="Where the compound has been assigned a USAN name, this indicates the substem"),
  usan_stem_definition STRING OPTIONS(description="Definition of the USAN stem"),
  indication_class STRING OPTIONS(description="Indication class(es) assigned to a drug in the USP dictionary"),
  withdrawn_flag INT64 NOT NULL OPTIONS(description="Flag indicating whether the drug has been withdrawn in at least one country (not necessarily in the US)"),
  withdrawn_year INT64 OPTIONS(description="Year the drug was first withdrawn in any country"),
  withdrawn_country STRING OPTIONS(description="List of countries/regions where the drug has been withdrawn"),
  withdrawn_reason STRING OPTIONS(description="Reasons for withdrawl (e.g., safety)"),
  withdrawn_class STRING OPTIONS(description=" High level categories for the withdrawn reason (e.g., Cardiotoxicity, Hepatotoxicity)")
);

INSERT INTO `bigquery-public-data.ebi_chembl.molecule_dictionary_30` (molregno, pref_name, chembl_id, max_phase, therapeutic_flag, dosed_ingredient, structure_type, chebi_par_id, molecule_type, first_approval, oral, parenteral, topical, black_box_warning, natural_product, first_in_class, chirality, prodrug, inorganic_flag, usan_year, availability_type, usan_stem, polymer_flag, usan_substem, usan_stem_definition, indication_class, withdrawn_flag, withdrawn_year, withdrawn_country, withdrawn_reason, withdrawn_class) VALUES (675360, 'ONABOTULINUMTOXINA', 'CHEMBL1201574', 4, 1, 1, 'SEQ', NULL, 'Unknown', 1991, 0, 1, 0, 1, 0, 0, 1, 0, 0, 2009, 1, '-nab-', 0, '-nab-', 'cannabinol derivatives', NULL, 0, NULL, NULL, NULL, NULL), (675361, 'EPOETIN ALFA', 'CHEMBL1201565', 4, 1, 1, 'SEQ', NULL, 'Protein', 1989, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1990, 1, '-poetin', 0, '-poetin', 'erythropoietins', 'Hematinic; Anti-Anemic', 0, NULL, NULL, NULL, NULL), (675363, 'PEGFILGRASTIM', 'CHEMBL1201568', 4, 1, 1, 'SEQ', NULL, 'Protein', 2002, 0, 1, 0, 0, 0, 0, 1, 0, 0, 2000, 1, '-stim; peg-', 0, '-stim (-grastim); peg-', 'colony-stimulating factors: granulocyte colony-stimulating factors (G-CSF); PEGylated compounds', NULL, 0, NULL, NULL, NULL, NULL), (675366, 'INSULIN LISPRO', 'CHEMBL1201538', 4, 1, 1, 'SEQ', NULL, 'Protein', 1996, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1994, 1, NULL, 0, NULL, NULL, 'Antidiabetic', 0, NULL, NULL, NULL, NULL), (675367, 'DENILEUKIN DIFTITOX', 'CHEMBL1201550', 4, 1, 1, 'SEQ', NULL, 'Protein', 1999, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1997, 1, '-kin', 0, '-kin (-leukin)', 'interleukins: interleukin-2 analogues and derivatives', 'Antineoplastic; Biological Response Modifier', 0, NULL, NULL, NULL, NULL);