nl2sqlproj/spider2-nl2sql huggingface dataset:
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.person`
(
  race_concept_id INT64,
  ethnicity_concept_id INT64,
  location_id INT64,
  provider_id INT64,
  care_site_id INT64,
  person_source_value STRING,
  gender_source_value STRING,
  gender_source_concept_id INT64,
  race_source_value STRING,
  race_source_concept_id INT64,
  ethnicity_source_value STRING,
  ethnicity_source_concept_id INT64,
  person_id INT64,
  gender_concept_id INT64,
  year_of_birth INT64,
  month_of_birth INT64,
  day_of_birth INT64,
  birth_datetime DATETIME
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.person` (race_concept_id, ethnicity_concept_id, location_id, provider_id, care_site_id, person_source_value, gender_source_value, gender_source_concept_id, race_source_value, race_source_concept_id, ethnicity_source_value, ethnicity_source_concept_id, person_id, gender_concept_id, year_of_birth, month_of_birth, day_of_birth, birth_datetime) VALUES (8527, 38003564, 1743, NULL, NULL, 'BF15581F0A520581', '1', NULL, '1', NULL, '1', NULL, 1017694, 8507, 1909, 1, 1, 'NaT'), (8527, 38003564, 1489, NULL, NULL, '7F50CE39B134C698', '1', NULL, '1', NULL, '1', NULL, 1569978, 8507, 1910, 1, 1, 'NaT'), (8527, 38003564, 218, NULL, NULL, 'EC10EF79BF40061F', '1', NULL, '1', NULL, '1', NULL, 456313, 8507, 1912, 1, 1, 'NaT'), (8527, 38003564, 1778, NULL, NULL, '94E7BB02907B8B25', '1', NULL, '1', NULL, '1', NULL, 649532, 8507, 1914, 1, 1, 'NaT'), (8527, 38003564, 1338, NULL, NULL, 'DF6649197A018AB0', '1', NULL, '1', NULL, '1', NULL, 2079297, 8507, 1914, 1, 1, 'NaT');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.concept_relationship`
(
  concept_id_1 INT64,
  concept_id_2 INT64,
  relationship_id STRING,
  valid_start_date DATE,
  valid_end_date DATE,
  invalid_reason STRING
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.concept_relationship` (concept_id_1, concept_id_2, relationship_id, valid_start_date, valid_end_date, invalid_reason) VALUES (3044131, 36207527, 'Is a', '1970-01-01', '2099-12-31', NULL), (3044827, 45876016, 'Is a', '1970-01-01', '2099-12-31', NULL), (3048737, 45876016, 'Is a', '1970-01-01', '2099-12-31', NULL), (2212562, 45888786, 'Is a', '1970-01-01', '2099-12-31', NULL), (40760040, 45876016, 'Is a', '1970-01-01', '2099-12-31', NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.dose_era`
(
  dose_era_id INT64,
  person_id INT64,
  drug_concept_id INT64,
  unit_concept_id INT64,
  dose_value FLOAT64,
  dose_era_start_date DATE,
  dose_era_end_date DATE
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.dose_era` (dose_era_id, person_id, drug_concept_id, unit_concept_id, dose_value, dose_era_start_date, dose_era_end_date) VALUES (250310791, 110152, 738818, 40239104, 0.0, '2010-03-11', '2010-04-10'), (318756987, 1412749, 738818, 40239104, 0.0, '2009-08-29', '2009-09-28'), (302001803, 1093359, 990678, 40173824, 0.0, '2008-06-23', '2008-07-23'), (310309084, 1252066, 990678, 40173824, 0.0, '2008-06-01', '2008-07-01'), (361608255, 2228193, 990678, 40173824, 0.0, '2009-12-18', '2010-01-07');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.care_site`
(
  care_site_id INT64 NOT NULL,
  care_site_name STRING,
  place_of_service_concept_id INT64,
  location_id INT64,
  care_site_source_value STRING,
  place_of_service_source_value STRING
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.care_site` (care_site_id, care_site_name, place_of_service_concept_id, location_id, care_site_source_value, place_of_service_source_value) VALUES (1, NULL, 8717, NULL, '2600GD', 'Inpatient Facility'), (8, NULL, 8717, NULL, '3913XU', 'Inpatient Facility'), (9, NULL, 8717, NULL, '3900MB', 'Inpatient Facility'), (10, NULL, 8717, NULL, '3900HM', 'Inpatient Facility'), (314, NULL, 8717, NULL, '1401HG', 'Inpatient Facility');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.provider`
(
  provider_id INT64 NOT NULL,
  provider_name STRING,
  npi STRING,
  dea STRING,
  specialty_concept_id INT64,
  care_site_id INT64,
  year_of_birth INT64,
  gender_concept_id INT64,
  provider_source_value STRING,
  specialty_source_value STRING,
  specialty_source_concept_id INT64,
  gender_source_value STRING,
  gender_source_concept_id INT64
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.provider` (provider_id, provider_name, npi, dea, specialty_concept_id, care_site_id, year_of_birth, gender_concept_id, provider_source_value, specialty_source_value, specialty_source_concept_id, gender_source_value, gender_source_concept_id) VALUES (135687, NULL, '9232459980', NULL, NULL, 65536, NULL, NULL, '9232459980', NULL, NULL, NULL, NULL), (135691, NULL, '6537458182', NULL, NULL, 65536, NULL, NULL, '6537458182', NULL, NULL, NULL, NULL), (310237, NULL, '9132955222', NULL, NULL, 131072, NULL, NULL, '9132955222', NULL, NULL, NULL, NULL), (501609, NULL, '3304030617', NULL, NULL, 196608, NULL, NULL, '3304030617', NULL, NULL, NULL, NULL), (380, NULL, '2689606218', NULL, NULL, 256, NULL, NULL, '2689606218', NULL, NULL, NULL, NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.condition_occurrence`
(
  condition_occurrence_id INT64,
  person_id INT64,
  condition_concept_id INT64,
  condition_start_date DATE,
  condition_start_datetime DATETIME,
  condition_end_date DATE,
  condition_end_datetime DATETIME,
  condition_type_concept_id INT64,
  stop_reason STRING,
  provider_id INT64,
  visit_occurrence_id INT64,
  visit_detail_id INT64,
  condition_source_value STRING,
  condition_source_concept_id INT64,
  condition_status_source_value STRING,
  condition_status_concept_id INT64
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.condition_occurrence` (condition_occurrence_id, person_id, condition_concept_id, condition_start_date, condition_start_datetime, condition_end_date, condition_end_datetime, condition_type_concept_id, stop_reason, provider_id, visit_occurrence_id, visit_detail_id, condition_source_value, condition_source_concept_id, condition_status_source_value, condition_status_concept_id) VALUES (145758296, 1173177, 197230, '2009-11-19', 'NaT', '2009-11-22', 'NaT', 38000200, NULL, 101018, 56274032, NULL, '179', 44834492, NULL, NULL), (167383981, 1347092, 197230, '2008-04-02', 'NaT', '2008-04-07', 'NaT', 38000200, NULL, 307632, 64619049, NULL, '179', 44834492, NULL, NULL), (228823280, 1841470, 4241530, '2010-12-15', 'NaT', '2010-12-18', 'NaT', 38000200, NULL, 239445, 88338203, NULL, 'V08', 44824945, NULL, NULL), (251626826, 2024897, 4241530, '2008-12-25', 'NaT', '2008-12-28', 'NaT', 38000200, NULL, 16551, 97140128, NULL, 'V08', 44824945, NULL, NULL), (224782368, 1809181, 4241530, '2008-01-21', 'NaT', '2008-01-26', 'NaT', 38000200, NULL, 10130, 86778389, NULL, 'V08', 44824945, NULL, NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.drug_era`
(
  drug_era_id INT64,
  person_id INT64,
  drug_concept_id INT64,
  drug_era_start_date DATE,
  drug_era_end_date DATE,
  drug_exposure_count INT64,
  gap_days INT64
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.drug_era` (drug_era_id, person_id, drug_concept_id, drug_era_start_date, drug_era_end_date, drug_exposure_count, gap_days) VALUES (75766970, 1441877, 1125315, '2008-07-20', '2008-07-21', 1, 0), (7358085, 140140, 1518254, '2008-07-20', '2008-07-21', 1, 0), (92285136, 1756428, 1308738, '2008-07-20', '2008-07-21', 1, 0), (112802687, 2147193, 1310317, '2008-07-20', '2008-07-21', 2, 0), (49709725, 945636, 1154029, '2008-07-20', '2008-07-21', 1, 0);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.concept_ancestor`
(
  ancestor_concept_id INT64 NOT NULL,
  descendant_concept_id INT64 NOT NULL,
  min_levels_of_separation INT64 NOT NULL,
  max_levels_of_separation INT64 NOT NULL
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.concept_ancestor` (ancestor_concept_id, descendant_concept_id, min_levels_of_separation, max_levels_of_separation) VALUES (41016650, 41016650, 0, 0), (41045056, 41079531, 0, 0), (41053181, 41155334, 0, 0), (41055214, 41160390, 0, 0), (41143402, 41143402, 0, 0);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_codes.icd10_procedures_2019`
(
  order_number STRING OPTIONS(description="Unique identifier that makes it easier for users to communicate a range of codes"),
  pcs_code STRING OPTIONS(description="Procedure code"),
  is_header_code BOOL OPTIONS(description="TRUE - The code is a “header” code and not valid for HIPAA-covered transactions. FALSE - The code is valid for submission for HIPAA-covered transactions."),
  short_description STRING OPTIONS(description="Short text description of the procedure"),
  long_description STRING OPTIONS(description="Full text description of the procedure")
);

INSERT INTO `bigquery-public-data.cms_codes.icd10_procedures_2019` (order_number, pcs_code, is_header_code, short_description, long_description) VALUES ('67369', '0XH', NULL, NULL, NULL), ('67514', '0XJ', NULL, NULL, NULL), ('67579', '0XM', NULL, NULL, NULL), ('67608', '0XP', NULL, NULL, NULL), ('67665', '0XQ', NULL, NULL, NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_codes.icd9_diagnoses`
(
  DIAGNOSIS_CODE STRING,
  LONG_DESCRIPTION STRING,
  SHORT_DESCRIPTION STRING
);

INSERT INTO `bigquery-public-data.cms_codes.icd9_diagnoses` (DIAGNOSIS_CODE, LONG_DESCRIPTION, SHORT_DESCRIPTION) VALUES ('436', 'Acute, but ill-defined, cerebrovascular disease', 'Cva'), ('78001', 'Coma', 'Coma'), ('E0062', 'Activities involving golf', 'Golf'), ('0460', 'Kuru', 'Kuru'), ('30752', 'Pica', 'Pica');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_codes.hcpcs`
(
  HCPC STRING,
  SEQNUM STRING,
  RECID INT64,
  LONG_DESCRIPTION STRING,
  SHORT_DESCRIPTION STRING,
  PRICE1 STRING,
  PRICE2 STRING,
  PRICE3 STRING,
  PRICE4 STRING,
  MULT_PI STRING,
  CIM1 STRING,
  CIM2 STRING,
  CIM3 STRING,
  MCM1 FLOAT64,
  MCM2 INT64,
  MCM3 STRING,
  STATUTE STRING,
  LABCERT1 STRING,
  LABCERT2 STRING,
  LABCERT3 STRING,
  LABCERT4 STRING,
  LABCERT5 STRING,
  LABCERT6 STRING,
  LABCERT7 STRING,
  LABCERT8 STRING,
  XREF1 STRING,
  XREF2 STRING,
  XREF3 STRING,
  XREF4 STRING,
  XREF5 STRING,
  COV STRING,
  ASC_GRP STRING,
  ASC_DT STRING,
  OPPS STRING,
  OPPS_PI STRING,
  OPPS_DT STRING,
  PROCNOTE STRING,
  BETOS STRING,
  TOS1 STRING,
  TOS2 STRING,
  TOS3 STRING,
  TOS4 STRING,
  TOS5 STRING,
  ANEST_BU STRING,
  ADD_DT STRING,
  ACT_EFF_DT STRING,
  TERM_DT STRING,
  ACTION_CD BOOL
);

INSERT INTO `bigquery-public-data.cms_codes.hcpcs` (HCPC, SEQNUM, RECID, LONG_DESCRIPTION, SHORT_DESCRIPTION, PRICE1, PRICE2, PRICE3, PRICE4, MULT_PI, CIM1, CIM2, CIM3, MCM1, MCM2, MCM3, STATUTE, LABCERT1, LABCERT2, LABCERT3, LABCERT4, LABCERT5, LABCERT6, LABCERT7, LABCERT8, XREF1, XREF2, XREF3, XREF4, XREF5, COV, ASC_GRP, ASC_DT, OPPS, OPPS_PI, OPPS_DT, PROCNOTE, BETOS, TOS1, TOS2, TOS3, TOS4, TOS5, ANEST_BU, ADD_DT, ACT_EFF_DT, TERM_DT, ACTION_CD) VALUES ('ZB', '0010', 7, 'Pfizer/hospira', 'Pfizer/hospira', '', '', '', '', '', '', '', '', nan, NULL, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'C', '', '', '', '', '', '', '', '', '', '', '', '', '', '20160701', '20160701', '', NULL), ('Q2', '0010', 7, 'Demonstration procedure/service', 'Demo procedure, service', '', '', '', '', '', '', '', '', nan, NULL, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'C', '', '', '', '', '', '0046', '', '', '', '', '', '', '', '19920101', '20170101', '', NULL), ('PO', '0010', 7, 'Excepted service provided at an off-campus, outpatient, provider-based department of a hospital', 'Excepted off-campus service', '', '', '', '', '', '', '', '', nan, NULL, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'C', '', '', '', '', '', '0207', '', '', '', '', '', '', '', '20150101', '20170101', '', NULL), ('V2', '0010', 7, 'Demonstration modifier 2', 'Demonstration modifier 2', '', '', '', '', '', '', '', '', nan, NULL, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'C', '', '', '', '', '', '', '', '', '', '', '', '', '', '20170101', '20170101', '', NULL), ('PN', '0010', 7, 'Non-excepted service provided at an off-campus, outpatient, provider-based department of a hospital', 'Non-excepted off-campus svc', '', '', '', '', '', '', '', '', nan, NULL, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'C', '', '', '', '', '', '0207', '', '', '', '', '', '', '', '20170101', '20170101', '', NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_codes.icd9_procedures`
(
  PROCEDURE_CODE STRING,
  LONG_DESCRIPTION STRING,
  SHORT_DESCRIPTION STRING
);

INSERT INTO `bigquery-public-data.cms_codes.icd9_procedures` (PROCEDURE_CODE, LONG_DESCRIPTION, SHORT_DESCRIPTION) VALUES ('0009', 'Other therapeutic ultrasound', 'Other therapeutic ultsnd'), ('0043', 'Procedure on four or more vessels', 'Procedure-four+ vessels'), ('0076', 'Hip bearing surface, ceramic-on-ceramic', 'Hip surface, cermc/cermc'), ('0151', 'Excision of lesion or tissue of cerebral meninges', 'Ex cereb meningeal les'), ('0152', 'Hemispherectomy', 'Hemispherectomy');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_codes.icd10_diagnoses_2019`
(
  order_number STRING OPTIONS(description="Unique header code that makes it easier for users to communicate a range of codes"),
  cm_code STRING OPTIONS(description="Diagnosis code"),
  is_header_code BOOL OPTIONS(description="TRUE -  The code is a “header” code and not valid for HIPAA-covered transactions. FALSE - The code is valid for submission for HIPAA-covered transactions."),
  short_description STRING OPTIONS(description="Short text description of the diagnosis"),
  long_description STRING OPTIONS(description="Full text description of the diagnosis")
);

INSERT INTO `bigquery-public-data.cms_codes.icd10_diagnoses_2019` (order_number, cm_code, is_header_code, short_description, long_description) VALUES ('00004', 'A009', False, 'Cholera, unspecified', 'Cholera, unspecified'), ('01543', 'C4339', False, 'Malignant melanoma of other parts of face', 'Malignant melanoma of other parts of face'), ('03541', 'D696', False, 'Thrombocytopenia, unspecified', 'Thrombocytopenia, unspecified'), ('03955', 'E093593', False, 'Drug/chem diab with prolif diab rtnop without mclr edema, bi', 'Drug or chemical induced diabetes mellitus with proliferative diabetic retinopathy without macular edema, bilateral'), ('05041', 'F12129', False, 'Cannabis abuse with intoxication, unspecified', 'Cannabis abuse with intoxication, unspecified');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_medicare.outpatient_charges_2011`
(
  provider_id STRING NOT NULL OPTIONS(description="The CMS Certification Number (CCN) of the provider billing for outpatient hospital services"),
  provider_name STRING OPTIONS(description="The name of the provider"),
  provider_street_address STRING OPTIONS(description="The street address in which the provider is physically located"),
  provider_city STRING OPTIONS(description="The city in which the provider is physically located"),
  provider_state STRING OPTIONS(description="The state in which the provider is physically located"),
  provider_zipcode STRING OPTIONS(description="The zip code in which the provider is physically located"),
  apc STRING NOT NULL OPTIONS(description="The code and description identifying the MS-DRG. MS-DRGs are a classification system that groups similar clinical conditions (diagnoses) and the procedures furnished by the hospital during the stay"),
  hospital_referral_region STRING OPTIONS(description="Code and description identifying the APC. APCs are a classification system where individual services (Healthcare Common Procedure Coding System [HCPCS] codes) are assigned based on similar clinical characteristics and similar costs"),
  outpatient_services INT64 OPTIONS(description="The number of discharges billed by the provider for inpatient hospital services"),
  average_estimated_submitted_charges FLOAT64 OPTIONS(description="The number of services billed by the provider for outpatient hospital services"),
  average_total_payments FLOAT64 OPTIONS(description="The provider's average estimated submitted charge for services covered by Medicare for the APC. These will vary from hospital to hospital because of differences in hospital charge structures")
);

INSERT INTO `bigquery-public-data.cms_medicare.outpatient_charges_2011` (provider_id, provider_name, provider_street_address, provider_city, provider_state, provider_zipcode, apc, hospital_referral_region, outpatient_services, average_estimated_submitted_charges, average_total_payments) VALUES ('20017', 'ALASKA REGIONAL HOSPITAL', '2801 DEBARR ROAD', 'ANCHORAGE', 'AK', '99508', '0013 - Level II Debridement & Destruction', 'AK - Anchorage', 28, 323.0, 72.0), ('20017', 'ALASKA REGIONAL HOSPITAL', '2801 DEBARR ROAD', 'ANCHORAGE', 'AK', '99508', '0078 - Level III Pulmonary Treatment', 'AK - Anchorage', 37, 574.0, 109.0), ('20017', 'ALASKA REGIONAL HOSPITAL', '2801 DEBARR ROAD', 'ANCHORAGE', 'AK', '99508', '0204 - Level I Nerve Injections', 'AK - Anchorage', 17, 1109.0, 206.0), ('20017', 'ALASKA REGIONAL HOSPITAL', '2801 DEBARR ROAD', 'ANCHORAGE', 'AK', '99508', '0209 - Level II Extended EEG, Sleep, and Cardiovascular Studies', 'AK - Anchorage', 145, 3670.0, 886.0), ('20017', 'ALASKA REGIONAL HOSPITAL', '2801 DEBARR ROAD', 'ANCHORAGE', 'AK', '99508', '0265 - Level I Diagnostic and Screening Ultrasound', 'AK - Anchorage', 73, 444.0, 70.0);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_medicare.outpatient_charges_2012`
(
  provider_id STRING NOT NULL OPTIONS(description="The CMS Certification Number (CCN) of the provider billing for outpatient hospital services"),
  provider_name STRING OPTIONS(description="The name of the provider"),
  provider_street_address STRING OPTIONS(description="The street address in which the provider is physically located"),
  provider_city STRING OPTIONS(description="The city in which the provider is physically located"),
  provider_state STRING OPTIONS(description="The state in which the provider is physically located"),
  provider_zipcode STRING OPTIONS(description="The zip code in which the provider is physically located"),
  apc STRING NOT NULL OPTIONS(description="The code and description identifying the MS-DRG. MS-DRGs are a classification system that groups similar clinical conditions (diagnoses) and the procedures furnished by the hospital during the stay"),
  hospital_referral_region STRING OPTIONS(description="Code and description identifying the APC. APCs are a classification system where individual services (Healthcare Common Procedure Coding System [HCPCS] codes) are assigned based on similar clinical characteristics and similar costs"),
  outpatient_services INT64 OPTIONS(description="The number of discharges billed by the provider for inpatient hospital services"),
  average_estimated_submitted_charges FLOAT64 OPTIONS(description="The number of services billed by the provider for outpatient hospital services"),
  average_total_payments FLOAT64 OPTIONS(description="The provider's average estimated submitted charge for services covered by Medicare for the APC. These will vary from hospital to hospital because of differences in hospital charge structures")
);

INSERT INTO `bigquery-public-data.cms_medicare.outpatient_charges_2012` (provider_id, provider_name, provider_street_address, provider_city, provider_state, provider_zipcode, apc, hospital_referral_region, outpatient_services, average_estimated_submitted_charges, average_total_payments) VALUES ('220024', 'HOLYOKE MEDICAL CENTER', '575 BEECH STREET', 'HOLYOKE', 'MA', '01040', '0013 - Level II Debridement & Destruction', 'MA - Springfield', 32, 150.0, 74.0), ('220024', 'HOLYOKE MEDICAL CENTER', '575 BEECH STREET', 'HOLYOKE', 'MA', '01040', '0015 - Level III Debridement & Destruction', 'MA - Springfield', 52, 370.0, 124.0), ('220024', 'HOLYOKE MEDICAL CENTER', '575 BEECH STREET', 'HOLYOKE', 'MA', '01040', '0019 - Level I Excision/ Biopsy', 'MA - Springfield', 52, 472.0, 363.0), ('220024', 'HOLYOKE MEDICAL CENTER', '575 BEECH STREET', 'HOLYOKE', 'MA', '01040', '0020 - Level II Excision/ Biopsy', 'MA - Springfield', 42, 929.0, 682.0), ('220024', 'HOLYOKE MEDICAL CENTER', '575 BEECH STREET', 'HOLYOKE', 'MA', '01040', '0078 - Level III Pulmonary Treatment', 'MA - Springfield', 167, 277.0, 119.0);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_medicare.outpatient_charges_2013`
(
  provider_id STRING NOT NULL OPTIONS(description="The CMS Certification Number (CCN) of the provider billing for outpatient hospital services"),
  provider_name STRING OPTIONS(description="The name of the provider"),
  provider_street_address STRING OPTIONS(description="The street address in which the provider is physically located"),
  provider_city STRING OPTIONS(description="The city in which the provider is physically located"),
  provider_state STRING OPTIONS(description="The state in which the provider is physically located"),
  provider_zipcode STRING OPTIONS(description="The zip code in which the provider is physically located"),
  apc STRING NOT NULL OPTIONS(description="The code and description identifying the MS-DRG. MS-DRGs are a classification system that groups similar clinical conditions (diagnoses) and the procedures furnished by the hospital during the stay"),
  hospital_referral_region STRING OPTIONS(description="Code and description identifying the APC. APCs are a classification system where individual services (Healthcare Common Procedure Coding System [HCPCS] codes) are assigned based on similar clinical characteristics and similar costs"),
  outpatient_services INT64 OPTIONS(description="The number of discharges billed by the provider for inpatient hospital services"),
  average_estimated_submitted_charges FLOAT64 OPTIONS(description="The number of services billed by the provider for outpatient hospital services"),
  average_total_payments FLOAT64 OPTIONS(description="The provider's average estimated submitted charge for services covered by Medicare for the APC. These will vary from hospital to hospital because of differences in hospital charge structures")
);

INSERT INTO `bigquery-public-data.cms_medicare.outpatient_charges_2013` (provider_id, provider_name, provider_street_address, provider_city, provider_state, provider_zipcode, apc, hospital_referral_region, outpatient_services, average_estimated_submitted_charges, average_total_payments) VALUES ('30126', 'ARIZONA REGIONAL MEDICAL CENTER', '515 NORTH MESA DRIVE', 'MESA', 'AZ', '85201', '0269 - Level II Echocardiogram Without Contrast', 'AZ - Mesa', 25, 1232.0, 402.0), ('30126', 'ARIZONA REGIONAL MEDICAL CENTER', '515 NORTH MESA DRIVE', 'MESA', 'AZ', '85201', '0336 - Magnetic Resonance Imaging and Magnetic Resonance Angiography without Contrast', 'AZ - Mesa', 17, 2447.0, 395.0), ('30126', 'ARIZONA REGIONAL MEDICAL CENTER', '515 NORTH MESA DRIVE', 'MESA', 'AZ', '85201', '0377 - Level II Cardiac Imaging', 'AZ - Mesa', 13, 5631.0, 701.0), ('30065', 'BANNER DESERT MEDICAL CENTER', '1400 SOUTH  DOBSON ROAD', 'MESA', 'AZ', '85202', '0078 - Level III Pulmonary Treatment', 'AZ - Mesa', 38, 717.0, 101.0), ('30065', 'BANNER DESERT MEDICAL CENTER', '1400 SOUTH  DOBSON ROAD', 'MESA', 'AZ', '85202', '0204 - Level I Nerve Injections', 'AZ - Mesa', 14, 941.0, 187.0);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_medicare.outpatient_charges_2014`
(
  provider_id STRING NOT NULL OPTIONS(description="The CMS Certification Number (CCN) of the provider billing for outpatient hospital services"),
  provider_name STRING OPTIONS(description="The name of the provider"),
  provider_street_address STRING OPTIONS(description="The street address in which the provider is physically located"),
  provider_city STRING OPTIONS(description="The city in which the provider is physically located"),
  provider_state STRING OPTIONS(description="The state in which the provider is physically located"),
  provider_zipcode STRING OPTIONS(description="The zip code in which the provider is physically located"),
  apc STRING NOT NULL OPTIONS(description="The code and description identifying the MS-DRG. MS-DRGs are a classification system that groups similar clinical conditions (diagnoses) and the procedures furnished by the hospital during the stay"),
  hospital_referral_region STRING OPTIONS(description="Code and description identifying the APC. APCs are a classification system where individual services (Healthcare Common Procedure Coding System [HCPCS] codes) are assigned based on similar clinical characteristics and similar costs"),
  outpatient_services INT64 OPTIONS(description="The number of discharges billed by the provider for inpatient hospital services"),
  average_estimated_submitted_charges FLOAT64 OPTIONS(description="The number of services billed by the provider for outpatient hospital services"),
  average_total_payments FLOAT64 OPTIONS(description="The provider's average estimated submitted charge for services covered by Medicare for the APC. These will vary from hospital to hospital because of differences in hospital charge structures")
);

INSERT INTO `bigquery-public-data.cms_medicare.outpatient_charges_2014` (provider_id, provider_name, provider_street_address, provider_city, provider_state, provider_zipcode, apc, hospital_referral_region, outpatient_services, average_estimated_submitted_charges, average_total_payments) VALUES ('220024', 'HOLYOKE MEDICAL CENTER', '575 BEECH STREET', 'HOLYOKE', 'MA', '01040', '0013 - Level II Debridement & Destruction', 'MA - Springfield', 22, 171.0, 91.0), ('220024', 'HOLYOKE MEDICAL CENTER', '575 BEECH STREET', 'HOLYOKE', 'MA', '01040', '0015 - Level III Debridement & Destruction', 'MA - Springfield', 57, 323.0, 167.0), ('220024', 'HOLYOKE MEDICAL CENTER', '575 BEECH STREET', 'HOLYOKE', 'MA', '01040', '0019 - Level I Excision/ Biopsy', 'MA - Springfield', 29, 502.0, 339.0), ('220024', 'HOLYOKE MEDICAL CENTER', '575 BEECH STREET', 'HOLYOKE', 'MA', '01040', '0020 - Level II Excision/ Biopsy', 'MA - Springfield', 32, 625.0, 723.0), ('220024', 'HOLYOKE MEDICAL CENTER', '575 BEECH STREET', 'HOLYOKE', 'MA', '01040', '0078 - Level III Pulmonary Treatment', 'MA - Springfield', 13, 363.0, 158.0);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_medicare.outpatient_charges_2015`
(
  provider_id STRING NOT NULL OPTIONS(description="The CMS Certification Number (CCN) of the provider billing for outpatient hospital services"),
  provider_name STRING OPTIONS(description="The name of the provider"),
  provider_street_address STRING OPTIONS(description="The street address in which the provider is physically located"),
  provider_city STRING OPTIONS(description="The city in which the provider is physically located"),
  provider_state STRING OPTIONS(description="The state in which the provider is physically located"),
  provider_zipcode INT64 OPTIONS(description="The zip code in which the provider is physically located"),
  apc STRING NOT NULL OPTIONS(description="Code and description identifying the APC. APCs are a classification system where individual services (Healthcare Common Procedure Coding System [HCPCS] codes) are assigned based on similar clinical characteristics and similar costs"),
  hospital_referral_region STRING OPTIONS(description="The Hospital Referral Region (HRR) in which the provider is physically located"),
  outpatient_services INT64 OPTIONS(description="The number of services billed by the provider for outpatient hospital services"),
  average_estimated_submitted_charges FLOAT64 OPTIONS(description="The provider's average estimated submitted charge for services covered by Medicare for the APC. These will vary from hospital to hospital because of differences in hospital charge structures"),
  average_total_payments FLOAT64 OPTIONS(description="The average of total payments to the provider for the APC including the Medicare APC amount. Also included in Total Payments are co-payment and deductible amounts that the patient is responsible for")
);

INSERT INTO `bigquery-public-data.cms_medicare.outpatient_charges_2015` (provider_id, provider_name, provider_street_address, provider_city, provider_state, provider_zipcode, apc, hospital_referral_region, outpatient_services, average_estimated_submitted_charges, average_total_payments) VALUES ('020001', 'Providence Alaska Medical Center', 'Box 196604', 'Anchorage', 'AK', 99508, '0012 - Level I Debridement & Destruction', 'AK - Anchorage', 105, 288.94342857, 113.67761905), ('020001', 'Providence Alaska Medical Center', 'Box 196604', 'Anchorage', 'AK', 99508, '0015 - Level II Debridement & Destruction', 'AK - Anchorage', 430, 576.48853488, 166.18195349), ('020001', 'Providence Alaska Medical Center', 'Box 196604', 'Anchorage', 'AK', 99508, '0020 - Level II Excision/ Biopsy', 'AK - Anchorage', 19, 5410.0194737, 962.93), ('020001', 'Providence Alaska Medical Center', 'Box 196604', 'Anchorage', 'AK', 99508, '0096 - Level II Noninvasive Physiologic Studies', 'AK - Anchorage', 19, 2350.4873684, 368.05105263), ('020001', 'Providence Alaska Medical Center', 'Box 196604', 'Anchorage', 'AK', 99508, '0204 - Level I Nerve Injections', 'AK - Anchorage', 11, 1221.4709091, 217.25909091);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.covid19_usafacts.summary`
(
  county_fips_code STRING,
  county_name STRING,
  state STRING,
  state_fips_code STRING,
  date DATE,
  confirmed_cases NUMERIC,
  deaths NUMERIC
)
PARTITION BY DATE(_PARTITIONTIME);

INSERT INTO `bigquery-public-data.covid19_usafacts.summary` (county_fips_code, county_name, state, state_fips_code, date, confirmed_cases, deaths, _PARTITIONTIME) VALUES ('00000', 'Statewide Unallocated', 'AL', '01', '2020-01-22', '0E-9', '0E-9', NULL), ('00000', 'Statewide Unallocated', 'AL', '01', '2020-01-23', '0E-9', '0E-9', NULL), ('00000', 'Statewide Unallocated', 'AL', '01', '2020-01-24', '0E-9', '0E-9', NULL), ('00000', 'Statewide Unallocated', 'AL', '01', '2020-01-25', '0E-9', '0E-9', NULL), ('00000', 'Statewide Unallocated', 'AL', '01', '2020-01-26', '0E-9', '0E-9', NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.baseball.schedules`
(
  gameId STRING,
  gameNumber INT64,
  seasonId STRING,
  year INT64,
  type STRING,
  dayNight STRING,
  duration STRING,
  duration_minutes INT64,
  homeTeamId STRING,
  homeTeamName STRING,
  awayTeamId STRING,
  awayTeamName STRING,
  startTime TIMESTAMP,
  attendance INT64,
  status STRING,
  created TIMESTAMP
);

INSERT INTO `bigquery-public-data.baseball.schedules` (gameId, gameNumber, seasonId, year, type, dayNight, duration, duration_minutes, homeTeamId, homeTeamName, awayTeamId, awayTeamName, startTime, attendance, status, created) VALUES ('e14b6493-9e7f-404f-840a-8a680cc364bf', 1, '565de4be-dc80-4849-a7e1-54bc79156cc8', 2016, 'REG', 'D', '3:07', 187, '03556285-bdbb-4576-a06d-42f71f46ddc5', 'Marlins', '55714da8-fcaf-4574-8443-59bfb511a524', 'Cubs', '2016-06-26 17:10:00+00:00', 27318, 'closed', '2016-10-06 06:25:15+00:00'), ('1f32b347-cbcb-4c31-a145-0e685306d168', 1, '565de4be-dc80-4849-a7e1-54bc79156cc8', 2016, 'REG', 'D', '3:09', 189, '03556285-bdbb-4576-a06d-42f71f46ddc5', 'Marlins', '55714da8-fcaf-4574-8443-59bfb511a524', 'Cubs', '2016-06-25 20:10:00+00:00', 29457, 'closed', '2016-10-06 06:25:15+00:00'), ('0c2292d1-7398-48be-bf8e-b41dad5e1a43', 1, '565de4be-dc80-4849-a7e1-54bc79156cc8', 2016, 'REG', 'D', '2:45', 165, '12079497-e414-450a-8bf2-29f91de646bf', 'Braves', '55714da8-fcaf-4574-8443-59bfb511a524', 'Cubs', '2016-06-11 20:10:00+00:00', 43114, 'closed', '2016-10-06 06:25:15+00:00'), ('8fbec734-a15a-42ab-8d51-60790de7750b', 1, '565de4be-dc80-4849-a7e1-54bc79156cc8', 2016, 'REG', 'D', '3:42', 222, '12079497-e414-450a-8bf2-29f91de646bf', 'Braves', '55714da8-fcaf-4574-8443-59bfb511a524', 'Cubs', '2016-06-12 17:35:00+00:00', 31625, 'closed', '2016-10-06 06:25:15+00:00'), ('89e514d5-fbf5-4b9d-bdac-6ca45bfd18dd', 1, '565de4be-dc80-4849-a7e1-54bc79156cc8', 2016, 'REG', 'D', '2:44', 164, '2142e1ba-3b40-445c-b8bb-f1f8b1054220', 'Phillies', '55714da8-fcaf-4574-8443-59bfb511a524', 'Cubs', '2016-06-08 17:05:00+00:00', 28650, 'closed', '2016-10-06 06:25:15+00:00');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_311.311_service_requests`
(
  unique_key INT64,
  created_date TIMESTAMP,
  closed_date TIMESTAMP,
  resolution_action_updated_date TIMESTAMP,
  status STRING,
  status_notes STRING,
  agency_name STRING,
  category STRING,
  complaint_type STRING,
  descriptor STRING,
  incident_address STRING,
  supervisor_district INT64,
  neighborhood STRING,
  location STRING,
  source STRING,
  media_url STRING,
  latitude FLOAT64,
  longitude FLOAT64,
  police_district STRING
);

INSERT INTO `bigquery-public-data.san_francisco_311.311_service_requests` (unique_key, created_date, closed_date, resolution_action_updated_date, status, status_notes, agency_name, category, complaint_type, descriptor, incident_address, supervisor_district, neighborhood, location, source, media_url, latitude, longitude, police_district) VALUES (1367139, '2012-09-01 11:43:37+00:00', '2012-09-04 03:31:52+00:00', '2012-09-04 03:31:52+00:00', 'Closed', 'DPT Abandoned Vehicles - Gone on Arrival - 9-4-12 @  no  dumpster @ that location', 'DPT Abandoned Vehicles Work Queue', 'Abandoned Vehicle', 'Abandoned Vehicle - Other', NULL, 'Not associated with a specific address', NULL, NULL, '(0.0, 0.0)', 'Web', NULL, 0.0, 0.0, NULL), (1685526, '2012-11-15 07:44:09+00:00', '2012-11-20 10:19:08+00:00', '2012-11-20 10:19:08+00:00', 'Closed', 'Case Transferred - transfer psr 422268', 'SSP - MTA Feedback Queue', 'MUNI Feedback', 'MUNI  -', NULL, 'Not associated with a specific address', NULL, NULL, '(0.0, 0.0)', 'Web', NULL, 0.0, 0.0, NULL), (1760243, '2012-12-05 12:28:58+00:00', '2012-12-07 08:39:31+00:00', '2012-12-07 08:39:31+00:00', 'Closed', 'Case Transferred - psr 423280', 'SSP - MTA Feedback Queue', 'MUNI Feedback', 'MUNI  -', NULL, 'Not associated with a specific address', NULL, NULL, '(0.0, 0.0)', 'Web', NULL, 0.0, 0.0, NULL), (1905014, '2013-01-17 12:31:09+00:00', '2013-01-18 10:43:39+00:00', '2013-01-18 10:43:39+00:00', 'Closed', 'Case Transferred - psr 425330', 'SSP - MTA Feedback Queue', 'MUNI Feedback', 'MUNI  -', NULL, 'Not associated with a specific address', NULL, NULL, '(0.0, 0.0)', 'Web', NULL, 0.0, 0.0, NULL), (1983977, '2013-02-06 11:27:32+00:00', '2013-02-08 04:35:50+00:00', '2013-02-08 04:35:50+00:00', 'Closed', 'Case Transferred - to PSR #426544', 'SSP - MTA Feedback Queue', 'MUNI Feedback', 'MUNI  -', NULL, 'Not associated with a specific address', NULL, NULL, '(0.0, 0.0)', 'Web', NULL, 0.0, 0.0, NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_sfpd_incidents.sfpd_incidents`
(
  unique_key INT64 NOT NULL OPTIONS(description="The unique incident number for this accident"),
  category STRING OPTIONS(description=""),
  descript STRING OPTIONS(description=""),
  dayofweek STRING OPTIONS(description=""),
  pddistrict STRING OPTIONS(description="Police Department district"),
  resolution STRING OPTIONS(description="Whether there was an arrest, citation, booking, etc."),
  address STRING OPTIONS(description=""),
  longitude FLOAT64 OPTIONS(description=""),
  latitude FLOAT64 OPTIONS(description=""),
  location STRING OPTIONS(description="Latitude/Longitude"),
  pdid INT64 OPTIONS(description="Unique Identifier for use in update and insert operations"),
  timestamp DATETIME OPTIONS(description="")
);

INSERT INTO `bigquery-public-data.san_francisco_sfpd_incidents.sfpd_incidents` (unique_key, category, descript, dayofweek, pddistrict, resolution, address, longitude, latitude, location, pdid, timestamp) VALUES (160076284, 'OTHER OFFENSES', 'POSSESSION OF BURGLARY TOOLS', 'Wednesday', 'BAYVIEW', 'ARREST, BOOKED', '100 Block of DONAHUE ST', -122.37019395493532, 37.72865365980295, 'POINT (-122.37019395493533 37.72865365980295)', 16007628427130, '2016-01-27 03:27:00'), (151069161, 'DRIVING UNDER THE INFLUENCE', 'DRIVING WHILE UNDER THE INFLUENCE OF ALCOHOL', 'Thursday', 'BAYVIEW', 'ARREST, BOOKED', 'DONAHUE ST / KIRKWOOD AV', -122.371274317443, 37.7275640720341, 'POINT (-122.371274317443 37.7275640720341)', 15106916165050, '2015-12-10 17:47:00'), (130996452, 'OTHER OFFENSES', 'VIOLATION OF MUNICIPAL CODE', 'Sunday', 'BAYVIEW', 'NONE', 'DONAHUE ST / KIRKWOOD AV', -122.371274317443, 37.7275640720341, 'POINT (-122.371274317443 37.7275640720341)', 13099645230200, '2013-11-24 12:51:00'), (100104964, 'BURGLARY', 'BURGLARY OF APARTMENT HOUSE, FORCIBLE ENTRY', 'Monday', 'BAYVIEW', 'NONE', '100 Block of DOLPHIN CT', -122.371476348765, 37.7278989368917, 'POINT (-122.371476348765 37.727898936891705)', 10010496405011, '2010-02-01 12:20:00'), (146204980, 'LARCENY/THEFT', 'GRAND THEFT FROM UNLOCKED AUTO', 'Friday', 'BAYVIEW', 'NONE', '100 Block of DOLPHIN CT', -122.371476348765, 37.7278989368917, 'POINT (-122.371476348765 37.727898936891705)', 14620498006224, '2014-10-03 00:20:00');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_transit_muni.stop_times`
(
  stop_id INT64 OPTIONS(description="Identifies the serviced stop. Multiple routes can use the same stop."),
  trip_id INT64 OPTIONS(description="Identifies a trip. Multiple trips can have the same stop"),
  stop_sequence INT64 OPTIONS(description="Identifies the order of the stops for a particular trip. The values for stop_sequence must increase throughout the trip but do not need to be consecutive."),
  arrival_time TIME OPTIONS(description="Specifies the scheduled arrival time at a specific stop for a specific trip on a route."),
  arrives_next_day BOOL OPTIONS(description="Several routes begin before midnight, with service continuing throughout the night. This variable specifies whether arrival_time occurs after midnight the day after the scheduled day.  This is useful for identifying routes that begin one day and end the next day"),
  departure_time TIME OPTIONS(description="Specifies the scheduled departure time at a specific stop for a specific trip on a route."),
  departs_next_day BOOL OPTIONS(description="Several routes begin before midnight, with service continuing throughout the night. This variable specifies whether departure_time occurs after midnight the day after the scheduled day.  This is useful for identifying routes that begin one day and end the next day"),
  dropoff_type STRING OPTIONS(description="\"Indicates whether riders are dropped off at a stop as part of the normal schedule or whether a drop off at the stop isn't available. Available options:  -  regular -  none -  phone (indicates must phone agency to arrange drop off) -  driver (indicates must coordinate with driver to arrange drop off)\""),
  exact_timepoint BOOL OPTIONS(description="Indicates if the specified arrival and departure times for a stop are strictly adhered to by the transit vehicle, or if they're instead approximate or interpolated times.")
);

INSERT INTO `bigquery-public-data.san_francisco_transit_muni.stop_times` (stop_id, trip_id, stop_sequence, arrival_time, arrives_next_day, departure_time, departs_next_day, dropoff_type, exact_timepoint) VALUES (15759, 8951406, 51, '06:54:55', False, '06:54:55', False, 'regular', False), (15761, 8951406, 52, '06:55:33', False, '06:55:33', False, 'regular', False), (15763, 8951406, 53, '06:56:04', False, '06:56:04', False, 'regular', False), (15828, 8951406, 54, '06:57:00', False, '06:57:00', False, 'regular', True), (15759, 8951253, 51, '06:54:55', False, '06:54:55', False, 'regular', False);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_transit_muni.trips`
(
  trip_id STRING OPTIONS(description="Unique identifier for each trip"),
  route_id STRING OPTIONS(description="Unique identifier for each route. A single route will have multiple trips"),
  direction STRING OPTIONS(description="\"Indicates the direction of travel for a trip. The following values are valid:   -  O: Outbound travel -  I: Inbound travel  This field is not used in routing, but instead provides a way to separate trips by direction\""),
  block_id STRING OPTIONS(description="Identifies the block to which the trip belongs. A block consists of a single trip or many sequential trips made with the same vehicle. The trips are grouped into a block by the use of a shared service day andblock_id. A block_id can include trips with different service days, which then makes distinct blocks. For more details, see: https://developers.google.com/transit/gtfs/reference/#example-showing-blocks-and-service-day"),
  service_category STRING OPTIONS(description="Indicates the type of service for this trip"),
  trip_headsign STRING OPTIONS(description="Contains the text that appears on signage that identifies the trip's destination to riders. Use this field to distinguish between different patterns of service on the same route."),
  shape_id STRING OPTIONS(description="Unique identifier for the geospatial shape that describes the vehicle travel for a trip along individual points. Use to JOIN with the shapes available in the shapes table"),
  trip_shape GEOGRAPHY OPTIONS(description="Geographical representation of the trip's entire route.")
);

INSERT INTO `bigquery-public-data.san_francisco_transit_muni.trips` (trip_id, route_id, direction, block_id, service_category, trip_headsign, shape_id, trip_shape) VALUES ('8999876', '83X', 'O', '8301', NULL, 'Caltrain Depot', '174188', NULL), ('8999873', '83X', 'O', '8302', NULL, 'Caltrain Depot', '174188', NULL), ('8999875', '83X', 'O', '8301', NULL, 'Caltrain Depot', '174188', NULL), ('8999872', '83X', 'O', '8302', NULL, 'Caltrain Depot', '174188', NULL), ('8999892', '83X', 'O', '8301', NULL, 'Caltrain Depot', '174188', NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_transit_muni.shapes`
(
  shape_id STRING OPTIONS(description="Uniquely identifies each shape"),
  shape_point_sequence INT64 OPTIONS(description="Associates the latitude and longitude of a shape point with its sequence order along the shape. The values for shape_pt_sequence must increase throughout the trip but don't need to be consecutive."),
  shape_point_lat FLOAT64 OPTIONS(description="Associates a shape point's latitude with a shape ID."),
  shape_point_lon FLOAT64 OPTIONS(description="Associates a shape point's longitude with a shape ID."),
  shape_point_geom GEOGRAPHY OPTIONS(description="Geographic representation of the points latitude and longitude"),
  shape_distance_traveled FLOAT64 OPTIONS(description="Provides the actual distance traveled along the shape from the first shape point to the point specified in this record. This information allows the trip planner to determine how much of the shape to draw when they show part of a trip on the map. The values used for shape_dist_traveled must increase along with shape_pt_sequence: they can't be used to show reverse travel along a route.")
);

INSERT INTO `bigquery-public-data.san_francisco_transit_muni.shapes` (shape_id, shape_point_sequence, shape_point_lat, shape_point_lon, shape_point_geom, shape_distance_traveled) VALUES ('173975', 197, 37.715079, -122.424956, 'POINT(-122.424956 37.715079)', 14437.0), ('173976', 195, 37.715079, -122.424956, 'POINT(-122.424956 37.715079)', 14391.0), ('174183', 283, 37.832971, -122.538276, 'POINT(-122.538276 37.832971)', 21512.0), ('174271', 92, 37.760837, -122.440596, 'POINT(-122.440596 37.760837)', 5348.0), ('174272', 185, 37.760837, -122.440596, 'POINT(-122.440596 37.760837)', 6161.0);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_transit_muni.stops`
(
  stop_id STRING OPTIONS(description="Unique identifier for each stop"),
  stop_name STRING OPTIONS(description="Full text name of the  transit stop"),
  stop_lat FLOAT64 OPTIONS(description="Latitude of the stop"),
  stop_lon FLOAT64 OPTIONS(description="Longitude of the stop"),
  stop_geom GEOGRAPHY OPTIONS(description="Geographic representation of the stop's position")
);

INSERT INTO `bigquery-public-data.san_francisco_transit_muni.stops` (stop_id, stop_name, stop_lat, stop_lon, stop_geom) VALUES ('15829', '100 O''Shaughnessy Blvd', 37.744481, -122.450678, 'POINT(-122.450678 37.744481)'), ('14343', '101 Dakota St', 37.75374, -122.39565, 'POINT(-122.39565 37.75374)'), ('14122', '1095 CONNECTICUT ST', 37.753902, -122.397341, 'POINT(-122.397341 37.753902)'), ('13230', '10th Ave & Ortega St', 37.752724, -122.466502, 'POINT(-122.466502 37.752724)'), ('13231', '10th Ave & Pacheco St', 37.75086, -122.466376, 'POINT(-122.466376 37.75086)');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_transit_muni.calendar`
(
  service_id STRING OPTIONS(description="Unique identifier for a set of dates when service is available for one or more routes"),
  service_desc STRING OPTIONS(description="Text description of service category"),
  sunday BOOL OPTIONS(description="Indicates whether the service is valid for all Sundays operating on the agency is using normal schedules and fare categories"),
  monday BOOL OPTIONS(description="Indicates whether the service is valid for all Sundays operating on the agency is using normal schedules and fare categories"),
  tuesday BOOL OPTIONS(description="Indicates whether the service is valid for all Sundays operating on the agency is using normal schedules and fare categories"),
  wednesday BOOL OPTIONS(description="Indicates whether the service is valid for all Sundays operating on the agency is using normal schedules and fare categories"),
  thursday BOOL OPTIONS(description="Indicates whether the service is valid for all Sundays operating on the agency is using normal schedules and fare categories"),
  friday BOOL OPTIONS(description="Indicates whether the service is valid for all Sundays operating on the agency is using normal schedules and fare categories"),
  saturday BOOL OPTIONS(description="Indicates whether the service is valid for all Sundays operating on the agency is using normal schedules and fare categories"),
  exceptions DATE OPTIONS(description="Specifies a particular date when this service is not available. This is typically during holidays, special events, etc. If applicable, the operating service for the day is indicated in replacement_service. Format for the date is YYYY-MM-DD"),
  exception_type BOOL OPTIONS(description="Indicates whether service is available on the date specified in the exceptions field. The following are valid values for this field:  - TRUE: Service will be operating during the date listed in the column exceptions -  FALSE: Service will not be operating during the date listed in the column exceptions")
);

INSERT INTO `bigquery-public-data.san_francisco_transit_muni.calendar` (service_id, service_desc, sunday, monday, tuesday, wednesday, thursday, friday, saturday, exceptions, exception_type) VALUES ('73692', 'Weekday', True, True, True, True, True, False, False, '2019-12-25', False), ('73692', 'Weekday', True, True, True, True, True, False, False, '2020-01-01', False), ('73692', 'Weekday', True, True, True, True, True, False, False, '2020-01-20', False), ('73692', 'Weekday', True, True, True, True, True, False, False, '2020-02-17', False), ('73693', 'Saturday', False, False, False, False, False, True, False, '2020-01-20', True);