nl2sqlproj/spider2-nl2sql huggingface dataset:
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_transit_muni.fares`
(
  fare_id STRING OPTIONS(description="Unique identifier a fare class."),
  rider_id STRING OPTIONS(description="Unique identifier a rider category. Rider categories are used to assign different pricing to different groups of individuals"),
  rider_desc STRING OPTIONS(description="Text description of the rider category"),
  price NUMERIC OPTIONS(description="Contains the fare price, in USD"),
  payment_method STRING OPTIONS(description="Indicates when the fare must be paid. The following are valid values for this field: -  during: Indicates the fare is paid when riders board -  before: Indicates fare must be paid before riders board"),
  transfers_permitted STRING OPTIONS(description="Specifies the number of transfers permitted on this fare.  -  0: No transfers are permitted on this fare. -  1: One transfer is permitted on this fare. -  2: Two transfers are permitted on this fare. -  NULL: Unlimited transfers are permitted on this fare."),
  transfer_duration INT64 OPTIONS(description="Specifies the length of time, in seconds, before a transfer expires. When used with a transfers_permitted value of 0, the transfer_duration field indicates how long a ticket is valid for a fare where no transfers are allowed.")
);

INSERT INTO `bigquery-public-data.san_francisco_transit_muni.fares` (fare_id, rider_id, rider_desc, price, payment_method, transfers_permitted, transfer_duration) VALUES ('5398', '6', 'Disabled', '3.000000000', '0', NULL, 5400), ('5398', '5', 'Youth', '3.000000000', '0', NULL, 5400), ('5398', '3', 'Child', '3.000000000', '0', NULL, 5400), ('5398', '2', 'Senior', '3.000000000', '0', NULL, 5400), ('5399', '6', 'Disabled', '7.000000000', '0', '0.0', 0);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_transit_muni.routes`
(
  route_id STRING OPTIONS(description="Unique identifier for each route. A single route will have multiple trips"),
  route_short_name STRING OPTIONS(description="Contains the short name of a route. This is a short, abstract identifier like 32, 100X, or Green that riders use to identify a route, but which doesn't give any indication of what places the route serves."),
  route_long_name STRING OPTIONS(description="Contains the full name of a route. This name is generally more descriptive than the name from route_short_name and often includes the route's destination or stop."),
  route_type STRING OPTIONS(description="\"Describes the type of transportation used on a route. The following are valid values for this field:  -  light_rail: Streetcar or light rail. Used for any light rail or street-level system within a metropolitan area. -  subway: Subway or metro. Used for any underground rail system within a metropolitan area. -  rail: Used for intercity or long-distance travel. -  bus: Used for short- and long-distance bus routes. -  ferry: Used for short- and long-distance boat service. -  cable_car: Used for street-level cable cars where the cable runs beneath the car. -  tram: Gondola or suspended cable car. Typically used for aerial cable cars where the car is suspended from the cable. -  funicular: Used for any rail system that moves on steep inclines with a cable traction system.\"")
);

INSERT INTO `bigquery-public-data.san_francisco_transit_muni.routes` (route_id, route_short_name, route_long_name, route_type) VALUES ('83X', '83X', 'MID-MARKET EXPRESS', '3'), ('82X', '82X', 'LEVI PLAZA EXPRESS', '3'), ('E', 'E', 'EMBARCADERO', '0'), ('KT', 'KT', 'INGLESIDE-THIRD', '0'), ('3', '3', 'JACKSON', '3');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_trees.street_trees`
(
  tree_id INT64 NOT NULL OPTIONS(description="Unique ID for Tree"),
  legal_status STRING OPTIONS(description="Legal staus: Permitted or DPW maintained"),
  species STRING OPTIONS(description="Species of tree"),
  address STRING OPTIONS(description="Address of Tree"),
  site_order INT64 OPTIONS(description="Order of tree at address where multiple trees are at same address. Trees are ordered in ascending address order"),
  site_info STRING OPTIONS(description="Description of location of tree"),
  plant_type STRING OPTIONS(description="Landscaping or Tree"),
  care_taker STRING OPTIONS(description="Agency or person that is primary caregiver to tree. Owner of Tree"),
  care_assistant STRING OPTIONS(description="Agency or person that is secondary caregiver to tree"),
  plant_date TIMESTAMP OPTIONS(description="Date tree was planted"),
  dbh STRING OPTIONS(description="depth height"),
  plot_size STRING OPTIONS(description="dimension of tree plot"),
  permit_notes STRING OPTIONS(description="Tree permit number reference"),
  x_coordinate FLOAT64 OPTIONS(description="CA State Plane III"),
  y_coordinate FLOAT64 OPTIONS(description="CA State Plane III"),
  latitude FLOAT64 OPTIONS(description="WGS84"),
  longitude FLOAT64 OPTIONS(description="WGS84"),
  location STRING OPTIONS(description="Location formatted for mapping")
)
OPTIONS(
  description="San Francisco street trees table"
);

INSERT INTO `bigquery-public-data.san_francisco_trees.street_trees` (tree_id, legal_status, species, address, site_order, site_info, plant_type, care_taker, care_assistant, plant_date, dbh, plot_size, permit_notes, x_coordinate, y_coordinate, latitude, longitude, location) VALUES (30483, 'Permitted Site', 'Tree(s) ::', NULL, 4, 'Sidewalk: Curb side : Cutout', 'Tree', 'Private', NULL, '1956-09-05 12:00:00+00:00', NULL, NULL, 'Permit Number 147', nan, nan, nan, nan, NULL), (45997, 'Permitted Site', 'Tree(s) ::', NULL, 115, 'Sidewalk: Curb side : Cutout', 'Tree', 'Private', NULL, '2001-12-06 12:00:00+00:00', NULL, NULL, 'Permit Number 44451', nan, nan, nan, nan, NULL), (48142, 'Permitted Site', 'Tree(s) ::', NULL, 252, 'Sidewalk: Curb side : Cutout', 'Tree', 'Private', NULL, '2002-07-17 12:00:00+00:00', NULL, NULL, 'Permit Number 45761', nan, nan, nan, nan, NULL), (48199, 'Permitted Site', 'Tree(s) ::', NULL, 58, 'Sidewalk: Curb side : Cutout', 'Tree', 'Private', NULL, '2002-07-17 12:00:00+00:00', NULL, NULL, 'Permit Number 45761', nan, nan, nan, nan, NULL), (48308, 'Permitted Site', 'Tree(s) ::', NULL, 174, 'Sidewalk: Curb side : Cutout', 'Tree', 'Private', NULL, '2002-07-17 12:00:00+00:00', NULL, NULL, 'Permit Number 45761', nan, nan, nan, nan, NULL);
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_film_locations.film_locations`
(
  title STRING OPTIONS(description=""),
  release_year INT64 OPTIONS(description=""),
  locations STRING OPTIONS(description=""),
  fun_facts STRING OPTIONS(description=""),
  production_company STRING OPTIONS(description=""),
  distributor STRING OPTIONS(description=""),
  director STRING OPTIONS(description=""),
  writer STRING OPTIONS(description=""),
  actor_1 STRING OPTIONS(description=""),
  actor_2 STRING OPTIONS(description=""),
  actor_3 STRING OPTIONS(description="")
)
OPTIONS(
  description="If you love movies, and you love San Francisco, you're bound to love this -- a listing of filming locations of movies shot in San Francisco starting from 1924. You'll find the titles, locations, fun facts, names of the director, writer, actors, and studio for most of these films."
);

INSERT INTO `bigquery-public-data.san_francisco_film_locations.film_locations` (title, release_year, locations, fun_facts, production_company, distributor, director, writer, actor_1, actor_2, actor_3) VALUES ('A Jitney Elopement', 1915, '20th and Folsom Streets', NULL, 'The Essanay Film Manufacturing Company', 'General Film Company', 'Charles Chaplin', 'Charles Chaplin', 'Charles Chaplin', 'Edna Purviance', NULL), ('A Jitney Elopement', 1915, 'Golden Gate Park', 'During San Francisco''s Gold Rush era, the Park was part of an area designated as the "Great Sand Waste".', 'The Essanay Film Manufacturing Company', 'General Film Company', 'Charles Chaplin', 'Charles Chaplin', 'Charles Chaplin', 'Edna Purviance', NULL), ('Greed', 1924, 'Bush and Sutter Streets', NULL, 'Metro-Goldwyn-Mayer (MGM)', 'Metro-Goldwyn-Mayer (MGM)', 'Eric von Stroheim', 'Eric von Stroheim', 'Zasu Pitts', 'Gibson Gowland', 'Jean Hersholt'), ('Greed', 1924, 'Cliff House (1090 Point Lobos Avenue)', 'In 1887, the Cliff House was severely damaged when the schooner Parallel, abandoned and loaded with dynamite, ran aground on the rocks below.', 'Metro-Goldwyn-Mayer (MGM)', 'Metro-Goldwyn-Mayer (MGM)', 'Eric von Stroheim', 'Eric von Stroheim', 'Zasu Pitts', 'Gibson Gowland', 'Jean Hersholt'), ('Greed', 1924, 'Hayes Street at Laguna', NULL, 'Metro-Goldwyn-Mayer (MGM)', 'Metro-Goldwyn-Mayer (MGM)', 'Eric von Stroheim', 'Eric von Stroheim', 'Zasu Pitts', 'Gibson Gowland', 'Jean Hersholt');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_bikeshare.bikeshare_regions`
(
  region_id INT64 NOT NULL OPTIONS(description="Unique identifier for the region"),
  name STRING NOT NULL OPTIONS(description="Public name for this region")
);

INSERT INTO `bigquery-public-data.san_francisco_bikeshare.bikeshare_regions` (region_id, name) VALUES (3, 'San Francisco'), (5, 'San Jose'), (12, 'Oakland'), (13, 'Emeryville'), (14, 'Berkeley');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_bikeshare.bikeshare_station_info`
(
  station_id STRING NOT NULL OPTIONS(description="Unique identifier of a station."),
  name STRING NOT NULL OPTIONS(description="Public name of the station"),
  short_name STRING OPTIONS(description="Short name or other type of identifier, as used by the data publisher"),
  lat FLOAT64 NOT NULL OPTIONS(description="The latitude of station. The field value must be a valid WGS 84 latitude in decimal degrees format. See: http://en.wikipedia.org/wiki/World_Geodetic_System, https://en.wikipedia.org/wiki/Decimal_degrees"),
  lon FLOAT64 NOT NULL OPTIONS(description="The longitude of station. The field value must be a valid WGS 84 longitude in decimal degrees format. See: http://en.wikipedia.org/wiki/World_Geodetic_System, https://en.wikipedia.org/wiki/Decimal_degrees"),
  region_id INT64 OPTIONS(description="ID of the region where station is located"),
  rental_methods STRING OPTIONS(description="Array of enumerables containing the payment methods accepted at this station.  Current valid values (in CAPS) are: KEY (i.e. operator issued bike key / fob / card) CREDITCARD PAYPASS APPLEPAY ANDROIDPAY TRANSITCARD ACCOUNTNUMBER PHONE This list is intended to be as comprehensive at the time of publication as possible but is subject to change, as defined in File Requirements above"),
  capacity INT64 OPTIONS(description="Number of total docking points installed at this station, both available and unavailable"),
  external_id STRING OPTIONS(description=""),
  eightd_has_key_dispenser BOOL OPTIONS(description=""),
  has_kiosk BOOL OPTIONS(description=""),
  station_geom GEOGRAPHY OPTIONS(description="")
);

INSERT INTO `bigquery-public-data.san_francisco_bikeshare.bikeshare_station_info` (station_id, name, short_name, lat, lon, region_id, rental_methods, capacity, external_id, eightd_has_key_dispenser, has_kiosk, station_geom) VALUES ('523', 'Lafayette Park (Laguna St at Washington St)', 'SF-E21', 37.791965999999995, -122.429315, NULL, NULL, 0, NULL, NULL, False, 'POINT(-122.429315 37.791966)'), ('501', 'Balboa Park (San Jose Ave at Sgt. John V. Young Ln', 'SF-Y16', 37.72489268, -122.4432385, NULL, NULL, 0, NULL, NULL, False, 'POINT(-122.443238497 37.724892684)'), ('504', 'Onondaga Ave at Alemany Blvd', 'SF-AA17', 37.72154367, -122.43830323, NULL, NULL, 0, NULL, NULL, False, 'POINT(-122.438303232 37.721543666)'), ('539', 'North Point St at Divisadero St', 'SF-A18', 37.802949, -122.442702, NULL, NULL, 0, NULL, NULL, False, 'POINT(-122.442702 37.802949)'), ('535', 'Filbert St at Fillmore St', 'SF-C19', 37.798013999999995, -122.435562, NULL, NULL, 0, NULL, NULL, True, 'POINT(-122.435562 37.798014)');
-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.san_francisco_bikeshare.bikeshare_station_status`
(
  station_id STRING NOT NULL OPTIONS(description="Unique identifier of a station"),
  num_bikes_available INT64 NOT NULL OPTIONS(description="Number of bikes available for rental"),
  num_bikes_disabled INT64 OPTIONS(description="Number of disabled bikes at the station. Vendors who do not want to publicize the number of disabled bikes or docks in their system can opt to omit station capacity (in station_information), num_bikes_disabled and num_docks_disabled. If station capacity is published then broken docks/bikes can be inferred (though not specifically whether the decreased capacity is a broken bike or dock)"),
  num_docks_available INT64 NOT NULL OPTIONS(description="Number of docks accepting bike returns"),
  num_docks_disabled INT64 OPTIONS(description="Number of empty but disabled dock points at the station. This value remains as part of the spec as it is possibly useful during development"),
  is_installed BOOL NOT NULL OPTIONS(description="1/0 boolean - is the station currently on the street"),
  is_renting BOOL NOT NULL OPTIONS(description="1/0 boolean - is the station currently renting bikes (even if the station is empty, if it is set to allow rentals this value should be 1)"),
  is_returning BOOL NOT NULL OPTIONS(description="1/0 boolean - is the station accepting bike returns (if a station is full but would allow a return if it was not full then this value should be 1)"),
  last_reported INT64 NOT NULL OPTIONS(description="Integer POSIX timestamp indicating the last time this station reported its status to the backend"),
  num_ebikes_available INT64 OPTIONS(description=""),
  eightd_has_available_keys BOOL OPTIONS(description="")
);

INSERT INTO `bigquery-public-data.san_francisco_bikeshare.bikeshare_station_status` (station_id, num_bikes_available, num_bikes_disabled, num_docks_available, num_docks_disabled, is_installed, is_renting, is_returning, last_reported, num_ebikes_available, eightd_has_available_keys) VALUES ('154e0ab8-c249-42a9-aa0f-ed766aa7bfb5', 0, 0, 0, 0, False, False, False, 1724285144, 0, False), ('50518b51-6910-4f71-bb20-7b0d0fc4f4b7', 15, 0, 0, 0, True, True, True, 1724285071, 2, False), ('e01b3ae0-0543-484f-9085-bff4af3c174c', 16, 3, 0, 0, True, True, True, 1724285077, 3, False), ('92045ce2-112c-4cd9-ae42-39aac4f43e86', 19, 0, 0, 0, True, True, True, 1724285138, 9, False), ('aa6d4372-55f7-451a-a9ab-a546001fd8f7', 19, 0, 0, 0, True, True, True, 1724285139, 4, False);