nl2sqlproj/spider2-nl2sql huggingface dataset:
-- DBMS: sqlite
CREATE TABLE film (
    film_id INT,
    title VARCHAR(255),
    description BLOB SUB_TYPE TEXT,
    release_year VARCHAR(4),
    language_id SMALLINT,
    original_language_id SMALLINT,
    rental_duration SMALLINT,
    rental_rate DECIMAL(4,2),
    length SMALLINT,
    replacement_cost DECIMAL(5,2),
    rating VARCHAR(10),
    special_features VARCHAR(100),
    last_update TIMESTAMP
);

INSERT INTO film (film_id, title, description, release_year, language_id, original_language_id, rental_duration, rental_rate, length, replacement_cost, rating, special_features, last_update) VALUES (4, 'AFFAIR PREJUDICE', 'A Fanciful Documentary of a Frisbee And a Lumberjack who must Chase a Monkey in A Shark Tank', '2006', 1, NULL, 5, 2.99, 117, 26.99, 'G', 'Commentaries,Behind the Scenes', '2021-03-06 15:52:00'), (456, 'INCH JET', 'A Fateful Saga of a Womanizer And a Student who must Defeat a Butler in A Monastery', '2006', 1, NULL, 6, 4.99, 167, 18.99, 'NC-17', 'Deleted Scenes', '2021-03-06 15:52:04'), (146, 'CHITTY LOCK', 'A Boring Epistle of a Boat And a Database Administrator who must Kill a Sumo Wrestler in The First Manned Space Station', '2006', 1, NULL, 6, 2.99, 107, 24.99, 'G', 'Commentaries', '2021-03-06 15:52:01'), (460, 'INNOCENT USUAL', 'A Beautiful Drama of a Pioneer And a Crocodile who must Challenge a Student in The Outback', '2006', 1, NULL, 3, 4.99, 178, 26.99, 'PG-13', 'Trailers,Deleted Scenes,Behind the Scenes', '2021-03-06 15:52:04'), (591, 'MONSOON CAUSE', 'A Astounding Tale of a Crocodile And a Car who must Outrace a Squirrel in A U-Boat', '2006', 1, NULL, 6, 4.99, 182, 20.99, 'PG', 'Commentaries,Behind the Scenes', '2021-03-06 15:52:05');
-- DBMS: sqlite
CREATE TABLE customer_list (
    ID INT,
    name ,
    address VARCHAR(50),
    zip_code VARCHAR(10),
    phone VARCHAR(20),
    city VARCHAR(50),
    country VARCHAR(50),
    notes ,
    SID INT
);

INSERT INTO customer_list (ID, name, address, zip_code, phone, city, country, notes, SID) VALUES (4, 'BARBARA JONES', '1566 Inegl Manor', '53561', ' ', 'Myingyan', 'Myanmar', 'active', 2), (45, 'JANET PHILLIPS', '1718 Valencia Street', '37359', ' ', 'Antofagasta', 'Chile', 'active', 1), (53, 'HEATHER MORRIS', '17 Kabul Boulevard', '38594', ' ', 'Nagareyama', 'Japan', 'active', 1), (115, 'WENDY HARRISON', '1107 Nakhon Sawan Avenue', '75149', ' ', 'Nezahualcyotl', 'Mexico', 'active', 1), (46, 'CATHERINE CAMPBELL', '46 Pjatigorsk Lane', '23616', ' ', 'Moscow', 'Russian Federation', 'active', 2);
-- DBMS: sqlite
CREATE TABLE country (
    country_id SMALLINT,
    country VARCHAR(50),
    last_update TIMESTAMP
);

INSERT INTO country (country_id, country, last_update) VALUES (21, 'Chad', '2021-03-06 15:51:49'), (72, 'Pakistan', '2021-03-06 15:51:49'), (104, 'Venezuela', '2021-03-06 15:51:49'), (5, 'Anguilla', '2021-03-06 15:51:49'), (86, 'South Korea', '2021-03-06 15:51:49');
-- DBMS: sqlite
CREATE TABLE Tournaments (
    TourneyID INTEGER,
    TourneyDate DATE,
    TourneyLocation TEXT
);

INSERT INTO Tournaments (TourneyID, TourneyDate, TourneyLocation) VALUES (14, '2017-12-04', 'Acapulco Lanes'), (15, '2018-07-12', 'Red Rooster Lanes'), (3, '2017-09-18', 'Bolero Lanes'), (20, '2018-08-16', 'Totem Lanes'), (8, '2017-10-23', 'Red Rooster Lanes');
-- DBMS: sqlite
CREATE TABLE Bowlers (
    BowlerID INTEGER,
    BowlerLastName TEXT,
    BowlerFirstName TEXT,
    BowlerMiddleInit TEXT,
    BowlerAddress TEXT,
    BowlerCity TEXT,
    BowlerState TEXT,
    BowlerZip TEXT,
    BowlerPhoneNumber TEXT,
    TeamID INT,
    BowlerTotalPins INT,
    BowlerGamesBowled INT,
    BowlerCurrentAverage smallint,
    BowlerCurrentHcp smallint
);

INSERT INTO Bowlers (BowlerID, BowlerLastName, BowlerFirstName, BowlerMiddleInit, BowlerAddress, BowlerCity, BowlerState, BowlerZip, BowlerPhoneNumber, TeamID, BowlerTotalPins, BowlerGamesBowled, BowlerCurrentAverage, BowlerCurrentHcp) VALUES (11, 'Kennedy', 'Angel', NULL, '2957 W 33rd', 'Ballard', 'WA', '98154', '(206) 555-7854', 3, 6372, 39, 163, 33), (26, 'Thompson', 'Mary', 'K', '122 Spring Valley Drive', 'Duvall', 'WA', '98019', '(206) 555-8989', 7, 6137, 39, 157, 39), (5, 'Patterson', 'Ann', 'K', '16 Maple Lane', 'Auburn', 'WA', '98002', '(206) 555-3487', 2, 5819, 39, 149, 46), (32, 'Rosales', 'Joe', NULL, '908 W. Capital Way', 'Tacoma', 'WA', '98404', '(206) 555-9482', 8, 5525, 39, 142, 52), (16, 'Sheskey', 'Richard', NULL, '17950 N 59th', 'Seattle', 'WA', '98011', '(206) 555-9893', 4, 5549, 39, 142, 52);
-- DBMS: sqlite
CREATE TABLE Bowler_Scores_Archive (
    MatchID INT,
    GameNumber smallint,
    BowlerID INT,
    RawScore smallint,
    HandiCapScore smallint,
    WonGame BOOLEAN
);

INSERT INTO Bowler_Scores_Archive (MatchID, GameNumber, BowlerID, RawScore, HandiCapScore, WonGame) VALUES ;
-- DBMS: sqlite
CREATE TABLE Teams (
    TeamID INTEGER,
    TeamName TEXT,
    CaptainID INT
);

INSERT INTO Teams (TeamID, TeamName, CaptainID) VALUES (3, 'Terrapins', 12), (2, 'Sharks', 5), (8, 'Swordfish', 32), (1, 'Marlins', 2), (9, 'Huckleberrys', 7);
-- DBMS: sqlite
CREATE TABLE WAZips (
    ZIP TEXT,
    City TEXT,
    State TEXT
);

INSERT INTO WAZips (ZIP, City, State) VALUES ('98647', 'Skamokawa', 'WA'), ('98164', 'Seattle', 'WA'), ('98683', 'Vancouver', 'WA'), ('99327', 'Cunningham', 'WA'), ('98827', 'Loomis', 'WA');
-- DBMS: sqlite
CREATE TABLE Tourney_Matches (
    MatchID INTEGER,
    TourneyID INT,
    Lanes TEXT,
    OddLaneTeamID INT,
    EvenLaneTeamID INT
);

INSERT INTO Tourney_Matches (MatchID, TourneyID, Lanes, OddLaneTeamID, EvenLaneTeamID) VALUES (22, 6, '07-08', 3, 5), (9, 3, '15-16', 2, 3), (52, 13, '19-20', 4, 5), (25, 7, '13-14', 8, 1), (45, 12, '05-06', 7, 1);
-- DBMS: sqlite
CREATE TABLE Bowler_Scores (
    MatchID INT,
    GameNumber smallint,
    BowlerID INT,
    RawScore smallint,
    HandiCapScore smallint,
    WonGame BOOLEAN
);

INSERT INTO Bowler_Scores (MatchID, GameNumber, BowlerID, RawScore, HandiCapScore, WonGame) VALUES (9, 3, 7, 144, 165, 0), (23, 2, 7, 182, 211, 1), (12, 1, 32, 140, 192, 0), (5, 3, 1, 152, 199, 1), (27, 2, 10, 169, 205, 0);
-- DBMS: sqlite
CREATE TABLE Match_Games (
    MatchID INT,
    GameNumber smallint,
    WinningTeamID INT
);

INSERT INTO Match_Games (MatchID, GameNumber, WinningTeamID) VALUES (27, 3, 6), (48, 3, 6), (8, 2, 6), (13, 2, 5), (44, 3, 4);
-- DBMS: sqlite
CREATE TABLE Tourney_Matches_Archive (
    MatchID INT,
    TourneyID INT,
    Lanes TEXT,
    OddLaneTeamID INT,
    EvenLaneTeamID INT
);

INSERT INTO Tourney_Matches_Archive (MatchID, TourneyID, Lanes, OddLaneTeamID, EvenLaneTeamID) VALUES ;
-- DBMS: sqlite
CREATE TABLE locations (
    id INTEGER,
    warehouse INTEGER,
    aisle TEXT,
    position INTEGER
);

INSERT INTO locations (id, warehouse, aisle, position) VALUES (217, 2, 'C', 25), (228, 2, 'D', 4), (165, 2, 'B', 5), (211, 2, 'C', 19), (103, 1, 'D', 7);
-- DBMS: sqlite
CREATE TABLE ticker (
    symbol TEXT,
    day TEXT,
    price REAL
);

INSERT INTO ticker (symbol, day, price) VALUES ('BEER', '2019-04-02', 14.2), ('BEER', '2019-04-18', 14.3), ('BEER', '2019-04-08', 14.8), ('BEER', '2019-04-04', 15.7), ('BEER', '2019-04-10', 14.0);
-- DBMS: sqlite
CREATE TABLE picking_line (
    picklist_id INTEGER,
    line_no INTEGER,
    location_id INTEGER,
    order_id INTEGER,
    product_id INTEGER,
    qty REAL
);

INSERT INTO picking_line (picklist_id, line_no, location_id, order_id, product_id, qty) VALUES (842, 8, 163, 422, 4280, 5.0), (842, 3, 77, 422, 6520, 20.0), (842, 11, 233, 422, 6520, 8.0), (842, 12, 233, 423, 6520, 18.0), (842, 1, 16, 423, 6520, 22.0);
-- DBMS: sqlite
CREATE TABLE server_heartbeat (
    server TEXT,
    beat_time TEXT
);

INSERT INTO server_heartbeat (server, beat_time) VALUES ('10.0.0.100', '2019-04-10 13:35'), ('10.0.0.100', '2019-04-10 13:40'), ('10.0.0.100', '2019-04-10 13:10'), ('10.0.0.142', '2019-04-10 13:00'), ('10.0.0.142', '2019-04-10 13:20');
-- DBMS: sqlite
CREATE TABLE web_counter_hist (
    app_id INTEGER,
    page_no INTEGER,
    day TEXT,
    counter INTEGER
);

INSERT INTO web_counter_hist (app_id, page_no, day, counter) VALUES (542, 1, '2019-04-14', 6350), (542, 3, '2019-04-27', 3008), (542, 2, '2019-04-27', 4588), (542, 3, '2019-04-29', 3077), (542, 2, '2019-04-17', 4089);
-- DBMS: sqlite
CREATE TABLE orders (
    id INTEGER,
    customer_id INTEGER,
    ordered TEXT,
    delivery TEXT
);

INSERT INTO orders (id, customer_id, ordered, delivery) VALUES (424, 51069, '2019-01-28', NULL), (426, 50741, '2019-02-26', NULL), (425, 51069, '2019-02-17', NULL), (422, 51069, '2019-01-17', NULL), (429, 50042, '2019-03-22', NULL);
-- DBMS: sqlite
CREATE TABLE orderlines (
    id INTEGER,
    order_id INTEGER,
    product_id INTEGER,
    qty REAL,
    amount REAL
);

INSERT INTO orderlines (id, order_id, product_id, qty, amount) VALUES (9299, 430, 7950, 50.0, 480.0), (9234, 422, 6520, 80.0, 1275.0), (9295, 428, 4280, 90.0, 1925.0), (9287, 426, 6600, 16.0, 320.0), (9233, 422, 4280, 80.0, 1750.0);
-- DBMS: sqlite
CREATE TABLE product_alcohol (
    product_id INTEGER,
    sales_volume REAL,
    abv REAL
);

INSERT INTO product_alcohol (product_id, sales_volume, abv) VALUES (5430, 330.0, 6.5), (7790, 500.0, 5.5), (5310, 330.0, 5.0), (7870, 330.0, 4.5), (6520, 500.0, 4.5);
-- DBMS: sqlite
CREATE TABLE purchases (
    id INTEGER,
    purchased TEXT,
    brewery_id INTEGER,
    product_id INTEGER,
    qty INTEGER,
    cost REAL
);

INSERT INTO purchases (id, purchased, brewery_id, product_id, qty, cost) VALUES (739, '2018-04-26', 518, 6520, 74, 518.0), (730, '2018-02-28', 523, 7870, 89, 640.0), (733, '2018-03-27', 523, 6600, 21, 151.0), (773, '2018-11-27', 523, 6600, 8, 60.0), (770, '2018-10-29', 523, 7870, 90, 648.0);
-- DBMS: sqlite
CREATE TABLE monthly_sales (
    product_id INTEGER,
    mth TEXT,
    qty INTEGER
);

INSERT INTO monthly_sales (product_id, mth, qty) VALUES (7790, '2018-06-01', 46), (4160, '2016-05-01', 0), (4040, '2016-10-01', 12), (7790, '2018-05-01', 23), (4160, '2016-10-01', 4);
-- DBMS: sqlite
CREATE TABLE web_demographics (
    day ,
    m_tw_cnt INTEGER,
    m_tw_qty INTEGER,
    m_fb_cnt INTEGER,
    m_fb_qty INTEGER,
    f_tw_cnt INTEGER,
    f_tw_qty INTEGER,
    f_fb_cnt INTEGER,
    f_fb_qty INTEGER
);

INSERT INTO web_demographics (day, m_tw_cnt, m_tw_qty, m_fb_cnt, m_fb_qty, f_tw_cnt, f_tw_qty, f_fb_cnt, f_fb_qty) VALUES ('2019-05-01', 1232, 86, 1017, 64, 651, 76, 564, 68), ('2019-05-02', 1438, 142, 1198, 70, 840, 92, 752, 78);
-- DBMS: sqlite
CREATE TABLE products (
    id INTEGER,
    name TEXT,
    group_id INTEGER
);

INSERT INTO products (id, name, group_id) VALUES (4160, 'Reindeer Fuel', 142), (4280, 'Hoppy Crude Oil', 142), (6600, 'Hazy Pink Cloud', 202), (6520, 'Der Helle Kumpel', 202), (7870, 'Ghost of Hops', 232);
-- DBMS: sqlite
CREATE TABLE employees (
    id INTEGER,
    name TEXT,
    title TEXT,
    supervisor_id INTEGER
);

INSERT INTO employees (id, name, title, supervisor_id) VALUES (153, 'Dan Hoeffler', 'IT Supporter', 143), (145, 'Zoe Thorston', 'IT Developer', 143), (146, 'Lim Tok Lo', 'Warehouse Manager', 147), (154, 'Simon Chang', 'Retail Salesman', 151), (155, 'Susanne Hoff', 'Janitor', 146);
-- DBMS: sqlite
CREATE TABLE inventory (
    id INTEGER,
    location_id INTEGER,
    product_id INTEGER,
    purchase_id INTEGER,
    qty REAL
);

INSERT INTO inventory (id, location_id, product_id, purchase_id, qty) VALUES (1436, 51, 7870, 770, 42.0), (1160, 220, 4040, 721, 48.0), (1169, 149, 6600, 723, 19.0), (1409, 125, 7950, 765, 48.0), (1439, 87, 7870, 770, 48.0);
-- DBMS: sqlite
CREATE TABLE monthly_budget (
    product_id INTEGER,
    mth TEXT,
    qty REAL
);

INSERT INTO monthly_budget (product_id, mth, qty) VALUES (6520, '2019-11-01', 40.0), (6520, '2019-08-01', 60.0), (6600, '2019-06-01', 20.0), (6600, '2018-11-01', 6.0), (6520, '2018-05-01', 40.0);
-- DBMS: sqlite
CREATE TABLE emp_hire_periods (
    emp_id INTEGER,
    start_ TEXT,
    end_ TEXT,
    title TEXT
);

INSERT INTO emp_hire_periods (emp_id, start_, end_, title) VALUES (144, '2010-07-01', '2013-07-01', 'Sales Manager'), (145, '2014-02-01', NULL, 'IT Developer'), (147, '2014-10-01', '2015-05-01', 'Delivery Manager'), (145, '2019-02-01', NULL, 'Scrum Master'), (143, '2014-04-01', '2015-10-01', 'Code Tester');
-- DBMS: sqlite
CREATE TABLE web_page_visits (
    client_ip TEXT,
    visit_time TEXT,
    app_id INTEGER,
    page_no INTEGER
);

INSERT INTO web_page_visits (client_ip, visit_time, app_id, page_no) VALUES ('104.130.89.12', '2019-04-20 08:28:55', 542, 4), ('85.237.86.200', '2019-04-20 11:58:39', 542, 2), ('104.130.89.12', '2019-04-20 15:02:44', 542, 2), ('104.130.89.12', '2019-04-20 15:04:01', 542, 2), ('104.130.89.12', '2019-04-20 09:03:34', 542, 2);
-- DBMS: sqlite
CREATE TABLE picking_log (
    picklist_id INTEGER,
    log_time TEXT,
    activity TEXT,
    location_id INTEGER,
    pickline_no INTEGER
);

INSERT INTO picking_log (picklist_id, log_time, activity, location_id, pickline_no) VALUES (841, '2019-01-16 14:06:01', 'D', 16.0, nan), (841, '2019-01-16 14:09:02', 'P', 114.0, 5.0), (842, '2019-01-19 16:07:03', 'D', 165.0, nan), (842, '2019-01-19 16:03:20', 'D', 77.0, nan), (842, '2019-01-19 16:01:12', 'D', nan, nan);
-- DBMS: sqlite
CREATE TABLE supplementary_demographics (
    cust_id INTEGER,
    education TEXT,
    occupation TEXT,
    household_size TEXT,
    yrs_residence INTEGER,
    affinity_card INTEGER,
    cricket INTEGER,
    baseball INTEGER,
    tennis INTEGER,
    soccer INTEGER,
    golf INTEGER,
    unknown INTEGER,
    misc INTEGER,
    comments TEXT
);

INSERT INTO supplementary_demographics (cust_id, education, occupation, household_size, yrs_residence, affinity_card, cricket, baseball, tennis, soccer, golf, unknown, misc, comments) VALUES (103084, 'HS-grad', 'Other', '1', 2, 0, 0, 0, 0, 1, 1, 1, 0, 'Affinity card is great. I think it is a hassle to have to remember to bring it in every time though.'), (103699, '< Bach.', 'Protec.', '3', 3, 1, 1, 1, 0, 1, 1, 0, 0, 'Shopping at your store is a hassle. I rarely shop there and usually forget to bring your new loyalty card and hence never get the items at the sale price.  Can a store manager look up my account on-line?'), (104319, 'Bach.', 'Prof.', '9+', 4, 0, 1, 1, 1, 1, 1, 0, 0, 'The more times that I shop at your store, the more times I am impressed.  Don''t change anything'), (100144, '< Bach.', 'Exec.', '2', 4, 1, 1, 1, 1, 1, 1, 0, 0, 'I am not going to waste my time filling up this three page form. Lousy idea.'), (102128, 'HS-grad', 'Other', '9+', 4, 0, 1, 1, 1, 1, 1, 0, 0, 'I purchased a new model recently, but the instructions weren''t included.  Could you ship them to me directly?');
-- DBMS: sqlite
CREATE TABLE customers (
    cust_id INTEGER,
    cust_first_name TEXT,
    cust_last_name TEXT,
    cust_gender CHAR(1),
    cust_year_of_birth INTEGER,
    cust_marital_status TEXT,
    cust_street_address TEXT,
    cust_postal_code TEXT,
    cust_city TEXT,
    cust_city_id INTEGER,
    cust_state_province TEXT,
    cust_state_province_id INTEGER,
    country_id INTEGER,
    cust_main_phone_number TEXT,
    cust_income_level TEXT,
    cust_credit_limit REAL,
    cust_email TEXT,
    cust_total TEXT,
    cust_total_id INTEGER,
    cust_src_id INTEGER,
    cust_eff_from DATE,
    cust_eff_to DATE,
    cust_valid CHAR(1)
);

INSERT INTO customers (cust_id, cust_first_name, cust_last_name, cust_gender, cust_year_of_birth, cust_marital_status, cust_street_address, cust_postal_code, cust_city, cust_city_id, cust_state_province, cust_state_province_id, country_id, cust_main_phone_number, cust_income_level, cust_credit_limit, cust_email, cust_total, cust_total_id, cust_src_id, cust_eff_from, cust_eff_to, cust_valid) VALUES (22465, 'Polly', 'Ingram', 'F', 1950, 'single', '77 East Middlesex Avenue', '61189', 'Evinston', 51459, 'FL', 52595, 52790, '598-746-5594', 'D: 70,000 - 89,999', 3000.0, 'Ingram@company.example.com', 'Customer total', 52772, NULL, '2019-01-01', NULL, 'I'), (19879, 'Homer', 'Leach', 'M', 1958, 'married', '17 East Yukon Koyukuk Court', '55526', 'Alma', 51056, 'AR', 52540, 52790, '529-557-1883', 'E: 90,000 - 109,999', 1500.0, 'Leach@company.example.com', 'Customer total', 52772, NULL, '2019-01-01', NULL, 'I'), (11668, 'Forrest', 'Lauder', 'M', 1969, NULL, '7 South Conecuh Circle', '57339', 'Auckland', 51081, 'Auckland', 52549, 52785, '181-465-2885', 'G: 130,000 - 149,999', 10000.0, 'Lauder@company.example.com', 'Customer total', 52772, NULL, '2019-01-01', NULL, 'I'), (1717, 'Grady', 'Ladd', 'M', 1967, NULL, '37 Shawano Street', '37400', 'Yokohama', 52526, 'Kanagawa', 52634, 52782, '695-206-8041', 'F: 110,000 - 129,999', 10000.0, 'Ladd@company.example.com', 'Customer total', 52772, NULL, '2019-01-01', NULL, 'I'), (15489, 'Tammy', 'Valdez', 'M', 1959, 'single', '57 South Montour Drive', '88021', 'Sully', 52333, 'IA', 52618, 52790, '173-360-7878', 'F: 110,000 - 129,999', 9000.0, 'Valdez@company.example.com', 'Customer total', 52772, NULL, '2019-01-01', NULL, 'A');
-- DBMS: sqlite
CREATE TABLE currency (
    country TEXT,
    year INTEGER,
    month INTEGER,
    to_us REAL
);

INSERT INTO currency (country, year, month, to_us) VALUES ('United States of Ame', 2020, 11, 1.0), ('Brazil', 2019, 12, 1.0), ('Hungary', 2019, 10, 1.0), ('Nigeria', 2019, 12, 1.0), ('United Kingdom', 2020, 10, 1.0);
-- DBMS: sqlite
CREATE TABLE channels (
    channel_id INTEGER,
    channel_desc TEXT,
    channel_class TEXT,
    channel_class_id INTEGER,
    channel_total TEXT,
    channel_total_id INTEGER
);

INSERT INTO channels (channel_id, channel_desc, channel_class, channel_class_id, channel_total, channel_total_id) VALUES (4, 'Internet', 'Indirect', 13, 'Channel total', 1), (9, 'Tele Sales', 'Direct', 12, 'Channel total', 1), (5, 'Catalog', 'Indirect', 13, 'Channel total', 1), (2, 'Partners', 'Others', 14, 'Channel total', 1), (3, 'Direct Sales', 'Direct', 12, 'Channel total', 1);
-- DBMS: sqlite
CREATE TABLE promotions (
    promo_id INTEGER,
    promo_name TEXT,
    promo_subcategory TEXT,
    promo_subcategory_id INTEGER,
    promo_category TEXT,
    promo_category_id INTEGER,
    promo_cost REAL,
    promo_begin_date DATE,
    promo_end_date DATE,
    promo_total TEXT,
    promo_total_id INTEGER
);

INSERT INTO promotions (promo_id, promo_name, promo_subcategory, promo_subcategory_id, promo_category, promo_category_id, promo_cost, promo_begin_date, promo_end_date, promo_total, promo_total_id) VALUES (508, 'newspaper promotion #19-508', 'coupon news', 19, 'newspaper', 8, 91800.0, '2021-08-19', '2021-09-19', 'Promotion total', 1), (278, 'radio promotion #32-278', 'radio program sponsorship', 32, 'radio', 10, 66800.0, '2021-05-21', '2021-06-21', 'Promotion total', 1), (265, 'newspaper promotion #16-265', 'ad news', 16, 'newspaper', 8, 61500.0, '2021-05-31', '2021-06-30', 'Promotion total', 1), (244, 'magazine promotion #18-244', 'coupon magazine', 18, 'magazine', 7, 46100.0, '2021-02-21', '2021-03-21', 'Promotion total', 1), (491, 'newspaper promotion #16-491', 'ad news', 16, 'newspaper', 8, 76800.0, '2021-05-08', '2021-06-08', 'Promotion total', 1);
-- DBMS: sqlite
CREATE TABLE countries (
    country_id INTEGER,
    country_iso_code CHAR(2),
    country_name TEXT,
    country_subregion TEXT,
    country_subregion_id INTEGER,
    country_region TEXT,
    country_region_id INTEGER,
    country_total TEXT,
    country_total_id INTEGER
);

INSERT INTO countries (country_id, country_iso_code, country_name, country_subregion, country_subregion_id, country_region, country_region_id, country_total, country_total_id) VALUES (52775, 'BR', 'Brazil', 'Southern America', 52798, 'Americas', 52801, 'World total', 52806), (52789, 'GB', 'United Kingdom', 'Western Europe', 52799, 'Europe', 52803, 'World total', 52806), (52790, 'US', 'United States of America', 'Northern America', 52797, 'Americas', 52801, 'World total', 52806), (52792, 'MX', 'Mexico', 'Northern America', 52797, 'Americas', 52801, 'World total', 52806), (52771, 'CN', 'China', 'Asia', 52793, 'Asia', 52802, 'World total', 52806);
-- DBMS: sqlite
CREATE TABLE sales (
    prod_id INTEGER,
    cust_id INTEGER,
    time_id DATE,
    channel_id INTEGER,
    promo_id INTEGER,
    quantity_sold INTEGER,
    amount_sold REAL
);

INSERT INTO sales (prod_id, cust_id, time_id, channel_id, promo_id, quantity_sold, amount_sold) VALUES (26, 1342, '2019-04-13', 3, 999, 1, 168.58), (36, 2175, '2020-10-17', 4, 999, 1, 42.09), (128, 9234, '2019-08-05', 3, 350, 1, 28.86), (143, 2144, '2021-06-03', 3, 999, 1, 22.17), (118, 1942, '2020-04-27', 2, 999, 1, 8.13);
-- DBMS: sqlite
CREATE TABLE products (
    prod_id INTEGER,
    prod_name TEXT,
    prod_desc TEXT,
    prod_subcategory TEXT,
    prod_subcategory_id INTEGER,
    prod_subcategory_desc TEXT,
    prod_category TEXT,
    prod_category_id INTEGER,
    prod_category_desc TEXT,
    prod_weight_class INTEGER,
    prod_unit_of_measure TEXT,
    prod_pack_size TEXT,
    supplier_id INTEGER,
    prod_status TEXT,
    prod_list_price REAL,
    prod_min_price REAL,
    prod_total TEXT,
    prod_total_id INTEGER,
    prod_src_id INTEGER,
    prod_eff_from DATE,
    prod_eff_to DATE,
    prod_valid CHAR(1)
);

INSERT INTO products (prod_id, prod_name, prod_desc, prod_subcategory, prod_subcategory_id, prod_subcategory_desc, prod_category, prod_category_id, prod_category_desc, prod_weight_class, prod_unit_of_measure, prod_pack_size, supplier_id, prod_status, prod_list_price, prod_min_price, prod_total, prod_total_id, prod_src_id, prod_eff_from, prod_eff_to, prod_valid) VALUES (14, 'Pitching Machine and Batting Cage Combo', 'Pitching Machine and Batting Cage Combo', 'Training Aids and Equipment', 2035, 'Training Aids and Equipment', 'Baseball', 203, 'Baseball', 1, 'U', 'P', 1, 'STATUS', 999.99, 999.99, 'TOTAL', 1, '', '2019-01-01 00:00:00', '', 'A'), (127, 'Genuine Series MIX Wood Bat', 'Genuine Series MIX Wood Bat', 'Bats', 2036, 'Bats', 'Baseball', 203, 'Baseball', 1, 'U', 'P', 1, 'STATUS', 36.99, 36.99, 'TOTAL', 1, '', '2019-01-01 00:00:00', '', 'A'), (23, 'Plastic Cricket Bat', 'Plastic - Beach Cricket Bat', 'Cricket Bat', 2051, 'Cricket', 'Cricket', 205, 'Cricket', 1, 'U', 'P', 1, 'STATUS', 21.99, 21.99, 'TOTAL', 1, '', '2019-01-01 00:00:00', '', 'A'), (50, 'Cricket Gloves', 'Cricket Gloves', 'Cricket', 2055, 'Cricket', 'Cricket', 205, 'Cricket', 1, 'U', 'P', 1, 'STATUS', 19.99, 19.99, 'TOTAL', 1, '', '2019-01-01 00:00:00', '', 'A'), (43, 'Team shirt', 'Australian Cricket Team', 'Cricket Fan Gear', 2054, 'Cricket Fan Gear', 'Cricket', 205, 'Cricket', 1, 'U', 'P', 1, 'STATUS', 44.99, 44.99, 'TOTAL', 1, '', '2019-01-01 00:00:00', '', 'A');
-- DBMS: sqlite
CREATE TABLE costs (
    prod_id INTEGER,
    time_id DATE,
    promo_id INTEGER,
    channel_id INTEGER,
    unit_cost REAL,
    unit_price REAL
);

INSERT INTO costs (prod_id, time_id, promo_id, channel_id, unit_cost, unit_price) VALUES (22, '2019-11-12', 999, 3, 23.08, 26.29), (41, '2022-07-15', 999, 3, 37.76, 48.65), (45, '2021-11-15', 999, 2, 44.04, 48.78), (29, '2022-08-14', 999, 2, 423.19, 530.86), (123, '2019-02-24', 999, 3, 44.37, 64.99);
-- DBMS: sqlite
CREATE TABLE order_items (
    order_id TEXT,
    order_item_id INTEGER,
    product_id TEXT,
    seller_id TEXT,
    shipping_limit_date TEXT,
    price REAL,
    freight_value REAL
);

INSERT INTO order_items (order_id, order_item_id, product_id, seller_id, shipping_limit_date, price, freight_value) VALUES ('fd1dfd657df57a8183a8bd5ad5725538', 1, '4d8ea5149cb1949048b389bc23797fef', 'aae3bfea055532c57fb453ed3ec80b30', '2017-03-07 23:50:10', 68.0, 11.09), ('8842bee3797d9ac30486e0b26f5a9756', 1, 'f72b7888719ff77bf96e14bc97b64430', 'cfb1a033743668a192316f3c6d1d2671', '2018-03-05 04:15:43', 124.9, 14.27), ('e87aa2b0086ab1f74f1faa822186807c', 1, '8f79239910bb0bf15488ef9abd9e6593', '12b9676b00f60f3b700e83af21824c0e', '2017-04-25 18:22:48', 199.0, 28.14), ('b560ced1765e243b3ebf765d80a8873d', 1, '372645c7439f9661fbbacfd129aa92ec', 'da8622b14eb17ae2831f4ac5b9dab84a', '2018-07-25 04:45:07', 114.9, 23.6), ('35ff30856e32d0b5a4a2abe36bc26f4e', 1, '288dbc06591742c5d7fe90fbfb08943e', '9add47bf45ce8e8c7db6b9cf670b1e09', '2017-10-11 20:49:31', 109.8, 24.15);
-- DBMS: sqlite
CREATE TABLE geolocation (
    geolocation_zip_code_prefix INTEGER,
    geolocation_lat REAL,
    geolocation_lng REAL,
    geolocation_city TEXT,
    geolocation_state TEXT
);

INSERT INTO geolocation (geolocation_zip_code_prefix, geolocation_lat, geolocation_lng, geolocation_city, geolocation_state) VALUES (8900, -23.41703007438397, -46.03386496794391, 'guararema', 'SP'), (18520, -23.159482222434374, -47.76046832976516, 'cerquilho', 'SP'), (89210, -26.336437470165603, -48.83769144601536, 'joinville', 'SC'), (79758, -21.757988776500703, -53.26856664727548, 'nova casa verde', 'MS'), (35160, -19.51289595614291, -42.56145298557327, 'ipatinga', 'MG');
-- DBMS: sqlite
CREATE TABLE leads_closed (
    mql_id TEXT,
    seller_id TEXT,
    sdr_id TEXT,
    sr_id TEXT,
    won_date TEXT,
    business_segment TEXT,
    lead_type TEXT,
    lead_behaviour_profile TEXT,
    has_company INTEGER,
    has_gtin INTEGER,
    average_stock TEXT,
    business_type TEXT,
    declared_product_catalog_size REAL,
    declared_monthly_revenue REAL
);

INSERT INTO leads_closed (mql_id, seller_id, sdr_id, sr_id, won_date, business_segment, lead_type, lead_behaviour_profile, has_company, has_gtin, average_stock, business_type, declared_product_catalog_size, declared_monthly_revenue) VALUES ('0e327f32dbb22d433600688b7e9af0db', 'cee4320453079d554562dee0753d7d43', 'b34f6eba10f46bf9a657a01c108a8284', '068066e24f0c643eb1d089c7dd20cd73', '2018-08-21 21:07:30', 'health_beauty', 'online_medium', 'shark', 1.0, 1.0, '5-20', 'reseller', 500.0, 30000.0), ('07e3b175a6c00f310d4e7e4b17df1304', '8ec9a02e1c573e5ebf9133968d9b0042', '9e4d1098a3b0f5da39b0bc48f9876645', '495d4e95a8cf8bbf8b432b612a2aa328', '2018-02-28 21:24:13', 'home_office_furniture', 'industry', 'cat', nan, nan, NULL, 'manufacturer', nan, 0.0), ('0a55079ea003674ae2145b02f03ff27d', 'ae0728a2cb289dec6d1ceb0b7d6b82c5', '4b339f9567d060bcea4f5136b9f5949e', '9e4d1098a3b0f5da39b0bc48f9876645', '2018-04-10 14:43:06', 'health_beauty', 'online_medium', 'cat', nan, nan, NULL, 'reseller', nan, 0.0), ('05b99715f32c973f929cd22735389966', 'bbe87dce25ba8b38bb61cc7210a3f10b', '9e4d1098a3b0f5da39b0bc48f9876645', '85fc447d336637ba1df43e793199fbc8', '2018-03-22 15:07:28', 'construction_tools_house_garden', 'online_big', 'cat', nan, nan, NULL, 'reseller', nan, 0.0), ('7290c4082936311a3295b7c9ca7bda8f', '9c1c0c36cd23c20897e473901a8fb149', '9e4d1098a3b0f5da39b0bc48f9876645', 'fbf4aef3f6915dc0c3c97d6812522f6a', '2018-03-19 20:26:27', 'food_drink', 'online_medium', 'cat', nan, nan, NULL, 'reseller', nan, 0.0);
-- DBMS: sqlite
CREATE TABLE order_reviews (
    review_id TEXT,
    order_id TEXT,
    review_score INTEGER,
    review_comment_title TEXT,
    review_comment_message TEXT,
    review_creation_date TEXT,
    review_answer_timestamp TEXT
);

INSERT INTO order_reviews (review_id, order_id, review_score, review_comment_title, review_comment_message, review_creation_date, review_answer_timestamp) VALUES ('c74b4e36cdad43707ec16b14a655ad4d', 'b64c877d24e9ca2418150a159d754371', 5, NULL, 'Nunca tive problemas super recomendado ', '2018-02-23 00:00:00', '2018-02-26 12:38:17'), ('d04bf0f58aec6ea447a3551b90f7c1dd', 'f18cb9c90909f11a7adabc63fb188f19', 4, NULL, 'Foi entregue apenas parte do pedido, a saia para cama box não veio.', '2017-10-25 00:00:00', '2017-10-25 12:01:32'), ('c0c1c760cf359132694e049c74dab224', '0d9df4f2f2ff31254428de406416328c', 5, NULL, 'Entrega antes do prazo previsto, sensacional', '2017-04-21 00:00:00', '2017-04-22 01:05:05'), ('dc0512c8eeec6afd238c367c8ea4938c', 'ac2b0218860ad82946845af74f514052', 4, NULL, 'Amei, só achei caro ', '2018-02-27 00:00:00', '2018-02-28 03:45:53'), ('f9dc1e05e8b8efa6af2a6bd92992ea01', '05c882a9c704a528bfbaa15fd8805d43', 5, NULL, NULL, '2018-01-30 00:00:00', '2018-01-30 23:57:52');
-- DBMS: sqlite
CREATE TABLE orders (
    order_id TEXT,
    customer_id TEXT,
    order_status TEXT,
    order_purchase_timestamp TEXT,
    order_approved_at TEXT,
    order_delivered_carrier_date TEXT,
    order_delivered_customer_date TEXT,
    order_estimated_delivery_date TEXT
);

INSERT INTO orders (order_id, customer_id, order_status, order_purchase_timestamp, order_approved_at, order_delivered_carrier_date, order_delivered_customer_date, order_estimated_delivery_date) VALUES ('36496983bcef05ef8cf855bbcf5d23ab', 'cbb8cc5d78799d889be9031df33c30dd', 'delivered', '2018-03-09 11:28:21', '2018-03-10 03:48:47', '2018-03-13 19:34:36', '2018-03-26 19:44:42', '2018-04-04 00:00:00'), ('ff64e0ba4800eb1127ac32aeac2b51f9', '16482587049b0c2a607dd532d0653696', 'delivered', '2017-11-20 16:46:51', '2017-11-20 16:56:23', '2017-11-24 15:39:15', '2017-12-05 00:57:57', '2017-12-13 00:00:00'), ('6cd474b81add3c3d62536cab3e34aa23', '796e0c6b3690401bd5592b7ce89be9f2', 'delivered', '2018-08-06 09:12:33', '2018-08-06 09:44:23', '2018-08-13 15:33:00', '2018-08-14 18:11:36', '2018-08-22 00:00:00'), ('c1bb3ffb1aeb6afbe42101499bd15708', '5331ac2d2ed2def738a9c200cf8ebacb', 'delivered', '2017-11-28 21:31:13', '2017-11-30 02:20:22', '2017-12-01 20:49:50', '2017-12-06 19:12:54', '2017-12-18 00:00:00'), ('fd85f9c9bfe9cc5b55c648a96a4f2598', '2fe74cd469ff73b77342fc789332b598', 'delivered', '2017-07-04 15:26:25', '2017-07-06 03:23:59', '2017-07-06 13:34:33', '2017-07-14 18:55:36', '2017-07-26 00:00:00');
-- DBMS: sqlite
CREATE TABLE customers (
    customer_id TEXT,
    customer_unique_id TEXT,
    customer_zip_code_prefix INTEGER,
    customer_city TEXT,
    customer_state TEXT
);

INSERT INTO customers (customer_id, customer_unique_id, customer_zip_code_prefix, customer_city, customer_state) VALUES ('a1acf95041edd043087a040e89449636', '191525912e1a31a97bf8b481ce852f75', 11712, 'praia grande', 'SP'), ('6b4e082b14e562a79465f516bd129f3b', 'a45db9d0a5dcfbf97517132c9d7fe232', 41825, 'salvador', 'BA'), ('216ca7984f36f840df4e983b578856d4', 'f64909771abc5e2378773b2b8a56f67b', 13426, 'piracicaba', 'SP'), ('e54e09bbe2be2674c611aa7a6456a8e7', '43df16fc8bbc0499aa6bf4e582dfbb66', 78700, 'rondonopolis', 'MT'), ('fbd3895c5f12c58d91cfb71241f3f5cc', '2d62f3a9748197a1e14719249eaaef03', 89560, 'videira', 'SC');
-- DBMS: sqlite
CREATE TABLE order_payments (
    order_id TEXT,
    payment_sequential INTEGER,
    payment_type TEXT,
    payment_installments INTEGER,
    payment_value REAL
);

INSERT INTO order_payments (order_id, payment_sequential, payment_type, payment_installments, payment_value) VALUES ('ee026f49fd0f7469eca393e46a073077', 1, 'credit_card', 4, 74.63), ('1d85312d372335db21f7f178c2325c6c', 1, 'credit_card', 6, 158.8), ('2b8b7636f69e8dca87850024171a19fa', 1, 'credit_card', 10, 116.13), ('a8f53fb2d23aa53494da639eaed2c172', 1, 'credit_card', 10, 104.4), ('1ce630b94c04093fbbb40498068f46b0', 1, 'boleto', 1, 189.0);
-- DBMS: sqlite
CREATE TABLE product_category_name_translation (
    product_category_name TEXT,
    product_category_name_english TEXT
);

INSERT INTO product_category_name_translation (product_category_name, product_category_name_english) VALUES ('ferramentas_jardim', 'garden_tools'), ('cama_mesa_banho', 'bed_bath_table'), ('fashion_roupa_feminina', 'fashio_female_clothing'), ('agro_industria_e_comercio', 'agro_industry_and_commerce'), ('artigos_de_festas', 'party_supplies');
-- DBMS: sqlite
CREATE TABLE products (
    product_id TEXT,
    product_category_name TEXT,
    product_name_lenght REAL,
    product_description_lenght REAL,
    product_photos_qty REAL,
    product_weight_g REAL,
    product_length_cm REAL,
    product_height_cm REAL,
    product_width_cm REAL
);

INSERT INTO products (product_id, product_category_name, product_name_lenght, product_description_lenght, product_photos_qty, product_weight_g, product_length_cm, product_height_cm, product_width_cm) VALUES ('5a49f099263e18cab64382c04cb76883', 'relogios_presentes', 35.0, 538.0, 1.0, 467.0, 22.0, 13.0, 17.0), ('537148287359f3f816095b3bfc368130', 'cama_mesa_banho', 60.0, 340.0, 1.0, 3600.0, 35.0, 6.0, 25.0), ('f5c0c21094c05855d475bc3890adb6dd', 'automotivo', 59.0, 1116.0, 3.0, 450.0, 16.0, 5.0, 11.0), ('c5dfa757c5ae7662e178e990e39362e0', 'fashion_bolsas_e_acessorios', 34.0, 426.0, 4.0, 150.0, 16.0, 9.0, 11.0), ('e4d34d3dbd367b0021e5d65105870180', 'ferramentas_jardim', 41.0, 288.0, 2.0, 1372.0, 28.0, 12.0, 26.0);
-- DBMS: sqlite
CREATE TABLE sellers (
    seller_id TEXT,
    seller_zip_code_prefix INTEGER,
    seller_city TEXT,
    seller_state TEXT
);

INSERT INTO sellers (seller_id, seller_zip_code_prefix, seller_city, seller_state) VALUES ('aced59e9b31ef866a94f9e7f29d8d418', 3306, 'sao paulo', 'SP'), ('b5f49fe968dff6b112861e6cd8e192ef', 80710, 'curitiba', 'PR'), ('b55638ad525e906c698fa2ce742c1742', 88780, 'imbituba', 'SC'), ('d9c349beabc06aa6ff1c6d68b5e9e22e', 3586, 'sao paulo', 'SP'), ('1690cada046eb7e92c12f98b1f8a8167', 1303, 'sao paulo', 'SP');
-- DBMS: sqlite
CREATE TABLE leads_qualified (
    mql_id TEXT,
    first_contact_date TEXT,
    landing_page_id TEXT,
    origin TEXT
);

INSERT INTO leads_qualified (mql_id, first_contact_date, landing_page_id, origin) VALUES ('a7ad710353b08b3d1e7ee6daca9679cc', '2018-02-07', '0218f6be0b76aca72ab4d00ee9e8cf10', 'organic_search'), ('785f9daa6aedd3afc9ef23137a51fe3e', '2017-11-20', 'b217afa2c1f4cb502423005639878f6d', 'paid_search'), ('2a5f614fbd6b69fd6695ae213d63eef0', '2017-07-12', '31aa231b755f09653f48e41c110c8860', 'organic_search'), ('b2a242690f117309099b7a561b605e9e', '2017-07-20', '22c29808c4f815213303f8933030604c', 'organic_search'), ('659d33c1b83122ee316c7943d8b091eb', '2018-03-16', '22c29808c4f815213303f8933030604c', 'paid_search');
-- DBMS: sqlite
CREATE TABLE Team_Attributes (
    id INTEGER,
    team_fifa_api_id INTEGER,
    team_api_id INTEGER,
    date TEXT,
    buildUpPlaySpeed INTEGER,
    buildUpPlaySpeedClass TEXT,
    buildUpPlayDribbling INTEGER,
    buildUpPlayDribblingClass TEXT,
    buildUpPlayPassing INTEGER,
    buildUpPlayPassingClass TEXT,
    buildUpPlayPositioningClass TEXT,
    chanceCreationPassing INTEGER,
    chanceCreationPassingClass TEXT,
    chanceCreationCrossing INTEGER,
    chanceCreationCrossingClass TEXT,
    chanceCreationShooting INTEGER,
    chanceCreationShootingClass TEXT,
    chanceCreationPositioningClass TEXT,
    defencePressure INTEGER,
    defencePressureClass TEXT,
    defenceAggression INTEGER,
    defenceAggressionClass TEXT,
    defenceTeamWidth INTEGER,
    defenceTeamWidthClass TEXT,
    defenceDefenderLineClass TEXT
);

INSERT INTO Team_Attributes (id, team_fifa_api_id, team_api_id, date, buildUpPlaySpeed, buildUpPlaySpeedClass, buildUpPlayDribbling, buildUpPlayDribblingClass, buildUpPlayPassing, buildUpPlayPassingClass, buildUpPlayPositioningClass, chanceCreationPassing, chanceCreationPassingClass, chanceCreationCrossing, chanceCreationCrossingClass, chanceCreationShooting, chanceCreationShootingClass, chanceCreationPositioningClass, defencePressure, defencePressureClass, defenceAggression, defenceAggressionClass, defenceTeamWidth, defenceTeamWidthClass, defenceDefenderLineClass) VALUES (270, 1961, 8344, '2011-02-22 00:00:00', 67, 'Fast', nan, 'Little', 49, 'Mixed', 'Organised', 67, 'Risky', 67, 'Lots', 48, 'Normal', 'Organised', 46, 'Medium', 47, 'Press', 53, 'Normal', 'Cover'), (828, 68, 8550, '2014-09-19 00:00:00', 55, 'Balanced', 42.0, 'Normal', 49, 'Mixed', 'Organised', 49, 'Normal', 54, 'Normal', 53, 'Normal', 'Organised', 46, 'Medium', 54, 'Press', 50, 'Normal', 'Cover'), (1197, 237, 9768, '2014-09-19 00:00:00', 55, 'Balanced', 65.0, 'Normal', 56, 'Mixed', 'Organised', 42, 'Normal', 50, 'Normal', 55, 'Normal', 'Organised', 60, 'Medium', 60, 'Press', 54, 'Normal', 'Cover'), (210, 22, 9789, '2010-02-22 00:00:00', 70, 'Fast', nan, 'Little', 45, 'Mixed', 'Organised', 70, 'Risky', 34, 'Normal', 66, 'Normal', 'Free Form', 54, 'Medium', 70, 'Double', 53, 'Normal', 'Offside Trap'), (1101, 1902, 9803, '2013-09-20 00:00:00', 42, 'Balanced', nan, 'Little', 44, 'Mixed', 'Organised', 49, 'Normal', 40, 'Normal', 38, 'Normal', 'Organised', 47, 'Medium', 44, 'Press', 55, 'Normal', 'Cover');
-- DBMS: sqlite
CREATE TABLE League (
    id INTEGER,
    country_id INTEGER,
    name TEXT
);

INSERT INTO League (id, country_id, name) VALUES (4769, 4769, 'France Ligue 1'), (1729, 1729, 'England Premier League'), (21518, 21518, 'Spain LIGA BBVA'), (24558, 24558, 'Switzerland Super League'), (19694, 19694, 'Scotland Premier League');
-- DBMS: sqlite
CREATE TABLE Player (
    id INTEGER,
    player_api_id INTEGER,
    player_name TEXT,
    player_fifa_api_id INTEGER,
    birthday TEXT,
    height INTEGER,
    weight INTEGER
);

INSERT INTO Player (id, player_api_id, player_name, player_fifa_api_id, birthday, height, weight) VALUES (964, 314966, 'Armin Cerimagic', 207758, '1994-01-14 00:00:00', 180.34, 165), (10906, 94045, 'Yannik Boli', 186723, '1988-01-13 00:00:00', 180.34, 165), (5338, 56706, 'Jose Luis Garces', 174731, '1981-05-09 00:00:00', 182.88, 161), (6862, 194134, 'Mark Connolly', 198497, '1991-12-16 00:00:00', 185.42, 170), (7140, 279116, 'Mats Seuntjes', 204684, '1992-04-17 00:00:00', 182.88, 179);
-- DBMS: sqlite
CREATE TABLE Team (
    id INTEGER,
    team_api_id INTEGER,
    team_fifa_api_id INTEGER,
    team_long_name TEXT,
    team_short_name TEXT
);

INSERT INTO Team (id, team_api_id, team_fifa_api_id, team_long_name, team_short_name) VALUES (2, 9993, 675, 'Beerschot AC', 'BAC'), (3476, 8462, 1790, 'Portsmouth', 'POR'), (2510, 274581, 111560, 'Royal Excel Mouscron', 'MOP'), (3473, 8667, 1952, 'Hull City', 'HUL'), (16850, 8152, 110329, 'FC St. Pauli', 'STP');
-- DBMS: sqlite
CREATE TABLE Player_Attributes (
    id INTEGER,
    player_fifa_api_id INTEGER,
    player_api_id INTEGER,
    date TEXT,
    overall_rating INTEGER,
    potential INTEGER,
    preferred_foot TEXT,
    attacking_work_rate TEXT,
    defensive_work_rate TEXT,
    crossing INTEGER,
    finishing INTEGER,
    heading_accuracy INTEGER,
    short_passing INTEGER,
    volleys INTEGER,
    dribbling INTEGER,
    curve INTEGER,
    free_kick_accuracy INTEGER,
    long_passing INTEGER,
    ball_control INTEGER,
    acceleration INTEGER,
    sprint_speed INTEGER,
    agility INTEGER,
    reactions INTEGER,
    balance INTEGER,
    shot_power INTEGER,
    jumping INTEGER,
    stamina INTEGER,
    strength INTEGER,
    long_shots INTEGER,
    aggression INTEGER,
    interceptions INTEGER,
    positioning INTEGER,
    vision INTEGER,
    penalties INTEGER,
    marking INTEGER,
    standing_tackle INTEGER,
    sliding_tackle INTEGER,
    gk_diving INTEGER,
    gk_handling INTEGER,
    gk_kicking INTEGER,
    gk_positioning INTEGER,
    gk_reflexes INTEGER
);

INSERT INTO Player_Attributes (id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, long_passing, ball_control, acceleration, sprint_speed, agility, reactions, balance, shot_power, jumping, stamina, strength, long_shots, aggression, interceptions, positioning, vision, penalties, marking, standing_tackle, sliding_tackle, gk_diving, gk_handling, gk_kicking, gk_positioning, gk_reflexes) VALUES (174935, 189263, 102301, '2010-08-30 00:00:00', 66, 77, 'right', 'medium', 'medium', 61, 66, 60, 66, 62, 72, 43, 50, 54, 66, 73, 75, 75, 64, 52, 65, 42, 64, 58, 57, 38, 30, 69, 51, 57, 11, 11, 12, 6, 13, 5, 5, 13), (94567, 183142, 47413, '2014-09-18 00:00:00', 63, 64, 'right', 'medium', 'medium', 61, 60, 52, 64, 46, 57, 34, 31, 61, 59, 80, 81, 75, 59, 73, 59, 47, 73, 72, 54, 64, 48, 58, 64, 59, 64, 60, 58, 15, 13, 14, 14, 8), (158917, 152697, 34206, '2010-08-30 00:00:00', 63, 68, 'right', 'medium', 'medium', 28, 28, 64, 62, 34, 45, 21, 20, 46, 57, 64, 61, 49, 56, 68, 46, 79, 75, 78, 21, 71, 66, 22, 55, 33, 58, 66, 46, 5, 9, 6, 8, 13), (142, 221280, 564793, '2015-12-17 00:00:00', 61, 76, 'right', 'medium', 'high', 48, 32, 47, 64, 34, 54, 56, 40, 64, 63, 69, 67, 60, 61, 80, 53, 71, 68, 59, 38, 75, 54, 39, 61, 42, 52, 58, 57, 8, 13, 14, 14, 15), (98247, 205174, 208280, '2013-02-22 00:00:00', 60, 65, 'right', 'medium', 'medium', 27, 37, 61, 46, 31, 27, 18, 37, 43, 39, 67, 70, 59, 61, 52, 37, 75, 68, 73, 42, 52, 52, 21, 41, 42, 61, 63, 62, 13, 10, 12, 14, 14);
-- DBMS: sqlite
CREATE TABLE manager_award (
    player_id TEXT,
    award_id TEXT,
    year INTEGER,
    league_id TEXT,
    tie TEXT,
    notes NUMERIC
);

INSERT INTO manager_award (player_id, award_id, year, league_id, tie, notes) VALUES ('dyered01', 'TSN Manager of the Year', 1946, 'ML', '', ''), ('blackbu02', 'BBWAA Manager of the year', 2010, 'NL', '', ''), ('williji03', 'TSN Manager of the Year', 1999, 'AL', '', ''), ('herzowh01', 'BBWAA Manager of the year', 1985, 'NL', '', ''), ('bakerdu01', 'BBWAA Manager of the year', 1997, 'NL', '', '');
-- DBMS: sqlite
CREATE TABLE pitching (
    player_id TEXT,
    year INTEGER,
    stint INTEGER,
    team_id TEXT,
    league_id TEXT,
    w INTEGER,
    l INTEGER,
    g INTEGER,
    gs INTEGER,
    cg INTEGER,
    sho INTEGER,
    sv INTEGER,
    ipouts NUMERIC,
    h INTEGER,
    er INTEGER,
    hr INTEGER,
    bb INTEGER,
    so INTEGER,
    baopp NUMERIC,
    era NUMERIC,
    ibb NUMERIC,
    wp NUMERIC,
    hbp NUMERIC,
    bk INTEGER,
    bfp NUMERIC,
    gf NUMERIC,
    r INTEGER,
    sh NUMERIC,
    sf NUMERIC,
    g_idp NUMERIC
);

INSERT INTO pitching (player_id, year, stint, team_id, league_id, w, l, g, gs, cg, sho, sv, ipouts, h, er, hr, bb, so, baopp, era, ibb, wp, hbp, bk, bfp, gf, r, sh, sf, g_idp) VALUES ('valdeca01', 1998, 1, 'BOS', 'AL', 1, 0, 4, 0, 0, 0, 0, 10, 1, 0, 0, 5, 4, '', 0.0, 0, 0, 0, 0, 16, 1, 0, '', '', ''), ('eckerch01', 1919, 1, 'PHA', 'AL', 0, 1, 2, 1, 1, 0, 0, 48, 17, 7, 1, 3, 6, 0.27, 3.94, '', 0, 0, 0, 66, 1, 9, '', '', ''), ('brancra01', 1945, 1, 'BRO', 'NL', 5, 6, 16, 15, 7, 0, 1, 329, 73, 37, 4, 79, 69, 0.18, 3.04, '', 6, 0, 0, 476, 1, 44, '', '', ''), ('choatdo01', 1960, 1, 'SFN', 'NL', 0, 0, 4, 0, 0, 0, 0, 24, 7, 2, 0, 4, 7, 0.23, 2.25, 0, 1, 0, 0, 34, 1, 4, '', '', ''), ('garcija01', 2010, 1, 'SFN', 'NL', 7, 2, 52, 0, 0, 0, 2, 166, 40, 12, 2, 26, 56, 0.20800000000000002, 1.95, 4, 10, 4, 0, 225, 13, 14, 2, 1, '');
-- DBMS: sqlite
CREATE TABLE team_half (
    year INTEGER,
    league_id TEXT,
    team_id TEXT,
    half INTEGER,
    div_id TEXT,
    div_win TEXT,
    rank INTEGER,
    g INTEGER,
    w INTEGER,
    l INTEGER
);

INSERT INTO team_half (year, league_id, team_id, half, div_id, div_win, rank, g, w, l) VALUES (1981, 'NL', 'CHN', 1, 'E', 'N', 6, 52, 15, 37), (1981, 'AL', 'CLE', 2, 'E', 'N', 5, 53, 26, 27), (1981, 'AL', 'OAK', 2, 'W', 'N', 2, 49, 27, 22), (1981, 'NL', 'SDN', 2, 'W', 'N', 6, 54, 18, 36), (1981, 'NL', 'SDN', 1, 'W', 'N', 6, 56, 23, 33);
-- DBMS: sqlite
CREATE TABLE batting_postseason (
    year INTEGER,
    round TEXT,
    player_id TEXT,
    team_id TEXT,
    league_id TEXT,
    g INTEGER,
    ab INTEGER,
    r INTEGER,
    h INTEGER,
    double INTEGER,
    triple INTEGER,
    hr INTEGER,
    rbi INTEGER,
    sb INTEGER,
    cs NUMERIC,
    bb INTEGER,
    so INTEGER,
    ibb NUMERIC,
    hbp NUMERIC,
    sh NUMERIC,
    sf NUMERIC,
    g_idp NUMERIC
);

INSERT INTO batting_postseason (year, round, player_id, team_id, league_id, g, ab, r, h, double, triple, hr, rbi, sb, cs, bb, so, ibb, hbp, sh, sf, g_idp) VALUES (2007, 'WS', 'papeljo01', 'BOS', 'AL', 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (2008, 'ALDS1', 'rossda01', 'BOS', 'AL', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (2012, 'ALDS1', 'hardyjj01', 'BAL', 'AL', 5, 22, 0, 3, 2, 0, 0, 1, 0, 0, 1, 4, '', '', '', '', ''), (1985, 'WS', 'smithoz01', 'SLN', 'NL', 7, 23, 1, 2, 0, 0, 0, 0, 1, 1, 4, 0, 0, 0, 1, 0, 1), (1963, 'WS', 'podrejo01', 'LAN', 'NL', 1, 4, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
-- DBMS: sqlite
CREATE TABLE player_award_vote (
    award_id TEXT,
    year INTEGER,
    league_id TEXT,
    player_id TEXT,
    points_won NUMERIC,
    points_max INTEGER,
    votes_first NUMERIC
);

INSERT INTO player_award_vote (award_id, year, league_id, player_id, points_won, points_max, votes_first) VALUES ('MVP', 1950, 'NL', 'konstji01', 286, 336, 18), ('MVP', 1967, 'AL', 'hansero02', 13, 280, 0), ('MVP', 1962, 'NL', 'mayswi01', 202, 280, 7), ('MVP', 1950, 'NL', 'bickfve01', 4, 336, 0), ('MVP', 2007, 'AL', 'putzjj01', 12, 392, 0);
-- DBMS: sqlite
CREATE TABLE postseason (
    year INTEGER,
    round TEXT,
    team_id_winner TEXT,
    league_id_winner TEXT,
    team_id_loser TEXT,
    league_id_loser TEXT,
    wins INTEGER,
    losses INTEGER,
    ties INTEGER
);

INSERT INTO postseason (year, round, team_id_winner, league_id_winner, team_id_loser, league_id_loser, wins, losses, ties) VALUES (2010, 'ALDS1', 'TEX', 'AL', 'TBA', 'AL', 3, 2, 0), (2009, 'ALDS1', 'NYA', 'AL', 'MIN', 'AL', 3, 0, 0), (1976, 'WS', 'CIN', 'NL', 'NYA', 'AL', 4, 0, 0), (2005, 'NLDS1', 'SLN', 'NL', 'SDN', 'NL', 3, 0, 0), (1925, 'WS', 'PIT', 'NL', 'WS1', 'AL', 4, 3, 0);
-- DBMS: sqlite
CREATE TABLE manager_half (
    player_id TEXT,
    year INTEGER,
    team_id TEXT,
    league_id TEXT,
    inseason INTEGER,
    half INTEGER,
    g INTEGER,
    w INTEGER,
    l INTEGER,
    rank INTEGER
);

INSERT INTO manager_half (player_id, year, team_id, league_id, inseason, half, g, w, l, rank) VALUES ('powerpa99', 1892, 'NY1', 'NL', 1, 1, 74, 31, 43, 10), ('chapmja01', 1892, 'LS3', 'NL', 1, 1, 54, 21, 33, 11), ('herzowh01', 1981, 'SLN', 'NL', 1, 2, 52, 29, 23, 2), ('fregoji01', 1981, 'CAL', 'AL', 1, 1, 47, 22, 25, 4), ('mcnamjo99', 1981, 'CIN', 'NL', 1, 2, 52, 31, 21, 2);
-- DBMS: sqlite
CREATE TABLE hall_of_fame (
    player_id TEXT,
    yearid INTEGER,
    votedby TEXT,
    ballots NUMERIC,
    needed NUMERIC,
    votes NUMERIC,
    inducted TEXT,
    category TEXT,
    needed_note TEXT
);

INSERT INTO hall_of_fame (player_id, yearid, votedby, ballots, needed, votes, inducted, category, needed_note) VALUES ('willicy01', 1949, 'BBWAA', 153, 115, 2, 'N', 'Player', ''), ('reisepe01', 1960, 'BBWAA', 269, 202, 8, 'N', 'Player', ''), ('floodcu01', 1991, 'BBWAA', 443, 333, 23, 'N', 'Player', ''), ('heilmha01', 1945, 'BBWAA', 247, 186, 5, 'N', 'Player', ''), ('fostege01', 1993, 'BBWAA', 423, 318, 29, 'N', 'Player', '');
-- DBMS: sqlite
CREATE TABLE player_college (
    player_id TEXT,
    college_id TEXT,
    year INTEGER
);

INSERT INTO player_college (player_id, college_id, year) VALUES ('hazledo01', 'tuftsma', 1898), ('eshelva01', 'txblinn', 1989), ('espinda01', 'longbeach', 2007), ('smithto02', 'fordham', 1893), ('maholpa01', 'missst', 2003);
-- DBMS: sqlite
CREATE TABLE player (
    player_id TEXT,
    birth_year NUMERIC,
    birth_month NUMERIC,
    birth_day NUMERIC,
    birth_country TEXT,
    birth_state TEXT,
    birth_city TEXT,
    death_year NUMERIC,
    death_month NUMERIC,
    death_day NUMERIC,
    death_country TEXT,
    death_state TEXT,
    death_city TEXT,
    name_first TEXT,
    name_last TEXT,
    name_given TEXT,
    weight NUMERIC,
    height NUMERIC,
    bats TEXT,
    throws TEXT,
    debut TEXT,
    final_game TEXT,
    retro_id TEXT,
    bbref_id TEXT
);

INSERT INTO player (player_id, birth_year, birth_month, birth_day, birth_country, birth_state, birth_city, death_year, death_month, death_day, death_country, death_state, death_city, name_first, name_last, name_given, weight, height, bats, throws, debut, final_game, retro_id, bbref_id) VALUES ('leicejo01', 1979, 2, 7, 'USA', 'CA', 'Mariposa', '', '', '', '', '', '', 'Jon', 'Leicester', 'Jonathan David', 220, 75, 'R', 'R', '2004-06-09', '2007-09-28', 'leicj001', 'leicejo01'), ('wilkian01', 1988, 9, 13, 'USA', 'OK', 'Tulsa', '', '', '', '', '', '', 'Andy', 'Wilkins', 'Andrew Robert', 220, 73, 'L', 'R', '2014-08-31', '2014-09-28', 'wilka002', 'wilkian01'), ('bootyjo01', 1975, 4, 29, 'USA', 'MS', 'Starkville', '', '', '', '', '', '', 'Josh', 'Booty', 'Joshua Gibson', 210, 75, 'R', 'R', '1996-09-24', '1998-04-11', 'bootj001', 'bootyjo01'), ('powelal01', 1964, 12, 12, 'USA', 'CA', 'San Francisco', '', '', '', '', '', '', 'Alonzo', 'Powell', 'Alonzo Sidney', 190, 74, 'R', 'R', '1987-04-06', '1991-10-06', 'powea001', 'powelal01'), ('uppje01', 1883, 12, 10, 'USA', 'OH', 'Sandusky', 1937, 6, 30, 'USA', 'OH', 'Sandusky', 'Jerry', 'Upp', 'George Henry', '', '', '', 'L', '1909-09-02', '1909-09-27', 'upp-j101', 'uppje01');
-- DBMS: sqlite
CREATE TABLE college (
    college_id TEXT,
    name_full TEXT,
    city TEXT,
    state TEXT,
    country TEXT
);

INSERT INTO college (college_id, name_full, city, state, country) VALUES ('whittierca', 'Whittier College', 'Whittier', 'CA', 'USA'), ('moharri', 'Harris-Stowe State College', 'St. Louis', 'MO', 'USA'), ('caantel', 'Antelope Valley College', 'Lancaster', 'CA', 'USA'), ('wheatonma', 'Wheaton College', 'Wheaton', 'MA', 'USA'), ('oksemin', 'Seminole State College', 'Seminole', 'OK', 'USA');