messages
list |
---|
[
{
"content": "Show all the Store_Name of drama workshop groups.",
"role": "user"
},
{
"content": "SELECT Store_Name FROM Drama_Workshop_Groups",
"role": "assistant"
}
]
|
[
{
"content": "What are the store names of drama workshop groups?",
"role": "user"
},
{
"content": "SELECT Store_Name FROM Drama_Workshop_Groups",
"role": "assistant"
}
]
|
[
{
"content": "Show the minimum, average, maximum order quantity of all invoices.",
"role": "user"
},
{
"content": "SELECT min(Order_Quantity) , avg(Order_Quantity) , max(Order_Quantity) FROM INVOICES",
"role": "assistant"
}
]
|
[
{
"content": "What are the minimum, average, and maximum quantities ordered? Check all the invoices.",
"role": "user"
},
{
"content": "SELECT min(Order_Quantity) , avg(Order_Quantity) , max(Order_Quantity) FROM INVOICES",
"role": "assistant"
}
]
|
[
{
"content": "What are the distinct payment method codes in all the invoices?",
"role": "user"
},
{
"content": "SELECT DISTINCT payment_method_code FROM INVOICES",
"role": "assistant"
}
]
|
[
{
"content": "Show me the distinct payment method codes from the invoice record.",
"role": "user"
},
{
"content": "SELECT DISTINCT payment_method_code FROM INVOICES",
"role": "assistant"
}
]
|
[
{
"content": "What is the description of the marketing region China?",
"role": "user"
},
{
"content": "SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = \"China\"",
"role": "assistant"
}
]
|
[
{
"content": "Find the marketing region description of China?",
"role": "user"
},
{
"content": "SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = \"China\"",
"role": "assistant"
}
]
|
[
{
"content": "Show all the distinct product names with price higher than the average.",
"role": "user"
},
{
"content": "SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT avg(Product_Price) FROM PRODUCTS)",
"role": "assistant"
}
]
|
[
{
"content": "What are the distinct names of the products that cost more than the average?",
"role": "user"
},
{
"content": "SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT avg(Product_Price) FROM PRODUCTS)",
"role": "assistant"
}
]
|
[
{
"content": "What is the name of the most expensive product?",
"role": "user"
},
{
"content": "SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1",
"role": "assistant"
}
]
|
[
{
"content": "Tell me the name of the most pricy product.",
"role": "user"
},
{
"content": "SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1",
"role": "assistant"
}
]
|
[
{
"content": "List all product names in ascending order of price.",
"role": "user"
},
{
"content": "SELECT Product_Name FROM Products ORDER BY Product_Price ASC",
"role": "assistant"
}
]
|
[
{
"content": "Sort the names of products in ascending order of their price.",
"role": "user"
},
{
"content": "SELECT Product_Name FROM Products ORDER BY Product_Price ASC",
"role": "assistant"
}
]
|
[
{
"content": "What is the phone number of the performer Ashley?",
"role": "user"
},
{
"content": "SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = \"Ashley\"",
"role": "assistant"
}
]
|
[
{
"content": "Find the phone number of performer \"Ashley\".",
"role": "user"
},
{
"content": "SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = \"Ashley\"",
"role": "assistant"
}
]
|
[
{
"content": "Show all payment method codes and the number of orders for each code.",
"role": "user"
},
{
"content": "SELECT payment_method_code , count(*) FROM INVOICES GROUP BY payment_method_code",
"role": "assistant"
}
]
|
[
{
"content": "List the distinct payment method codes with the number of orders made",
"role": "user"
},
{
"content": "SELECT payment_method_code , count(*) FROM INVOICES GROUP BY payment_method_code",
"role": "assistant"
}
]
|
[
{
"content": "What is the payment method code used by the most orders?",
"role": "user"
},
{
"content": "SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1",
"role": "assistant"
}
]
|
[
{
"content": "Find the payment method that is used the most often in all the invoices. Give me its code.",
"role": "user"
},
{
"content": "SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1",
"role": "assistant"
}
]
|
[
{
"content": "Which city is the address of the store named \"FJA Filming\" located in?",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "Find the city the store named \"FJA Filming\" is in.",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "What are the states or counties of the address of the stores with marketing region code \"CA\"?",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "Find the states or counties where the stores with marketing region code \"CA\" are located.",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "What is the name of the marketing region that the store Rob Dinning belongs to?",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "Return the name of the marketing region the store Rob Dinning is located in.",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "What are the descriptions of the service types with product price above 100?",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "Give me the descriptions of the service types that cost more than 100.",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "What is the description, code and the corresponding count of each service type?",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "List the description, code and the number of services for each service type.",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "What is the description and code of the type of service that is performed the most often?",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "Find the description and code of the service type that is performed the most times.",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "What are the phones and emails of workshop groups in which services are performed?",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "Give me all the phone numbers and email addresses of the workshop groups where services are performed.",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "What are the names of workshop groups in which services with product name \"film\" are performed?",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "Find the names of the workshop groups where services with product name \"film\" are performed.",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "What are the different product names? What is the average product price for each of them?",
"role": "user"
},
{
"content": "SELECT Product_Name , avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name",
"role": "assistant"
}
]
|
[
{
"content": "For each distinct product name, show its average product price.",
"role": "user"
},
{
"content": "SELECT Product_Name , avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name",
"role": "assistant"
}
]
|
[
{
"content": "What are the product names with average product price smaller than 1000000?",
"role": "user"
},
{
"content": "SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price) < 1000000",
"role": "assistant"
}
]
|
[
{
"content": "Find the product names whose average product price is below 1000000.",
"role": "user"
},
{
"content": "SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price) < 1000000",
"role": "assistant"
}
]
|
[
{
"content": "What are the total order quantities of photo products?",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "Compute the total order quantities of the product \"photo\".",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "What are the order details of the products with price higher than 2000?",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "Find the order detail for the products with price above 2000.",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "What are the actual delivery dates of orders with quantity 1?",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "List the actual delivery date for all the orders with quantity 1",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "What are the order dates of orders with price higher than 1000?",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "Find the order dates of the orders with price above 1000.",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "How many distinct currency codes are there for all drama workshop groups?",
"role": "user"
},
{
"content": "SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups",
"role": "assistant"
}
]
|
[
{
"content": "Find the number of distinct currency codes used in drama workshop groups.",
"role": "user"
},
{
"content": "SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups",
"role": "assistant"
}
]
|
[
{
"content": "What are the names of the drama workshop groups with address in Feliciaberg city?",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "Return the the names of the drama workshop groups that are located in Feliciaberg city.",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "What are the email addresses of the drama workshop groups with address in Alaska state?",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "List the email addresses of the drama workshop groups located in Alaska state.",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "Show all cities along with the number of drama workshop groups in each city.",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "How many drama workshop groups are there in each city? Return both the city and the count.",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "What is the marketing region code that has the most drama workshop groups?",
"role": "user"
},
{
"content": "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1",
"role": "assistant"
}
]
|
[
{
"content": "Which marketing region has the most drama workshop groups? Give me the region code.",
"role": "user"
},
{
"content": "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1",
"role": "assistant"
}
]
|
[
{
"content": "Show all cities where at least one customer lives in but no performer lives in.",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "Which cities have at least one customer but no performer?",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "What is the most frequent status of bookings?",
"role": "user"
},
{
"content": "SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1",
"role": "assistant"
}
]
|
[
{
"content": "Which status code is the most common of all the bookings?",
"role": "user"
},
{
"content": "SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1",
"role": "assistant"
}
]
|
[
{
"content": "What are the names of the workshop groups that have bookings with status code \"stop\"?",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "Which workshop groups have bookings with status code \"stop\"? Give me the names.",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "Show the names of all the clients with no booking.",
"role": "user"
},
{
"content": "SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID = T2.Client_ID",
"role": "assistant"
}
]
|
[
{
"content": "What are the names of the clients who do not have any booking?",
"role": "user"
},
{
"content": "SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID = T2.Client_ID",
"role": "assistant"
}
]
|
[
{
"content": "What is the average quantities ordered with payment method code \"MasterCard\" on invoices?",
"role": "user"
},
{
"content": "SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code = \"MasterCard\"",
"role": "assistant"
}
]
|
[
{
"content": "Check the invoices record and compute the average quantities ordered with the payment method \"MasterCard\".",
"role": "user"
},
{
"content": "SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code = \"MasterCard\"",
"role": "assistant"
}
]
|
[
{
"content": "What is the product ID of the most frequently ordered item on invoices?",
"role": "user"
},
{
"content": "SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
]
|
[
{
"content": "Find the id of the product ordered the most often on invoices.",
"role": "user"
},
{
"content": "SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
]
|
[
{
"content": "What is the description of the service type which offers both the photo product and the film product?",
"role": "user"
},
{
"content": "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_Name = 'film'",
"role": "assistant"
}
]
|
[
{
"content": "Give me the description of the service type that offers not only the photo product but also the film product.",
"role": "user"
},
{
"content": "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_Name = 'film'",
"role": "assistant"
}
]
|
[
{
"content": "How many bands are there?",
"role": "user"
},
{
"content": "SELECT count(*) FROM Band",
"role": "assistant"
}
]
|
[
{
"content": "Find the number of bands.",
"role": "user"
},
{
"content": "SELECT count(*) FROM Band",
"role": "assistant"
}
]
|
[
{
"content": "What are all the labels?",
"role": "user"
},
{
"content": "SELECT DISTINCT label FROM Albums",
"role": "assistant"
}
]
|
[
{
"content": "What are the different album labels listed?",
"role": "user"
},
{
"content": "SELECT DISTINCT label FROM Albums",
"role": "assistant"
}
]
|
[
{
"content": "Find all the albums in 2012.",
"role": "user"
},
{
"content": "SELECT * FROM Albums WHERE YEAR = 2012",
"role": "assistant"
}
]
|
[
{
"content": "return all columns of the albums created in the year of 2012.",
"role": "user"
},
{
"content": "SELECT * FROM Albums WHERE YEAR = 2012",
"role": "assistant"
}
]
|
[
{
"content": "Find all the stage positions of the musicians with first name \"Solveig\"",
"role": "user"
},
{
"content": "SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = \"Solveig\"",
"role": "assistant"
}
]
|
[
{
"content": "What are the different stage positions for all musicians whose first name is \"Solveig\"?",
"role": "user"
},
{
"content": "SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = \"Solveig\"",
"role": "assistant"
}
]
|
[
{
"content": "How many songs are there?",
"role": "user"
},
{
"content": "SELECT count(*) FROM Songs",
"role": "assistant"
}
]
|
[
{
"content": "Count the number of songs.",
"role": "user"
},
{
"content": "SELECT count(*) FROM Songs",
"role": "assistant"
}
]
|
[
{
"content": "Find all the songs performed by artist with last name \"Heilo\"",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "What are the names of the songs by the artist whose last name is \"Heilo\"?",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "Hom many musicians performed in the song \"Flash\"?",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "How many musicians play in the song \"Flash\"?",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "Find all the songs produced by artists with first name \"Marianne\".",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "What are the names of all songs produced by the artist with the first name \"Marianne\"?",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "Who performed the song named \"Badlands\"? Show the first name and the last name.",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "What are the first and last names of the artist who perfomed the song \"Badlands\"?",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "Who is performing in the back stage position for the song \"Badlands\"? Show the first name and the last name.",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "What are the first and last names of the performer who was in the back stage position for the song \"Badlands\"?",
"role": "user"
},
{
"content": "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\"",
"role": "assistant"
}
]
|
[
{
"content": "How many unique labels are there for albums?",
"role": "user"
},
{
"content": "SELECT count(DISTINCT label) FROM albums",
"role": "assistant"
}
]
|
[
{
"content": "What are the unique labels for the albums?",
"role": "user"
},
{
"content": "SELECT count(DISTINCT label) FROM albums",
"role": "assistant"
}
]
|
[
{
"content": "What is the label that has the most albums?",
"role": "user"
},
{
"content": "SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1",
"role": "assistant"
}
]
|
[
{
"content": "What is the label with the most albums?",
"role": "user"
},
{
"content": "SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1",
"role": "assistant"
}
]
|
[
{
"content": "What is the last name of the musician that have produced the most number of songs?",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "What is the last name of the musician who was in the most songs?",
"role": "user"
},
{
"content": "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",
"role": "assistant"
}
]
|
[
{
"content": "What is the last name of the musician that has been at the back position the most?",
"role": "user"
},
{
"content": "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = \"back\" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1",
"role": "assistant"
}
]
|
[
{
"content": "What is the last name of the musicians who has played back position the most?",
"role": "user"
},
{
"content": "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = \"back\" GROUP BY lastname ORDER BY count(*) DESC LIMIT 1",
"role": "assistant"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.