nl2sqlproj/spider2-nl2sql huggingface dataset:
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_subway.station_entrances`
(
  division STRING,
  line STRING,
  station_name STRING,
  station_lat FLOAT64,
  station_lon FLOAT64,
  route_1 STRING,
  route_2 STRING,
  route_3 STRING,
  route_4 STRING,
  route_5 STRING,
  route_6 STRING,
  route_7 STRING,
  route_8 STRING,
  route_9 STRING,
  route_10 STRING,
  route_11 STRING,
  entrance_type STRING,
  staff STRING,
  staff_hours STRING,
  ada_notes STRING,
  free_crossover BOOL,
  north_south_street STRING,
  east_west_street STRING,
  corner STRING,
  entrance_lat FLOAT64,
  entrance_lon FLOAT64,
  entry BOOL,
  exit_only BOOL,
  vending BOOL,
  ada_compliant BOOL,
  station_geom GEOGRAPHY,
  entrance_geom GEOGRAPHY
)
PARTITION BY DATE(_PARTITIONTIME)
CLUSTER BY station_name, ada_compliant, corner, division;

INSERT INTO `bigquery-public-data.new_york_subway.station_entrances` (division, line, station_name, station_lat, station_lon, route_1, route_2, route_3, route_4, route_5, route_6, route_7, route_8, route_9, route_10, route_11, entrance_type, staff, staff_hours, ada_notes, free_crossover, north_south_street, east_west_street, corner, entrance_lat, entrance_lon, entry, exit_only, vending, ada_compliant, station_geom, entrance_geom, _PARTITIONTIME) VALUES ('IRT', 'Clark', 'Wall St', 40.706821, -74.0091, '2', '3', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Stair', 'FULL', NULL, NULL, True, 'William St', 'Wall St', 'NW', 40.706506, -74.009544, True, False, True, False, 'POINT(-74.0091 40.706821)', 'POINT(-74.0091 40.706821)', NULL), ('IRT', 'Clark', 'Wall St', 40.706821, -74.0091, '2', '3', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Stair', 'FULL', NULL, NULL, True, 'William St', 'Wall St', 'NE', 40.706392, -74.009332, True, False, True, False, 'POINT(-74.0091 40.706821)', 'POINT(-74.0091 40.706821)', NULL), ('IRT', 'Clark', 'Wall St', 40.706821, -74.0091, '2', '3', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Stair', 'NONE', NULL, NULL, True, 'William St', 'Wall St', 'SE', 40.706272, -74.009447, True, False, True, False, 'POINT(-74.0091 40.706821)', 'POINT(-74.0091 40.706821)', NULL), ('IRT', 'Clark', 'Wall St', 40.706821, -74.0091, '2', '3', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Stair', 'NONE', NULL, NULL, True, 'William St', 'Pine St', 'SE', 40.706755, -74.008804, True, False, True, False, 'POINT(-74.0091 40.706821)', 'POINT(-74.0091 40.706821)', NULL), ('IRT', 'Clark', 'Wall St', 40.706821, -74.0091, '2', '3', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Stair', 'NONE', NULL, NULL, True, 'William St', 'Wall St', 'SW', 40.706385, -74.009658, True, False, True, False, 'POINT(-74.0091 40.706821)', 'POINT(-74.0091 40.706821)', NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_subway.routes`
(
  route_id STRING,
  route_short_name STRING,
  route_long_name STRING,
  route_describe STRING,
  route_type STRING
)
PARTITION BY DATE(_PARTITIONTIME)
CLUSTER BY route_id, route_short_name, route_type;

INSERT INTO `bigquery-public-data.new_york_subway.routes` (route_id, route_short_name, route_long_name, route_describe, route_type, _PARTITIONTIME) VALUES ('GS', 'S', '42 St Shuttle', 'Operates in Manhattan between Grand Central and Times Square. The shuttle provides a free transfer between 4, 5, 6, and 7 service at Grand Central-42 St and A, C, E, N, Q, R, W, 1, 2, 3, and 7 service at Times Square-42 St. The shuttle runs at all times except during late nights, from about 12 midnight to 6 AM.', '1', NULL), ('C', 'C', '8 Avenue Local', 'Trains operate between 168 St, Manhattan, and Euclid Av, Brooklyn, daily from about 6 AM to 11 PM.', '1', NULL), ('E', 'E', '8 Avenue Local', 'Trains operate between Jamaica Center (Parsons/Archer), Queens, and World Trade Center, Manhattan, at all times. E trains operate express in Queens at all times except late nights when they operate local.', '1', NULL), ('W', 'W', 'Broadway Local', 'Trains operate from Astoria-Ditmars Boulevard, Queens, to Whitehall St, Manhattan, on weekdays only.', '1', NULL), ('N', 'N', 'Broadway Local', 'Trains operate from Astoria-Ditmars Boulevard, Queens, to Stillwell Avenue, Brooklyn, at all times. N trains in Manhattan operate along Broadway and across the Manhattan Bridge to and from Brooklyn. Trains in Brooklyn operate along 4th Avenue, then through Borough Park and Gravesend. Trains typically operate local in Queens and express in Manhattan and Brooklyn. Late night trains operate local in Manhattan and to/from Brooklyn via Whitehall St, Manhattan. Weekends N trains operate local in Manhattan.', '1', NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_trees.tree_species`
(
  species_scientific_name STRING OPTIONS(description=""),
  species_common_name STRING OPTIONS(description=""),
  form STRING OPTIONS(description=""),
  growth_rate STRING OPTIONS(description=""),
  fall_color STRING OPTIONS(description=""),
  environmental_tolerances STRING OPTIONS(description=""),
  location_tolerances STRING OPTIONS(description=""),
  notes_suggested_cultivars STRING OPTIONS(description=""),
  tree_size STRING OPTIONS(description=""),
  comments STRING OPTIONS(description="")
);

INSERT INTO `bigquery-public-data.new_york_trees.tree_species` (species_scientific_name, species_common_name, form, growth_rate, fall_color, environmental_tolerances, location_tolerances, notes_suggested_cultivars, tree_size, comments) VALUES ('Quercus phellos', 'Willow Oak', 'Rounded', 'Slow', 'Yellow/Orange', 'Drought and Pollution Tolerant', 'Median Tree', 'Plant Spring Only', 'Large (Mature Height > 50 ft)', ''), ('Cotinus sp.', 'Smoke Tree', 'Rounded', 'Slow', 'Red/Bronze', 'none', 'Small Tree Pit (<3 ft)', '''Royal Purple'' or ''Grace''', 'Small (Mature Height < 25 ft)', ''), ('Prunus sargentii', 'Sargent Cherry', 'Rounded', 'Slow', 'Red/Bronze', 'none', 'Small Tree Pit (<3 ft)', '''Accolade'' is Semi–double Flowering;', 'Small (Mature Height < 25 ft)', ''), ('Prunus padus', 'European Birdcherry', 'Rounded', 'Slow', 'Yellow/Bronze', 'none', 'Small Tree Pit (<3 ft)', 'One of the First Trees to Leaf Out in the Spring', 'Small (Mature Height < 25 ft)', ''), ('Prunus serrulata ''Kwanzan''', 'Japanese Flowering Cherry', 'Rounded', 'Slow', 'Red/Orange', 'none', 'Small Tree Pit (<3 ft)', 'Double–flowering', 'Small (Mature Height < 25 ft)', '');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_taxi_trips.tlc_fhv_trips_2015`
(
  location_id INT64 OPTIONS(description="The TLC taxi zone of the trip pick-up"),
  pickup_datetime DATETIME OPTIONS(description="The date and time of the trip pick-up."),
  dispatching_base_num STRING OPTIONS(description="The TLC Base License Number of the base that dispatched the trip."),
  borough STRING OPTIONS(description="This is Pickup borough"),
  zone STRING OPTIONS(description="This is Pickup zone"),
  service_zone STRING OPTIONS(description="This is Pickup service_zone")
);

INSERT INTO `bigquery-public-data.new_york_taxi_trips.tlc_fhv_trips_2015` (location_id, pickup_datetime, dispatching_base_num, borough, zone, service_zone) VALUES (NULL, '2015-12-13 15:25:00', 'B00001', '', '', ''), (NULL, '2015-07-07 18:30:00', 'B00001', '', '', ''), (NULL, '2015-06-14 17:00:00', 'B00001', '', '', ''), (NULL, '2015-05-04 07:00:00', 'B00001', '', '', ''), (NULL, '2015-05-24 10:00:00', 'B00001', '', '', '');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_taxi_trips.tlc_yellow_trips_2023`
(
  vendor_id STRING NOT NULL OPTIONS(description="A code indicating the LPEP provider that provided the record. 1= Creative Mobile Technologies, LLC; 2= VeriFone Inc."),
  pickup_datetime TIMESTAMP OPTIONS(description="The date and time when the meter was engaged"),
  dropoff_datetime TIMESTAMP OPTIONS(description="The date and time when the meter was disengaged"),
  passenger_count INT64 OPTIONS(description="The number of passengers in the vehicle. This is a driver-entered value."),
  trip_distance NUMERIC OPTIONS(description="The elapsed trip distance in miles reported by the taximeter."),
  rate_code STRING OPTIONS(description="The final rate code in effect at the end of the trip. 1= Standard rate 2=JFK 3=Newark 4=Nassau or Westchester 5=Negotiated fare 6=Group ride"),
  store_and_fwd_flag STRING OPTIONS(description="This flag indicates whether the trip record was held in vehicle memory before sending to the vendor, aka 'store and forward,' because the vehicle did not have a connection to the server. Y= store and forward trip N= not a store and forward trip"),
  payment_type STRING OPTIONS(description="A numeric code signifying how the passenger paid for the trip. 1= Credit card 2= Cash 3= No charge 4= Dispute 5= Unknown 6= Voided trip"),
  fare_amount NUMERIC OPTIONS(description="The time-and-distance fare calculated by the meter"),
  extra NUMERIC OPTIONS(description="Miscellaneous extras and surcharges. Currently, this only includes the $0.50 and $1 rush hour and overnight charges"),
  mta_tax NUMERIC OPTIONS(description="$0.50 MTA tax that is automatically triggered based on the metered rate in use"),
  tip_amount NUMERIC OPTIONS(description="Tip amount. This field is automatically populated for credit card tips. Cash tips are not included."),
  tolls_amount NUMERIC OPTIONS(description="Total amount of all tolls paid in trip."),
  imp_surcharge NUMERIC OPTIONS(description="$0.30 improvement surcharge assessed on hailed trips at the flag drop. The improvement surcharge began being levied in 2015."),
  total_amount NUMERIC OPTIONS(description="The total amount charged to passengers. Does not include cash tips."),
  pickup_location_id STRING OPTIONS(description="TLC Taxi Zone in which the taximeter was engaged"),
  dropoff_location_id STRING OPTIONS(description="TLC Taxi Zone in which the taximeter was disengaged"),
  data_file_year INT64 OPTIONS(description="Datafile timestamp year value"),
  data_file_month INT64 OPTIONS(description="Datafile timestamp month value")
);

INSERT INTO `bigquery-public-data.new_york_taxi_trips.tlc_yellow_trips_2023` (vendor_id, pickup_datetime, dropoff_datetime, passenger_count, trip_distance, rate_code, store_and_fwd_flag, payment_type, fare_amount, extra, mta_tax, tip_amount, tolls_amount, imp_surcharge, total_amount, pickup_location_id, dropoff_location_id, data_file_year, data_file_month) VALUES ;
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_taxi_trips.tlc_fhv_trips_2017`
(
  location_id INT64 OPTIONS(description="The TLC taxi zone of the trip pick-up"),
  pickup_datetime DATETIME OPTIONS(description="The date and time of the trip pick-up."),
  dispatching_base_num STRING OPTIONS(description="The TLC Base License Number of the base that dispatched the trip."),
  borough STRING OPTIONS(description="This is Pickup borough"),
  zone STRING OPTIONS(description="This is Pickup zone"),
  service_zone STRING OPTIONS(description="This is Pickup service_zone"),
  dropoff_datetime DATETIME OPTIONS(description=""),
  dropoff_location_id INT64 OPTIONS(description=""),
  dropoff_borough STRING OPTIONS(description=""),
  dropoff_zone STRING OPTIONS(description=""),
  dropoff_service_zone STRING OPTIONS(description="")
);

INSERT INTO `bigquery-public-data.new_york_taxi_trips.tlc_fhv_trips_2017` (location_id, pickup_datetime, dispatching_base_num, borough, zone, service_zone, dropoff_datetime, dropoff_location_id, dropoff_borough, dropoff_zone, dropoff_service_zone) VALUES (NULL, '2017-04-25 05:47:00', 'B01536', '', '', '', 'NaT', NULL, '', '', ''), (NULL, '2017-11-11 10:47:24', 'B02914', '', '', '', '2017-11-11 10:58:56', NULL, '', '', ''), (NULL, '2017-04-30 11:01:00', 'B00948', '', '', '', 'NaT', NULL, '', '', ''), (NULL, '2017-03-31 20:40:00', 'B02834', '', '', '', 'NaT', NULL, '', '', ''), (NULL, '2017-02-03 16:33:00', 'B01536', '', '', '', 'NaT', NULL, '', '', '');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_taxi_trips.tlc_fhv_trips_2016`
(
  location_id INT64 OPTIONS(description="The TLC taxi zone of the trip pick-up"),
  pickup_datetime DATETIME OPTIONS(description="The date and time of the trip pick-up."),
  dispatching_base_num STRING OPTIONS(description="The TLC Base License Number of the base that dispatched the trip."),
  borough STRING OPTIONS(description="This is Pickup borough"),
  zone STRING OPTIONS(description="This is Pickup zone"),
  service_zone STRING OPTIONS(description="This is Pickup service_zone")
);

INSERT INTO `bigquery-public-data.new_york_taxi_trips.tlc_fhv_trips_2016` (location_id, pickup_datetime, dispatching_base_num, borough, zone, service_zone) VALUES (NULL, '2016-04-03 23:59:00', 'B00001', '', '', ''), (NULL, '2016-05-30 08:15:00', 'B00001', '', '', ''), (NULL, '2016-01-05 18:45:00', 'B00001', '', '', ''), (NULL, '2016-01-21 17:30:00', 'B00001', '', '', ''), (NULL, '2016-01-10 20:06:00', 'B00001', '', '', '');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.new_york_citibike.citibike_trips`
(
  tripduration INT64 OPTIONS(description="Trip Duration (in seconds)"),
  starttime DATETIME OPTIONS(description="Start Time, in NYC local time."),
  stoptime DATETIME OPTIONS(description="Stop Time, in NYC local time."),
  start_station_id INT64 OPTIONS(description="Start Station ID"),
  start_station_name STRING OPTIONS(description="Start Station Name"),
  start_station_latitude FLOAT64 OPTIONS(description="Start Station Latitude"),
  start_station_longitude FLOAT64 OPTIONS(description="Start Station Longitude"),
  end_station_id INT64 OPTIONS(description="End Station ID"),
  end_station_name STRING OPTIONS(description="End Station Name"),
  end_station_latitude FLOAT64 OPTIONS(description="End Station Latitude"),
  end_station_longitude FLOAT64 OPTIONS(description="End Station Longitude"),
  bikeid INT64 OPTIONS(description="Bike ID"),
  usertype STRING OPTIONS(description="User Type (Customer = 24-hour pass or 7-day pass user, Subscriber = Annual Member)"),
  birth_year INT64 OPTIONS(description="Year of Birth"),
  gender STRING OPTIONS(description="Gender (unknown, male, female)"),
  customer_plan STRING OPTIONS(description="The name of the plan that determines the rate charged for the trip")
);

INSERT INTO `bigquery-public-data.new_york_citibike.citibike_trips` (tripduration, starttime, stoptime, start_station_id, start_station_name, start_station_latitude, start_station_longitude, end_station_id, end_station_name, end_station_latitude, end_station_longitude, bikeid, usertype, birth_year, gender, customer_plan) VALUES (NULL, 'NaT', 'NaT', NULL, '', nan, nan, NULL, '', nan, nan, NULL, '', NULL, '', ''), (NULL, 'NaT', 'NaT', NULL, '', nan, nan, NULL, '', nan, nan, NULL, '', NULL, '', ''), (NULL, 'NaT', 'NaT', NULL, '', nan, nan, NULL, '', nan, nan, NULL, '', NULL, '', ''), (NULL, 'NaT', 'NaT', NULL, '', nan, nan, NULL, '', nan, nan, NULL, '', NULL, '', ''), (NULL, 'NaT', 'NaT', NULL, '', nan, nan, NULL, '', nan, nan, NULL, '', NULL, '', '');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.eclipse_megamovie.astrometry_rdls_v_0_4`
(
  id STRING,
  RA FLOAT64,
  DEC FLOAT64
);

INSERT INTO `bigquery-public-data.eclipse_megamovie.astrometry_rdls_v_0_4` (id, RA, DEC) VALUES ('ce4b734fc9a84af8480caad1c0912278b59df446f063486ecf52e1b72b3a583b', 150.17478600307095, 17.567931987208794), ('9ebd03df4d25114ab5d35e35182e19d430759b94c48c581e2b9d4dc29e667cb3', 150.17478600307095, 17.567931987208794), ('999e2df2e0b6f51de921a10f640144bcad5bd3f317421cb8717e73b4bc7328c1', 150.17478600307095, 17.567931987208794), ('46322512242282fe832a3bd60aa3cf3b737f76b2fa6bc8125316b03611d942c0', 150.17478600307095, 17.567931987208794), ('544b0e917c506418c2535fbaa1e96f997701565716e55e2668585ad7a9e5447a', 150.17478600307095, 17.567931987208794);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.eclipse_megamovie.astrometry_index_v_0_4`
(
  id STRING,
  X FLOAT64,
  Y FLOAT64
);

INSERT INTO `bigquery-public-data.eclipse_megamovie.astrometry_index_v_0_4` (id, X, Y) VALUES ('0017db281c6e70df06091532370a70bc83032438f6764a9a78aa6c437f812430', 1297.3620597183176, 2983.658358768668), ('0017db281c6e70df06091532370a70bc83032438f6764a9a78aa6c437f812430', 705.9556861080437, 1884.7923325319289), ('0017db281c6e70df06091532370a70bc83032438f6764a9a78aa6c437f812430', 759.4307440013395, 1841.5400416278037), ('0017db281c6e70df06091532370a70bc83032438f6764a9a78aa6c437f812430', 4112.220648139002, 596.8256923985198), ('0017db281c6e70df06091532370a70bc83032438f6764a9a78aa6c437f812430', 4330.838976545725, 2063.916811417404);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.eclipse_megamovie.astrometry_corr_v_0_4`
(
  index_id INT64,
  field_ra FLOAT64,
  field_y FLOAT64,
  index_dec FLOAT64,
  field_id INT64,
  id STRING,
  BACKGROUND FLOAT64,
  field_x FLOAT64,
  index_x FLOAT64,
  index_y FLOAT64,
  FLUX FLOAT64,
  index_ra FLOAT64,
  field_dec FLOAT64,
  match_weight FLOAT64
);

INSERT INTO `bigquery-public-data.eclipse_megamovie.astrometry_corr_v_0_4` (index_id, field_ra, field_y, index_dec, field_id, id, BACKGROUND, field_x, index_x, index_y, FLUX, index_ra, field_dec, match_weight) VALUES (84, 144.56711916886826, 393.1032409667969, 12.736253991109848, 441, '9ebd03df4d25114ab5d35e35182e19d430759b94c48c581e2b9d4dc29e667cb3', 76.39909362792969, 6234.71875, 6234.903557313227, 393.0832421046689, 1.9159088134765625, 144.56690899364185, 12.73648611344751, 0.9978395466920116), (47, 144.8218681490035, 1462.72900390625, 13.312603011878483, 6, '338318b931d90dfb7bad1bdeb2bec405b3f7e49f139160b2c80fd639fe1fb655', 54.087100982666016, 799.48974609375, 800.9291866263275, 1463.4997199682418, 51.86190414428711, 144.82178200756607, 13.313923163569392, 0.9998885253533747), (6, 147.24980490858707, 1963.451904296875, 12.09638100877288, 2, '1433ad8861a423ae81ef770f5d39eb1254bb53061d208dc05585bd4cd1424f7c', 448.43994140625, 2813.794921875, 2814.4234072944273, 1963.1564315211701, 2540.363037109375, 147.24986199521666, 12.096619337558728, 0.9999897801245938), (34, 147.2494471741628, 1807.5, 12.09638100877288, 0, '81293752c0a7e2cc62db3522036d71a52d2eb1989d363ba59ef2e8709a4217a2', 1659.88671875, 2753.5, 2752.3588853602087, 1808.0479799499778, 63165.5390625, 147.24986199521666, 12.095320232984513, 0.9999600220551086), (38, 147.24988338429668, 4729.78515625, 12.09638100877288, 4, '338318b931d90dfb7bad1bdeb2bec405b3f7e49f139160b2c80fd639fe1fb655', 40.29490661621094, 510.6537170410156, 511.8196863831971, 4730.492372244495, 75.62533569335938, 147.24986199521666, 12.097485617605203, 0.9998790113522937);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.census_bureau_international.midyear_population_agespecific`
(
  country_code STRING NOT NULL OPTIONS(description="Federal Information Processing Standard (FIPS) country/area code"),
  country_name STRING OPTIONS(description="Country or area name"),
  year INT64 NOT NULL OPTIONS(description="Year"),
  sex STRING OPTIONS(description="Gender"),
  population INT64 OPTIONS(description="Total count of individuals"),
  age INT64 OPTIONS(description="Age in years")
)
OPTIONS(
  labels=[("freebqcovid", "")]
);

INSERT INTO `bigquery-public-data.census_bureau_international.midyear_population_agespecific` (country_code, country_name, year, sex, population, age) VALUES ('NR', 'Nauru', 2001, 'Male', 152, 0), ('NR', 'Nauru', 2001, 'Male', 126, 1), ('NR', 'Nauru', 2001, 'Male', 132, 2), ('NR', 'Nauru', 2001, 'Male', 140, 3), ('NR', 'Nauru', 2001, 'Male', 153, 4);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.census_bureau_international.country_names_area`
(
  country_code STRING NOT NULL OPTIONS(description="Federal Information Processing Standard (FIPS) country/area code"),
  country_name STRING OPTIONS(description="Country or area name"),
  country_area FLOAT64 OPTIONS(description="Area in square kilometers")
)
OPTIONS(
  labels=[("freebqcovid", "")]
);

INSERT INTO `bigquery-public-data.census_bureau_international.country_names_area` (country_code, country_name, country_area) VALUES ('AF', 'Afghanistan', 652230.0), ('AL', 'Albania', 27398.0), ('AG', 'Algeria', 2381741.0), ('AQ', 'American Samoa', 198.0), ('AN', 'Andorra', 468.0);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.census_bureau_international.mortality_life_expectancy`
(
  country_code STRING NOT NULL OPTIONS(description="Federal Information Processing Standard (FIPS) country/area code"),
  country_name STRING OPTIONS(description="Country or area name"),
  year INT64 NOT NULL OPTIONS(description="Year"),
  infant_mortality FLOAT64 OPTIONS(description="Both sexes infant mortality rate (infant deaths per 1,000 population)"),
  infant_mortality_male FLOAT64 OPTIONS(description="Male infant mortality rate (infant deaths per 1,000 population)"),
  infant_mortality_female FLOAT64 OPTIONS(description="Female infant mortality rate (infant deaths per 1,000 population)"),
  life_expectancy FLOAT64 OPTIONS(description="Both sexes life expectancy at birth (years)"),
  life_expectancy_male FLOAT64 OPTIONS(description="Male life expectancy at birth (years)"),
  life_expectancy_female FLOAT64 OPTIONS(description="Female life expectancy at birth (years)"),
  mortality_rate_under5 FLOAT64 OPTIONS(description="Both sexes under-5 mortality rate (probability of dying between ages 0 and 5)"),
  mortality_rate_under5_male FLOAT64 OPTIONS(description="Male sexes under-5 mortality rate (probability of dying between ages 0 and 5)"),
  mortality_rate_under5_female FLOAT64 OPTIONS(description="Female sexes under-5 mortality rate (probability of dying between ages 0 and 5)"),
  mortality_rate_1to4 FLOAT64 OPTIONS(description="Both sexes child mortality rate (probability of dying between ages 1 and 4)"),
  mortality_rate_1to4_male FLOAT64 OPTIONS(description="Male sexes child mortality rate (probability of dying between ages 1 and 4)"),
  mortality_rate_1to4_female FLOAT64 OPTIONS(description="Female sexes child mortality rate (probability of dying between ages 1 and 4)")
)
OPTIONS(
  labels=[("freebqcovid", "")]
);

INSERT INTO `bigquery-public-data.census_bureau_international.mortality_life_expectancy` (country_code, country_name, year, infant_mortality, infant_mortality_male, infant_mortality_female, life_expectancy, life_expectancy_male, life_expectancy_female, mortality_rate_under5, mortality_rate_under5_male, mortality_rate_under5_female, mortality_rate_1to4, mortality_rate_1to4_male, mortality_rate_1to4_female) VALUES ('AA', 'Aruba', 1981, 23.3, 26.09, 20.56, 72.86, 69.09, 76.56, 26.05, 29.25, 22.91, 2.82, 3.24, 2.4), ('AA', 'Aruba', 1982, 23.04, 26.1, 20.05, 72.88, 69.14, 76.55, 25.79, 29.31, 22.36, 2.82, 3.3, 2.36), ('AA', 'Aruba', 1983, 22.79, 26.1, 19.55, 72.9, 69.19, 76.53, 25.56, 29.37, 21.83, 2.83, 3.36, 2.33), ('AA', 'Aruba', 1984, 22.55, 26.1, 19.06, 72.91, 69.24, 76.51, 25.34, 29.44, 21.31, 2.85, 3.43, 2.29), ('AA', 'Aruba', 1985, 22.31, 26.1, 18.58, 72.92, 69.29, 76.49, 25.12, 29.51, 20.8, 2.87, 3.5, 2.26);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.census_bureau_international.birth_death_growth_rates`
(
  country_code STRING NOT NULL OPTIONS(description="Federal Information Processing Standard (FIPS) country/area code"),
  country_name STRING OPTIONS(description="Country or area name"),
  year INT64 NOT NULL OPTIONS(description="Year"),
  crude_birth_rate FLOAT64 OPTIONS(description="Crude birth rate (births per 1,000 population)"),
  crude_death_rate FLOAT64 OPTIONS(description="Crude death rate (deaths per 1,000 population)"),
  net_migration FLOAT64 OPTIONS(description="Net migration rate (net number of migrants per 1,000 population)"),
  rate_natural_increase FLOAT64 OPTIONS(description="Rate of natural increase (percent)"),
  growth_rate FLOAT64 OPTIONS(description="Growth rate (percent)")
)
OPTIONS(
  labels=[("freebqcovid", "")]
);

INSERT INTO `bigquery-public-data.census_bureau_international.birth_death_growth_rates` (country_code, country_name, year, crude_birth_rate, crude_death_rate, net_migration, rate_natural_increase, growth_rate) VALUES ('CD', 'Chad', 1993, 47.8, 18.71, -23.09, 2.909, 0.6), ('CD', 'Chad', 1994, 47.71, 18.31, -0.2, 2.94, 2.92), ('CD', 'Chad', 1995, 48.02, 17.9, 21.95, 3.012, 5.207), ('CD', 'Chad', 1996, 48.35, 17.51, -0.14, 3.084, 3.07), ('CD', 'Chad', 1997, 48.74, 17.25, 0.18, 3.149, 3.168);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.census_bureau_international.age_specific_fertility_rates`
(
  country_code STRING NOT NULL OPTIONS(description="Federal Information Processing Standard (FIPS) country/area code"),
  country_name STRING OPTIONS(description="Country or area name"),
  year INT64 NOT NULL OPTIONS(description="Year"),
  fertility_rate_15_19 FLOAT64 OPTIONS(description="Age specific fertility rate for age 15-19 (births per 1,000 population)"),
  fertility_rate_20_24 FLOAT64 OPTIONS(description="Age specific fertility rate for age 20-24 (births per 1,000 population)"),
  fertility_rate_25_29 FLOAT64 OPTIONS(description="Age specific fertility rate for age 25-29 (births per 1,000 population)"),
  fertility_rate_30_34 FLOAT64 OPTIONS(description="Age specific fertility rate for age 30-34 (births per 1,000 population)"),
  fertility_rate_35_39 FLOAT64 OPTIONS(description="Age specific fertility rate for age 35-39 (births per 1,000 population)"),
  fertility_rate_40_44 FLOAT64 OPTIONS(description="Age specific fertility rate for age 40-44 (births per 1,000 population)"),
  fertility_rate_45_49 FLOAT64 OPTIONS(description="Age specific fertility rate for age 45-49 (births per 1,000 population)"),
  total_fertility_rate FLOAT64 OPTIONS(description="Total fertility rate (lifetime births per woman)"),
  gross_reproduction_rate FLOAT64 OPTIONS(description="Gross reproduction rate (lifetime female births per woman)"),
  sex_ratio_at_birth FLOAT64 OPTIONS(description="Sex ratio at birth (male births per female birth)")
)
OPTIONS(
  labels=[("freebqcovid", "")]
);

INSERT INTO `bigquery-public-data.census_bureau_international.age_specific_fertility_rates` (country_code, country_name, year, fertility_rate_15_19, fertility_rate_20_24, fertility_rate_25_29, fertility_rate_30_34, fertility_rate_35_39, fertility_rate_40_44, fertility_rate_45_49, total_fertility_rate, gross_reproduction_rate, sex_ratio_at_birth) VALUES ('AA', 'Aruba', 1981, 39.0, 118.0, 118.0, 75.0, 30.0, 6.0, 1.0, 1.935, 0.9762, 0.9822), ('AA', 'Aruba', 1982, 41.8, 119.9, 119.3, 76.1, 30.7, 6.0, 0.9, 1.9737, 0.9963, 0.9811), ('AA', 'Aruba', 1983, 44.6, 121.9, 120.6, 77.2, 31.4, 6.0, 0.8, 2.0124, 1.0155, 0.9817), ('AA', 'Aruba', 1984, 47.5, 123.9, 121.8, 78.2, 32.1, 6.0, 0.7, 2.0511, 1.0348, 0.9822), ('AA', 'Aruba', 1985, 50.3, 125.8, 123.1, 79.3, 32.8, 6.0, 0.6, 2.0898, 1.0552, 0.9804);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.census_bureau_international.midyear_population_5yr_age_sex`
(
  country_code STRING NOT NULL OPTIONS(description="Federal Information Processing Standard (FIPS) country/area code"),
  country_name STRING OPTIONS(description="Country or area name"),
  year INT64 NOT NULL OPTIONS(description="Year"),
  total_flag STRING OPTIONS(description="Total flag: \"*\"=Total, all ages; \"A\"=Individual age group"),
  starting_age INT64 OPTIONS(description="Starting age (0 to 100)"),
  age_group_indicator STRING OPTIONS(description="Age group indicator: \"-\"=5-year age group; \"+\"=open-ended age group"),
  ending_age INT64 OPTIONS(description="Ending age (4 to 99; set to 0 if G=\"+\")"),
  midyear_population INT64 OPTIONS(description="Both sexes midyear population in the age group"),
  midyear_population_male INT64 OPTIONS(description="Male midyear population in the age group"),
  midyear_population_female INT64 OPTIONS(description="Female midyear population in the age group")
)
OPTIONS(
  labels=[("freebqcovid", "")]
);

INSERT INTO `bigquery-public-data.census_bureau_international.midyear_population_5yr_age_sex` (country_code, country_name, year, total_flag, starting_age, age_group_indicator, ending_age, midyear_population, midyear_population_male, midyear_population_female) VALUES ('AA', 'Aruba', 1981, '*', 0, '+', 0, 60308, 29332, 30976), ('AA', 'Aruba', 1982, '*', 0, '+', 0, 61043, 29669, 31374), ('AA', 'Aruba', 1983, '*', 0, '+', 0, 62019, 30134, 31885), ('AA', 'Aruba', 1984, '*', 0, '+', 0, 62683, 30432, 32251), ('AA', 'Aruba', 1985, '*', 0, '+', 0, 61511, 29750, 31761);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.census_bureau_international.midyear_population`
(
  country_code STRING NOT NULL OPTIONS(description="Federal Information Processing Standard (FIPS) country/area code"),
  country_name STRING OPTIONS(description="Country or area name"),
  year INT64 NOT NULL OPTIONS(description="Year"),
  midyear_population INT64 OPTIONS(description="Both sexes midyear population")
)
OPTIONS(
  labels=[("freebqcovid", "")]
);

INSERT INTO `bigquery-public-data.census_bureau_international.midyear_population` (country_code, country_name, year, midyear_population) VALUES ('AA', 'Aruba', 1950, 49712), ('AA', 'Aruba', 1951, 51335), ('AA', 'Aruba', 1952, 51955), ('AA', 'Aruba', 1953, 52585), ('AA', 'Aruba', 1954, 53220);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.observation_period`
(
  observation_period_id INT64,
  person_id INT64,
  observation_period_start_date DATE,
  observation_period_end_date DATE,
  period_type_concept_id INT64
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.observation_period` (observation_period_id, person_id, observation_period_start_date, observation_period_end_date, period_type_concept_id) VALUES (1497834, 1660992, '2008-07-20', '2010-08-27', 44814722), (1012030, 1122314, '2008-07-20', '2010-08-27', 44814722), (484874, 537741, '2008-07-20', '2010-08-28', 44814722), (837212, 928457, '2008-07-20', '2010-08-28', 44814722), (1928933, 2138959, '2008-07-20', '2010-08-29', 44814722);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.domain`
(
  domain_id STRING NOT NULL,
  domain_name STRING NOT NULL,
  domain_concept_id INT64 NOT NULL
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.domain` (domain_id, domain_name, domain_concept_id) VALUES ('Condition', 'Condition', 19), ('Condition/Device', 'Condition/Device', 235), ('Condition/Drug', 'Condition/Drug', 53), ('Condition/Meas', 'Condition/Measurement', 47), ('Condition/Obs', 'Condition/Observation', 48);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.concept`
(
  concept_id INT64,
  concept_name STRING,
  domain_id STRING,
  vocabulary_id STRING,
  concept_class_id STRING,
  standard_concept STRING,
  concept_code STRING,
  valid_start_date DATE,
  valid_end_date DATE,
  invalid_reason STRING
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.concept` (concept_id, concept_name, domain_id, vocabulary_id, concept_class_id, standard_concept, concept_code, valid_start_date, valid_end_date, invalid_reason) VALUES (3050551, 'Deprecated Upper extremity arteries - left Fluoroscopic angiogram W contrast', 'Observation', 'LOINC', 'Clinical Observation', NULL, '37573-3', '1970-01-01', '2010-08-27', 'U'), (3048206, 'Deprecated Breast - right Mammogram magnification & spot compression', 'Observation', 'LOINC', 'Clinical Observation', NULL, '38823-1', '1970-01-01', '2010-08-27', 'U'), (3002477, 'Deprecated Carpal bones - left X-ray', 'Observation', 'LOINC', 'Clinical Observation', NULL, '26104-0', '1970-01-01', '2010-08-27', 'U'), (40115591, 'Iodine 0.009 MG/MG [Iodosorb]', 'Drug', 'RxNorm', 'Branded Drug Comp', NULL, '575013', '2005-09-11', '2007-02-25', 'D'), (40664513, 'Smoking and tobacco cessation counseling visit for the asymptomatic patient; intermediate, greater than 3 minutes, up to 10 minutes', 'Device', 'HCPCS', 'HCPCS', NULL, 'C9801', '2011-01-09', '2014-11-11', 'D');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.procedure_occurrence`
(
  procedure_type_concept_id INT64,
  modifier_concept_id INT64,
  quantity INT64,
  provider_id INT64,
  visit_occurrence_id INT64,
  visit_detail_id INT64,
  procedure_source_value STRING,
  procedure_source_concept_id INT64,
  modifier_source_value STRING,
  procedure_occurrence_id INT64,
  person_id INT64,
  procedure_concept_id INT64,
  procedure_dat DATE,
  procedure_datetime DATETIME
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.procedure_occurrence` (procedure_type_concept_id, modifier_concept_id, quantity, provider_id, visit_occurrence_id, visit_detail_id, procedure_source_value, procedure_source_concept_id, modifier_source_value, procedure_occurrence_id, person_id, procedure_concept_id, procedure_dat, procedure_datetime) VALUES (38000251, NULL, NULL, 12731, 70005298, NULL, '022', 2000143, NULL, 174809885, 1459158, 2000143, '2007-12-25', 'NaT'), (38000251, NULL, NULL, 10130, 15581307, NULL, '022', 2000143, NULL, 38907605, 324818, 2000143, '2010-07-24', 'NaT'), (38000251, NULL, NULL, 63701, 64808029, NULL, '022', 2000143, NULL, 161833720, 1351069, 2000143, '2009-09-28', 'NaT'), (38000251, NULL, NULL, 12731, 44978964, NULL, '042', 2000212, NULL, 112328110, 937531, 2000212, '2008-07-22', 'NaT'), (38000251, NULL, NULL, 243796, 65141024, NULL, '042', 2000212, NULL, 162664773, 1358024, 2000212, '2008-04-19', 'NaT');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.relationship`
(
  relationship_id STRING NOT NULL,
  relationship_name STRING NOT NULL,
  is_hierarchical STRING NOT NULL,
  defines_ancestry STRING NOT NULL,
  reverse_relationship_id STRING NOT NULL,
  relationship_concept_id INT64 NOT NULL
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.relationship` (relationship_id, relationship_name, is_hierarchical, defines_ancestry, reverse_relationship_id, relationship_concept_id) VALUES ('Acc device used by', 'Access device used by (SNOMED)', '0', '0', 'Using acc device', 44818895), ('Access of', 'Access of (SNOMED)', '0', '0', 'Has access', 44818847), ('Active ing of', 'Active ingredient of (SNOMED)', '0', '0', 'Has active ing', 44818859), ('AMP of', 'Actual Medicinal Product of (SNOMED)', '0', '0', 'Has AMP', 45905757), ('Answer of', 'Answer of (LOINC)', '0', '0', 'Has Answer', 45754684);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.drug_strength`
(
  drug_concept_id INT64,
  ingredient_concept_id INT64,
  amount_value FLOAT64,
  amount_unit_concept_id INT64,
  numerator_value FLOAT64,
  numerator_unit_concept_id INT64,
  denominator_value FLOAT64,
  denominator_unit_concept_id INT64,
  box_size INT64,
  valid_start_date DATE,
  valid_end_date DATE,
  invalid_reason STRING
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.drug_strength` (drug_concept_id, ingredient_concept_id, amount_value, amount_unit_concept_id, numerator_value, numerator_unit_concept_id, denominator_value, denominator_unit_concept_id, box_size, valid_start_date, valid_end_date, invalid_reason) VALUES (21148560, 19079204, nan, 8576, nan, NULL, nan, NULL, NULL, '1970-01-01', '2099-12-31', NULL), (40033415, 989482, nan, 8576, nan, NULL, nan, NULL, NULL, '1970-01-01', '2099-12-31', NULL), (40059696, 19098123, nan, 8576, nan, NULL, nan, NULL, NULL, '1970-01-01', '2099-12-31', NULL), (40091317, 1036690, nan, 8576, nan, NULL, nan, NULL, NULL, '1970-01-01', '2099-12-31', NULL), (40134707, 1703069, nan, 8576, nan, NULL, nan, NULL, NULL, '1970-01-01', '2099-12-31', NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.payer_plan_period`
(
  payer_concept_id INT64,
  payer_source_value STRING,
  payer_source_concept_id INT64,
  plan_concept_id INT64,
  plan_source_value STRING,
  plan_source_concept_id INT64,
  sponsor_concept_id INT64,
  sponsor_source_value STRING,
  sponsor_source_concept_id INT64,
  family_source_value STRING,
  stop_reason_concept_id INT64,
  stop_reason_source_value STRING,
  stop_reason_source_concept_id INT64,
  payer_plan_period_id INT64,
  person_id INT64,
  payer_plan_period_start_date DATE,
  payer_plan_period_end_date DATE
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.payer_plan_period` (payer_concept_id, payer_source_value, payer_source_concept_id, plan_concept_id, plan_source_value, plan_source_concept_id, sponsor_concept_id, sponsor_source_value, sponsor_source_concept_id, family_source_value, stop_reason_concept_id, stop_reason_source_value, stop_reason_source_concept_id, payer_plan_period_id, person_id, payer_plan_period_start_date, payer_plan_period_end_date) VALUES (NULL, NULL, NULL, NULL, 'Medicare Part B', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 18800, 5614, '2008-07-31', '2010-08-31'), (NULL, NULL, NULL, NULL, 'Medicare Part B', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4996211, 1492542, '2008-07-31', '2010-08-31'), (NULL, NULL, NULL, NULL, 'HMO', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2475902, 739691, '2008-07-31', '2010-08-31'), (NULL, NULL, NULL, NULL, 'Medicare Part A', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 2035192, 608001, '2008-07-31', '2010-08-31'), (NULL, NULL, NULL, NULL, 'Medicare Part A', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1960356, 585660, '2008-07-31', '2010-08-31');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.device_exposure`
(
  device_exposure_id INT64,
  person_id INT64,
  device_concept_id INT64,
  device_exposure_start_date DATE,
  device_exposure_start_datetime DATETIME,
  device_exposure_end_date DATE,
  device_exposure_end_datetime DATETIME,
  device_type_concept_id INT64,
  unique_device_id STRING,
  quantity INT64,
  provider_id INT64,
  visit_occurrence_id INT64,
  visit_detail_id INT64,
  device_source_value STRING,
  device_source_concept_id INT64
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.device_exposure` (device_exposure_id, person_id, device_concept_id, device_exposure_start_date, device_exposure_start_datetime, device_exposure_end_date, device_exposure_end_datetime, device_type_concept_id, unique_device_id, quantity, provider_id, visit_occurrence_id, visit_detail_id, device_source_value, device_source_concept_id) VALUES (3283251, 1710015, 2614689, '2008-07-20', 'NaT', '2008-07-20', 'NaT', 44818705, NULL, NULL, 2542, 82031964, NULL, 'A4209', 2614689), (540348, 278904, 2614689, '2008-07-20', 'NaT', '2008-08-09', 'NaT', 44818705, NULL, NULL, 68913, 13380825, NULL, 'A4209', 2614689), (4089922, 2133058, 2614689, '2008-07-20', 'NaT', '2008-07-21', 'NaT', 44818705, NULL, NULL, 62712, 102333426, NULL, 'A4209', 2614689), (719860, 374041, 2614692, '2008-07-20', 'NaT', '2008-07-20', 'NaT', 44818705, NULL, NULL, 326456, 17948285, NULL, 'A4212', 2614692), (131753, 70330, 2614692, '2008-07-20', 'NaT', '2008-07-20', 'NaT', 44818705, NULL, NULL, 343, 3374730, NULL, 'A4212', 2614692);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.concept_class`
(
  concept_class_id STRING NOT NULL,
  concept_class_name STRING NOT NULL,
  concept_class_concept_id INT64 NOT NULL
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.concept_class` (concept_class_id, concept_class_name, concept_class_concept_id) VALUES ('11-digit NDC', '11-digit NDC code', 44819243), ('2-dig nonbill code', '2-digit non-billing code', 45754881), ('3-char billing code', '3-character billing code', 46233663), ('3-char nonbill code', '3-character non-billing code', 46233658), ('3-dig billing code', '3-digit billing code', 45754868);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.vocabulary`
(
  vocabulary_id STRING NOT NULL,
  vocabulary_name STRING NOT NULL,
  vocabulary_reference STRING NOT NULL,
  vocabulary_version STRING,
  vocabulary_concept_id INT64 NOT NULL
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.vocabulary` (vocabulary_id, vocabulary_name, vocabulary_reference, vocabulary_version, vocabulary_concept_id) VALUES ('Cohort Type', 'OMOP Cohort Type', 'OMOP generated', NULL, 44819234), ('Concept Class', 'OMOP Concept Class', 'OMOP generated', NULL, 44819233), ('Condition Type', 'OMOP Condition Occurrence Type', 'OMOP generated', NULL, 44819127), ('Cost Type', 'OMOP Cost Type', 'OMOP generated', NULL, 5029), ('Death Type', 'OMOP Death Type', 'OMOP generated', NULL, 44819135);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.observation`
(
  observation_id INT64,
  person_id INT64,
  observation_concept_id INT64,
  observation_date DATE,
  observation_datetime DATETIME,
  observation_type_concept_id INT64,
  value_as_number FLOAT64,
  value_as_string STRING,
  value_as_concept_id INT64,
  qualifier_concept_id INT64,
  unit_concept_id INT64,
  provider_id INT64,
  visit_occurrence_id INT64,
  visit_detail_id INT64,
  observation_source_value STRING,
  observation_source_concept_id INT64,
  unit_source_value STRING,
  qualifier_source_value STRING
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.observation` (observation_id, person_id, observation_concept_id, observation_date, observation_datetime, observation_type_concept_id, value_as_number, value_as_string, value_as_concept_id, qualifier_concept_id, unit_concept_id, provider_id, visit_occurrence_id, visit_detail_id, observation_source_value, observation_source_concept_id, unit_source_value, qualifier_source_value) VALUES (3763261, 233317, 0, '2008-11-12', 'NaT', 38000282, nan, NULL, 0, NULL, NULL, 125177, 11192448, NULL, 'V640', 45890970, NULL, NULL), (36707380, 2275740, 0, '2009-12-04', 'NaT', 38000282, nan, NULL, 0, NULL, NULL, 180513, 109186621, NULL, 'V640', 45890970, NULL, NULL), (17982669, 1115317, 0, '2008-03-07', 'NaT', 38000282, nan, NULL, 0, NULL, NULL, 98886, 53489229, NULL, 'V640', 45890970, NULL, NULL), (2654208, 164432, 0, '2010-05-11', 'NaT', 38000282, nan, NULL, 0, NULL, NULL, 233254, 7891532, NULL, 'V640', 45890970, NULL, NULL), (32412195, 2009701, 0, '2008-04-25', 'NaT', 38000282, nan, NULL, 0, NULL, NULL, 295509, 96420825, NULL, 'V640', 45890970, NULL, NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.location`
(
  location_id INT64 NOT NULL,
  address_1 STRING,
  address_2 STRING,
  city STRING,
  state STRING,
  zip STRING,
  county STRING,
  location_source_value STRING
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.location` (location_id, address_1, address_2, city, state, zip, county, location_source_value) VALUES (26, NULL, NULL, NULL, '54', NULL, '54000', '54-000'), (71, NULL, NULL, NULL, '54', NULL, '54320', '54-320'), (134, NULL, NULL, NULL, '54', NULL, '54340', '54-340'), (148, NULL, NULL, NULL, '54', NULL, '54640', '54-640'), (153, NULL, NULL, NULL, '54', NULL, '54999', '54-999');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.cost`
(
  cost_id INT64 NOT NULL,
  cost_event_id INT64 NOT NULL,
  cost_domain_id STRING NOT NULL,
  cost_type_concept_id INT64 NOT NULL,
  currency_concept_id INT64,
  total_charge FLOAT64,
  total_cost FLOAT64,
  total_paid FLOAT64,
  paid_by_payer FLOAT64,
  paid_by_patient FLOAT64,
  paid_patient_copay FLOAT64,
  paid_patient_coinsurance FLOAT64,
  paid_patient_deductible FLOAT64,
  paid_by_primary FLOAT64,
  paid_ingredient_cost FLOAT64,
  paid_dispensing_fee FLOAT64,
  payer_plan_period_id INT64,
  amount_allowed FLOAT64,
  revenue_code_concept_id INT64,
  revenue_code_source_value STRING,
  drg_concept_id INT64,
  drg_source_value STRING
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.cost` (cost_id, cost_event_id, cost_domain_id, cost_type_concept_id, currency_concept_id, total_charge, total_cost, total_paid, paid_by_payer, paid_by_patient, paid_patient_copay, paid_patient_coinsurance, paid_patient_deductible, paid_by_primary, paid_ingredient_cost, paid_dispensing_fee, payer_plan_period_id, amount_allowed, revenue_code_concept_id, revenue_code_source_value, drg_concept_id, drg_source_value) VALUES (461442718, 153164404, 'Procedure', 5031, 44818668, nan, nan, 480.0, 380.0, 100.0, nan, 100.0, 0.0, 380.0, nan, nan, NULL, nan, NULL, NULL, NULL, NULL), (461465107, 153174069, 'Procedure', 5031, 44818668, nan, nan, 520.0, 380.0, 90.0, nan, 90.0, 0.0, 0.0, nan, nan, NULL, nan, NULL, NULL, NULL, NULL), (462018860, 153414653, 'Procedure', 5031, 44818668, nan, nan, 270.0, 260.0, 80.0, nan, 80.0, 0.0, 260.0, nan, nan, NULL, nan, NULL, NULL, NULL, NULL), (462045794, 153426092, 'Procedure', 5031, 44818668, nan, nan, 440.0, 230.0, 80.0, nan, 80.0, 0.0, 230.0, nan, nan, NULL, nan, NULL, NULL, NULL, NULL), (462065968, 153435482, 'Procedure', 5031, 44818668, nan, nan, 640.0, 450.0, 150.0, nan, 150.0, 0.0, 450.0, nan, nan, NULL, nan, NULL, NULL, NULL, NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.death`
(
  person_id INT64,
  death_date DATE,
  death_datetime DATETIME,
  death_type_concept_id INT64,
  cause_concept_id INT64,
  cause_source_value STRING,
  cause_source_concept_id INT64
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.death` (person_id, death_date, death_datetime, death_type_concept_id, cause_concept_id, cause_source_value, cause_source_concept_id) VALUES (35830, '2010-09-01', 'NaT', 38003565, NULL, NULL, 0), (61332, '2010-09-01', 'NaT', 38003565, NULL, NULL, 0), (95196, '2010-09-01', 'NaT', 38003565, NULL, NULL, 0), (120713, '2010-09-01', 'NaT', 38003565, NULL, NULL, 0), (171677, '2010-09-01', 'NaT', 38003565, NULL, NULL, 0);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.drug_exposure`
(
  drug_type_concept_id INT64,
  stop_reason STRING,
  refills INT64,
  quantity FLOAT64,
  days_supply INT64,
  sig STRING,
  route_concept_id INT64,
  lot_number STRING,
  provider_id INT64,
  visit_occurrence_id INT64,
  visit_detail_id INT64,
  drug_source_value STRING,
  drug_source_concept_id INT64,
  route_source_value STRING,
  dose_unit_source_value STRING,
  drug_exposure_id INT64,
  person_id INT64,
  drug_concept_id INT64,
  drug_exposure_start_date DATE,
  drug_exposure_start_datetime DATETIME,
  drug_exposure_end_date DATE,
  drug_exposure_end_datetime DATETIME,
  verbatim_end_date DATE
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.drug_exposure` (drug_type_concept_id, stop_reason, refills, quantity, days_supply, sig, route_concept_id, lot_number, provider_id, visit_occurrence_id, visit_detail_id, drug_source_value, drug_source_concept_id, route_source_value, dose_unit_source_value, drug_exposure_id, person_id, drug_concept_id, drug_exposure_start_date, drug_exposure_start_datetime, drug_exposure_end_date, drug_exposure_end_datetime, verbatim_end_date) VALUES (38000175, NULL, NULL, nan, NULL, NULL, NULL, NULL, 29776, 91403375, NULL, 'J1756', 2718450, NULL, NULL, 103238366, 1905666, 0, '2008-06-20', 'NaT', '2008-07-20', 'NaT', 'NaT'), (38000175, NULL, NULL, nan, NULL, NULL, NULL, NULL, 25635, 91384770, NULL, 'J2250', 2718495, NULL, NULL, 103215441, 1905241, 708298, '2008-06-20', 'NaT', '2008-07-20', 'NaT', 'NaT'), (38000175, NULL, NULL, nan, NULL, NULL, NULL, NULL, 2123, 9284588, NULL, 'J2916', 2718579, NULL, NULL, 10478111, 193274, 40082914, '2008-06-20', 'NaT', '2008-07-20', 'NaT', 'NaT'), (38000175, NULL, NULL, nan, NULL, NULL, NULL, NULL, 373907, 6670771, NULL, '90736', 2213487, NULL, NULL, 7528597, 139038, 2213487, '2008-06-20', 'NaT', '2008-07-20', 'NaT', 'NaT'), (38000175, NULL, NULL, nan, NULL, NULL, NULL, NULL, 26163, 33034734, NULL, 'J7040', 2718658, NULL, NULL, 37314566, 688683, 40080069, '2008-06-20', 'NaT', '2008-07-20', 'NaT', 'NaT');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.cms_synthetic_patient_data_omop.condition_era`
(
  condition_era_id INT64,
  person_id INT64,
  condition_concept_id INT64,
  condition_era_start_date DATE,
  condition_era_end_date DATE,
  condition_occurrence_count INT64
);

INSERT INTO `bigquery-public-data.cms_synthetic_patient_data_omop.condition_era` (condition_era_id, person_id, condition_concept_id, condition_era_start_date, condition_era_end_date, condition_occurrence_count) VALUES (889630574, 929895, 437390, '2008-07-20', '2008-07-20', 1), (851470106, 532452, 72578, '2008-07-20', '2008-07-20', 1), (894632410, 981836, 139099, '2008-07-20', '2008-07-20', 1), (818568901, 189393, 140190, '2008-07-20', '2008-07-20', 1), (900173927, 1039825, 4263370, '2008-07-20', '2008-07-20', 1);