text
stringlengths
150
1.06k
source
dict
### QUESTION Find the name of the tryout players who are from the college with largest size. ### CONTEXT CREATE TABLE college (cName VARCHAR, enr VARCHAR); CREATE TABLE tryout (pID VARCHAR, cName VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR) ### ANSWER 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)</s>
{ "answer": "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)", "context": "CREATE TABLE college (cName VARCHAR, enr VARCHAR); CREATE TABLE tryout (pID VARCHAR, cName VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR)", "question": "Find the name of the tryout players who are from the college with largest size." }
### QUESTION What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision. ### CONTEXT CREATE TABLE tryout (cName VARCHAR, decision VARCHAR); CREATE TABLE college (state VARCHAR, enr VARCHAR, cName VARCHAR) ### ANSWER SELECT DISTINCT T1.state, T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'</s>
{ "answer": "SELECT DISTINCT T1.state, T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'", "context": "CREATE TABLE tryout (cName VARCHAR, decision VARCHAR); CREATE TABLE college (state VARCHAR, enr VARCHAR, cName VARCHAR)", "question": "What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision." }
### QUESTION Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment. ### CONTEXT CREATE TABLE College (cName VARCHAR, enr VARCHAR, state VARCHAR) ### ANSWER SELECT cName FROM College WHERE enr < 13000 AND state = "AZ" UNION SELECT cName FROM College WHERE enr > 15000 AND state = "LA"</s>
{ "answer": "SELECT cName FROM College WHERE enr < 13000 AND state = \"AZ\" UNION SELECT cName FROM College WHERE enr > 15000 AND state = \"LA\"", "context": "CREATE TABLE College (cName VARCHAR, enr VARCHAR, state VARCHAR)", "question": "Find the names of either colleges in LA with greater than 15000 size or in state AZ with less than 13000 enrollment." }
### QUESTION Find the names of states that have some college students playing in goalie and mid positions. ### CONTEXT CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)", "question": "Find the names of states that have some college students playing in goalie and mid positions." }
### QUESTION Find the names of states that have some college students playing in the mid position but not in the goalie position. ### CONTEXT CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)", "question": "Find the names of states that have some college students playing in the mid position but not in the goalie position." }
### QUESTION How many states that have some college students playing in the mid position but not in the goalie position. ### CONTEXT CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR) ### ANSWER 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')</s>
{ "answer": "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')", "context": "CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)", "question": "How many states that have some college students playing in the mid position but not in the goalie position." }
### QUESTION Find names of colleges with enrollment greater than that of some (at least one) college in the FL state. ### CONTEXT CREATE TABLE college (cName VARCHAR, enr INTEGER, state VARCHAR) ### ANSWER SELECT DISTINCT cName FROM college WHERE enr > (SELECT MIN(enr) FROM college WHERE state = 'FL')</s>
{ "answer": "SELECT DISTINCT cName FROM college WHERE enr > (SELECT MIN(enr) FROM college WHERE state = 'FL')", "context": "CREATE TABLE college (cName VARCHAR, enr INTEGER, state VARCHAR)", "question": "Find names of colleges with enrollment greater than that of some (at least one) college in the FL state." }
### QUESTION Name the sec wins for .357 percentage and 4-3 home record ### CONTEXT CREATE TABLE table_22825679_1 (sec_wins VARCHAR, percentage VARCHAR, home_record VARCHAR) ### ANSWER SELECT sec_wins FROM table_22825679_1 WHERE percentage = ".357" AND home_record = "4-3"</s>
{ "answer": "SELECT sec_wins FROM table_22825679_1 WHERE percentage = \".357\" AND home_record = \"4-3\"", "context": "CREATE TABLE table_22825679_1 (sec_wins VARCHAR, percentage VARCHAR, home_record VARCHAR)", "question": "Name the sec wins for .357 percentage and 4-3 home record" }
### QUESTION What was the score of the match where paris sg (d1) was team 1? ### CONTEXT CREATE TABLE table_name_63 (score VARCHAR, team_1 VARCHAR) ### ANSWER SELECT score FROM table_name_63 WHERE team_1 = "paris sg (d1)"</s>
{ "answer": "SELECT score FROM table_name_63 WHERE team_1 = \"paris sg (d1)\"", "context": "CREATE TABLE table_name_63 (score VARCHAR, team_1 VARCHAR)", "question": "What was the score of the match where paris sg (d1) was team 1?" }
### QUESTION Show names of shops and the carriers of devices they have in stock. ### CONTEXT CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Device_ID VARCHAR, Shop_ID VARCHAR); CREATE TABLE device (Carrier VARCHAR, Device_ID VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Device_ID VARCHAR, Shop_ID VARCHAR); CREATE TABLE device (Carrier VARCHAR, Device_ID VARCHAR)", "question": "Show names of shops and the carriers of devices they have in stock." }
### QUESTION Show names of shops that have more than one kind of device in stock. ### CONTEXT CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_ID VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_ID VARCHAR)", "question": "Show names of shops that have more than one kind of device in stock." }
### QUESTION Show the name of the shop that has the most kind of devices in stock. ### CONTEXT CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_ID VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_ID VARCHAR)", "question": "Show the name of the shop that has the most kind of devices in stock." }
### QUESTION Show the name of the shop that have the largest quantity of devices in stock. ### CONTEXT CREATE TABLE stock (Shop_ID VARCHAR, quantity INTEGER); CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE stock (Shop_ID VARCHAR, quantity INTEGER); CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR)", "question": "Show the name of the shop that have the largest quantity of devices in stock." }
### QUESTION Which surfaces have the final score of 6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)? ### CONTEXT CREATE TABLE table_22834834_3 (surface VARCHAR, score_in_the_final VARCHAR) ### ANSWER SELECT surface FROM table_22834834_3 WHERE score_in_the_final = "6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)"</s>
{ "answer": "SELECT surface FROM table_22834834_3 WHERE score_in_the_final = \"6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)\"", "context": "CREATE TABLE table_22834834_3 (surface VARCHAR, score_in_the_final VARCHAR)", "question": "Which surfaces have the final score of 6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)?" }
### QUESTION What is the last year that Andre Agassi was the final opponent? ### CONTEXT CREATE TABLE table_22834834_3 (year INTEGER, opponent_in_the_final VARCHAR) ### ANSWER SELECT MAX(year) FROM table_22834834_3 WHERE opponent_in_the_final = "Andre Agassi"</s>
{ "answer": "SELECT MAX(year) FROM table_22834834_3 WHERE opponent_in_the_final = \"Andre Agassi\"", "context": "CREATE TABLE table_22834834_3 (year INTEGER, opponent_in_the_final VARCHAR)", "question": "What is the last year that Andre Agassi was the final opponent?" }
### QUESTION List the names of shops that have no devices in stock. ### CONTEXT CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_Name VARCHAR, Shop_ID VARCHAR) ### ANSWER SELECT Shop_Name FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM stock)</s>
{ "answer": "SELECT Shop_Name FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM stock)", "context": "CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_Name VARCHAR, Shop_ID VARCHAR)", "question": "List the names of shops that have no devices in stock." }
### QUESTION Show the carriers of devices in stock at more than one shop. ### CONTEXT CREATE TABLE stock (Device_ID VARCHAR); CREATE TABLE device (Carrier VARCHAR, Device_ID VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE stock (Device_ID VARCHAR); CREATE TABLE device (Carrier VARCHAR, Device_ID VARCHAR)", "question": "Show the carriers of devices in stock at more than one shop." }
### QUESTION Can you tell me the Entrant that has the Laps of 17? ### CONTEXT CREATE TABLE table_name_77 (entrant VARCHAR, laps VARCHAR) ### ANSWER SELECT entrant FROM table_name_77 WHERE laps = 17</s>
{ "answer": "SELECT entrant FROM table_name_77 WHERE laps = 17", "context": "CREATE TABLE table_name_77 (entrant VARCHAR, laps VARCHAR)", "question": "Can you tell me the Entrant that has the Laps of 17?" }
### QUESTION Who is the opponent in the final when frankfurt is championship and the year is less than 1993.0? ### CONTEXT CREATE TABLE table_22834834_2 (opponent_in_the_final VARCHAR, championship VARCHAR, year VARCHAR) ### ANSWER SELECT opponent_in_the_final FROM table_22834834_2 WHERE championship = "Frankfurt" AND year < 1993.0</s>
{ "answer": "SELECT opponent_in_the_final FROM table_22834834_2 WHERE championship = \"Frankfurt\" AND year < 1993.0", "context": "CREATE TABLE table_22834834_2 (opponent_in_the_final VARCHAR, championship VARCHAR, year VARCHAR)", "question": "Who is the opponent in the final when frankfurt is championship and the year is less than 1993.0?" }
### QUESTION Show the minimum, average, maximum order quantity of all invoices. ### CONTEXT CREATE TABLE INVOICES (Order_Quantity INTEGER) ### ANSWER SELECT MIN(Order_Quantity), AVG(Order_Quantity), MAX(Order_Quantity) FROM INVOICES</s>
{ "answer": "SELECT MIN(Order_Quantity), AVG(Order_Quantity), MAX(Order_Quantity) FROM INVOICES", "context": "CREATE TABLE INVOICES (Order_Quantity INTEGER)", "question": "Show the minimum, average, maximum order quantity of all invoices." }
### QUESTION What is the most recent year where the final score is 4–6, 3–6, 6–4, 5–7? ### CONTEXT CREATE TABLE table_22839669_1 (year INTEGER, score_in_the_final VARCHAR) ### ANSWER SELECT MAX(year) FROM table_22839669_1 WHERE score_in_the_final = "4–6, 3–6, 6–4, 5–7"</s>
{ "answer": "SELECT MAX(year) FROM table_22839669_1 WHERE score_in_the_final = \"4–6, 3–6, 6–4, 5–7\"", "context": "CREATE TABLE table_22839669_1 (year INTEGER, score_in_the_final VARCHAR)", "question": "What is the most recent year where the final score is 4–6, 3–6, 6–4, 5–7?" }
### QUESTION Which city is the address of the store named "FJA Filming" located in? ### CONTEXT CREATE TABLE Addresses (City_Town VARCHAR, Address_ID VARCHAR); CREATE TABLE Stores (Address_ID VARCHAR, Store_Name VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE Addresses (City_Town VARCHAR, Address_ID VARCHAR); CREATE TABLE Stores (Address_ID VARCHAR, Store_Name VARCHAR)", "question": "Which city is the address of the store named \"FJA Filming\" located in?" }
### QUESTION Name the average Played with a Points of 0*? ### CONTEXT CREATE TABLE table_name_72 (played INTEGER, points VARCHAR) ### ANSWER SELECT AVG(played) FROM table_name_72 WHERE points = "0*"</s>
{ "answer": "SELECT AVG(played) FROM table_name_72 WHERE points = \"0*\"", "context": "CREATE TABLE table_name_72 (played INTEGER, points VARCHAR)", "question": "Name the average Played with a Points of 0*?" }
### QUESTION What is the description, code and the corresponding count of each service type? ### CONTEXT CREATE TABLE Services (Service_Type_Code VARCHAR); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE Services (Service_Type_Code VARCHAR); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR)", "question": "What is the description, code and the corresponding count of each service type?" }
### QUESTION What is the description and code of the type of service that is performed the most often? ### CONTEXT CREATE TABLE Services (Service_Type_Code VARCHAR); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE Services (Service_Type_Code VARCHAR); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR)", "question": "What is the description and code of the type of service that is performed the most often?" }
### QUESTION What are the phones and emails of workshop groups in which services are performed? ### CONTEXT CREATE TABLE Services (Workshop_Group_ID VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Phone VARCHAR, Store_Email_Address VARCHAR, Workshop_Group_ID VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE Services (Workshop_Group_ID VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Phone VARCHAR, Store_Email_Address VARCHAR, Workshop_Group_ID VARCHAR)", "question": "What are the phones and emails of workshop groups in which services are performed?" }
### QUESTION What are the names of workshop groups in which services with product name "film" are performed? ### CONTEXT 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) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "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)", "question": "What are the names of workshop groups in which services with product name \"film\" are performed?" }
### QUESTION Name the opponent for 3–6, 4–6, 6–1, 6–7 (7–9) ### CONTEXT CREATE TABLE table_22853654_9 (opponent VARCHAR, result VARCHAR) ### ANSWER SELECT opponent FROM table_22853654_9 WHERE result = "3–6, 4–6, 6–1, 6–7 (7–9)"</s>
{ "answer": "SELECT opponent FROM table_22853654_9 WHERE result = \"3–6, 4–6, 6–1, 6–7 (7–9)\"", "context": "CREATE TABLE table_22853654_9 (opponent VARCHAR, result VARCHAR)", "question": "Name the opponent for 3–6, 4–6, 6–1, 6–7 (7–9)" }
### QUESTION Name the most population 2002 ### CONTEXT CREATE TABLE table_22854436_1 (population__2002_census_data_ INTEGER) ### ANSWER SELECT MAX(population__2002_census_data_) FROM table_22854436_1</s>
{ "answer": "SELECT MAX(population__2002_census_data_) FROM table_22854436_1", "context": "CREATE TABLE table_22854436_1 (population__2002_census_data_ INTEGER)", "question": "Name the most population 2002" }
### QUESTION Name the total water resources m3 for rainfall being 650 ### CONTEXT CREATE TABLE table_22854436_1 (per_capita_average_annual_renewable_water_resources_m_3 VARCHAR, average_annual_rainfall__mm_ VARCHAR) ### ANSWER SELECT COUNT(per_capita_average_annual_renewable_water_resources_m_3) FROM table_22854436_1 WHERE average_annual_rainfall__mm_ = "650"</s>
{ "answer": "SELECT COUNT(per_capita_average_annual_renewable_water_resources_m_3) FROM table_22854436_1 WHERE average_annual_rainfall__mm_ = \"650\"", "context": "CREATE TABLE table_22854436_1 (per_capita_average_annual_renewable_water_resources_m_3 VARCHAR, average_annual_rainfall__mm_ VARCHAR)", "question": "Name the total water resources m3 for rainfall being 650" }
### QUESTION What are the order details of the products with price higher than 2000? ### CONTEXT CREATE TABLE Products (Product_ID VARCHAR, Product_price INTEGER); CREATE TABLE ORDER_ITEMS (Other_Item_Details VARCHAR, Product_ID VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE Products (Product_ID VARCHAR, Product_price INTEGER); CREATE TABLE ORDER_ITEMS (Other_Item_Details VARCHAR, Product_ID VARCHAR)", "question": "What are the order details of the products with price higher than 2000?" }
### QUESTION What are the actual delivery dates of orders with quantity 1? ### CONTEXT CREATE TABLE Customer_Orders (Actual_Delivery_Date VARCHAR, Order_ID VARCHAR); CREATE TABLE ORDER_ITEMS (Order_ID VARCHAR, Order_Quantity VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE Customer_Orders (Actual_Delivery_Date VARCHAR, Order_ID VARCHAR); CREATE TABLE ORDER_ITEMS (Order_ID VARCHAR, Order_Quantity VARCHAR)", "question": "What are the actual delivery dates of orders with quantity 1?" }
### QUESTION What are the order dates of orders with price higher than 1000? ### CONTEXT 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) ### ANSWER 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</s>
{ "answer": "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", "context": "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)", "question": "What are the order dates of orders with price higher than 1000?" }
### QUESTION How many championships have there been with Steffi Graf? ### CONTEXT CREATE TABLE table_22858557_1 (championship VARCHAR, opponent_in_final VARCHAR) ### ANSWER SELECT championship FROM table_22858557_1 WHERE opponent_in_final = "Steffi Graf"</s>
{ "answer": "SELECT championship FROM table_22858557_1 WHERE opponent_in_final = \"Steffi Graf\"", "context": "CREATE TABLE table_22858557_1 (championship VARCHAR, opponent_in_final VARCHAR)", "question": "How many championships have there been with Steffi Graf?" }
### QUESTION What are the names of the drama workshop groups with address in Feliciaberg city? ### CONTEXT CREATE TABLE Addresses (Address_ID VARCHAR, City_Town VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Address_ID VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE Addresses (Address_ID VARCHAR, City_Town VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Address_ID VARCHAR)", "question": "What are the names of the drama workshop groups with address in Feliciaberg city?" }
### QUESTION What is the amount of US open runner-up score? ### CONTEXT CREATE TABLE table_22858557_1 (score_in_final VARCHAR, championship VARCHAR, outcome VARCHAR) ### ANSWER SELECT COUNT(score_in_final) FROM table_22858557_1 WHERE championship = "US Open" AND outcome = "Runner-up"</s>
{ "answer": "SELECT COUNT(score_in_final) FROM table_22858557_1 WHERE championship = \"US Open\" AND outcome = \"Runner-up\"", "context": "CREATE TABLE table_22858557_1 (score_in_final VARCHAR, championship VARCHAR, outcome VARCHAR)", "question": "What is the amount of US open runner-up score?" }
### QUESTION Name the annual rainfail for 2002 population being 493984 ### CONTEXT CREATE TABLE table_22854436_1 (average_annual_rainfall__mm_ VARCHAR, population__2002_census_data_ VARCHAR) ### ANSWER SELECT average_annual_rainfall__mm_ FROM table_22854436_1 WHERE population__2002_census_data_ = 493984</s>
{ "answer": "SELECT average_annual_rainfall__mm_ FROM table_22854436_1 WHERE population__2002_census_data_ = 493984", "context": "CREATE TABLE table_22854436_1 (average_annual_rainfall__mm_ VARCHAR, population__2002_census_data_ VARCHAR)", "question": "Name the annual rainfail for 2002 population being 493984" }
### QUESTION What is the marketing region code that has the most drama workshop groups? ### CONTEXT CREATE TABLE Drama_Workshop_Groups (Marketing_Region_Code VARCHAR) ### ANSWER SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Drama_Workshop_Groups (Marketing_Region_Code VARCHAR)", "question": "What is the marketing region code that has the most drama workshop groups?" }
### QUESTION Show all cities where at least one customer lives in but no performer lives in. ### CONTEXT CREATE TABLE Customers (Address_ID VARCHAR); CREATE TABLE Addresses (City_Town VARCHAR, Address_ID VARCHAR); CREATE TABLE Performers (Address_ID VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE Customers (Address_ID VARCHAR); CREATE TABLE Addresses (City_Town VARCHAR, Address_ID VARCHAR); CREATE TABLE Performers (Address_ID VARCHAR)", "question": "Show all cities where at least one customer lives in but no performer lives in." }
### QUESTION Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35? ### CONTEXT CREATE TABLE table_name_94 (played INTEGER, goals_against VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR) ### ANSWER SELECT AVG(played) FROM table_name_94 WHERE position < 4 AND wins > 16 AND points = 38 AND goals_against > 35</s>
{ "answer": "SELECT AVG(played) FROM table_name_94 WHERE position < 4 AND wins > 16 AND points = 38 AND goals_against > 35", "context": "CREATE TABLE table_name_94 (played INTEGER, goals_against VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR)", "question": "Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35?" }
### QUESTION What are the names of the workshop groups that have bookings with status code "stop"? ### CONTEXT CREATE TABLE Bookings (Workshop_Group_ID VARCHAR, Status_Code VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Workshop_Group_ID VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE Bookings (Workshop_Group_ID VARCHAR, Status_Code VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Workshop_Group_ID VARCHAR)", "question": "What are the names of the workshop groups that have bookings with status code \"stop\"?" }
### QUESTION What is the To Par score for the player with an overall score of 71-68-69=208? ### CONTEXT CREATE TABLE table_name_38 (to_par VARCHAR, score VARCHAR) ### ANSWER SELECT to_par FROM table_name_38 WHERE score = 71 - 68 - 69 = 208</s>
{ "answer": "SELECT to_par FROM table_name_38 WHERE score = 71 - 68 - 69 = 208", "context": "CREATE TABLE table_name_38 (to_par VARCHAR, score VARCHAR)", "question": "What is the To Par score for the player with an overall score of 71-68-69=208?" }
### QUESTION What are the email addresses of the drama workshop groups with address in Alaska state? ### CONTEXT CREATE TABLE Drama_Workshop_Groups (Store_Email_Address VARCHAR, Address_ID VARCHAR); CREATE TABLE Addresses (Address_ID VARCHAR, State_County VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE Drama_Workshop_Groups (Store_Email_Address VARCHAR, Address_ID VARCHAR); CREATE TABLE Addresses (Address_ID VARCHAR, State_County VARCHAR)", "question": "What are the email addresses of the drama workshop groups with address in Alaska state?" }
### QUESTION What is the description of the service type which offers both the photo product and the film product? ### CONTEXT CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR); CREATE TABLE Services (Service_Type_Code VARCHAR, Product_Name VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR); CREATE TABLE Services (Service_Type_Code VARCHAR, Product_Name VARCHAR)", "question": "What is the description of the service type which offers both the photo product and the film product?" }
### QUESTION How many Matches have Balls smaller than 224, and an Average larger than 38.25, and an S/Rate larger than 139.09? ### CONTEXT CREATE TABLE table_name_87 (matches INTEGER, s_rate VARCHAR, balls VARCHAR, average VARCHAR) ### ANSWER SELECT SUM(matches) FROM table_name_87 WHERE balls < 224 AND average > 38.25 AND s_rate > 139.09</s>
{ "answer": "SELECT SUM(matches) FROM table_name_87 WHERE balls < 224 AND average > 38.25 AND s_rate > 139.09", "context": "CREATE TABLE table_name_87 (matches INTEGER, s_rate VARCHAR, balls VARCHAR, average VARCHAR)", "question": "How many Matches have Balls smaller than 224, and an Average larger than 38.25, and an S/Rate larger than 139.09?" }
### QUESTION Name the high assists for american airlines center 19,585 ### CONTEXT CREATE TABLE table_22871239_8 (high_assists VARCHAR, location_attendance VARCHAR) ### ANSWER SELECT high_assists FROM table_22871239_8 WHERE location_attendance = "American Airlines Center 19,585"</s>
{ "answer": "SELECT high_assists FROM table_22871239_8 WHERE location_attendance = \"American Airlines Center 19,585\"", "context": "CREATE TABLE table_22871239_8 (high_assists VARCHAR, location_attendance VARCHAR)", "question": "Name the high assists for american airlines center 19,585" }
### QUESTION Find all the songs produced by artists with first name "Marianne". ### CONTEXT CREATE TABLE Songs (Title VARCHAR, SongId VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, firstname VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE Songs (Title VARCHAR, SongId VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, firstname VARCHAR)", "question": "Find all the songs produced by artists with first name \"Marianne\"." }
### QUESTION Who performed the song named "Badlands"? Show the first name and the last name. ### CONTEXT CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)", "question": "Who performed the song named \"Badlands\"? Show the first name and the last name." }
### QUESTION Who is performing in the back stage position for the song "Badlands"? Show the first name and the last name. ### CONTEXT 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) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "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)", "question": "Who is performing in the back stage position for the song \"Badlands\"? Show the first name and the last name." }
### QUESTION What is the last name of the musician that have produced the most number of songs? ### CONTEXT CREATE TABLE Songs (SongId VARCHAR); CREATE TABLE Band (lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE Songs (SongId VARCHAR); CREATE TABLE Band (lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR)", "question": "What is the last name of the musician that have produced the most number of songs?" }
### QUESTION What is the last name of the musician that has been at the back position the most? ### CONTEXT CREATE TABLE Band (lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE Band (lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR)", "question": "What is the last name of the musician that has been at the back position the most?" }
### QUESTION What instrument did the musician with last name "Heilo" use in the song "Le Pop"? ### CONTEXT 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) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "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)", "question": "What instrument did the musician with last name \"Heilo\" use in the song \"Le Pop\"?" }
### QUESTION What is the most assists for points 129-3.9? ### CONTEXT CREATE TABLE table_22875514_3 (assists INTEGER, points VARCHAR) ### ANSWER SELECT MAX(assists) FROM table_22875514_3 WHERE points = "129-3.9"</s>
{ "answer": "SELECT MAX(assists) FROM table_22875514_3 WHERE points = \"129-3.9\"", "context": "CREATE TABLE table_22875514_3 (assists INTEGER, points VARCHAR)", "question": "What is the most assists for points 129-3.9?" }
### QUESTION How many instruments does the song "Le Pop" use? ### CONTEXT CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR) ### ANSWER SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"</s>
{ "answer": "SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Le Pop\"", "context": "CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)", "question": "How many instruments does the song \"Le Pop\" use?" }
### QUESTION How many instrument does the musician with last name "Heilo" use? ### CONTEXT CREATE TABLE instruments (bandmateid VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR) ### ANSWER SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo"</s>
{ "answer": "SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = \"Heilo\"", "context": "CREATE TABLE instruments (bandmateid VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR)", "question": "How many instrument does the musician with last name \"Heilo\" use?" }
### QUESTION Name the number of high rebounds for l 92–96 (ot) ### CONTEXT CREATE TABLE table_22879262_14 (high_rebounds VARCHAR, score VARCHAR) ### ANSWER SELECT COUNT(high_rebounds) FROM table_22879262_14 WHERE score = "L 92–96 (OT)"</s>
{ "answer": "SELECT COUNT(high_rebounds) FROM table_22879262_14 WHERE score = \"L 92–96 (OT)\"", "context": "CREATE TABLE table_22879262_14 (high_rebounds VARCHAR, score VARCHAR)", "question": "Name the number of high rebounds for l 92–96 (ot)" }
### QUESTION What is the Average Qualifying Goals for Jack Froggatt where the Final Goals is greater than 0? ### CONTEXT CREATE TABLE table_name_3 (qualifying_goals INTEGER, player VARCHAR, finals_goals VARCHAR) ### ANSWER SELECT AVG(qualifying_goals) FROM table_name_3 WHERE player = "jack froggatt" AND finals_goals > 0</s>
{ "answer": "SELECT AVG(qualifying_goals) FROM table_name_3 WHERE player = \"jack froggatt\" AND finals_goals > 0", "context": "CREATE TABLE table_name_3 (qualifying_goals INTEGER, player VARCHAR, finals_goals VARCHAR)", "question": "What is the Average Qualifying Goals for Jack Froggatt where the Final Goals is greater than 0?" }
### QUESTION Which vocal type is the most frequently appearring type? ### CONTEXT CREATE TABLE vocals (TYPE VARCHAR) ### ANSWER SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE vocals (TYPE VARCHAR)", "question": "Which vocal type is the most frequently appearring type?" }
### QUESTION What is the total number of Total Goals scored by Stan Mortensen where the Qualifying Goals is greater than 3? ### CONTEXT CREATE TABLE table_name_1 (total_goals VARCHAR, player VARCHAR, qualifying_goals VARCHAR) ### ANSWER SELECT COUNT(total_goals) FROM table_name_1 WHERE player = "stan mortensen" AND qualifying_goals > 3</s>
{ "answer": "SELECT COUNT(total_goals) FROM table_name_1 WHERE player = \"stan mortensen\" AND qualifying_goals > 3", "context": "CREATE TABLE table_name_1 (total_goals VARCHAR, player VARCHAR, qualifying_goals VARCHAR)", "question": "What is the total number of Total Goals scored by Stan Mortensen where the Qualifying Goals is greater than 3?" }
### QUESTION Which vocal type did the musician with first name "Solveig" played in the song with title "A Bar in Amsterdam"? ### CONTEXT CREATE TABLE vocals (songid VARCHAR, bandmate VARCHAR); CREATE TABLE band (id VARCHAR, firstname VARCHAR); CREATE TABLE songs (songid VARCHAR, title VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE vocals (songid VARCHAR, bandmate VARCHAR); CREATE TABLE band (id VARCHAR, firstname VARCHAR); CREATE TABLE songs (songid VARCHAR, title VARCHAR)", "question": "Which vocal type did the musician with first name \"Solveig\" played in the song with title \"A Bar in Amsterdam\"?" }
### QUESTION Find all the songs that do not have a lead vocal. ### CONTEXT CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE vocals (songid VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE vocals (songid VARCHAR)", "question": "Find all the songs that do not have a lead vocal." }
### QUESTION Who performed the song named "Le Pop"? ### CONTEXT CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)", "question": "Who performed the song named \"Le Pop\"?" }
### QUESTION What instrument did the musician with last name "Heilo" use in the song "Badlands"? ### CONTEXT 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) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "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)", "question": "What instrument did the musician with last name \"Heilo\" use in the song \"Badlands\"?" }
### QUESTION How many instruments does the song "Badlands" use? ### CONTEXT CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR) ### ANSWER SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands"</s>
{ "answer": "SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Badlands\"", "context": "CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)", "question": "How many instruments does the song \"Badlands\" use?" }
### QUESTION What Episode has a Rating of 1.8, and Viewers (m) smaller than 2.73? ### CONTEXT CREATE TABLE table_name_35 (episode VARCHAR, rating VARCHAR, viewers__m_ VARCHAR) ### ANSWER SELECT episode FROM table_name_35 WHERE rating = "1.8" AND viewers__m_ < 2.73</s>
{ "answer": "SELECT episode FROM table_name_35 WHERE rating = \"1.8\" AND viewers__m_ < 2.73", "context": "CREATE TABLE table_name_35 (episode VARCHAR, rating VARCHAR, viewers__m_ VARCHAR)", "question": "What Episode has a Rating of 1.8, and Viewers (m) smaller than 2.73?" }
### QUESTION How many songs have a shared vocal? ### CONTEXT CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR) ### ANSWER SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared"</s>
{ "answer": "SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = \"shared\"", "context": "CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)", "question": "How many songs have a shared vocal?" }
### QUESTION Find all the songs that do not have a back vocal. ### CONTEXT CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE vocals (songid VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE vocals (songid VARCHAR)", "question": "Find all the songs that do not have a back vocal." }
### QUESTION Which vocal type has the band mate with first name "Solveig" played the most? ### CONTEXT CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR)", "question": "Which vocal type has the band mate with first name \"Solveig\" played the most?" }
### QUESTION Which vocal type did the musician with last name "Heilo" played in the song with title "Der Kapitan"? ### CONTEXT CREATE TABLE band (id VARCHAR, lastname VARCHAR); CREATE TABLE vocals (songid VARCHAR, bandmate VARCHAR); CREATE TABLE songs (songid VARCHAR, title VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE band (id VARCHAR, lastname VARCHAR); CREATE TABLE vocals (songid VARCHAR, bandmate VARCHAR); CREATE TABLE songs (songid VARCHAR, title VARCHAR)", "question": "Which vocal type did the musician with last name \"Heilo\" played in the song with title \"Der Kapitan\"?" }
### QUESTION which Surface has Opponents in the final of mark edmondson sherwood stewart, and a Tournament of dallas , u.s.? ### CONTEXT CREATE TABLE table_name_74 (surface VARCHAR, opponents_in_the_final VARCHAR, tournament VARCHAR) ### ANSWER SELECT surface FROM table_name_74 WHERE opponents_in_the_final = "mark edmondson sherwood stewart" AND tournament = "dallas , u.s."</s>
{ "answer": "SELECT surface FROM table_name_74 WHERE opponents_in_the_final = \"mark edmondson sherwood stewart\" AND tournament = \"dallas , u.s.\"", "context": "CREATE TABLE table_name_74 (surface VARCHAR, opponents_in_the_final VARCHAR, tournament VARCHAR)", "question": "which Surface has Opponents in the final of mark edmondson sherwood stewart, and a Tournament of dallas , u.s.?" }
### QUESTION Which vocal type has the band mate with first name "Marianne" played the most? ### CONTEXT CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR)", "question": "Which vocal type has the band mate with first name \"Marianne\" played the most?" }
### QUESTION Find the first name of the band mate that has performed in most songs. ### CONTEXT CREATE TABLE Songs (SongId VARCHAR); CREATE TABLE Band (firstname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE Songs (SongId VARCHAR); CREATE TABLE Band (firstname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR)", "question": "Find the first name of the band mate that has performed in most songs." }
### QUESTION What are the songs in album "A Kiss Before You Go: Live in Hamburg"? ### CONTEXT CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR, title VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR, title VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR)", "question": "What are the songs in album \"A Kiss Before You Go: Live in Hamburg\"?" }
### QUESTION What are all the songs in albums under label "Universal Music Group"? ### CONTEXT CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR)", "question": "What are all the songs in albums under label \"Universal Music Group\"?" }
### QUESTION What was the total of Mauro Camoranesi when coppa italia was 0, champions league was 1 and less than 2 serie A? ### CONTEXT CREATE TABLE table_name_91 (total VARCHAR, name VARCHAR, serie_a VARCHAR, coppa_italia VARCHAR, champions_league VARCHAR) ### ANSWER SELECT total FROM table_name_91 WHERE coppa_italia = 0 AND champions_league = 1 AND serie_a < 2 AND name = "mauro camoranesi"</s>
{ "answer": "SELECT total FROM table_name_91 WHERE coppa_italia = 0 AND champions_league = 1 AND serie_a < 2 AND name = \"mauro camoranesi\"", "context": "CREATE TABLE table_name_91 (total VARCHAR, name VARCHAR, serie_a VARCHAR, coppa_italia VARCHAR, champions_league VARCHAR)", "question": "What was the total of Mauro Camoranesi when coppa italia was 0, champions league was 1 and less than 2 serie A?" }
### QUESTION Find the number of songs in all the studio albums. ### CONTEXT CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR)", "question": "Find the number of songs in all the studio albums." }
### QUESTION What's the total when the champions league was 0, the coppa italia was less than 0, and the Serie A was more than 1? ### CONTEXT CREATE TABLE table_name_62 (total INTEGER, coppa_italia VARCHAR, champions_league VARCHAR, serie_a VARCHAR) ### ANSWER SELECT SUM(total) FROM table_name_62 WHERE champions_league = 0 AND serie_a > 1 AND coppa_italia < 0</s>
{ "answer": "SELECT SUM(total) FROM table_name_62 WHERE champions_league = 0 AND serie_a > 1 AND coppa_italia < 0", "context": "CREATE TABLE table_name_62 (total INTEGER, coppa_italia VARCHAR, champions_league VARCHAR, serie_a VARCHAR)", "question": "What's the total when the champions league was 0, the coppa italia was less than 0, and the Serie A was more than 1?" }
### QUESTION Who is performing in the back stage position for the song "Der Kapitan"? Show the first name and last name. ### CONTEXT 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) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "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)", "question": "Who is performing in the back stage position for the song \"Der Kapitan\"? Show the first name and last name." }
### QUESTION Can you tell me the Giant Slalom that has the Combined of 1, and the Country of united states, and the Victories larger than 11? ### CONTEXT CREATE TABLE table_name_14 (giant_slalom VARCHAR, victories VARCHAR, combined VARCHAR, country VARCHAR) ### ANSWER SELECT giant_slalom FROM table_name_14 WHERE combined = "1" AND country = "united states" AND victories > 11</s>
{ "answer": "SELECT giant_slalom FROM table_name_14 WHERE combined = \"1\" AND country = \"united states\" AND victories > 11", "context": "CREATE TABLE table_name_14 (giant_slalom VARCHAR, victories VARCHAR, combined VARCHAR, country VARCHAR)", "question": "Can you tell me the Giant Slalom that has the Combined of 1, and the Country of united states, and the Victories larger than 11?" }
### QUESTION What is the total revenue of all companies whose main office is at Tokyo or Taiwan? ### CONTEXT CREATE TABLE manufacturers (revenue INTEGER, Headquarter VARCHAR) ### ANSWER SELECT SUM(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'</s>
{ "answer": "SELECT SUM(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'", "context": "CREATE TABLE manufacturers (revenue INTEGER, Headquarter VARCHAR)", "question": "What is the total revenue of all companies whose main office is at Tokyo or Taiwan?" }
### QUESTION Find the name of product that is produced by both companies Creative Labs and Sony. ### CONTEXT CREATE TABLE manufacturers (code VARCHAR, name VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE manufacturers (code VARCHAR, name VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR)", "question": "Find the name of product that is produced by both companies Creative Labs and Sony." }
### QUESTION David James Elliott directed which episode number within the series? ### CONTEXT CREATE TABLE table_228973_11 (no_in_series VARCHAR, directed_by VARCHAR) ### ANSWER SELECT no_in_series FROM table_228973_11 WHERE directed_by = "David James Elliott"</s>
{ "answer": "SELECT no_in_series FROM table_228973_11 WHERE directed_by = \"David James Elliott\"", "context": "CREATE TABLE table_228973_11 (no_in_series VARCHAR, directed_by VARCHAR)", "question": "David James Elliott directed which episode number within the series?" }
### QUESTION What was the score on the first leg when gimnasia de mendoza played at home for the second leg? ### CONTEXT CREATE TABLE table_name_57 (home__2nd_leg_ VARCHAR) ### ANSWER SELECT 1 AS st_leg FROM table_name_57 WHERE home__2nd_leg_ = "gimnasia de mendoza"</s>
{ "answer": "SELECT 1 AS st_leg FROM table_name_57 WHERE home__2nd_leg_ = \"gimnasia de mendoza\"", "context": "CREATE TABLE table_name_57 (home__2nd_leg_ VARCHAR)", "question": "What was the score on the first leg when gimnasia de mendoza played at home for the second leg?" }
### QUESTION How many product # have episode 1? ### CONTEXT CREATE TABLE table_2289806_1 (prod__number INTEGER, episode__number VARCHAR) ### ANSWER SELECT MAX(prod__number) FROM table_2289806_1 WHERE episode__number = 1</s>
{ "answer": "SELECT MAX(prod__number) FROM table_2289806_1 WHERE episode__number = 1", "context": "CREATE TABLE table_2289806_1 (prod__number INTEGER, episode__number VARCHAR)", "question": "How many product # have episode 1?" }
### QUESTION Name the windows builders for apache gump ### CONTEXT CREATE TABLE table_22903426_1 (windows_builders VARCHAR, name VARCHAR) ### ANSWER SELECT windows_builders FROM table_22903426_1 WHERE name = "Apache Gump"</s>
{ "answer": "SELECT windows_builders FROM table_22903426_1 WHERE name = \"Apache Gump\"", "context": "CREATE TABLE table_22903426_1 (windows_builders VARCHAR, name VARCHAR)", "question": "Name the windows builders for apache gump" }
### QUESTION Find the total revenue for each manufacturer. ### CONTEXT CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER) ### ANSWER SELECT SUM(revenue), name FROM manufacturers GROUP BY name</s>
{ "answer": "SELECT SUM(revenue), name FROM manufacturers GROUP BY name", "context": "CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER)", "question": "Find the total revenue for each manufacturer." }
### QUESTION What is the highest average with less than 3 places, less than 433 total points, and a rank less than 2? ### CONTEXT CREATE TABLE table_name_62 (average INTEGER, rank_by_average VARCHAR, place VARCHAR, total_points VARCHAR) ### ANSWER SELECT MAX(average) FROM table_name_62 WHERE place < 3 AND total_points < 433 AND rank_by_average < 2</s>
{ "answer": "SELECT MAX(average) FROM table_name_62 WHERE place < 3 AND total_points < 433 AND rank_by_average < 2", "context": "CREATE TABLE table_name_62 (average INTEGER, rank_by_average VARCHAR, place VARCHAR, total_points VARCHAR)", "question": "What is the highest average with less than 3 places, less than 433 total points, and a rank less than 2?" }
### QUESTION Find number of products which Sony does not make. ### CONTEXT CREATE TABLE manufacturers (code VARCHAR, name VARCHAR); CREATE TABLE products (name VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR) ### ANSWER 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')</s>
{ "answer": "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')", "context": "CREATE TABLE manufacturers (code VARCHAR, name VARCHAR); CREATE TABLE products (name VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR)", "question": "Find number of products which Sony does not make." }
### QUESTION Find the number of products for each manufacturer, showing the name of each company. ### CONTEXT CREATE TABLE products (Manufacturer VARCHAR); CREATE TABLE manufacturers (name VARCHAR, code VARCHAR) ### ANSWER SELECT COUNT(*), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name</s>
{ "answer": "SELECT COUNT(*), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name", "context": "CREATE TABLE products (Manufacturer VARCHAR); CREATE TABLE manufacturers (name VARCHAR, code VARCHAR)", "question": "Find the number of products for each manufacturer, showing the name of each company." }
### QUESTION What Score in the final has a Surface of hard, a Championship of washington, d.c. , u.s., and an Opponent in the final of ivan lendl? ### CONTEXT CREATE TABLE table_name_44 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR, championship VARCHAR) ### ANSWER SELECT score_in_the_final FROM table_name_44 WHERE surface = "hard" AND championship = "washington, d.c. , u.s." AND opponent_in_the_final = "ivan lendl"</s>
{ "answer": "SELECT score_in_the_final FROM table_name_44 WHERE surface = \"hard\" AND championship = \"washington, d.c. , u.s.\" AND opponent_in_the_final = \"ivan lendl\"", "context": "CREATE TABLE table_name_44 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR, championship VARCHAR)", "question": "What Score in the final has a Surface of hard, a Championship of washington, d.c. , u.s., and an Opponent in the final of ivan lendl?" }
### QUESTION What is the highest Number of seasons in Liga MX for Club cruz azul, when their season in the top division is higher than 68? ### CONTEXT CREATE TABLE table_name_33 (number_of_seasons_in_liga_mx INTEGER, club VARCHAR, number_of_seasons_in_top_division VARCHAR) ### ANSWER SELECT MAX(number_of_seasons_in_liga_mx) FROM table_name_33 WHERE club = "cruz azul" AND number_of_seasons_in_top_division > 68</s>
{ "answer": "SELECT MAX(number_of_seasons_in_liga_mx) FROM table_name_33 WHERE club = \"cruz azul\" AND number_of_seasons_in_top_division > 68", "context": "CREATE TABLE table_name_33 (number_of_seasons_in_liga_mx INTEGER, club VARCHAR, number_of_seasons_in_top_division VARCHAR)", "question": "What is the highest Number of seasons in Liga MX for Club cruz azul, when their season in the top division is higher than 68?" }
### QUESTION What is the total number of Top division titles for the club that has more than 40 seasons in top division, a First season of current spell in top division of 1943-44, and more than 89 seasons in Liga MX? ### CONTEXT CREATE TABLE table_name_55 (top_division_titles VARCHAR, number_of_seasons_in_liga_mx VARCHAR, number_of_seasons_in_top_division VARCHAR, first_season_of_current_spell_in_top_division VARCHAR) ### ANSWER SELECT COUNT(top_division_titles) FROM table_name_55 WHERE number_of_seasons_in_top_division > 40 AND first_season_of_current_spell_in_top_division = "1943-44" AND number_of_seasons_in_liga_mx > 89</s>
{ "answer": "SELECT COUNT(top_division_titles) FROM table_name_55 WHERE number_of_seasons_in_top_division > 40 AND first_season_of_current_spell_in_top_division = \"1943-44\" AND number_of_seasons_in_liga_mx > 89", "context": "CREATE TABLE table_name_55 (top_division_titles VARCHAR, number_of_seasons_in_liga_mx VARCHAR, number_of_seasons_in_top_division VARCHAR, first_season_of_current_spell_in_top_division VARCHAR)", "question": "What is the total number of Top division titles for the club that has more than 40 seasons in top division, a First season of current spell in top division of 1943-44, and more than 89 seasons in Liga MX?" }
### QUESTION How many top division titles does Club Guadalajara have, with more than 42 seasons in Liga MX? ### CONTEXT CREATE TABLE table_name_66 (top_division_titles INTEGER, number_of_seasons_in_liga_mx VARCHAR, club VARCHAR) ### ANSWER SELECT SUM(top_division_titles) FROM table_name_66 WHERE number_of_seasons_in_liga_mx > 42 AND club = "guadalajara"</s>
{ "answer": "SELECT SUM(top_division_titles) FROM table_name_66 WHERE number_of_seasons_in_liga_mx > 42 AND club = \"guadalajara\"", "context": "CREATE TABLE table_name_66 (top_division_titles INTEGER, number_of_seasons_in_liga_mx VARCHAR, club VARCHAR)", "question": "How many top division titles does Club Guadalajara have, with more than 42 seasons in Liga MX?" }
### QUESTION How many race 3 winners were there when Mitch Evans won race 2? ### CONTEXT CREATE TABLE table_22905641_2 (race_3_winner VARCHAR, race_2_winner VARCHAR) ### ANSWER SELECT COUNT(race_3_winner) FROM table_22905641_2 WHERE race_2_winner = "Mitch Evans"</s>
{ "answer": "SELECT COUNT(race_3_winner) FROM table_22905641_2 WHERE race_2_winner = \"Mitch Evans\"", "context": "CREATE TABLE table_22905641_2 (race_3_winner VARCHAR, race_2_winner VARCHAR)", "question": "How many race 3 winners were there when Mitch Evans won race 2?" }
### QUESTION What date was the race at the Symmons Plains Raceway? ### CONTEXT CREATE TABLE table_22905641_2 (date VARCHAR, circuit VARCHAR) ### ANSWER SELECT date FROM table_22905641_2 WHERE circuit = "Symmons Plains Raceway"</s>
{ "answer": "SELECT date FROM table_22905641_2 WHERE circuit = \"Symmons Plains Raceway\"", "context": "CREATE TABLE table_22905641_2 (date VARCHAR, circuit VARCHAR)", "question": "What date was the race at the Symmons Plains Raceway?" }
### QUESTION Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order). ### CONTEXT CREATE TABLE products (name VARCHAR, price VARCHAR) ### ANSWER SELECT name, price FROM products WHERE price >= 180 ORDER BY price DESC, name</s>
{ "answer": "SELECT name, price FROM products WHERE price >= 180 ORDER BY price DESC, name", "context": "CREATE TABLE products (name VARCHAR, price VARCHAR)", "question": "Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order)." }
### QUESTION How many # were written by david hoselton? ### CONTEXT CREATE TABLE table_22904752_1 (_number INTEGER, written_by VARCHAR) ### ANSWER SELECT MAX(_number) FROM table_22904752_1 WHERE written_by = "David Hoselton"</s>
{ "answer": "SELECT MAX(_number) FROM table_22904752_1 WHERE written_by = \"David Hoselton\"", "context": "CREATE TABLE table_22904752_1 (_number INTEGER, written_by VARCHAR)", "question": "How many # were written by david hoselton?" }
### QUESTION Select the names of manufacturer whose products have an average price higher than or equal to $150. ### CONTEXT CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Price INTEGER, manufacturer VARCHAR, price INTEGER) ### ANSWER SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name HAVING AVG(T1.price) >= 150</s>
{ "answer": "SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name HAVING AVG(T1.price) >= 150", "context": "CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Price INTEGER, manufacturer VARCHAR, price INTEGER)", "question": "Select the names of manufacturer whose products have an average price higher than or equal to $150." }
### QUESTION What was the winner share (in $) in the year when Se Ri Pak (2) was the champion? ### CONTEXT CREATE TABLE table_229059_2 (winners_share__ INTEGER, champion VARCHAR) ### ANSWER SELECT MIN(winners_share__) AS $_ FROM table_229059_2 WHERE champion = "Se Ri Pak (2)"</s>
{ "answer": "SELECT MIN(winners_share__) AS $_ FROM table_229059_2 WHERE champion = \"Se Ri Pak (2)\"", "context": "CREATE TABLE table_229059_2 (winners_share__ INTEGER, champion VARCHAR)", "question": "What was the winner share (in $) in the year when Se Ri Pak (2) was the champion?" }
### QUESTION Select the name of each manufacturer along with the name and price of its most expensive product. ### CONTEXT CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Name VARCHAR, Price INTEGER, manufacturer VARCHAR) ### ANSWER SELECT T1.Name, MAX(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name</s>
{ "answer": "SELECT T1.Name, MAX(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name", "context": "CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Name VARCHAR, Price INTEGER, manufacturer VARCHAR)", "question": "Select the name of each manufacturer along with the name and price of its most expensive product." }