nl2sqlproj/spider2-nl2sql huggingface dataset:
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.open_targets_platform.drugWarnings`
(
  chemblIds STRUCT<list ARRAY<STRUCT<element STRING>>>,
  toxicityClass STRING,
  country STRING,
  description STRING,
  id INT64,
  references STRUCT<list ARRAY<STRUCT<element STRUCT<ref_id STRING, ref_type STRING, ref_url STRING>>>>,
  warningType STRING,
  year INT64,
  efo_term STRING,
  efo_id STRING,
  efo_id_for_warning_class STRING
);

INSERT INTO `bigquery-public-data.open_targets_platform.drugWarnings` (chemblIds, toxicityClass, country, description, id, references, warningType, year, efo_term, efo_id, efo_id_for_warning_class) VALUES ({'list': "[{'element': 'CHEMBL3039594'} {'element': 'CHEMBL3039597'}]"}, NULL, 'United States', NULL, 2817, {'list': '[]'}, 'Black Box Warning', NULL, NULL, NULL, NULL), ({'list': "[{'element': 'CHEMBL3989677'} {'element': 'CHEMBL1457'}]"}, NULL, 'United States', NULL, 2818, {'list': '[]'}, 'Black Box Warning', NULL, NULL, NULL, NULL), ({'list': "[{'element': 'CHEMBL2359966'} {'element': 'CHEMBL170'}]"}, NULL, 'United States', NULL, 2820, {'list': '[]'}, 'Black Box Warning', NULL, NULL, NULL, NULL), ({'list': "[{'element': 'CHEMBL5095051'} {'element': 'CHEMBL637'}]"}, NULL, 'United States', NULL, 2864, {'list': '[]'}, 'Black Box Warning', NULL, NULL, NULL, NULL), ({'list': "[{'element': 'CHEMBL1742992'}]"}, NULL, 'United States', NULL, 221, {'list': '[]'}, 'Black Box Warning', NULL, NULL, NULL, NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.open_targets_platform.associationByOverallIndirect`
(
  diseaseId STRING,
  targetId STRING,
  score FLOAT64,
  evidenceCount INT64
);

INSERT INTO `bigquery-public-data.open_targets_platform.associationByOverallIndirect` (diseaseId, targetId, score, evidenceCount) VALUES ('GO_0008150', 'ENSG00000118520', 0.10793506919084522, 256), ('EFO_0000508', 'ENSG00000170315', 0.5060716316551989, 256), ('EFO_0000558', 'ENSG00000010610', 0.09440708722288794, 256), ('EFO_0000618', 'ENSG00000100804', 0.4793730093443431, 256), ('EFO_0000651', 'ENSG00000145675', 0.5977679193722506, 256);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.open_targets_platform.targetPrioritisation`
(
  targetId STRING,
  isInMembrane INT64,
  isSecreted INT64,
  hasSafetyEvent INT64,
  hasPocket INT64,
  hasLigand INT64,
  hasSmallMoleculeBinder INT64,
  geneticConstraint FLOAT64,
  paralogMaxIdentityPercentage FLOAT64,
  mouseOrthologMaxIdentityPercentage FLOAT64,
  isCancerDriverGene INT64,
  hasTEP INT64,
  mouseKOScore FLOAT64,
  hasHighQualityChemicalProbes INT64,
  maxClinicalTrialPhase FLOAT64,
  tissueSpecificity FLOAT64,
  tissueDistribution FLOAT64
);

INSERT INTO `bigquery-public-data.open_targets_platform.targetPrioritisation` (targetId, isInMembrane, isSecreted, hasSafetyEvent, hasPocket, hasLigand, hasSmallMoleculeBinder, geneticConstraint, paralogMaxIdentityPercentage, mouseOrthologMaxIdentityPercentage, isCancerDriverGene, hasTEP, mouseKOScore, hasHighQualityChemicalProbes, maxClinicalTrialPhase, tissueSpecificity, tissueDistribution) VALUES ('ENSG00000234859', NULL, NULL, NULL, NULL, NULL, NULL, nan, nan, nan, NULL, NULL, nan, NULL, nan, nan, nan), ('ENSG00000293334', NULL, NULL, NULL, NULL, NULL, NULL, nan, nan, nan, NULL, NULL, nan, NULL, nan, nan, nan), ('ENSG00000200774', NULL, NULL, NULL, NULL, NULL, NULL, nan, -0.5909099999999998, nan, NULL, NULL, nan, NULL, nan, nan, nan), ('ENSG00000233593', NULL, NULL, NULL, NULL, NULL, NULL, nan, nan, nan, NULL, NULL, nan, NULL, nan, nan, nan), ('ENSG00000235408', NULL, NULL, NULL, NULL, NULL, NULL, nan, nan, nan, NULL, NULL, nan, NULL, nan, nan, nan);
-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.PDC_metadata.case_metadata_current`
(
  case_id STRING OPTIONS(description="Unique identifier associated with a specific patient (e.g. 24cb0fcb-63d6-11e8-bcf1-0a2705229b82)"),
  case_submitter_id STRING OPTIONS(description="Unique identifier deriving from the data submitter that is associated with a specific patient (e.g. 05BR016)"),
  primary_site STRING OPTIONS(description="The text term used to describe the general location of the malignant disease, as categorized by the World Health Organization's (WHO) International Classification of Diseases for Oncology (ICD-O)"),
  disease_type STRING OPTIONS(description="The text term used to describe the type of malignant disease, as categorized by the World Health Organization's (WHO) International Classification of Diseases for Oncology (ICD-O)"),
  project_name STRING OPTIONS(description="Project name (e.g. CPTAC-2)"),
  program_name STRING OPTIONS(description="Name of the data's source program"),
  project_id STRING OPTIONS(description="PDC project UUID (e.g. edb4ca56-f1e8-11e9-9a07-0a80fada099c)"),
  file_count INT64 OPTIONS(description="Number of files associated with a certain case_id")
)
OPTIONS(
  friendly_name="PDC CASE METADATA",
  description="Case data was extracted from file metadata information provided by CDA in August 2024 from the PDC release V4.3.",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source_0", "cda"), ("source_1", "pdc"), ("category", "metadata"), ("status", "current"), ("version", "v4_3")]
);

INSERT INTO `isb-cgc-bq.PDC_metadata.case_metadata_current` (case_id, case_submitter_id, primary_site, disease_type, project_name, program_name, project_id, file_count) VALUES ('48a488d1-88bf-4eb4-809f-eba13c7b3537', 'C224967', NULL, 'Complex Epithelial Neoplasms', 'CPTAC3 Discovery and Confirmatory', 'Clinical Proteomic Tumor Analysis Consortium', '267d6671-0e78-11e9-a064-0a9c39d33490', 168), ('6ca38436-0581-4f2c-b2b3-5bded49d35c8', 'C283515', 'Brain', 'Meningiomas', 'CPTAC3 Discovery and Confirmatory', 'Clinical Proteomic Tumor Analysis Consortium', '267d6671-0e78-11e9-a064-0a9c39d33490', 172), ('1ac99f68-ba13-4ab7-bc0e-53556cfdba1d', 'C524103', 'Other and unspecified urinary organs', 'Skin Cutaneous Melanoma', 'CPTAC3 Discovery and Confirmatory', 'Clinical Proteomic Tumor Analysis Consortium', '267d6671-0e78-11e9-a064-0a9c39d33490', 168), ('9ff8dc1d-111a-43a0-9264-abb3adf5d1f3', 'C223491', 'Uterus, NOS', 'Uterine Adenocarcinoma', 'CPTAC3 Discovery and Confirmatory', 'Clinical Proteomic Tumor Analysis Consortium', '267d6671-0e78-11e9-a064-0a9c39d33490', 168), ('2c4089f4-44ae-40b9-9ede-405a88cc5c51', 'C621273', 'Colon', 'Epithelial Neoplasms, NOS', 'CPTAC3 Discovery and Confirmatory', 'Clinical Proteomic Tumor Analysis Consortium', '267d6671-0e78-11e9-a064-0a9c39d33490', 168);
-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.PDC_metadata.file_associated_entity_mapping_current`
(
  file_id STRING OPTIONS(description="An identifier (UUID) to uniquely identify the file in PDC (e.g. 795dd383-5efd-484b-9c2f-f061ae617fc7)"),
  case_id STRING OPTIONS(description="Unique identifier associated with a specific patient (e.g. 24cb0fcb-63d6-11e8-bcf1-0a2705229b82)"),
  entity_id STRING OPTIONS(description="An identifier (UUID) to uniquely identify the entity in PDC  (e.g. 2a6b4244-6428-11e8-bcf1-0a2705229b82, which refers to an aliquot)"),
  entity_submitter_id STRING OPTIONS(description="Unique identifier deriving from the data submitter that is associated with a specific entity (e.g. TCGA-61-1911-01A-32-2224-29)"),
  entity_type STRING OPTIONS(description="Associated entity type (e.g. aliquot or case)")
)
OPTIONS(
  friendly_name="FILE METADATA ASSOCIATED ENTITIES FOR PDC",
  description="Data for entity associations was extracted from file metadata information provided by CDA in August 2024 from the PDC release V4.3.",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source_0", "cda"), ("source_1", "pdc"), ("category", "metadata"), ("status", "current"), ("version", "v4_3")]
);

INSERT INTO `isb-cgc-bq.PDC_metadata.file_associated_entity_mapping_current` (file_id, case_id, entity_id, entity_submitter_id, entity_type) VALUES ('ef9f2ec8-8de6-453a-9848-4f8ac587644f', '0067a0e0-63d8-11e8-bcf1-0a2705229b82', '2a6b4244-6428-11e8-bcf1-0a2705229b82', 'TCGA-61-1911-01A-32-2224-29', 'aliquot'), ('26a67215-9cf0-46cb-aef8-1938df733d2b', '0067a0e0-63d8-11e8-bcf1-0a2705229b82', '2a6b4244-6428-11e8-bcf1-0a2705229b82', 'TCGA-61-1911-01A-32-2224-29', 'aliquot'), ('b8cb61c9-68bb-4fc0-9e70-3e39ea3e2976', '0067a0e0-63d8-11e8-bcf1-0a2705229b82', '2a6b4244-6428-11e8-bcf1-0a2705229b82', 'TCGA-61-1911-01A-32-2224-29', 'aliquot'), ('e32baef6-7002-47db-a43d-cb74e752ee4f', '0067a0e0-63d8-11e8-bcf1-0a2705229b82', '2a6b4244-6428-11e8-bcf1-0a2705229b82', 'TCGA-61-1911-01A-32-2224-29', 'aliquot'), ('7535654e-5a22-420a-9fdf-93fb44f7c421', '0067a0e0-63d8-11e8-bcf1-0a2705229b82', '2a6b4244-6428-11e8-bcf1-0a2705229b82', 'TCGA-61-1911-01A-32-2224-29', 'aliquot');
-- DBMS: bigquery
CREATE TABLE `isb-cgc-bq.PDC_metadata.refseq_mapping_current`
(
  uniprot_id STRING OPTIONS(description="Unique identifier assigned to a sequence by UniProt, often containing biologically relevant information"),
  uniprot_review_status STRING OPTIONS(description="'unreviewed' records contain protein sequences associated with computationally generated annotation and large-scale functional characterization; 'reviewed' records are high quality, manually annotated and non-redundant"),
  gene_symbol STRING OPTIONS(description="Gene symbol, sourced by PDC from NCBI"),
  refseq_id STRING OPTIONS(description="Unique identifier given to a sequence in the NCBI RefSeq database")
)
OPTIONS(
  friendly_name="REFSEQ UNIPROT MAPPING",
  description="Data was extracted from UniProtKB REST API version 2023_03, downloaded from https://www.uniprot.org/uniprot/ in August 2023 ",
  labels=[("access", "open"), ("data_type", "proteome_annotation"), ("source", "uniprot"), ("category", "reference_database"), ("status", "current"), ("version", "2023_03")]
);

INSERT INTO `isb-cgc-bq.PDC_metadata.refseq_mapping_current` (uniprot_id, uniprot_review_status, gene_symbol, refseq_id) VALUES ('A0JNW5-1', 'reviewed', 'BLTP3B', 'NP_055869.1'), ('A0JNW5-2', 'reviewed', 'BLTP3B', 'NP_001006948.1'), ('A0JP26-1', 'reviewed', 'POTEB3', 'XP_011542097.1'), ('A0JP26-1', 'reviewed', 'POTEB3', 'NP_997238.2'), ('A1A519-2', 'reviewed', 'FAM170A', 'NP_877438.2');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.ncaa_basketball.mbb_historical_teams_seasons`
(
  season INT64 OPTIONS(description="Season the game was played in"),
  market STRING OPTIONS(description="Team school name (using Sportradar names)"),
  name STRING OPTIONS(description="Team name"),
  team_code INT64 OPTIONS(description="School code (see http://stats.ncaa.org/game_upload/team_codes)"),
  team_id STRING OPTIONS(description="Sportradar team ID"),
  alias STRING OPTIONS(description="Team alias"),
  division INT64 OPTIONS(description="The division the team played in at this time of this season"),
  current_division STRING OPTIONS(description="The division the team currently plays in"),
  wins INT64 OPTIONS(description="Number of wins in this season"),
  losses INT64 OPTIONS(description="Number of losses in this season"),
  ties INT64 OPTIONS(description="Number of ties in this season")
)
OPTIONS(
  description="Season record information for Men's Basketball, starting with the 1894-95 season. Each game is included twice, with one entry per team. \n\nData provided by the NCAA."
);

INSERT INTO `bigquery-public-data.ncaa_basketball.mbb_historical_teams_seasons` (season, market, name, team_code, team_id, alias, division, current_division, wins, losses, ties) VALUES (1956, NULL, NULL, 296, NULL, NULL, 1, NULL, 0, 0, 0), (1903, NULL, NULL, 137, NULL, NULL, 1, NULL, 7, 0, 0), (1908, NULL, NULL, 137, NULL, NULL, 1, NULL, 12, 0, 0), (2006, NULL, NULL, 28593, NULL, NULL, 1, NULL, 0, 0, 0), (1908, NULL, NULL, 479, NULL, NULL, 1, NULL, 13, 0, 0);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.ncaa_basketball.mbb_historical_teams_games`
(
  season INT64 OPTIONS(description="[Game data] Season the game was played in"),
  scheduled_date STRING OPTIONS(description="[Game data] Date the game was played"),
  attendance FLOAT64 OPTIONS(description="[Game data] Attendance of the game"),
  market STRING OPTIONS(description="[Team data] Team school name (using Sportradar names)"),
  name STRING OPTIONS(description="[Team data] Team name"),
  team_code STRING OPTIONS(description="[Team data] School code (see http://stats.ncaa.org/game_upload/team_codes)"),
  team_id STRING OPTIONS(description="[Team data] Sportradar team ID"),
  alias STRING OPTIONS(description="[Team data] Team alias"),
  current_division STRING OPTIONS(description="[Team data] The division the team currently plays in"),
  points_game INT64 OPTIONS(description="[Game data] Points scored by team"),
  win BOOL OPTIONS(description="[Game data] Whether the team won the game"),
  opp_market STRING OPTIONS(description="[Opponent data] Opponent school name (using Sportradar names)"),
  opp_name STRING OPTIONS(description="[Opponent data] Opponent name"),
  opp_code INT64 OPTIONS(description="[Opponent data] Opponent school code (see http://stats.ncaa.org/game_upload/team_codes)"),
  opp_id STRING OPTIONS(description="[Opponent data] Opponent school ID (using Sportradar IDs)"),
  opp_alias STRING OPTIONS(description="[Opponent data] Opponent alias"),
  opp_current_division STRING OPTIONS(description="[Opponent data] The division the opponent currently plays in"),
  opp_points_game INT64 OPTIONS(description="[Opponent data] Points scored by opponent")
)
OPTIONS(
  description="Final scores for men's basketball games, starting with the 1996-97 season. Each game is included twice, with one entry per team. \n\nData provided by the NCAA."
);

INSERT INTO `bigquery-public-data.ncaa_basketball.mbb_historical_teams_games` (season, scheduled_date, attendance, market, name, team_code, team_id, alias, current_division, points_game, win, opp_market, opp_name, opp_code, opp_id, opp_alias, opp_current_division, opp_points_game) VALUES (1996, NULL, nan, NULL, NULL, '121', NULL, NULL, NULL, 85, False, NULL, NULL, 506107, NULL, NULL, NULL, 98), (1996, NULL, nan, NULL, NULL, '200', NULL, NULL, NULL, 72, False, NULL, NULL, 770, NULL, NULL, NULL, 78), (1996, NULL, nan, NULL, NULL, '511', NULL, NULL, NULL, 78, False, NULL, NULL, 50, NULL, NULL, NULL, 86), (1996, NULL, nan, NULL, NULL, '570', NULL, NULL, NULL, 64, False, NULL, NULL, 78, NULL, NULL, NULL, 77), (1996, NULL, nan, NULL, NULL, '267', NULL, NULL, NULL, 77, False, NULL, NULL, 717, NULL, NULL, NULL, 80);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.ncaa_basketball.team_colors`
(
  market STRING,
  id STRING,
  code_ncaa INT64,
  color STRING
)
OPTIONS(
  description="Hex color codes for the 351 current men's D1 basketball teams."
);

INSERT INTO `bigquery-public-data.ncaa_basketball.team_colors` (market, id, code_ncaa, color) VALUES ('Milwaukee', '5d77800f-1ae6-4b66-8e97-b0dbb8bbc717', 797, '#000000'), ('Colorado', '9fccbf28-2858-4263-821c-fdefb3c7efa3', 157, '#000000'), ('Northeastern', '93df9b18-e9fc-42a7-bb45-a736c203b4dc', 500, '#000000'), ('Georgia Southern', '6b955b96-b736-475e-bffd-e4acf2054169', 253, '#000066'), ('Richmond', '9b66e1e0-aace-4671-9be2-54c8acf5ecfc', 575, '#000066');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.ncaa_basketball.mascots`
(
  id STRING OPTIONS(description="University unique ID from Sportradar"),
  market STRING OPTIONS(description="The university to which the mascot belongs"),
  name STRING OPTIONS(description="The name of the university’s team"),
  mascot STRING OPTIONS(description="The name of the university's mascot"),
  mascot_name STRING OPTIONS(description="The proper name of the university's mascot, if available (e.g. a character)"),
  mascot_common_name STRING OPTIONS(description="The type of being or creature that the mascot embodies"),
  tax_subspecies STRING OPTIONS(description="The subspecies to which the mascot belongs"),
  tax_species STRING OPTIONS(description="The species to which the mascot belongs"),
  tax_genus STRING OPTIONS(description="The genus to which the mascot belongs"),
  tax_family STRING OPTIONS(description="The family to which the mascot belongs"),
  tax_order STRING OPTIONS(description="The order to which the mascot belongs"),
  tax_class STRING OPTIONS(description="The class to which the mascot belongs"),
  tax_phylum STRING OPTIONS(description="The phylum to which the mascot belongs"),
  tax_kingdom STRING OPTIONS(description="The kingdom to which the mascot belongs"),
  tax_domain STRING OPTIONS(description="The domain to which the mascot belongs"),
  non_tax_type STRING OPTIONS(description="The non-Linnean type of being or creature to which the mascot belongs, if applicable")
);

INSERT INTO `bigquery-public-data.ncaa_basketball.mascots` (id, market, name, mascot, mascot_name, mascot_common_name, tax_subspecies, tax_species, tax_genus, tax_family, tax_order, tax_class, tax_phylum, tax_kingdom, tax_domain, non_tax_type) VALUES ('2959bd24-7007-41ae-a3a3-abdf26888cfc', 'Tulsa', 'Golden Hurricane', 'Hurricane', 'Captain Cane', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Weather'), ('ad4bc983-8d2e-4e6f-a8f9-80840a786c64', 'Arizona State', 'Sun Devils', 'Devil', 'Sparky', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Devils'), ('f2d01b77-0f5d-4574-9e49-2a3eaf822e44', 'Drexel', 'Dragons', 'Dragon', 'Mario the Magnificent', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Dragons'), ('b47d10b8-a2a5-47df-a2f9-7bd0b9d51beb', 'Bradley', 'Braves', 'Gargoyle', 'Kaboom!', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('0113eea0-c943-4fff-9780-ae0fb099e7ef', 'Canisius', 'Golden Griffins', 'Griffin', 'Petey', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Griffins');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.usa_names.usa_1910_current`
(
  state STRING OPTIONS(description="2-digit state code"),
  gender STRING OPTIONS(description="Sex (M=male or F=female)"),
  year INT64 OPTIONS(description="4-digit year of birth"),
  name STRING OPTIONS(description="Given name of a person at birth"),
  number INT64 OPTIONS(description="Number of occurrences of the name")
)
OPTIONS(
  description="The table contains the number of applicants for a Social Security card by year of birth and sex. The number of such applicants is restricted to U.S. births where the year of birth, sex, State of birth (50 States and District of Columbia) are known, and where the given name is at least 2 characters long.\n\nsource: http://www.ssa.gov/OACT/babynames/limits.html"
);

INSERT INTO `bigquery-public-data.usa_names.usa_1910_current` (state, gender, year, name, number) VALUES ('AK', 'F', 1910, 'Mary', 14), ('AK', 'F', 1910, 'Annie', 12), ('AK', 'F', 1910, 'Anna', 10), ('AK', 'F', 1910, 'Margaret', 8), ('AK', 'F', 1910, 'Helen', 7);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.usa_names.usa_1910_2013`
(
  state STRING OPTIONS(description="2-digit state code"),
  gender STRING OPTIONS(description="Sex (M=male or F=female)"),
  year INT64 OPTIONS(description="4-digit year of birth"),
  name STRING OPTIONS(description="Given name of a person at birth"),
  number INT64 OPTIONS(description="Number of occurrences of the name")
)
OPTIONS(
  description="The table contains the number of applicants for a Social Security card by year of birth and sex. The number of such applicants is restricted to U.S. births where the year of birth, sex, State of birth (50 States and District of Columbia) are known, and where the given name is at least 2 characters long.\n\nsource: http://www.ssa.gov/OACT/babynames/limits.html"
);

INSERT INTO `bigquery-public-data.usa_names.usa_1910_2013` (state, gender, year, name, number) VALUES ('AL', 'F', 1910, 'Vera', 71), ('AR', 'F', 1910, 'Viola', 37), ('AR', 'F', 1910, 'Alice', 57), ('AR', 'F', 1910, 'Edna', 95), ('AR', 'F', 1910, 'Ollie', 40);
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel24_caseData`
(
  case_gdc_id STRING OPTIONS(description="GDC unique identifier"),
  project_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000187"),
  project_disease_type STRING OPTIONS(description="The type of disease studied by the project; e.g. Sarcoma,  Breast Invasive Carcinoma,Acute Lymphoblastic Leukemia, etc"),
  project_name STRING OPTIONS(description="Project Name; frequently the same as or similar to the project disease type eg   Acute Lymphoblastic Leukemia - Phase II   or   Breast Invasive Carcinoma   etc"),
  program_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000178"),
  program_name STRING OPTIONS(description="Program name, eg TCGA or TARGET"),
  project_id STRING OPTIONS(description="ID of the Project -- e.g. TCGA-BRCA, TARGET-AML, etc"),
  case_barcode STRING OPTIONS(description="Submitter identifier, eg HCC1954, TCGA-ZX-AA5X, etc"),
  legacy_file_count INT64 OPTIONS(description="Total number of files for this case in the GDC legacy archive"),
  active_file_count INT64 OPTIONS(description="Total number of files for this case in the active (default) GDC archive")
)
OPTIONS(
  friendly_name="CASE DATA REL24",
  description="Data was generated from file metadata information from the GDC release 24, downloaded May, 2020. \nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-240\nThis table has been deprecated, please see isb-cgc-bq.GDC_case_file_metadata.caseData_current for the most current table.",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "deprecated"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel24_caseData` (case_gdc_id, project_dbgap_accession_number, project_disease_type, project_name, program_dbgap_accession_number, program_name, project_id, case_barcode, legacy_file_count, active_file_count) VALUES ('7f36eff2-aa69-4c4d-8101-8801c812a36b', NULL, 'Cystic, Mucinous and Serous Neoplasms;Not Reported', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-13-0914', 9, 20), ('78821fb5-0669-42c7-b62b-b61d6b7d7ac6', NULL, 'Cystic, Mucinous and Serous Neoplasms;Not Reported', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-13-0922', 9, 20), ('f88560c8-3475-47f2-9d48-4b8311bc1132', NULL, 'Cystic, Mucinous and Serous Neoplasms;Not Reported', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-01-0628', 41, 21), ('dc9b4616-e815-43c8-9ec4-720a32868541', NULL, 'Cystic, Mucinous and Serous Neoplasms;Not Reported', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-01-0630', 41, 21), ('3a7b22b5-0847-46df-92bf-cacc3f11deef', NULL, 'Cystic, Mucinous and Serous Neoplasms;Not Reported', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-01-0631', 41, 21);
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel19_caseData`
(
  case_gdc_id STRING OPTIONS(description="GDC unique identifier"),
  project_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000187"),
  project_disease_type STRING OPTIONS(description="The type of disease studied by the project; e.g. Sarcoma,  Breast Invasive Carcinoma,Acute Lymphoblastic Leukemia, etc"),
  project_name STRING OPTIONS(description="Project Name; frequently the same as or similar to the project disease type eg   Acute Lymphoblastic Leukemia - Phase II   or   Breast Invasive Carcinoma   etc"),
  program_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000178"),
  program_name STRING OPTIONS(description="Program name, eg TCGA or TARGET"),
  project_id STRING OPTIONS(description="ID of the Project -- e.g. TCGA-BRCA, TARGET-AML, etc"),
  case_barcode STRING OPTIONS(description="Submitter identifier, eg HCC1954, TCGA-ZX-AA5X, etc"),
  legacy_file_count INT64 OPTIONS(description="Total number of files for this case in the GDC legacy archive"),
  active_file_count INT64 OPTIONS(description="Total number of files for this case in the active (default) GDC archive")
)
OPTIONS(
  friendly_name="CASE DATA REL19",
  description="Data was generated from file metadata information from the GDC release 19, downloaded October 16, 2019. \nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-190",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "archived"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel19_caseData` (case_gdc_id, project_dbgap_accession_number, project_disease_type, project_name, program_dbgap_accession_number, program_name, project_id, case_barcode, legacy_file_count, active_file_count) VALUES ('942851b0-b554-48f4-84f6-6826902e12d7', 'CCLE', 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'CCLE', 'CCLE', 'CCLE-DLBC', 'DB', 1, 0), ('aaa8da09-070c-4a31-a99e-720f1a0a964f', 'CCLE', 'Cervical Squamous Cell Carcinoma and Endocervical Adenocarcinoma', 'Cervical Squamous Cell Carcinoma and Endocervical Adenocarcinoma', 'CCLE', 'CCLE', 'CCLE-CESC', 'EN', 1, 0), ('ae4dd9c2-ddba-4da5-a372-4cfdeed0859e', 'CCLE', 'Brain Lower Grade Glioma', 'Brain Lower Grade Glioma', 'CCLE', 'CCLE', 'CCLE-LGG', 'H4', 1, 0), ('6153a459-2c19-41c9-8815-aa9f6e72712e', 'CCLE', 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'CCLE', 'CCLE', 'CCLE-DLBC', 'HH', 1, 0), ('7f1968dd-cabb-4fc0-9ae7-76f80f41baa5', 'CCLE', 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'CCLE', 'CCLE', 'CCLE-DLBC', 'HT', 2, 0);
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel14_GDCfileID_to_GCSurl`
(
  file_gdc_id STRING OPTIONS(description="Unique GDC identifier for this file (corresponds to the file_barcode)  --  this can be used to access more information from the GDC data portal like this: https://portal.gdc.cancer.gov/files/c21b332c-06c6-4403-9032-f91c8f407ba2"),
  file_gcs_url STRING OPTIONS(description="Google Cloud Storage (GCS) location ID. Example: gs://gdc-TCGA-phs000178-open/9c4b1b5c-b5cf-48f6-bf41-047ceb8c883c/TCGA-CR-7365-01A-01-TS1.811bb2b7-66e3-4694-891b-10b436ec300d.svs")
)
OPTIONS(
  friendly_name="GDC FILE ID TO GCS URLS REL14",
  description="Data was generated from file metadata information from the GDC archive release 14, December 2018. Deprecated google cloud storage paths are mapped to file gdc ids. \nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-140",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "archived"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel14_GDCfileID_to_GCSurl` (file_gdc_id, file_gcs_url) VALUES ('1de340f3-9e88-4402-8633-a1d4c7b4a28f', 'gs://isb-tcga-phs000178-open/gdc/1de340f3-9e88-4402-8633-a1d4c7b4a28f/TCGA-CF-A3MI-01A-11R-A20E-13.mirna.quantification.txt'), ('796526e7-6040-4497-afde-4ce936da71d6', 'gs://5aa919de-0aa0-43ec-9ec3-288481102b6d/tcga/COAD/DNA/VALIDATION/BCM/ION_TORRENT/TCGA-F4-6809-01A-11D-1835-10_IonTorrent_validation.bam'), ('416ea829-d283-421b-9872-3628f71c7b10', 'gs://7008814a-277f-4fd4-aa61-flattened/416ea829-d283-421b-9872-3628f71c7b10/C494.TCGA-HT-7483-10A-01D-2024-08.1_gdc_realn.bam'), ('60c5886d-8867-4c38-b730-f2fcd455ceac', 'gs://isb-tcga-phs000178-open/gdc/60c5886d-8867-4c38-b730-f2fcd455ceac/TCGA-2G-AAF6.5892E026-307B-4A38-972F-92DF6ACF0A90.pdf'), ('4b26cd07-8a50-492d-a0de-04ad547fbea6', 'gs://7008814a-277f-4fd4-aa61-flattened/4b26cd07-8a50-492d-a0de-04ad547fbea6/AMAZE_p_TCGASNP_b86_87_88_N_GenomeWideSNP_6_E05_735414.birdseed.data.txt');
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel23_caseData`
(
  case_gdc_id STRING OPTIONS(description="GDC unique identifier"),
  project_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000187"),
  project_disease_type STRING OPTIONS(description="The type of disease studied by the project; e.g. Sarcoma,  Breast Invasive Carcinoma,Acute Lymphoblastic Leukemia, etc"),
  project_name STRING OPTIONS(description="Project Name; frequently the same as or similar to the project disease type eg   Acute Lymphoblastic Leukemia - Phase II   or   Breast Invasive Carcinoma   etc"),
  program_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000178"),
  program_name STRING OPTIONS(description="Program name, eg TCGA or TARGET"),
  project_id STRING OPTIONS(description="ID of the Project -- e.g. TCGA-BRCA, TARGET-AML, etc"),
  case_barcode STRING OPTIONS(description="Submitter identifier, eg HCC1954, TCGA-ZX-AA5X, etc"),
  legacy_file_count INT64 OPTIONS(description="Total number of files for this case in the GDC legacy archive"),
  active_file_count INT64 OPTIONS(description="Total number of files for this case in the active (default) GDC archive")
)
OPTIONS(
  friendly_name="CASE DATA REL23",
  description="Data was generated from file metadata information from the GDC release 23, downloaded April 2020. \nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-230\nThis table has been deprecated, please see isb-cgc-bq.GDC_case_file_metadata.caseData_current for the most current table.",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "deprecated"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel23_caseData` (case_gdc_id, project_dbgap_accession_number, project_disease_type, project_name, program_dbgap_accession_number, program_name, project_id, case_barcode, legacy_file_count, active_file_count) VALUES ('7f36eff2-aa69-4c4d-8101-8801c812a36b', NULL, 'Cystic, Mucinous and Serous Neoplasms;Not Reported', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-13-0914', 9, 20), ('78821fb5-0669-42c7-b62b-b61d6b7d7ac6', NULL, 'Cystic, Mucinous and Serous Neoplasms;Not Reported', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-13-0922', 9, 20), ('f88560c8-3475-47f2-9d48-4b8311bc1132', NULL, 'Cystic, Mucinous and Serous Neoplasms;Not Reported', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-01-0628', 41, 21), ('dc9b4616-e815-43c8-9ec4-720a32868541', NULL, 'Cystic, Mucinous and Serous Neoplasms;Not Reported', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-01-0630', 41, 21), ('3a7b22b5-0847-46df-92bf-cacc3f11deef', NULL, 'Cystic, Mucinous and Serous Neoplasms;Not Reported', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-01-0631', 41, 21);
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel22_GDCfileID_to_GCSurl`
(
  file_gdc_id STRING OPTIONS(description="Unique GDC identifier for this file (corresponds to the file_barcode)  --  this can be used to access more information from the GDC data portal like this: https://portal.gdc.cancer.gov/files/c21b332c-06c6-4403-9032-f91c8f407ba1"),
  file_gdc_url STRING OPTIONS(description="GDC file location")
)
OPTIONS(
  friendly_name="GDC FILE ID TO GCS URLS REL22",
  description="Data was generated from file metadata information from the GDC release 22, January 2020. Current google cloud storage paths are mapped to file gdc ids.\nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-220\nThis table has been deprecated, please see isb-cgc-bq.GDC_case_file_metadata.GDCfileID_to_GCSurl_current for the most current table.",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "deprecated"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel22_GDCfileID_to_GCSurl` (file_gdc_id, file_gdc_url) VALUES ('2ffa8ec8-a970-4409-990c-1a776635d336', 'gs://gdc-tcga-phs000178-controlled/HNSC/DNA/WXS/BI/ILLUMINA/C495.TCGA-CR-7374-10A-01D-2013-08.1.bam'), ('d9085caa-9408-490f-b285-93f4a21934ab', 'gs://gdc-tcga-phs000178-controlled/THCA/DNA/WXS/BI/ILLUMINA/C499.TCGA-EM-A2CP-10A-01D-A17V-08.1.bam'), ('a56dc190-aa5e-4dc7-a414-86d80426a536', 'gs://gdc-tcga-phs000178-open/a56dc190-aa5e-4dc7-a414-86d80426a536/unc.edu.f8ead0c8-9072-4a1d-9e07-f724a0d74a0f.1518741.rsem.genes.normalized_results'), ('36e4e632-4bff-4810-8176-0605a4d309ad', 'gs://gdc-tcga-phs000178-open/36e4e632-4bff-4810-8176-0605a4d309ad/ddf7e2ff-2f8e-472a-b5e3-992a3226bdd6_analysis.xml'), ('809adbd6-28e3-4874-940c-8d5dbb3a452c', 'gs://gdc-tcga-phs000178-open/809adbd6-28e3-4874-940c-8d5dbb3a452c/4eb2d160-57ed-497d-8bb8-0dc2d1ae0423_analysis.xml');
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.DLBC_affected_files`
(
  file_name STRING OPTIONS(description="Name of file at the GDC"),
  case_submitter_id STRING OPTIONS(description="Associated TCGA case barcode"),
  file_id STRING OPTIONS(description="GDC file identifier. This is a duplicate of file_gdc_id field found in some tables. ")
)
OPTIONS(
  friendly_name="GDC DLBC FILE METADATA",
  description="Data was generated from file metadata of genomic data from the publication (Genetics and Pathogenesis of Diffuse Large B Cell Lymphoma; New England Journal of Medicine. Volume 378 p1396-1407, 12 April 2018 10.1056/NEJMoa1801445) processed through the GDC harmonization pipeline and will be made available through the GDC. https://docs.gdc.cancer.gov/Data/Release_Notes/DLBC_Affected_Files.txt",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("reference_genome_0", "hg19"), ("status", "current"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.DLBC_affected_files` (file_name, case_submitter_id, file_id) VALUES ('63f91042-d138-411a-a7a4-5fd23e0fdd29.vcf.gz', 'TCGA-FF-8062', '63f91042-d138-411a-a7a4-5fd23e0fdd29'), ('fc5ffbd4-bd87-4400-9b7d-289c85104062.vcf', 'TCGA-FF-8062', 'fc5ffbd4-bd87-4400-9b7d-289c85104062'), ('f9d7590c-d02f-4d12-a682-199db214ebf4.vep.reheader.vcf.gz', 'TCGA-FF-8062', 'f9d7590c-d02f-4d12-a682-199db214ebf4'), ('d5abe4f7-5e1a-4913-b532-e9bcedd6b7df.vep.reheader.vcf.gz', 'TCGA-FF-8062', 'd5abe4f7-5e1a-4913-b532-e9bcedd6b7df'), ('f42d0cc9-3fd6-474c-921a-ba2b997b6eee.vep.reheader.vcf.gz', 'TCGA-FF-8062', 'f42d0cc9-3fd6-474c-921a-ba2b997b6eee');
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel14_caseData`
(
  case_gdc_id STRING OPTIONS(description="GDC unique identifier"),
  project_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000178"),
  project_disease_type STRING OPTIONS(description="The type of disease studied by the project; eg. Sarcoma,  Breast Invasive Carcinoma,Acute Lymphoblastic Leukemia, etc"),
  project_name STRING OPTIONS(description="Project Name; frequently the same as or similar to the project disease type eg   Acute Lymphoblastic Leukemia - Phase II   or   Breast Invasive Carcinoma   etc"),
  program_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000178"),
  program_name STRING OPTIONS(description="Program name, eg TCGA or TARGET"),
  project_id STRING OPTIONS(description="ID of the Project -- e.g. TCGA-BRCA, TARGET-AML, etc."),
  case_barcode STRING OPTIONS(description="Submitter identifier, eg HCC1954, TCGA-ZX-AA5X, etc"),
  legacy_file_count INT64 OPTIONS(description="Total number of files for this case in the GDC legacy archive"),
  current_file_count INT64 OPTIONS(description="Total number of files for this case in the default/current GDC archive")
)
OPTIONS(
  friendly_name="CASE DATA REL14",
  description="Data was generated from file metadata information from the GDC release 14, December 2018. \nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-140",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "archived"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel14_caseData` (case_gdc_id, project_dbgap_accession_number, project_disease_type, project_name, program_dbgap_accession_number, program_name, project_id, case_barcode, legacy_file_count, current_file_count) VALUES ('8e20b23c-1e5c-4edc-8263-ec3ec3abf482', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD1', 0, 5), ('35818db5-87e9-4c42-9d4c-902bbfaa09ea', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD2', 0, 5), ('59b7703e-5bd6-4a2f-b4a6-be80ad6871e9', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD3', 0, 5), ('066801c5-7723-473e-af4e-3e227d1a680c', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD4', 0, 5), ('e2cf827c-f437-4759-8651-9317dd291fa5', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD5', 0, 5);
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.PanCanAtlas_manifest`
(
  file_name STRING OPTIONS(description="Name of file at the GDC"),
  gdc_id STRING OPTIONS(description="GDC file identifier"),
  PCA_project_id STRING OPTIONS(description="One of 16 PanCancer Atlas projects, eg PANCAN-SQUAMOUS, MC3, PANCAN-DRIVER, etc")
)
OPTIONS(
  friendly_name="PANCANATLAS MANIFEST",
  description="Data was generated from file metadata information for the PanCanAtlas publications. https://gdc.cancer.gov/about-data/publications/pancanatlas",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "current"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.PanCanAtlas_manifest` (file_name, gdc_id, PCA_project_id) VALUES ('strandBias.filter_v2.txt.gz', '111c4fee-3e91-495d-8b5e-036c1639bdc8', 'MC3'), ('GBM.tar.gz', '883e1558-8145-4f5a-a828-877afa4a66b3', 'MC3'), ('THCA.tar.gz', 'b72f6f76-ca99-4c0b-88c8-10af6aadd824', 'MC3'), ('OV.tar.gz', '495bb9c0-9bf7-40a7-9099-4c87857d3096', 'MC3'), ('LUSC.tar.gz', 'd0a83f83-253e-4f2e-b3b4-a9fe6abe670d', 'MC3');
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel13_caseData`
(
  file_id STRING OPTIONS(description="GDC file identifier. This is a duplicate of file_gdc_id field found in some tables. "),
  project__dbgap_accession_number STRING OPTIONS(description="Project dbGaP accession number"),
  project__disease_type STRING OPTIONS(description="Project Disease Type"),
  project__name STRING OPTIONS(description="Study name of the project"),
  project__program__dbgap_accession_number STRING OPTIONS(description="DbGaP accession number for the program"),
  project__program__name STRING OPTIONS(description="Program Name"),
  project__project_id STRING OPTIONS(description="Program Short Name with Project Short Name"),
  submitter_id STRING OPTIONS(description="This can be used to identify a corresponding entry in the submitter's records. The GDC requires that submitter_id be unique for each entity within a project: the tuple (combination) of [ project_id, submitter_id ] is a unique key."),
  legacy_file_count INT64 OPTIONS(description="Total number of files for this case in the GDC legacy archive"),
  active_file_count INT64 OPTIONS(description="Active Archive File Count")
)
OPTIONS(
  friendly_name="CASE DATA REL13",
  description="Data was generated from file metadata information from the GDC legacy archive release 13, October 2018. More details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-130",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "archived"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel13_caseData` (file_id, project__dbgap_accession_number, project__disease_type, project__name, project__program__dbgap_accession_number, project__program__name, project__project_id, submitter_id, legacy_file_count, active_file_count) VALUES ('942851b0-b554-48f4-84f6-6826902e12d7', 'CCLE', 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'CCLE', 'CCLE', 'CCLE-DLBC', 'DB', 1, 0), ('aaa8da09-070c-4a31-a99e-720f1a0a964f', 'CCLE', 'Cervical Squamous Cell Carcinoma and Endocervical Adenocarcinoma', 'Cervical Squamous Cell Carcinoma and Endocervical Adenocarcinoma', 'CCLE', 'CCLE', 'CCLE-CESC', 'EN', 1, 0), ('ae4dd9c2-ddba-4da5-a372-4cfdeed0859e', 'CCLE', 'Brain Lower Grade Glioma', 'Brain Lower Grade Glioma', 'CCLE', 'CCLE', 'CCLE-LGG', 'H4', 1, 0), ('6153a459-2c19-41c9-8815-aa9f6e72712e', 'CCLE', 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'CCLE', 'CCLE', 'CCLE-DLBC', 'HH', 1, 0), ('7f1968dd-cabb-4fc0-9ae7-76f80f41baa5', 'CCLE', 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'Lymphoid Neoplasm Diffuse Large B-cell Lymphoma', 'CCLE', 'CCLE', 'CCLE-DLBC', 'HT', 2, 0);
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel17_caseData`
(
  case_gdc_id STRING OPTIONS(description="GDC unique identifier"),
  project_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000187"),
  project_disease_type STRING OPTIONS(description="The type of disease studied by the project; e.g. Sarcoma,  Breast Invasive Carcinoma,Acute Lymphoblastic Leukemia, etc"),
  project_name STRING OPTIONS(description="Project Name; frequently the same as or similar to the project disease type eg   Acute Lymphoblastic Leukemia - Phase II   or   Breast Invasive Carcinoma   etc"),
  program_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000178"),
  program_name STRING OPTIONS(description="Program name, eg TCGA or TARGET"),
  project_id STRING OPTIONS(description="ID of the Project -- e.g. TCGA-BRCA, TARGET-AML, etc"),
  case_barcode STRING OPTIONS(description="Submitter identifier, eg HCC1954, TCGA-ZX-AA5X, etc"),
  legacy_file_count INT64 OPTIONS(description="Total number of files for this case in the GDC legacy archive"),
  active_file_count INT64 OPTIONS(description="Total number of files for this case in the active (default) GDC archive")
)
OPTIONS(
  friendly_name="CASE DATA REL17",
  description="Data was generated from file metadata information from the GDC release 17.1, June 2019.  \nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-170",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "archived"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel17_caseData` (case_gdc_id, project_dbgap_accession_number, project_disease_type, project_name, program_dbgap_accession_number, program_name, project_id, case_barcode, legacy_file_count, active_file_count) VALUES ('8e20b23c-1e5c-4edc-8263-ec3ec3abf482', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD1', 0, 5), ('35818db5-87e9-4c42-9d4c-902bbfaa09ea', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD2', 0, 5), ('59b7703e-5bd6-4a2f-b4a6-be80ad6871e9', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD3', 0, 5), ('066801c5-7723-473e-af4e-3e227d1a680c', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD4', 0, 5), ('e2cf827c-f437-4759-8651-9317dd291fa5', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD5', 0, 5);
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel16_caseData`
(
  case_gdc_id STRING OPTIONS(description="GDC unique identifier"),
  project_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000184"),
  project_disease_type STRING OPTIONS(description="The type of disease studied by the project; eg. Sarcoma,  Breast Invasive Carcinoma,Acute Lymphoblastic Leukemia, etc"),
  project_name STRING OPTIONS(description="Project Name; frequently the same as or similar to the project disease type eg   Acute Lymphoblastic Leukemia - Phase II   or   Breast Invasive Carcinoma   etc"),
  program_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000178"),
  program_name STRING OPTIONS(description="Program name, eg TCGA or TARGET"),
  project_id STRING OPTIONS(description="ID of the Project -- e.g. TCGA-BRCA, TARGET-AML, etc."),
  case_barcode STRING OPTIONS(description="Submitter identifier, eg HCC1954, TCGA-ZX-AA5X, etc"),
  legacy_file_count INT64 OPTIONS(description="Total number of files for this case in the GDC legacy archive"),
  active_file_count INT64 OPTIONS(description="Total number of files for this case in the active (default) GDC archive")
)
OPTIONS(
  friendly_name="CASE DATA REL16",
  description="Data was generated from file metadata information from the GDC release 16, March 2019. \nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-160",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "archived"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel16_caseData` (case_gdc_id, project_dbgap_accession_number, project_disease_type, project_name, program_dbgap_accession_number, program_name, project_id, case_barcode, legacy_file_count, active_file_count) VALUES ('8e20b23c-1e5c-4edc-8263-ec3ec3abf482', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD1', 0, 5), ('35818db5-87e9-4c42-9d4c-902bbfaa09ea', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD2', 0, 5), ('59b7703e-5bd6-4a2f-b4a6-be80ad6871e9', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD3', 0, 5), ('066801c5-7723-473e-af4e-3e227d1a680c', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD4', 0, 5), ('e2cf827c-f437-4759-8651-9317dd291fa5', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD5', 0, 5);
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel12_caseData`
(
  file_id STRING OPTIONS(description="GDC file identifier. This is a duplicate of file_gdc_id field found in some tables. "),
  project__dbgap_accession_number STRING OPTIONS(description="Project dbGaP accession number"),
  project__disease_type STRING OPTIONS(description="Project Disease Type"),
  project__name STRING OPTIONS(description="Study name of the project"),
  project__program__dbgap_accession_number STRING OPTIONS(description="DbGaP accession number for the program"),
  project__program__name STRING OPTIONS(description="Program Name"),
  project__project_id STRING OPTIONS(description="Program Short Name with Project Short Name"),
  submitter_id STRING OPTIONS(description="This can be used to identify a corresponding entry in the submitter's records. The GDC requires that submitter_id be unique for each entity within a project: the tuple (combination) of [ project_id, submitter_id ] is a unique key."),
  legacy_file_count INT64 OPTIONS(description="Total number of files for this case in the GDC legacy archive"),
  active_file_count INT64 OPTIONS(description="Active File Count for this case")
)
OPTIONS(
  friendly_name="CASE DATA REL12",
  description="Data was generated from case metadata information from the GDC active archive release 12 in July 2018. \nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-120",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("reference_genome_0", "hg38"), ("status", "archived"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel12_caseData` (file_id, project__dbgap_accession_number, project__disease_type, project__name, project__program__dbgap_accession_number, project__program__name, project__project_id, submitter_id, legacy_file_count, active_file_count) VALUES ('8e20b23c-1e5c-4edc-8263-ec3ec3abf482', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD1', 0, 5), ('35818db5-87e9-4c42-9d4c-902bbfaa09ea', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD2', 0, 5), ('59b7703e-5bd6-4a2f-b4a6-be80ad6871e9', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD3', 0, 5), ('066801c5-7723-473e-af4e-3e227d1a680c', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD4', 0, 5), ('e2cf827c-f437-4759-8651-9317dd291fa5', 'phs001179', 'multi', 'Foundation Medicine Adult Cancer Clinical Dataset (FM-AD)', NULL, 'FM', 'FM-AD', 'AD5', 0, 5);