text
stringlengths
150
1.06k
source
dict
### QUESTION Which Reservoir capacity has an Impounded body of water of tumut two pondage? ### CONTEXT CREATE TABLE table_name_41 (reservoir_capacity VARCHAR, impounded_body_of_water VARCHAR) ### ANSWER SELECT reservoir_capacity FROM table_name_41 WHERE impounded_body_of_water = "tumut two pondage"</s>
{ "answer": "SELECT reservoir_capacity FROM table_name_41 WHERE impounded_body_of_water = \"tumut two pondage\"", "context": "CREATE TABLE table_name_41 (reservoir_capacity VARCHAR, impounded_body_of_water VARCHAR)", "question": "Which Reservoir capacity has an Impounded body of water of tumut two pondage?" }
### QUESTION Find the names of scientists who are not working on the project with the highest hours. ### CONTEXT CREATE TABLE scientists (name VARCHAR, SSN VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (code VARCHAR, hours INTEGER); CREATE TABLE scientists (name VARCHAR, hours INTEGER); CREATE TABLE projects (name VARCHAR, hours INTEGER) ### ANSWER SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MAX(hours) FROM projects)</s>
{ "answer": "SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MAX(hours) FROM projects)", "context": "CREATE TABLE scientists (name VARCHAR, SSN VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (code VARCHAR, hours INTEGER); CREATE TABLE scientists (name VARCHAR, hours INTEGER); CREATE TABLE projects (name VARCHAR, hours INTEGER)", "question": "Find the names of scientists who are not working on the project with the highest hours." }
### QUESTION List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name. ### CONTEXT CREATE TABLE AssignedTo (Scientist VARCHAR, Project VARCHAR); CREATE TABLE Projects (Name VARCHAR, Hours VARCHAR, Code VARCHAR); CREATE TABLE Scientists (Name VARCHAR, SSN VARCHAR) ### ANSWER SELECT T1.Name, T3.Name, T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name, T1.Name</s>
{ "answer": "SELECT T1.Name, T3.Name, T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name, T1.Name", "context": "CREATE TABLE AssignedTo (Scientist VARCHAR, Project VARCHAR); CREATE TABLE Projects (Name VARCHAR, Hours VARCHAR, Code VARCHAR); CREATE TABLE Scientists (Name VARCHAR, SSN VARCHAR)", "question": "List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name." }
### QUESTION Find name of the project that needs the least amount of time to finish and the name of scientists who worked on it. ### CONTEXT CREATE TABLE scientists (name VARCHAR, SSN VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR, hours INTEGER); CREATE TABLE projects (hours INTEGER) ### ANSWER SELECT T2.name, T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MIN(hours) FROM projects)</s>
{ "answer": "SELECT T2.name, T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MIN(hours) FROM projects)", "context": "CREATE TABLE scientists (name VARCHAR, SSN VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR, hours INTEGER); CREATE TABLE projects (hours INTEGER)", "question": "Find name of the project that needs the least amount of time to finish and the name of scientists who worked on it." }
### QUESTION What Semimajor axis (AU) has a Companion (in order from star) of g? ### CONTEXT CREATE TABLE table_name_86 (semimajor_axis___au__ VARCHAR, companion__in_order_from_star_ VARCHAR) ### ANSWER SELECT semimajor_axis___au__ FROM table_name_86 WHERE companion__in_order_from_star_ = "g"</s>
{ "answer": "SELECT semimajor_axis___au__ FROM table_name_86 WHERE companion__in_order_from_star_ = \"g\"", "context": "CREATE TABLE table_name_86 (semimajor_axis___au__ VARCHAR, companion__in_order_from_star_ VARCHAR)", "question": "What Semimajor axis (AU) has a Companion (in order from star) of g?" }
### QUESTION List the full amount of week 36 results when week 32 is 13.2%. ### CONTEXT CREATE TABLE table_23680576_3 (week_36 VARCHAR, week_32 VARCHAR) ### ANSWER SELECT COUNT(week_36) FROM table_23680576_3 WHERE week_32 = "13.2%"</s>
{ "answer": "SELECT COUNT(week_36) FROM table_23680576_3 WHERE week_32 = \"13.2%\"", "context": "CREATE TABLE table_23680576_3 (week_36 VARCHAR, week_32 VARCHAR)", "question": "List the full amount of week 36 results when week 32 is 13.2%." }
### QUESTION WHAT IS THE PACKAGE VERSION FOR blackberry storm 9530, APPLICATION 5.0.0.419, AND MTS MOBILITY? ### CONTEXT CREATE TABLE table_name_9 (package_version VARCHAR, carrier VARCHAR, device VARCHAR, applications VARCHAR) ### ANSWER SELECT package_version FROM table_name_9 WHERE device = "blackberry storm 9530" AND applications = "5.0.0.419" AND carrier = "mts mobility"</s>
{ "answer": "SELECT package_version FROM table_name_9 WHERE device = \"blackberry storm 9530\" AND applications = \"5.0.0.419\" AND carrier = \"mts mobility\"", "context": "CREATE TABLE table_name_9 (package_version VARCHAR, carrier VARCHAR, device VARCHAR, applications VARCHAR)", "question": "WHAT IS THE PACKAGE VERSION FOR blackberry storm 9530, APPLICATION 5.0.0.419, AND MTS MOBILITY?" }
### QUESTION What was the 2006 population count of the local government area where Coober Pedy is located? ### CONTEXT CREATE TABLE table_23685890_2 (pop_2006 VARCHAR, major_town VARCHAR) ### ANSWER SELECT pop_2006 FROM table_23685890_2 WHERE major_town = "Coober Pedy"</s>
{ "answer": "SELECT pop_2006 FROM table_23685890_2 WHERE major_town = \"Coober Pedy\"", "context": "CREATE TABLE table_23685890_2 (pop_2006 VARCHAR, major_town VARCHAR)", "question": "What was the 2006 population count of the local government area where Coober Pedy is located?" }
### QUESTION Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005. ### CONTEXT CREATE TABLE APPELLATIONS (Appelation VARCHAR, Area VARCHAR); CREATE TABLE WINE (Price INTEGER, Appelation VARCHAR, year VARCHAR) ### ANSWER SELECT MAX(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = "Central Coast" AND T2.year < 2005</s>
{ "answer": "SELECT MAX(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = \"Central Coast\" AND T2.year < 2005", "context": "CREATE TABLE APPELLATIONS (Appelation VARCHAR, Area VARCHAR); CREATE TABLE WINE (Price INTEGER, Appelation VARCHAR, year VARCHAR)", "question": "Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005." }
### QUESTION What are the wines that have prices lower than 50 and have appelations in Monterey county? ### CONTEXT CREATE TABLE APPELLATIONS (Appelation VARCHAR, County VARCHAR); CREATE TABLE WINE (Name VARCHAR, Appelation VARCHAR, price VARCHAR) ### ANSWER SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Monterey" AND T2.price < 50</s>
{ "answer": "SELECT T2.Name FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = \"Monterey\" AND T2.price < 50", "context": "CREATE TABLE APPELLATIONS (Appelation VARCHAR, County VARCHAR); CREATE TABLE WINE (Name VARCHAR, Appelation VARCHAR, price VARCHAR)", "question": "What are the wines that have prices lower than 50 and have appelations in Monterey county?" }
### QUESTION What is the high 10 profile number when the high profile is 80? ### CONTEXT CREATE TABLE table_237036_2 (high_10_profile INTEGER, high_profile VARCHAR) ### ANSWER SELECT MAX(high_10_profile) FROM table_237036_2 WHERE high_profile = 80</s>
{ "answer": "SELECT MAX(high_10_profile) FROM table_237036_2 WHERE high_profile = 80", "context": "CREATE TABLE table_237036_2 (high_10_profile INTEGER, high_profile VARCHAR)", "question": "What is the high 10 profile number when the high profile is 80?" }
### QUESTION What are the luma samples at level 1.3? ### CONTEXT CREATE TABLE table_237036_2 (luma_samples_s VARCHAR, level VARCHAR) ### ANSWER SELECT luma_samples_s FROM table_237036_2 WHERE level = "1.3"</s>
{ "answer": "SELECT luma_samples_s FROM table_237036_2 WHERE level = \"1.3\"", "context": "CREATE TABLE table_237036_2 (luma_samples_s VARCHAR, level VARCHAR)", "question": "What are the luma samples at level 1.3?" }
### QUESTION What is Local Location, when Resident Country is "Belgium", and when Mission is "Poland"? ### CONTEXT CREATE TABLE table_name_68 (local_location VARCHAR, resident_country VARCHAR, mission VARCHAR) ### ANSWER SELECT local_location FROM table_name_68 WHERE resident_country = "belgium" AND mission = "poland"</s>
{ "answer": "SELECT local_location FROM table_name_68 WHERE resident_country = \"belgium\" AND mission = \"poland\"", "context": "CREATE TABLE table_name_68 (local_location VARCHAR, resident_country VARCHAR, mission VARCHAR)", "question": "What is Local Location, when Resident Country is \"Belgium\", and when Mission is \"Poland\"?" }
### QUESTION What is the color of the grape whose wine products has the highest average price? ### CONTEXT CREATE TABLE GRAPES (Color VARCHAR, Grape VARCHAR); CREATE TABLE WINE (Grape VARCHAR) ### ANSWER SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1</s>
{ "answer": "SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1", "context": "CREATE TABLE GRAPES (Color VARCHAR, Grape VARCHAR); CREATE TABLE WINE (Grape VARCHAR)", "question": "What is the color of the grape whose wine products has the highest average price?" }
### QUESTION What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape? ### CONTEXT CREATE TABLE WINE (Price INTEGER, Cases INTEGER, YEAR VARCHAR, Grape VARCHAR) ### ANSWER SELECT AVG(Price), AVG(Cases) FROM WINE WHERE YEAR = 2009 AND Grape = "Zinfandel"</s>
{ "answer": "SELECT AVG(Price), AVG(Cases) FROM WINE WHERE YEAR = 2009 AND Grape = \"Zinfandel\"", "context": "CREATE TABLE WINE (Price INTEGER, Cases INTEGER, YEAR VARCHAR, Grape VARCHAR)", "question": "What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape?" }
### QUESTION In what bowl game was the result Oklahoma 31, Stanford 27? ### CONTEXT CREATE TABLE table_23718905_6 (bowl_game VARCHAR, matchup_results VARCHAR) ### ANSWER SELECT bowl_game FROM table_23718905_6 WHERE matchup_results = "Oklahoma 31, Stanford 27"</s>
{ "answer": "SELECT bowl_game FROM table_23718905_6 WHERE matchup_results = \"Oklahoma 31, Stanford 27\"", "context": "CREATE TABLE table_23718905_6 (bowl_game VARCHAR, matchup_results VARCHAR)", "question": "In what bowl game was the result Oklahoma 31, Stanford 27?" }
### QUESTION What was the television that was dated December 28, 2009? ### CONTEXT CREATE TABLE table_23718905_6 (television VARCHAR, date VARCHAR) ### ANSWER SELECT television FROM table_23718905_6 WHERE date = "December 28, 2009"</s>
{ "answer": "SELECT television FROM table_23718905_6 WHERE date = \"December 28, 2009\"", "context": "CREATE TABLE table_23718905_6 (television VARCHAR, date VARCHAR)", "question": "What was the television that was dated December 28, 2009?" }
### QUESTION Find the top 3 wineries with the greatest number of wines made of white color grapes. ### CONTEXT CREATE TABLE GRAPES (GRAPE VARCHAR, Color VARCHAR); CREATE TABLE WINE (Winery VARCHAR, GRAPE VARCHAR) ### ANSWER SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = "White" GROUP BY T2.Winery ORDER BY COUNT(*) DESC LIMIT 3</s>
{ "answer": "SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = \"White\" GROUP BY T2.Winery ORDER BY COUNT(*) DESC LIMIT 3", "context": "CREATE TABLE GRAPES (GRAPE VARCHAR, Color VARCHAR); CREATE TABLE WINE (Winery VARCHAR, GRAPE VARCHAR)", "question": "Find the top 3 wineries with the greatest number of wines made of white color grapes." }
### QUESTION Which company name has headquarters in nagaokakyo, kyoto? ### CONTEXT CREATE TABLE table_237199_1 (company_name VARCHAR, world_headquarters VARCHAR) ### ANSWER SELECT company_name FROM table_237199_1 WHERE world_headquarters = "Nagaokakyo, Kyoto"</s>
{ "answer": "SELECT company_name FROM table_237199_1 WHERE world_headquarters = \"Nagaokakyo, Kyoto\"", "context": "CREATE TABLE table_237199_1 (company_name VARCHAR, world_headquarters VARCHAR)", "question": "Which company name has headquarters in nagaokakyo, kyoto?" }
### QUESTION Find the average price of wines that are not produced from Sonoma county. ### CONTEXT CREATE TABLE wine (price INTEGER, Appelation VARCHAR); CREATE TABLE APPELLATIONS (Appelation VARCHAR, County VARCHAR); CREATE TABLE WINE (Appelation VARCHAR) ### ANSWER SELECT AVG(price) FROM wine WHERE NOT Appelation IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma')</s>
{ "answer": "SELECT AVG(price) FROM wine WHERE NOT Appelation IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma')", "context": "CREATE TABLE wine (price INTEGER, Appelation VARCHAR); CREATE TABLE APPELLATIONS (Appelation VARCHAR, County VARCHAR); CREATE TABLE WINE (Appelation VARCHAR)", "question": "Find the average price of wines that are not produced from Sonoma county." }
### QUESTION Find the county where produces the most number of wines with score higher than 90. ### CONTEXT CREATE TABLE WINE (Appelation VARCHAR, Score INTEGER); CREATE TABLE APPELLATIONS (County VARCHAR, Appelation VARCHAR) ### ANSWER SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE WINE (Appelation VARCHAR, Score INTEGER); CREATE TABLE APPELLATIONS (County VARCHAR, Appelation VARCHAR)", "question": "Find the county where produces the most number of wines with score higher than 90." }
### QUESTION What is the round for a year earlier than 1987? ### CONTEXT CREATE TABLE table_name_19 (round VARCHAR, year INTEGER) ### ANSWER SELECT round FROM table_name_19 WHERE year < 1987</s>
{ "answer": "SELECT round FROM table_name_19 WHERE year < 1987", "context": "CREATE TABLE table_name_19 (round VARCHAR, year INTEGER)", "question": "What is the round for a year earlier than 1987?" }
### QUESTION What is the round when Grand Slam was the Davis Cup? ### CONTEXT CREATE TABLE table_name_92 (round VARCHAR, grand_slam VARCHAR) ### ANSWER SELECT round FROM table_name_92 WHERE grand_slam = "davis cup"</s>
{ "answer": "SELECT round FROM table_name_92 WHERE grand_slam = \"davis cup\"", "context": "CREATE TABLE table_name_92 (round VARCHAR, grand_slam VARCHAR)", "question": "What is the round when Grand Slam was the Davis Cup?" }
### QUESTION What is the winning coach total number if the top team in regular season (points) is the Kansas City Spurs (110 points)? ### CONTEXT CREATE TABLE table_237757_3 (winning_coach VARCHAR, top_team_in_regular_season__points_ VARCHAR) ### ANSWER SELECT COUNT(winning_coach) FROM table_237757_3 WHERE top_team_in_regular_season__points_ = "Kansas City Spurs (110 points)"</s>
{ "answer": "SELECT COUNT(winning_coach) FROM table_237757_3 WHERE top_team_in_regular_season__points_ = \"Kansas City Spurs (110 points)\"", "context": "CREATE TABLE table_237757_3 (winning_coach VARCHAR, top_team_in_regular_season__points_ VARCHAR)", "question": "What is the winning coach total number if the top team in regular season (points) is the Kansas City Spurs (110 points)?" }
### QUESTION Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers. ### CONTEXT CREATE TABLE station (LOCATION VARCHAR, number_of_platforms VARCHAR, total_passengers VARCHAR) ### ANSWER SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms >= 15 AND total_passengers > 25</s>
{ "answer": "SELECT DISTINCT LOCATION FROM station WHERE number_of_platforms >= 15 AND total_passengers > 25", "context": "CREATE TABLE station (LOCATION VARCHAR, number_of_platforms VARCHAR, total_passengers VARCHAR)", "question": "Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers." }
### QUESTION What was the market share of the operator whose technology is CDMA EVDO GSM EDGE HSPA+? ### CONTEXT CREATE TABLE table_23801721_1 (market_share VARCHAR, technology VARCHAR) ### ANSWER SELECT market_share FROM table_23801721_1 WHERE technology = "CDMA EVDO GSM EDGE HSPA+"</s>
{ "answer": "SELECT market_share FROM table_23801721_1 WHERE technology = \"CDMA EVDO GSM EDGE HSPA+\"", "context": "CREATE TABLE table_23801721_1 (market_share VARCHAR, technology VARCHAR)", "question": "What was the market share of the operator whose technology is CDMA EVDO GSM EDGE HSPA+?" }
### QUESTION What is Event, when Winning Driver is "Laurent Aiello Laurent Aiello", when Round is greater than 1, and when Circuit is "Wunstorf"? ### CONTEXT CREATE TABLE table_name_29 (event VARCHAR, circuit VARCHAR, winning_driver VARCHAR, round VARCHAR) ### ANSWER SELECT event FROM table_name_29 WHERE winning_driver = "laurent aiello laurent aiello" AND round > 1 AND circuit = "wunstorf"</s>
{ "answer": "SELECT event FROM table_name_29 WHERE winning_driver = \"laurent aiello laurent aiello\" AND round > 1 AND circuit = \"wunstorf\"", "context": "CREATE TABLE table_name_29 (event VARCHAR, circuit VARCHAR, winning_driver VARCHAR, round VARCHAR)", "question": "What is Event, when Winning Driver is \"Laurent Aiello Laurent Aiello\", when Round is greater than 1, and when Circuit is \"Wunstorf\"?" }
### QUESTION What was the production code for the episode directed by Michael Morris? ### CONTEXT CREATE TABLE table_23793770_1 (production_code INTEGER, directed_by VARCHAR) ### ANSWER SELECT MIN(production_code) FROM table_23793770_1 WHERE directed_by = "Michael Morris"</s>
{ "answer": "SELECT MIN(production_code) FROM table_23793770_1 WHERE directed_by = \"Michael Morris\"", "context": "CREATE TABLE table_23793770_1 (production_code INTEGER, directed_by VARCHAR)", "question": "What was the production code for the episode directed by Michael Morris?" }
### QUESTION Show all locations which don't have a train station with at least 15 platforms. ### CONTEXT CREATE TABLE station (LOCATION VARCHAR, number_of_platforms VARCHAR) ### ANSWER SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms >= 15</s>
{ "answer": "SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms >= 15", "context": "CREATE TABLE station (LOCATION VARCHAR, number_of_platforms VARCHAR)", "question": "Show all locations which don't have a train station with at least 15 platforms." }
### QUESTION Show the station name and number of trains in each station. ### CONTEXT CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR) ### ANSWER SELECT T2.name, COUNT(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id</s>
{ "answer": "SELECT T2.name, COUNT(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id", "context": "CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR)", "question": "Show the station name and number of trains in each station." }
### QUESTION show the train name and station name for each train. ### CONTEXT CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train (name VARCHAR, train_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR, train_id VARCHAR) ### ANSWER SELECT T2.name, T3.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id</s>
{ "answer": "SELECT T2.name, T3.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id", "context": "CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train (name VARCHAR, train_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR, train_id VARCHAR)", "question": "show the train name and station name for each train." }
### QUESTION Show all train names and times in stations in London in descending order by train time. ### CONTEXT CREATE TABLE train_station (station_id VARCHAR, train_id VARCHAR); CREATE TABLE station (station_id VARCHAR, location VARCHAR); CREATE TABLE train (name VARCHAR, time VARCHAR, train_id VARCHAR) ### ANSWER SELECT T3.name, T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T2.location = 'London' ORDER BY T3.time DESC</s>
{ "answer": "SELECT T3.name, T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T2.location = 'London' ORDER BY T3.time DESC", "context": "CREATE TABLE train_station (station_id VARCHAR, train_id VARCHAR); CREATE TABLE station (station_id VARCHAR, location VARCHAR); CREATE TABLE train (name VARCHAR, time VARCHAR, train_id VARCHAR)", "question": "Show all train names and times in stations in London in descending order by train time." }
### QUESTION Show the station name with greatest number of trains. ### CONTEXT CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR) ### ANSWER SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR)", "question": "Show the station name with greatest number of trains." }
### QUESTION What was the rating share when the total viewers was 11.49 million? ### CONTEXT CREATE TABLE table_23793770_2 (rating VARCHAR, total_viewers__in_millions_ VARCHAR) ### ANSWER SELECT rating / SUM(rating) FROM table_23793770_2 WHERE total_viewers__in_millions_ = "11.49"</s>
{ "answer": "SELECT rating / SUM(rating) FROM table_23793770_2 WHERE total_viewers__in_millions_ = \"11.49\"", "context": "CREATE TABLE table_23793770_2 (rating VARCHAR, total_viewers__in_millions_ VARCHAR)", "question": "What was the rating share when the total viewers was 11.49 million?" }
### QUESTION If the rating is 9.1, what was the total viewers? ### CONTEXT CREATE TABLE table_23799417_2 (total_viewers__in_millions_ VARCHAR, rating VARCHAR) ### ANSWER SELECT total_viewers__in_millions_ FROM table_23799417_2 WHERE rating = "9.1"</s>
{ "answer": "SELECT total_viewers__in_millions_ FROM table_23799417_2 WHERE rating = \"9.1\"", "context": "CREATE TABLE table_23799417_2 (total_viewers__in_millions_ VARCHAR, rating VARCHAR)", "question": "If the rating is 9.1, what was the total viewers?" }
### QUESTION what is the episode title on original air date of September 30, 2007? ### CONTEXT CREATE TABLE table_23799417_2 (title VARCHAR, original_airing VARCHAR) ### ANSWER SELECT title FROM table_23799417_2 WHERE original_airing = "September 30, 2007"</s>
{ "answer": "SELECT title FROM table_23799417_2 WHERE original_airing = \"September 30, 2007\"", "context": "CREATE TABLE table_23799417_2 (title VARCHAR, original_airing VARCHAR)", "question": "what is the episode title on original air date of September 30, 2007?" }
### QUESTION What are the names of the stations which serve both "Ananthapuri Express" and "Guruvayur Express" trains? ### CONTEXT CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train (train_id VARCHAR, Name VARCHAR); CREATE TABLE train_station (station_id VARCHAR, train_id VARCHAR) ### ANSWER SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = "Ananthapuri Express" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = "Guruvayur Express"</s>
{ "answer": "SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = \"Ananthapuri Express\" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = \"Guruvayur Express\"", "context": "CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train (train_id VARCHAR, Name VARCHAR); CREATE TABLE train_station (station_id VARCHAR, train_id VARCHAR)", "question": "What are the names of the stations which serve both \"Ananthapuri Express\" and \"Guruvayur Express\" trains?" }
### QUESTION Find the names of the trains that do not pass any station located in London. ### CONTEXT CREATE TABLE station (station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR); CREATE TABLE train_station (train_id VARCHAR, station_id VARCHAR); CREATE TABLE train (name VARCHAR, train_id VARCHAR) ### ANSWER SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id = T2.train_id WHERE NOT T1.station_id IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id = T4.station_id WHERE t4.location = "London")</s>
{ "answer": "SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id = T2.train_id WHERE NOT T1.station_id IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id = T4.station_id WHERE t4.location = \"London\")", "context": "CREATE TABLE station (station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR); CREATE TABLE train_station (train_id VARCHAR, station_id VARCHAR); CREATE TABLE train (name VARCHAR, train_id VARCHAR)", "question": "Find the names of the trains that do not pass any station located in London." }
### QUESTION If the establishment is 49319, what is the sales, receipts or shipments maximum amount? ### CONTEXT CREATE TABLE table_23802822_1 (_receipts VARCHAR, _or_shipments__$1 VARCHAR, sales INTEGER, establishments VARCHAR) ### ANSWER SELECT MAX(sales), _receipts, _or_shipments__$1, 000 AS _ FROM table_23802822_1 WHERE establishments = 49319</s>
{ "answer": "SELECT MAX(sales), _receipts, _or_shipments__$1, 000 AS _ FROM table_23802822_1 WHERE establishments = 49319", "context": "CREATE TABLE table_23802822_1 (_receipts VARCHAR, _or_shipments__$1 VARCHAR, sales INTEGER, establishments VARCHAR)", "question": "If the establishment is 49319, what is the sales, receipts or shipments maximum amount?" }
### QUESTION When was the average attendance 789? ### CONTEXT CREATE TABLE table_2380212_1 (year INTEGER, avg_attendance VARCHAR) ### ANSWER SELECT MIN(year) FROM table_2380212_1 WHERE avg_attendance = 789</s>
{ "answer": "SELECT MIN(year) FROM table_2380212_1 WHERE avg_attendance = 789", "context": "CREATE TABLE table_2380212_1 (year INTEGER, avg_attendance VARCHAR)", "question": "When was the average attendance 789?" }
### QUESTION Which Team has a Pick # of 148? ### CONTEXT CREATE TABLE table_name_59 (team_from VARCHAR, pick__number VARCHAR) ### ANSWER SELECT team_from FROM table_name_59 WHERE pick__number = 148</s>
{ "answer": "SELECT team_from FROM table_name_59 WHERE pick__number = 148", "context": "CREATE TABLE table_name_59 (team_from VARCHAR, pick__number VARCHAR)", "question": "Which Team has a Pick # of 148?" }
### QUESTION Name the team #2 for river plate ### CONTEXT CREATE TABLE table_23812628_1 (team__number2 VARCHAR, team__number1 VARCHAR) ### ANSWER SELECT team__number2 FROM table_23812628_1 WHERE team__number1 = "River Plate"</s>
{ "answer": "SELECT team__number2 FROM table_23812628_1 WHERE team__number1 = \"River Plate\"", "context": "CREATE TABLE table_23812628_1 (team__number2 VARCHAR, team__number1 VARCHAR)", "question": "Name the team #2 for river plate" }
### QUESTION What is every media type for the Psychedelic Trance genre? ### CONTEXT CREATE TABLE table_23829490_1 (media_type VARCHAR, genre VARCHAR) ### ANSWER SELECT media_type FROM table_23829490_1 WHERE genre = "Psychedelic Trance"</s>
{ "answer": "SELECT media_type FROM table_23829490_1 WHERE genre = \"Psychedelic Trance\"", "context": "CREATE TABLE table_23829490_1 (media_type VARCHAR, genre VARCHAR)", "question": "What is every media type for the Psychedelic Trance genre?" }
### QUESTION Which city does staff with first name as Janessa and last name as Sawayn live? ### CONTEXT CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR) ### ANSWER SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"</s>
{ "answer": "SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\"", "context": "CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)", "question": "Which city does staff with first name as Janessa and last name as Sawayn live?" }
### QUESTION Which To par has a Country of australia, and a Year(s) won of 1990? ### CONTEXT CREATE TABLE table_name_42 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR) ### ANSWER SELECT MIN(to_par) FROM table_name_42 WHERE country = "australia" AND year_s__won = "1990"</s>
{ "answer": "SELECT MIN(to_par) FROM table_name_42 WHERE country = \"australia\" AND year_s__won = \"1990\"", "context": "CREATE TABLE table_name_42 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR)", "question": "Which To par has a Country of australia, and a Year(s) won of 1990?" }
### QUESTION How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin? ### CONTEXT CREATE TABLE Lessons (lesson_time INTEGER, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### ANSWER SELECT SUM(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin"</s>
{ "answer": "SELECT SUM(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\"", "context": "CREATE TABLE Lessons (lesson_time INTEGER, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "question": "How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?" }
### QUESTION Which country and state does staff with first name as Janessa and last name as Sawayn lived? ### CONTEXT CREATE TABLE Addresses (country VARCHAR, state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### ANSWER SELECT T1.country, T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"</s>
{ "answer": "SELECT T1.country, T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\"", "context": "CREATE TABLE Addresses (country VARCHAR, state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "question": "Which country and state does staff with first name as Janessa and last name as Sawayn lived?" }
### QUESTION How many staff live in state Georgia? ### CONTEXT CREATE TABLE Addresses (state_province_county VARCHAR) ### ANSWER SELECT COUNT(*) FROM Addresses WHERE state_province_county = "Georgia"</s>
{ "answer": "SELECT COUNT(*) FROM Addresses WHERE state_province_county = \"Georgia\"", "context": "CREATE TABLE Addresses (state_province_county VARCHAR)", "question": "How many staff live in state Georgia?" }
### QUESTION Find out the first name and last name of staff lived in city Damianfort. ### CONTEXT CREATE TABLE Staff (first_name VARCHAR, last_name VARCHAR, staff_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR) ### ANSWER SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "Damianfort"</s>
{ "answer": "SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = \"Damianfort\"", "context": "CREATE TABLE Staff (first_name VARCHAR, last_name VARCHAR, staff_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR)", "question": "Find out the first name and last name of staff lived in city Damianfort." }
### QUESTION What is every composition name when the music library is Heart of Asia and media type is album with the Trance genre? ### CONTEXT CREATE TABLE table_23829490_1 (composition_name VARCHAR, genre VARCHAR, music_library VARCHAR, media_type VARCHAR) ### ANSWER SELECT composition_name FROM table_23829490_1 WHERE music_library = "Heart of Asia" AND media_type = "Album" AND genre = "Trance"</s>
{ "answer": "SELECT composition_name FROM table_23829490_1 WHERE music_library = \"Heart of Asia\" AND media_type = \"Album\" AND genre = \"Trance\"", "context": "CREATE TABLE table_23829490_1 (composition_name VARCHAR, genre VARCHAR, music_library VARCHAR, media_type VARCHAR)", "question": "What is every composition name when the music library is Heart of Asia and media type is album with the Trance genre?" }
### QUESTION List the states which have between 2 to 4 staffs living there. ### CONTEXT CREATE TABLE Addresses (state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR) ### ANSWER SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING COUNT(*) BETWEEN 2 AND 4</s>
{ "answer": "SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING COUNT(*) BETWEEN 2 AND 4", "context": "CREATE TABLE Addresses (state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR)", "question": "List the states which have between 2 to 4 staffs living there." }
### QUESTION List the first name and last name of all customers. ### CONTEXT CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR) ### ANSWER SELECT first_name, last_name FROM Customers</s>
{ "answer": "SELECT first_name, last_name FROM Customers", "context": "CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR)", "question": "List the first name and last name of all customers." }
### QUESTION What is the zip code of staff with first name as Janessa and last name as Sawayn lived? ### CONTEXT CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### ANSWER SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"</s>
{ "answer": "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\"", "context": "CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "question": "What is the zip code of staff with first name as Janessa and last name as Sawayn lived?" }
### QUESTION How many values of last year in QLD Cup if QLD Cup Premierships is 1996, 2001? ### CONTEXT CREATE TABLE table_2383498_4 (last_year_in_qld_cup VARCHAR, qld_cup_premierships VARCHAR) ### ANSWER SELECT COUNT(last_year_in_qld_cup) FROM table_2383498_4 WHERE qld_cup_premierships = "1996, 2001"</s>
{ "answer": "SELECT COUNT(last_year_in_qld_cup) FROM table_2383498_4 WHERE qld_cup_premierships = \"1996, 2001\"", "context": "CREATE TABLE table_2383498_4 (last_year_in_qld_cup VARCHAR, qld_cup_premierships VARCHAR)", "question": "How many values of last year in QLD Cup if QLD Cup Premierships is 1996, 2001?" }
### QUESTION Which province has the partido Socialista del Pueblo Extremeño party? ### CONTEXT CREATE TABLE table_name_31 (province VARCHAR, party VARCHAR) ### ANSWER SELECT province FROM table_name_31 WHERE party = "partido socialista del pueblo extremeño"</s>
{ "answer": "SELECT province FROM table_name_31 WHERE party = \"partido socialista del pueblo extremeño\"", "context": "CREATE TABLE table_name_31 (province VARCHAR, party VARCHAR)", "question": "Which province has the partido Socialista del Pueblo Extremeño party?" }
### QUESTION When are the birthdays of customer who are classified as 'Good Customer' status? ### CONTEXT CREATE TABLE Customers (date_of_birth VARCHAR, customer_status_code VARCHAR) ### ANSWER SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer'</s>
{ "answer": "SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer'", "context": "CREATE TABLE Customers (date_of_birth VARCHAR, customer_status_code VARCHAR)", "question": "When are the birthdays of customer who are classified as 'Good Customer' status?" }
### QUESTION What is the undisclosed when Aldertown is Aldershot Town and Wycombe Wanderers is Oxford United? ### CONTEXT CREATE TABLE table_23835213_2 (undisclosed VARCHAR, wycombe_wanderers VARCHAR) ### ANSWER SELECT undisclosed FROM table_23835213_2 WHERE "aldershot_town" = "aldershot_town" AND wycombe_wanderers = "Oxford United"</s>
{ "answer": "SELECT undisclosed FROM table_23835213_2 WHERE \"aldershot_town\" = \"aldershot_town\" AND wycombe_wanderers = \"Oxford United\"", "context": "CREATE TABLE table_23835213_2 (undisclosed VARCHAR, wycombe_wanderers VARCHAR)", "question": "What is the undisclosed when Aldertown is Aldershot Town and Wycombe Wanderers is Oxford United?" }
### QUESTION Which customer status code has least number of customers? ### CONTEXT CREATE TABLE Customers (customer_status_code VARCHAR) ### ANSWER SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY COUNT(*) LIMIT 1</s>
{ "answer": "SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY COUNT(*) LIMIT 1", "context": "CREATE TABLE Customers (customer_status_code VARCHAR)", "question": "Which customer status code has least number of customers?" }
### QUESTION How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed? ### CONTEXT CREATE TABLE Lessons (customer_id VARCHAR, lesson_status_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### ANSWER SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin" AND T1.lesson_status_code = "Completed"</s>
{ "answer": "SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\" AND T1.lesson_status_code = \"Completed\"", "context": "CREATE TABLE Lessons (customer_id VARCHAR, lesson_status_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "question": "How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?" }
### QUESTION List first name and last name of customers lived in city Lockmanfurt. ### CONTEXT CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, customer_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR) ### ANSWER SELECT T1.first_name, T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = "Lockmanfurt"</s>
{ "answer": "SELECT T1.first_name, T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = \"Lockmanfurt\"", "context": "CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, customer_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR)", "question": "List first name and last name of customers lived in city Lockmanfurt." }
### QUESTION Which country does customer with first name as Carole and last name as Bernhard lived in? ### CONTEXT CREATE TABLE Addresses (country VARCHAR, address_id VARCHAR); CREATE TABLE Customers (customer_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### ANSWER SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard"</s>
{ "answer": "SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"", "context": "CREATE TABLE Addresses (country VARCHAR, address_id VARCHAR); CREATE TABLE Customers (customer_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "question": "Which country does customer with first name as Carole and last name as Bernhard lived in?" }
### QUESTION What is zip code of customer with first name as Carole and last name as Bernhard? ### CONTEXT CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Customers (customer_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### ANSWER SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard"</s>
{ "answer": "SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = \"Carole\" AND T1.last_name = \"Bernhard\"", "context": "CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Customers (customer_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "question": "What is zip code of customer with first name as Carole and last name as Bernhard?" }
### QUESTION Which city does has most number of customers? ### CONTEXT CREATE TABLE Customers (customer_address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR) ### ANSWER SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Customers (customer_address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)", "question": "Which city does has most number of customers?" }
### QUESTION How much in total does customer with first name as Carole and last name as Bernhard paid? ### CONTEXT CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Customer_Payments (amount_payment INTEGER, customer_id VARCHAR) ### ANSWER SELECT SUM(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Carole" AND T2.last_name = "Bernhard"</s>
{ "answer": "SELECT SUM(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Carole\" AND T2.last_name = \"Bernhard\"", "context": "CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Customer_Payments (amount_payment INTEGER, customer_id VARCHAR)", "question": "How much in total does customer with first name as Carole and last name as Bernhard paid?" }
### QUESTION List first name and last name of customers that have more than 2 payments. ### CONTEXT CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customer_Payments (customer_id VARCHAR) ### ANSWER SELECT T2.first_name, T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 2</s>
{ "answer": "SELECT T2.first_name, T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 2", "context": "CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customer_Payments (customer_id VARCHAR)", "question": "List first name and last name of customers that have more than 2 payments." }
### QUESTION List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'. ### CONTEXT CREATE TABLE Lessons (lesson_id VARCHAR, staff_id VARCHAR); CREATE TABLE Staff (staff_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### ANSWER SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" AND nickname LIKE "%s%"</s>
{ "answer": "SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\" AND nickname LIKE \"%s%\"", "context": "CREATE TABLE Lessons (lesson_id VARCHAR, staff_id VARCHAR); CREATE TABLE Staff (staff_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "question": "List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'." }
### QUESTION What is average lesson price taught by staff with first name as Janessa and last name as Sawayn? ### CONTEXT CREATE TABLE Lessons (staff_id VARCHAR); CREATE TABLE Staff (staff_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### ANSWER SELECT AVG(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"</s>
{ "answer": "SELECT AVG(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\"", "context": "CREATE TABLE Lessons (staff_id VARCHAR); CREATE TABLE Staff (staff_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "question": "What is average lesson price taught by staff with first name as Janessa and last name as Sawayn?" }
### QUESTION How many lesson does customer with first name Ray took? ### CONTEXT CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR); CREATE TABLE Lessons (customer_id VARCHAR) ### ANSWER SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Ray"</s>
{ "answer": "SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Ray\"", "context": "CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR); CREATE TABLE Lessons (customer_id VARCHAR)", "question": "How many lesson does customer with first name Ray took?" }
### QUESTION Which last names are both used by customers and by staff? ### CONTEXT CREATE TABLE Customers (last_name VARCHAR); CREATE TABLE Staff (last_name VARCHAR) ### ANSWER SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff</s>
{ "answer": "SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff", "context": "CREATE TABLE Customers (last_name VARCHAR); CREATE TABLE Staff (last_name VARCHAR)", "question": "Which last names are both used by customers and by staff?" }
### QUESTION What is the id and detail of the vehicle used in lessons for most of the times? ### CONTEXT CREATE TABLE Lessons (vehicle_id VARCHAR); CREATE TABLE Vehicles (vehicle_id VARCHAR, vehicle_details VARCHAR) ### ANSWER SELECT T1.vehicle_id, T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.vehicle_id, T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Lessons (vehicle_id VARCHAR); CREATE TABLE Vehicles (vehicle_id VARCHAR, vehicle_details VARCHAR)", "question": "What is the id and detail of the vehicle used in lessons for most of the times?" }
### QUESTION Show all the buildings that have at least 10 professors. ### CONTEXT CREATE TABLE Faculty (building VARCHAR, rank VARCHAR) ### ANSWER SELECT building FROM Faculty WHERE rank = "Professor" GROUP BY building HAVING COUNT(*) >= 10</s>
{ "answer": "SELECT building FROM Faculty WHERE rank = \"Professor\" GROUP BY building HAVING COUNT(*) >= 10", "context": "CREATE TABLE Faculty (building VARCHAR, rank VARCHAR)", "question": "Show all the buildings that have at least 10 professors." }
### QUESTION Name the original air date for harry hannigan directed by adam weissman ### CONTEXT CREATE TABLE table_23937219_2 (original_air_date VARCHAR, written_by VARCHAR, directed_by VARCHAR) ### ANSWER SELECT original_air_date FROM table_23937219_2 WHERE written_by = "Harry Hannigan" AND directed_by = "Adam Weissman"</s>
{ "answer": "SELECT original_air_date FROM table_23937219_2 WHERE written_by = \"Harry Hannigan\" AND directed_by = \"Adam Weissman\"", "context": "CREATE TABLE table_23937219_2 (original_air_date VARCHAR, written_by VARCHAR, directed_by VARCHAR)", "question": "Name the original air date for harry hannigan directed by adam weissman" }
### QUESTION How many people directed episode 7 In the season? ### CONTEXT CREATE TABLE table_23937219_3 (directed_by VARCHAR, season__number VARCHAR) ### ANSWER SELECT COUNT(directed_by) FROM table_23937219_3 WHERE season__number = 7</s>
{ "answer": "SELECT COUNT(directed_by) FROM table_23937219_3 WHERE season__number = 7", "context": "CREATE TABLE table_23937219_3 (directed_by VARCHAR, season__number VARCHAR)", "question": "How many people directed episode 7 In the season?" }
### QUESTION How many seasons did Barking Birmingham & Solihull Stourbridge were relegated from league? ### CONTEXT CREATE TABLE table_23927423_4 (season VARCHAR, relegated_from_league VARCHAR) ### ANSWER SELECT COUNT(season) FROM table_23927423_4 WHERE relegated_from_league = "Barking Birmingham & Solihull Stourbridge"</s>
{ "answer": "SELECT COUNT(season) FROM table_23927423_4 WHERE relegated_from_league = \"Barking Birmingham & Solihull Stourbridge\"", "context": "CREATE TABLE table_23927423_4 (season VARCHAR, relegated_from_league VARCHAR)", "question": "How many seasons did Barking Birmingham & Solihull Stourbridge were relegated from league?" }
### QUESTION Show the ids of students whose advisors are professors. ### CONTEXT CREATE TABLE Student (StuID VARCHAR, advisor VARCHAR); CREATE TABLE Faculty (FacID VARCHAR, rank VARCHAR) ### ANSWER SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = "Professor"</s>
{ "answer": "SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = \"Professor\"", "context": "CREATE TABLE Student (StuID VARCHAR, advisor VARCHAR); CREATE TABLE Faculty (FacID VARCHAR, rank VARCHAR)", "question": "Show the ids of students whose advisors are professors." }
### QUESTION Show first name and last name for all the students advised by Michael Goodrich. ### CONTEXT CREATE TABLE Faculty (FacID VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE Student (fname VARCHAR, lname VARCHAR, advisor VARCHAR) ### ANSWER SELECT T2.fname, T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = "Michael" AND T1.lname = "Goodrich"</s>
{ "answer": "SELECT T2.fname, T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = \"Michael\" AND T1.lname = \"Goodrich\"", "context": "CREATE TABLE Faculty (FacID VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE Student (fname VARCHAR, lname VARCHAR, advisor VARCHAR)", "question": "Show first name and last name for all the students advised by Michael Goodrich." }
### QUESTION Show all the faculty ranks and the number of students advised by each rank. ### CONTEXT CREATE TABLE Student (advisor VARCHAR); CREATE TABLE Faculty (rank VARCHAR, FacID VARCHAR) ### ANSWER SELECT T1.rank, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank</s>
{ "answer": "SELECT T1.rank, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank", "context": "CREATE TABLE Student (advisor VARCHAR); CREATE TABLE Faculty (rank VARCHAR, FacID VARCHAR)", "question": "Show all the faculty ranks and the number of students advised by each rank." }
### QUESTION What are the first and last name of the faculty who has the most students? ### CONTEXT CREATE TABLE Student (advisor VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR) ### ANSWER SELECT T1.fname, T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.fname, T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Student (advisor VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR)", "question": "What are the first and last name of the faculty who has the most students?" }
### QUESTION Show the ids for all the faculty members who have at least 2 students. ### CONTEXT CREATE TABLE Faculty (FacID VARCHAR); CREATE TABLE Student (advisor VARCHAR) ### ANSWER SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING COUNT(*) >= 2</s>
{ "answer": "SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING COUNT(*) >= 2", "context": "CREATE TABLE Faculty (FacID VARCHAR); CREATE TABLE Student (advisor VARCHAR)", "question": "Show the ids for all the faculty members who have at least 2 students." }
### QUESTION Who was the home team on 4 February 1987 when Luton Town was away team and there was no replay? ### CONTEXT CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR, tie_no VARCHAR, date VARCHAR) ### ANSWER SELECT home_team FROM table_name_68 WHERE tie_no = "replay" AND date = "4 february 1987" AND away_team = "luton town"</s>
{ "answer": "SELECT home_team FROM table_name_68 WHERE tie_no = \"replay\" AND date = \"4 february 1987\" AND away_team = \"luton town\"", "context": "CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR, tie_no VARCHAR, date VARCHAR)", "question": "Who was the home team on 4 February 1987 when Luton Town was away team and there was no replay?" }
### QUESTION Show the names of all the activities Mark Giuliano participates in. ### CONTEXT CREATE TABLE Activity (activity_name VARCHAR, actid VARCHAR); CREATE TABLE Faculty (facID VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR) ### ANSWER SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = "Mark" AND T1.lname = "Giuliano"</s>
{ "answer": "SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = \"Mark\" AND T1.lname = \"Giuliano\"", "context": "CREATE TABLE Activity (activity_name VARCHAR, actid VARCHAR); CREATE TABLE Faculty (facID VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR)", "question": "Show the names of all the activities Mark Giuliano participates in." }
### QUESTION Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in. ### CONTEXT CREATE TABLE Faculty_participates_in (facID VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR, facID VARCHAR) ### ANSWER SELECT T1.fname, T1.lname, COUNT(*), T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID</s>
{ "answer": "SELECT T1.fname, T1.lname, COUNT(*), T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID", "context": "CREATE TABLE Faculty_participates_in (facID VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR, facID VARCHAR)", "question": "Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in." }
### QUESTION Name the youth classification for michael barry ### CONTEXT CREATE TABLE table_23944514_15 (youth_classification VARCHAR, aggressive_rider VARCHAR) ### ANSWER SELECT youth_classification FROM table_23944514_15 WHERE aggressive_rider = "Michael Barry"</s>
{ "answer": "SELECT youth_classification FROM table_23944514_15 WHERE aggressive_rider = \"Michael Barry\"", "context": "CREATE TABLE table_23944514_15 (youth_classification VARCHAR, aggressive_rider VARCHAR)", "question": "Name the youth classification for michael barry" }
### QUESTION Name the mountains classification for bradley white ### CONTEXT CREATE TABLE table_23944514_15 (mountains_classification VARCHAR, aggressive_rider VARCHAR) ### ANSWER SELECT mountains_classification FROM table_23944514_15 WHERE aggressive_rider = "Bradley White"</s>
{ "answer": "SELECT mountains_classification FROM table_23944514_15 WHERE aggressive_rider = \"Bradley White\"", "context": "CREATE TABLE table_23944514_15 (mountains_classification VARCHAR, aggressive_rider VARCHAR)", "question": "Name the mountains classification for bradley white" }
### QUESTION Name the sprint classification for michael barry ### CONTEXT CREATE TABLE table_23944514_15 (sprint_classification VARCHAR, aggressive_rider VARCHAR) ### ANSWER SELECT sprint_classification FROM table_23944514_15 WHERE aggressive_rider = "Michael Barry"</s>
{ "answer": "SELECT sprint_classification FROM table_23944514_15 WHERE aggressive_rider = \"Michael Barry\"", "context": "CREATE TABLE table_23944514_15 (sprint_classification VARCHAR, aggressive_rider VARCHAR)", "question": "Name the sprint classification for michael barry" }
### QUESTION What is the name of the activity that has the most faculty members involved in? ### CONTEXT CREATE TABLE Faculty_participates_in (actID VARCHAR); CREATE TABLE Activity (activity_name VARCHAR, actID VARCHAR) ### ANSWER SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Faculty_participates_in (actID VARCHAR); CREATE TABLE Activity (activity_name VARCHAR, actID VARCHAR)", "question": "What is the name of the activity that has the most faculty members involved in?" }
### QUESTION How many times is keauna mclaughlin / rockne brubaker ranked? ### CONTEXT CREATE TABLE table_23938357_6 (rank VARCHAR, name VARCHAR) ### ANSWER SELECT COUNT(rank) FROM table_23938357_6 WHERE name = "Keauna McLaughlin / Rockne Brubaker"</s>
{ "answer": "SELECT COUNT(rank) FROM table_23938357_6 WHERE name = \"Keauna McLaughlin / Rockne Brubaker\"", "context": "CREATE TABLE table_23938357_6 (rank VARCHAR, name VARCHAR)", "question": "How many times is keauna mclaughlin / rockne brubaker ranked?" }
### QUESTION Show all the activity names and the number of faculty involved in each activity. ### CONTEXT CREATE TABLE Faculty_participates_in (actID VARCHAR); CREATE TABLE Activity (activity_name VARCHAR, actID VARCHAR) ### ANSWER SELECT T1.activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID</s>
{ "answer": "SELECT T1.activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID", "context": "CREATE TABLE Faculty_participates_in (actID VARCHAR); CREATE TABLE Activity (activity_name VARCHAR, actID VARCHAR)", "question": "Show all the activity names and the number of faculty involved in each activity." }
### QUESTION What is the first and last name of the student participating in the most activities? ### CONTEXT CREATE TABLE Student (fname VARCHAR, lname VARCHAR, StuID VARCHAR); CREATE TABLE Participates_in (StuID VARCHAR) ### ANSWER SELECT T1.fname, T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.fname, T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Student (fname VARCHAR, lname VARCHAR, StuID VARCHAR); CREATE TABLE Participates_in (StuID VARCHAR)", "question": "What is the first and last name of the student participating in the most activities?" }
### QUESTION Find the first names of the faculty members who are playing Canoeing or Kayaking. ### CONTEXT CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR) ### ANSWER SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'</s>
{ "answer": "SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", "context": "CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR)", "question": "Find the first names of the faculty members who are playing Canoeing or Kayaking." }
### QUESTION Find the first names of professors who are not playing Canoeing or Kayaking. ### CONTEXT CREATE TABLE faculty (lname VARCHAR, rank VARCHAR); CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR) ### ANSWER SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'</s>
{ "answer": "SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", "context": "CREATE TABLE faculty (lname VARCHAR, rank VARCHAR); CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR)", "question": "Find the first names of professors who are not playing Canoeing or Kayaking." }
### QUESTION Find the first names of the faculty members who participate in Canoeing and Kayaking. ### CONTEXT CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR) ### ANSWER SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking'</s>
{ "answer": "SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking'", "context": "CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR)", "question": "Find the first names of the faculty members who participate in Canoeing and Kayaking." }
### QUESTION Find the ids of the students who participate in Canoeing and Kayaking. ### CONTEXT CREATE TABLE activity (actid VARCHAR, activity_name VARCHAR); CREATE TABLE participates_in (stuid VARCHAR) ### ANSWER SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking'</s>
{ "answer": "SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking'", "context": "CREATE TABLE activity (actid VARCHAR, activity_name VARCHAR); CREATE TABLE participates_in (stuid VARCHAR)", "question": "Find the ids of the students who participate in Canoeing and Kayaking." }
### QUESTION What date was the game against manchester city when they had a league position of 2nd? ### CONTEXT CREATE TABLE table_name_22 (date VARCHAR, opponents VARCHAR, h___a VARCHAR, league_position VARCHAR) ### ANSWER SELECT date FROM table_name_22 WHERE h___a = "a" AND league_position = "2nd" AND opponents = "manchester city"</s>
{ "answer": "SELECT date FROM table_name_22 WHERE h___a = \"a\" AND league_position = \"2nd\" AND opponents = \"manchester city\"", "context": "CREATE TABLE table_name_22 (date VARCHAR, opponents VARCHAR, h___a VARCHAR, league_position VARCHAR)", "question": "What date was the game against manchester city when they had a league position of 2nd?" }
### QUESTION How many different writers have written the episode with series number 8? ### CONTEXT CREATE TABLE table_23958944_2 (written_by VARCHAR, no_by_series VARCHAR) ### ANSWER SELECT COUNT(written_by) FROM table_23958944_2 WHERE no_by_series = 8</s>
{ "answer": "SELECT COUNT(written_by) FROM table_23958944_2 WHERE no_by_series = 8", "context": "CREATE TABLE table_23958944_2 (written_by VARCHAR, no_by_series VARCHAR)", "question": "How many different writers have written the episode with series number 8?" }
### QUESTION What is Tie no, when Date is "18 Nov 1989", and when Home Team is "Doncaster Rovers"? ### CONTEXT CREATE TABLE table_name_32 (tie_no VARCHAR, date VARCHAR, home_team VARCHAR) ### ANSWER SELECT tie_no FROM table_name_32 WHERE date = "18 nov 1989" AND home_team = "doncaster rovers"</s>
{ "answer": "SELECT tie_no FROM table_name_32 WHERE date = \"18 nov 1989\" AND home_team = \"doncaster rovers\"", "context": "CREATE TABLE table_name_32 (tie_no VARCHAR, date VARCHAR, home_team VARCHAR)", "question": "What is Tie no, when Date is \"18 Nov 1989\", and when Home Team is \"Doncaster Rovers\"?" }
### QUESTION What is the highest bronze number when silver is 0, and the total is smaller than 1? ### CONTEXT CREATE TABLE table_name_92 (bronze INTEGER, silver VARCHAR, total VARCHAR) ### ANSWER SELECT MAX(bronze) FROM table_name_92 WHERE silver = 0 AND total < 1</s>
{ "answer": "SELECT MAX(bronze) FROM table_name_92 WHERE silver = 0 AND total < 1", "context": "CREATE TABLE table_name_92 (bronze INTEGER, silver VARCHAR, total VARCHAR)", "question": "What is the highest bronze number when silver is 0, and the total is smaller than 1?" }
### QUESTION What is the special when the challenger is dominique bouchet? ### CONTEXT CREATE TABLE table_23982399_12 (special VARCHAR, challenger VARCHAR) ### ANSWER SELECT special FROM table_23982399_12 WHERE challenger = "Dominique Bouchet"</s>
{ "answer": "SELECT special FROM table_23982399_12 WHERE challenger = \"Dominique Bouchet\"", "context": "CREATE TABLE table_23982399_12 (special VARCHAR, challenger VARCHAR)", "question": "What is the special when the challenger is dominique bouchet?" }
### QUESTION Find the number of routes operated by American Airlines. ### CONTEXT CREATE TABLE routes (alid VARCHAR); CREATE TABLE airlines (alid VARCHAR, name VARCHAR) ### ANSWER SELECT COUNT(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'</s>
{ "answer": "SELECT COUNT(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'", "context": "CREATE TABLE routes (alid VARCHAR); CREATE TABLE airlines (alid VARCHAR, name VARCHAR)", "question": "Find the number of routes operated by American Airlines." }
### QUESTION What episode number originally aired on November 21, 1993? ### CONTEXT CREATE TABLE table_23982399_1 (overall_episode__number INTEGER, original_airdate VARCHAR) ### ANSWER SELECT MAX(overall_episode__number) FROM table_23982399_1 WHERE original_airdate = "November 21, 1993"</s>
{ "answer": "SELECT MAX(overall_episode__number) FROM table_23982399_1 WHERE original_airdate = \"November 21, 1993\"", "context": "CREATE TABLE table_23982399_1 (overall_episode__number INTEGER, original_airdate VARCHAR)", "question": "What episode number originally aired on November 21, 1993?" }