text
stringlengths
147
1.06k
source
dict
### INSTRUCTION When was the final loss of the club last won in 2001 and has a total of 3 wins? ### INPUT CREATE TABLE table_name_84 (last_final_lost VARCHAR, wins VARCHAR, last_win VARCHAR) ### OUTPUT SELECT last_final_lost FROM table_name_84 WHERE wins = "3" AND last_win = "2001"
{ "input": "CREATE TABLE table_name_84 (last_final_lost VARCHAR, wins VARCHAR, last_win VARCHAR)", "instruction": "When was the final loss of the club last won in 2001 and has a total of 3 wins?", "output": "SELECT last_final_lost FROM table_name_84 WHERE wins = \"3\" AND last_win = \"2001\"" }
### INSTRUCTION Who is the race caller when jim mckay and al michaels were s hosts in the year 1987? ### INPUT CREATE TABLE table_22514845_4 (race_caller VARCHAR, s_host VARCHAR, year VARCHAR) ### OUTPUT SELECT race_caller FROM table_22514845_4 WHERE s_host = "Jim McKay and Al Michaels" AND year = 1987
{ "input": "CREATE TABLE table_22514845_4 (race_caller VARCHAR, s_host VARCHAR, year VARCHAR)", "instruction": "Who is the race caller when jim mckay and al michaels were s hosts in the year 1987?", "output": "SELECT race_caller FROM table_22514845_4 WHERE s_host = \"Jim McKay and Al Michaels\" AND year = 1987" }
### INSTRUCTION How many cities were there in 2012 where the rate of burglary was 224.8? ### INPUT CREATE TABLE table_1818254_1 (property_crime VARCHAR, burglary VARCHAR) ### OUTPUT SELECT COUNT(property_crime) FROM table_1818254_1 WHERE burglary = "224.8"
{ "input": "CREATE TABLE table_1818254_1 (property_crime VARCHAR, burglary VARCHAR)", "instruction": "How many cities were there in 2012 where the rate of burglary was 224.8?", "output": "SELECT COUNT(property_crime) FROM table_1818254_1 WHERE burglary = \"224.8\"" }
### INSTRUCTION The league of 400 (21) has what years listed? ### INPUT CREATE TABLE table_name_87 (years VARCHAR, league VARCHAR) ### OUTPUT SELECT years FROM table_name_87 WHERE league = "400 (21)"
{ "input": "CREATE TABLE table_name_87 (years VARCHAR, league VARCHAR)", "instruction": "The league of 400 (21) has what years listed?", "output": "SELECT years FROM table_name_87 WHERE league = \"400 (21)\"" }
### INSTRUCTION What is the average pjehun measured by female enrollment? ### INPUT CREATE TABLE table_name_10 (pujehun INTEGER, measure VARCHAR) ### OUTPUT SELECT AVG(pujehun) FROM table_name_10 WHERE measure = "female enrollment"
{ "input": "CREATE TABLE table_name_10 (pujehun INTEGER, measure VARCHAR)", "instruction": "What is the average pjehun measured by female enrollment?", "output": "SELECT AVG(pujehun) FROM table_name_10 WHERE measure = \"female enrollment\"" }
### INSTRUCTION Tell me the previous rank for italy with points more than 100 ### INPUT CREATE TABLE table_name_92 (Previous VARCHAR, nationality VARCHAR, points VARCHAR) ### OUTPUT SELECT Previous AS rank FROM table_name_92 WHERE nationality = "italy" AND points > 100
{ "input": "CREATE TABLE table_name_92 (Previous VARCHAR, nationality VARCHAR, points VARCHAR)", "instruction": "Tell me the previous rank for italy with points more than 100", "output": "SELECT Previous AS rank FROM table_name_92 WHERE nationality = \"italy\" AND points > 100" }
### INSTRUCTION how many drumsets of drumstand (oftenoptional) with hd-1/3stand and tom-tom pads is 3xcloth-head are ### INPUT CREATE TABLE table_2889300_6 (drumset_name VARCHAR, drumstand__oftenoptional_ VARCHAR, tom_tom_pads VARCHAR) ### OUTPUT SELECT COUNT(drumset_name) FROM table_2889300_6 WHERE drumstand__oftenoptional_ = "HD-1/3Stand" AND tom_tom_pads = "3xCloth-Head"
{ "input": "CREATE TABLE table_2889300_6 (drumset_name VARCHAR, drumstand__oftenoptional_ VARCHAR, tom_tom_pads VARCHAR)", "instruction": "how many drumsets of drumstand (oftenoptional) with hd-1/3stand and tom-tom pads is 3xcloth-head are", "output": "SELECT COUNT(drumset_name) FROM table_2889300_6 WHERE drumstand__oftenoptional_ = \"HD-1/3Stand\" AND tom_tom_pads = \"3xCloth-Head\"" }
### INSTRUCTION How many Points have a Name of stephen myler, and Tries smaller than 0? ### INPUT CREATE TABLE table_name_3 (points INTEGER, name VARCHAR, tries VARCHAR) ### OUTPUT SELECT SUM(points) FROM table_name_3 WHERE name = "stephen myler" AND tries < 0
{ "input": "CREATE TABLE table_name_3 (points INTEGER, name VARCHAR, tries VARCHAR)", "instruction": "How many Points have a Name of stephen myler, and Tries smaller than 0?", "output": "SELECT SUM(points) FROM table_name_3 WHERE name = \"stephen myler\" AND tries < 0" }
### INSTRUCTION Which Volleyball has a Golf of 2, and an Indoor track of 3? ### INPUT CREATE TABLE table_name_52 (volleyball VARCHAR, golf VARCHAR, indoor_track VARCHAR) ### OUTPUT SELECT volleyball FROM table_name_52 WHERE golf = "2" AND indoor_track = "3"
{ "input": "CREATE TABLE table_name_52 (volleyball VARCHAR, golf VARCHAR, indoor_track VARCHAR)", "instruction": "Which Volleyball has a Golf of 2, and an Indoor track of 3?", "output": "SELECT volleyball FROM table_name_52 WHERE golf = \"2\" AND indoor_track = \"3\"" }
### INSTRUCTION What is the highest Tournaments, when Pro Debut is "July 2002"? ### INPUT CREATE TABLE table_name_13 (tournaments INTEGER, pro_debut VARCHAR) ### OUTPUT SELECT MAX(tournaments) FROM table_name_13 WHERE pro_debut = "july 2002"
{ "input": "CREATE TABLE table_name_13 (tournaments INTEGER, pro_debut VARCHAR)", "instruction": "What is the highest Tournaments, when Pro Debut is \"July 2002\"?", "output": "SELECT MAX(tournaments) FROM table_name_13 WHERE pro_debut = \"july 2002\"" }
### INSTRUCTION How many figures are there for wheels for LMS numbers 16377-9? ### INPUT CREATE TABLE table_15412381_5 (wheels VARCHAR, lms_nos VARCHAR) ### OUTPUT SELECT COUNT(wheels) FROM table_15412381_5 WHERE lms_nos = "16377-9"
{ "input": "CREATE TABLE table_15412381_5 (wheels VARCHAR, lms_nos VARCHAR)", "instruction": "How many figures are there for wheels for LMS numbers 16377-9?", "output": "SELECT COUNT(wheels) FROM table_15412381_5 WHERE lms_nos = \"16377-9\"" }
### INSTRUCTION Who was the winner when Katsuyuki Hiranaka had the fastest lap? ### INPUT CREATE TABLE table_name_89 (winner VARCHAR, fastest_lap VARCHAR) ### OUTPUT SELECT winner FROM table_name_89 WHERE fastest_lap = "katsuyuki hiranaka"
{ "input": "CREATE TABLE table_name_89 (winner VARCHAR, fastest_lap VARCHAR)", "instruction": "Who was the winner when Katsuyuki Hiranaka had the fastest lap?", "output": "SELECT winner FROM table_name_89 WHERE fastest_lap = \"katsuyuki hiranaka\"" }
### INSTRUCTION What stage (winner) has quick step as the team classification, and trent lowe as the young rider classification? ### INPUT CREATE TABLE table_name_69 (stage__winner_ VARCHAR, team_classification VARCHAR, young_rider_classification VARCHAR) ### OUTPUT SELECT stage__winner_ FROM table_name_69 WHERE team_classification = "quick step" AND young_rider_classification = "trent lowe"
{ "input": "CREATE TABLE table_name_69 (stage__winner_ VARCHAR, team_classification VARCHAR, young_rider_classification VARCHAR)", "instruction": "What stage (winner) has quick step as the team classification, and trent lowe as the young rider classification?", "output": "SELECT stage__winner_ FROM table_name_69 WHERE team_classification = \"quick step\" AND young_rider_classification = \"trent lowe\"" }
### INSTRUCTION What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory? ### INPUT CREATE TABLE table_name_24 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) ### OUTPUT SELECT date FROM table_name_24 WHERE margin_of_victory = "1 stroke" AND tournament = "the ace group classic"
{ "input": "CREATE TABLE table_name_24 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)", "instruction": "What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory?", "output": "SELECT date FROM table_name_24 WHERE margin_of_victory = \"1 stroke\" AND tournament = \"the ace group classic\"" }
### INSTRUCTION Name the least attendance for opponent of new orleans saints and week more than 2 ### INPUT CREATE TABLE table_name_5 (attendance INTEGER, week VARCHAR, opponent VARCHAR) ### OUTPUT SELECT MIN(attendance) FROM table_name_5 WHERE week > 2 AND opponent = "new orleans saints"
{ "input": "CREATE TABLE table_name_5 (attendance INTEGER, week VARCHAR, opponent VARCHAR)", "instruction": "Name the least attendance for opponent of new orleans saints and week more than 2", "output": "SELECT MIN(attendance) FROM table_name_5 WHERE week > 2 AND opponent = \"new orleans saints\"" }
### INSTRUCTION What is the lowest Game where Inning is 6th, and the Opposing Pitcher is cliff curtis? ### INPUT CREATE TABLE table_name_14 (game INTEGER, inning VARCHAR, opposing_pitcher VARCHAR) ### OUTPUT SELECT MIN(game) FROM table_name_14 WHERE inning = "6th" AND opposing_pitcher = "cliff curtis"
{ "input": "CREATE TABLE table_name_14 (game INTEGER, inning VARCHAR, opposing_pitcher VARCHAR)", "instruction": "What is the lowest Game where Inning is 6th, and the Opposing Pitcher is cliff curtis?", "output": "SELECT MIN(game) FROM table_name_14 WHERE inning = \"6th\" AND opposing_pitcher = \"cliff curtis\"" }
### INSTRUCTION What is the number of deputies with 94.2% of the votes? ### INPUT CREATE TABLE table_name_74 (number_of_deputies INTEGER, percentage_of_votes VARCHAR) ### OUTPUT SELECT SUM(number_of_deputies) FROM table_name_74 WHERE percentage_of_votes = "94.2%"
{ "input": "CREATE TABLE table_name_74 (number_of_deputies INTEGER, percentage_of_votes VARCHAR)", "instruction": "What is the number of deputies with 94.2% of the votes?", "output": "SELECT SUM(number_of_deputies) FROM table_name_74 WHERE percentage_of_votes = \"94.2%\"" }
### INSTRUCTION Find the start and end dates of behavior incidents of students with last name "Fahey". ### INPUT CREATE TABLE Behavior_Incident (date_incident_start VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, last_name VARCHAR) ### OUTPUT SELECT T1.date_incident_start, date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = "Fahey"
{ "input": "CREATE TABLE Behavior_Incident (date_incident_start VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, last_name VARCHAR)", "instruction": "Find the start and end dates of behavior incidents of students with last name \"Fahey\".", "output": "SELECT T1.date_incident_start, date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = \"Fahey\"" }
### INSTRUCTION With an outlet of Colorado River and a % instate of a038 84.8% what is in-state area? ### INPUT CREATE TABLE table_name_30 (in_state_area VARCHAR, outlet VARCHAR, _percentage_in_state VARCHAR) ### OUTPUT SELECT in_state_area FROM table_name_30 WHERE outlet = "colorado river" AND _percentage_in_state = "a038 84.8%"
{ "input": "CREATE TABLE table_name_30 (in_state_area VARCHAR, outlet VARCHAR, _percentage_in_state VARCHAR)", "instruction": "With an outlet of Colorado River and a % instate of a038 84.8% what is in-state area?", "output": "SELECT in_state_area FROM table_name_30 WHERE outlet = \"colorado river\" AND _percentage_in_state = \"a038 84.8%\"" }
### INSTRUCTION List the all the distinct names of the products with the characteristic name 'warm'. ### INPUT CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR) ### OUTPUT SELECT DISTINCT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = "warm"
{ "input": "CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)", "instruction": "List the all the distinct names of the products with the characteristic name 'warm'.", "output": "SELECT DISTINCT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = \"warm\"" }
### INSTRUCTION What is the result of the directorial debut of the year award? ### INPUT CREATE TABLE table_name_77 (result VARCHAR, category VARCHAR) ### OUTPUT SELECT result FROM table_name_77 WHERE category = "directorial debut of the year"
{ "input": "CREATE TABLE table_name_77 (result VARCHAR, category VARCHAR)", "instruction": "What is the result of the directorial debut of the year award?", "output": "SELECT result FROM table_name_77 WHERE category = \"directorial debut of the year\"" }
### INSTRUCTION Show the names of all of the high schooler Kyle's friends. ### INPUT CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Friend (student_id VARCHAR, friend_id VARCHAR); CREATE TABLE Highschooler (id VARCHAR, name VARCHAR) ### OUTPUT SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = "Kyle"
{ "input": "CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Friend (student_id VARCHAR, friend_id VARCHAR); CREATE TABLE Highschooler (id VARCHAR, name VARCHAR)", "instruction": "Show the names of all of the high schooler Kyle's friends.", "output": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Kyle\"" }
### INSTRUCTION When fitzroy was the home team, how much did the away team score? ### INPUT CREATE TABLE table_name_76 (away_team VARCHAR, home_team VARCHAR) ### OUTPUT SELECT away_team AS score FROM table_name_76 WHERE home_team = "fitzroy"
{ "input": "CREATE TABLE table_name_76 (away_team VARCHAR, home_team VARCHAR)", "instruction": "When fitzroy was the home team, how much did the away team score?", "output": "SELECT away_team AS score FROM table_name_76 WHERE home_team = \"fitzroy\"" }
### INSTRUCTION Play-by-play of sean grande, and a Flagship Station of wrko, and a Year of 2005-06 had what studio host? ### INPUT CREATE TABLE table_name_1 (studio_host VARCHAR, year VARCHAR, play_by_play VARCHAR, flagship_station VARCHAR) ### OUTPUT SELECT studio_host FROM table_name_1 WHERE play_by_play = "sean grande" AND flagship_station = "wrko" AND year = "2005-06"
{ "input": "CREATE TABLE table_name_1 (studio_host VARCHAR, year VARCHAR, play_by_play VARCHAR, flagship_station VARCHAR)", "instruction": "Play-by-play of sean grande, and a Flagship Station of wrko, and a Year of 2005-06 had what studio host?", "output": "SELECT studio_host FROM table_name_1 WHERE play_by_play = \"sean grande\" AND flagship_station = \"wrko\" AND year = \"2005-06\"" }
### INSTRUCTION Which city has most number of arriving flights? ### INPUT CREATE TABLE FLIGHTS (DestAirport VARCHAR); CREATE TABLE AIRPORTS (City VARCHAR, AirportCode VARCHAR) ### OUTPUT SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE FLIGHTS (DestAirport VARCHAR); CREATE TABLE AIRPORTS (City VARCHAR, AirportCode VARCHAR)", "instruction": "Which city has most number of arriving flights?", "output": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What percentage of browsers were using Firefox or other Mozilla browsers during the period in which 1.93% were using Chrome? ### INPUT CREATE TABLE table_name_12 (firefox_ VARCHAR, _other_mozilla VARCHAR, chrome VARCHAR) ### OUTPUT SELECT firefox_, _other_mozilla FROM table_name_12 WHERE chrome = "1.93%"
{ "input": "CREATE TABLE table_name_12 (firefox_ VARCHAR, _other_mozilla VARCHAR, chrome VARCHAR)", "instruction": "What percentage of browsers were using Firefox or other Mozilla browsers during the period in which 1.93% were using Chrome?", "output": "SELECT firefox_, _other_mozilla FROM table_name_12 WHERE chrome = \"1.93%\"" }
### INSTRUCTION When the Sn/Sb (%) of 13/17, and a Liquidat (c) bigger than 283 what's the solidat (c)? ### INPUT CREATE TABLE table_name_46 (solidat__ INTEGER, sn_sb___percentage_ VARCHAR, liquidat__°c_ VARCHAR) ### OUTPUT SELECT SUM(solidat__) AS °c_ FROM table_name_46 WHERE sn_sb___percentage_ = "13/17" AND liquidat__°c_ > 283
{ "input": "CREATE TABLE table_name_46 (solidat__ INTEGER, sn_sb___percentage_ VARCHAR, liquidat__°c_ VARCHAR)", "instruction": "When the Sn/Sb (%) of 13/17, and a Liquidat (c) bigger than 283 what's the solidat (c)?", "output": "SELECT SUM(solidat__) AS °c_ FROM table_name_46 WHERE sn_sb___percentage_ = \"13/17\" AND liquidat__°c_ > 283" }
### INSTRUCTION When did eleonor magdalene of the palatinate-neuburg become duchess? ### INPUT CREATE TABLE table_name_77 (became_duchess VARCHAR, name VARCHAR) ### OUTPUT SELECT became_duchess FROM table_name_77 WHERE name = "eleonor magdalene of the palatinate-neuburg"
{ "input": "CREATE TABLE table_name_77 (became_duchess VARCHAR, name VARCHAR)", "instruction": "When did eleonor magdalene of the palatinate-neuburg become duchess?", "output": "SELECT became_duchess FROM table_name_77 WHERE name = \"eleonor magdalene of the palatinate-neuburg\"" }
### INSTRUCTION What is Choreographer(s), when Chosen is Mary Murphy, and when Style is Contemporary? ### INPUT CREATE TABLE table_name_36 (choreographer_s_ VARCHAR, chosen_by VARCHAR, style VARCHAR) ### OUTPUT SELECT choreographer_s_ FROM table_name_36 WHERE chosen_by = "mary murphy" AND style = "contemporary"
{ "input": "CREATE TABLE table_name_36 (choreographer_s_ VARCHAR, chosen_by VARCHAR, style VARCHAR)", "instruction": "What is Choreographer(s), when Chosen is Mary Murphy, and when Style is Contemporary?", "output": "SELECT choreographer_s_ FROM table_name_36 WHERE chosen_by = \"mary murphy\" AND style = \"contemporary\"" }
### INSTRUCTION What are the names , themes , and number of singers for every concert ? ### INPUT CREATE TABLE singer_in_concert (concert_id VARCHAR); CREATE TABLE concert (concert_name VARCHAR, theme VARCHAR, concert_id VARCHAR) ### OUTPUT SELECT t2.concert_name, t2.theme, COUNT(*) FROM singer_in_concert AS t1 JOIN concert AS t2 ON t1.concert_id = t2.concert_id GROUP BY t2.concert_id
{ "input": "CREATE TABLE singer_in_concert (concert_id VARCHAR); CREATE TABLE concert (concert_name VARCHAR, theme VARCHAR, concert_id VARCHAR)", "instruction": "What are the names , themes , and number of singers for every concert ?", "output": "SELECT t2.concert_name, t2.theme, COUNT(*) FROM singer_in_concert AS t1 JOIN concert AS t2 ON t1.concert_id = t2.concert_id GROUP BY t2.concert_id" }
### INSTRUCTION The episode with the no. 54, directed by Charles Haid, is written by who? ### INPUT CREATE TABLE table_26561509_1 (written_by VARCHAR, directed_by VARCHAR, no VARCHAR) ### OUTPUT SELECT written_by FROM table_26561509_1 WHERE directed_by = "Charles Haid" AND no = 54
{ "input": "CREATE TABLE table_26561509_1 (written_by VARCHAR, directed_by VARCHAR, no VARCHAR)", "instruction": "The episode with the no. 54, directed by Charles Haid, is written by who?", "output": "SELECT written_by FROM table_26561509_1 WHERE directed_by = \"Charles Haid\" AND no = 54" }
### INSTRUCTION what are the event details of the services that have the type code 'Marriage'? ### INPUT CREATE TABLE EVENTS (event_details VARCHAR, Service_ID VARCHAR); CREATE TABLE Services (Service_ID VARCHAR, Service_Type_Code VARCHAR) ### OUTPUT SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage'
{ "input": "CREATE TABLE EVENTS (event_details VARCHAR, Service_ID VARCHAR); CREATE TABLE Services (Service_ID VARCHAR, Service_Type_Code VARCHAR)", "instruction": "what are the event details of the services that have the type code 'Marriage'?", "output": "SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage'" }
### INSTRUCTION At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total. ### INPUT CREATE TABLE Visits_Restaurant (Id VARCHAR); CREATE TABLE Restaurant (Id VARCHAR) ### OUTPUT SELECT Restaurant.ResName, SUM(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY SUM(Visits_Restaurant.Spent) LIMIT 1
{ "input": "CREATE TABLE Visits_Restaurant (Id VARCHAR); CREATE TABLE Restaurant (Id VARCHAR)", "instruction": "At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.", "output": "SELECT Restaurant.ResName, SUM(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY SUM(Visits_Restaurant.Spent) LIMIT 1" }
### INSTRUCTION Find the average price of wines that are not produced from Sonoma county. ### INPUT CREATE TABLE wine (price INTEGER, Appelation VARCHAR); CREATE TABLE APPELLATIONS (Appelation VARCHAR, County VARCHAR); CREATE TABLE WINE (Appelation VARCHAR) ### OUTPUT 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')
{ "input": "CREATE TABLE wine (price INTEGER, Appelation VARCHAR); CREATE TABLE APPELLATIONS (Appelation VARCHAR, County VARCHAR); CREATE TABLE WINE (Appelation VARCHAR)", "instruction": "Find the average price of wines that are not produced from Sonoma county.", "output": "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')" }
### INSTRUCTION List the details of the customers who do not have any policies. ### INPUT CREATE TABLE Customer_Policies (customer_id VARCHAR); CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_details VARCHAR) ### OUTPUT SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id
{ "input": "CREATE TABLE Customer_Policies (customer_id VARCHAR); CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_details VARCHAR)", "instruction": "List the details of the customers who do not have any policies.", "output": "SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id" }
### INSTRUCTION What is the highest Goal Difference when the goals against were less than 76, and the position larger than 5, and a Played larger than 30? ### INPUT CREATE TABLE table_name_72 (goal_difference INTEGER, played VARCHAR, goals_against VARCHAR, position VARCHAR) ### OUTPUT SELECT MAX(goal_difference) FROM table_name_72 WHERE goals_against < 76 AND position > 5 AND played > 30
{ "input": "CREATE TABLE table_name_72 (goal_difference INTEGER, played VARCHAR, goals_against VARCHAR, position VARCHAR)", "instruction": "What is the highest Goal Difference when the goals against were less than 76, and the position larger than 5, and a Played larger than 30?", "output": "SELECT MAX(goal_difference) FROM table_name_72 WHERE goals_against < 76 AND position > 5 AND played > 30" }
### INSTRUCTION What is the package/option in Italy when the content is religione? ### INPUT CREATE TABLE table_name_68 (package_option VARCHAR, content VARCHAR, country VARCHAR) ### OUTPUT SELECT package_option FROM table_name_68 WHERE content = "religione" AND country = "italy"
{ "input": "CREATE TABLE table_name_68 (package_option VARCHAR, content VARCHAR, country VARCHAR)", "instruction": "What is the package/option in Italy when the content is religione?", "output": "SELECT package_option FROM table_name_68 WHERE content = \"religione\" AND country = \"italy\"" }
### INSTRUCTION What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29? ### INPUT CREATE TABLE table_name_48 (goals INTEGER, apps VARCHAR, team VARCHAR, division VARCHAR) ### OUTPUT SELECT SUM(goals) FROM table_name_48 WHERE team = "torpedo moscow" AND division = 1 AND apps < 29
{ "input": "CREATE TABLE table_name_48 (goals INTEGER, apps VARCHAR, team VARCHAR, division VARCHAR)", "instruction": "What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29?", "output": "SELECT SUM(goals) FROM table_name_48 WHERE team = \"torpedo moscow\" AND division = 1 AND apps < 29" }
### INSTRUCTION What is the sum of the Billboard 200 Peak scores after the Year 1971? ### INPUT CREATE TABLE table_name_38 (billboard_200_peak INTEGER, year INTEGER) ### OUTPUT SELECT SUM(billboard_200_peak) FROM table_name_38 WHERE year > 1971
{ "input": "CREATE TABLE table_name_38 (billboard_200_peak INTEGER, year INTEGER)", "instruction": "What is the sum of the Billboard 200 Peak scores after the Year 1971?", "output": "SELECT SUM(billboard_200_peak) FROM table_name_38 WHERE year > 1971" }
### INSTRUCTION What is the sum of pick# for Don Majkowski?3 ### INPUT CREATE TABLE table_name_26 (pick__number INTEGER, player VARCHAR) ### OUTPUT SELECT SUM(pick__number) FROM table_name_26 WHERE player = "don majkowski"
{ "input": "CREATE TABLE table_name_26 (pick__number INTEGER, player VARCHAR)", "instruction": "What is the sum of pick# for Don Majkowski?3", "output": "SELECT SUM(pick__number) FROM table_name_26 WHERE player = \"don majkowski\"" }
### INSTRUCTION Which Stopping pattern has a Platform of [2777] mciver station platforms? ### INPUT CREATE TABLE table_name_50 (stopping_pattern VARCHAR, platform VARCHAR) ### OUTPUT SELECT stopping_pattern FROM table_name_50 WHERE platform = "[2777] mciver station platforms"
{ "input": "CREATE TABLE table_name_50 (stopping_pattern VARCHAR, platform VARCHAR)", "instruction": "Which Stopping pattern has a Platform of [2777] mciver station platforms?", "output": "SELECT stopping_pattern FROM table_name_50 WHERE platform = \"[2777] mciver station platforms\"" }
### INSTRUCTION What is the score of the 2002 Tiger Cup third/fourth place match? ### INPUT CREATE TABLE table_name_16 (score VARCHAR, competition VARCHAR) ### OUTPUT SELECT score FROM table_name_16 WHERE competition = "2002 tiger cup third/fourth place"
{ "input": "CREATE TABLE table_name_16 (score VARCHAR, competition VARCHAR)", "instruction": "What is the score of the 2002 Tiger Cup third/fourth place match?", "output": "SELECT score FROM table_name_16 WHERE competition = \"2002 tiger cup third/fourth place\"" }
### INSTRUCTION What is the rank of finale 37? ### INPUT CREATE TABLE table_11926114_1 (rank VARCHAR, finale VARCHAR) ### OUTPUT SELECT rank FROM table_11926114_1 WHERE finale = 37
{ "input": "CREATE TABLE table_11926114_1 (rank VARCHAR, finale VARCHAR)", "instruction": "What is the rank of finale 37?", "output": "SELECT rank FROM table_11926114_1 WHERE finale = 37" }
### INSTRUCTION In what year did Morgan Brian win? ### INPUT CREATE TABLE table_name_75 (year INTEGER, winner VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_75 WHERE winner = "morgan brian"
{ "input": "CREATE TABLE table_name_75 (year INTEGER, winner VARCHAR)", "instruction": "In what year did Morgan Brian win?", "output": "SELECT AVG(year) FROM table_name_75 WHERE winner = \"morgan brian\"" }
### INSTRUCTION Which city has most number of departing flights? ### INPUT CREATE TABLE AIRPORTS (City VARCHAR, AirportCode VARCHAR); CREATE TABLE FLIGHTS (SourceAirport VARCHAR) ### OUTPUT SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE AIRPORTS (City VARCHAR, AirportCode VARCHAR); CREATE TABLE FLIGHTS (SourceAirport VARCHAR)", "instruction": "Which city has most number of departing flights?", "output": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION In games where st kilda was the away team, what was the smallest crowd? ### INPUT CREATE TABLE table_name_68 (crowd INTEGER, away_team VARCHAR) ### OUTPUT SELECT MIN(crowd) FROM table_name_68 WHERE away_team = "st kilda"
{ "input": "CREATE TABLE table_name_68 (crowd INTEGER, away_team VARCHAR)", "instruction": "In games where st kilda was the away team, what was the smallest crowd?", "output": "SELECT MIN(crowd) FROM table_name_68 WHERE away_team = \"st kilda\"" }
### INSTRUCTION Tell me the sum of interview for evening gown more than 8.37 and average of 8.363 ### INPUT CREATE TABLE table_name_57 (interview INTEGER, average VARCHAR, evening_gown VARCHAR) ### OUTPUT SELECT SUM(interview) FROM table_name_57 WHERE average = 8.363 AND evening_gown > 8.37
{ "input": "CREATE TABLE table_name_57 (interview INTEGER, average VARCHAR, evening_gown VARCHAR)", "instruction": "Tell me the sum of interview for evening gown more than 8.37 and average of 8.363", "output": "SELECT SUM(interview) FROM table_name_57 WHERE average = 8.363 AND evening_gown > 8.37" }
### INSTRUCTION What is the average population when deaths are 3 557 and crude death date is less than 11.9? ### INPUT CREATE TABLE table_name_40 (average_population__x_1000_ INTEGER, deaths VARCHAR, crude_death_rate__per_1000_ VARCHAR) ### OUTPUT SELECT AVG(average_population__x_1000_) FROM table_name_40 WHERE deaths = "3 557" AND crude_death_rate__per_1000_ < 11.9
{ "input": "CREATE TABLE table_name_40 (average_population__x_1000_ INTEGER, deaths VARCHAR, crude_death_rate__per_1000_ VARCHAR)", "instruction": "What is the average population when deaths are 3 557 and crude death date is less than 11.9?", "output": "SELECT AVG(average_population__x_1000_) FROM table_name_40 WHERE deaths = \"3 557\" AND crude_death_rate__per_1000_ < 11.9" }
### INSTRUCTION What are the lowest points in 2004? ### INPUT CREATE TABLE table_name_96 (points INTEGER, year VARCHAR) ### OUTPUT SELECT MIN(points) FROM table_name_96 WHERE year = 2004
{ "input": "CREATE TABLE table_name_96 (points INTEGER, year VARCHAR)", "instruction": "What are the lowest points in 2004?", "output": "SELECT MIN(points) FROM table_name_96 WHERE year = 2004" }
### INSTRUCTION For which network was Chris Walby the color commentator after 1990? ### INPUT CREATE TABLE table_name_83 (network VARCHAR, year VARCHAR, colour_commentator_s_ VARCHAR) ### OUTPUT SELECT network FROM table_name_83 WHERE year > 1990 AND colour_commentator_s_ = "chris walby"
{ "input": "CREATE TABLE table_name_83 (network VARCHAR, year VARCHAR, colour_commentator_s_ VARCHAR)", "instruction": "For which network was Chris Walby the color commentator after 1990?", "output": "SELECT network FROM table_name_83 WHERE year > 1990 AND colour_commentator_s_ = \"chris walby\"" }
### INSTRUCTION What is the fewest losses for teams with points of 53 and more than 73 goals for? ### INPUT CREATE TABLE table_name_23 (lost INTEGER, points_1 VARCHAR, goals_for VARCHAR) ### OUTPUT SELECT MIN(lost) FROM table_name_23 WHERE points_1 = "53" AND goals_for > 73
{ "input": "CREATE TABLE table_name_23 (lost INTEGER, points_1 VARCHAR, goals_for VARCHAR)", "instruction": "What is the fewest losses for teams with points of 53 and more than 73 goals for?", "output": "SELECT MIN(lost) FROM table_name_23 WHERE points_1 = \"53\" AND goals_for > 73" }
### INSTRUCTION What is the compound name listed where marine organism α is worm ### INPUT CREATE TABLE table_12715053_1 (compound_name VARCHAR, marine_organism_α VARCHAR) ### OUTPUT SELECT compound_name FROM table_12715053_1 WHERE marine_organism_α = "Worm"
{ "input": "CREATE TABLE table_12715053_1 (compound_name VARCHAR, marine_organism_α VARCHAR)", "instruction": "What is the compound name listed where marine organism α is worm", "output": "SELECT compound_name FROM table_12715053_1 WHERE marine_organism_α = \"Worm\"" }
### INSTRUCTION What is the sum of wins when the goals for number was bigger than 35, the team was the Montreal Hockey Club, and the number of losses was less than 2? ### INPUT CREATE TABLE table_name_4 (wins VARCHAR, losses VARCHAR, goals_for VARCHAR, team VARCHAR) ### OUTPUT SELECT COUNT(wins) FROM table_name_4 WHERE goals_for > 35 AND team = "montreal hockey club" AND losses < 2
{ "input": "CREATE TABLE table_name_4 (wins VARCHAR, losses VARCHAR, goals_for VARCHAR, team VARCHAR)", "instruction": "What is the sum of wins when the goals for number was bigger than 35, the team was the Montreal Hockey Club, and the number of losses was less than 2?", "output": "SELECT COUNT(wins) FROM table_name_4 WHERE goals_for > 35 AND team = \"montreal hockey club\" AND losses < 2" }
### INSTRUCTION How many distinct delegates are from counties with population larger than 50000? ### INPUT CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_id VARCHAR, Population INTEGER) ### OUTPUT SELECT COUNT(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000
{ "input": "CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_id VARCHAR, Population INTEGER)", "instruction": "How many distinct delegates are from counties with population larger than 50000?", "output": "SELECT COUNT(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000" }
### INSTRUCTION What are the highest losses that have points agaisnt less than 956, high park demons as the club, and points less than 16? ### INPUT CREATE TABLE table_name_93 (loses INTEGER, points VARCHAR, points_against VARCHAR, club VARCHAR) ### OUTPUT SELECT MAX(loses) FROM table_name_93 WHERE points_against < 956 AND club = "high park demons" AND points < 16
{ "input": "CREATE TABLE table_name_93 (loses INTEGER, points VARCHAR, points_against VARCHAR, club VARCHAR)", "instruction": "What are the highest losses that have points agaisnt less than 956, high park demons as the club, and points less than 16?", "output": "SELECT MAX(loses) FROM table_name_93 WHERE points_against < 956 AND club = \"high park demons\" AND points < 16" }
### INSTRUCTION how many years has сенки been nominated? ### INPUT CREATE TABLE table_14928423_1 (year__ceremony_ VARCHAR, original_title VARCHAR) ### OUTPUT SELECT COUNT(year__ceremony_) FROM table_14928423_1 WHERE original_title = "Сенки"
{ "input": "CREATE TABLE table_14928423_1 (year__ceremony_ VARCHAR, original_title VARCHAR)", "instruction": "how many years has сенки been nominated?", "output": "SELECT COUNT(year__ceremony_) FROM table_14928423_1 WHERE original_title = \"Сенки\"" }
### INSTRUCTION Which 2006 Tournament has a 2004, and a 2002 of not tier i? ### INPUT CREATE TABLE table_name_15 (Id VARCHAR) ### OUTPUT SELECT 2006 FROM table_name_15 WHERE 2004 = "a" AND 2002 = "not tier i"
{ "input": "CREATE TABLE table_name_15 (Id VARCHAR)", "instruction": "Which 2006 Tournament has a 2004, and a 2002 of not tier i?", "output": "SELECT 2006 FROM table_name_15 WHERE 2004 = \"a\" AND 2002 = \"not tier i\"" }
### INSTRUCTION what is the away team score when the home team is essendon? ### INPUT CREATE TABLE table_name_2 (away_team VARCHAR, home_team VARCHAR) ### OUTPUT SELECT away_team AS score FROM table_name_2 WHERE home_team = "essendon"
{ "input": "CREATE TABLE table_name_2 (away_team VARCHAR, home_team VARCHAR)", "instruction": "what is the away team score when the home team is essendon?", "output": "SELECT away_team AS score FROM table_name_2 WHERE home_team = \"essendon\"" }
### INSTRUCTION Which Seatshave a Share of votes of 18%, and a Share of seats of 3%, and a General election smaller than 1992? ### INPUT CREATE TABLE table_name_6 (seats INTEGER, general_election VARCHAR, share_of_votes VARCHAR, share_of_seats VARCHAR) ### OUTPUT SELECT MIN(seats) FROM table_name_6 WHERE share_of_votes = "18%" AND share_of_seats = "3%" AND general_election < 1992
{ "input": "CREATE TABLE table_name_6 (seats INTEGER, general_election VARCHAR, share_of_votes VARCHAR, share_of_seats VARCHAR)", "instruction": "Which Seatshave a Share of votes of 18%, and a Share of seats of 3%, and a General election smaller than 1992?", "output": "SELECT MIN(seats) FROM table_name_6 WHERE share_of_votes = \"18%\" AND share_of_seats = \"3%\" AND general_election < 1992" }
### INSTRUCTION Driving Force EX of no, and a Driving Force GT of yes, and a Driving Force Pro of yes has what feature? ### INPUT CREATE TABLE table_name_64 (feature VARCHAR, driving_force_pro VARCHAR, driving_force_ex VARCHAR, driving_force_gt VARCHAR) ### OUTPUT SELECT feature FROM table_name_64 WHERE driving_force_ex = "no" AND driving_force_gt = "yes" AND driving_force_pro = "yes"
{ "input": "CREATE TABLE table_name_64 (feature VARCHAR, driving_force_pro VARCHAR, driving_force_ex VARCHAR, driving_force_gt VARCHAR)", "instruction": "Driving Force EX of no, and a Driving Force GT of yes, and a Driving Force Pro of yes has what feature?", "output": "SELECT feature FROM table_name_64 WHERE driving_force_ex = \"no\" AND driving_force_gt = \"yes\" AND driving_force_pro = \"yes\"" }
### INSTRUCTION How many points did agnieszka radwańska score? ### INPUT CREATE TABLE table_20855452_4 (points VARCHAR, player VARCHAR) ### OUTPUT SELECT points FROM table_20855452_4 WHERE player = "Agnieszka Radwańska"
{ "input": "CREATE TABLE table_20855452_4 (points VARCHAR, player VARCHAR)", "instruction": "How many points did agnieszka radwańska score?", "output": "SELECT points FROM table_20855452_4 WHERE player = \"Agnieszka Radwańska\"" }
### INSTRUCTION What is earliest year that had a 50km event with a 2nd place result played in London, United Kingdom? ### INPUT CREATE TABLE table_name_8 (year INTEGER, venue VARCHAR, event VARCHAR, result VARCHAR) ### OUTPUT SELECT MIN(year) FROM table_name_8 WHERE event = "50km" AND result = "2nd" AND venue = "london, united kingdom"
{ "input": "CREATE TABLE table_name_8 (year INTEGER, venue VARCHAR, event VARCHAR, result VARCHAR)", "instruction": "What is earliest year that had a 50km event with a 2nd place result played in London, United Kingdom?", "output": "SELECT MIN(year) FROM table_name_8 WHERE event = \"50km\" AND result = \"2nd\" AND venue = \"london, united kingdom\"" }
### INSTRUCTION If the rating is 9.1, what was the total viewers? ### INPUT CREATE TABLE table_23799417_2 (total_viewers__in_millions_ VARCHAR, rating VARCHAR) ### OUTPUT SELECT total_viewers__in_millions_ FROM table_23799417_2 WHERE rating = "9.1"
{ "input": "CREATE TABLE table_23799417_2 (total_viewers__in_millions_ VARCHAR, rating VARCHAR)", "instruction": "If the rating is 9.1, what was the total viewers?", "output": "SELECT total_viewers__in_millions_ FROM table_23799417_2 WHERE rating = \"9.1\"" }
### INSTRUCTION Which was the position for overall less than 254, round less than 5 and pick number less than 13? ### INPUT CREATE TABLE table_name_64 (position VARCHAR, pick__number VARCHAR, overall VARCHAR, round VARCHAR) ### OUTPUT SELECT position FROM table_name_64 WHERE overall < 254 AND round < 5 AND pick__number < 13
{ "input": "CREATE TABLE table_name_64 (position VARCHAR, pick__number VARCHAR, overall VARCHAR, round VARCHAR)", "instruction": "Which was the position for overall less than 254, round less than 5 and pick number less than 13?", "output": "SELECT position FROM table_name_64 WHERE overall < 254 AND round < 5 AND pick__number < 13" }
### INSTRUCTION How many episodes are numbered 4 in the season? ### INPUT CREATE TABLE table_26561506_1 (patient_portrayer VARCHAR, _number VARCHAR) ### OUTPUT SELECT COUNT(patient_portrayer) FROM table_26561506_1 WHERE _number = 4
{ "input": "CREATE TABLE table_26561506_1 (patient_portrayer VARCHAR, _number VARCHAR)", "instruction": "How many episodes are numbered 4 in the season?", "output": "SELECT COUNT(patient_portrayer) FROM table_26561506_1 WHERE _number = 4" }
### INSTRUCTION How many millions of U.S. viewers watched the episode with the production code of 6AKY07? ### INPUT CREATE TABLE table_28027307_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR) ### OUTPUT SELECT us_viewers__millions_ FROM table_28027307_1 WHERE production_code = "6AKY07"
{ "input": "CREATE TABLE table_28027307_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR)", "instruction": "How many millions of U.S. viewers watched the episode with the production code of 6AKY07?", "output": "SELECT us_viewers__millions_ FROM table_28027307_1 WHERE production_code = \"6AKY07\"" }
### INSTRUCTION When was the callback audition date for the audition city from the episode aired on February 2, 2011? ### INPUT CREATE TABLE table_27455867_1 (callback_audition_date VARCHAR, episode_air_date VARCHAR) ### OUTPUT SELECT callback_audition_date FROM table_27455867_1 WHERE episode_air_date = "February 2, 2011"
{ "input": "CREATE TABLE table_27455867_1 (callback_audition_date VARCHAR, episode_air_date VARCHAR)", "instruction": "When was the callback audition date for the audition city from the episode aired on February 2, 2011?", "output": "SELECT callback_audition_date FROM table_27455867_1 WHERE episode_air_date = \"February 2, 2011\"" }
### INSTRUCTION What number in season is number 141 in series? ### INPUT CREATE TABLE table_27491610_2 (no_in_season INTEGER, no_in_series VARCHAR) ### OUTPUT SELECT MAX(no_in_season) FROM table_27491610_2 WHERE no_in_series = 141
{ "input": "CREATE TABLE table_27491610_2 (no_in_season INTEGER, no_in_series VARCHAR)", "instruction": "What number in season is number 141 in series?", "output": "SELECT MAX(no_in_season) FROM table_27491610_2 WHERE no_in_series = 141" }
### INSTRUCTION What years have goals less than 229, and 440 as matches? ### INPUT CREATE TABLE table_name_70 (years VARCHAR, goals VARCHAR, matches VARCHAR) ### OUTPUT SELECT years FROM table_name_70 WHERE goals < 229 AND matches = 440
{ "input": "CREATE TABLE table_name_70 (years VARCHAR, goals VARCHAR, matches VARCHAR)", "instruction": "What years have goals less than 229, and 440 as matches?", "output": "SELECT years FROM table_name_70 WHERE goals < 229 AND matches = 440" }
### INSTRUCTION Which Date has a Home of montreal canadiens, and Points larger than 9, and a Decision of price? ### INPUT CREATE TABLE table_name_99 (date VARCHAR, decision VARCHAR, home VARCHAR, points VARCHAR) ### OUTPUT SELECT date FROM table_name_99 WHERE home = "montreal canadiens" AND points > 9 AND decision = "price"
{ "input": "CREATE TABLE table_name_99 (date VARCHAR, decision VARCHAR, home VARCHAR, points VARCHAR)", "instruction": "Which Date has a Home of montreal canadiens, and Points larger than 9, and a Decision of price?", "output": "SELECT date FROM table_name_99 WHERE home = \"montreal canadiens\" AND points > 9 AND decision = \"price\"" }
### INSTRUCTION What was the longest carry for kevin clemens with under 31 yards total? ### INPUT CREATE TABLE table_name_72 (long INTEGER, player VARCHAR, yards VARCHAR) ### OUTPUT SELECT MAX(long) FROM table_name_72 WHERE player = "kevin clemens" AND yards < 31
{ "input": "CREATE TABLE table_name_72 (long INTEGER, player VARCHAR, yards VARCHAR)", "instruction": "What was the longest carry for kevin clemens with under 31 yards total?", "output": "SELECT MAX(long) FROM table_name_72 WHERE player = \"kevin clemens\" AND yards < 31" }
### INSTRUCTION What is the average Rebounds, when Minutes Played is "113", and when Games Played is greater than "18"? ### INPUT CREATE TABLE table_name_4 (rebounds INTEGER, minutes_played VARCHAR, games_played VARCHAR) ### OUTPUT SELECT AVG(rebounds) FROM table_name_4 WHERE minutes_played = 113 AND games_played > 18
{ "input": "CREATE TABLE table_name_4 (rebounds INTEGER, minutes_played VARCHAR, games_played VARCHAR)", "instruction": "What is the average Rebounds, when Minutes Played is \"113\", and when Games Played is greater than \"18\"?", "output": "SELECT AVG(rebounds) FROM table_name_4 WHERE minutes_played = 113 AND games_played > 18" }
### INSTRUCTION Find names of the document without any images. ### INPUT CREATE TABLE document_sections_images (section_id VARCHAR); CREATE TABLE documents (document_name VARCHAR); CREATE TABLE documents (document_name VARCHAR, document_code VARCHAR); CREATE TABLE document_sections (document_code VARCHAR, section_id VARCHAR) ### OUTPUT SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id
{ "input": "CREATE TABLE document_sections_images (section_id VARCHAR); CREATE TABLE documents (document_name VARCHAR); CREATE TABLE documents (document_name VARCHAR, document_code VARCHAR); CREATE TABLE document_sections (document_code VARCHAR, section_id VARCHAR)", "instruction": "Find names of the document without any images.", "output": "SELECT document_name FROM documents EXCEPT SELECT t1.document_name FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code JOIN document_sections_images AS t3 ON t2.section_id = t3.section_id" }
### INSTRUCTION What were the events in the 1976 Innsbruck Games? ### INPUT CREATE TABLE table_name_60 (event VARCHAR, games VARCHAR) ### OUTPUT SELECT event FROM table_name_60 WHERE games = "1976 innsbruck"
{ "input": "CREATE TABLE table_name_60 (event VARCHAR, games VARCHAR)", "instruction": "What were the events in the 1976 Innsbruck Games?", "output": "SELECT event FROM table_name_60 WHERE games = \"1976 innsbruck\"" }
### INSTRUCTION In the tkkm o manawatu coed school in kelvin grove, what is the Authority listed/ ### INPUT CREATE TABLE table_name_93 (authority VARCHAR, name VARCHAR, gender VARCHAR, area VARCHAR) ### OUTPUT SELECT authority FROM table_name_93 WHERE gender = "coed" AND area = "kelvin grove" AND name = "tkkm o manawatu"
{ "input": "CREATE TABLE table_name_93 (authority VARCHAR, name VARCHAR, gender VARCHAR, area VARCHAR)", "instruction": "In the tkkm o manawatu coed school in kelvin grove, what is the Authority listed/", "output": "SELECT authority FROM table_name_93 WHERE gender = \"coed\" AND area = \"kelvin grove\" AND name = \"tkkm o manawatu\"" }
### INSTRUCTION What nation had more than 3 bronze, 0 gold, and a total of 9? ### INPUT CREATE TABLE table_name_38 (nation VARCHAR, total VARCHAR, bronze VARCHAR, gold VARCHAR) ### OUTPUT SELECT nation FROM table_name_38 WHERE bronze > 3 AND gold = 0 AND total = 9
{ "input": "CREATE TABLE table_name_38 (nation VARCHAR, total VARCHAR, bronze VARCHAR, gold VARCHAR)", "instruction": "What nation had more than 3 bronze, 0 gold, and a total of 9?", "output": "SELECT nation FROM table_name_38 WHERE bronze > 3 AND gold = 0 AND total = 9" }
### INSTRUCTION What is the average Episode # with a share of 9, and #35 is rank and less than 8.21 viewers? ### INPUT CREATE TABLE table_name_96 (episode__number INTEGER, viewers VARCHAR, share VARCHAR, rank VARCHAR) ### OUTPUT SELECT AVG(episode__number) FROM table_name_96 WHERE share = 9 AND rank = "#35" AND viewers < 8.21
{ "input": "CREATE TABLE table_name_96 (episode__number INTEGER, viewers VARCHAR, share VARCHAR, rank VARCHAR)", "instruction": "What is the average Episode # with a share of 9, and #35 is rank and less than 8.21 viewers?", "output": "SELECT AVG(episode__number) FROM table_name_96 WHERE share = 9 AND rank = \"#35\" AND viewers < 8.21" }
### INSTRUCTION A Round larger than 1, a College of Oklahoma state, and a average Pick # that has a Position of tight end is what? ### INPUT CREATE TABLE table_name_44 (pick__number INTEGER, round VARCHAR, position VARCHAR, college VARCHAR) ### OUTPUT SELECT AVG(pick__number) FROM table_name_44 WHERE position = "tight end" AND college = "oklahoma state" AND round > 1
{ "input": "CREATE TABLE table_name_44 (pick__number INTEGER, round VARCHAR, position VARCHAR, college VARCHAR)", "instruction": "A Round larger than 1, a College of Oklahoma state, and a average Pick # that has a Position of tight end is what?", "output": "SELECT AVG(pick__number) FROM table_name_44 WHERE position = \"tight end\" AND college = \"oklahoma state\" AND round > 1" }
### INSTRUCTION When was the game happening at Halton Stadium? ### INPUT CREATE TABLE table_13328239_4 (date VARCHAR, venue VARCHAR) ### OUTPUT SELECT date FROM table_13328239_4 WHERE venue = "Halton Stadium"
{ "input": "CREATE TABLE table_13328239_4 (date VARCHAR, venue VARCHAR)", "instruction": "When was the game happening at Halton Stadium?", "output": "SELECT date FROM table_13328239_4 WHERE venue = \"Halton Stadium\"" }
### INSTRUCTION How many different writers have written the episode with series number 8? ### INPUT CREATE TABLE table_23958944_2 (written_by VARCHAR, no_by_series VARCHAR) ### OUTPUT SELECT COUNT(written_by) FROM table_23958944_2 WHERE no_by_series = 8
{ "input": "CREATE TABLE table_23958944_2 (written_by VARCHAR, no_by_series VARCHAR)", "instruction": "How many different writers have written the episode with series number 8?", "output": "SELECT COUNT(written_by) FROM table_23958944_2 WHERE no_by_series = 8" }
### INSTRUCTION Which Total is the highest one that has a Gold of 1, and a Nation of czechoslovakia? ### INPUT CREATE TABLE table_name_29 (total INTEGER, gold VARCHAR, nation VARCHAR) ### OUTPUT SELECT MAX(total) FROM table_name_29 WHERE gold = 1 AND nation = "czechoslovakia"
{ "input": "CREATE TABLE table_name_29 (total INTEGER, gold VARCHAR, nation VARCHAR)", "instruction": "Which Total is the highest one that has a Gold of 1, and a Nation of czechoslovakia?", "output": "SELECT MAX(total) FROM table_name_29 WHERE gold = 1 AND nation = \"czechoslovakia\"" }
### INSTRUCTION Which Height Metres / feet has a Rank of 8, and Floors of 3x17? ### INPUT CREATE TABLE table_name_18 (height_metres___feet VARCHAR, rank VARCHAR, floors VARCHAR) ### OUTPUT SELECT height_metres___feet FROM table_name_18 WHERE rank = 8 AND floors = "3x17"
{ "input": "CREATE TABLE table_name_18 (height_metres___feet VARCHAR, rank VARCHAR, floors VARCHAR)", "instruction": "Which Height Metres / feet has a Rank of 8, and Floors of 3x17?", "output": "SELECT height_metres___feet FROM table_name_18 WHERE rank = 8 AND floors = \"3x17\"" }
### INSTRUCTION What is the Airline when the notes show aoc 135? ### INPUT CREATE TABLE table_name_51 (airline VARCHAR, notes VARCHAR) ### OUTPUT SELECT airline FROM table_name_51 WHERE notes = "aoc 135"
{ "input": "CREATE TABLE table_name_51 (airline VARCHAR, notes VARCHAR)", "instruction": "What is the Airline when the notes show aoc 135?", "output": "SELECT airline FROM table_name_51 WHERE notes = \"aoc 135\"" }
### INSTRUCTION Give me a list of descriptions of the problems that are reported by the staff whose first name is Christop. ### INPUT CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR); CREATE TABLE problems (problem_description VARCHAR, reported_by_staff_id VARCHAR) ### OUTPUT SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop"
{ "input": "CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR); CREATE TABLE problems (problem_description VARCHAR, reported_by_staff_id VARCHAR)", "instruction": "Give me a list of descriptions of the problems that are reported by the staff whose first name is Christop.", "output": "SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Christop\"" }
### INSTRUCTION WHich Match has a Venue of h on 22 september 1888 with Attendances smaller than 4,000? ### INPUT CREATE TABLE table_name_99 (match INTEGER, attendance VARCHAR, venue VARCHAR, date VARCHAR) ### OUTPUT SELECT MAX(match) FROM table_name_99 WHERE venue = "h" AND date = "22 september 1888" AND attendance < 4 OFFSET 000
{ "input": "CREATE TABLE table_name_99 (match INTEGER, attendance VARCHAR, venue VARCHAR, date VARCHAR)", "instruction": "WHich Match has a Venue of h on 22 september 1888 with Attendances smaller than 4,000?", "output": "SELECT MAX(match) FROM table_name_99 WHERE venue = \"h\" AND date = \"22 september 1888\" AND attendance < 4 OFFSET 000" }
### INSTRUCTION Who was the original artist for week number Top 16 (8 women)? ### INPUT CREATE TABLE table_15796072_1 (original_artist VARCHAR, week__number VARCHAR) ### OUTPUT SELECT original_artist FROM table_15796072_1 WHERE week__number = "Top 16 (8 Women)"
{ "input": "CREATE TABLE table_15796072_1 (original_artist VARCHAR, week__number VARCHAR)", "instruction": "Who was the original artist for week number Top 16 (8 women)?", "output": "SELECT original_artist FROM table_15796072_1 WHERE week__number = \"Top 16 (8 Women)\"" }
### INSTRUCTION What is the career caps for half-back, when tests is more than 3? ### INPUT CREATE TABLE table_name_73 (career_caps VARCHAR, position VARCHAR, tests VARCHAR) ### OUTPUT SELECT career_caps FROM table_name_73 WHERE position = "half-back" AND tests > 3
{ "input": "CREATE TABLE table_name_73 (career_caps VARCHAR, position VARCHAR, tests VARCHAR)", "instruction": "What is the career caps for half-back, when tests is more than 3?", "output": "SELECT career_caps FROM table_name_73 WHERE position = \"half-back\" AND tests > 3" }
### INSTRUCTION What is the average sinclair coefficient with a Sinclair Total of 477.2772023, and a Weight Class (kg) larger than 105? ### INPUT CREATE TABLE table_name_61 (sinclair_coefficient INTEGER, sinclair_total VARCHAR, weight_class__kg_ VARCHAR) ### OUTPUT SELECT AVG(sinclair_coefficient) FROM table_name_61 WHERE sinclair_total = 477.2772023 AND weight_class__kg_ > 105
{ "input": "CREATE TABLE table_name_61 (sinclair_coefficient INTEGER, sinclair_total VARCHAR, weight_class__kg_ VARCHAR)", "instruction": "What is the average sinclair coefficient with a Sinclair Total of 477.2772023, and a Weight Class (kg) larger than 105?", "output": "SELECT AVG(sinclair_coefficient) FROM table_name_61 WHERE sinclair_total = 477.2772023 AND weight_class__kg_ > 105" }
### INSTRUCTION Name the least fa cup goals with fa cup apps being 2 and fw ### INPUT CREATE TABLE table_27086613_5 (fa_cup_goals INTEGER, fa_cup_apps VARCHAR, position VARCHAR) ### OUTPUT SELECT MIN(fa_cup_goals) FROM table_27086613_5 WHERE fa_cup_apps = 2 AND position = "FW"
{ "input": "CREATE TABLE table_27086613_5 (fa_cup_goals INTEGER, fa_cup_apps VARCHAR, position VARCHAR)", "instruction": "Name the least fa cup goals with fa cup apps being 2 and fw ", "output": "SELECT MIN(fa_cup_goals) FROM table_27086613_5 WHERE fa_cup_apps = 2 AND position = \"FW\"" }
### INSTRUCTION What is the maximum horsepower and the make of the car models with 3 cylinders? ### INPUT CREATE TABLE CAR_NAMES (Make VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (horsepower VARCHAR, Id VARCHAR, cylinders VARCHAR) ### OUTPUT SELECT T2.horsepower, T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1
{ "input": "CREATE TABLE CAR_NAMES (Make VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (horsepower VARCHAR, Id VARCHAR, cylinders VARCHAR)", "instruction": "What is the maximum horsepower and the make of the car models with 3 cylinders?", "output": "SELECT T2.horsepower, T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1" }
### INSTRUCTION What Tournament did Silva Partner with Nicole Thijssen with Opponent in the final Nina Bratchikova & Frederica Piedade? ### INPUT CREATE TABLE table_name_33 (tournament VARCHAR, partner VARCHAR, opponent_in_the_final VARCHAR) ### OUTPUT SELECT tournament FROM table_name_33 WHERE partner = "nicole thijssen" AND opponent_in_the_final = "nina bratchikova & frederica piedade"
{ "input": "CREATE TABLE table_name_33 (tournament VARCHAR, partner VARCHAR, opponent_in_the_final VARCHAR)", "instruction": "What Tournament did Silva Partner with Nicole Thijssen with Opponent in the final Nina Bratchikova & Frederica Piedade?", "output": "SELECT tournament FROM table_name_33 WHERE partner = \"nicole thijssen\" AND opponent_in_the_final = \"nina bratchikova & frederica piedade\"" }
### INSTRUCTION What was the winning score when the margin of victory was 2 strokes and the runner-up was Pat Bradley? ### INPUT CREATE TABLE table_name_69 (winning_score VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR) ### OUTPUT SELECT winning_score FROM table_name_69 WHERE margin_of_victory = "2 strokes" AND runner_s__up = "pat bradley"
{ "input": "CREATE TABLE table_name_69 (winning_score VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)", "instruction": "What was the winning score when the margin of victory was 2 strokes and the runner-up was Pat Bradley?", "output": "SELECT winning_score FROM table_name_69 WHERE margin_of_victory = \"2 strokes\" AND runner_s__up = \"pat bradley\"" }
### INSTRUCTION Find the first and last name of all the students of age 18 who have vice president votes. ### INPUT CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR, age VARCHAR); CREATE TABLE VOTING_RECORD (VICE_President_VOTE VARCHAR) ### OUTPUT SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18
{ "input": "CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR, age VARCHAR); CREATE TABLE VOTING_RECORD (VICE_President_VOTE VARCHAR)", "instruction": "Find the first and last name of all the students of age 18 who have vice president votes.", "output": "SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18" }
### INSTRUCTION What pick number was the Boston Bruins selection for defence? ### INPUT CREATE TABLE table_2897457_8 (pick__number VARCHAR, position VARCHAR, nhl_team VARCHAR) ### OUTPUT SELECT pick__number FROM table_2897457_8 WHERE position = "Defence" AND nhl_team = "Boston Bruins"
{ "input": "CREATE TABLE table_2897457_8 (pick__number VARCHAR, position VARCHAR, nhl_team VARCHAR)", "instruction": "What pick number was the Boston Bruins selection for defence?", "output": "SELECT pick__number FROM table_2897457_8 WHERE position = \"Defence\" AND nhl_team = \"Boston Bruins\"" }
### INSTRUCTION What Location has a College or Campus Name of anna university - tharamani campus? ### INPUT CREATE TABLE table_name_81 (location VARCHAR, college_or_campus_name VARCHAR) ### OUTPUT SELECT location FROM table_name_81 WHERE college_or_campus_name = "anna university - tharamani campus"
{ "input": "CREATE TABLE table_name_81 (location VARCHAR, college_or_campus_name VARCHAR)", "instruction": "What Location has a College or Campus Name of anna university - tharamani campus?", "output": "SELECT location FROM table_name_81 WHERE college_or_campus_name = \"anna university - tharamani campus\"" }
### INSTRUCTION What is the position earlier than 1907, with a cross-code debut of inaugural rl test v new zealand, and a test debut of inaugural ru test v new zealand? ### INPUT CREATE TABLE table_name_92 (position VARCHAR, test_debut VARCHAR, year VARCHAR, cross_code_debut VARCHAR) ### OUTPUT SELECT position FROM table_name_92 WHERE year < 1907 AND cross_code_debut = "inaugural rl test v new zealand" AND test_debut = "inaugural ru test v new zealand"
{ "input": "CREATE TABLE table_name_92 (position VARCHAR, test_debut VARCHAR, year VARCHAR, cross_code_debut VARCHAR)", "instruction": "What is the position earlier than 1907, with a cross-code debut of inaugural rl test v new zealand, and a test debut of inaugural ru test v new zealand?", "output": "SELECT position FROM table_name_92 WHERE year < 1907 AND cross_code_debut = \"inaugural rl test v new zealand\" AND test_debut = \"inaugural ru test v new zealand\"" }
### INSTRUCTION What is the Callsign for the station with the branding 93dot5 home radio Cagayan De Oro? ### INPUT CREATE TABLE table_name_31 (callsign VARCHAR, branding VARCHAR) ### OUTPUT SELECT callsign FROM table_name_31 WHERE branding = "93dot5 home radio cagayan de oro"
{ "input": "CREATE TABLE table_name_31 (callsign VARCHAR, branding VARCHAR)", "instruction": "What is the Callsign for the station with the branding 93dot5 home radio Cagayan De Oro?", "output": "SELECT callsign FROM table_name_31 WHERE branding = \"93dot5 home radio cagayan de oro\"" }
### INSTRUCTION Find the names of scientists who are not working on the project with the highest hours. ### INPUT 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) ### OUTPUT 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)
{ "input": "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)", "instruction": "Find the names of scientists who are not working on the project with the highest hours.", "output": "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)" }
### INSTRUCTION What is the record of game 7? ### INPUT CREATE TABLE table_name_4 (record VARCHAR, game VARCHAR) ### OUTPUT SELECT record FROM table_name_4 WHERE game = 7
{ "input": "CREATE TABLE table_name_4 (record VARCHAR, game VARCHAR)", "instruction": "What is the record of game 7?", "output": "SELECT record FROM table_name_4 WHERE game = 7" }
### INSTRUCTION display the employee id and salary of all employees who report to Payam (first name). ### INPUT CREATE TABLE employees (employee_id VARCHAR, salary VARCHAR, manager_id VARCHAR, first_name VARCHAR) ### OUTPUT SELECT employee_id, salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam')
{ "input": "CREATE TABLE employees (employee_id VARCHAR, salary VARCHAR, manager_id VARCHAR, first_name VARCHAR)", "instruction": "display the employee id and salary of all employees who report to Payam (first name).", "output": "SELECT employee_id, salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam')" }