nl2sqlproj/spider2-nl2sql huggingface dataset:
-- DBMS: sqlite
CREATE TABLE categories (
    categoryid INTEGER,
    categoryname TEXT,
    description TEXT,
    picture BLOB
);

INSERT INTO categories (categoryid, categoryname, description, picture) VALUES (7, 'Produce', 'Dried fruit and bean curd', '\x'), (1, 'Beverages', 'Soft drinks, coffees, teas, beers, and ales', '\x'), (5, 'Grains/Cereals', 'Breads, crackers, pasta, and cereal', '\x'), (8, 'Seafood', 'Seaweed and fish', '\x'), (3, 'Confections', 'Desserts, candies, and sweet breads', '\x');
-- DBMS: sqlite
CREATE TABLE usstates (
    stateid INTEGER,
    statename TEXT,
    stateabbr TEXT,
    stateregion TEXT
);

INSERT INTO usstates (stateid, statename, stateabbr, stateregion) VALUES (35, 'North Dakota', 'ND', 'midwest'), (33, 'New York', 'NY', 'east'), (29, 'Nevada', 'NV', 'west'), (37, 'Oklahoma', 'OK', 'midwest'), (51, 'Wyoming', 'WY', 'west');
-- DBMS: sqlite
CREATE TABLE orders (
    orderid INTEGER,
    customerid TEXT,
    employeeid INTEGER,
    orderdate DATE,
    requireddate DATE,
    shippeddate DATE,
    shipvia INTEGER,
    freight REAL,
    shipname TEXT,
    shipaddress TEXT,
    shipcity TEXT,
    shipregion TEXT,
    shippostalcode TEXT,
    shipcountry TEXT
);

INSERT INTO orders (orderid, customerid, employeeid, orderdate, requireddate, shippeddate, shipvia, freight, shipname, shipaddress, shipcity, shipregion, shippostalcode, shipcountry) VALUES (10799, 'KOENE', 9, '1997-12-26', '1998-02-06', '1998-01-05', 3, 30.7600002, 'Königlich Essen', 'Maubelstr. 90', 'Brandenburg', NULL, '14776', 'Germany'), (11066, 'WHITC', 7, '1998-05-01', '1998-05-29', '1998-05-04', 2, 44.7200012, 'White Clover Markets', '1029 - 12th Ave. S.', 'Seattle', 'WA', '98124', 'USA'), (10920, 'AROUT', 4, '1998-03-03', '1998-03-31', '1998-03-09', 2, 29.6100006, 'Around the Horn', 'Brook Farm Stratford St. Mary', 'Colchester', 'Essex', 'CO7 6JX', 'UK'), (10313, 'QUICK', 2, '1996-09-24', '1996-10-22', '1996-10-04', 2, 1.96000004, 'QUICK-Stop', 'Taucherstraße 10', 'Cunewalde', NULL, '01307', 'Germany'), (10454, 'LAMAI', 4, '1997-02-21', '1997-03-21', '1997-02-25', 3, 2.74000001, 'La maison d''Asie', '1 rue Alsace-Lorraine', 'Toulouse', NULL, '31000', 'France');
-- DBMS: sqlite
CREATE TABLE customergroupthreshold (
    groupname TEXT,
    rangebottom DECIMAL,
    rangetop DECIMAL
);

INSERT INTO customergroupthreshold (groupname, rangebottom, rangetop) VALUES ('Low', 0, 999.9999), ('Medium', 1000, 4999.9999), ('High', 5000, 9999.9999), ('Very High', 10000, 922337203685477.6);
-- DBMS: sqlite
CREATE TABLE customers (
    customerid TEXT,
    companyname TEXT,
    contactname TEXT,
    contacttitle TEXT,
    address TEXT,
    city TEXT,
    region TEXT,
    postalcode TEXT,
    country TEXT,
    phone TEXT,
    fax TEXT
);

INSERT INTO customers (customerid, companyname, contactname, contacttitle, address, city, region, postalcode, country, phone, fax) VALUES ('TORTU', 'Tortuga Restaurante', 'Miguel Angel Paolino', 'Owner', 'Avda. Azteca 123', 'México D.F.', NULL, '05033', 'Mexico', '(5) 555-2933', NULL), ('FRANK', 'Frankenversand', 'Peter Franken', 'Marketing Manager', 'Berliner Platz 43', 'München', NULL, '80805', 'Germany', '089-0877310', '089-0877451'), ('GROSR', 'GROSELLA-Restaurante', 'Manuel Pereira', 'Owner', '5ª Ave. Los Palos Grandes', 'Caracas', 'DF', '1081', 'Venezuela', '(2) 283-2951', '(2) 283-3397'), ('NORTS', 'North/South', 'Simon Crowther', 'Sales Associate', 'South House 300 Queensbridge', 'London', NULL, 'SW7 1RZ', 'UK', '(171) 555-7733', '(171) 555-2530'), ('VINET', 'Vins et alcools Chevalier', 'Paul Henriot', 'Accounting Manager', '59 rue de l''Abbaye', 'Reims', NULL, '51100', 'France', '26.47.15.10', '26.47.15.11');
-- DBMS: sqlite
CREATE TABLE order_details (
    orderid INTEGER,
    productid INTEGER,
    unitprice REAL,
    quantity INTEGER,
    discount REAL
);

INSERT INTO order_details (orderid, productid, unitprice, quantity, discount) VALUES (10456, 49, 16.0, 21, 0.150000006), (10671, 16, 17.4500008, 10, 0.0), (10784, 39, 18.0, 2, 0.150000006), (11077, 55, 24.0, 2, 0.0), (10835, 77, 13.0, 2, 0.200000003);
-- DBMS: sqlite
CREATE TABLE products (
    productid INTEGER,
    productname TEXT,
    supplierid INTEGER,
    categoryid INTEGER,
    quantityperunit TEXT,
    unitprice REAL,
    unitsinstock INTEGER,
    unitsonorder INTEGER,
    reorderlevel INTEGER,
    discontinued INTEGER
);

INSERT INTO products (productid, productname, supplierid, categoryid, quantityperunit, unitprice, unitsinstock, unitsonorder, reorderlevel, discontinued) VALUES (59, 'Raclette Courdavault', 28, 4, '5 kg pkg.', 55.0, 79, 0, 0, 0), (16, 'Pavlova', 7, 3, '32 - 500 g boxes', 17.4500008, 29, 0, 10, 0), (52, 'Filo Mix', 24, 5, '16 - 2 kg boxes', 7.0, 38, 0, 25, 0), (53, 'Perth Pasties', 24, 6, '48 pieces', 32.7999992, 0, 0, 0, 1), (74, 'Longlife Tofu', 4, 7, '5 kg pkg.', 10.0, 4, 20, 5, 0);
-- DBMS: sqlite
CREATE TABLE shippers (
    shipperid INTEGER,
    companyname TEXT,
    phone TEXT
);

INSERT INTO shippers (shipperid, companyname, phone) VALUES (3, 'Federal Shipping', '(503) 555-9931'), (1, 'Speedy Express', '(503) 555-9831'), (6, 'DHL', '1-800-225-5345'), (5, 'UPS', '1-800-782-7892'), (2, 'United Package', '(503) 555-3199');
-- DBMS: sqlite
CREATE TABLE territories (
    territoryid TEXT,
    territorydescription TEXT,
    regionid INTEGER
);

INSERT INTO territories (territoryid, territorydescription, regionid) VALUES ('44122', 'Beachwood', 3), ('14450', 'Fairport', 1), ('98104', 'Seattle', 2), ('95060', 'Santa Cruz', 2), ('60179', 'Hoffman Estates', 2);
-- DBMS: sqlite
CREATE TABLE suppliers (
    supplierid INTEGER,
    companyname TEXT,
    contactname TEXT,
    contacttitle TEXT,
    address TEXT,
    city TEXT,
    region TEXT,
    postalcode TEXT,
    country TEXT,
    phone TEXT,
    fax TEXT,
    homepage TEXT
);

INSERT INTO suppliers (supplierid, companyname, contactname, contacttitle, address, city, region, postalcode, country, phone, fax, homepage) VALUES (24, 'G''day, Mate', 'Wendy Mackenzie', 'Sales Representative', '170 Prince Edward Parade Hunter''s Hill', 'Sydney', 'NSW', '2042', 'Australia', '(02) 555-5914', '(02) 555-4873', 'G''day Mate (on the World Wide Web)#http://www.microsoft.com/accessdev/sampleapps/gdaymate.htm#'), (9, 'PB Knäckebröd AB', 'Lars Peterson', 'Sales Agent', 'Kaloadagatan 13', 'Göteborg', NULL, 'S-345 67', 'Sweden', '031-987 65 43', '031-987 65 91', NULL), (13, 'Nord-Ost-Fisch Handelsgesellschaft mbH', 'Sven Petersen', 'Coordinator Foreign Markets', 'Frahmredder 112a', 'Cuxhaven', NULL, '27478', 'Germany', '(04721) 8713', '(04721) 8714', NULL), (25, 'Ma Maison', 'Jean-Guy Lauzon', 'Marketing Manager', '2960 Rue St. Laurent', 'Montréal', 'Québec', 'H1J 1C3', 'Canada', '(514) 555-9022', NULL, NULL), (15, 'Norske Meierier', 'Beate Vileid', 'Marketing Manager', 'Hatlevegen 5', 'Sandvika', NULL, '1320', 'Norway', '(0)2-953010', NULL, NULL);
-- DBMS: sqlite
CREATE TABLE shopping_cart_page_hierarchy (
    page_id INTEGER,
    page_name TEXT,
    product_category TEXT,
    product_id REAL
);

INSERT INTO shopping_cart_page_hierarchy (page_id, page_name, product_category, product_id) VALUES (10, 'Crab', 'Shellfish', 8.0), (8, 'Abalone', 'Shellfish', 6.0), (13, 'Confirmation', NULL, nan), (12, 'Checkout', NULL, nan), (9, 'Lobster', 'Shellfish', 7.0);
-- DBMS: sqlite
CREATE TABLE interest_metrics (
    _month REAL,
    _year REAL,
    month_year TEXT,
    interest_id REAL,
    composition REAL,
    index_value REAL,
    ranking INTEGER,
    percentile_ranking REAL
);

INSERT INTO interest_metrics (_month, _year, month_year, interest_id, composition, index_value, ranking, percentile_ranking) VALUES (10.0, 2018.0, '10-2018', 36872.0, 2.79, 1.16, 669, 21.94), (4.0, 2019.0, '04-2019', 38358.0, 1.62, 0.84, 1051, 4.37), (11.0, 2018.0, '11-2018', 34086.0, 1.99, 1.27, 602, 35.13), (11.0, 2018.0, '11-2018', 5.0, 3.67, 1.52, 323, 65.19), (8.0, 2018.0, '08-2018', 28.0, 5.45, 1.46, 228, 70.27);
-- DBMS: sqlite
CREATE TABLE interest_map (
    id INTEGER,
    interest_name TEXT,
    interest_summary TEXT,
    created_at TEXT,
    last_modified TEXT
);

INSERT INTO interest_map (id, interest_name, interest_summary, created_at, last_modified) VALUES (6013, 'Competitive Sports Participants', 'People registering for competitive sports leagues, races, and events for adults.', '2017-03-27 16:36:07', '2019-01-16 09:11:30'), (33959, 'Boston Bruins Fans', 'People reading news about the Boston Bruins and watching games. These consumers are more likely to spend money on team gear.', '2018-08-02 16:05:03', '2018-08-02 16:05:03'), (5, 'Brides & Wedding Planners', 'People researching wedding ideas and vendors.', '2016-05-26 14:57:59', '2018-05-23 11:30:12'), (34635, 'Arizona Cardinals Fans', 'People reading news about the Arizona Cardinals and watching games. These consumers are more likely to spend money on team gear.', '2018-08-20 11:00:03', '2018-08-20 11:00:03'), (6300, 'Washington DC Trip Planners', 'People researching attractions and accommodations in Washington DC. These consumers are more likely to spend money on flights, hotels, and local attractions.', '2017-05-03 10:00:02', '2017-12-07 12:35:47');
-- DBMS: sqlite
CREATE TABLE shopping_cart_users (
    user_id INTEGER,
    cookie_id TEXT,
    start_date TEXT
);

INSERT INTO shopping_cart_users (user_id, cookie_id, start_date) VALUES (349, '2632eb', '2020-02-01'), (304, '37bc2f', '2020-01-19'), (264, 'e3fc3a', '2020-03-05'), (260, '3d83d3', '2020-03-02'), (146, '2bae8b', '2020-01-16');
-- DBMS: sqlite
CREATE TABLE customer_nodes (
    customer_id INTEGER,
    region_id INTEGER,
    node_id INTEGER,
    start_date TEXT,
    end_date TEXT
);

INSERT INTO customer_nodes (customer_id, region_id, node_id, start_date, end_date) VALUES (74, 5, 4, '2020-03-09', '2020-03-21'), (250, 3, 2, '2020-03-21', '2020-03-21'), (281, 2, 1, '2020-03-25', '2020-04-09'), (268, 4, 1, '2020-01-13', '2020-01-16'), (161, 1, 1, '2020-02-12', '2020-03-10');
-- DBMS: sqlite
CREATE TABLE veg_cat (
    index INTEGER,
    item_code INTEGER,
    item_name TEXT,
    category_code INTEGER,
    category_name TEXT
);

INSERT INTO veg_cat (index, item_code, item_name, category_code, category_name) VALUES (70, 102900011032480, 'Artemisia Stelleriana', 1011010101, 'Flower/Leaf Vegetables'), (172, 102900011032367, 'Red Bell Pepper (2)', 1011010504, 'Capsicum'), (151, 102900011027479, 'Xiaozhoupi', 1011010504, 'Capsicum'), (233, 102900011036266, 'Velvet Antler Mushroom (Box)', 1011010801, 'Edible Mushroom'), (47, 102900011021644, 'Hongshan Caitai', 1011010101, 'Flower/Leaf Vegetables');
-- DBMS: sqlite
CREATE TABLE veg_whsle_df (
    index INTEGER,
    whsle_date TEXT,
    item_code INTEGER,
    whsle_px_rmb-kg REAL
);

INSERT INTO veg_whsle_df (index, whsle_date, item_code, whsle_px_rmb-kg) VALUES (37193, '2022-06-25 00:00:00', 102900005116547, 4.21), (15704, '2021-06-11 00:00:00', 102900005116509, 1.19), (1255, '2020-08-03 00:00:00', 102900011001806, 3.34), (14012, '2021-05-06 00:00:00', 102900005116547, 3.04), (35253, '2022-05-18 00:00:00', 102900005116714, 5.96);
-- DBMS: sqlite
CREATE TABLE bitcoin_members (
    member_id TEXT,
    first_name TEXT,
    region TEXT
);

INSERT INTO bitcoin_members (member_id, first_name, region) VALUES ('d3d944', 'Enoch', 'Africa'), ('167909', 'Ayush', 'United States'), ('a87ff6', 'Nandita', 'United States'), ('6512bd', 'Vikram', 'India'), ('eccbc8', 'Charlie', 'United States');
-- DBMS: sqlite
CREATE TABLE veg_txn_df (
    index INTEGER,
    txn_date TEXT,
    txn_time TEXT,
    item_code INTEGER,
    qty_sold(kg) REAL,
    unit_selling_px_rmb/kg REAL,
    sale/return TEXT,
    discount(%) INTEGER,
    day_of_week TEXT
);

INSERT INTO veg_txn_df (index, txn_date, txn_time, item_code, qty_sold(kg), unit_selling_px_rmb/kg, sale/return, discount(%), day_of_week) VALUES (231837, '2021-02-14 00:00:00', '18:00:29', 102900051010455, 0.739, 8.0, 'sale', 1, 'Sunday'), (232204, '2021-02-15 00:00:00', '10:10:27', 102900005116912, 0.25, 18.0, 'sale', 1, 'Monday'), (200782, '2021-01-17 00:00:00', '16:19:33', 102900005116547, 0.426, 8.0, 'sale', 1, 'Sunday'), (413284, '2021-09-11 00:00:00', '09:24:48', 102900005115779, 0.389, 8.0, 'sale', 1, 'Saturday'), (584573, '2022-06-16 00:00:00', '13:52:28', 102900011016701, 0.601, 3.2, 'sale', 1, 'Thursday');
-- DBMS: sqlite
CREATE TABLE weekly_sales (
    week_date TEXT,
    region TEXT,
    platform TEXT,
    segment TEXT,
    customer_type TEXT,
    transactions INTEGER,
    sales INTEGER
);

INSERT INTO weekly_sales (week_date, region, platform, segment, customer_type, transactions, sales) VALUES ('23/4/18', 'CANADA', 'Retail', NULL, 'Guest', 452234, 12112894), ('1/7/19', 'CANADA', 'Retail', NULL, 'Existing', 6952, 338550), ('2/7/18', 'EUROPE', 'Retail', 'C4', 'Existing', 4584, 263286), ('18/5/20', 'OCEANIA', 'Retail', 'F1', 'Existing', 152103, 7531190), ('29/4/19', 'ASIA', 'Retail', 'F2', 'New', 66571, 2228486);
-- DBMS: sqlite
CREATE TABLE customer_transactions (
    customer_id INTEGER,
    txn_date TEXT,
    txn_type TEXT,
    txn_amount INTEGER
);

INSERT INTO customer_transactions (customer_id, txn_date, txn_type, txn_amount) VALUES (204, '2020-04-04', 'deposit', 306), (208, '2020-02-04', 'purchase', 131), (169, '2020-03-15', 'withdrawal', 3), (393, '2020-03-05', 'deposit', 867), (351, '2020-01-12', 'purchase', 583);
-- DBMS: sqlite
CREATE TABLE shopping_cart_campaign_identifier (
    campaign_id INTEGER,
    products TEXT,
    campaign_name TEXT,
    start_date TEXT,
    end_date TEXT
);

INSERT INTO shopping_cart_campaign_identifier (campaign_id, products, campaign_name, start_date, end_date) VALUES (1, '1-3', 'BOGOF - Fishing For Compliments', '2020-01-01', '2020-01-14'), (2, '4-5', '25% Off - Living The Lux Life', '2020-01-15', '2020-01-28'), (3, '6-8', 'Half Off - Treat Your Shellf(ish)', '2020-02-01', '2020-03-31');
-- DBMS: sqlite
CREATE TABLE veg_loss_rate_df (
    index INTEGER,
    item_code INTEGER,
    item_name TEXT,
    loss_rate_% REAL
);

INSERT INTO veg_loss_rate_df (index, item_code, item_name, loss_rate_%) VALUES (23, 102900005116233, 'Red Pepper (1)', 11.76), (178, 102900011032732, 'High Melon (2)', 9.43), (26, 102900005116530, 'Xixia Mushroom (1)', 13.82), (221, 102900011036242, 'Green And Red Jian Pepper Mix (Bag)', 9.43), (83, 102900011009246, 'Fresh Black Fungus (1)', 7.63);
-- DBMS: sqlite
CREATE TABLE bitcoin_prices (
    ticker TEXT,
    market_date TEXT,
    price REAL,
    open REAL,
    high REAL,
    low REAL,
    volume TEXT,
    change TEXT
);

INSERT INTO bitcoin_prices (ticker, market_date, price, open, high, low, volume, change) VALUES ('BTC', '10-04-2020', 6863.1, 7289.0, 7294.4, 6756.1, '1.37M', '-5.84%'), ('BTC', '17-11-2019', 8509.8, 8497.4, 8631.7, 8413.0, '531.22K', '0.15%'), ('ETH', '22-09-2018', 240.82, 247.92, 254.36, 233.46, '5.16M', '-2.86%'), ('ETH', '29-01-2019', 104.79, 105.82, 107.32, 102.89, '5.41M', '-0.98%'), ('ETH', '03-09-2020', 381.97, 439.14, 466.4, 376.99, '33.59M', '-13.01%');
-- DBMS: sqlite
CREATE TABLE bitcoin_transactions (
    txn_id INTEGER,
    member_id TEXT,
    ticker TEXT,
    txn_date TEXT,
    txn_type TEXT,
    quantity REAL,
    percentage_fee REAL,
    txn_time TEXT
);

INSERT INTO bitcoin_transactions (txn_id, member_id, ticker, txn_date, txn_type, quantity, percentage_fee, txn_time) VALUES (7924, '45c48c', 'BTC', '13-08-2018', 'BUY', 7.595667811, 0.3, '2018-08-13T17:06:25.084Z'), (20253, 'e4da3b', 'BTC', '11-02-2021', 'BUY', 3.011469069, 0.3, '2021-02-11T13:55:41.993Z'), (22460, '6512bd', 'ETH', '22-07-2021', 'SELL', 9.439229697, 0.3, '2021-07-22T21:16:18.459Z'), (4332, 'c51ce4', 'BTC', '18-11-2017', 'BUY', 3.313783888, 0.3, '2017-11-18T12:47:32.767Z'), (3716, 'd3d944', 'BTC', '02-10-2017', 'BUY', 7.151083123, 0.3, '2017-10-02T17:33:44.658Z');
-- DBMS: sqlite
CREATE TABLE cleaned_weekly_sales (
    week_date_formatted TEXT,
    week_date TEXT,
    region TEXT,
    platform TEXT,
    segment TEXT,
    customer_type TEXT,
    transactions INTEGER,
    sales INTEGER,
    week_number INTEGER,
    month_number INTEGER,
    calendar_year INTEGER,
    age_band TEXT,
    demographic TEXT,
    avg_transaction REAL
);

INSERT INTO cleaned_weekly_sales (week_date_formatted, week_date, region, platform, segment, customer_type, transactions, sales, week_number, month_number, calendar_year, age_band, demographic, avg_transaction) VALUES ('2020-6-1', '2020-06-01', 'AFRICA', 'Shopify', 'C2', 'Existing', 2747, 462331, 23, 6, 2020, 'Middle Aged', 'Couples', 168.3), ('2020-8-31', '2020-08-31', 'AFRICA', 'Shopify', 'unknown', 'Guest', 5893, 1026838, 36, 8, 2020, 'unknown', 'unknown', 174.25), ('2018-8-20', '2018-08-20', 'CANADA', 'Retail', 'C1', 'Existing', 50773, 2212027, 34, 8, 2018, 'Young Adults', 'Couples', 43.57), ('2019-5-20', '2019-05-20', 'OCEANIA', 'Retail', 'C2', 'New', 91473, 2496378, 21, 5, 2019, 'Middle Aged', 'Couples', 27.29), ('2020-7-13', '2020-07-13', 'SOUTH AMERICA', 'Retail', 'F3', 'New', 273, 9451, 29, 7, 2020, 'Retirees', 'Families', 34.62);
-- DBMS: sqlite
CREATE TABLE shopping_cart_events (
    visit_id TEXT,
    cookie_id TEXT,
    page_id INTEGER,
    event_type INTEGER,
    sequence_number INTEGER,
    event_time TEXT
);

INSERT INTO shopping_cart_events (visit_id, cookie_id, page_id, event_type, sequence_number, event_time) VALUES ('71740f', 'b6d767', 4, 1, 3, '2020-02-08 21:32:06.252986'), ('33e1af', '322fd1', 1, 1, 1, '2020-02-28 18:45:33.90196'), ('eaffde', '14de71', 13, 3, 21, '2020-03-25 20:17:12.484998'), ('4d2d07', '75260d', 3, 1, 3, '2020-02-17 01:08:10.966062'), ('da7cf0', '28dd2c', 4, 2, 7, '2020-01-14 05:06:29.911936');
-- DBMS: sqlite
CREATE TABLE Employee (
    EmployeeId INTEGER,
    LastName NVARCHAR(20),
    FirstName NVARCHAR(20),
    Title NVARCHAR(30),
    ReportsTo INTEGER,
    BirthDate DATETIME,
    HireDate DATETIME,
    Address NVARCHAR(70),
    City NVARCHAR(40),
    State NVARCHAR(40),
    Country NVARCHAR(40),
    PostalCode NVARCHAR(10),
    Phone NVARCHAR(24),
    Fax NVARCHAR(24),
    Email NVARCHAR(60)
);

INSERT INTO Employee (EmployeeId, LastName, FirstName, Title, ReportsTo, BirthDate, HireDate, Address, City, State, Country, PostalCode, Phone, Fax, Email) VALUES (1, 'Adams', 'Andrew', 'General Manager', nan, '1962-02-18 00:00:00', '2002-08-14 00:00:00', '11120 Jasper Ave NW', 'Edmonton', 'AB', 'Canada', 'T5K 2N1', '+1 (780) 428-9482', '+1 (780) 428-3457', 'andrew@chinookcorp.com'), (6, 'Mitchell', 'Michael', 'IT Manager', 1.0, '1973-07-01 00:00:00', '2003-10-17 00:00:00', '5827 Bowness Road NW', 'Calgary', 'AB', 'Canada', 'T3B 0C5', '+1 (403) 246-9887', '+1 (403) 246-9899', 'michael@chinookcorp.com'), (7, 'King', 'Robert', 'IT Staff', 6.0, '1970-05-29 00:00:00', '2004-01-02 00:00:00', '590 Columbia Boulevard West', 'Lethbridge', 'AB', 'Canada', 'T1K 5N8', '+1 (403) 456-9986', '+1 (403) 456-8485', 'robert@chinookcorp.com'), (5, 'Johnson', 'Steve', 'Sales Support Agent', 2.0, '1965-03-03 00:00:00', '2003-10-17 00:00:00', '7727B 41 Ave', 'Calgary', 'AB', 'Canada', 'T3B 1Y7', '1 (780) 836-9987', '1 (780) 836-9543', 'steve@chinookcorp.com'), (8, 'Callahan', 'Laura', 'IT Staff', 6.0, '1968-01-09 00:00:00', '2004-03-04 00:00:00', '923 7 ST NW', 'Lethbridge', 'AB', 'Canada', 'T1H 1Y8', '+1 (403) 467-3351', '+1 (403) 467-8772', 'laura@chinookcorp.com');
-- DBMS: sqlite
CREATE TABLE InvoiceLine (
    InvoiceLineId INTEGER,
    InvoiceId INTEGER,
    TrackId INTEGER,
    UnitPrice NUMERIC(10,2),
    Quantity INTEGER
);

INSERT INTO InvoiceLine (InvoiceLineId, InvoiceId, TrackId, UnitPrice, Quantity) VALUES (752, 138, 1076, 0.99, 1), (1883, 347, 949, 0.99, 1), (2114, 390, 2368, 0.99, 1), (136, 26, 795, 0.99, 1), (941, 173, 2227, 0.99, 1);
-- DBMS: sqlite
CREATE TABLE Artist (
    ArtistId INTEGER,
    Name NVARCHAR(120)
);

INSERT INTO Artist (ArtistId, Name) VALUES (232, 'Sergei Prokofiev & Yuri Temirkanov'), (73, 'Vinícius E Qurteto Em Cy'), (114, 'Ozzy Osbourne'), (166, 'Avril Lavigne'), (134, 'Stone Temple Pilots');
-- DBMS: sqlite
CREATE TABLE MediaType (
    MediaTypeId INTEGER,
    Name NVARCHAR(120)
);

INSERT INTO MediaType (MediaTypeId, Name) VALUES (1, 'MPEG audio file'), (5, 'AAC audio file'), (4, 'Purchased AAC audio file'), (2, 'Protected AAC audio file'), (3, 'Protected MPEG-4 video file');
-- DBMS: sqlite
CREATE TABLE Invoice (
    InvoiceId INTEGER,
    CustomerId INTEGER,
    InvoiceDate DATETIME,
    BillingAddress NVARCHAR(70),
    BillingCity NVARCHAR(40),
    BillingState NVARCHAR(40),
    BillingCountry NVARCHAR(40),
    BillingPostalCode NVARCHAR(10),
    Total NUMERIC(10,2)
);

INSERT INTO Invoice (InvoiceId, CustomerId, InvoiceDate, BillingAddress, BillingCity, BillingState, BillingCountry, BillingPostalCode, Total) VALUES (175, 6, '2011-02-15 00:00:00', 'Rilská 3174/6', 'Prague', NULL, 'Czech Republic', '14300', 1.98), (323, 39, '2012-11-27 00:00:00', '4, Rue Milton', 'Paris', NULL, 'France', '75009', 1.98), (385, 25, '2013-09-02 00:00:00', '319 N. Frances Street', 'Madison', 'WI', 'USA', '53703', 1.98), (290, 32, '2012-06-27 00:00:00', '696 Osborne Street', 'Winnipeg', 'MB', 'Canada', 'R3L 2B9', 5.94), (348, 56, '2013-03-10 00:00:00', '307 Macacha Güemes', 'Buenos Aires', NULL, 'Argentina', '1106', 13.86);
-- DBMS: sqlite
CREATE TABLE Album (
    AlbumId INTEGER,
    Title NVARCHAR(160),
    ArtistId INTEGER
);

INSERT INTO Album (AlbumId, Title, ArtistId) VALUES (296, 'A Copland Celebration, Vol. I', 230), (2, 'Balls to the Wall', 2), (70, 'Djavan Ao Vivo - Vol. 1', 80), (136, 'Presence', 22), (294, 'Great Performances - Barber''s Adagio and Other Romantic Favorites for Strings', 228);
-- DBMS: sqlite
CREATE TABLE Customer (
    CustomerId INTEGER,
    FirstName NVARCHAR(40),
    LastName NVARCHAR(20),
    Company NVARCHAR(80),
    Address NVARCHAR(70),
    City NVARCHAR(40),
    State NVARCHAR(40),
    Country NVARCHAR(40),
    PostalCode NVARCHAR(10),
    Phone NVARCHAR(24),
    Fax NVARCHAR(24),
    Email NVARCHAR(60),
    SupportRepId INTEGER
);

INSERT INTO Customer (CustomerId, FirstName, LastName, Company, Address, City, State, Country, PostalCode, Phone, Fax, Email, SupportRepId) VALUES (34, 'João', 'Fernandes', NULL, 'Rua da Assunção 53', 'Lisbon', NULL, 'Portugal', NULL, '+351 (213) 466-111', NULL, 'jfernandes@yahoo.pt', 4), (1, 'Luís', 'Gonçalves', 'Embraer - Empresa Brasileira de Aeronáutica S.A.', 'Av. Brigadeiro Faria Lima, 2170', 'São José dos Campos', 'SP', 'Brazil', '12227-000', '+55 (12) 3923-5555', '+55 (12) 3923-5566', 'luisg@embraer.com.br', 3), (21, 'Kathy', 'Chase', NULL, '801 W 4th Street', 'Reno', 'NV', 'USA', '89503', '+1 (775) 223-7665', NULL, 'kachase@hotmail.com', 5), (54, 'Steve', 'Murray', NULL, '110 Raeburn Pl', 'Edinburgh ', NULL, 'United Kingdom', 'EH4 1HH', '+44 0131 315 3300', NULL, 'steve.murray@yahoo.uk', 5), (41, 'Marc', 'Dubois', NULL, '11, Place Bellecour', 'Lyon', NULL, 'France', '69002', '+33 04 78 30 30 30', NULL, 'marc.dubois@hotmail.com', 5);
-- DBMS: sqlite
CREATE TABLE Track (
    TrackId INTEGER,
    Name NVARCHAR(200),
    AlbumId INTEGER,
    MediaTypeId INTEGER,
    GenreId INTEGER,
    Composer NVARCHAR(220),
    Milliseconds INTEGER,
    Bytes INTEGER,
    UnitPrice NUMERIC(10,2)
);

INSERT INTO Track (TrackId, Name, AlbumId, MediaTypeId, GenreId, Composer, Milliseconds, Bytes, UnitPrice) VALUES (462, 'Valentino''s', 38, 1, 2, NULL, 296124, 9848545, 0.99), (281, 'Computadores Fazem Arte', 25, 1, 7, NULL, 404323, 13702771, 0.99), (2846, 'Seven Minutes to Midnight', 228, 3, 21, NULL, 2613988, 515590682, 1.99), (3423, 'Jupiter, the Bringer of Jollity', 292, 2, 24, 'Gustav Holst', 522099, 8547876, 0.99), (1044, 'My Kind Of Town', 83, 1, 12, 'jimmy van heusen/sammy cahn', 188499, 6119915, 0.99);
-- DBMS: sqlite
CREATE TABLE deliveries (
    delivery_id INTEGER,
    delivery_order_id INTEGER,
    driver_id INTEGER,
    delivery_distance_meters DECIMAL(10, 2),
    delivery_status VARCHAR(50)
);

INSERT INTO deliveries (delivery_id, delivery_order_id, driver_id, delivery_distance_meters, delivery_status) VALUES (2846666, 87624407, 50626, 1299, 'DELIVERED'), (2969242, 90569745, 17322, 3387, 'DELIVERED'), (2954475, 90177159, 11166, 3431, 'DELIVERED'), (2560464, 81068903, 36132, 652, 'DELIVERED'), (2973175, 90621386, 5574, 1617, 'DELIVERED');
-- DBMS: sqlite
CREATE TABLE channels (
    channel_id INTEGER,
    channel_name VARCHAR(50),
    channel_type VARCHAR(50)
);

INSERT INTO channels (channel_id, channel_name, channel_type) VALUES (48, 'CENTER PLACE', 'MARKETPLACE'), (37, 'LONGO PLACE', 'MARKETPLACE'), (23, 'ATCHIN PLACE', 'MARKETPLACE'), (30, 'SPEED PLACE', 'MARKETPLACE'), (32, 'BEATLES PLACE', 'MARKETPLACE');
-- DBMS: sqlite
CREATE TABLE drivers (
    driver_id INTEGER,
    driver_modal VARCHAR(50),
    driver_type VARCHAR(50)
);

INSERT INTO drivers (driver_id, driver_modal, driver_type) VALUES (52706, 'BIKER', 'FREELANCE'), (44347, 'MOTOBOY', 'LOGISTIC OPERATOR'), (9461, 'MOTOBOY', 'FREELANCE'), (16063, 'MOTOBOY', 'FREELANCE'), (28265, 'BIKER', 'FREELANCE');
-- DBMS: sqlite
CREATE TABLE payments (
    payment_id INTEGER,
    payment_order_id INTEGER,
    payment_amount DECIMAL(10, 2),
    payment_fee DECIMAL(10, 2),
    payment_method VARCHAR(50),
    payment_status VARCHAR(50)
);

INSERT INTO payments (payment_id, payment_order_id, payment_amount, payment_fee, payment_method, payment_status) VALUES (4752837, 78368205, 54.89, 0.82, 'ONLINE', 'PAID'), (5193935, 87731016, 42.94, 0.64, 'ONLINE', 'PAID'), (4720509, 77351048, 122.5, 3.31, 'ONLINE', 'PAID'), (5085045, 85938962, 10.0, 0.0, 'VOUCHER', 'PAID'), (4905032, 82243889, 35.0, 0.46, 'ONLINE', 'PAID');
-- DBMS: sqlite
CREATE TABLE hubs (
    hub_id INTEGER,
    hub_name VARCHAR(50),
    hub_city VARCHAR(50),
    hub_state CHAR(2),
    hub_latitude DECIMAL(9, 6),
    hub_longitude DECIMAL(9, 6)
);

INSERT INTO hubs (hub_id, hub_name, hub_city, hub_state, hub_latitude, hub_longitude) VALUES (21, 'WOLF SHOPPING', 'SÃO PAULO', 'SP', -23.550407, -46.6973162), (44, 'FORTRAN SHOPPING', 'CURITIBA', 'PR', -25.4351398, -49.3167883), (75, 'PYTHON SHOPPING', 'CURITIBA', 'PR', -25.477073, -49.28966), (18, 'STAR SHOPPING', 'RIO DE JANEIRO', 'RJ', -22.9454948, -43.1821807), (35, 'BEACH SHOPPING', 'RIO DE JANEIRO', 'RJ', -22.96988, -43.370811);
-- DBMS: sqlite
CREATE TABLE stores (
    store_id INTEGER,
    hub_id INTEGER,
    store_name VARCHAR(50),
    store_segment VARCHAR(50),
    store_plan_price DECIMAL(10, 2),
    store_latitude DECIMAL(9, 6),
    store_longitude DECIMAL(9, 6)
);

INSERT INTO stores (store_id, hub_id, store_name, store_segment, store_plan_price, store_latitude, store_longitude) VALUES (1603, 29, 'MIOURIOU ', 'GOOD', nan, -23.561053, -46.558976), (4214, 44, 'RCOUMILES ', 'FOOD', nan, -25.4351398, -49.3167883), (3987, 85, 'POI ILARUMUIMOI ', 'FOOD', 49.0, -23.5133533, -46.6183535), (616, 18, 'CILAFIRMAI CIOLA ', 'FOOD', 49.0, -22.94733, -43.183534), (674, 29, 'AR TRAMUO ', 'FOOD', 49.9, -23.561053, -46.558976);
-- DBMS: sqlite
CREATE TABLE aliens (
    id INTEGER,
    first_name TEXT,
    last_name TEXT,
    email TEXT,
    gender TEXT,
    type TEXT,
    birth_year INTEGER
);

INSERT INTO aliens (id, first_name, last_name, email, gender, type, birth_year) VALUES (21003, 'Morton', 'Szymaniak', 'mszymaniakg7e@1688.com', 'Male', 'Nordic', 1822), (27407, 'Diane-marie', 'Chalk', 'dchalkl5a@paginegialle.it', 'Female', 'Flatwoods', 1810), (40469, 'Hagan', 'Connerly', 'hconnerlyv84@umn.edu', 'Male', 'Green', 1864), (22356, 'Tess', 'Bradnick', 'tbradnickh8z@timesonline.co.uk', 'Female', 'Reptile', 1858), (23546, 'Martita', 'Jelfs', 'mjelfsi61@diigo.com', 'Female', 'Grey', 1751);
-- DBMS: sqlite
CREATE TABLE aliens_details (
    detail_id INTEGER,
    favorite_food TEXT,
    feeding_frequency TEXT,
    aggressive INTEGER
);

INSERT INTO aliens_details (detail_id, favorite_food, feeding_frequency, aggressive) VALUES (10521, 'Wambenger, red-tailed', 'Once', 0), (5319, 'Crab, sally lightfoot', 'Often', 1), (19113, 'Roan antelope', 'Monthly', 0), (33703, 'Gecko, barking', 'Often', 1), (30823, 'Spider, wolf', 'Never', 1);
-- DBMS: sqlite
CREATE TABLE skills_dim (
    skill_id INTEGER,
    skills TEXT,
    type TEXT
);

INSERT INTO skills_dim (skill_id, skills, type) VALUES (187, 'qlik', 'analyst_tools'), (31, 'perl', 'programming'), (9, 'javascript', 'programming'), (12, 'bash', 'programming'), (50, 'lua', 'programming');
-- DBMS: sqlite
CREATE TABLE job_postings_fact (
    job_id INTEGER,
    company_id INTEGER,
    job_title_short TEXT,
    job_title TEXT,
    job_location TEXT,
    job_via TEXT,
    job_schedule_type TEXT,
    job_work_from_home INTEGER,
    search_location TEXT,
    job_posted_date TEXT,
    job_no_degree_mention INTEGER,
    job_health_insurance INTEGER,
    job_country TEXT,
    salary_rate TEXT,
    salary_year_avg REAL,
    salary_hour_avg REAL
);

INSERT INTO job_postings_fact (job_id, company_id, job_title_short, job_title, job_location, job_via, job_schedule_type, job_work_from_home, search_location, job_posted_date, job_no_degree_mention, job_health_insurance, job_country, salary_rate, salary_year_avg, salary_hour_avg) VALUES (1722126, 94819, 'Data Analyst', 'Supply Chain Data Analytics Manager - Now Hiring', 'Columbia, MD', 'via Snagajob', 'Full-time and Part-time', 0, 'New York, United States', '2023-09-17 07:00:47', 0, 1, 'United States', 'hour', NULL, 23.69499969482422), (1046646, 2438, 'Data Scientist', 'Chief Data Science and Data Engineering Officer, Charleroi', 'Charleroi, Belgium', 'via BeBee Belgique', 'Part-time', 0, 'Belgium', '2023-06-15 16:55:20', 0, 0, 'Belgium', NULL, NULL, nan), (103424, 4473, 'Data Scientist', 'Data Scientist /hybrid/', 'New York, NY', 'via GrabJobs', 'Full-time', 0, 'New York, United States', '2023-11-17 17:02:57', 0, 1, 'United States', NULL, NULL, nan), (967500, 352, 'Software Engineer', 'Integration Engineer', 'Dublin, Ireland', 'via BeBee Ireland', 'Full-time', 0, 'Ireland', '2023-09-25 15:52:26', 1, 0, 'Ireland', NULL, NULL, nan), (884963, 113, 'Software Engineer', 'Full-Stack Python Engineer', 'United Arab Emirates', 'via BeBee', 'Full-time', 0, 'United Arab Emirates', '2023-07-02 09:34:45', 0, 0, 'United Arab Emirates', NULL, NULL, nan);
-- DBMS: sqlite
CREATE TABLE job_company (
    company_id INTEGER,
    name TEXT,
    link TEXT,
    link_google TEXT,
    thumbnail TEXT
);

INSERT INTO job_company (company_id, name, link, link_google, thumbnail) VALUES (477107, 'Atom Learning', NULL, 'https://www.google.com/search?ucbcb=1&gl=us&hl=en&q=Atom+Learning&sa=X&ved=0ahUKEwiyhK-9rOL9AhWGPkQIHRkvDk8QmJACCLoJ', NULL), (271209, 'Fidelity Life', NULL, 'https://www.google.com/search?gl=us&hl=en&q=Fidelity+Life&sa=X&ved=0ahUKEwiK96L6-sv-AhXgjLAFHVSUAG0QmJACCLkJ', NULL), (297649, 'Pando Group', NULL, 'https://www.google.com/search?gl=us&hl=en&q=Pando+Group&sa=X&ved=0ahUKEwiEkt6OgNP8AhUMMVkFHbsxAMAQmJACCJ0L', 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS7pBB1_fLU_5GVPG0wFtsXVDIlna_MbeEJnN9zOQY&s'), (280330, 'RaiceTech Soft', NULL, 'https://www.google.com/search?sca_esv=586505729&hl=en&gl=us&q=RaiceTech+Soft&sa=X&ved=0ahUKEwj0xri5iOuCAxUGEFkFHWM8CIU4KBCYkAIInQw', 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRyTXj8umBy4xThWXztzSQSba6bWqIV3cikNEqsBiI&s'), (542480, 'Arcadis Gen', 'http://www.arcadis.com/', 'https://www.google.com/search?gl=us&hl=en&q=Arcadis+Gen&sa=X&ved=0ahUKEwi_2cfO4KP-AhUzlYkEHURLAGc4jAEQmJACCNIM', NULL);
-- DBMS: sqlite
CREATE TABLE cities_currencies (
    currency_id INTEGER,
    country_code_2 TEXT,
    currency_name TEXT,
    currency_code TEXT
);

INSERT INTO cities_currencies (currency_id, country_code_2, currency_name, currency_code) VALUES (197, 'sm', 'euro', 'eur'), (107, 'iq', 'iraqi dinar', 'iqd'), (152, 'me', 'euro', 'eur'), (166, 'ng', 'naira', 'ngn'), (31, 'io', 'us dollar', 'usd');
-- DBMS: sqlite
CREATE TABLE legislation_date_dim (
    date TEXT,
    month_name TEXT,
    day_of_month INTEGER
);

INSERT INTO legislation_date_dim (date, month_name, day_of_month) VALUES ('1951-06-11', 'June', 11), ('1963-10-28', 'October', 28), ('1989-10-03', 'October', 3), ('1962-09-28', 'September', 28), ('1959-02-12', 'February', 12);
-- DBMS: sqlite
CREATE TABLE aliens_location (
    loc_id INTEGER,
    current_location TEXT,
    state TEXT,
    country TEXT,
    occupation TEXT
);

INSERT INTO aliens_location (loc_id, current_location, state, country, occupation) VALUES (29529, 'Cleveland', 'Ohio', 'United States', 'Staff Accountant III'), (8670, 'Denver', 'Colorado', 'United States', 'Human Resources Assistant IV'), (16425, 'Erie', 'Pennsylvania', 'United States', 'Junior Executive'), (37693, 'New Orleans', 'Louisiana', 'United States', 'Research Nurse'), (40241, 'Monticello', 'Minnesota', 'United States', 'Automation Specialist II');
-- DBMS: sqlite
CREATE TABLE cities_countries (
    country_id INTEGER,
    country_name TEXT,
    country_code_2 TEXT,
    country_code_3 TEXT,
    region TEXT,
    sub_region TEXT,
    intermediate_region TEXT,
    created_on TEXT
);

INSERT INTO cities_countries (country_id, country_name, country_code_2, country_code_3, region, sub_region, intermediate_region, created_on) VALUES (115, 'italy', 'it', 'ita', 'europe', 'southern europe', NULL, '2024-07-18'), (7, 'cyprus', 'cy', 'cyp', 'asia', 'western asia', NULL, '2024-07-18'), (195, 'rwanda', 'rw', 'rwa', 'africa', 'subsaharan africa', 'eastern africa', '2024-07-18'), (163, 'nepal', 'np', 'npl', 'asia', 'southern asia', NULL, '2024-07-18'), (224, 'suriname', 'sr', 'sur', 'americas', 'latin america and the caribbean', 'south america', '2024-07-18');
-- DBMS: sqlite
CREATE TABLE cities_languages (
    language_id INTEGER,
    language TEXT,
    country_code_2 TEXT
);

INSERT INTO cities_languages (language_id, language, country_code_2) VALUES (5, 'english', 'al'), (410, 'korean', 'kp'), (461, 'english', 'sa'), (542, 'english', 'tw'), (543, 'taroko', 'tw');
-- DBMS: sqlite
CREATE TABLE legislators (
    full_name TEXT,
    first_name TEXT,
    last_name TEXT,
    middle_name TEXT,
    nickname TEXT,
    suffix TEXT,
    other_names_end TEXT,
    other_names_middle REAL,
    other_names_last TEXT,
    birthday TEXT,
    gender TEXT,
    id_bioguide TEXT,
    id_bioguide_previous_0 TEXT,
    id_govtrack INTEGER,
    id_icpsr REAL,
    id_wikipedia TEXT,
    id_wikidata TEXT,
    id_google_entity_id TEXT,
    id_house_history REAL,
    id_house_history_alternate REAL,
    id_thomas REAL,
    id_cspan REAL,
    id_votesmart REAL,
    id_lis TEXT,
    id_ballotpedia TEXT,
    id_opensecrets TEXT,
    id_fec_0 TEXT,
    id_fec_1 TEXT,
    id_fec_2 TEXT
);

INSERT INTO legislators (full_name, first_name, last_name, middle_name, nickname, suffix, other_names_end, other_names_middle, other_names_last, birthday, gender, id_bioguide, id_bioguide_previous_0, id_govtrack, id_icpsr, id_wikipedia, id_wikidata, id_google_entity_id, id_house_history, id_house_history_alternate, id_thomas, id_cspan, id_votesmart, id_lis, id_ballotpedia, id_opensecrets, id_fec_0, id_fec_1, id_fec_2) VALUES ('Thomas Francis Burchill', 'Thomas', 'Burchill', 'Francis', NULL, NULL, NULL, NULL, NULL, '1882-08-03', 'M', 'B001072', NULL, 402018, 1248.0, 'Thomas F. Burchill', 'Q3332131', 'kg:/m/026fp3p', 10157.0, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Henry Gray Turner', 'Henry', 'Turner', 'Gray', NULL, NULL, NULL, NULL, NULL, '1839-03-20', 'M', 'T000421', NULL, 410990, 9516.0, 'Henry Gray Turner', 'Q1606804', 'kg:/m/026j32c', 23150.0, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Jotham Post', 'Jotham', 'Post', NULL, NULL, 'Jr.', NULL, NULL, NULL, '1771-04-04', 'M', 'P000455', NULL, 408842, 7546.0, 'Jotham Post Jr.', 'Q168616', 'kg:/m/02rktbn', 19845.0, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('Nancy Landon Kassebaum', 'Nancy', 'Kassebaum', 'Landon', NULL, NULL, NULL, NULL, NULL, '1932-07-29', 'F', 'K000017', NULL, 406188, 14708.0, 'Nancy Kassebaum', 'Q458281', 'kg:/m/021v7x', 16096.0, NULL, 1375.0, NULL, NULL, 'S140', NULL, NULL, NULL, NULL, NULL), ('Michael Joseph Bradley', 'Michael', 'Bradley', 'Joseph', NULL, NULL, NULL, NULL, NULL, '1897-05-24', 'M', 'B000743', NULL, 401702, 954.0, 'Michael J. Bradley', 'Q6831369', 'kg:/m/0d_vmv', 9739.0, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-- DBMS: sqlite
CREATE TABLE alien_data (
    id INTEGER,
    first_name TEXT,
    last_name TEXT,
    email TEXT,
    gender TEXT,
    type TEXT,
    birth_year INTEGER,
    age INTEGER,
    favorite_food TEXT,
    feeding_frequency TEXT,
    aggressive INTEGER,
    occupation TEXT,
    current_location TEXT,
    state TEXT,
    us_region TEXT,
    country TEXT
);

INSERT INTO alien_data (id, first_name, last_name, email, gender, type, birth_year, age, favorite_food, feeding_frequency, aggressive, occupation, current_location, state, us_region, country) VALUES (6466, 'filia', 'rennix', 'frennix4zl@state.tx.us', 'female', 'reptile', 1763, 261, 'godwit, hudsonian', 'monthly', 1, 'chemical engineer', 'scranton', 'pennsylvania', 'mideast', 'united states'), (4654, 'ike', 'gouly', 'igouly3l9@vinaora.com', 'male', 'grey', 1739, 285, 'american bison', 'weekly', 1, 'statistician i', 'lansing', 'michigan', 'great lakes', 'united states'), (20536, 'sayer', 'amner', 'samnerfuf@about.me', 'male', 'nordic', 1821, 203, 'eastern indigo snake', 'yearly', 0, 'financial advisor', 'washington', 'district of columbia', 'mideast', 'united states'), (46217, 'mercy', 'klemt', 'mklemtzns@pagesperso-orange.fr', 'female', 'flatwoods', 1755, 269, 'siskin, pine', 'often', 1, 'structural analysis engineer', 'bakersfield', 'california', 'far west', 'united states'), (2437, 'sonnnie', 'willavoys', 'swillavoys1vo@auda.org.au', 'female', 'nordic', 1955, 69, 'fairy penguin', 'often', 0, 'vp sales', 'saginaw', 'michigan', 'great lakes', 'united states');
-- DBMS: sqlite
CREATE TABLE cities (
    city_id INTEGER,
    city_name TEXT,
    latitude REAL,
    longitude REAL,
    country_code_2 TEXT,
    capital INTEGER,
    population REAL,
    insert_date TEXT
);

INSERT INTO cities (city_id, city_name, latitude, longitude, country_code_2, capital, population, insert_date) VALUES (14356, 'florida', -76.2386, 3.3275, 'co', 0, 58988.0, '2023-04-05'), (40795, 'hardiya', 84.4961, 25.5301, 'in', 0, 8766.0, '2023-02-15'), (38898, 'khovaling', 69.9728, 38.3386, 'tj', 0, 10601.0, '2023-02-10'), (16699, 'santo antonio da platina', -50.0769, -23.295, 'br', 0, 42707.0, '2021-01-16'), (6105, 'edmonton', -0.0708, 51.6154, 'gb', 0, 82472.0, '2023-06-23');
-- DBMS: sqlite
CREATE TABLE legislators_terms (
    id_bioguide TEXT,
    term_number INTEGER,
    term_id TEXT,
    term_type TEXT,
    term_start TEXT,
    term_end TEXT,
    state TEXT,
    district REAL,
    class REAL,
    party TEXT,
    how TEXT,
    url TEXT,
    address TEXT,
    phone TEXT,
    fax TEXT,
    contact_form TEXT,
    office TEXT,
    state_rank TEXT,
    rss_url TEXT,
    caucus TEXT
);

INSERT INTO legislators_terms (id_bioguide, term_number, term_id, term_type, term_start, term_end, state, district, class, party, how, url, address, phone, fax, contact_form, office, state_rank, rss_url, caucus) VALUES ('L000221', 7, 'L000221-7', 'rep', '1977-01-04', '1979-01-03', 'CA', 4.0, NULL, 'Democrat', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('M000203', 1, 'M000203-1', 'rep', '1889-12-02', '1891-03-03', 'TX', 2.0, NULL, 'Democrat', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('T000224', 0, 'T000224-0', 'rep', '1879-03-18', '1881-03-03', 'IA', 5.0, NULL, 'Republican', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('K000311', 1, 'K000311-1', 'rep', '1867-03-04', '1869-03-03', 'PA', 16.0, NULL, 'Republican', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('B000909', 8, 'B000909-8', 'rep', '1955-01-05', '1957-01-03', 'OH', 7.0, NULL, 'Republican', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-- DBMS: sqlite
CREATE TABLE rental (
    rental_id INT,
    rental_date TIMESTAMP,
    inventory_id INT,
    customer_id INT,
    return_date TIMESTAMP,
    staff_id SMALLINT,
    last_update TIMESTAMP
);

INSERT INTO rental (rental_id, rental_date, inventory_id, customer_id, return_date, staff_id, last_update) VALUES (11110, '2005-08-02 08:20:31.000', 4311, 4, '2005-08-04 05:06:31.000', 2, '2021-03-06 15:55:12'), (9358, '2005-07-30 18:37:24.000', 712, 302, '2005-08-07 23:34:24.000', 2, '2021-03-06 15:54:58'), (12911, '2005-08-19 04:24:10.000', 1770, 367, '2005-08-26 00:35:10.000', 2, '2021-03-06 15:55:27'), (13218, '2005-08-19 15:39:39.000', 4148, 257, '2005-08-22 17:28:39.000', 1, '2021-03-06 15:55:30'), (14471, '2005-08-21 13:10:40.000', 1254, 395, '2005-08-26 16:49:40.000', 1, '2021-03-06 15:55:41');
-- DBMS: sqlite
CREATE TABLE language (
    language_id SMALLINT,
    name CHAR(20),
    last_update TIMESTAMP
);

INSERT INTO language (language_id, name, last_update) VALUES (1, 'English', '2021-03-06 15:51:48'), (5, 'French', '2021-03-06 15:51:48'), (3, 'Japanese', '2021-03-06 15:51:48'), (4, 'Mandarin', '2021-03-06 15:51:48'), (6, 'German', '2021-03-06 15:51:48');
-- DBMS: sqlite
CREATE TABLE store (
    store_id INT,
    manager_staff_id SMALLINT,
    address_id INT,
    last_update TIMESTAMP
);

INSERT INTO store (store_id, manager_staff_id, address_id, last_update) VALUES (1, 1, 1, '2021-03-06 15:52:00'), (2, 2, 2, '2021-03-06 15:52:00');
-- DBMS: sqlite
CREATE TABLE staff (
    staff_id SMALLINT,
    first_name VARCHAR(45),
    last_name VARCHAR(45),
    address_id INT,
    picture BLOB,
    email VARCHAR(50),
    store_id INT,
    active SMALLINT,
    username VARCHAR(16),
    password VARCHAR(40),
    last_update TIMESTAMP
);

INSERT INTO staff (staff_id, first_name, last_name, address_id, picture, email, store_id, active, username, password, last_update) VALUES (1, 'Mike', 'Hillyer', 3, NULL, 'Mike.Hillyer@sakilastaff.com', 1, 1, 'Mike', '8cb2237d0679ca88db6464eac60da96345513964', '2021-03-06 15:52:00'), (2, 'Jon', 'Stephens', 4, NULL, 'Jon.Stephens@sakilastaff.com', 2, 1, 'Jon', '8cb2237d0679ca88db6464eac60da96345513964', '2021-03-06 15:52:00');
-- DBMS: sqlite
CREATE TABLE city (
    city_id INT,
    city VARCHAR(50),
    country_id SMALLINT,
    last_update TIMESTAMP
);

INSERT INTO city (city_id, city, country_id, last_update) VALUES (433, 'Roanoke', 103, '2021-03-06 15:51:53'), (572, 'Vitria de Santo Anto', 15, '2021-03-06 15:51:54'), (328, 'Maring', 15, '2021-03-06 15:51:52'), (273, 'Klerksdorp', 85, '2021-03-06 15:51:51'), (431, 'Rio Claro', 15, '2021-03-06 15:51:53');
-- DBMS: sqlite
CREATE TABLE actor (
    actor_id numeric,
    first_name VARCHAR(45),
    last_name VARCHAR(45),
    last_update TIMESTAMP
);

INSERT INTO actor (actor_id, first_name, last_name, last_update) VALUES (124, 'SCARLETT', 'BENING', '2021-03-06 15:52:00'), (10, 'CHRISTIAN', 'GABLE', '2021-03-06 15:51:59'), (73, 'GARY', 'PENN', '2021-03-06 15:51:59'), (94, 'KENNETH', 'TORN', '2021-03-06 15:51:59'), (134, 'GENE', 'HOPKINS', '2021-03-06 15:52:00');
-- DBMS: sqlite
CREATE TABLE staff_list (
    ID SMALLINT,
    name ,
    address VARCHAR(50),
    zip_code VARCHAR(10),
    phone VARCHAR(20),
    city VARCHAR(50),
    country VARCHAR(50),
    SID INT
);

INSERT INTO staff_list (ID, name, address, zip_code, phone, city, country, SID) VALUES (1, 'Mike Hillyer', '23 Workhaven Lane', NULL, ' ', 'Lethbridge', 'Canada', 1), (2, 'Jon Stephens', '1411 Lillydale Drive', NULL, ' ', 'Woodridge', 'Australia', 2);
-- DBMS: sqlite
CREATE TABLE film_category (
    film_id INT,
    category_id SMALLINT,
    last_update TIMESTAMP
);

INSERT INTO film_category (film_id, category_id, last_update) VALUES (21, 1, '2021-03-06 15:53:28'), (686, 13, '2021-03-06 15:53:33'), (161, 12, '2021-03-06 15:53:29'), (982, 1, '2021-03-06 15:53:35'), (487, 4, '2021-03-06 15:53:31');
-- DBMS: sqlite
CREATE TABLE film_actor (
    actor_id INT,
    film_id INT,
    last_update TIMESTAMP
);

INSERT INTO film_actor (actor_id, film_id, last_update) VALUES (105, 283, '2021-03-06 15:53:07'), (144, 260, '2021-03-06 15:53:16'), (22, 146, '2021-03-06 15:52:49'), (124, 814, '2021-03-06 15:53:12'), (190, 679, '2021-03-06 15:53:26');
-- DBMS: sqlite
CREATE TABLE address (
    address_id INT,
    address VARCHAR(50),
    address2 VARCHAR(50),
    district VARCHAR(20),
    city_id INT,
    postal_code VARCHAR(10),
    phone VARCHAR(20),
    last_update TIMESTAMP
);

INSERT INTO address (address_id, address, address2, district, city_id, postal_code, phone, last_update) VALUES (215, '1333 Haldia Street', NULL, ' ', 174, '82161', ' ', '2021-03-06 15:51:56'), (298, '44 Najafabad Way', NULL, ' ', 146, '61391', ' ', '2021-03-06 15:51:56'), (599, '1895 Zhezqazghan Drive', NULL, ' ', 177, '36693', ' ', '2021-03-06 15:51:59'), (331, '1016 Iwakuni Street', NULL, ' ', 269, '49833', ' ', '2021-03-06 15:51:57'), (450, '203 Tambaram Street', NULL, ' ', 161, '73942', ' ', '2021-03-06 15:51:57');
-- DBMS: sqlite
CREATE TABLE film_list (
    FID INT,
    title VARCHAR(255),
    description BLOB SUB_TYPE TEXT,
    category VARCHAR(25),
    price DECIMAL(4,2),
    length SMALLINT,
    rating VARCHAR(10),
    actors 
);

INSERT INTO film_list (FID, title, description, category, price, length, rating, actors) VALUES (484, 'JERK PAYCHECK', 'A Touching Character Study of a Pastry Chef And a Database Administrator who must Reach a A Shark in Ancient Japan', 'Classics', 2.99, 172, 'NC-17', 'JULIA BARRYMORE'), (435, 'HOTEL HAPPINESS', 'A Thrilling Yarn of a Pastry Chef And a A Shark who must Challenge a Mad Scientist in The Outback', 'Foreign', 4.99, 181, 'PG-13', 'SANDRA KILMER'), (717, 'REAR TRADING', 'A Awe-Inspiring Reflection of a Forensic Psychologist And a Secret Agent who must Succumb a Pastry Chef in Soviet Georgia', 'Action', 0.99, 97, 'NC-17', 'JUDE CRUISE'), (622, 'NEWSIES STORY', 'A Action-Packed Character Study of a Dog And a Lumberjack who must Outrace a Moose in The Gulf of Mexico', 'Documentary', 0.99, 159, 'G', 'JEFF SILVERSTONE'), (517, 'LESSON CLEOPATRA', 'A Emotional Display of a Man And a Explorer who must Build a Boy in A Manhattan Penthouse', 'Sports', 0.99, 167, 'NC-17', 'LISA MONROE');
-- DBMS: sqlite
CREATE TABLE category (
    category_id SMALLINT,
    name VARCHAR(25),
    last_update TIMESTAMP
);

INSERT INTO category (category_id, name, last_update) VALUES (15, 'Sports', '2021-03-06 15:52:00'), (4, 'Classics', '2021-03-06 15:52:00'), (5, 'Comedy', '2021-03-06 15:52:00'), (12, 'Music', '2021-03-06 15:52:00'), (2, 'Animation', '2021-03-06 15:52:00');
-- DBMS: sqlite
CREATE TABLE payment (
    payment_id INT,
    customer_id INT,
    staff_id SMALLINT,
    rental_id INT,
    amount DECIMAL(5,2),
    payment_date TIMESTAMP,
    last_update TIMESTAMP
);

INSERT INTO payment (payment_id, customer_id, staff_id, rental_id, amount, payment_date, last_update) VALUES (8867, 328, 1, 13609, 2.99, '2005-08-20 06:11:51.000', '2021-03-06 15:57:11'), (9500, 351, 2, 8512, 4.99, '2005-07-29 09:48:03.000', '2021-03-06 15:57:16'), (7518, 277, 2, 12149, 3.99, '2005-08-18 00:13:51.000', '2021-03-06 15:57:00'), (15182, 566, 1, 11717, 0.99, '2005-08-17 07:44:09.000', '2021-03-06 15:58:02'), (5794, 213, 1, 9477, 4.99, '2005-07-30 23:07:22.000', '2021-03-06 15:56:46');
-- DBMS: sqlite
CREATE TABLE inventory (
    inventory_id INT,
    film_id INT,
    store_id INT,
    last_update TIMESTAMP
);

INSERT INTO inventory (inventory_id, film_id, store_id, last_update) VALUES (3748, 820, 1, '2021-03-06 15:52:38'), (2837, 622, 2, '2021-03-06 15:52:31'), (1887, 411, 1, '2021-03-06 15:52:23'), (2164, 467, 2, '2021-03-06 15:52:25'), (149, 31, 1, '2021-03-06 15:52:09');
-- DBMS: sqlite
CREATE TABLE customer (
    customer_id INT,
    store_id INT,
    first_name VARCHAR(45),
    last_name VARCHAR(45),
    email VARCHAR(50),
    address_id INT,
    active CHAR(1),
    create_date TIMESTAMP,
    last_update TIMESTAMP
);

INSERT INTO customer (customer_id, store_id, first_name, last_name, email, address_id, active, create_date, last_update) VALUES (470, 1, 'GORDON', 'ALLARD', 'GORDON.ALLARD@sakilacustomer.org', 475, '1', '2006-02-14 22:04:37.000', '2021-03-06 15:53:40'), (196, 1, 'ALMA', 'AUSTIN', 'ALMA.AUSTIN@sakilacustomer.org', 200, '1', '2006-02-14 22:04:36.000', '2021-03-06 15:53:37'), (328, 2, 'JEFFREY', 'SPEAR', 'JEFFREY.SPEAR@sakilacustomer.org', 333, '1', '2006-02-14 22:04:37.000', '2021-03-06 15:53:38'), (285, 1, 'MIRIAM', 'MCKINNEY', 'MIRIAM.MCKINNEY@sakilacustomer.org', 290, '1', '2006-02-14 22:04:37.000', '2021-03-06 15:53:38'), (481, 1, 'HERMAN', 'DEVORE', 'HERMAN.DEVORE@sakilacustomer.org', 486, '1', '2006-02-14 22:04:37.000', '2021-03-06 15:53:40');
-- DBMS: sqlite
CREATE TABLE sales_by_store (
    store_id INT,
    store ,
    manager ,
    total_sales 
);

INSERT INTO sales_by_store (store_id, store, manager, total_sales) VALUES (1, 'Lethbridge,Canada', 'Mike Hillyer', 33679.79), (2, 'Woodridge,Australia', 'Jon Stephens', 33726.770000000004);