question string | answer string | context string | dialect string | spider_hardness string | extended_hardness string | classification_status string | syntax_status string | ddl_syntax_status string | schema_status string | syntax_errors list | ddl_syntax_errors list | schema_errors list | classification_errors list | status_history list | correction_status string | component1 int64 | component2 int64 | others int64 | validation_source dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
What are the names of shops in ascending order of open year? | SELECT Shop_Name FROM shop ORDER BY Open_Year | CREATE TABLE shop (Shop_Name VARCHAR(255), Open_Year VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2901
} |
What is the average quantity of stocks? | SELECT AVG(Quantity) FROM stock | CREATE TABLE stock (Quantity INTEGER, id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2902
} |
What are the names and location of the shops in ascending alphabetical order of name. | SELECT Shop_Name, LOCATION FROM shop ORDER BY Shop_Name | CREATE TABLE shop (Shop_Name VARCHAR(255), LOCATION VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 2903
} |
How many different software platforms are there for devices? | SELECT COUNT(DISTINCT Software_Platform) FROM device | CREATE TABLE device (Software_Platform VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2904
} |
List the open date of open year of the shop named "Apple". | SELECT Open_Date, Open_Year FROM shop WHERE Shop_Name = 'Apple' | CREATE TABLE shop (Open_Date VARCHAR(255), Open_Year VARCHAR(255), Shop_Name VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 2905
} |
List the name of the shop with the latest open year. | SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1 | CREATE TABLE shop (Shop_Name VARCHAR(255), Open_Year VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2906
} |
Show names of shops and the carriers of devices they have in stock. | SELECT T3.Shop_Name, T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID | CREATE TABLE shop (Shop_Name VARCHAR(255), Shop_ID VARCHAR(255)); CREATE TABLE stock (Device_ID VARCHAR(255), Shop_ID VARCHAR(255)); CREATE TABLE device (Carrier VARCHAR(255), Device_ID VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 2907
} |
Show names of shops that have more than one kind of device in stock. | SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*) > 1 | CREATE TABLE shop (Shop_Name VARCHAR(255), Shop_ID VARCHAR(255)); CREATE TABLE stock (Shop_ID VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2908
} |
Show the name of the shop that has the most kind of devices in stock. | SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE shop (Shop_Name VARCHAR(255), Shop_ID VARCHAR(255)); CREATE TABLE stock (Shop_ID VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 4 | 0 | 0 | {
"split": "train",
"row_index": 2909
} |
Show the name of the shop that have the largest quantity of devices in stock. | SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1 | CREATE TABLE stock (Shop_ID VARCHAR(255), quantity INTEGER); CREATE TABLE shop (Shop_Name VARCHAR(255), Shop_ID VARCHAR(255)) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 4 | 0 | 0 | {
"split": "train",
"row_index": 2910
} |
Please show different software platforms and the corresponding number of devices using each. | SELECT Software_Platform, COUNT(*) FROM device GROUP BY Software_Platform | CREATE TABLE device (Software_Platform VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 2911
} |
Please show the software platforms of devices in descending order of the count. | SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC | CREATE TABLE device (Software_Platform VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2912
} |
List the software platform shared by the greatest number of devices. | SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE device (Software_Platform VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 2913
} |
List the names of shops that have no devices in stock. | SELECT Shop_Name FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM stock) | CREATE TABLE shop (Shop_Name VARCHAR(255), Shop_ID VARCHAR(255)); CREATE TABLE stock (Shop_Name VARCHAR(255), Shop_ID VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 2914
} |
Show the locations shared by shops with open year later than 2012 and shops with open year before 2008. | SELECT LOCATION FROM shop WHERE Open_Year > 2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year < 2008 | CREATE TABLE shop (LOCATION VARCHAR(255), Open_Year INTEGER) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 2915
} |
List the carriers of devices that have no devices in stock. | SELECT Carrier FROM device WHERE NOT Device_ID IN (SELECT Device_ID FROM stock) | CREATE TABLE stock (Carrier VARCHAR(255), Device_ID VARCHAR(255)); CREATE TABLE device (Carrier VARCHAR(255), Device_ID VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 2916
} |
Show the carriers of devices in stock at more than one shop. | SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*) > 1 | CREATE TABLE stock (Device_ID VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT); CREATE TABLE device (Carrier VARCHAR(255), Device_ID VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2917
} |
How many bookings do we have? | SELECT COUNT(*) FROM BOOKINGS | CREATE TABLE BOOKINGS (Id VARCHAR(255), booking_date VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2918
} |
List the order dates of all the bookings. | SELECT Order_Date FROM BOOKINGS | CREATE TABLE BOOKINGS (Order_Date VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2919
} |
Show all the planned delivery dates and actual delivery dates of bookings. | SELECT Planned_Delivery_Date, Actual_Delivery_Date FROM BOOKINGS | CREATE TABLE BOOKINGS (Planned_Delivery_Date VARCHAR(255), Actual_Delivery_Date VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 1 | {
"split": "train",
"row_index": 2920
} |
How many customers do we have? | SELECT COUNT(*) FROM CUSTOMERS | CREATE TABLE CUSTOMERS (Id VARCHAR(255), Customer_Name VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2921
} |
What are the phone and email for customer Harold? | SELECT Customer_Phone, Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name = 'Harold' | CREATE TABLE CUSTOMERS (Customer_Phone VARCHAR(255), Customer_Email_Address VARCHAR(255), Customer_Name VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 2922
} |
Show all the Store_Name of drama workshop groups. | SELECT Store_Name FROM Drama_Workshop_Groups | CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2923
} |
Show the minimum, average, maximum order quantity of all invoices. | SELECT MIN(Order_Quantity), AVG(Order_Quantity), MAX(Order_Quantity) FROM INVOICES | CREATE TABLE INVOICES (Order_Quantity INTEGER, id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 2 | {
"split": "train",
"row_index": 2924
} |
What are the distinct payment method codes in all the invoices? | SELECT DISTINCT payment_method_code FROM INVOICES | CREATE TABLE INVOICES (payment_method_code VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2925
} |
What is the description of the marketing region China? | SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = 'China' | CREATE TABLE Marketing_Regions (Marketing_Region_Descriptrion VARCHAR(255), Marketing_Region_Name VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2926
} |
Show all the distinct product names with price higher than the average. | SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT AVG(Product_Price) FROM PRODUCTS) | CREATE TABLE PRODUCTS (Product_Name VARCHAR(255), Product_Price INTEGER) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 2927
} |
What is the name of the most expensive product? | SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1 | CREATE TABLE PRODUCTS (Product_Name VARCHAR(255), Product_Price VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2928
} |
What is the phone number of the performer Ashley? | SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = 'Ashley' | CREATE TABLE PERFORMERS (Customer_Phone VARCHAR(255), Customer_Name VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2929
} |
Show all payment method codes and the number of orders for each code. | SELECT payment_method_code, COUNT(*) FROM INVOICES GROUP BY payment_method_code | CREATE TABLE INVOICES (payment_method_code VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 2930
} |
What is the payment method code used by the most orders? | SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE INVOICES (payment_method_code VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 2931
} |
Which city is the address of the store named "FJA Filming" located in? | SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = 'FJA Filming' | CREATE TABLE Addresses (City_Town VARCHAR(255), Address_ID VARCHAR(255)); CREATE TABLE Stores (Address_ID VARCHAR(255), Store_Name VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2932
} |
What are the states or counties of the address of the stores with marketing region code "CA"? | SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = 'CA' | CREATE TABLE Addresses (State_County VARCHAR(255), Address_ID VARCHAR(255)); CREATE TABLE Stores (Address_ID VARCHAR(255), Marketing_Region_Code VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2933
} |
What is the name of the marketing region that the store Rob Dinning belongs to? | SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T2.Store_Name = 'Rob Dinning' | CREATE TABLE Marketing_Regions (Marketing_Region_Name VARCHAR(255), Marketing_Region_Code VARCHAR(255)); CREATE TABLE Stores (Marketing_Region_Code VARCHAR(255), Store_Name VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2934
} |
What are the descriptions of the service types with product price above 100? | SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100 | CREATE TABLE Services (Service_Type_Code VARCHAR(255), Product_Price INTEGER); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR(255), Service_Type_Code VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2935
} |
What is the description, code and the corresponding count of each service type? | SELECT T1.Service_Type_Description, T2.Service_Type_Code, COUNT(*) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T2.Service_Type_Code | CREATE TABLE Services (Service_Type_Code VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR(255), Service_Type_Code VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 2936
} |
What is the description and code of the type of service that is performed the most often? | SELECT T1.Service_Type_Description, T1.Service_Type_Code FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code GROUP BY T1.Service_Type_Code ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE Services (Service_Type_Code VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR(255), Service_Type_Code VARCHAR(255)) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 4 | 0 | 1 | {
"split": "train",
"row_index": 2937
} |
What are the phones and emails of workshop groups in which services are performed? | SELECT T1.Store_Phone, T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID | CREATE TABLE Services (Workshop_Group_ID VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT); CREATE TABLE Drama_Workshop_Groups (Store_Phone VARCHAR(255), Store_Email_Address VARCHAR(255), Workshop_Group_ID VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 2938
} |
What are the names of workshop groups in which services with product name "film" are performed? | SELECT T1.Store_Phone, T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = 'film' | CREATE TABLE Services (Workshop_Group_ID VARCHAR(255), Product_Name VARCHAR(255)); CREATE TABLE Drama_Workshop_Groups (Store_Phone VARCHAR(255), Store_Email_Address VARCHAR(255), Workshop_Group_ID VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 2939
} |
What are the different product names? What is the average product price for each of them? | SELECT Product_Name, AVG(Product_Price) FROM PRODUCTS GROUP BY Product_Name | CREATE TABLE PRODUCTS (Product_Name VARCHAR(255), Product_Price INTEGER) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 2940
} |
What are the product names with average product price smaller than 1000000? | SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING AVG(Product_Price) < 1000000 | CREATE TABLE PRODUCTS (Product_Name VARCHAR(255), Product_Price INTEGER) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2941
} |
What are the total order quantities of photo products? | SELECT SUM(T1.Order_Quantity) FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_Name = 'photo' | CREATE TABLE ORDER_ITEMS (Order_Quantity INTEGER, Product_ID VARCHAR(255)); CREATE TABLE Products (Product_ID VARCHAR(255), Product_Name VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2942
} |
What are the order details of the products with price higher than 2000? | SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_price > 2000 | CREATE TABLE Products (Product_ID VARCHAR(255), Product_price INTEGER); CREATE TABLE ORDER_ITEMS (Other_Item_Details VARCHAR(255), Product_ID VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2943
} |
What are the actual delivery dates of orders with quantity 1? | SELECT T1.Actual_Delivery_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID WHERE T2.Order_Quantity = 1 | CREATE TABLE Customer_Orders (Actual_Delivery_Date VARCHAR(255), Order_ID VARCHAR(255)); CREATE TABLE ORDER_ITEMS (Order_ID VARCHAR(255), Order_Quantity VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2944
} |
What are the order dates of orders with price higher than 1000? | SELECT T1.Order_Date FROM Customer_Orders AS T1 JOIN ORDER_ITEMS AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_price > 1000 | CREATE TABLE Products (Product_ID VARCHAR(255), Product_price INTEGER); CREATE TABLE ORDER_ITEMS (Order_ID VARCHAR(255), Product_ID VARCHAR(255)); CREATE TABLE Customer_Orders (Order_Date VARCHAR(255), Order_ID VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 2945
} |
How many distinct currency codes are there for all drama workshop groups? | SELECT COUNT(DISTINCT Currency_Code) FROM Drama_Workshop_Groups | CREATE TABLE Drama_Workshop_Groups (Currency_Code VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2946
} |
What are the names of the drama workshop groups with address in Feliciaberg city? | SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = 'Feliciaberg' | CREATE TABLE Addresses (Address_ID VARCHAR(255), City_Town VARCHAR(255)); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR(255), Address_ID VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2947
} |
What are the email addresses of the drama workshop groups with address in Alaska state? | SELECT T2.Store_Email_Address FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.State_County = 'Alaska' | CREATE TABLE Drama_Workshop_Groups (Store_Email_Address VARCHAR(255), Address_ID VARCHAR(255)); CREATE TABLE Addresses (Address_ID VARCHAR(255), State_County VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2948
} |
Show all cities along with the number of drama workshop groups in each city. | SELECT T1.City_Town, COUNT(*) FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID GROUP BY T1.City_Town | CREATE TABLE Addresses (City_Town VARCHAR(255), Address_ID VARCHAR(255)); CREATE TABLE Drama_Workshop_Groups (Address_ID VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 2949
} |
What is the marketing region code that has the most drama workshop groups? | SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE Drama_Workshop_Groups (Marketing_Region_Code VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 2950
} |
Show all cities where at least one customer lives in but no performer lives in. | SELECT T1.City_Town FROM Addresses AS T1 JOIN Customers AS T2 ON T1.Address_ID = T2.Address_ID EXCEPT SELECT T1.City_Town FROM Addresses AS T1 JOIN Performers AS T2 ON T1.Address_ID = T2.Address_ID | CREATE TABLE Customers (Address_ID VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT); CREATE TABLE Addresses (City_Town VARCHAR(255), Address_ID VARCHAR(255)); CREATE TABLE Performers (Address_ID VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 2951
} |
What is the most frequent status of bookings? | SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE BOOKINGS (Status_Code VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 2952
} |
What are the names of the workshop groups that have bookings with status code "stop"? | SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = 'stop' | CREATE TABLE Bookings (Workshop_Group_ID VARCHAR(255), Status_Code VARCHAR(255)); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR(255), Workshop_Group_ID VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2953
} |
What is the average quantities ordered with payment method code "MasterCard" on invoices? | SELECT AVG(Order_Quantity) FROM Invoices WHERE payment_method_code = 'MasterCard' | CREATE TABLE Invoices (Order_Quantity INTEGER, payment_method_code VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2955
} |
What is the product ID of the most frequently ordered item on invoices? | SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE INVOICES (Product_ID VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 2956
} |
What is the description of the service type which offers both the photo product and the film product? | SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product... | CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR(255), Service_Type_Code VARCHAR(255)); CREATE TABLE Services (Service_Type_Code VARCHAR(255), Product_Name VARCHAR(255)) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 1 | 0 | {
"split": "train",
"row_index": 2957
} |
How many bands are there? | SELECT COUNT(*) FROM Band | CREATE TABLE Band (Id VARCHAR(255), Name VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2958
} |
What are all the labels? | SELECT DISTINCT label FROM Albums | CREATE TABLE Albums (label VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2959
} |
How many songs are there? | SELECT COUNT(*) FROM Songs | CREATE TABLE Songs (Id VARCHAR(255), title VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2962
} |
Find all the songs performed by artist with last name "Heilo" | SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.Lastname = 'Heilo' | CREATE TABLE Songs (Title VARCHAR(255), SongId VARCHAR(255)); CREATE TABLE Performance (bandmate VARCHAR(255), SongId VARCHAR(255)); CREATE TABLE Band (id VARCHAR(255), Lastname VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 2963
} |
Hom many musicians performed in the song "Flash"? | SELECT COUNT(*) FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T3.Title = 'Flash' | CREATE TABLE performance (bandmate VARCHAR(255), songid VARCHAR(255)); CREATE TABLE songs (songid VARCHAR(255), Title VARCHAR(255)); CREATE TABLE band (id VARCHAR(255), name VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 2964
} |
Find all the songs produced by artists with first name "Marianne". | SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = 'Marianne' | CREATE TABLE Songs (Title VARCHAR(255), SongId VARCHAR(255)); CREATE TABLE Performance (bandmate VARCHAR(255), SongId VARCHAR(255)); CREATE TABLE Band (id VARCHAR(255), firstname VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 2965
} |
Who performed the song named "Badlands"? Show the first name and the last name. | SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = 'Badlands' | CREATE TABLE Band (firstname VARCHAR(255), lastname VARCHAR(255), id VARCHAR(255)); CREATE TABLE Performance (bandmate VARCHAR(255), SongId VARCHAR(255)); CREATE TABLE Songs (SongId VARCHAR(255), Title VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 1 | {
"split": "train",
"row_index": 2966
} |
Who is performing in the back stage position for the song "Badlands"? Show the first name and the last name. | SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = 'Badlands' AND T1.StagePosition = 'back' | CREATE TABLE Band (firstname VARCHAR(255), lastname VARCHAR(255), id VARCHAR(255)); CREATE TABLE Performance (bandmate VARCHAR(255), SongId VARCHAR(255), StagePosition VARCHAR(255)); CREATE TABLE Songs (SongId VARCHAR(255), Title VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 2 | {
"split": "train",
"row_index": 2967
} |
How many unique labels are there for albums? | SELECT COUNT(DISTINCT label) FROM albums | CREATE TABLE albums (label VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2968
} |
What is the label that has the most albums? | SELECT label FROM albums GROUP BY label ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE albums (label VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 2969
} |
What is the last name of the musician that have produced the most number of songs? | SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE Songs (SongId VARCHAR(255), title VARCHAR(255)); CREATE TABLE Band (lastname VARCHAR(255), id VARCHAR(255)); CREATE TABLE Performance (bandmate VARCHAR(255), SongId VARCHAR(255)) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 5 | 0 | 0 | {
"split": "train",
"row_index": 2970
} |
Find all the songs whose name contains the word "the". | SELECT title FROM songs WHERE title LIKE '% the %' | CREATE TABLE songs (title VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 2972
} |
What are all the instruments used? | SELECT DISTINCT instrument FROM Instruments | CREATE TABLE Instruments (instrument VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2973
} |
What is the most used instrument? | SELECT instrument FROM instruments GROUP BY instrument ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE instruments (instrument VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 2975
} |
How many songs have used the instrument "drums"? | SELECT COUNT(*) FROM instruments WHERE instrument = 'drums' | CREATE TABLE instruments (instrument VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 2976
} |
Which vocal type is the most frequently appearring type? | SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 | CREATE TABLE vocals (TYPE VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 2982
} |
Find all the vocal types. | SELECT DISTINCT TYPE FROM vocals | CREATE TABLE vocals (TYPE VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 2989
} |
Who performed the song named "Le Pop"? | SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = 'Le Pop' | CREATE TABLE Band (firstname VARCHAR(255), lastname VARCHAR(255), id VARCHAR(255)); CREATE TABLE Performance (bandmate VARCHAR(255), SongId VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT); CREATE TABLE Songs (SongId VARCHAR(255), Title VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 1 | {
"split": "train",
"row_index": 2991
} |
Who is performing in the back stage position for the song "Der Kapitan"? Show the first name and last name. | SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = 'Der Kapitan' AND T1.StagePosition = 'back' | CREATE TABLE Band (firstname VARCHAR(255), lastname VARCHAR(255), id VARCHAR(255)); CREATE TABLE Performance (bandmate VARCHAR(255), SongId VARCHAR(255), StagePosition VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT); CREATE TABLE Songs (SongId VARCHAR(255), Title VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 2 | {
"split": "train",
"row_index": 3002
} |
What are the songs in album "A Kiss Before You Go: Live in Hamburg"? | SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE T1.title = 'A Kiss Before You Go: Live in Hamburg' | CREATE TABLE songs (title VARCHAR(255), songid VARCHAR(255)); CREATE TABLE albums (aid VARCHAR(255), title VARCHAR(255)); CREATE TABLE tracklists (albumid VARCHAR(255), songid VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 3 | 0 | 0 | {
"split": "train",
"row_index": 3003
} |
Who is the founder of Sony? | SELECT founder FROM manufacturers WHERE name = 'Sony' | CREATE TABLE manufacturers (founder VARCHAR(255), name VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 3006
} |
Where is the headquarter of the company founded by James? | SELECT headquarter FROM manufacturers WHERE founder = 'James' | CREATE TABLE manufacturers (headquarter VARCHAR(255), founder VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 3007
} |
Find all manufacturers' names and their headquarters, sorted by the ones with highest revenue first. | SELECT name, headquarter FROM manufacturers ORDER BY revenue DESC | CREATE TABLE manufacturers (name VARCHAR(255), headquarter VARCHAR(255), revenue VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 3008
} |
What are the average, maximum and total revenues of all companies? | SELECT AVG(revenue), MAX(revenue), SUM(revenue) FROM manufacturers | CREATE TABLE manufacturers (revenue INTEGER, name VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 2 | {
"split": "train",
"row_index": 3009
} |
How many companies were created by Andy? | SELECT COUNT(*) FROM manufacturers WHERE founder = 'Andy' | CREATE TABLE manufacturers (founder VARCHAR(255), name VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 3010
} |
Find the total revenue created by the companies whose headquarter is located at Austin. | SELECT SUM(revenue) FROM manufacturers WHERE headquarter = 'Austin' | CREATE TABLE manufacturers (revenue INTEGER, headquarter VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 3011
} |
What are the different cities listed? | SELECT DISTINCT headquarter FROM manufacturers | CREATE TABLE manufacturers (headquarter VARCHAR(255), name VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 3012
} |
Find the number of manufactures that are based in Tokyo or Beijing. | SELECT COUNT(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing' | CREATE TABLE manufacturers (headquarter VARCHAR(255), name VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 3013
} |
Find the founder of the company whose name begins with the letter 'S'. | SELECT founder FROM manufacturers WHERE name LIKE 'S%' | CREATE TABLE manufacturers (founder VARCHAR(255), name VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 0 | {
"split": "train",
"row_index": 3014
} |
Find the name of companies whose revenue is between 100 and 150. | SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150 | CREATE TABLE manufacturers (name VARCHAR(255), revenue INTEGER, id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 0 | {
"split": "train",
"row_index": 3015
} |
What is the total revenue of all companies whose main office is at Tokyo or Taiwan? | SELECT SUM(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan' | CREATE TABLE manufacturers (revenue INTEGER, Headquarter VARCHAR(255), id INTEGER PRIMARY KEY AUTO_INCREMENT) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 3016
} |
Find the name of product that is produced by both companies Creative Labs and Sony. | SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony' | CREATE TABLE manufacturers (code VARCHAR(255), name VARCHAR(255)); CREATE TABLE products (name VARCHAR(255), Manufacturer VARCHAR(255)) | generic | extra | extra | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 1 | 0 | {
"split": "train",
"row_index": 3017
} |
Find the name, headquarter and founder of the manufacturer that has the highest revenue. | SELECT name, headquarter, founder FROM manufacturers ORDER BY revenue DESC LIMIT 1 | CREATE TABLE manufacturers (name VARCHAR(255), headquarter VARCHAR(255), founder VARCHAR(255), revenue VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 3018
} |
Find the name, headquarter and revenue of all manufacturers sorted by their revenue in the descending order. | SELECT name, headquarter, revenue FROM manufacturers ORDER BY revenue DESC | CREATE TABLE manufacturers (name VARCHAR(255), headquarter VARCHAR(255), revenue VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 3019
} |
Find the name of companies whose revenue is greater than the average revenue of all companies. | SELECT name FROM manufacturers WHERE revenue > (SELECT AVG(revenue) FROM manufacturers) | CREATE TABLE manufacturers (name VARCHAR(255), revenue INTEGER) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 3020
} |
Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin. | SELECT name FROM manufacturers WHERE revenue < (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin') | CREATE TABLE manufacturers (name VARCHAR(255), revenue INTEGER, headquarter VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 3021
} |
Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin. | SELECT SUM(revenue) FROM manufacturers WHERE revenue > (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin') | CREATE TABLE manufacturers (revenue INTEGER, headquarter VARCHAR(255)) | generic | hard | hard | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 1 | 0 | {
"split": "train",
"row_index": 3022
} |
Find the total revenue of companies of each founder. | SELECT SUM(revenue), founder FROM manufacturers GROUP BY founder | CREATE TABLE manufacturers (founder VARCHAR(255), revenue INTEGER) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 3023
} |
Find the name and revenue of the company that earns the highest revenue in each city. | SELECT name, MAX(revenue), Headquarter FROM manufacturers GROUP BY Headquarter | CREATE TABLE manufacturers (name VARCHAR(255), Headquarter VARCHAR(255), revenue INTEGER) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 3024
} |
Find the total revenue for each manufacturer. | SELECT SUM(revenue), name FROM manufacturers GROUP BY name | CREATE TABLE manufacturers (name VARCHAR(255), revenue INTEGER) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 1 | 0 | 1 | {
"split": "train",
"row_index": 3025
} |
Find the average prices of all products from each manufacture, and list each company's name. | SELECT AVG(T1.price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name | CREATE TABLE products (price INTEGER, Manufacturer VARCHAR(255)); CREATE TABLE manufacturers (name VARCHAR(255), code VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 3026
} |
Find the number of different products that are produced by companies at different headquarter cities. | SELECT COUNT(DISTINCT T1.name), T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter | CREATE TABLE manufacturers (Headquarter VARCHAR(255), code VARCHAR(255)); CREATE TABLE products (name VARCHAR(255), Manufacturer VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 3027
} |
Find the number of products for each manufacturer, showing the name of each company. | SELECT COUNT(*), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name | CREATE TABLE products (Manufacturer VARCHAR(255)); CREATE TABLE manufacturers (name VARCHAR(255), code VARCHAR(255)) | generic | medium | medium | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 2 | 0 | 1 | {
"split": "train",
"row_index": 3030
} |
Select the names of all the products in the store. | SELECT Name FROM Products | CREATE TABLE Products (Name VARCHAR(255)) | generic | easy | easy | classified | valid | valid | valid | [] | [] | [] | [] | [
"validated",
"extended",
"classified"
] | null | 0 | 0 | 0 | {
"split": "train",
"row_index": 3031
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.