nl2sqlproj/spider2-nl2sql huggingface dataset:
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel13_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-f91c8f407ba5"),
  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 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-120",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "archived"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel13_GDCfileID_to_GCSurl` (file_gdc_id, file_gcs_url) VALUES ('fd6bb2d6-fe55-4f5e-9101-eacc228cb8bc', 'gs://5aa919de-0aa0-43ec-9ec3-288481102b6d/tcga/LUAD/DNA/WXS/BI/ILLUMINA/C509.TCGA-NJ-A55R-01A-11D-A25L-08.3.bam'), ('ccbbdda7-6585-4424-b842-145721ef1575', 'gs://t358dcaa-132b-4099-b346-flattened/ccbbdda7-6585-4424-b842-145721ef1575/A34422_1_lane_dupsFlagged.bam.bai'), ('21c7a452-04dc-4543-a748-d8333cc4c404', 'gs://7008814a-277f-4fd4-aa61-flattened/21c7a452-04dc-4543-a748-d8333cc4c404/21c7a452-04dc-4543-a748-d8333cc4c404.vep.vcf.gz'), ('a612fce7-6a48-40cf-97fa-9ac4b15bdaa6', 'gs://isb-tcga-phs000178-open/gdc/a612fce7-6a48-40cf-97fa-9ac4b15bdaa6/TCGA-CD-A48A-01Z-00-DX1.C4416A6F-38A6-4743-990A-CE27923A2067.svs'), ('87136220-b337-45b7-af1f-b050b5071a93', 'gs://7008814a-277f-4fd4-aa61-flattened/87136220-b337-45b7-af1f-b050b5071a93/JOUAL_p_TCGA_b96_SNP_N_GenomeWideSNP_6_D09_748024.birdseed.data.txt');
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel24_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 REL24",
  description="Data was generated from file metadata information from the GDC release 24, May 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-240\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.rel24_GDCfileID_to_GCSurl` (file_gdc_id, file_gdc_url) VALUES ('8bc635ee-19bd-4b36-b319-b8983384bf0b', 'gs://gdc-target-phs000218-controlled/8bc635ee-19bd-4b36-b319-b8983384bf0b/8bc635ee-19bd-4b36-b319-b8983384bf0b.vep.vcf.gz'), ('59ca01ba-709e-4143-843c-9b19fdcee8ae', 'gs://gdc-tcga-phs000178-open/59ca01ba-709e-4143-843c-9b19fdcee8ae/nationwidechildrens.org_biospecimen.TCGA-N5-A59E.xml'), ('81ecdb02-f57e-4e27-a69e-c12295db732b', 'gs://gdc-fm-phs001179-controlled/81ecdb02-f57e-4e27-a69e-c12295db732b/81ecdb02-f57e-4e27-a69e-c12295db732b.vep.vcf.gz'), ('7358770d-1027-4e71-9398-e1dfff547965', 'gs://gdc-tcga-phs000178-open/7358770d-1027-4e71-9398-e1dfff547965/TCGA-E8-A44K-01Z-00-DX1.990DA204-B846-4FF8-B0A7-C47C2AF5FE0E.svs'), ('192b99e0-aba1-493c-85f3-23cb2206e311', 'gs://gdc-tcga-phs000178-open/192b99e0-aba1-493c-85f3-23cb2206e311/9305216006_R06C01_Red.idat');
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel14_GDCfileID_to_GCSurl_NEW`
(
  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 NEW GCS URLS REL14",
  description="Data was generated from file metadata information from the GDC archive release 14, December 2018. 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-140",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "archived"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel14_GDCfileID_to_GCSurl_NEW` (file_gdc_id, file_gdc_url) VALUES ('9039f8e6-edf7-4d23-b52a-dc463a05f5be', 'gs://gdc-tcga-phs000178-controlled/9039f8e6-edf7-4d23-b52a-dc463a05f5be/C501.TCGA-C5-A1BF-01B-11D-A13W-08.2_gdc_realn.bai'), ('fcc40aa8-75e8-41c0-9b69-689c3a40d1e9', 'gs://gdc-tcga-phs000178-open/fcc40aa8-75e8-41c0-9b69-689c3a40d1e9/346a61e3-70f5-4f34-a302-1fda3d8d3396_run.xml'), ('56ad1d61-756f-48c1-8e3b-83a29645fd18', 'gs://gdc-tcga-phs000178-controlled/56ad1d61-756f-48c1-8e3b-83a29645fd18/C494.TCGA-DB-A75M-01A-11D-A32B-08.1_gdc_realn.bam'), ('6b37ebb8-d815-45df-b035-2183f8e2a9b7', 'gs://gdc-tcga-phs000178-controlled/6b37ebb8-d815-45df-b035-2183f8e2a9b7/TCGA-DJ-A4UW_D_primary_blood.vcf'), ('c65905d4-4b64-43b4-b69e-f671f4365458', 'gs://gdc-tcga-phs000178-open/c65905d4-4b64-43b4-b69e-f671f4365458/TCGA-25-1316-01A-01D-0459-02_QA.tsv');
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel15_caseData`
(
  case_gdc_id STRING OPTIONS(description="GDC unique identifier"),
  project_dbgap_accession_number STRING OPTIONS(description="Program dbGaP accession number, eg phs000181"),
  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="Active file count for this case")
)
OPTIONS(
  friendly_name="CASE DATA REL15",
  description="Data was generated from file metadata information from the GDC legacy archive release 15, February 2019. More details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-150",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "archived"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel15_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.rel22_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 REL22",
  description="Data was generated from file metadata information from the GDC release 22, downloaded Jan 22, 2020. \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.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.rel22_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, 'Not Reported;Cystic, Mucinous and Serous Neoplasms', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-13-0914', 9, 20), ('78821fb5-0669-42c7-b62b-b61d6b7d7ac6', NULL, 'Not Reported;Cystic, Mucinous and Serous Neoplasms', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-13-0922', 9, 20), ('f88560c8-3475-47f2-9d48-4b8311bc1132', NULL, 'Not Reported;Cystic, Mucinous and Serous Neoplasms', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-01-0628', 41, 21), ('dc9b4616-e815-43c8-9ec4-720a32868541', NULL, 'Not Reported;Cystic, Mucinous and Serous Neoplasms', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-01-0630', 41, 21), ('3a7b22b5-0847-46df-92bf-cacc3f11deef', NULL, 'Not Reported;Cystic, Mucinous and Serous Neoplasms', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-01-0631', 41, 21);
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel21_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 REL21",
  description="Data was generated from file metadata information from the GDC release 21, downloaded Dec 13, 2019. \nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-210\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.rel21_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, 'Not Reported;Cystic, Mucinous and Serous Neoplasms', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-13-0914', 9, 20), ('78821fb5-0669-42c7-b62b-b61d6b7d7ac6', NULL, 'Not Reported;Cystic, Mucinous and Serous Neoplasms', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-13-0922', 9, 20), ('f88560c8-3475-47f2-9d48-4b8311bc1132', NULL, 'Not Reported;Cystic, Mucinous and Serous Neoplasms', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-01-0628', 41, 21), ('dc9b4616-e815-43c8-9ec4-720a32868541', NULL, 'Not Reported;Cystic, Mucinous and Serous Neoplasms', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-01-0630', 41, 21), ('3a7b22b5-0847-46df-92bf-cacc3f11deef', NULL, 'Not Reported;Cystic, Mucinous and Serous Neoplasms', 'Ovarian Serous Cystadenocarcinoma', 'phs000178', 'TCGA', 'TCGA-OV', 'TCGA-01-0631', 41, 21);
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel18_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 REL18",
  description="Data was generated from file metadata information from the GDC release 18, downloaded July 12, 2019. \nLegacy case counts derived from legacy endpoint download on Oct 18, 2019. \nMore details: https://docs.gdc.cancer.gov/Data/Release_Notes/Data_Release_Notes/#data-release-180",
  labels=[("access", "open"), ("data_type", "file_metadata"), ("source", "gdc"), ("status", "archived"), ("category", "metadata")]
);

INSERT INTO `isb-cgc.GDC_metadata.rel18_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_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-f91c8f407ba6"),
  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 REL12",
  description="Data was generated from file metadata information from the GDC current 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_GDCfileID_to_GCSurl` (file_gdc_id, file_gcs_url) VALUES ('00000aad-5723-4805-ad8a-57f9d95b3d2f', 'gs://isb-tcga-phs000178-open/gdc/00000aad-5723-4805-ad8a-57f9d95b3d2f/TCGA-N6-A4VD-11A-01-TSA.28534415-F409-4B2F-90F5-231F1B7E7129.svs'), ('00001cab-cfa9-4fb2-90d3-5bdd2fb92d5e', 'gs://7008814a-277f-4fd4-aa61-flattened/00001cab-cfa9-4fb2-90d3-5bdd2fb92d5e/TCGA-AR-A1AN-01A-11R-A12O-13_mirna_gdc_realn.bai'), ('00008ff2-e928-40cd-b421-b401ed292249', 'gs://5aa919de-0aa0-43ec-9ec3-288481102b6d/tcga/KIRC/RNA/RNA-Seq/UNC-LCCC/ILLUMINA/UNCID_2209825.338fe759-3976-4d63-98fa-7de1c7aeef0b.110429_UNC14-SN744_0106_AB066TABXX_1.tar.gz'), ('0000b231-7c05-4e2e-8c9e-6d0675bfbb34', 'gs://isb-tcga-phs000178-open/gdc/0000b231-7c05-4e2e-8c9e-6d0675bfbb34/TCGA-55-8514-01A-01-TS1.0e0f5cf3-96e9-4a35-aaed-4340df78d389.svs'), ('00017936-9bc3-4534-b7c9-734e771b8cb5', 'gs://7008814a-277f-4fd4-aa61-flattened/00017936-9bc3-4534-b7c9-734e771b8cb5/132efc96e630dbcdb3cb2cb0703a137f_gdc_realn.bai');
-- DBMS: bigquery
CREATE TABLE `isb-cgc.GDC_metadata.rel21_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 REL21",
  description="Data was generated from file metadata information from the GDC release 21, December 2019. 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-210\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.rel21_GDCfileID_to_GCSurl` (file_gdc_id, file_gdc_url) VALUES ('9bd1eb5a-3c13-4a0f-9ab6-7630b91332fa', 'gs://gdc-tcga-phs000178-open/9bd1eb5a-3c13-4a0f-9ab6-7630b91332fa/JOUAL_p_TCGA_b96_SNP_N_GenomeWideSNP_6_F01_748036.nocnv_grch38.seg.v2.txt'), ('76cc4177-cf95-41e0-ae0d-75a814ef4859', 'gs://gdc-cptac-2-phs000892-controlled/76cc4177-cf95-41e0-ae0d-75a814ef4859/ead189d5-c6b4-459b-afbe-c8c75ee4eca7_wxs_gdc_realn.bam'), ('757e3a05-aa38-41a4-94a7-1656a1711c26', 'gs://gdc-tcga-phs000178-open/757e3a05-aa38-41a4-94a7-1656a1711c26/TCGA-KL-8334-01Z-00-DX1.bc0857e2-938f-497a-ab63-38bc87e1af30.svs'), ('93fd1312-53a5-4a17-8df1-f503af94b8a1', 'gs://gdc-genie-phs001337-controlled/93fd1312-53a5-4a17-8df1-f503af94b8a1/ff47948d-cd92-4880-b2fb-32e10126b642.genie.aliquot.copy_number_score.tsv'), ('7d4398fa-a8cb-4986-bff1-63ade1873f33', 'gs://gdc-tcga-phs000178-controlled/7d4398fa-a8cb-4986-bff1-63ade1873f33/c6f36241-8d76-4d4d-a7b3-ab4ffa0a3735_gdc_realn_rehead.bai');
-- DBMS: bigquery
CREATE TABLE `open-targets-genetics.genetics.genes`
(
  biotype STRING,
  chr STRING,
  description STRING,
  `end` INT64,
  exons STRING,
  fwdstrand INT64,
  gene_id STRING,
  gene_name STRING,
  start INT64,
  tss INT64
)
OPTIONS(
  description="Gene index"
);

INSERT INTO `open-targets-genetics.genetics.genes` (biotype, chr, description, end, exons, fwdstrand, gene_id, gene_name, start, tss) VALUES ('IG_C_gene', '14', 'immunoglobulin heavy constant alpha 2 (A2m marker) [Source:HGNC Symbol;Acc:HGNC:5479]', 105588395, '[105583731,105583853,105584133,105584368,105586999,105587331,105587554,105587874,105588089,105588395]', 0, 'ENSG00000211890', 'IGHA2', 105583731, 105588395), ('IG_C_gene', '14', 'immunoglobulin heavy constant epsilon [Source:HGNC Symbol;Acc:HGNC:5522]', 105601728, '[105597691,105597774,105597859,105597980,105600074,105600397,105600481,105600804,105600891,105601211,105601419,105601728]', 0, 'ENSG00000211891', 'IGHE', 105597691, 105601728), ('IG_C_gene', '14', 'immunoglobulin heavy constant gamma 4 (G4m marker) [Source:HGNC Symbol;Acc:HGNC:5528]', 105626066, '[105620506,105621995,105623068,105623198,105624484,105624798,105624896,105625225,105625344,105625379,105625772,105626066]', 0, 'ENSG00000211892', 'IGHG4', 105620506, 105626066), ('IG_C_gene', '14', 'immunoglobulin heavy constant gamma 2 (G2m marker) [Source:HGNC Symbol;Acc:HGNC:5526]', 105644790, '[105639559,105641048,105641779,105641909,105643211,105643525,105643623,105643949,105644068,105644103,105644496,105644790]', 0, 'ENSG00000211893', 'IGHG2', 105639559, 105644790), ('IG_C_gene', '14', 'immunoglobulin heavy constant alpha 1 [Source:HGNC Symbol;Acc:HGNC:5478]', 105708665, '[105704367,105704584,105707230,105707562,105707785,105708144,105708359,105708665,105703995,105704086]', 0, 'ENSG00000211895', 'IGHA1', 105703995, 105708665);
-- DBMS: bigquery
CREATE TABLE `open-targets-genetics.genetics.sa_molecular_trait`
(
  type_id STRING,
  study_id STRING,
  phenotype_id STRING,
  gene_id STRING,
  chrom STRING,
  pos INT64,
  ref STRING,
  alt STRING,
  beta FLOAT64,
  se FLOAT64,
  pval FLOAT64,
  n_total INT64,
  n_cases INT64,
  eaf FLOAT64,
  mac INT64,
  mac_cases INT64,
  num_tests INT64,
  info FLOAT64,
  is_cc BOOL,
  bio_feature STRING
)
OPTIONS(
  description="Summary stats Molecular Trait pval 0.05 cut-off"
);

INSERT INTO `open-targets-genetics.genetics.sa_molecular_trait` (type_id, study_id, phenotype_id, gene_id, chrom, pos, ref, alt, beta, se, pval, n_total, n_cases, eaf, mac, mac_cases, num_tests, info, is_cc, bio_feature) VALUES ('eqtl', 'GTEx-eQTL', 'ENSG00000235513', 'ENSG00000235513', '22', 41877838, 'A', 'G', -0.40618, 0.1322, 0.00222441, 584, NULL, 0.0316781, 37, NULL, 5381, nan, False, 'ARTERY_TIBIAL'), ('eqtl', 'GTEx-eQTL', 'ENSG00000167077', 'ENSG00000167077', '22', 41877838, 'A', 'G', -0.349295, 0.106267, 0.00106678, 670, NULL, 0.0268657, 36, NULL, 6268, nan, False, 'BLOOD'), ('eqtl', 'Quach_2016', 'ENSG00000196419', 'ENSG00000196419', '22', 41877838, 'A', 'G', -0.0708813, 0.0208373, 0.000828044, 191, NULL, 0.0994764, 38, NULL, 9603, 0.99424, False, 'MONOCYTE_R848'), ('eqtl', 'Quach_2016', 'ENSG00000184208', 'ENSG00000184208', '22', 41877838, 'A', 'G', 0.160261, 0.0516344, 0.00222504, 191, NULL, 0.0994764, 38, NULL, 9854, 0.99424, False, 'MONOCYTE_R848'), ('eqtl', 'GTEx-eQTL', 'ENSG00000235513', 'ENSG00000235513', '22', 41877838, 'A', 'G', -0.295721, 0.102639, 0.00413105, 517, NULL, 0.0251451, 26, NULL, 5381, nan, False, 'SKIN_NOT_SUN_EXPOSED');
-- DBMS: bigquery
CREATE TABLE `open-targets-genetics.genetics.variant_disease_credset`
(
  bio_feature STRING,
  gene_id STRING,
  is95_credset BOOL,
  is99_credset BOOL,
  lead_alt STRING,
  lead_chrom STRING,
  lead_pos INT64,
  lead_ref STRING,
  lead_variant_id STRING,
  logABF FLOAT64,
  multisignal_method STRING,
  phenotype_id STRING,
  postprob FLOAT64,
  postprob_cumsum FLOAT64,
  study_id STRING,
  tag_alt STRING,
  tag_beta FLOAT64,
  tag_beta_cond FLOAT64,
  tag_chrom STRING,
  tag_pos INT64,
  tag_pval FLOAT64,
  tag_pval_cond FLOAT64,
  tag_ref STRING,
  tag_se FLOAT64,
  tag_se_cond FLOAT64,
  tag_variant_id STRING,
  type STRING
)
OPTIONS(
  description="Variant to study-trait index credible set"
);

INSERT INTO `open-targets-genetics.genetics.variant_disease_credset` (bio_feature, gene_id, is95_credset, is99_credset, lead_alt, lead_chrom, lead_pos, lead_ref, lead_variant_id, logABF, multisignal_method, phenotype_id, postprob, postprob_cumsum, study_id, tag_alt, tag_beta, tag_beta_cond, tag_chrom, tag_pos, tag_pval, tag_pval_cond, tag_ref, tag_se, tag_se_cond, tag_variant_id, type) VALUES (NULL, NULL, True, True, 'A', '19', 18175134, 'G', '19:18175134:G:A', 15.820163691968306, 'conditional', NULL, 0.141141523769435, 0.375348745608481, 'GCST90002292', 'A', -0.01511, -0.0145968, '19', 18172130, 6.09e-11, 2.54642e-10, 'G', 0.002308, 0.0023081, '19:18172130:G:A', 'gwas'), (NULL, NULL, True, True, 'A', '16', 76268356, 'G', '16:76268356:G:A', 6.663023455984759, 'conditional', NULL, 0.001348797543107, 0.941647794388453, 'NEALE2_23098_raw', 'G', 0.208844, 0.208844, '16', 76244454, 4.55903e-06, 4.55903e-06, 'A', 0.0455573, 0.0455573, '16:76244454:A:G', 'gwas'), (NULL, NULL, True, True, 'A', '22', 41408712, 'G', '22:41408712:G:A', 6.145689086865321, 'conditional', NULL, 0.003052939643592, 0.767230420099354, 'NEALE2_23116_raw', 'C', 0.0164922, 0.0195719, '22', 41077862, 0.00015155, 6.92653e-06, 'T', 0.00435317, 0.00435325, '22:41077862:T:C', 'gwas'), (NULL, NULL, True, True, 'A', '17', 36487995, 'G', '17:36487995:G:A', 21.84595788949745, 'conditional', NULL, 0.005841424015706, 0.838338585962339, 'NEALE2_23119_raw', 'C', -0.127526, -0.127526, '17', 36493030, 5.57e-13, 5.57e-13, 'T', 0.017685, 0.017685, '17:36493030:T:C', 'gwas'), (NULL, NULL, True, True, 'A', '2', 48470155, 'T', '2:48470155:T:A', 4.423677710061023, 'conditional', NULL, 0.029077575730221, 0.058155151460442, 'GCST90026302', 'T', -0.3029, -0.3029, '2', 48459981, 8.915e-07, 8.915e-07, 'A', 0.0616, 0.0616, '2:48459981:A:T', 'gwas');
-- DBMS: bigquery
CREATE TABLE `open-targets-genetics.genetics.variant_gene`
(
  chr_id STRING,
  position INT64,
  ref_allele STRING,
  alt_allele STRING,
  gene_id STRING,
  feature STRING,
  type_id STRING,
  source_id STRING,
  fpred_labels STRUCT<list ARRAY<STRUCT<element STRING>>> NOT NULL,
  fpred_scores STRUCT<list ARRAY<STRUCT<element FLOAT64 NOT NULL>>> NOT NULL,
  fpred_max_label STRING,
  fpred_max_score FLOAT64,
  qtl_beta FLOAT64,
  qtl_se FLOAT64,
  qtl_pval FLOAT64,
  qtl_score FLOAT64,
  interval_score FLOAT64,
  qtl_score_q FLOAT64,
  interval_score_q FLOAT64,
  d INT64,
  distance_score FLOAT64,
  distance_score_q FLOAT64
)
OPTIONS(
  description="Variant to gene index"
);

INSERT INTO `open-targets-genetics.genetics.variant_gene` (chr_id, position, ref_allele, alt_allele, gene_id, feature, type_id, source_id, fpred_labels, fpred_scores, fpred_max_label, fpred_max_score, qtl_beta, qtl_se, qtl_pval, qtl_score, interval_score, qtl_score_q, interval_score_q, d, distance_score, distance_score_q) VALUES ('22', 41413971, 'G', 'A', 'ENSG00000100147', 'aggregate', 'fantom5', 'andersson2014', {'list': '[]'}, {'list': '[]'}, NULL, nan, nan, nan, nan, nan, 0.024964, nan, 0.0, NULL, nan, nan), ('22', 41414480, 'G', 'A', 'ENSG00000100147', 'aggregate', 'fantom5', 'andersson2014', {'list': '[]'}, {'list': '[]'}, NULL, nan, nan, nan, nan, nan, 0.024964, nan, 0.0, NULL, nan, nan), ('22', 41413666, 'C', 'A', 'ENSG00000100147', 'aggregate', 'fantom5', 'andersson2014', {'list': '[]'}, {'list': '[]'}, NULL, nan, nan, nan, nan, nan, 0.024964, nan, 0.0, NULL, nan, nan), ('22', 41414166, 'T', 'C', 'ENSG00000100147', 'aggregate', 'fantom5', 'andersson2014', {'list': '[]'}, {'list': '[]'}, NULL, nan, nan, nan, nan, nan, 0.024964, nan, 0.0, NULL, nan, nan), ('22', 41413798, 'C', 'A', 'ENSG00000100147', 'aggregate', 'fantom5', 'andersson2014', {'list': '[]'}, {'list': '[]'}, NULL, nan, nan, nan, nan, nan, 0.024964, nan, 0.0, NULL, nan, nan);
-- DBMS: bigquery
CREATE TABLE `open-targets-genetics.genetics.studies_overlap`
(
  A_study_id STRING,
  A_chrom STRING,
  A_pos INT64,
  A_ref STRING,
  A_alt STRING,
  B_study_id STRING,
  B_chrom STRING,
  B_pos INT64,
  B_ref STRING,
  B_alt STRING,
  A_distinct INT64,
  AB_overlap INT64,
  B_distinct INT64
)
OPTIONS(
  description="Study Overlap index"
);

INSERT INTO `open-targets-genetics.genetics.studies_overlap` (A_study_id, A_chrom, A_pos, A_ref, A_alt, B_study_id, B_chrom, B_pos, B_ref, B_alt, A_distinct, AB_overlap, B_distinct) VALUES ('FINNGEN_R6_AB1_BACTINF_NOS', '1', 159743672, 'A', 'G', 'FINNGEN_R6_AB1_BACTINF_NOS', '1', 159743672, 'A', 'G', 0, 4, 0), ('FINNGEN_R6_AB1_BACTINF_NOS', '1', 159743672, 'A', 'G', 'FINNGEN_R6_AB1_OTHER_BACTERIAL', '1', 159743672, 'A', 'G', 1, 3, 0), ('FINNGEN_R6_AB1_BACTINF_NOS', '1', 159743672, 'A', 'G', 'FINNGEN_R6_COPD_ASTHMA_INFECTIONS', '1', 159685936, 'G', 'T', 3, 1, 33), ('FINNGEN_R6_AB1_BACTINF_NOS', '1', 159743672, 'A', 'G', 'FINNGEN_R6_COPD_ASTHMA_PNEUMONIA_SEPSIS', '1', 159713648, 'C', 'G', 2, 2, 0), ('FINNGEN_R6_AB1_BACTINF_NOS', '1', 159743672, 'A', 'G', 'FINNGEN_R6_J10_INFLUPNEU', '1', 159713648, 'C', 'G', 3, 1, 0);
-- DBMS: bigquery
CREATE TABLE `open-targets-genetics.genetics.variant_disease_coloc`
(
  coloc_n_vars INT64,
  coloc_h0 FLOAT64,
  coloc_h1 FLOAT64,
  coloc_h2 FLOAT64,
  coloc_h3 FLOAT64,
  coloc_h4 FLOAT64,
  left_type STRING,
  left_study STRING,
  left_chrom STRING,
  left_pos INT64,
  left_ref STRING,
  left_alt STRING,
  right_type STRING,
  right_study STRING,
  right_bio_feature STRING,
  right_phenotype STRING,
  right_chrom STRING,
  right_pos INT64,
  right_ref STRING,
  right_alt STRING,
  coloc_h4_h3 FLOAT64,
  coloc_log2_h4_h3 FLOAT64,
  is_flipped BOOL,
  right_gene_id STRING,
  left_var_right_study_beta FLOAT64,
  left_var_right_study_se FLOAT64,
  left_var_right_study_pval FLOAT64,
  left_var_right_isCC BOOL
)
OPTIONS(
  description="Variant to study-trait index colocalisation analysis"
);

INSERT INTO `open-targets-genetics.genetics.variant_disease_coloc` (coloc_n_vars, coloc_h0, coloc_h1, coloc_h2, coloc_h3, coloc_h4, left_type, left_study, left_chrom, left_pos, left_ref, left_alt, right_type, right_study, right_bio_feature, right_phenotype, right_chrom, right_pos, right_ref, right_alt, coloc_h4_h3, coloc_log2_h4_h3, is_flipped, right_gene_id, left_var_right_study_beta, left_var_right_study_se, left_var_right_study_pval, left_var_right_isCC) VALUES (4090, 0.0, 1.5268356525838216e-10, 0.0, 0.013297358894455047, 0.986702640952894, 'gwas', 'NEALE2_30270_raw', '1', 158617176, 'A', 'T', 'gwas', 'GCST90002395', NULL, NULL, '1', 158617176, 'A', 'T', 74.20290365813511, 6.213403737410375, False, NULL, 0.0172279, 0.00226173, 2.6e-14, False), (3960, 5.416557953755709e-13, 9.598359036914387e-07, 2.1164127675740685e-08, 0.036540228582484055, 0.9634587904169423, 'gwas', 'GCST004633', '1', 158613048, 'G', 'C', 'gwas', 'GCST90002374', NULL, NULL, '1', 158617176, 'A', 'T', 26.36707069968321, 4.720665396018382, True, NULL, 0.014085, 0.002066, 9.67e-12, False), (4234, 8.059224220352972e-57, 7.275218334587991e-48, 9.571696033044528e-12, 0.007648204239015318, 0.9923517957514205, 'gwas', 'GCST90002401', '1', 158610279, 'C', 'T', 'gwas', 'GCST004605', NULL, NULL, '1', 158617176, 'A', 'T', 129.74964641885435, 7.01958679687071, False, NULL, -0.0586768, 0.003914212, 8.445e-51, False), (341, 1.488692414997582e-129, 9.162416140441838e-125, 1.1442518259508022e-07, 0.006048545345588416, 0.9939513402292277, 'gwas', 'GCST90025950', '1', 158615440, 'C', 'T', 'gwas', 'GCST004619', NULL, NULL, '1', 158617176, 'A', 'T', 164.32898877978633, 7.360443193981025, False, NULL, -0.1056097, 0.00404451, 2.67e-150, False), (3038, 6.241752778349975e-10, 2.3492884598255546e-06, 1.3769713613103832e-06, 0.00418687412519057, 0.9958093989908117, 'gwas', 'GCST90002304', '10', 117773834, 'A', 'G', 'gwas', 'GCST90002363', NULL, NULL, '10', 117773745, 'A', 'G', 237.84077792056536, 7.893852276852675, True, NULL, -0.012719, 0.001998, 1.98e-10, False);
-- DBMS: bigquery
CREATE TABLE `open-targets-genetics.genetics.sa_gwas`
(
  type_id STRING,
  study_id STRING,
  chrom STRING,
  pos INT64,
  ref STRING,
  alt STRING,
  beta FLOAT64,
  se FLOAT64,
  pval FLOAT64,
  n_total INT64,
  n_cases INT64,
  eaf FLOAT64,
  mac FLOAT64,
  mac_cases FLOAT64,
  info FLOAT64,
  is_cc BOOL
)
OPTIONS(
  description="Summary stats GWAS pval 0.05 cut-off"
);

INSERT INTO `open-targets-genetics.genetics.sa_gwas` (type_id, study_id, chrom, pos, ref, alt, beta, se, pval, n_total, n_cases, eaf, mac, mac_cases, info, is_cc) VALUES ('gwas', 'NEALE2_1528', '20', 59608151, 'CTTG', 'C', -0.0657596, 0.0182317, 0.000309952, 333363, NULL, 0.003633066657067522, 2422.2600000000007, nan, 0.8647969999999999, False), ('gwas', 'NEALE2_5306', '20', 59608151, 'CTTG', 'C', -0.0993836, 0.0326061, 0.00230454, 65551, NULL, 0.003699440130585346, 485.004, nan, 0.8647969999999999, False), ('gwas', 'NEALE2_3627_raw', '20', 59608151, 'CTTG', 'C', -2.60407, 0.8252520000000001, 0.00160677, 10651, NULL, 0.0036934747910994273, 78.6784, nan, 0.8647969999999999, False), ('gwas', 'NEALE2_20003_1140888266', '20', 59608151, 'CTTG', 'C', 0.614546990182529, 0.20808242384121794, 0.00314275, 361141, 3651, 0.0036307287181460974, 2622.4099999999994, 26.511581099902802, 0.8647969999999999, True), ('gwas', 'NEALE2_1747_2', '20', 59608151, 'CTTG', 'C', -0.29613581496346775, 0.09964584753623612, 0.00295958, 360270, 16615, 0.0036265717378632695, 2613.09, 120.51097884919645, 0.8647969999999999, True);
-- DBMS: bigquery
CREATE TABLE `open-targets-genetics.genetics.studies`
(
  study_id STRING,
  ancestry_initial STRUCT<list ARRAY<STRUCT<element STRING>>> NOT NULL,
  ancestry_replication STRUCT<list ARRAY<STRUCT<element STRING>>> NOT NULL,
  n_cases INT64,
  n_initial INT64,
  n_replication INT64,
  pmid STRING,
  pub_author STRING,
  pub_date STRING,
  pub_journal STRING,
  pub_title STRING,
  has_sumstats BOOL,
  num_assoc_loci INT64,
  source STRING,
  trait_reported STRING,
  trait_efos STRUCT<list ARRAY<STRUCT<element STRING>>> NOT NULL,
  trait_category STRING NOT NULL
)
OPTIONS(
  description="Study index"
);

INSERT INTO `open-targets-genetics.genetics.studies` (study_id, ancestry_initial, ancestry_replication, n_cases, n_initial, n_replication, pmid, pub_author, pub_date, pub_journal, pub_title, has_sumstats, num_assoc_loci, source, trait_reported, trait_efos, trait_category) VALUES ('FINNGEN_R6_M13_MYALGIA', {'list': "[{'element': 'European=201546'}]"}, {'list': '[]'}, 3822, 201546, 0, NULL, 'FINNGEN_R6', '2022-01-24', NULL, NULL, True, 1, 'FINNGEN', 'Myalgia', {'list': "[{'element': 'HP_0003326'}]"}, 'phenotype'), ('FINNGEN_R6_M13_PATELLADISLOCATIO', {'list': "[{'element': 'European=174430'}]"}, {'list': '[]'}, 1016, 174430, 0, NULL, 'FINNGEN_R6', '2022-01-24', NULL, NULL, True, 0, 'FINNGEN', 'Recurrent dislocation of patella', {'list': "[{'element': 'HP_0002999'}]"}, 'phenotype'), ('FINNGEN_R6_M13_PATHODISLOCATIO', {'list': "[{'element': 'European=175145'}]"}, {'list': '[]'}, 1731, 175145, 0, NULL, 'FINNGEN_R6', '2022-01-24', NULL, NULL, True, 0, 'FINNGEN', '"Pathological/recurrent dislocation and subluxation of joint, not elsewhere classified"', {'list': "[{'element': 'HP_0032153'} {'element': 'HP_0001373'}]"}, 'phenotype'), ('FINNGEN_R6_M13_RECUDISLOCATIO', {'list': "[{'element': 'European=174889'}]"}, {'list': '[]'}, 1475, 174889, 0, NULL, 'FINNGEN_R6', '2022-01-24', NULL, NULL, True, 0, 'FINNGEN', 'Recurrent dislocation and subluxation of joint', {'list': "[{'element': 'HP_0032153'} {'element': 'HP_0001373'}]"}, 'phenotype'), ('FINNGEN_R6_M13_SACROILIITIS', {'list': "[{'element': 'European=195058'}]"}, {'list': '[]'}, 769, 195058, 0, NULL, 'FINNGEN_R6', '2022-01-24', NULL, NULL, True, 2, 'FINNGEN', '"Sacroiliitis, not elsewhere classified"', {'list': "[{'element': 'HP_0012317'}]"}, 'phenotype');
-- DBMS: bigquery
CREATE TABLE `open-targets-genetics.genetics.locus2gene`
(
  study_id STRING,
  chrom STRING,
  pos INT64,
  ref STRING,
  alt STRING,
  gene_id STRING,
  training_clf STRING,
  training_gs STRING,
  training_fold STRING,
  y_proba_dist_foot FLOAT64,
  y_proba_dist_tss FLOAT64,
  y_proba_full_model FLOAT64,
  y_proba_logi_distance FLOAT64,
  y_proba_logi_interaction FLOAT64,
  y_proba_logi_molecularQTL FLOAT64,
  y_proba_logi_pathogenicity FLOAT64,
  y_proba_logo_distance FLOAT64,
  y_proba_logo_interaction FLOAT64,
  y_proba_logo_molecularQTL FLOAT64,
  y_proba_logo_pathogenicity FLOAT64
)
OPTIONS(
  description="Locus to gene index"
);

INSERT INTO `open-targets-genetics.genetics.locus2gene` (study_id, chrom, pos, ref, alt, gene_id, training_clf, training_gs, training_fold, y_proba_dist_foot, y_proba_dist_tss, y_proba_full_model, y_proba_logi_distance, y_proba_logi_interaction, y_proba_logi_molecularQTL, y_proba_logi_pathogenicity, y_proba_logo_distance, y_proba_logo_interaction, y_proba_logo_molecularQTL, y_proba_logo_pathogenicity) VALUES ('NEALE2_30050_raw', '16', 339466, 'G', 'C', 'ENSG00000090565', 'xgboost', 'high_medium', 'fold1=21|10|X|22|5|16', 0.03360751271247864, 0.02439909428358078, 0.013470258563756943, 0.013123068027198315, 0.028331246227025986, 0.037079229950904846, 0.047780055552721024, 0.046961791813373566, 0.01195672620087862, 0.014302974566817284, 0.015013662166893482), ('NEALE2_50_raw', '10', 68196514, 'C', 'T', 'ENSG00000108187', 'xgboost', 'high_medium', 'fold1=21|10|X|22|5|16', 0.03360751271247864, 0.05245661363005638, 0.03159600496292114, 0.03964655473828316, 0.24866098165512085, 0.06237493082880974, 0.048392102122306824, 0.054283808916807175, 0.02825918421149254, 0.04561684653162956, 0.033276669681072235), ('GCST90018947', '10', 68196514, 'C', 'T', 'ENSG00000108187', 'xgboost', 'high_medium', 'fold1=21|10|X|22|5|16', 0.03360751271247864, 0.05245661363005638, 0.03336135670542717, 0.04037509858608246, 0.23272530734539032, 0.055212877690792084, 0.048197075724601746, 0.053741127252578735, 0.027781007811427116, 0.04550318792462349, 0.03439652919769287), ('GCST90002346', '10', 69485520, 'T', 'C', 'ENSG00000122859', 'xgboost', 'high_medium', 'fold1=21|10|X|22|5|16', 0.03360751271247864, 0.06372006982564926, 0.027188250795006752, 0.0336722768843174, 0.141335591673851, 0.115715891122818, 0.05014873668551445, 0.05013846978545189, 0.031782105565071106, 0.039356544613838196, 0.027132200077176094), ('GCST90091060', '5', 116498903, 'T', 'C', 'ENSG00000145781', 'xgboost', 'high_medium', 'fold1=21|10|X|22|5|16', 0.03360751271247864, 0.029162520542740822, 0.019773801788687706, 0.022048981860280037, 0.06706900894641876, 0.04998109117150307, 0.1266501098871231, 0.10650305449962616, 0.022414106875658035, 0.017937056720256805, 0.023169463500380516);
-- DBMS: bigquery
CREATE TABLE `spider2-public-data.1000_genomes.pedigree`
(
  Family_ID STRING,
  Individual_ID STRING,
  Paternal_ID STRING,
  Maternal_ID STRING,
  Gender INT64,
  Phenotype INT64,
  Population STRING,
  Relationship STRING,
  Siblings STRING,
  Second_Order STRING,
  Third_Order STRING,
  Other_Comments STRING
);

INSERT INTO `spider2-public-data.1000_genomes.pedigree` (Family_ID, Individual_ID, Paternal_ID, Maternal_ID, Gender, Phenotype, Population, Relationship, Siblings, Second_Order, Third_Order, Other_Comments) VALUES ('BB37', 'HG02428', 'HG02420', 'HG02427', 1, 0, 'ACB', 'child', '0', '0', '0', '0'), ('BB12', 'HG01987', 'HG01990', 'HG02012', 1, 0, 'ACB', 'child', '0', '0', '0', '0'), ('BB11', 'HG01960', 'HG01988', 'HG01989', 2, 0, 'ACB', 'child', '0', '0', '0', '0'), ('BB68', 'HG02559', 'HG02557', 'HG02558', 2, 0, 'ACB', 'child', '0', '0', '0', '0'), ('BB55', 'HG02486', 'HG02484', 'HG02485', 1, 0, 'ACB', 'child', '0', '0', '0', '0');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_subway.stop_times`
(
  trip_id STRING,
  arrival_time STRING,
  departure_time STRING,
  stop_id STRING,
  stop_sequence STRING,
  stop_headsign STRING,
  pickup_type STRING,
  dropoff_type STRING,
  shape_dist_traveled STRING
)
PARTITION BY DATE(_PARTITIONTIME)
CLUSTER BY trip_id, stop_id;

INSERT INTO `bigquery-public-data.new_york_subway.stop_times` (trip_id, arrival_time, departure_time, stop_id, stop_sequence, stop_headsign, pickup_type, dropoff_type, shape_dist_traveled, _PARTITIONTIME) VALUES ('BSP19GEN-FS012-Sunday-00_000000_FS.S01R', '00:00:00', '00:00:00', 'S01S', '1', NULL, '0', '0', NULL, NULL), ('BSP19GEN-FS011-Saturday-00_000000_FS.S01R', '00:00:00', '00:00:00', 'S01S', '1', NULL, '0', '0', NULL, NULL), ('BSP19GEN-FS011-Weekday-00_000000_FS.S01R', '00:00:00', '00:00:00', 'S01S', '1', NULL, '0', '0', NULL, NULL), ('BSP19GEN-M086-Weekday-00_000000_M..S30R', '00:00:00', '00:00:00', 'M11S', '1', NULL, '0', '0', NULL, NULL), ('BSP19SUPP-L022-Saturday-99_000100_L..N01X006', '00:01:00', '00:01:00', 'L29N', '1', NULL, '0', '0', NULL, NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_subway.station_complexes`
(
  complex_id STRING,
  complex_name STRING
)
PARTITION BY DATE(_PARTITIONTIME)
CLUSTER BY complex_name, complex_id;

INSERT INTO `bigquery-public-data.new_york_subway.station_complexes` (complex_id, complex_name, _PARTITIONTIME) VALUES ('605', '168 St - Washington Hts', NULL), ('602', '14 St - Union Sq', NULL), ('626', 'Franklin Av / Botanic Garden', NULL), ('610', 'Grand Central - 42 St', NULL), ('622', 'Brooklyn Bridge-City Hall / Chambers St', NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_subway.trips`
(
  route_id STRING,
  service_id STRING,
  trip_id STRING,
  trip_headsign STRING,
  direction_id STRING,
  block_id STRING,
  shape_id STRING
)
PARTITION BY DATE(_PARTITIONTIME)
CLUSTER BY route_id, trip_id, trip_headsign, shape_id;

INSERT INTO `bigquery-public-data.new_york_subway.trips` (route_id, service_id, trip_id, trip_headsign, direction_id, block_id, shape_id, _PARTITIONTIME) VALUES ('1', 'ASP19GEN-1037-Sunday-00', 'ASP19GEN-1037-Sunday-00_081250_1..N03R', 'Van Cortlandt Park - 242 St', '0', NULL, '1..N03R', NULL), ('1', 'ASP19GEN-1037-Sunday-00', 'ASP19GEN-1037-Sunday-00_073250_1..N03R', 'Van Cortlandt Park - 242 St', '0', NULL, '1..N03R', NULL), ('1', 'ASP19GEN-1037-Sunday-00', 'ASP19GEN-1037-Sunday-00_090850_1..N03R', 'Van Cortlandt Park - 242 St', '0', NULL, '1..N03R', NULL), ('1', 'ASP19GEN-1037-Sunday-00', 'ASP19GEN-1037-Sunday-00_146800_1..N03R', 'Van Cortlandt Park - 242 St', '0', NULL, '1..N03R', NULL), ('1', 'ASP19GEN-1037-Sunday-00', 'ASP19GEN-1037-Sunday-00_115650_1..N03R', 'Van Cortlandt Park - 242 St', '0', NULL, '1..N03R', NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_subway.stations`
(
  station_id STRING,
  complex_id STRING,
  gtfs_stop_id STRING,
  division STRING,
  line STRING,
  station_name STRING,
  borough_name STRING,
  daytime_routes STRING,
  structure STRING,
  north_direction_label STRING,
  south_direction_label STRING,
  station_lat FLOAT64,
  station_lon FLOAT64,
  station_geom GEOGRAPHY
)
PARTITION BY DATE(_PARTITIONTIME)
CLUSTER BY line, station_name, station_geom;

INSERT INTO `bigquery-public-data.new_york_subway.stations` (station_id, complex_id, gtfs_stop_id, division, line, station_name, borough_name, daytime_routes, structure, north_direction_label, south_direction_label, station_lat, station_lon, station_geom, _PARTITIONTIME) VALUES ('1', '1', 'R01', 'BMT', 'Astoria', 'Astoria - Ditmars Blvd', 'Queens', 'N W', 'Elevated', NULL, 'Manhattan', 40.775036, -73.912034, 'POINT(-73.912034 40.775036)', NULL), ('2', '2', 'R03', 'BMT', 'Astoria', 'Astoria Blvd', 'Queens', 'N W', 'Elevated', 'Ditmars Blvd', 'Manhattan', 40.770258, -73.917843, 'POINT(-73.917843 40.770258)', NULL), ('3', '3', 'R04', 'BMT', 'Astoria', '30 Av', 'Queens', 'N W', 'Elevated', 'Astoria - Ditmars Blvd', 'Manhattan', 40.766779, -73.921479, 'POINT(-73.921479 40.766779)', NULL), ('4', '4', 'R05', 'BMT', 'Astoria', 'Broadway', 'Queens', 'N W', 'Elevated', 'Astoria - Ditmars Blvd', 'Manhattan', 40.76182, -73.925508, 'POINT(-73.925508 40.76182)', NULL), ('5', '5', 'R06', 'BMT', 'Astoria', '36 Av', 'Queens', 'N W', 'Elevated', 'Astoria - Ditmars Blvd', 'Manhattan', 40.756804, -73.929575, 'POINT(-73.929575 40.756804)', NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_subway.subway_ridership_2013_present`
(
  station_name STRING,
  routes STRING,
  ridership_2013 INT64,
  ridership_2014 INT64,
  ridership_2015 INT64,
  ridership_2016 INT64,
  ridership_2017 INT64,
  ridership_2018 INT64,
  change_2018_raw INT64,
  change_2018_percent FLOAT64,
  rank_ridership_2018 INT64
)
PARTITION BY DATE(_PARTITIONTIME)
CLUSTER BY station_name, routes;

INSERT INTO `bigquery-public-data.new_york_subway.subway_ridership_2013_present` (station_name, routes, ridership_2013, ridership_2014, ridership_2015, ridership_2016, ridership_2017, ridership_2018, change_2018_raw, change_2018_percent, rank_ridership_2018, _PARTITIONTIME) VALUES ('36 St', 'D,N,R', 12059, 12497, 12810, 13180, 13894, 13493, -401, -0.029, 111, NULL), ('W 4 St - Washington Sq', 'A,B,C,D,E,F,M', 40798, 41968, 42760, 42755, 41835, 40666, -1169, -0.028, 22, NULL), ('Jay St - MetroTech', 'A,C,F,R', 40183, 41405, 43456, 44267, 43833, 42274, -1559, -0.036, 21, NULL), ('Times Sq - 42 St / 42 St', 'N,Q,R,W,S,1,2,3,7 / A,C,E', 197696, 204908, 206247, 202363, 203545, 204017, 472, 0.002, 1, NULL), ('4 Av', 'F,G,R', 13156, 12835, 13126, 13116, 13962, 12560, -1402, -0.1, 123, NULL);