QIAN-ME/bird_schema_data huggingface dataset:
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shipping
【Schema】
# Table: driver
[
(driver_id:INTEGER, Primary Key, Examples: [20, 21, 22]),
(first_name:TEXT, Examples: [Sue, Andrea, Roger]),
(last_name:TEXT, Examples: [Newell, Simons, McHaney]),
(address:TEXT, Examples: [268 Richmond Ave, 3574 Oak Limb Cv, 1839 S Orleans St]),
(city:TEXT, Examples: [Memphis]),
(state:TEXT, Examples: [TN]),
(zip_code:INTEGER, Examples: [38106, 38135, 38118]),
(phone:TEXT, Examples: [(901) 774-6569, (901) 384-0984, (901) 948-1043])
]
# Table: customer
[
(cust_id:INTEGER, Primary Key, Examples: [193, 304, 314]),
(cust_name:TEXT, Examples: [Advanced Fabricators]),
(annual_revenue:INTEGER, Examples: [39588651, 17158109, 47403613]),
(cust_type:TEXT, Examples: [manufacturer, wholesaler, retailer]),
(address:TEXT, Examples: [5141 Summit Boulevard]),
(city:TEXT, Examples: [West Palm Beach, Salt Lake City, Council Bluffs]),
(state:TEXT, Examples: [FL, UT, IA]),
(zip:REAL, Examples: [33415.0, 84107.0, 51503.0]),
(phone:TEXT, Examples: [(561) 683-3535, (801) 262-4864, (712) 366-4929])
]
# Table: truck
[
(truck_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(make:TEXT, Examples: [Peterbilt, Mack, Kenworth]),
(model_year:INTEGER, Examples: [2005, 2006, 2007])
]
# Table: shipment
[
(ship_id:INTEGER, Primary Key, Examples: [1000, 1001, 1002]),
(cust_id:INTEGER, Examples: [3660, 2001, 1669]),
(weight:REAL, Examples: [3528.0, 11394.0, 8712.0]),
(truck_id:INTEGER, Examples: [1, 2, 3]),
(driver_id:INTEGER, Examples: [23, 27, 21]),
(city_id:INTEGER, Examples: [137, 186, 268]),
(ship_date:TEXT, Examples: [2016-01-08, 2016-01-18, 2016-01-19])
]
# Table: city
[
(city_id:INTEGER, Primary Key, Examples: [100, 101, 102]),
(city_name:TEXT, Examples: [Union City, Huntington Park, Passaic]),
(state:TEXT, Examples: [New Jersey, California, New York]),
(population:INTEGER, Examples: [67088, 61348, 67861]),
(area:REAL, Examples: [1.3, 3.0, 3.1])
]
【Foreign keys】
shipment.cust_id=customer.cust_id
shipment.city_id=city.city_id
shipment.driver_id=driver.driver_id
shipment.truck_id=truck.truck_id

    【Question】
    How many trucks were manufactured in year 2009? manufactured in year 2009 refers to model_year = 2009

    【Evidence】
    manufactured in year 2009 refers to model_year = 2009

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(truck_id) FROM truck WHERE model_year = 2009
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shipping
【Schema】
# Table: driver
[
(driver_id:INTEGER, Primary Key, Examples: [20, 21, 22]),
(first_name:TEXT, Examples: [Sue, Andrea, Roger]),
(last_name:TEXT, Examples: [Newell, Simons, McHaney]),
(address:TEXT, Examples: [268 Richmond Ave, 3574 Oak Limb Cv, 1839 S Orleans St]),
(city:TEXT, Examples: [Memphis]),
(state:TEXT, Examples: [TN]),
(zip_code:INTEGER, Examples: [38106, 38135, 38118]),
(phone:TEXT, Examples: [(901) 774-6569, (901) 384-0984, (901) 948-1043])
]
# Table: customer
[
(cust_id:INTEGER, Primary Key, Examples: [193, 304, 314]),
(cust_name:TEXT, Examples: [Advanced Fabricators]),
(annual_revenue:INTEGER, Examples: [39588651, 17158109, 47403613]),
(cust_type:TEXT, Examples: [manufacturer, wholesaler, retailer]),
(address:TEXT, Examples: [5141 Summit Boulevard]),
(city:TEXT, Examples: [West Palm Beach, Salt Lake City, Council Bluffs]),
(state:TEXT, Examples: [FL, UT, IA]),
(zip:REAL, Examples: [33415.0, 84107.0, 51503.0]),
(phone:TEXT, Examples: [(561) 683-3535, (801) 262-4864, (712) 366-4929])
]
# Table: truck
[
(truck_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(make:TEXT, Examples: [Peterbilt, Mack, Kenworth]),
(model_year:INTEGER, Examples: [2005, 2006, 2007])
]
# Table: shipment
[
(ship_id:INTEGER, Primary Key, Examples: [1000, 1001, 1002]),
(cust_id:INTEGER, Examples: [3660, 2001, 1669]),
(weight:REAL, Examples: [3528.0, 11394.0, 8712.0]),
(truck_id:INTEGER, Examples: [1, 2, 3]),
(driver_id:INTEGER, Examples: [23, 27, 21]),
(city_id:INTEGER, Examples: [137, 186, 268]),
(ship_date:TEXT, Examples: [2016-01-08, 2016-01-18, 2016-01-19])
]
# Table: city
[
(city_id:INTEGER, Primary Key, Examples: [100, 101, 102]),
(city_name:TEXT, Examples: [Union City, Huntington Park, Passaic]),
(state:TEXT, Examples: [New Jersey, California, New York]),
(population:INTEGER, Examples: [67088, 61348, 67861]),
(area:REAL, Examples: [1.3, 3.0, 3.1])
]
【Foreign keys】
shipment.cust_id=customer.cust_id
shipment.city_id=city.city_id
shipment.driver_id=driver.driver_id
shipment.truck_id=truck.truck_id

    【Question】
    How many customers are manufacturer? "manufacturer" is the cust_type

    【Evidence】
    "manufacturer" is the cust_type

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(*) FROM customer WHERE cust_type = 'manufacturer'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shipping
【Schema】
# Table: driver
[
(driver_id:INTEGER, Primary Key, Examples: [20, 21, 22]),
(first_name:TEXT, Examples: [Sue, Andrea, Roger]),
(last_name:TEXT, Examples: [Newell, Simons, McHaney]),
(address:TEXT, Examples: [268 Richmond Ave, 3574 Oak Limb Cv, 1839 S Orleans St]),
(city:TEXT, Examples: [Memphis]),
(state:TEXT, Examples: [TN]),
(zip_code:INTEGER, Examples: [38106, 38135, 38118]),
(phone:TEXT, Examples: [(901) 774-6569, (901) 384-0984, (901) 948-1043])
]
# Table: customer
[
(cust_id:INTEGER, Primary Key, Examples: [193, 304, 314]),
(cust_name:TEXT, Examples: [Advanced Fabricators]),
(annual_revenue:INTEGER, Examples: [39588651, 17158109, 47403613]),
(cust_type:TEXT, Examples: [manufacturer, wholesaler, retailer]),
(address:TEXT, Examples: [5141 Summit Boulevard]),
(city:TEXT, Examples: [West Palm Beach, Salt Lake City, Council Bluffs]),
(state:TEXT, Examples: [FL, UT, IA]),
(zip:REAL, Examples: [33415.0, 84107.0, 51503.0]),
(phone:TEXT, Examples: [(561) 683-3535, (801) 262-4864, (712) 366-4929])
]
# Table: truck
[
(truck_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(make:TEXT, Examples: [Peterbilt, Mack, Kenworth]),
(model_year:INTEGER, Examples: [2005, 2006, 2007])
]
# Table: shipment
[
(ship_id:INTEGER, Primary Key, Examples: [1000, 1001, 1002]),
(cust_id:INTEGER, Examples: [3660, 2001, 1669]),
(weight:REAL, Examples: [3528.0, 11394.0, 8712.0]),
(truck_id:INTEGER, Examples: [1, 2, 3]),
(driver_id:INTEGER, Examples: [23, 27, 21]),
(city_id:INTEGER, Examples: [137, 186, 268]),
(ship_date:TEXT, Examples: [2016-01-08, 2016-01-18, 2016-01-19])
]
# Table: city
[
(city_id:INTEGER, Primary Key, Examples: [100, 101, 102]),
(city_name:TEXT, Examples: [Union City, Huntington Park, Passaic]),
(state:TEXT, Examples: [New Jersey, California, New York]),
(population:INTEGER, Examples: [67088, 61348, 67861]),
(area:REAL, Examples: [1.3, 3.0, 3.1])
]
【Foreign keys】
shipment.cust_id=customer.cust_id
shipment.city_id=city.city_id
shipment.driver_id=driver.driver_id
shipment.truck_id=truck.truck_id

    【Question】
    How many customers who live in California that are retailers? "retailer" is the cust_type; live in California refers to state = 'CA'

    【Evidence】
    "retailer" is the cust_type; live in California refers to state = 'CA'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(*) FROM customer WHERE cust_type = 'retailer' AND state = 'CA'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shipping
【Schema】
# Table: driver
[
(driver_id:INTEGER, Primary Key, Examples: [20, 21, 22]),
(first_name:TEXT, Examples: [Sue, Andrea, Roger]),
(last_name:TEXT, Examples: [Newell, Simons, McHaney]),
(address:TEXT, Examples: [268 Richmond Ave, 3574 Oak Limb Cv, 1839 S Orleans St]),
(city:TEXT, Examples: [Memphis]),
(state:TEXT, Examples: [TN]),
(zip_code:INTEGER, Examples: [38106, 38135, 38118]),
(phone:TEXT, Examples: [(901) 774-6569, (901) 384-0984, (901) 948-1043])
]
# Table: customer
[
(cust_id:INTEGER, Primary Key, Examples: [193, 304, 314]),
(cust_name:TEXT, Examples: [Advanced Fabricators]),
(annual_revenue:INTEGER, Examples: [39588651, 17158109, 47403613]),
(cust_type:TEXT, Examples: [manufacturer, wholesaler, retailer]),
(address:TEXT, Examples: [5141 Summit Boulevard]),
(city:TEXT, Examples: [West Palm Beach, Salt Lake City, Council Bluffs]),
(state:TEXT, Examples: [FL, UT, IA]),
(zip:REAL, Examples: [33415.0, 84107.0, 51503.0]),
(phone:TEXT, Examples: [(561) 683-3535, (801) 262-4864, (712) 366-4929])
]
# Table: truck
[
(truck_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(make:TEXT, Examples: [Peterbilt, Mack, Kenworth]),
(model_year:INTEGER, Examples: [2005, 2006, 2007])
]
# Table: shipment
[
(ship_id:INTEGER, Primary Key, Examples: [1000, 1001, 1002]),
(cust_id:INTEGER, Examples: [3660, 2001, 1669]),
(weight:REAL, Examples: [3528.0, 11394.0, 8712.0]),
(truck_id:INTEGER, Examples: [1, 2, 3]),
(driver_id:INTEGER, Examples: [23, 27, 21]),
(city_id:INTEGER, Examples: [137, 186, 268]),
(ship_date:TEXT, Examples: [2016-01-08, 2016-01-18, 2016-01-19])
]
# Table: city
[
(city_id:INTEGER, Primary Key, Examples: [100, 101, 102]),
(city_name:TEXT, Examples: [Union City, Huntington Park, Passaic]),
(state:TEXT, Examples: [New Jersey, California, New York]),
(population:INTEGER, Examples: [67088, 61348, 67861]),
(area:REAL, Examples: [1.3, 3.0, 3.1])
]
【Foreign keys】
shipment.cust_id=customer.cust_id
shipment.city_id=city.city_id
shipment.driver_id=driver.driver_id
shipment.truck_id=truck.truck_id

    【Question】
    How many cities are in Connecticut? "Connecticut" is the state

    【Evidence】
    "Connecticut" is the state

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(*) FROM city WHERE state = 'Connecticut'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shipping
【Schema】
# Table: driver
[
(driver_id:INTEGER, Primary Key, Examples: [20, 21, 22]),
(first_name:TEXT, Examples: [Sue, Andrea, Roger]),
(last_name:TEXT, Examples: [Newell, Simons, McHaney]),
(address:TEXT, Examples: [268 Richmond Ave, 3574 Oak Limb Cv, 1839 S Orleans St]),
(city:TEXT, Examples: [Memphis]),
(state:TEXT, Examples: [TN]),
(zip_code:INTEGER, Examples: [38106, 38135, 38118]),
(phone:TEXT, Examples: [(901) 774-6569, (901) 384-0984, (901) 948-1043])
]
# Table: customer
[
(cust_id:INTEGER, Primary Key, Examples: [193, 304, 314]),
(cust_name:TEXT, Examples: [Advanced Fabricators]),
(annual_revenue:INTEGER, Examples: [39588651, 17158109, 47403613]),
(cust_type:TEXT, Examples: [manufacturer, wholesaler, retailer]),
(address:TEXT, Examples: [5141 Summit Boulevard]),
(city:TEXT, Examples: [West Palm Beach, Salt Lake City, Council Bluffs]),
(state:TEXT, Examples: [FL, UT, IA]),
(zip:REAL, Examples: [33415.0, 84107.0, 51503.0]),
(phone:TEXT, Examples: [(561) 683-3535, (801) 262-4864, (712) 366-4929])
]
# Table: truck
[
(truck_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(make:TEXT, Examples: [Peterbilt, Mack, Kenworth]),
(model_year:INTEGER, Examples: [2005, 2006, 2007])
]
# Table: shipment
[
(ship_id:INTEGER, Primary Key, Examples: [1000, 1001, 1002]),
(cust_id:INTEGER, Examples: [3660, 2001, 1669]),
(weight:REAL, Examples: [3528.0, 11394.0, 8712.0]),
(truck_id:INTEGER, Examples: [1, 2, 3]),
(driver_id:INTEGER, Examples: [23, 27, 21]),
(city_id:INTEGER, Examples: [137, 186, 268]),
(ship_date:TEXT, Examples: [2016-01-08, 2016-01-18, 2016-01-19])
]
# Table: city
[
(city_id:INTEGER, Primary Key, Examples: [100, 101, 102]),
(city_name:TEXT, Examples: [Union City, Huntington Park, Passaic]),
(state:TEXT, Examples: [New Jersey, California, New York]),
(population:INTEGER, Examples: [67088, 61348, 67861]),
(area:REAL, Examples: [1.3, 3.0, 3.1])
]
【Foreign keys】
shipment.cust_id=customer.cust_id
shipment.city_id=city.city_id
shipment.driver_id=driver.driver_id
shipment.truck_id=truck.truck_id

    【Question】
    What is the most populated city in California? in California refers to state = 'CA'; most populated city refers to Max(population)

    【Evidence】
    in California refers to state = 'CA'; most populated city refers to Max(population)

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT city_name FROM city WHERE state = 'California' AND population = ( SELECT MAX(population) FROM city WHERE state = 'California' )
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shipping
【Schema】
# Table: driver
[
(driver_id:INTEGER, Primary Key, Examples: [20, 21, 22]),
(first_name:TEXT, Examples: [Sue, Andrea, Roger]),
(last_name:TEXT, Examples: [Newell, Simons, McHaney]),
(address:TEXT, Examples: [268 Richmond Ave, 3574 Oak Limb Cv, 1839 S Orleans St]),
(city:TEXT, Examples: [Memphis]),
(state:TEXT, Examples: [TN]),
(zip_code:INTEGER, Examples: [38106, 38135, 38118]),
(phone:TEXT, Examples: [(901) 774-6569, (901) 384-0984, (901) 948-1043])
]
# Table: customer
[
(cust_id:INTEGER, Primary Key, Examples: [193, 304, 314]),
(cust_name:TEXT, Examples: [Advanced Fabricators]),
(annual_revenue:INTEGER, Examples: [39588651, 17158109, 47403613]),
(cust_type:TEXT, Examples: [manufacturer, wholesaler, retailer]),
(address:TEXT, Examples: [5141 Summit Boulevard]),
(city:TEXT, Examples: [West Palm Beach, Salt Lake City, Council Bluffs]),
(state:TEXT, Examples: [FL, UT, IA]),
(zip:REAL, Examples: [33415.0, 84107.0, 51503.0]),
(phone:TEXT, Examples: [(561) 683-3535, (801) 262-4864, (712) 366-4929])
]
# Table: truck
[
(truck_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(make:TEXT, Examples: [Peterbilt, Mack, Kenworth]),
(model_year:INTEGER, Examples: [2005, 2006, 2007])
]
# Table: shipment
[
(ship_id:INTEGER, Primary Key, Examples: [1000, 1001, 1002]),
(cust_id:INTEGER, Examples: [3660, 2001, 1669]),
(weight:REAL, Examples: [3528.0, 11394.0, 8712.0]),
(truck_id:INTEGER, Examples: [1, 2, 3]),
(driver_id:INTEGER, Examples: [23, 27, 21]),
(city_id:INTEGER, Examples: [137, 186, 268]),
(ship_date:TEXT, Examples: [2016-01-08, 2016-01-18, 2016-01-19])
]
# Table: city
[
(city_id:INTEGER, Primary Key, Examples: [100, 101, 102]),
(city_name:TEXT, Examples: [Union City, Huntington Park, Passaic]),
(state:TEXT, Examples: [New Jersey, California, New York]),
(population:INTEGER, Examples: [67088, 61348, 67861]),
(area:REAL, Examples: [1.3, 3.0, 3.1])
]
【Foreign keys】
shipment.cust_id=customer.cust_id
shipment.city_id=city.city_id
shipment.driver_id=driver.driver_id
shipment.truck_id=truck.truck_id

    【Question】
    What is the annual revenue of Klett & Sons Repair? "Klett & Sons Repair" is the cust_name

    【Evidence】
    "Klett & Sons Repair" is the cust_name

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT annual_revenue FROM customer WHERE cust_name = 'Klett & Sons Repair'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shipping
【Schema】
# Table: driver
[
(driver_id:INTEGER, Primary Key, Examples: [20, 21, 22]),
(first_name:TEXT, Examples: [Sue, Andrea, Roger]),
(last_name:TEXT, Examples: [Newell, Simons, McHaney]),
(address:TEXT, Examples: [268 Richmond Ave, 3574 Oak Limb Cv, 1839 S Orleans St]),
(city:TEXT, Examples: [Memphis]),
(state:TEXT, Examples: [TN]),
(zip_code:INTEGER, Examples: [38106, 38135, 38118]),
(phone:TEXT, Examples: [(901) 774-6569, (901) 384-0984, (901) 948-1043])
]
# Table: customer
[
(cust_id:INTEGER, Primary Key, Examples: [193, 304, 314]),
(cust_name:TEXT, Examples: [Advanced Fabricators]),
(annual_revenue:INTEGER, Examples: [39588651, 17158109, 47403613]),
(cust_type:TEXT, Examples: [manufacturer, wholesaler, retailer]),
(address:TEXT, Examples: [5141 Summit Boulevard]),
(city:TEXT, Examples: [West Palm Beach, Salt Lake City, Council Bluffs]),
(state:TEXT, Examples: [FL, UT, IA]),
(zip:REAL, Examples: [33415.0, 84107.0, 51503.0]),
(phone:TEXT, Examples: [(561) 683-3535, (801) 262-4864, (712) 366-4929])
]
# Table: truck
[
(truck_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(make:TEXT, Examples: [Peterbilt, Mack, Kenworth]),
(model_year:INTEGER, Examples: [2005, 2006, 2007])
]
# Table: shipment
[
(ship_id:INTEGER, Primary Key, Examples: [1000, 1001, 1002]),
(cust_id:INTEGER, Examples: [3660, 2001, 1669]),
(weight:REAL, Examples: [3528.0, 11394.0, 8712.0]),
(truck_id:INTEGER, Examples: [1, 2, 3]),
(driver_id:INTEGER, Examples: [23, 27, 21]),
(city_id:INTEGER, Examples: [137, 186, 268]),
(ship_date:TEXT, Examples: [2016-01-08, 2016-01-18, 2016-01-19])
]
# Table: city
[
(city_id:INTEGER, Primary Key, Examples: [100, 101, 102]),
(city_name:TEXT, Examples: [Union City, Huntington Park, Passaic]),
(state:TEXT, Examples: [New Jersey, California, New York]),
(population:INTEGER, Examples: [67088, 61348, 67861]),
(area:REAL, Examples: [1.3, 3.0, 3.1])
]
【Foreign keys】
shipment.cust_id=customer.cust_id
shipment.city_id=city.city_id
shipment.driver_id=driver.driver_id
shipment.truck_id=truck.truck_id

    【Question】
    Who is the driver that transported the lightest weight of shipment? Provide the full name of the driver. lightest weight refers to Min(weight); full name refers to first_name, last_name

    【Evidence】
    lightest weight refers to Min(weight); full name refers to first_name, last_name

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T2.first_name, T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id ORDER BY T1.weight ASC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shipping
【Schema】
# Table: driver
[
(driver_id:INTEGER, Primary Key, Examples: [20, 21, 22]),
(first_name:TEXT, Examples: [Sue, Andrea, Roger]),
(last_name:TEXT, Examples: [Newell, Simons, McHaney]),
(address:TEXT, Examples: [268 Richmond Ave, 3574 Oak Limb Cv, 1839 S Orleans St]),
(city:TEXT, Examples: [Memphis]),
(state:TEXT, Examples: [TN]),
(zip_code:INTEGER, Examples: [38106, 38135, 38118]),
(phone:TEXT, Examples: [(901) 774-6569, (901) 384-0984, (901) 948-1043])
]
# Table: customer
[
(cust_id:INTEGER, Primary Key, Examples: [193, 304, 314]),
(cust_name:TEXT, Examples: [Advanced Fabricators]),
(annual_revenue:INTEGER, Examples: [39588651, 17158109, 47403613]),
(cust_type:TEXT, Examples: [manufacturer, wholesaler, retailer]),
(address:TEXT, Examples: [5141 Summit Boulevard]),
(city:TEXT, Examples: [West Palm Beach, Salt Lake City, Council Bluffs]),
(state:TEXT, Examples: [FL, UT, IA]),
(zip:REAL, Examples: [33415.0, 84107.0, 51503.0]),
(phone:TEXT, Examples: [(561) 683-3535, (801) 262-4864, (712) 366-4929])
]
# Table: truck
[
(truck_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(make:TEXT, Examples: [Peterbilt, Mack, Kenworth]),
(model_year:INTEGER, Examples: [2005, 2006, 2007])
]
# Table: shipment
[
(ship_id:INTEGER, Primary Key, Examples: [1000, 1001, 1002]),
(cust_id:INTEGER, Examples: [3660, 2001, 1669]),
(weight:REAL, Examples: [3528.0, 11394.0, 8712.0]),
(truck_id:INTEGER, Examples: [1, 2, 3]),
(driver_id:INTEGER, Examples: [23, 27, 21]),
(city_id:INTEGER, Examples: [137, 186, 268]),
(ship_date:TEXT, Examples: [2016-01-08, 2016-01-18, 2016-01-19])
]
# Table: city
[
(city_id:INTEGER, Primary Key, Examples: [100, 101, 102]),
(city_name:TEXT, Examples: [Union City, Huntington Park, Passaic]),
(state:TEXT, Examples: [New Jersey, California, New York]),
(population:INTEGER, Examples: [67088, 61348, 67861]),
(area:REAL, Examples: [1.3, 3.0, 3.1])
]
【Foreign keys】
shipment.cust_id=customer.cust_id
shipment.city_id=city.city_id
shipment.driver_id=driver.driver_id
shipment.truck_id=truck.truck_id

    【Question】
    How many shipments were shipped to customers living in California in year 2016? living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016

    【Evidence】
    living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(*) AS per FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE STRFTIME('%Y', T2.ship_date) = '2016' AND T1.state = 'CA'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 shipping
【Schema】
# Table: driver
[
(driver_id:INTEGER, Primary Key, Examples: [20, 21, 22]),
(first_name:TEXT, Examples: [Sue, Andrea, Roger]),
(last_name:TEXT, Examples: [Newell, Simons, McHaney]),
(address:TEXT, Examples: [268 Richmond Ave, 3574 Oak Limb Cv, 1839 S Orleans St]),
(city:TEXT, Examples: [Memphis]),
(state:TEXT, Examples: [TN]),
(zip_code:INTEGER, Examples: [38106, 38135, 38118]),
(phone:TEXT, Examples: [(901) 774-6569, (901) 384-0984, (901) 948-1043])
]
# Table: customer
[
(cust_id:INTEGER, Primary Key, Examples: [193, 304, 314]),
(cust_name:TEXT, Examples: [Advanced Fabricators]),
(annual_revenue:INTEGER, Examples: [39588651, 17158109, 47403613]),
(cust_type:TEXT, Examples: [manufacturer, wholesaler, retailer]),
(address:TEXT, Examples: [5141 Summit Boulevard]),
(city:TEXT, Examples: [West Palm Beach, Salt Lake City, Council Bluffs]),
(state:TEXT, Examples: [FL, UT, IA]),
(zip:REAL, Examples: [33415.0, 84107.0, 51503.0]),
(phone:TEXT, Examples: [(561) 683-3535, (801) 262-4864, (712) 366-4929])
]
# Table: truck
[
(truck_id:INTEGER, Primary Key, Examples: [1, 2, 3]),
(make:TEXT, Examples: [Peterbilt, Mack, Kenworth]),
(model_year:INTEGER, Examples: [2005, 2006, 2007])
]
# Table: shipment
[
(ship_id:INTEGER, Primary Key, Examples: [1000, 1001, 1002]),
(cust_id:INTEGER, Examples: [3660, 2001, 1669]),
(weight:REAL, Examples: [3528.0, 11394.0, 8712.0]),
(truck_id:INTEGER, Examples: [1, 2, 3]),
(driver_id:INTEGER, Examples: [23, 27, 21]),
(city_id:INTEGER, Examples: [137, 186, 268]),
(ship_date:TEXT, Examples: [2016-01-08, 2016-01-18, 2016-01-19])
]
# Table: city
[
(city_id:INTEGER, Primary Key, Examples: [100, 101, 102]),
(city_name:TEXT, Examples: [Union City, Huntington Park, Passaic]),
(state:TEXT, Examples: [New Jersey, California, New York]),
(population:INTEGER, Examples: [67088, 61348, 67861]),
(area:REAL, Examples: [1.3, 3.0, 3.1])
]
【Foreign keys】
shipment.cust_id=customer.cust_id
shipment.city_id=city.city_id
shipment.driver_id=driver.driver_id
shipment.truck_id=truck.truck_id

    【Question】
    What is the brand of the truck that is used to ship by Zachery Hicks? brand of truck refers to make

    【Evidence】
    brand of truck refers to make

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT DISTINCT T1.make FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id INNER JOIN driver AS T3 ON T3.driver_id = T2.driver_id WHERE T3.first_name = 'Zachery' AND T3.last_name = 'Hicks'