-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.ebi_chembl.assays_30`
(
  assay_id INT64 NOT NULL OPTIONS(description="Unique ID for the assay"),
  doc_id INT64 NOT NULL OPTIONS(description="Foreign key to documents table"),
  description STRING OPTIONS(description="Description of the reported assay"),
  assay_type STRING OPTIONS(description=" Assay classification, e.g. B=Binding assay, A=ADME assay, F=Functional assay"),
  assay_test_type STRING OPTIONS(description="Type of assay system (i.e., in vivo or in vitro)"),
  assay_category STRING OPTIONS(description="screening, confirmatory (ie: dose-response), summary, panel or other."),
  assay_organism STRING OPTIONS(description=" Name of the organism for the assay system (e.g., the organism, tissue or cell line in which an assay was performed). May differ from the target organism (e.g., for a human protein expressed in non-human cells, or pathogen-infected human cells)."),
  assay_tax_id INT64 OPTIONS(description="NCBI tax ID for the assay organism."),
  assay_strain STRING OPTIONS(description=" Name of specific strain of the assay organism used (where known)"),
  assay_tissue STRING OPTIONS(description=" Name of tissue used in the assay system (e.g., for tissue-based assays) or from which the assay system was derived (e.g., for cell/subcellular fraction-based assays)."),
  assay_cell_type STRING OPTIONS(description=" Name of cell type or cell line used in the assay system (e.g., for cell-based assays)."),
  assay_subcellular_fraction STRING OPTIONS(description=" Name of subcellular fraction used in the assay system (e.g., microsomes, mitochondria)."),
  tid INT64 OPTIONS(description="Target identifier to which this assay has been mapped. Foreign key to target_dictionary. From ChEMBL_15 onwards, an assay will have only a single target assigned."),
  relationship_type STRING OPTIONS(description=" Flag indicating of the relationship between the reported target in the source document and the assigned target from TARGET_DICTIONARY. Foreign key to RELATIONSHIP_TYPE table."),
  confidence_score INT64 OPTIONS(description="Confidence score, indicating how accurately the assigned target(s) represents the actually assay target. Foreign key to CONFIDENCE_SCORE table. 0 means uncurated/unassigned, 1 = low confidence to 9 = high confidence."),
  curated_by STRING OPTIONS(description="Indicates the level of curation of the target assignment. Foreign key to curation_lookup table."),
  src_id INT64 NOT NULL OPTIONS(description="Foreign key to source table"),
  src_assay_id STRING OPTIONS(description="Identifier for the assay in the source database/deposition (e.g., pubchem AID)"),
  chembl_id STRING NOT NULL OPTIONS(description="ChEMBL identifier for this assay (for use on web interface etc)"),
  cell_id INT64 OPTIONS(description="Foreign key to cell dictionary. The cell type or cell line used in the assay"),
  bao_format STRING OPTIONS(description="ID for the corresponding format type in BioAssay Ontology (e.g., cell-based, biochemical, organism-based etc)"),
  tissue_id INT64 OPTIONS(description="ID for the corresponding tissue/anatomy in Uberon. Foreign key to tissue_dictionary"),
  variant_id INT64 OPTIONS(description="Foreign key to variant_sequences table. Indicates the mutant/variant version of the target used in the assay (where known/applicable)"),
  aidx STRING NOT NULL OPTIONS(description="The Depositor Defined Assay Identifier")
);

INSERT INTO `bigquery-public-data.ebi_chembl.assays_30` (assay_id, doc_id, description, assay_type, assay_test_type, assay_category, assay_organism, assay_tax_id, assay_strain, assay_tissue, assay_cell_type, assay_subcellular_fraction, tid, relationship_type, confidence_score, curated_by, src_id, src_assay_id, chembl_id, cell_id, bao_format, tissue_id, variant_id, aidx) VALUES (48340, 6596, 'Inhibitory activity against rat cathepsin K', 'B', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10496, 'H', 8, 'Autocuration', 1, NULL, 'CHEMBL663329', NULL, 'BAO_0000357', NULL, NULL, 'CLD0'), (48338, 17655, 'Inhibition of cysteine protease cathepsin K of rat', 'B', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10496, 'H', 8, 'Expert', 1, NULL, 'CHEMBL663327', NULL, 'BAO_0000357', NULL, NULL, 'CLD0'), (745959, 57590, 'Inhibition of IKK2 using 5-FAM-GRHDSGLDSMK-NH2 as substrate by TR-FRET assay', 'B', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10752, 'H', 8, 'Autocuration', 1, '370077', 'CHEMBL1775258', NULL, 'BAO_0000357', NULL, NULL, 'CLD0'), (758526, 58360, 'Inhibition of his-tagged IKK-beta after 2 hrs', 'B', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10752, 'H', 8, 'Autocuration', 1, '389566', 'CHEMBL1811604', NULL, 'BAO_0000357', NULL, NULL, 'CLD0'), (90507, 16507, 'Selectivity against I-kappa-B-kinase beta', 'B', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10752, 'H', 8, 'Expert', 1, NULL, 'CHEMBL702052', NULL, 'BAO_0000357', NULL, NULL, 'CLD0');