minktn/spider-data huggingface dataset:
Database: soccer_2
Question: What are the different states that had students successfully try out?
SQL: SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'
Database: soccer_2
Question: Find the name and college of students whose decisions are yes in the tryout.
SQL: SELECT T1.pName ,  T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'
Database: soccer_2
Question: What are the names of all the players who received a yes during tryouts, and also what are the names of their colleges?
SQL: SELECT T1.pName ,  T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'
Database: soccer_2
Question: Find the name of all students who were in the tryout sorted in alphabetic order.
SQL: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID ORDER BY T1.pName
Database: soccer_2
Question: What are the names of all students who tried out in alphabetical order?
SQL: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID ORDER BY T1.pName
Database: soccer_2
Question: Find the name and hours of the students whose tryout decision is yes.
SQL: SELECT T1.pName ,  T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'
Database: soccer_2
Question: What are the names and hours spent practicing of every student who received a yes at tryouts?
SQL: SELECT T1.pName ,  T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'
Database: soccer_2
Question: Find the states of the colleges that have students in the tryout who played in striker position.
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'striker'
Database: soccer_2
Question: What are the states of the colleges where students who tried out for the striker position attend?
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'striker'
Database: soccer_2
Question: Find the names of the students who are in the position of striker and got a yes tryout decision.
SQL: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes' AND T2.pPos  =  'striker'
Database: soccer_2
Question: What are the names of all students who successfully tried out for the position of striker?
SQL: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes' AND T2.pPos  =  'striker'
Database: soccer_2
Question: Find the state of the college which player Charles is attending.
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName JOIN player AS T3 ON T2.pID  =  T3.pID WHERE T3.pName  =  'Charles'
Database: soccer_2
Question: In which state is the college that Charles attends?
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName JOIN player AS T3 ON T2.pID  =  T3.pID WHERE T3.pName  =  'Charles'
Database: soccer_2
Question: Find the average and maximum hours for the students whose tryout decision is yes.
SQL: SELECT avg(T1.HS) ,  max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'
Database: soccer_2
Question: What is the average and maximum number of hours students who made the team practiced?
SQL: SELECT avg(T1.HS) ,  max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'yes'
Database: soccer_2
Question: Find the average hours for the students whose tryout decision is no.
SQL: SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'no'
Database: soccer_2
Question: What is the average number of hours spent practicing for students who got rejected?
SQL: SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T2.decision  =  'no'
Database: soccer_2
Question: What is the maximum training hours for the students whose training hours is greater than 1000 in different positions?
SQL: SELECT max(T1.HS) ,  pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T1.HS  >  1000 GROUP BY T2.pPos
Database: soccer_2
Question: For each position, what is the maximum number of  hours for students who spent more than 1000 hours training?
SQL: SELECT max(T1.HS) ,  pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID  =  T2.pID WHERE T1.HS  >  1000 GROUP BY T2.pPos
Database: soccer_2
Question: Which colleges do the tryout players whose name starts with letter D go to?
SQL: SELECT T1.cName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T2.pName LIKE 'D%'
Database: soccer_2
Question: Which colleges does each player with a name that starts with the letter D  who tried out go to?
SQL: SELECT T1.cName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T2.pName LIKE 'D%'
Database: soccer_2
Question: Which college has any student who is a goalie and succeeded in the tryout.
SQL: SELECT cName FROM  tryout WHERE decision  =  'yes' AND pPos  =  'goalie'
Database: soccer_2
Question: What college has a student who successfully made the team in the role of a goalie?
SQL: SELECT cName FROM  tryout WHERE decision  =  'yes' AND pPos  =  'goalie'
Database: soccer_2
Question: Find the name of the tryout players who are from the college with largest size.
SQL: SELECT T2.pName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T1.cName  =  (SELECT cName FROM college ORDER BY enr DESC LIMIT 1)
Database: soccer_2
Question: What are the names of all tryout participants who are from the largest college?
SQL: SELECT T2.pName FROM  tryout AS T1 JOIN player AS T2 ON T1.pID  =  T2.pID WHERE T1.cName  =  (SELECT cName FROM college ORDER BY enr DESC LIMIT 1)
Database: soccer_2
Question: What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision.
SQL: SELECT DISTINCT T1.state ,  T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'
Database: soccer_2
Question: How many students are enrolled in colleges that have student accepted during tryouts, and in which states are those colleges?
SQL: SELECT DISTINCT T1.state ,  T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.decision  =  'yes'
Database: soccer_2
Question: Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment.
SQL: SELECT cName FROM College WHERE enr  <  13000 AND state = "AZ" UNION SELECT cName FROM College WHERE enr  >  15000 AND state = "LA"
Database: soccer_2
Question: What are the names of colleges in LA that have more than 15,000 students and of colleges in AZ with less than 13,000 students?
SQL: SELECT cName FROM College WHERE enr  <  13000 AND state = "AZ" UNION SELECT cName FROM College WHERE enr  >  15000 AND state = "LA"
Database: soccer_2
Question: Find the names of schools that have some students playing in goalie and mid positions.
SQL: SELECT cName FROM  tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid'
Database: soccer_2
Question: What are the names of all schools that have students trying out for the position of goal and 'mid'-field.
SQL: SELECT cName FROM  tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid'
Database: soccer_2
Question: Find the names of states that have some college students playing in goalie and mid positions.
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid'
Database: soccer_2
Question: What are the names of the states that have some college students playing in the positions of goalie and mid-field?
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid'
Database: soccer_2
Question: How many schools have some students playing in goalie and mid positions.
SQL: SELECT COUNT(*) FROM (SELECT cName FROM  tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid')
Database: soccer_2
Question: How many schools have students playing in goalie and mid-field positions?
SQL: SELECT COUNT(*) FROM (SELECT cName FROM  tryout WHERE pPos  =  'goalie' INTERSECT SELECT cName FROM  tryout WHERE pPos  =  'mid')
Database: soccer_2
Question: Find the names of schools that have some players in the mid position but not in the goalie position.
SQL: SELECT cName FROM  tryout WHERE pPos  =  'mid' EXCEPT SELECT cName FROM  tryout WHERE pPos  =  'goalie'
Database: soccer_2
Question: What are the names of the schools with some players in the mid position but no goalies?
SQL: SELECT cName FROM  tryout WHERE pPos  =  'mid' EXCEPT SELECT cName FROM  tryout WHERE pPos  =  'goalie'
Database: soccer_2
Question: Find the names of states that have some college students playing in the mid position but not in the goalie position.
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie'
Database: soccer_2
Question: What are the names of all the states with college students playing in the mid position but no goalies?
SQL: SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie'
Database: soccer_2
Question: How many states that have some college students playing in the mid position but not in the goalie position.
SQL: SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie')
Database: soccer_2
Question: What is the count of states with college students playing in the mid position but not as goalies?
SQL: SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName  =  T2.cName WHERE T2.pPos  =  'goalie')
Database: soccer_2
Question: Find the states where have the colleges whose enrollments are less than the largest size.
SQL: SELECT DISTINCT state FROM college WHERE enr  <  (SELECT max(enr) FROM college)
Database: soccer_2
Question: What are the states with colleges that have enrollments less than the some other college?
SQL: SELECT DISTINCT state FROM college WHERE enr  <  (SELECT max(enr) FROM college)
Database: soccer_2
Question: Find names of colleges with enrollment greater than that of some (at least one) college in the FL state.
SQL: SELECT DISTINCT cName FROM college WHERE enr  >  (SELECT min(enr) FROM college WHERE state  =  'FL')
Database: soccer_2
Question: What are the names of the colleges that are larger than at least one college in Florida?
SQL: SELECT DISTINCT cName FROM college WHERE enr  >  (SELECT min(enr) FROM college WHERE state  =  'FL')
Database: soccer_2
Question: Find names of all colleges whose enrollment is greater than that of all colleges in the FL state.
SQL: SELECT cName FROM college WHERE enr  >  (SELECT max(enr) FROM college WHERE state  =  'FL')
Database: soccer_2
Question: What are the names of all colleges with a larger enrollment than the largest college in Florida?
SQL: SELECT cName FROM college WHERE enr  >  (SELECT max(enr) FROM college WHERE state  =  'FL')
Database: soccer_2
Question: What is the total number of enrollment of schools that do not have any goalie player?
SQL: SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos  =  "goalie")
Database: soccer_2
Question: What is the total number of students enrolled in schools without any goalies?
SQL: SELECT sum(enr) FROM college WHERE cName NOT IN (SELECT cName FROM tryout WHERE pPos  =  "goalie")
Database: soccer_2
Question: What is the number of states that has some college whose enrollment is larger than the average enrollment?
SQL: SELECT count(DISTINCT state) FROM college WHERE enr  >  (SELECT avg(enr) FROM college)
Database: soccer_2
Question: How many states have a college with more students than average?
SQL: SELECT count(DISTINCT state) FROM college WHERE enr  >  (SELECT avg(enr) FROM college)
Database: soccer_2
Question: What is the number of states that has some colleges whose enrollment is smaller than the average enrollment?
SQL: SELECT count(DISTINCT state) FROM college WHERE enr  <  (SELECT avg(enr) FROM college)
Database: soccer_2
Question: How many states have smaller colleges than average?
SQL: SELECT count(DISTINCT state) FROM college WHERE enr  <  (SELECT avg(enr) FROM college)
Database: device
Question: How many devices are there?
SQL: SELECT count(*) FROM device
Database: device
Question: Count the number of devices.
SQL: SELECT count(*) FROM device
Database: device
Question: List the carriers of devices in ascending alphabetical order.
SQL: SELECT Carrier FROM device ORDER BY Carrier ASC
Database: device
Question: What are the different carriers for devices, listed in alphabetical order?
SQL: SELECT Carrier FROM device ORDER BY Carrier ASC
Database: device
Question: What are the carriers of devices whose software platforms are not "Android"?
SQL: SELECT Carrier FROM device WHERE Software_Platform != 'Android'
Database: device
Question: Return the device carriers that do not have Android as their software platform.
SQL: SELECT Carrier FROM device WHERE Software_Platform != 'Android'
Database: device
Question: What are the names of shops in ascending order of open year?
SQL: SELECT Shop_Name FROM shop ORDER BY Open_Year ASC
Database: device
Question: Return the names of shops, ordered by year of opening ascending.
SQL: SELECT Shop_Name FROM shop ORDER BY Open_Year ASC
Database: device
Question: What is the average quantity of stocks?
SQL: SELECT avg(Quantity) FROM stock
Database: device
Question: Give the average quantity of stocks.
SQL: SELECT avg(Quantity) FROM stock
Database: device
Question: What are the names and location of the shops in ascending alphabetical order of name.
SQL: SELECT Shop_Name ,  LOCATION FROM shop ORDER BY Shop_Name ASC
Database: device
Question: Return the names and locations of shops, ordered by name in alphabetical order.
SQL: SELECT Shop_Name ,  LOCATION FROM shop ORDER BY Shop_Name ASC
Database: device
Question: How many different software platforms are there for devices?
SQL: SELECT count(DISTINCT Software_Platform) FROM device
Database: device
Question: Count the number of different software platforms.
SQL: SELECT count(DISTINCT Software_Platform) FROM device
Database: device
Question: List the open date of open year of the shop named "Apple".
SQL: SELECT Open_Date ,  Open_Year FROM shop WHERE Shop_Name  =  "Apple"
Database: device
Question: What are the open dates and years for the shop named Apple?
SQL: SELECT Open_Date ,  Open_Year FROM shop WHERE Shop_Name  =  "Apple"
Database: device
Question: List the name of the shop with the latest open year.
SQL: SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1
Database: device
Question: What is the shop name corresponding to the shop that opened in the most recent year?
SQL: SELECT Shop_Name FROM shop ORDER BY Open_Year DESC LIMIT 1
Database: device
Question: Show names of shops and the carriers of devices they have in stock.
SQL: SELECT T3.Shop_Name ,  T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID  =  T3.Shop_ID
Database: device
Question: What are the names of device shops, and what are the carriers that they carry devices in stock for?
SQL: SELECT T3.Shop_Name ,  T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID  =  T3.Shop_ID
Database: device
Question: Show names of shops that have more than one kind of device in stock.
SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*)  >  1
Database: device
Question: What are the names of shops that have more than a single kind of device in stock?
SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*)  >  1
Database: device
Question: Show the name of the shop that has the most kind of devices in stock.
SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1
Database: device
Question: What is the name of the shop that has the most different kinds of devices in stock?
SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1
Database: device
Question: Show the name of the shop that have the largest quantity of devices in stock.
SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1
Database: device
Question: What is the name of the shop that has the greatest quantity of devices in stock?
SQL: SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID  =  T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1
Database: device
Question: Please show different software platforms and the corresponding number of devices using each.
SQL: SELECT Software_Platform ,  COUNT(*) FROM device GROUP BY Software_Platform
Database: device
Question: What are the different software platforms for devices, and how many devices have each?
SQL: SELECT Software_Platform ,  COUNT(*) FROM device GROUP BY Software_Platform
Database: device
Question: Please show the software platforms of devices in descending order of the count.
SQL: SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC
Database: device
Question: What are the different software platforms for devices, ordered by frequency descending?
SQL: SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC
Database: device
Question: List the software platform shared by the greatest number of devices.
SQL: SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1
Database: device
Question: What is the software platform that is most common amongst all devices?
SQL: SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC LIMIT 1
Database: device
Question: List the names of shops that have no devices in stock.
SQL: SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock)
Database: device
Question: What are the names of shops that do not have any devices in stock?
SQL: SELECT Shop_Name FROM shop WHERE Shop_ID NOT IN (SELECT Shop_ID FROM stock)
Database: device
Question: Show the locations shared by shops with open year later than 2012 and shops with open year before 2008.
SQL: SELECT LOCATION FROM shop WHERE Open_Year  >  2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year  <  2008
Database: device
Question: Which locations contains both shops that opened after the year 2012 and shops that opened before 2008?
SQL: SELECT LOCATION FROM shop WHERE Open_Year  >  2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year  <  2008
Database: device
Question: List the carriers of devices that have no devices in stock.
SQL: SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock)
Database: device
Question: What are the carriers of devices that are not in stock anywhere?
SQL: SELECT Carrier FROM device WHERE Device_ID NOT IN (SELECT Device_ID FROM stock)
Database: device
Question: Show the carriers of devices in stock at more than one shop.
SQL: SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*)  >  1
Database: device
Question: What are the carriers of devices that are in stock in more than a single shop?
SQL: SELECT T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID  =  T2.Device_ID GROUP BY T1.Device_ID HAVING COUNT(*)  >  1
Database: cre_Drama_Workshop_Groups
Question: How many bookings do we have?
SQL: SELECT count(*) FROM BOOKINGS
Database: cre_Drama_Workshop_Groups
Question: Count the total number of bookings made.
SQL: SELECT count(*) FROM BOOKINGS
Database: cre_Drama_Workshop_Groups
Question: List the order dates of all the bookings.
SQL: SELECT Order_Date FROM BOOKINGS
Database: cre_Drama_Workshop_Groups
Question: What is the order date of each booking?
SQL: SELECT Order_Date FROM BOOKINGS
Database: cre_Drama_Workshop_Groups
Question: Show all the planned delivery dates and actual delivery dates of bookings.
SQL: SELECT Planned_Delivery_Date ,  Actual_Delivery_Date FROM BOOKINGS
Database: cre_Drama_Workshop_Groups
Question: What are the planned delivery date and actual delivery date for each booking?
SQL: SELECT Planned_Delivery_Date ,  Actual_Delivery_Date FROM BOOKINGS
Database: cre_Drama_Workshop_Groups
Question: How many customers do we have?
SQL: SELECT count(*) FROM CUSTOMERS
Database: cre_Drama_Workshop_Groups
Question: Count the number of customers recorded.
SQL: SELECT count(*) FROM CUSTOMERS
Database: cre_Drama_Workshop_Groups
Question: What are the phone and email for customer Harold?
SQL: SELECT Customer_Phone ,  Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name  =  "Harold"
Database: cre_Drama_Workshop_Groups
Question: Find the phone number and email address of customer "Harold".
SQL: SELECT Customer_Phone ,  Customer_Email_Address FROM CUSTOMERS WHERE Customer_Name  =  "Harold"
Database: cre_Drama_Workshop_Groups
Question: Show all the Store_Name of drama workshop groups.
SQL: SELECT Store_Name FROM Drama_Workshop_Groups
Database: cre_Drama_Workshop_Groups
Question: What are the store names of drama workshop groups?
SQL: SELECT Store_Name FROM Drama_Workshop_Groups
Database: cre_Drama_Workshop_Groups
Question: Show the minimum, average, maximum order quantity of all invoices.
SQL: SELECT min(Order_Quantity) ,  avg(Order_Quantity) ,  max(Order_Quantity) FROM INVOICES
Database: cre_Drama_Workshop_Groups
Question: What are the minimum, average, and maximum quantities ordered? Check all the invoices.
SQL: SELECT min(Order_Quantity) ,  avg(Order_Quantity) ,  max(Order_Quantity) FROM INVOICES
Database: cre_Drama_Workshop_Groups
Question: What are the distinct payment method codes in all the invoices?
SQL: SELECT DISTINCT payment_method_code FROM INVOICES
Database: cre_Drama_Workshop_Groups
Question: Show me the distinct payment method codes from the invoice record.
SQL: SELECT DISTINCT payment_method_code FROM INVOICES
Database: cre_Drama_Workshop_Groups
Question: What is the description of the marketing region China?
SQL: SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name  =  "China"
Database: cre_Drama_Workshop_Groups
Question: Find the marketing region description of China?
SQL: SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name  =  "China"
Database: cre_Drama_Workshop_Groups
Question: Show all the distinct product names with price higher than the average.
SQL: SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price  >  (SELECT avg(Product_Price) FROM PRODUCTS)
Database: cre_Drama_Workshop_Groups
Question: What are the distinct names of the products that cost more than the average?
SQL: SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price  >  (SELECT avg(Product_Price) FROM PRODUCTS)
Database: cre_Drama_Workshop_Groups
Question: What is the name of the most expensive product?
SQL: SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: Tell me the name of the most pricy product.
SQL: SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: List all product names in ascending order of price.
SQL: SELECT Product_Name FROM Products ORDER BY Product_Price ASC
Database: cre_Drama_Workshop_Groups
Question: Sort the names of products in ascending order of their price.
SQL: SELECT Product_Name FROM Products ORDER BY Product_Price ASC
Database: cre_Drama_Workshop_Groups
Question: What is the phone number of the performer Ashley?
SQL: SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name  =  "Ashley"
Database: cre_Drama_Workshop_Groups
Question: Find the phone number of performer "Ashley".
SQL: SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name  =  "Ashley"
Database: cre_Drama_Workshop_Groups
Question: Show all payment method codes and the number of orders for each code.
SQL: SELECT payment_method_code ,  count(*) FROM INVOICES GROUP BY payment_method_code
Database: cre_Drama_Workshop_Groups
Question: List the distinct payment method codes with the number of orders made
SQL: SELECT payment_method_code ,  count(*) FROM INVOICES GROUP BY payment_method_code
Database: cre_Drama_Workshop_Groups
Question: What is the payment method code used by the most orders?
SQL: SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: Find the payment method that is used the most often in all the invoices. Give me its code.
SQL: SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: Which city is the address of the store named "FJA Filming" located in?
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: Find the city the store named "FJA Filming" is in.
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: What are the states or counties of the address of the stores with marketing region code "CA"?
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: Find the states or counties where the stores with marketing region code "CA" are located.
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: What is the name of the marketing region that the store Rob Dinning belongs to?
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: Return the name of the marketing region the store Rob Dinning is located in.
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: What are the descriptions of the service types with product price above 100?
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: Give me the descriptions of the service types that cost more than 100.
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: What is the description, code and the corresponding count of each service type?
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: List the description, code and the number of services for each service type.
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: What is the description and code of the type of service that is performed the most often?
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: Find the description and code of the service type that is performed the most times.
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: What are the phones and emails of workshop groups in which services are performed?
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: Give me all the phone numbers and email addresses of the workshop groups where services are performed.
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: What are the names of workshop groups in which services with product name "film" are performed?
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: Find the names of the workshop groups where services with product name "film" are performed.
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: What are the different product names? What is the average product price for each of them?
SQL: SELECT Product_Name ,  avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name
Database: cre_Drama_Workshop_Groups
Question: For each distinct product name, show its average product price.
SQL: SELECT Product_Name ,  avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name
Database: cre_Drama_Workshop_Groups
Question: What are the product names with average product price smaller than 1000000?
SQL: SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price)  <  1000000
Database: cre_Drama_Workshop_Groups
Question: Find the product names whose average product price is below 1000000.
SQL: SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price)  <  1000000
Database: cre_Drama_Workshop_Groups
Question: What are the total order quantities of photo products?
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: Compute the total order quantities of the product "photo".
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: What are the order details of the products with price higher than 2000?
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: Find the order detail for the products with price above 2000.
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: What are the actual delivery dates of orders with quantity 1?
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: List the actual delivery date for all the orders with quantity 1
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: What are the order dates of orders with price higher than 1000?
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: Find the order dates of the orders with price above 1000.
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: How many distinct currency codes are there for all drama workshop groups?
SQL: SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups
Database: cre_Drama_Workshop_Groups
Question: Find the number of distinct currency codes used in drama workshop groups.
SQL: SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups
Database: cre_Drama_Workshop_Groups
Question: What are the names of the drama workshop groups with address in Feliciaberg city?
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: Return the the names of the drama workshop groups that are located in Feliciaberg city.
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: What are the email addresses of the drama workshop groups with address in Alaska state?
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: List the email addresses of the drama workshop groups located in Alaska state.
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: Show all cities along with the number of drama workshop groups in each city.
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: How many drama workshop groups are there in each city? Return both the city and the count.
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: What is the marketing region code that has the most drama workshop groups?
SQL: SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: Which marketing region has the most drama workshop groups? Give me the region code.
SQL: SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: Show all cities where at least one customer lives in but no performer lives in.
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: Which cities have at least one customer but no performer?
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: What is the most frequent status of bookings?
SQL: SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: Which status code is the most common of all the bookings?
SQL: SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: What are the names of the workshop groups that have bookings with status code "stop"?
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: Which workshop groups have bookings with status code "stop"? Give me the names.
SQL: 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"
Database: cre_Drama_Workshop_Groups
Question: Show the names of all the clients with no booking.
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: What are the names of the clients who do not have any booking?
SQL: 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
Database: cre_Drama_Workshop_Groups
Question: What is the average quantities ordered with payment method code "MasterCard" on invoices?
SQL: SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code  =  "MasterCard"
Database: cre_Drama_Workshop_Groups
Question: Check the invoices record and compute the average quantities ordered with the payment method "MasterCard".
SQL: SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code  =  "MasterCard"
Database: cre_Drama_Workshop_Groups
Question: What is the product ID of the most frequently ordered item on invoices?
SQL: SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: Find the id of the product ordered the most often on invoices.
SQL: SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1
Database: cre_Drama_Workshop_Groups
Question: What is the description of the service type which offers both the photo product and the film product?
SQL: 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'
Database: cre_Drama_Workshop_Groups
Question: Give me the description of the service type that offers not only the photo product but also the film product.
SQL: 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'
Database: music_2
Question: How many bands are there?
SQL: SELECT count(*) FROM Band
Database: music_2
Question: Find the number of bands.
SQL: SELECT count(*) FROM Band
Database: music_2
Question: What are all the labels?
SQL: SELECT DISTINCT label FROM Albums
Database: music_2
Question: What are the different album labels listed?
SQL: SELECT DISTINCT label FROM Albums
Database: music_2
Question: Find all the albums in 2012.
SQL: SELECT * FROM Albums WHERE YEAR  =  2012
Database: music_2
Question: return all columns of the albums created in the year of 2012.
SQL: SELECT * FROM Albums WHERE YEAR  =  2012
Database: music_2
Question: Find all the stage positions of the musicians with first name "Solveig"
SQL: SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE Firstname  =  "Solveig"
Database: music_2
Question: What are the different stage positions for all musicians whose first name is "Solveig"?
SQL: SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id WHERE Firstname  =  "Solveig"
Database: music_2
Question: How many songs are there?
SQL: SELECT count(*) FROM Songs
Database: music_2
Question: Count the number of songs.
SQL: SELECT count(*) FROM Songs
Database: music_2
Question: Find all the songs performed by artist with last name "Heilo"
SQL: 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"
Database: music_2
Question: What are the names of the songs by the artist whose last name is "Heilo"?
SQL: 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"
Database: music_2
Question: Hom many musicians performed in the song "Flash"?
SQL: 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"
Database: music_2
Question: How many musicians play in the song "Flash"?
SQL: 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"
Database: music_2
Question: Find all the songs produced by artists with first name "Marianne".
SQL: 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"
Database: music_2
Question: What are the names of all songs produced by the artist with the first name "Marianne"?
SQL: 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"
Database: music_2
Question: Who performed the song named "Badlands"? Show the first name and the last name.
SQL: 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"
Database: music_2
Question: What are the first and last names of the artist who perfomed the song "Badlands"?
SQL: 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"
Database: music_2
Question: Who is performing in the back stage position for the song "Badlands"? Show the first name and the last name.
SQL: 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"
Database: music_2
Question: What are the first and last names of the performer who was in the back stage position for the song "Badlands"?
SQL: 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"
Database: music_2
Question: How many unique labels are there for albums?
SQL: SELECT count(DISTINCT label) FROM albums
Database: music_2
Question: What are the unique labels for the albums?
SQL: SELECT count(DISTINCT label) FROM albums
Database: music_2
Question: What is the label that has the most albums?
SQL: SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1
Database: music_2
Question: What is the label with the most albums?
SQL: SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1
Database: music_2
Question: What is the last name of the musician that have produced the most number of songs?
SQL: 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
Database: music_2
Question: What is the last name of the musician who was in the most songs?
SQL: 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
Database: music_2
Question: What is the last name of the musician that has been at the back position the most?
SQL: 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
Database: music_2
Question: What is the last name of the musicians who has played back position the most?
SQL: 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
Database: music_2
Question: Find all the songs whose name contains the word "the".
SQL: SELECT title FROM songs WHERE title LIKE '% the %'
Database: music_2
Question: What are the names of the songs whose title has the word "the"?
SQL: SELECT title FROM songs WHERE title LIKE '% the %'
Database: music_2
Question: What are all the instruments used?
SQL: SELECT DISTINCT instrument FROM Instruments
Database: music_2
Question: What are the different instruments listed in the database?
SQL: SELECT DISTINCT instrument FROM Instruments
Database: music_2
Question: What instrument did the musician with last name "Heilo" use in the song "Le Pop"?
SQL: 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"
Database: music_2
Question: What instruments did the musician with the last name "Heilo" play in the song "Le Pop"?
SQL: 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"
Database: music_2
Question: What is the most used instrument?
SQL: SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1
Database: music_2
Question: What instrument is used the most?
SQL: SELECT instrument FROM instruments GROUP BY instrument ORDER BY count(*) DESC LIMIT 1
Database: music_2
Question: How many songs have used the instrument "drums"?
SQL: SELECT count(*) FROM instruments WHERE instrument  =  "drums"
Database: music_2
Question: How many songs use drums as an instrument?
SQL: SELECT count(*) FROM instruments WHERE instrument  =  "drums"
Database: music_2
Question: What instruments does the the song "Le Pop" use?
SQL: SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  "Le Pop"
Database: music_2
Question: What are the instruments are used in the song "Le Pop"?
SQL: SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  "Le Pop"
Database: music_2
Question: How many instruments does the song "Le Pop" use?
SQL: SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  "Le Pop"
Database: music_2
Question: How many different instruments are used in the song "Le Pop"?
SQL: SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid  =  T2.songid WHERE title  =  "Le Pop"
Database: music_2
Question: How many instrument does the musician with last name "Heilo" use?
SQL: SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid  =  T2.id WHERE T2.lastname  =  "Heilo"
Database: music_2
Question: How many different instruments does the musician with the last name "Heilo" use?
SQL: SELECT count(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid  =  T2.id WHERE T2.lastname  =  "Heilo"