-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.GDC_sync_legacy_20190115`
(
  id STRING OPTIONS(description="File UUID"),
  file_name STRING OPTIONS(description="Name of file at the GDC"),
  md5 STRING OPTIONS(description="128-bit hash value expressed as a 32 digit hexadecimal number (in lower case) used as a file's digital fingerprint"),
  size INT64 OPTIONS(description="File size"),
  state STRING OPTIONS(description="File state -- either submitted or released"),
  project_id STRING OPTIONS(description="ID of the Project -- e.g. TCGA-BRCA, TARGET-AML, etc."),
  baseid STRING OPTIONS(description="UUID that all versions of the data (in other words, all GUIDs) point to"),
  version STRING OPTIONS(description="Data version"),
  release FLOAT64 OPTIONS(description="Associated GDC Release Number"),
  acl STRING OPTIONS(description="Access Control List -- if access is controlled, this field contains the dbGaP accession, eg phs000179"),
  type STRING OPTIONS(description="Description of the data, e.g. clinical_supplement, aligned_reads"),
  deletereason STRING OPTIONS(description="Reason for removal from the GDC"),
  url STRING OPTIONS(description="AWS file location")
)
OPTIONS(
  friendly_name="GDC SYNC LEGACY 20190115",
  description="Data was generated from file metadata information from a sync to the GDC legacy archive on January 2019.",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("reference_genome_0", "hg19"), ("status", "current"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.GDC_sync_legacy_20190115` (id, file_name, md5, size, state, project_id, baseid, version, release, acl, type, deletereason, url) VALUES ('a77e09db-666e-42f0-90b0-185f04ae2158', 'G28052.KMS-27.1.bam', '89337307b86c8173823f4ce61b3d1ee5', 9870017587, 'released', 'CCLE-MM', 'd484f6de-5b79-46fd-8854-8ccffdd94b05', 'None', nan, '[u''open'']', 'legacy', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/a77e09db-666e-42f0-90b0-185f04ae2158'), ('105e575c-17db-4bb2-b161-6eddfe92b4ef', 'C836.MOLP-2.1.bam', '9d89d9ce9dbe0a6b8df691354cede394', 9104196237, 'released', 'CCLE-MM', 'e362f761-2d3b-4f6f-9ca1-555a65544ddd', 'None', nan, '[u''open'']', 'legacy', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/105e575c-17db-4bb2-b161-6eddfe92b4ef'), ('2ee247ce-68dc-4100-a915-676529d48000', '04778047-db4d-4b8c-b77c-b910fa8c9e12_experiment.xml', '195f65f467a9a8faf8cb0c94d9d7a53c', 18495, 'released', 'CCLE-MM', '82742c91-547a-4e38-bd03-752c3f0984a1', 'None', nan, '[u''open'']', 'legacy', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/2ee247ce-68dc-4100-a915-676529d48000'), ('eb8f3467-823a-4d1c-9288-adcb2686b101', '8cea2b83-d0aa-423c-87c8-6771c5907edc_experiment.xml', '257ab000057c111fd96c8acb858fe8de', 15687, 'released', 'CCLE-MM', '4f084cb9-a75d-45af-bc89-b1a90d073f02', 'None', nan, '[u''open'']', 'legacy', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/eb8f3467-823a-4d1c-9288-adcb2686b101'), ('b52f8a6a-481c-4e38-ae96-ce2fcd231193', '09e71f96-7178-4090-808c-48c38db2f388_analysis.xml', '81e39f4d193428575568e2908a49b1a7', 188484, 'released', 'CCLE-MM', 'a54bc013-9f39-49d8-b9db-a8cbd515500a', 'None', nan, '[u''open'']', 'legacy', NULL, 's3://s3-external-1.amazonaws.com/gdcbackup/b52f8a6a-481c-4e38-ae96-ce2fcd231193');