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】
    What is the customer's address for the shipment with ship ID 1117?

    【Evidence】
    

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

SQL: SELECT T2.address FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T1.ship_id = '1117'
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】
    Among the shipments to a customer from Texas, what percentage of the shipments shipped in 2017? "Texas" refers to state = 'TX'; shipped in 2017 refers to CAST(ship_date AS DATE) = 2017; percentage = Divide (Count (ship_id where CAST(ship_date AS DATE) = 2017), Count (ship_id)) * 100

    【Evidence】
    "Texas" refers to state = 'TX'; shipped in 2017 refers to CAST(ship_date AS DATE) = 2017; percentage = Divide (Count (ship_id where CAST(ship_date AS DATE) = 2017), Count (ship_id)) * 100

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

SQL: SELECT CAST(SUM(CASE WHEN STRFTIME('%Y', T1.ship_date) = '2017' THEN 1 ELSE 0 END) AS REAL ) * 100 / COUNT(*) FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T2.state = 'TX'
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】
    Calculate the difference between the number of shipments shipped by the truck with the model year 2005 and model year 2006. "2005" and "2006" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))

    【Evidence】
    "2005" and "2006" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))

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

SQL: SELECT SUM(CASE WHEN T1.model_year = '2005' THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.model_year = '2006' THEN 1 ELSE 0 END) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id
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】
    List the driver's name of the shipment with a weight greater than 95% of the average weight of all shipments. weight greater than 95% of average weight refers to weight > Multiply (AVG(weight), 0.95); driver name refers to first_name, last_name

    【Evidence】
    weight greater than 95% of average weight refers to weight > Multiply (AVG(weight), 0.95); driver 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 WHERE T1.weight * 100 > ( SELECT 95 * AVG(weight) FROM shipment )
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    Name the longest Catalan language Wikipedia page title and state the number of different words in this page. longest title refers to max(length(title))

    【Evidence】
    longest title refers to max(length(title))

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

SQL: SELECT title, words FROM pages WHERE title = ( SELECT MAX(LENGTH(title)) FROM pages )
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    List all the Catalan language wikipedia page title with less than 10 number of different words in these pages. less than 10 number of different words refers to words < 10

    【Evidence】
    less than 10 number of different words refers to words < 10

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

SQL: SELECT title FROM pages WHERE words < 10
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    List the page number for Catalan language wikipedia pages containing the word 'Art' in the page title. containing the word 'Art' refers to title LIKE '% Art %'

    【Evidence】
    containing the word 'Art' refers to title LIKE '% Art %'

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

SQL: SELECT page FROM pages WHERE title LIKE 'Art%' OR title LIKE '%Art%' OR title LIKE '%Art'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    What is the title of Catalan language wikipedia page with revision page id '16203226'? revision page id '16203226' refers to revision = 16203226

    【Evidence】
    revision page id '16203226' refers to revision = 16203226

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

SQL: SELECT title FROM pages WHERE revision = 16203226
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    List the titles for all Catalan language wikipedia page from revision page id 106600 to 106700. from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700

    【Evidence】
    from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700

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

SQL: SELECT title FROM pages WHERE revision BETWEEN 106600 AND 106700
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 language_corpus
【Schema】
# Table: pages_words
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [30, 8, 2])
]
# Table: pages
[
(pid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(lid:INTEGER, Examples: [1]),
(page:INTEGER, Examples: [1, 2, 8]),
(revision:INTEGER, Examples: [28236978, 24086480, 26230310]),
(title:TEXT, Examples: [Àbac, Abadia, Adagi]),
(words:INTEGER, Examples: [1081, 68, 304])
]
# Table: words
[
(wid:INTEGER, Primary Key, Examples: [2148990, 2506463, 154840]),
(word:TEXT, Examples: [+,2, +,33, +,4]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: langs
[
(lid:INTEGER, Primary Key, Examples: [1]),
(lang:TEXT, Examples: [ca]),
(locale:TEXT, Examples: [ca_ES]),
(pages:INTEGER, Examples: [1129144]),
(words:INTEGER, Examples: [2764996])
]
# Table: langs_words
[
(lid:INTEGER, Primary Key, Examples: [1]),
(wid:INTEGER, Primary Key, Examples: [1, 2, 3]),
(occurrences:INTEGER, Examples: [242, 16841, 48700])
]
# Table: biwords
[
(lid:INTEGER, Primary Key, Examples: [1]),
(w1st:INTEGER, Primary Key, Examples: [1, 2, 3]),
(w2nd:INTEGER, Primary Key, Examples: [2, 4, 25]),
(occurrences:INTEGER, Examples: [4, 3, 13])
]
【Foreign keys】
pages_words.wid=words.wid
pages_words.pid=pages.pid
pages.lid=langs.lid
langs_words.wid=words.wid
langs_words.lid=langs.lid
biwords.w2nd=words.wid
biwords.w1st=words.wid
biwords.lid=langs.lid

    【Question】
    How many Catalan language wikipedia pages have between 1000 to 2000 number of different words? between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000

    【Evidence】
    between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000

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

SQL: SELECT COUNT(pid) FROM pages WHERE words BETWEEN 1000 AND 2000