NATURAL_LANG
stringlengths
12
244
SQL
stringlengths
18
336
SCHEMA
stringlengths
27
355
input_ids
list
attention_mask
list
labels
list
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)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3388, 8040, 8906, 134, 41, 21752, 834, 23152, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 1942, 1573, 1081, 261, 57, 8, 167, 5022, 58, 1, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1942, 834, 23152, 834, 4978, 21680, 3388, 8040, 8906, 134, 350, 4630, 6880, 272, 476, 1942, 834, 23152, 834, 4978, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, ...
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, Address_ID VARCHAR); CREATE TABLE Stores (Address_ID VARCHAR, Store_Name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 13246, 15, 7, 41, 254, 485, 834, 382, 9197, 584, 4280, 28027, 6, 13246, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 4493, 7, 41, 20773, 9377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 254, 485, 834, 382, 9197, 21680, 13246, 15, 7, 6157, 332, 536, 3, 15355, 3162, 4493, 7, 6157, 332, 357, 9191, 332, 5411, 20773, 9377, 834, 4309, 3274, 332, 4416, 20773, 9377, 834, 4309, 549, 17444, 427, 3...
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, Address_ID VARCHAR); CREATE TABLE Stores (Address_ID VARCHAR, Marketing_Region_Code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 13246, 15, 7, 41, 134, 4748, 834, 10628, 63, 584, 4280, 28027, 6, 13246, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 4493, 7, 41, 20773, 9377,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 134, 4748, 834, 10628, 63, 21680, 13246, 15, 7, 6157, 332, 536, 3, 15355, 3162, 4493, 7, 6157, 332, 357, 9191, 332, 5411, 20773, 9377, 834, 4309, 3274, 332, 4416, 20773, 9377, 834, 4309, 549, 17444, 427, ...
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, Marketing_Region_Code VARCHAR); CREATE TABLE Stores (Marketing_Region_Code VARCHAR, Store_Name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4329, 834, 17748, 2865, 41, 22572, 53, 834, 17748, 23, 106, 834, 23954, 584, 4280, 28027, 6, 4329, 834, 17748, 23, 106, 834, 22737, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 22572, 53, 834, 17748, 23, 106, 834, 23954, 21680, 4329, 834, 17748, 2865, 6157, 332, 536, 3, 15355, 3162, 4493, 7, 6157, 332, 357, 9191, 332, 5411, 22572, 53, 834, 17748, 23, 106, 834, 22737, 3274, 332, ...
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, Product_Price INTEGER); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1799, 41, 15260, 834, 25160, 834, 22737, 584, 4280, 28027, 6, 6246, 834, 345, 4920, 3, 21342, 17966, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 419, 89, 834, 15260, 834, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 15260, 834, 25160, 834, 2962, 11830, 21680, 419, 89, 834, 15260, 834, 25160, 7, 6157, 332, 536, 3, 15355, 3162, 1799, 6157, 332, 357, 9191, 332, 5411, 15260, 834, 25160, 834, 22737, 3274, 332, 4416, 15260, ...
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); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1799, 41, 15260, 834, 25160, 834, 22737, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 419, 89, 834, 15260, 834, 25160, 7, 41, 15260, 834, 25160, 834, 2962, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 15260, 834, 25160, 834, 2962, 11830, 6, 332, 4416, 15260, 834, 25160, 834, 22737, 6, 2847, 17161, 599, 1935, 61, 21680, 419, 89, 834, 15260, 834, 25160, 7, 6157, 332, 536, 3, 15355, 3162, 1799, 6157, 332, ...
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); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1799, 41, 15260, 834, 25160, 834, 22737, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 419, 89, 834, 15260, 834, 25160, 7, 41, 15260, 834, 25160, 834, 2962, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 15260, 834, 25160, 834, 2962, 11830, 6, 332, 5411, 15260, 834, 25160, 834, 22737, 21680, 419, 89, 834, 15260, 834, 25160, 7, 6157, 332, 536, 3, 15355, 3162, 1799, 6157, 332, 357, 9191, 332, 5411, 15260, 834...
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); CREATE TABLE Drama_Workshop_Groups (Store_Phone VARCHAR, Store_Email_Address VARCHAR, Workshop_Group_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1799, 41, 12492, 6921, 834, 27247, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 20052, 834, 12492, 6921, 834, 27247, 7, 41, 28719, 834, 345, 107,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 28719, 834, 345, 107, 782, 6, 332, 5411, 28719, 834, 427, 1963, 834, 20773, 9377, 21680, 20052, 834, 12492, 6921, 834, 27247, 7, 6157, 332, 536, 3, 15355, 3162, 1799, 6157, 332, 357, 9191, 332, 5411, 12492,...
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, Product_Name VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Phone VARCHAR, Store_Email_Address VARCHAR, Workshop_Group_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1799, 41, 12492, 6921, 834, 27247, 834, 4309, 584, 4280, 28027, 6, 6246, 834, 23954, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 20052, 834, 12492, 6921, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 28719, 834, 345, 107, 782, 6, 332, 5411, 28719, 834, 427, 1963, 834, 20773, 9377, 21680, 20052, 834, 12492, 6921, 834, 27247, 7, 6157, 332, 536, 3, 15355, 3162, 1799, 6157, 332, 357, 9191, 332, 5411, 12492,...
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, Product_Price INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6828, 7874, 6227, 134, 41, 3174, 7472, 834, 23954, 584, 4280, 28027, 6, 6246, 834, 345, 4920, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 315, 556, 3056, 58, 363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6246, 834, 23954, 6, 71, 17217, 599, 3174, 7472, 834, 345, 4920, 61, 21680, 6828, 7874, 6227, 134, 350, 4630, 6880, 272, 476, 6246, 834, 23954, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
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, Product_Price INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6828, 7874, 6227, 134, 41, 3174, 7472, 834, 23954, 584, 4280, 28027, 6, 6246, 834, 345, 4920, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 556, 3056, 28, 1348, 556, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6246, 834, 23954, 21680, 6828, 7874, 6227, 134, 350, 4630, 6880, 272, 476, 6246, 834, 23954, 454, 6968, 2365, 71, 17217, 599, 3174, 7472, 834, 345, 4920, 61, 3, 2, 5580, 2313, 1, -100, -100, -100, -100, -100, -100, ...
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); CREATE TABLE Products (Product_ID VARCHAR, Product_Name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4674, 11300, 834, 14871, 4211, 41, 7395, 588, 834, 5991, 288, 485, 3, 21342, 17966, 6, 6246, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 7554, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 180, 6122, 599, 382, 5411, 7395, 588, 834, 5991, 288, 485, 61, 21680, 4674, 11300, 834, 14871, 4211, 6157, 332, 536, 3, 15355, 3162, 7554, 6157, 332, 357, 9191, 332, 5411, 3174, 7472, 834, 4309, 3274, 332, 4416, 3174,...
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, Product_price INTEGER); CREATE TABLE ORDER_ITEMS (Other_Item_Details VARCHAR, Product_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7554, 41, 3174, 7472, 834, 4309, 584, 4280, 28027, 6, 6246, 834, 102, 4920, 3, 21342, 17966, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 4674, 11300, 834, 14871, 4211, 41, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 667, 189, 49, 834, 196, 3524, 834, 2962, 5756, 7, 21680, 4674, 11300, 834, 14871, 4211, 6157, 332, 536, 3, 15355, 3162, 7554, 6157, 332, 357, 9191, 332, 5411, 3174, 7472, 834, 4309, 3274, 332, 4416, 3174, ...
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, Order_ID VARCHAR); CREATE TABLE ORDER_ITEMS (Order_ID VARCHAR, Order_Quantity VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7327, 834, 7395, 588, 7, 41, 23312, 3471, 834, 2962, 7591, 651, 834, 308, 342, 584, 4280, 28027, 6, 5197, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 23312, 3471, 834, 2962, 7591, 651, 834, 308, 342, 21680, 7327, 834, 7395, 588, 7, 6157, 332, 536, 3, 15355, 3162, 4674, 11300, 834, 14871, 4211, 6157, 332, 357, 9191, 332, 5411, 7395, 588, 834, 4309, 3274, ...
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, Product_price INTEGER); CREATE TABLE ORDER_ITEMS (Order_ID VARCHAR, Product_ID VARCHAR); CREATE TABLE Customer_Orders (Order_Date VARCHAR, Order_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7554, 41, 3174, 7472, 834, 4309, 584, 4280, 28027, 6, 6246, 834, 102, 4920, 3, 21342, 17966, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 4674, 11300, 834, 14871, 4211, 41, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 7395, 588, 834, 308, 342, 21680, 7327, 834, 7395, 588, 7, 6157, 332, 536, 3, 15355, 3162, 4674, 11300, 834, 14871, 4211, 6157, 332, 357, 9191, 332, 5411, 7395, 588, 834, 4309, 3274, 332, 4416, 7395, 588, ...
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)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 20052, 834, 12492, 6921, 834, 27247, 7, 41, 254, 450, 52, 4392, 834, 22737, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 6746, 7481, 5633, 33, 132, 21, 66, 6616, 4786...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 31383, 834, 22737, 61, 21680, 20052, 834, 12492, 6921, 834, 27247, 7, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
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, City_Town VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Address_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 13246, 15, 7, 41, 20773, 9377, 834, 4309, 584, 4280, 28027, 6, 896, 834, 382, 9197, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 20052, 834, 12492, 6921, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 28719, 834, 23954, 21680, 13246, 15, 7, 6157, 332, 536, 3, 15355, 3162, 20052, 834, 12492, 6921, 834, 27247, 7, 6157, 332, 357, 9191, 332, 5411, 20773, 9377, 834, 4309, 3274, 332, 4416, 20773, 9377, 834, 43...
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, Address_ID VARCHAR); CREATE TABLE Addresses (Address_ID VARCHAR, State_County VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 20052, 834, 12492, 6921, 834, 27247, 7, 41, 28719, 834, 427, 1963, 834, 20773, 9377, 584, 4280, 28027, 6, 13246, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 28719, 834, 427, 1963, 834, 20773, 9377, 21680, 13246, 15, 7, 6157, 332, 536, 3, 15355, 3162, 20052, 834, 12492, 6921, 834, 27247, 7, 6157, 332, 357, 9191, 332, 5411, 20773, 9377, 834, 4309, 3274, 332, 4416...
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, Address_ID VARCHAR); CREATE TABLE Drama_Workshop_Groups (Address_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 13246, 15, 7, 41, 254, 485, 834, 382, 9197, 584, 4280, 28027, 6, 13246, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 20052, 834, 12492, 6921, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 254, 485, 834, 382, 9197, 6, 2847, 17161, 599, 1935, 61, 21680, 13246, 15, 7, 6157, 332, 536, 3, 15355, 3162, 20052, 834, 12492, 6921, 834, 27247, 7, 6157, 332, 357, 9191, 332, 5411, 20773, 9377, 834, 430...
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)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 20052, 834, 12492, 6921, 834, 27247, 7, 41, 22572, 53, 834, 17748, 23, 106, 834, 22737, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 1070, 1719, 1081, 24, 65, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 4329, 834, 17748, 23, 106, 834, 22737, 21680, 20052, 834, 12492, 6921, 834, 27247, 7, 350, 4630, 6880, 272, 476, 4329, 834, 17748, 23, 106, 834, 22737, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 87...
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); CREATE TABLE Addresses (City_Town VARCHAR, Address_ID VARCHAR); CREATE TABLE Performers (Address_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 16423, 41, 20773, 9377, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 13246, 15, 7, 41, 254, 485, 834, 382, 9197, 584, 4280, 28027, 6, 13246, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 254, 485, 834, 382, 9197, 21680, 13246, 15, 7, 6157, 332, 536, 3, 15355, 3162, 16423, 6157, 332, 357, 9191, 332, 5411, 20773, 9377, 834, 4309, 3274, 332, 4416, 20773, 9377, 834, 4309, 262, 4, 30416, 3, 23...
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)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3, 25793, 2365, 134, 41, 134, 17, 144, 302, 834, 22737, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 167, 8325, 2637, 13, 5038, 7, 58, 1, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 19318, 834, 22737, 21680, 3, 25793, 2365, 134, 350, 4630, 6880, 272, 476, 19318, 834, 22737, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, ...
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, Status_Code VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Workshop_Group_ID VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 21056, 7, 41, 12492, 6921, 834, 27247, 834, 4309, 584, 4280, 28027, 6, 19318, 834, 22737, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 20052, 834, 12492, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 28719, 834, 23954, 21680, 21056, 7, 6157, 332, 536, 3, 15355, 3162, 20052, 834, 12492, 6921, 834, 27247, 7, 6157, 332, 357, 9191, 332, 5411, 12492, 6921, 834, 27247, 834, 4309, 3274, 332, 4416, 12492, 6921, ...
Show the names of all the clients with no booking.
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
CREATE TABLE Clients (Customer_Name VARCHAR, Client_ID VARCHAR); CREATE TABLE Bookings (Customer_ID VARCHAR); CREATE TABLE Clients (Customer_Name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6371, 7, 41, 30067, 49, 834, 23954, 584, 4280, 28027, 6, 6371, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 21056, 7, 41, 30067, 49, 834, 4309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 7327, 834, 23954, 21680, 6371, 7, 262, 4, 30416, 3, 23143, 14196, 332, 4416, 30067, 49, 834, 23954, 21680, 21056, 7, 6157, 332, 536, 3, 15355, 3162, 6371, 7, 6157, 332, 357, 9191, 332, 5411, 30067, 49, 834, 4309, 32...
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)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 86, 23235, 7, 41, 7395, 588, 834, 5991, 288, 485, 3, 21342, 17966, 6, 1942, 834, 23152, 834, 4978, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 1348, 16274, 5563, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 7395, 588, 834, 5991, 288, 485, 61, 21680, 86, 23235, 7, 549, 17444, 427, 1942, 834, 23152, 834, 4978, 3274, 96, 20608, 6936, 26, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
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)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3388, 8040, 8906, 134, 41, 3174, 7472, 834, 4309, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 556, 4699, 13, 8, 167, 4344, 5563, 2118, 30, 10921, 7, 58, 1, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 6246, 834, 4309, 21680, 3388, 8040, 8906, 134, 350, 4630, 6880, 272, 476, 6246, 834, 4309, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, ...
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_Name = 'film'
CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR); CREATE TABLE Services (Service_Type_Code VARCHAR, Product_Name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 419, 89, 834, 15260, 834, 25160, 7, 41, 15260, 834, 25160, 834, 2962, 11830, 584, 4280, 28027, 6, 1387, 834, 25160, 834, 22737, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 15260, 834, 25160, 834, 2962, 11830, 21680, 419, 89, 834, 15260, 834, 25160, 7, 6157, 332, 536, 3, 15355, 3162, 1799, 6157, 332, 357, 9191, 332, 5411, 15260, 834, 25160, 834, 22737, 3274, 332, 4416, 15260, ...
How many bands are there?
SELECT COUNT(*) FROM Band
CREATE TABLE Band (Id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4483, 41, 196, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 9760, 33, 132, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 4483, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
What are all the labels?
SELECT DISTINCT label FROM Albums
CREATE TABLE Albums (label VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 16135, 7, 41, 40, 10333, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 66, 8, 11241, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 3783, 21680, 16135, 7, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Find all the albums in 2012.
SELECT * FROM Albums WHERE YEAR = 2012
CREATE TABLE Albums (YEAR VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 16135, 7, 41, 476, 19356, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 66, 8, 14234, 16, 7033, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1429, 21680, 16135, 7, 549, 17444, 427, 30431, 3274, 1673, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Find all the stage positions of the musicians with first name "Solveig"
SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = "Solveig"
CREATE TABLE Band (id VARCHAR); CREATE TABLE Performance (stageposition VARCHAR, bandmate VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4483, 41, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 8233, 41, 10705, 4718, 584, 4280, 28027, 6, 1928, 5058, 584, 4280, 28027, 61, 3, 32102, 321...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 332, 5411, 10705, 4718, 21680, 8233, 6157, 332, 536, 3, 15355, 3162, 4483, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 549, 17444, 427, 1485, 4350, 3274, 96, 5231, 40, ...
How many songs are there?
SELECT COUNT(*) FROM Songs
CREATE TABLE Songs (Id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 18142, 41, 196, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 3605, 33, 132, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 18142, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
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, SongId VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, Lastname VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 18142, 41, 382, 155, 109, 584, 4280, 28027, 6, 11263, 196, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 8233, 41, 3348, 5058, 584, 4280, 28027, 6, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5787, 382, 155, 109, 21680, 8233, 6157, 332, 536, 3, 15355, 3162, 4483, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 18142, 6157, 332, 519, 9191, 332, 5787, 134, 2444, 1...
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, songid VARCHAR); CREATE TABLE songs (songid VARCHAR, Title VARCHAR); CREATE TABLE band (id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 821, 41, 3348, 5058, 584, 4280, 28027, 6, 2324, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3605, 41, 7, 2444, 23, 26, 584, 4280, 28027, 6, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 821, 6157, 332, 536, 3, 15355, 3162, 1928, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 3605, 6157, 332, 519, 9191, 332, 5787, 7, 2444, 23,...
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, SongId VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, firstname VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 18142, 41, 382, 155, 109, 584, 4280, 28027, 6, 11263, 196, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 8233, 41, 3348, 5058, 584, 4280, 28027, 6, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5787, 382, 155, 109, 21680, 8233, 6157, 332, 536, 3, 15355, 3162, 4483, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 18142, 6157, 332, 519, 9191, 332, 5787, 134, 2444, 1...
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, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4483, 41, 14672, 4350, 584, 4280, 28027, 6, 336, 4350, 584, 4280, 28027, 6, 3, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 8233, 41, 3348, 5058, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 14672, 4350, 6, 332, 4416, 5064, 4350, 21680, 8233, 6157, 332, 536, 3, 15355, 3162, 4483, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 18142, 6157, 332, 519, 9191, ...
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, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR, StagePosition VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4483, 41, 14672, 4350, 584, 4280, 28027, 6, 336, 4350, 584, 4280, 28027, 6, 3, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 8233, 41, 3348, 5058, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 14672, 4350, 6, 332, 4416, 5064, 4350, 21680, 8233, 6157, 332, 536, 3, 15355, 3162, 4483, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 18142, 6157, 332, 519, 9191, ...
How many unique labels are there for albums?
SELECT COUNT(DISTINCT label) FROM albums
CREATE TABLE albums (label VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 14234, 41, 40, 10333, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 775, 11241, 33, 132, 21, 14234, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 3783, 61, 21680, 14234, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
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)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 14234, 41, 40, 10333, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 3783, 24, 65, 8, 167, 14234, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3783, 21680, 14234, 350, 4630, 6880, 272, 476, 3783, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
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); CREATE TABLE Band (lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 18142, 41, 134, 2444, 196, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 4483, 41, 5064, 4350, 584, 4280, 28027, 6, 3, 23, 26, 584, 4280, 28027, 61, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 5064, 4350, 21680, 8233, 6157, 332, 536, 3, 15355, 3162, 4483, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 18142, 6157, 332, 519, 9191, 332, 5787, 134, 2444, 196, ...
What is the last name of the musician that has been at the back position the most?
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
CREATE TABLE Band (lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4483, 41, 5064, 4350, 584, 4280, 28027, 6, 3, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 8233, 41, 3348, 5058, 584, 4280, 28027, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 5064, 4350, 21680, 8233, 6157, 332, 536, 3, 15355, 3162, 4483, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 549, 17444, 427, 1726, 4718, 3274, 96, 1549, 121, 350, 4630, 6880, 272, ...
Find all the songs whose name contains the word "the".
SELECT title FROM songs WHERE title LIKE '% the %'
CREATE TABLE songs (title VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3605, 41, 21869, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 66, 8, 3605, 3, 2544, 564, 2579, 8, 1448, 96, 532, 1280, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2233, 21680, 3605, 549, 17444, 427, 2233, 8729, 9914, 3, 31, 1454, 8, 3, 1454, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What are all the instruments used?
SELECT DISTINCT instrument FROM Instruments
CREATE TABLE Instruments (instrument VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 13507, 7, 41, 25232, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 66, 8, 7778, 261, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 5009, 21680, 13507, 7, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
What instrument did the musician with last name "Heilo" use in the song "Le Pop"?
SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Le Pop"
CREATE TABLE Songs (SongId VARCHAR, songid VARCHAR, title VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR); CREATE TABLE Instruments (instrument VARCHAR, songid VARCHAR, bandmateid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 18142, 41, 134, 2444, 196, 26, 584, 4280, 28027, 6, 2324, 23, 26, 584, 4280, 28027, 6, 2233, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 8233, 41, 3348, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 7984, 25232, 21680, 8233, 6157, 332, 536, 3, 15355, 3162, 4483, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 18142, 6157, 332, 519, 9191, 332, 5787, 134, 2444, 196, 26, ...
What is the most used instrument?
SELECT instrument FROM instruments GROUP BY instrument ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE instruments (instrument VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7778, 41, 25232, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 167, 261, 5009, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5009, 21680, 7778, 350, 4630, 6880, 272, 476, 5009, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
How many songs have used the instrument "drums"?
SELECT COUNT(*) FROM instruments WHERE instrument = "drums"
CREATE TABLE instruments (instrument VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7778, 41, 25232, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 3605, 43, 261, 8, 5009, 96, 17870, 7, 121, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 7778, 549, 17444, 427, 5009, 3274, 96, 17870, 7, 121, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What instruments does the the song "Le Pop" use?
SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7778, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3605, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 32107, 32106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 5009, 21680, 7778, 6157, 332, 536, 3, 15355, 3162, 3605, 6157, 332, 357, 9191, 332, 5411, 7, 2444, 23, 26, 3274, 332, 4416, 7, 2444, 23, 26, 549, 17444, 427, 2233, 3274, 96, 2796, 5777, 121, 1, -100, -100, -100, -...
How many instruments does the song "Le Pop" use?
SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7778, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3605, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 32107, 32106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 5009, 61, 21680, 7778, 6157, 332, 536, 3, 15355, 3162, 3605, 6157, 332, 357, 9191, 332, 5411, 7, 2444, 23, 26, 3274, 332, 4416, 7, 2444, 23, 26, 549, 17444, 427, 2233, 3274, 96,...
How many instrument does the musician with last name "Heilo" use?
SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo"
CREATE TABLE instruments (bandmateid VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7778, 41, 3348, 5058, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 4483, 41, 23, 26, 584, 4280, 28027, 6, 336, 4350, 584, 4280, 28027, 61, 3, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 5009, 61, 21680, 7778, 6157, 332, 536, 3, 15355, 3162, 4483, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 23, 26, 3274, 332, 4416, 23, 26, 549, 17444, 427, 332, 4416, 5064, 4350, ...
Find all the instruments ever used by the musician with last name "Heilo"?
SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo"
CREATE TABLE instruments (bandmateid VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7778, 41, 3348, 5058, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 4483, 41, 23, 26, 584, 4280, 28027, 6, 336, 4350, 584, 4280, 28027, 61, 3, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 5009, 21680, 7778, 6157, 332, 536, 3, 15355, 3162, 4483, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 23, 26, 3274, 332, 4416, 23, 26, 549, 17444, 427, 332, 4416, 5064, 4350, 3274, 96, 3845, 173, 32, 121, 1, -100, ...
Which song has the most vocals?
SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid GROUP BY T1.songid ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3605, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 32107, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2233, 21680, 6721, 7, 6157, 332, 536, 3, 15355, 3162, 3605, 6157, 332, 357, 9191, 332, 5411, 7, 2444, 23, 26, 3274, 332, 4416, 7, 2444, 23, 26, 350, 4630, 6880, 272, 476, 332, 5411, 7, 2444, 23, 26, 4674, 11300, ...
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)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 12016, 5668, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 4073, 6721, 686, 19, 8, 167, 4344, 2385, 1007, 686, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 12016, 5668, 21680, 6721, 7, 350, 4630, 6880, 272, 476, 3, 12016, 5668, 4674, 11300, 272, 476, 2847, 17161, 599, 1935, 61, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Which vocal type has the band mate with last name "Heilo" played the most?
SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE lastname = "Heilo" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 3348, 5058, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1928, 41, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 32107, 32106, 4073, 6721, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 12016, 5668, 21680, 6721, 7, 6157, 332, 536, 3, 15355, 3162, 1928, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 549, 17444, 427, 336, 4350, 3274, 96, 3845, 173, 32, 121, 350, 4630, 6880, ...
What are the vocal types used in song "Le Pop"?
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3605, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 32107, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 12016, 5668, 21680, 6721, 7, 6157, 332, 536, 3, 15355, 3162, 3605, 6157, 332, 357, 9191, 332, 5411, 7, 2444, 23, 26, 3274, 332, 4416, 7, 2444, 23, 26, 549, 17444, 427, 2233, 3274, 96, 2796, 5777, 121, 1, -100, ...
Find the number of vocal types used in song "Demon Kitty Rag"?
SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Demon Kitty Rag"
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3605, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 32107, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 6721, 7, 6157, 332, 536, 3, 15355, 3162, 3605, 6157, 332, 357, 9191, 332, 5411, 7, 2444, 23, 26, 3274, 332, 4416, 7, 2444, 23, 26, 549, 17444, 427, 2233, 3274, 96, 2962, 2157, 48...
How many songs have a lead vocal?
SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "lead"
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3605, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 32107, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 2233, 61, 21680, 6721, 7, 6157, 332, 536, 3, 15355, 3162, 3605, 6157, 332, 357, 9191, 332, 5411, 7, 2444, 23, 26, 3274, 332, 4416, 7, 2444, 23, 26, 549, 17444, 427, 3, 12016, ...
Which vocal type did the musician with first name "Solveig" played in the song with title "A Bar in Amsterdam"?
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = "Solveig" AND T2.title = "A Bar In Amsterdam"
CREATE TABLE vocals (songid VARCHAR, bandmate VARCHAR); CREATE TABLE band (id VARCHAR, firstname VARCHAR); CREATE TABLE songs (songid VARCHAR, title VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 7, 2444, 23, 26, 584, 4280, 28027, 6, 1928, 5058, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1928, 41, 23, 26, 584, 4280, 28027, 6, 166, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 12016, 5668, 21680, 6721, 7, 6157, 332, 536, 3, 15355, 3162, 3605, 6157, 332, 357, 9191, 332, 5411, 7, 2444, 23, 26, 3274, 332, 4416, 7, 2444, 23, 26, 3, 15355, 3162, 1928, 6157, 332, 519, 9191, 332, 5411, 3348...
Find all the songs that do not have a lead vocal.
SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "lead"
CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE vocals (songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3605, 41, 21869, 584, 4280, 28027, 6, 2324, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 2233, 21680, 6721, 7, 6157, 3, 17, 536, 3, 15355, 3162, 3605, 6157, 3, 17, 357, 9191, 3, 17, 5411, 7, 2444, 23, 26, 3274, 3, 17, 4416, 7, 2444, 23, 26, 262, 4, 30416, 3, 23143, 14196, 3,...
Find all the vocal types.
SELECT DISTINCT TYPE FROM vocals
CREATE TABLE vocals (TYPE VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 12016, 5668, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 66, 8, 6721, 1308, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 3, 12016, 5668, 21680, 6721, 7, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
What are the albums produced in year 2010?
SELECT * FROM Albums WHERE YEAR = 2010
CREATE TABLE Albums (YEAR VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 16135, 7, 41, 476, 19356, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 14234, 2546, 16, 215, 2735, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 1429, 21680, 16135, 7, 549, 17444, 427, 30431, 3274, 2735, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
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, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4483, 41, 14672, 4350, 584, 4280, 28027, 6, 336, 4350, 584, 4280, 28027, 6, 3, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 8233, 41, 3348, 5058, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 14672, 4350, 6, 332, 4416, 5064, 4350, 21680, 8233, 6157, 332, 536, 3, 15355, 3162, 4483, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 18142, 6157, 332, 519, 9191, ...
What instrument did the musician with last name "Heilo" use in the song "Badlands"?
SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Badlands"
CREATE TABLE Songs (SongId VARCHAR, songid VARCHAR, title VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR); CREATE TABLE Instruments (instrument VARCHAR, songid VARCHAR, bandmateid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 18142, 41, 134, 2444, 196, 26, 584, 4280, 28027, 6, 2324, 23, 26, 584, 4280, 28027, 6, 2233, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 8233, 41, 3348, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 7984, 25232, 21680, 8233, 6157, 332, 536, 3, 15355, 3162, 4483, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 18142, 6157, 332, 519, 9191, 332, 5787, 134, 2444, 196, 26, ...
How many instruments does the song "Badlands" use?
SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands"
CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 7778, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3605, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 32107, 32106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 5009, 61, 21680, 7778, 6157, 332, 536, 3, 15355, 3162, 3605, 6157, 332, 357, 9191, 332, 5411, 7, 2444, 23, 26, 3274, 332, 4416, 7, 2444, 23, 26, 549, 17444, 427, 2233, 3274, 96,...
What are the vocal types used in song "Badlands"?
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands"
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3605, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 32107, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 12016, 5668, 21680, 6721, 7, 6157, 332, 536, 3, 15355, 3162, 3605, 6157, 332, 357, 9191, 332, 5411, 7, 2444, 23, 26, 3274, 332, 4416, 7, 2444, 23, 26, 549, 17444, 427, 2233, 3274, 96, 279, 9, 26, 6347, 121, 1...
Find the number of vocal types used in song "Le Pop"
SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3605, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 32107, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 6721, 7, 6157, 332, 536, 3, 15355, 3162, 3605, 6157, 332, 357, 9191, 332, 5411, 7, 2444, 23, 26, 3274, 332, 4416, 7, 2444, 23, 26, 549, 17444, 427, 2233, 3274, 96, 2796, 5777, 12...
How many songs have a shared vocal?
SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared"
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 3605, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 32107, 3210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 2233, 61, 21680, 6721, 7, 6157, 332, 536, 3, 15355, 3162, 3605, 6157, 332, 357, 9191, 332, 5411, 7, 2444, 23, 26, 3274, 332, 4416, 7, 2444, 23, 26, 549, 17444, 427, 3, 12016, ...
Find all the songs that do not have a back vocal.
SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "back"
CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE vocals (songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3605, 41, 21869, 584, 4280, 28027, 6, 2324, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 7, 2444, 23, 26, 584, 4280, 28027, 61, 3, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 2233, 21680, 6721, 7, 6157, 3, 17, 536, 3, 15355, 3162, 3605, 6157, 3, 17, 357, 9191, 3, 17, 5411, 7, 2444, 23, 26, 3274, 3, 17, 4416, 7, 2444, 23, 26, 262, 4, 30416, 3, 23143, 14196, 3,...
Which vocal type has the band mate with first name "Solveig" played the most?
SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Solveig" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 3348, 5058, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1928, 41, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 32107, 32106, 4073, 6721, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 3, 12016, 5668, 21680, 6721, 7, 6157, 332, 536, 3, 15355, 3162, 1928, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 549, 17444, 427, 166, 4350, 3274, 96, 5231, 40, 162, 23, 122, 121, 350, 4...
Which vocal type did the musician with last name "Heilo" played in the song with title "Der Kapitan"?
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = "Heilo" AND T2.title = "Der Kapitan"
CREATE TABLE band (id VARCHAR, lastname VARCHAR); CREATE TABLE vocals (songid VARCHAR, bandmate VARCHAR); CREATE TABLE songs (songid VARCHAR, title VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 1928, 41, 23, 26, 584, 4280, 28027, 6, 336, 4350, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 7, 2444, 23, 26, 584, 4280, 28027, 6, 1928, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 12016, 5668, 21680, 6721, 7, 6157, 332, 536, 3, 15355, 3162, 3605, 6157, 332, 357, 9191, 332, 5411, 7, 2444, 23, 26, 3274, 332, 4416, 7, 2444, 23, 26, 3, 15355, 3162, 1928, 6157, 332, 519, 9191, 332, 5411, 3348...
Find the first name of the band mate that has performed in most songs.
SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate = t2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY firstname ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE Songs (SongId VARCHAR); CREATE TABLE Band (firstname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 18142, 41, 134, 2444, 196, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 4483, 41, 14672, 4350, 584, 4280, 28027, 6, 3, 23, 26, 584, 4280, 28027, 61, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 3, 17, 4416, 14672, 4350, 21680, 8233, 6157, 3, 17, 536, 3, 15355, 3162, 4483, 6157, 3, 17, 357, 9191, 3, 17, 5411, 3348, 5058, 3274, 3, 17, 4416, 23, 26, 3, 15355, 3162, 18142, 6157, 332, 519, 9191, 332, 5787, ...
Which vocal type has the band mate with first name "Marianne" played the most?
SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Marianne" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 6721, 7, 41, 3348, 5058, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 1928, 41, 23, 26, 584, 4280, 28027, 61, 3, 32102, 32106, 32107, 32106, 4073, 6721, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 12016, 5668, 21680, 6721, 7, 6157, 332, 536, 3, 15355, 3162, 1928, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 549, 17444, 427, 166, 4350, 3274, 96, 7286, 23, 4515, 121, 350, 4630, 6880,...
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, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR, StagePosition VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 4483, 41, 14672, 4350, 584, 4280, 28027, 6, 336, 4350, 584, 4280, 28027, 6, 3, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 8233, 41, 3348, 5058, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 4416, 14672, 4350, 6, 332, 4416, 5064, 4350, 21680, 8233, 6157, 332, 536, 3, 15355, 3162, 4483, 6157, 332, 357, 9191, 332, 5411, 3348, 5058, 3274, 332, 4416, 23, 26, 3, 15355, 3162, 18142, 6157, 332, 519, 9191, ...
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, songid VARCHAR); CREATE TABLE albums (aid VARCHAR, title VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3605, 41, 21869, 584, 4280, 28027, 6, 2324, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 14234, 41, 6146, 584, 4280, 28027, 6, 2233, 584, 4280, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5787, 21869, 21680, 14234, 6157, 332, 536, 3, 15355, 3162, 1463, 3350, 7, 6157, 332, 357, 9191, 332, 5411, 6146, 3274, 332, 4416, 23703, 23, 26, 3, 15355, 3162, 3605, 6157, 332, 519, 9191, 332, 4416, 7, 2444, 2...
What are all the songs in albums under label "Universal Music Group"?
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.label = "Universal Music Group"
CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3605, 41, 21869, 584, 4280, 28027, 6, 2324, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 14234, 41, 6146, 584, 4280, 28027, 61, 3, 32102, 32106, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5787, 21869, 21680, 14234, 6157, 332, 536, 3, 15355, 3162, 1463, 3350, 7, 6157, 332, 357, 9191, 332, 5411, 6146, 3274, 332, 4416, 23703, 23, 26, 3, 15355, 3162, 3605, 6157, 332, 519, 9191, 332, 4416, 7, 2444, 2...
Find the number of songs in all the studio albums.
SELECT COUNT(DISTINCT 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.type = "Studio"
CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 3605, 41, 21869, 584, 4280, 28027, 6, 2324, 23, 26, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 14234, 41, 6146, 584, 4280, 28027, 61, 3, 32102, 32106, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 332, 5787, 21869, 61, 21680, 14234, 6157, 332, 536, 3, 15355, 3162, 1463, 3350, 7, 6157, 332, 357, 9191, 332, 5411, 6146, 3274, 332, 4416, 23703, 23, 26, 3, 15355, 3162, 3605, 615...
Who is the founder of Sony?
SELECT founder FROM manufacturers WHERE name = 'Sony'
CREATE TABLE manufacturers (founder VARCHAR, name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 14435, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2645, 19, 8, 7174, 13, 8357, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 7174, 21680, 5360, 549, 17444, 427, 564, 3274, 3, 31, 134, 106, 63, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Where is the headquarter of the company founded by James?
SELECT headquarter FROM manufacturers WHERE founder = 'James'
CREATE TABLE manufacturers (headquarter VARCHAR, founder VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 3313, 19973, 584, 4280, 28027, 6, 7174, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2840, 19, 8, 819, 19973, 13, 8, 349, 5710, 57, 2549, 58, 1, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 819, 19973, 21680, 5360, 549, 17444, 427, 7174, 3274, 3, 31, 683, 9, 2687, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
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, headquarter VARCHAR, revenue VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 4350, 584, 4280, 28027, 6, 819, 19973, 584, 4280, 28027, 6, 3751, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 66, 5360, 31, 3056, 11, 70, 13767, 6, 3, 14504, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 6, 819, 19973, 21680, 5360, 4674, 11300, 272, 476, 3751, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
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)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 60, 15098, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 1348, 6, 2411, 11, 792, 14609, 13, 66, 688, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 71, 17217, 599, 60, 15098, 201, 4800, 4, 599, 60, 15098, 201, 180, 6122, 599, 60, 15098, 61, 21680, 5360, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
How many companies were created by Andy?
SELECT COUNT(*) FROM manufacturers WHERE founder = 'Andy'
CREATE TABLE manufacturers (founder VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 14435, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 571, 186, 688, 130, 990, 57, 12838, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 5360, 549, 17444, 427, 7174, 3274, 3, 31, 7175, 63, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
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)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 60, 15098, 3, 21342, 17966, 6, 819, 19973, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 792, 3751, 990, 57, 8, 688, 3, 2544, 819, 19973, 19, 1069, 44, 8513...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 60, 15098, 61, 21680, 5360, 549, 17444, 427, 819, 19973, 3274, 3, 31, 14934, 17, 77, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
What are the different cities listed?
SELECT DISTINCT headquarter FROM manufacturers
CREATE TABLE manufacturers (headquarter VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 3313, 19973, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 33, 8, 315, 3119, 2616, 58, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 3, 15438, 25424, 6227, 819, 19973, 21680, 5360, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
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)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 3313, 19973, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 381, 13, 9421, 7, 24, 33, 3, 390, 16, 12653, 42, 14465, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 61, 21680, 5360, 549, 17444, 427, 819, 19973, 3274, 3, 31, 3696, 3781, 32, 31, 4674, 819, 19973, 3274, 3, 31, 2703, 23, 354, 53, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
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, name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 14435, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 7174, 13, 8, 349, 3, 2544, 564, 4396, 28, 8, 2068, 3, 31, 134, 31, 5, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 7174, 21680, 5360, 549, 17444, 427, 564, 8729, 9914, 3, 31, 134, 1454, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
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, revenue INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 4350, 584, 4280, 28027, 6, 3751, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 564, 13, 688, 3, 2544, 3751, 19, 344, 910, 11, 4261, 5, 1, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 5360, 549, 17444, 427, 3751, 272, 7969, 518, 23394, 910, 3430, 4261, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
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)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 60, 15098, 3, 21342, 17966, 6, 3642, 19973, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 363, 19, 8, 792, 3751, 13, 66, 688, 3, 2544, 711, 828, 19, 44, 12653, 42, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 60, 15098, 61, 21680, 5360, 549, 17444, 427, 3642, 19973, 3274, 3, 31, 3696, 3781, 32, 31, 4674, 3642, 19973, 3274, 3, 31, 382, 9, 23, 3877, 31, 1, -100, -100, -100, -100, -100, -100, -100, -100, -...
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, name VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 4978, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 494, 41, 4350, 584, 4280, 28027, 6, 15248, 584, 4280, 28027, 61, 3,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 332, 5411, 4350, 21680, 494, 6157, 332, 536, 3, 15355, 3162, 5360, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 4978, 549, 17444, 427, 332, 4416, 4350, 3274, 3, 31, 254, 60, 1528, 8100,...
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, headquarter VARCHAR, founder VARCHAR, revenue VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 4350, 584, 4280, 28027, 6, 819, 19973, 584, 4280, 28027, 6, 7174, 584, 4280, 28027, 6, 3751, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 564, 6, 819, 19973,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 6, 819, 19973, 6, 7174, 21680, 5360, 4674, 11300, 272, 476, 3751, 309, 25067, 8729, 12604, 209, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
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, headquarter VARCHAR, revenue VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 4350, 584, 4280, 28027, 6, 819, 19973, 584, 4280, 28027, 6, 3751, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 564, 6, 819, 19973, 11, 3751, 13, 66, 5360, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 6, 819, 19973, 6, 3751, 21680, 5360, 4674, 11300, 272, 476, 3751, 309, 25067, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
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, revenue INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 4350, 584, 4280, 28027, 6, 3751, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 564, 13, 688, 3, 2544, 3751, 19, 2123, 145, 8, 1348, 3751, 13, 66, 688, 5, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 5360, 549, 17444, 427, 3751, 2490, 41, 23143, 14196, 71, 17217, 599, 60, 15098, 61, 21680, 5360, 61, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
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, revenue INTEGER, headquarter VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 4350, 584, 4280, 28027, 6, 3751, 3, 21342, 17966, 6, 819, 19973, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 564, 13, 688, 3, 2544, 3751, 19, 2755, 145, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 21680, 5360, 549, 17444, 427, 3751, 3, 2, 41, 23143, 14196, 3, 17684, 599, 60, 15098, 61, 21680, 5360, 549, 17444, 427, 819, 19973, 3274, 3, 31, 14934, 17, 77, 31, 61, 1, -100, -100, -100, -100, -100, -100, -...
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)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 60, 15098, 3, 21342, 17966, 6, 819, 19973, 584, 4280, 28027, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 792, 3751, 13, 688, 3, 2544, 3751, 19, 2186, 145, 8, 3751, 13, 128,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 60, 15098, 61, 21680, 5360, 549, 17444, 427, 3751, 2490, 41, 23143, 14196, 3, 17684, 599, 60, 15098, 61, 21680, 5360, 549, 17444, 427, 819, 19973, 3274, 3, 31, 14934, 17, 77, 31, 61, 1, -100, -100, ...
Find the total revenue of companies of each founder.
SELECT SUM(revenue), founder FROM manufacturers GROUP BY founder
CREATE TABLE manufacturers (founder VARCHAR, revenue INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 14435, 584, 4280, 28027, 6, 3751, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 792, 3751, 13, 688, 13, 284, 7174, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 60, 15098, 201, 7174, 21680, 5360, 350, 4630, 6880, 272, 476, 7174, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
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, Headquarter VARCHAR, revenue INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 4350, 584, 4280, 28027, 6, 3642, 19973, 584, 4280, 28027, 6, 3751, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 564, 11, 3751, 13, 8, 349, 24, 3807, 7, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 564, 6, 4800, 4, 599, 60, 15098, 201, 3642, 19973, 21680, 5360, 350, 4630, 6880, 272, 476, 3642, 19973, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Find the total revenue for each manufacturer.
SELECT SUM(revenue), name FROM manufacturers GROUP BY name
CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 4350, 584, 4280, 28027, 6, 3751, 3, 21342, 17966, 61, 3, 32105, 32106, 32107, 32106, 2588, 8, 792, 3751, 21, 284, 4818, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 3, 23143, 14196, 180, 6122, 599, 60, 15098, 201, 564, 21680, 5360, 350, 4630, 6880, 272, 476, 564, 1, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
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); CREATE TABLE manufacturers (name VARCHAR, code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 494, 41, 102, 4920, 3, 21342, 17966, 6, 15248, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5360, 41, 4350, 584, 4280, 28027, 6, 1081, 584, 4280, 28027, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 71, 17217, 599, 382, 5411, 102, 4920, 201, 332, 4416, 4350, 21680, 494, 6157, 332, 536, 3, 15355, 3162, 5360, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 4978, 350, 4630, 6880, 272, 47...
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, code VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 3845, 9, 26, 19973, 584, 4280, 28027, 6, 1081, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 494, 41, 4350, 584, 4280, 28027, 6, 15248, 584, 4280...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 332, 5411, 4350, 201, 332, 4416, 3845, 9, 26, 19973, 21680, 494, 6157, 332, 536, 3, 15355, 3162, 5360, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, ...
Find number of products which Sony does not make.
SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (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, name VARCHAR); CREATE TABLE products (name VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 4978, 584, 4280, 28027, 6, 564, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 494, 41, 4350, 584, 4280, 28027, 61, 3, 32102, 32106, 32101, 205, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 2847, 17161, 599, 15438, 25424, 6227, 564, 61, 21680, 494, 549, 17444, 427, 4486, 564, 3388, 41, 23143, 14196, 332, 5411, 4350, 21680, 494, 6157, 332, 536, 3, 15355, 3162, 5360, 6157, 332, 357, 9191, 332, 5411, 7296, ...
Find the name of companies that do not make DVD drive.
SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T1.name = 'DVD drive'
CREATE TABLE manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Manufacturer VARCHAR, name VARCHAR); CREATE TABLE manufacturers (name VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 5360, 41, 4350, 584, 4280, 28027, 6, 1081, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 494, 41, 7296, 76, 8717, 450, 49, 584, 4280, 28027, 6, 564, 584, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 3, 23143, 14196, 564, 21680, 5360, 262, 4, 30416, 3, 23143, 14196, 332, 4416, 4350, 21680, 494, 6157, 332, 536, 3, 15355, 3162, 5360, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 4978, 549, 17444, 427, ...
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); CREATE TABLE manufacturers (name VARCHAR, code VARCHAR)
[ 32100, 32106, 32105, 205, 4386, 6048, 332, 17098, 494, 41, 7296, 76, 8717, 450, 49, 584, 4280, 28027, 61, 3, 32105, 32106, 32102, 205, 4386, 6048, 332, 17098, 5360, 41, 4350, 584, 4280, 28027, 6, 1081, 584, 4280, 28027, 61, 3, 32102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 3, 23143, 14196, 2847, 17161, 599, 1935, 201, 332, 4416, 4350, 21680, 494, 6157, 332, 536, 3, 15355, 3162, 5360, 6157, 332, 357, 9191, 332, 5411, 7296, 76, 8717, 450, 49, 3274, 332, 4416, 4978, 350, 4630, 6880, 272, 476, 332, 4416, ...