id int64 0 9.43k | db_id stringclasses 69
values | schema stringclasses 69
values | question stringlengths 24 325 | output stringlengths 23 804 | evidence stringlengths 0 673 | filtered_schema listlengths 0 16 |
|---|---|---|---|---|---|---|
5,600 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | For the shipment received by Leszek Kieltyka on 2017/9/25, what was its weight? | SELECT T1.weight FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T2.first_name = 'Leszek' AND T2.last_name = 'Kieltyka' AND T1.ship_date = '2017-09-25' | on 2017/9/25 refers to ship_date = '2017-09-25' | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.ship_date",
"shipment.weight"
] |
5,601 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the area of the destination city of shipment No.1346? | SELECT T2.area FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T1.ship_id = '1346' | shipment no. 1346 refers to ship_id = 1346 | [
"city.area",
"city.city_id",
"shipment.city_id",
"shipment.ship_id"
] |
5,602 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Provide the weight of the shipment to U-haul Center Of N Syracuse on 2016/9/21. | SELECT T1.weight FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T2.cust_name = 'U-haul Center Of N Syracuse' AND T1.ship_date = '2016-09-21' | "U-haul Center Of N Syracuse" is the cust_name; on 2016/9/21 refers to ship_date = '2016/09/21' | [
"customer.cust_id",
"customer.cust_name",
"shipment.cust_id",
"shipment.ship_date",
"shipment.weight"
] |
5,603 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Who was the driver of truck no.3 on 2016/9/19? Tell the full name. | SELECT T3.first_name, T3.last_name 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 T1.truck_id = '3' AND T2.ship_date = '2016-09-19' | truck no. 3 refers to truck_id = 3; on 2016/9/19 refers to ship_date = '2016-09-19'; full name refers to first_name, last_name | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.ship_date",
"shipment.truck_id",
"truck.truck_id"
] |
5,604 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Calculate the population density of the city as the destination of shipment no.1369. | SELECT T2.area / T2.population FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T1.ship_id = '1369' | shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population) | [
"city.area",
"city.city_id",
"city.population",
"shipment.city_id",
"shipment.ship_id"
] |
5,605 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the average number of shipments done by the Kenworth trucks? | SELECT CAST(COUNT(T2.ship_id) AS REAL) / COUNT(DISTINCT T1.truck_id) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T1.make = 'Kenworth' | "Kenworth" is the make of truck; average = Divide (Count(ship_id where make = 'Kenworth'), Count(truck_id where make = 'Kenworth)) | [
"shipment.ship_id",
"shipment.truck_id",
"truck.make",
"truck.truck_id"
] |
5,606 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many pounds did Sue Newell transport during her first shipment? | SELECT T1.weight FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T2.first_name = 'Sue' AND T2.last_name = 'Newell' ORDER BY T1.ship_date ASC LIMIT 1 | first shipment refers to Min(ship_date); pounds refers to weight | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.ship_date",
"shipment.weight"
] |
5,607 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | To whom did the company transport its heaviest shipment? | SELECT T2.cust_name FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id ORDER BY T1.weight DESC LIMIT 1 | heaviest shipment refers to Max(weight) | [
"customer.cust_id",
"customer.cust_name",
"shipment.cust_id",
"shipment.weight"
] |
5,608 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the full name of the driver who transported the first shipment of the company? | 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.ship_date ASC LIMIT 1 | first shipment of the company refers to Min(ship_date); full name refers to first_name, last_name | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.ship_date"
] |
5,609 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | In total, how many shipments were transported to Olympic Camper Sales Inc? | SELECT COUNT(T2.ship_id) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_name = 'Olympic Camper Sales Inc' | "Olympic Camper Sales Inc" is the cust_name | [
"customer.cust_id",
"customer.cust_name",
"shipment.cust_id",
"shipment.ship_id"
] |
5,610 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many of the shipments bound for New York City were shipped to Harry's Hot Rod Auto and Truck Accessories? | SELECT COUNT(*) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id INNER JOIN city AS T3 ON T3.city_id = T2.city_id WHERE T3.city_name = 'New York' AND T1.cust_name = 'Harry''s Hot Rod Auto & Truck Accessories' | "New York" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name | [
"city.city_id",
"city.city_name",
"customer.cust_id",
"customer.cust_name",
"shipment.city_id",
"shipment.cust_id"
] |
5,611 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Among the top 5 heaviest shipments, how many shipments were transported via Mack? | SELECT COUNT(T2.ship_id) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T1.make = 'Mack' ORDER BY T2.weight DESC LIMIT 1 | heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack' | [
"shipment.ship_id",
"shipment.truck_id",
"shipment.weight",
"truck.make",
"truck.truck_id"
] |
5,612 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the full name of the driver who delivered the most shipments to the least populated city? | SELECT T1.first_name, T1.last_name FROM driver AS T1 INNER JOIN shipment AS T2 ON T1.driver_id = T2.driver_id INNER JOIN city AS T3 ON T3.city_id = T2.city_id GROUP BY T1.first_name, T1.last_name, T3.population HAVING T3.population = MAX(T3.population) ORDER BY COUNT(*) DESC LIMIT 1 | least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id)) | [
"city.city_id",
"city.population",
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.city_id",
"shipment.driver_id"
] |
5,613 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many shipments with weight of no more than 1,000 pounds were shipped by the oldest truck? | SELECT COUNT(*) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.weight < 1000 ORDER BY T1.model_year ASC LIMIT 1 | weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year) | [
"shipment.truck_id",
"shipment.weight",
"truck.model_year",
"truck.truck_id"
] |
5,614 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How much is the annual revenue of the customer with the most number of shipments? | SELECT T2.annual_revenue FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_id ORDER BY COUNT(T1.cust_id) DESC LIMIT 1 | customer with the most number of shipment refers to cust_id where Max(Count(ship_id)) | [
"customer.annual_revenue",
"customer.cust_id",
"shipment.cust_id"
] |
5,615 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Among the shipments for Downey, how many shipments were shipped to California in 2016? | SELECT COUNT(*) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN customer AS T3 ON T3.cust_id = T1.cust_id WHERE T2.city_name = 'Downey' AND STRFTIME('%Y', T1.ship_date) = '2016' AND T3.state = 'CA' | "Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016, | [
"city.city_id",
"city.city_name",
"customer.cust_id",
"customer.state",
"shipment.city_id",
"shipment.cust_id",
"shipment.ship_date"
] |
5,616 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many shipments did Holger Nohr transport to North Las Vegas overall? | SELECT COUNT(*) FROM driver AS T1 INNER JOIN shipment AS T2 ON T1.driver_id = T2.driver_id INNER JOIN city AS T3 ON T3.city_id = T2.city_id WHERE T1.first_name = 'Holger' AND T1.last_name = 'Nohr' AND T3.city_name = 'North Las Vegas' | "North Las Vegas" is the city_name | [
"city.city_id",
"city.city_name",
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.city_id",
"shipment.driver_id"
] |
5,617 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many shipments were shipped to the most densely populated city? | SELECT COUNT(*) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id ORDER BY T2.area / T2.population DESC LIMIT 1 | most densely populated city refers to Max(Divide(area, population)) | [
"city.area",
"city.city_id",
"city.population",
"shipment.city_id"
] |
5,618 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Determine the percentage of manufacturers who are from Texas among all of Lorenzo's customers. | SELECT CAST(SUM(CASE WHEN cust_type = 'manufacturer' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM customer WHERE state = 'TX' | "Texas" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100 | [
"customer.cust_type",
"customer.state"
] |
5,619 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Identify the total weight of shipments transported to San Mateo, California, in 2016. | SELECT SUM(T1.weight) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T2.city_name = 'San Mateo' AND STRFTIME('%Y', T1.ship_date) = '2016' | "San Mateo" is the city_name; in 2016 refers to Cast(ship_date as DATE) = 2016 | [
"city.city_id",
"city.city_name",
"shipment.city_id",
"shipment.ship_date",
"shipment.weight"
] |
5,620 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Identify the total weight of shipments transported in 2016 by the newest Peterbilt. | SELECT SUM(T2.weight) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T1.make = 'Peterbilt' AND STRFTIME('%Y', T2.ship_date) = '2016' ORDER BY T1.model_year DESC LIMIT 1 | transported in 2016 refers to CAST(ship_date as DATE) = 2016; 'Peterbilt' is the make; newest refers to Max(model_year) | [
"shipment.ship_date",
"shipment.truck_id",
"shipment.weight",
"truck.make",
"truck.model_year",
"truck.truck_id"
] |
5,621 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What was the maximum weight of the shipment carried to Boston? Name the customer of that shipment. | SELECT T1.weight, T2.cust_name FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id INNER JOIN city AS T3 ON T3.city_id = T1.city_id WHERE T3.city_name = 'Boston' ORDER BY T1.weight DESC LIMIT 1 | "Boston" is the city_name; maximum weight refers to Max(weight); customer refers to cust_name | [
"city.city_id",
"city.city_name",
"customer.cust_id",
"customer.cust_name",
"shipment.city_id",
"shipment.cust_id",
"shipment.weight"
] |
5,622 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Where was shipment no. 1002 headed? | SELECT T2.city_name FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T1.ship_id = '1002' | shipment no. 1002 refers to ship_id = 1002; where shipment was headed refers to city_name | [
"city.city_id",
"city.city_name",
"shipment.city_id",
"shipment.ship_id"
] |
5,623 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the average shipment weight carried by the oldest Mack? | SELECT AVG(T2.weight) FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T1.make = 'Mack' | "Mack" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight) | [
"shipment.truck_id",
"shipment.weight",
"truck.make",
"truck.truck_id"
] |
5,624 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Identify the full name of the driver who delivered a shipment to the city of New York in February 2016. | SELECT T3.first_name, T3.last_name FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN driver AS T3 ON T3.driver_id = T1.driver_id WHERE T2.city_name = 'New York' AND T1.ship_date LIKE '2016-02%' | "New York" is the city_name; in February 2016 refers to ship_date LIKE '2016-02%'; full name refers to first_name, last_name | [
"city.city_id",
"city.city_name",
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.city_id",
"shipment.driver_id",
"shipment.ship_date"
] |
5,625 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Name the customer who sent the shipment to Oak Park. | SELECT T2.cust_name FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id INNER JOIN city AS T3 ON T3.city_id = T1.city_id WHERE T3.city_name = 'Oak Park' | "Oak Park" is the city_name; customer name refers to cust_name | [
"city.city_id",
"city.city_name",
"customer.cust_id",
"customer.cust_name",
"shipment.city_id",
"shipment.cust_id"
] |
5,626 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Determine the number of shipments delivered by Andrea Simons to Huntsville in 2016. | SELECT COUNT(*) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN driver AS T3 ON T3.driver_id = T1.driver_id WHERE T3.first_name = 'Andrea' AND T3.last_name = 'Simons' AND T2.city_name = 'Huntsville' AND STRFTIME('%Y', T1.ship_date) = '2016' | "Huntsville" is the city_name; in 2016 refers to Cast(ship_date AS DATE) = 2016; number of shipment refers to Count(ship_id) | [
"city.city_id",
"city.city_name",
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.city_id",
"shipment.driver_id",
"shipment.ship_date"
] |
5,627 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many shipments does each driver deliver per month on average? | SELECT CAST(COUNT(*) AS REAL) / (12 * COUNT(T2.driver_id)) FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id | shipment data was for 24 months in 2016 and 2017 respectively; deliver per month on average refers to Divide(Count(ship_id), Multiply (24, Count(driver_id))) | [
"driver.driver_id",
"shipment.driver_id"
] |
5,628 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Among all shipments placed by Sunguard Window Tinting & Truck Accessories in 2017, identify the percentage of shipments whose weight exceeded 10,000 pounds. | SELECT CAST(SUM(CASE WHEN T1.weight >= 10000 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.cust_name = 'Sunguard Window Tinting & Truck Accessories' AND STRFTIME('%Y', T1.ship_date) = '2017' | "Sunguard Window Tinting & Truck Accessories" is the cust_name; weight exceed 10,000 pounds refers to weight > = 10000; in 2017 refers to Cast(ship_date AS DATE) = 2017; percentage = Divide (Sum(weight > = 10000), Sum(weight)) * 100 | [
"customer.cust_id",
"customer.cust_name",
"shipment.cust_id",
"shipment.ship_date",
"shipment.weight"
] |
5,629 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Among all shipments delivered by Sue Newel, identify the percentage of shipments that were placed by Autoware Inc. | SELECT CAST(SUM(CASE WHEN T3.cust_name = 'Autoware Inc' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) AS per FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id INNER JOIN customer AS T3 ON T3.cust_id = T1.cust_id WHERE T2.first_name = 'Sue' AND T2.last_name = 'Newell' | "Autoware Inc" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100 | [
"customer.cust_id",
"customer.cust_name",
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.cust_id",
"shipment.driver_id"
] |
5,630 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many cities which belong to New Jersey have transported weight greater than 20000? | SELECT COUNT(*) FROM ( SELECT T2.city_id AS CITYID FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T2.state = 'New Jersey' GROUP BY T2.city_id HAVING SUM(T1.weight) > 20000 ) | "New Jersey" is the state; transported weight greater than 20000 refers to Sum(weight) > 20000 | [
"city.city_id",
"city.state",
"shipment.city_id",
"shipment.weight"
] |
5,631 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many cities whose polulation is larger than 50000 pounds have shipment in 2017? | SELECT COUNT(*) FROM city AS T1 INNER JOIN shipment AS T2 ON T1.city_id = T2.city_id WHERE T1.population > 50000 AND STRFTIME('%Y', T2.ship_date) = '2017' | population is larger than 50000 refers to population > 50000 | [
"city.city_id",
"city.population",
"shipment.city_id",
"shipment.ship_date"
] |
5,632 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | State the weight of shipments transported by Peterbilt. | SELECT T2.weight FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE make = 'Peterbilt' | "Peterbilt" is the make | [
"shipment.truck_id",
"shipment.weight",
"truck.truck_id"
] |
5,633 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the model year of the truck used in shipment id 1003? | SELECT T1.model_year FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = '1003' | shipment id 1003 refers to ship_id = 1003 | [
"shipment.ship_id",
"shipment.truck_id",
"truck.model_year",
"truck.truck_id"
] |
5,634 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the brand of truck used in shipment id 1011? | SELECT T1.make FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = '1011' | shipment id 1011 refers to ship_id = 1011; brand of truck refers to make | [
"shipment.ship_id",
"shipment.truck_id",
"truck.make",
"truck.truck_id"
] |
5,635 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the first name of the driver who transported shipment id 1028? | 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.ship_id = 1028 | shipment id 1028 refers to ship_id = 1028 | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.ship_id"
] |
5,636 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | List out the state of driver who transported the shipment id 1055. | SELECT T2.state FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_id = '1055' | shipment id 1055 refers to ship_id = 1055 | [
"driver.driver_id",
"driver.state",
"shipment.driver_id",
"shipment.ship_id"
] |
5,637 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | State the address of drivers who transported the shipment with weight greater than 50000 pounds. | SELECT T2.address FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id GROUP BY T2.driver_id HAVING SUM(T1.weight) > 50000 | shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000 | [
"driver.address",
"driver.driver_id",
"shipment.driver_id",
"shipment.weight"
] |
5,638 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Give the full name of driver who transported the items on 3/2/2016. | 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.ship_date = '2016-03-02' | on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.ship_date"
] |
5,639 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the average annual revenue of customers who have shipment weight of less than 65000 pounds? | SELECT AVG(T1.annual_revenue) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T2.weight < 65000 | weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue) | [
"customer.annual_revenue",
"customer.cust_id",
"shipment.cust_id",
"shipment.weight"
] |
5,640 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the percentage of wholesaler customers who have shipment weight of not greater than 70000 pounds? | SELECT CAST(SUM(CASE WHEN T2.weight < 70000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T1.cust_type = 'wholesaler' | "wholesaler" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100 | [
"customer.cust_id",
"customer.cust_type",
"shipment.cust_id",
"shipment.weight"
] |
5,641 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the last name of driver who transported shipment id 1088? | SELECT T2.last_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_id = '1088' | shipment id 1088 refers to ship_id = 1088 | [
"driver.driver_id",
"driver.last_name",
"shipment.driver_id",
"shipment.ship_id"
] |
5,642 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Give the phone of drivers who transported shipment weight of greater than 20000 pounds. | SELECT T2.phone FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id GROUP BY T2.driver_id HAVING SUM(T1.weight) > 20000 | shipment weight of greater than 20000 pounds refers to Sum(weight) > 20000 | [
"driver.driver_id",
"driver.phone",
"shipment.driver_id",
"shipment.weight"
] |
5,643 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the brand and model of truck used in shipment id 1055? | SELECT T1.make, T1.model_year FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = '1055' | shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year | [
"shipment.ship_id",
"shipment.truck_id",
"truck.make",
"truck.model_year",
"truck.truck_id"
] |
5,644 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many trucks were manufactured in year 2009? | SELECT COUNT(truck_id) FROM truck WHERE model_year = 2009 | manufactured in year 2009 refers to model_year = 2009 | [
"truck.model_year",
"truck.truck_id"
] |
5,645 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many customers are manufacturer? | SELECT COUNT(*) FROM customer WHERE cust_type = 'manufacturer' | "manufacturer" is the cust_type | [
"customer.cust_type"
] |
5,646 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many customers who live in California that are retailers? | SELECT COUNT(*) FROM customer WHERE cust_type = 'retailer' AND state = 'CA' | "retailer" is the cust_type; live in California refers to state = 'CA' | [
"customer.cust_type",
"customer.state"
] |
5,647 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many cities are in Connecticut? | SELECT COUNT(*) FROM city WHERE state = 'Connecticut' | "Connecticut" is the state | [
"city.state"
] |
5,648 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the most populated city in California? | SELECT city_name FROM city WHERE state = 'California' AND population = ( SELECT MAX(population) FROM city WHERE state = 'California' ) | in California refers to state = 'CA'; most populated city refers to Max(population) | [
"city.city_name",
"city.population",
"city.state"
] |
5,649 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the annual revenue of Klett & Sons Repair? | SELECT annual_revenue FROM customer WHERE cust_name = 'Klett & Sons Repair' | "Klett & Sons Repair" is the cust_name | [
"customer.annual_revenue",
"customer.cust_name"
] |
5,650 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Who is the driver that transported the lightest weight of shipment? Provide the full name of the driver. | 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 | lightest weight refers to Min(weight); full name refers to first_name, last_name | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.weight"
] |
5,651 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many shipments were shipped to customers living in California in year 2016? | 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' | living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016 | [
"customer.cust_id",
"customer.state",
"shipment.cust_id",
"shipment.ship_date"
] |
5,652 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the brand of the truck that is used to ship by Zachery Hicks? | 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' | brand of truck refers to make | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.truck_id",
"truck.make",
"truck.truck_id"
] |
5,653 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | List all the name of the customers that received a shipment in February 2017. | SELECT T1.cust_name FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id WHERE T2.ship_date LIKE '2017-02%' | shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name | [
"customer.cust_id",
"customer.cust_name",
"shipment.cust_id",
"shipment.ship_date"
] |
5,654 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Provide the brand of the truck and the name of the driver that transported goods in Klett & Sons Repair. | SELECT T3.make, T4.first_name, T4.last_name FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id INNER JOIN truck AS T3 ON T3.truck_id = T2.truck_id INNER JOIN driver AS T4 ON T4.driver_id = T2.driver_id WHERE T1.cust_name = 'Klett & Sons Repair' | "Klett & Sons Repair" is the cust_name; brand of truck refers to make; name of driver refers to first_name, last_name | [
"customer.cust_id",
"customer.cust_name",
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.cust_id",
"shipment.driver_id",
"shipment.truck_id",
"truck.make",
"truck.truck_id"
] |
5,655 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the shipment ID of the heaviest shipment that Zachery Hicks transported? | SELECT T1.ship_id FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T2.first_name = 'Zachery' AND T2.last_name = 'Hicks' ORDER BY T1.weight DESC LIMIT 1 | shipment ID refers to ship_id; heaviest shipment refers to Max(weight) | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.ship_id",
"shipment.weight"
] |
5,656 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many shipments did Zachery Hicks transport goods to New York in the year 2016? | SELECT COUNT(*) FROM city AS T1 INNER JOIN shipment AS T2 ON T1.city_id = T2.city_id INNER JOIN driver AS T3 ON T3.driver_id = T2.driver_id WHERE T3.first_name = 'Zachery' AND T3.last_name = 'Hicks' AND T1.city_name = 'New York' AND STRFTIME('%Y', T2.ship_date) = '2016' | "New York" is the city_name; in 2016 refers to CAST(ship_date AS DATE) = 2016 | [
"city.city_id",
"city.city_name",
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.city_id",
"shipment.driver_id",
"shipment.ship_date"
] |
5,657 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Which headquarter's truck has the highest shipments in year 2016? | SELECT CASE WHEN T2.make = 'Peterbilt' THEN 'Texas (TX)' WHEN T2.make = 'Mack' THEN 'North Carolina (NC)' WHEN T2.make = 'Kenworth' THEN 'Washington (WA)' END AS "result" FROM shipment AS T1 INNER JOIN truck AS T2 ON T1.truck_id = T2.truck_id WHERE CAST(T1.ship_date AS DATE) = 2016 GROUP BY T2.make ORDER BY COUNT(T1.sh... | in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id)) | [
"shipment.ship_date",
"shipment.ship_id",
"shipment.truck_id",
"truck.make",
"truck.truck_id"
] |
5,658 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many shipments were shipped to the least populated city in California? | SELECT COUNT(T3.city_name) FROM customer AS T1 INNER JOIN shipment AS T2 ON T1.cust_id = T2.cust_id INNER JOIN city AS T3 ON T3.city_id = T2.city_id WHERE T3.state = 'California' ORDER BY T3.population ASC LIMIT 1 | "California" is the state; least populated city refers to Min(population) | [
"city.city_id",
"city.city_name",
"city.population",
"city.state",
"customer.cust_id",
"shipment.city_id",
"shipment.cust_id"
] |
5,659 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | In which city did the heaviest shipment transported? | SELECT T2.city_name FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id ORDER BY T1.weight DESC LIMIT 1 | heaviest shipment refers to Max(weight); city refers to city_name | [
"city.city_id",
"city.city_name",
"shipment.city_id",
"shipment.weight"
] |
5,660 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | List all the cities where Zachery Hicks transported goods. | SELECT DISTINCT T3.city_name FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id INNER JOIN city AS T3 ON T1.city_id = T3.city_id WHERE T2.first_name = 'Zachery' AND T2.last_name = 'Hicks' | city refers to city_name | [
"city.city_id",
"city.city_name",
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.city_id",
"shipment.driver_id"
] |
5,661 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Calculate the average number of shipments that Zachery Hicks shipped in year 2017. | SELECT CAST(SUM(CASE WHEN T2.first_name = 'Zachery' AND T2.last_name = 'Hicks' THEN T1.ship_id ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE STRFTIME('%Y', T1.ship_date) = '2017' | in year 2017 refers to CAST(ship_date AS DATE) = 2017; percentage = Divide (Count(ship_id where first_name = 'Zachery' AND last_name = 'Hicks'), Count(ship_id)) * 100 | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.ship_date",
"shipment.ship_id"
] |
5,662 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Calculate the percentage of the weight of goods being transported by Zachery Hicks to California in year 2016. | SELECT CAST(SUM(CASE WHEN T2.first_name = 'Zachery' AND T2.last_name = 'Hicks' THEN T1.weight ELSE 0 END) AS REAL) * 100 / SUM(T1.weight) FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE STRFTIME('%Y', T1.ship_date) = '2016' | "California" is the state; in 2016 refers to CAST (ship_date AS DATE) = 2016; percentage = Divide (Sum(weight where first_name = 'Zachery' AND last_name = 'Hicks'), Sum(weight)) * 100 | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.ship_date",
"shipment.weight"
] |
5,663 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many shipments were shipped by the driver named Zachary Hicks? | SELECT COUNT(*) FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.driver_id = 23 | [
"driver.driver_id",
"shipment.driver_id"
] | |
5,664 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the ship ID of shipments shipped to the city with the largest area? | SELECT T1.ship_id FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id ORDER BY T2.area DESC LIMIT 1 | city with largest area refers to Max(area) | [
"city.area",
"city.city_id",
"shipment.city_id",
"shipment.ship_id"
] |
5,665 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | List the drivers who shipped the shipments to the least populated city. | SELECT T3.first_name, T3.last_name FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id INNER JOIN driver AS T3 ON T3.driver_id = T1.driver_id ORDER BY T2.population ASC LIMIT 1 | least populated city refers to Min(population); name refers to first_name, last_name | [
"city.city_id",
"city.population",
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.city_id",
"shipment.driver_id"
] |
5,666 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Among the shipments shipped to Cicero, Illinois, how many shipments weighed between 9,000 to 15,000? | SELECT COUNT(*) FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T2.city_name = 'Cicero' AND T2.state = 'Illinois' AND T1.weight BETWEEN 9000 AND 15000 | "Cicero" is the city; 'Illinois' is the state | [
"city.city_id",
"city.city_name",
"city.state",
"shipment.city_id",
"shipment.weight"
] |
5,667 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What model year of truck delivered the ship ID 1233? | SELECT T1.model_year FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = '1233' | [
"shipment.ship_id",
"shipment.truck_id",
"truck.model_year",
"truck.truck_id"
] | |
5,668 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the address of the driver that delivers the shipment for the customer lives at 7052 Carroll Road, San Diego, California? | SELECT T3.address FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id INNER JOIN driver AS T3 ON T3.driver_id = T1.driver_id WHERE T2.address = '7052 Carroll Road' AND T2.city = 'San Diego' AND T2.state = 'CA' | "7052 Carroll Road" is the address of customer; 'San Diego' is the city; 'California' is the state | [
"customer.address",
"customer.city",
"customer.cust_id",
"customer.state",
"driver.address",
"driver.driver_id",
"shipment.cust_id",
"shipment.driver_id"
] |
5,669 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Among the shipments delivered by Maria Craft, how many shipments were delivered in 2017? | SELECT COUNT(*) FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T2.first_name = 'Maria' AND T2.last_name = 'Craft' AND STRFTIME('%Y', T1.ship_date) = '2017' | delivered in 2017 refers to Cast(ship_date AS DATE) = 2017 | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.ship_date"
] |
5,670 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the truck's model year used to ship the ship ID 1245? | SELECT T1.model_year FROM truck AS T1 INNER JOIN shipment AS T2 ON T1.truck_id = T2.truck_id WHERE T2.ship_id = '1245' | [
"shipment.ship_id",
"shipment.truck_id",
"truck.model_year",
"truck.truck_id"
] | |
5,671 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Where does the driver of ship ID 1127 live? | SELECT T2.address FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T1.ship_id = '1127' | live refers to address | [
"driver.address",
"driver.driver_id",
"shipment.driver_id",
"shipment.ship_id"
] |
5,672 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Give the annual revenue of the customer of ship ID 1047. | SELECT T2.annual_revenue FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T1.ship_id = '1047' | [
"customer.annual_revenue",
"customer.cust_id",
"shipment.cust_id",
"shipment.ship_id"
] | |
5,673 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the weight of the shipment delivered by Andrea Simons on March 7, 2016? | SELECT T1.weight FROM shipment AS T1 INNER JOIN driver AS T2 ON T1.driver_id = T2.driver_id WHERE T2.first_name = 'Andrea' AND T2.last_name = 'Simons' AND T1.ship_date = '2016-03-07' | on March 7, 2016 refers to ship_date = '2016-03-07' | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.ship_date",
"shipment.weight"
] |
5,674 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Provide the destination city of the shipment shipped by January 16, 2017. | SELECT T2.city_name FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id WHERE T1.ship_date = '2017-01-16' | January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name | [
"city.city_id",
"city.city_name",
"shipment.city_id",
"shipment.ship_date"
] |
5,675 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | How many shipments were delivered to a customer from New York? | SELECT COUNT(*) FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T2.state = 'NY' | "New York" refers to state = 'NY' | [
"customer.cust_id",
"customer.state",
"shipment.cust_id"
] |
5,676 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the name of the customer of ship ID 1147? | SELECT T2.cust_name FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T1.ship_id = '1147' | name of customer refers to cust_name | [
"customer.cust_id",
"customer.cust_name",
"shipment.cust_id",
"shipment.ship_id"
] |
5,677 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | List the ship ID of shipments shipped to the most populated city. | SELECT T1.ship_id FROM shipment AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.city_id ORDER BY T2.population DESC LIMIT 1 | most populated city refers to Max(population) | [
"city.city_id",
"city.population",
"shipment.city_id",
"shipment.ship_id"
] |
5,678 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | List the driver's name of the shipment shipped on February 22, 2016. | 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.ship_date = '2016-02-22' | on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.ship_date"
] |
5,679 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | List the weight of the customer's shipment with annual revenue of 39448581. | SELECT T1.weight FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T2.annual_revenue = 39448581 | [
"customer.annual_revenue",
"customer.cust_id",
"shipment.cust_id",
"shipment.weight"
] | |
5,680 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | What is the customer's address for the shipment with ship ID 1117? | SELECT T2.address FROM shipment AS T1 INNER JOIN customer AS T2 ON T1.cust_id = T2.cust_id WHERE T1.ship_id = '1117' | [
"customer.address",
"customer.cust_id",
"shipment.cust_id",
"shipment.ship_id"
] | |
5,681 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Among the shipments to a customer from Texas, what percentage of the shipments shipped in 2017? | 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' | "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 | [
"customer.cust_id",
"customer.state",
"shipment.cust_id",
"shipment.ship_date"
] |
5,682 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | Calculate the difference between the number of shipments shipped by the truck with the model year 2005 and model year 2006. | 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 | "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)) | [
"shipment.truck_id",
"truck.model_year",
"truck.truck_id"
] |
5,683 | shipping | CREATE TABLE city
(
city_id INTEGER
primary key,
city_name TEXT,
state TEXT,
population INTEGER,
area REAL
);
CREATE TABLE customer
(
cust_id INTEGER
primary key,
cust_name TEXT,
annual_revenue INTEGER,
cust_type TEXT,
addr... | List the driver's name of the shipment with a weight greater than 95% of the average weight of all shipments. | 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 ) | weight greater than 95% of average weight refers to weight > Multiply (AVG(weight), 0.95); driver name refers to first_name, last_name | [
"driver.driver_id",
"driver.first_name",
"driver.last_name",
"shipment.driver_id",
"shipment.weight"
] |
5,684 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Name the longest Catalan language Wikipedia page title and state the number of different words in this page. | SELECT title, words FROM pages WHERE title = ( SELECT MAX(LENGTH(title)) FROM pages ) | longest title refers to max(length(title)) | [
"pages.title",
"pages.words"
] |
5,685 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | List all the Catalan language wikipedia page title with less than 10 number of different words in these pages. | SELECT title FROM pages WHERE words < 10 | less than 10 number of different words refers to words < 10 | [
"pages.title",
"pages.words"
] |
5,686 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | List the page number for Catalan language wikipedia pages containing the word 'Art' in the page title. | SELECT page FROM pages WHERE title LIKE 'Art%' OR title LIKE '%Art%' OR title LIKE '%Art' | containing the word 'Art' refers to title LIKE '% Art %' | [
"pages.page",
"pages.title"
] |
5,687 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the title of Catalan language wikipedia page with revision page id '16203226'? | SELECT title FROM pages WHERE revision = 16203226 | revision page id '16203226' refers to revision = 16203226 | [
"pages.revision",
"pages.title"
] |
5,688 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | List the titles for all Catalan language wikipedia page from revision page id 106600 to 106700. | SELECT title FROM pages WHERE revision BETWEEN 106600 AND 106700 | from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700 | [
"pages.revision",
"pages.title"
] |
5,689 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | How many Catalan language wikipedia pages have between 1000 to 2000 number of different words? | SELECT COUNT(pid) FROM pages WHERE words BETWEEN 1000 AND 2000 | between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000 | [
"pages.pid",
"pages.words"
] |
5,690 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | List the page id of wikipedia about Catalan language which have the appearance of the word 'decimal'? | SELECT T2.pid FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'decimal' | have the appearance of 'decimal' refers to word = 'decimal' | [
"pages_words.pid",
"pages_words.wid",
"words.wid",
"words.word"
] |
5,691 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Which word has the most occurrences within the same page of wikipedia about Catalan language? | SELECT T1.word FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T2.occurrences = ( SELECT MAX(occurrences) FROM pages_words ) | most occurrences refers to max(occurrences) | [
"pages_words.occurrences",
"pages_words.wid",
"words.wid",
"words.word"
] |
5,692 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | List all the first words of the biwords pair where the second word is 'antic'. | SELECT T1.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st WHERE T2.w2nd = ( SELECT wid FROM words WHERE word = 'antic' ) | first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic' | [
"biwords.w1st",
"biwords.w2nd",
"words.wid",
"words.word"
] |
5,693 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Show all the title of pages and number of occurences for each page where the word 'quipu' appears. | SELECT T1.title, T2.occurrences FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid INNER JOIN words AS T3 ON T2.wid = T3.wid WHERE T3.word = 'quipu' | word 'quipu' appears refers to word = 'quipu' | [
"pages.pid",
"pages.title",
"pages_words.occurrences",
"pages_words.pid",
"pages_words.wid",
"words.wid",
"words.word"
] |
5,694 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | Calculate the average number of the word occurrences in which ‘system’ appeared as the first word in the pair. | SELECT AVG(T2.occurrences) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st WHERE T2.w1st = ( SELECT wid FROM words WHERE word = 'sistema' ) | average word occurrences = divide(sum(occurrences), count(occurrences)); ‘system’ appeared as the first word refers to w1st = 'system' | [
"biwords.occurrences",
"biwords.w1st",
"words.wid",
"words.word"
] |
5,695 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the total pages of Wikipedia in Catalan language? | SELECT pages FROM langs WHERE lang = 'ca' | total pages refers to sum(pages); Catalan language refers to lang = 'ca' | [
"langs.lang",
"langs.pages"
] |
5,696 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | In the Catalan language, which biwords pair appeared the most in this language/page? | SELECT w1st, w2nd FROM biwords WHERE occurrences = ( SELECT MAX(occurrences) FROM biwords ) | biwords pair refers to w1st.word w2nd.word; appeared the most refers to max(occurrences) | [
"biwords.occurrences",
"biwords.w1st",
"biwords.w2nd"
] |
5,697 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the word id of the catalan language that was repeated no more than 10 times in the said language? | SELECT wid FROM langs_words WHERE occurrences <= 10 | word id refers to wid; repeated no more than 10 times refers to occurrences < = 10 | [
"langs_words.occurrences",
"langs_words.wid"
] |
5,698 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the title of the Catalan language Wikipedia page that has the highest number of different words? | SELECT title FROM pages WHERE words = ( SELECT MAX(words) FROM pages ) | highest number of different words refers to max(words) | [
"pages.title",
"pages.words"
] |
5,699 | language_corpus | CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,
lang TEXT UNIQUE,
locale TEXT UNIQUE,
pages INTEGER DEFAULT 0, -- total pages in this language
words INTEGER DEFAULT 0);
CREATE TABLE sqlite_... | What is the wikipedia page id of Arqueozoologia? | SELECT page FROM pages WHERE title = 'Arqueozoologia' | page id refers to pid; Arqueozoologia refers to title = 'Arqueozoologia' | [
"pages.page",
"pages.title"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.