text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What was the number of channels in New Zealand? ### INPUT CREATE TABLE table_11323532_2 (channel VARCHAR, country_region VARCHAR) ### OUTPUT SELECT COUNT(channel) FROM table_11323532_2 WHERE country_region = "New Zealand"
{ "input": "CREATE TABLE table_11323532_2 (channel VARCHAR, country_region VARCHAR)", "instruction": "What was the number of channels in New Zealand?", "output": "SELECT COUNT(channel) FROM table_11323532_2 WHERE country_region = \"New Zealand\"" }
### INSTRUCTION Name the finish for start of 28 ### INPUT CREATE TABLE table_name_76 (finish VARCHAR, start VARCHAR) ### OUTPUT SELECT finish FROM table_name_76 WHERE start = "28"
{ "input": "CREATE TABLE table_name_76 (finish VARCHAR, start VARCHAR)", "instruction": "Name the finish for start of 28", "output": "SELECT finish FROM table_name_76 WHERE start = \"28\"" }
### INSTRUCTION How many regions had rainfall infiltration (km 3/year) of 9.3? ### INPUT CREATE TABLE table_25983027_1 (rainfall_by_depth__mm_year_ VARCHAR, infiltration__km_3__year_ VARCHAR) ### OUTPUT SELECT COUNT(rainfall_by_depth__mm_year_) FROM table_25983027_1 WHERE infiltration__km_3__year_ = "9.3"
{ "input": "CREATE TABLE table_25983027_1 (rainfall_by_depth__mm_year_ VARCHAR, infiltration__km_3__year_ VARCHAR)", "instruction": "How many regions had rainfall infiltration (km 3/year) of 9.3?", "output": "SELECT COUNT(rainfall_by_depth__mm_year_) FROM table_25983027_1 WHERE infiltration__km_3__year_ = \"9.3\"" }
### INSTRUCTION What is the number of electorates (2009) for the Indore district, when reserved for (SC / ST /None) is none, and constituency number is 208? ### INPUT CREATE TABLE table_name_21 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR) ### OUTPUT SELECT SUM(number_of_electorates__2009_) FROM table_name_21 WHERE district = "indore" AND reserved_for___sc___st__none_ = "none" AND constituency_number = "208"
{ "input": "CREATE TABLE table_name_21 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR)", "instruction": "What is the number of electorates (2009) for the Indore district, when reserved for (SC / ST /None) is none, and constituency number is 208?", "output": "SELECT SUM(number_of_electorates__2009_) FROM table_name_21 WHERE district = \"indore\" AND reserved_for___sc___st__none_ = \"none\" AND constituency_number = \"208\"" }
### INSTRUCTION Find the name of bank branch that provided the greatest total amount of loans. ### INPUT CREATE TABLE loan (branch_id VARCHAR, amount INTEGER); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR) ### OUTPUT SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname ORDER BY SUM(T2.amount) DESC LIMIT 1
{ "input": "CREATE TABLE loan (branch_id VARCHAR, amount INTEGER); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR)", "instruction": "Find the name of bank branch that provided the greatest total amount of loans.", "output": "SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname ORDER BY SUM(T2.amount) DESC LIMIT 1" }
### INSTRUCTION What are the public schools with a master's university? ### INPUT CREATE TABLE table_2076595_1 (location_s_ VARCHAR, control VARCHAR, type VARCHAR) ### OUTPUT SELECT location_s_ FROM table_2076595_1 WHERE control = "Public" AND type = "Master's university"
{ "input": "CREATE TABLE table_2076595_1 (location_s_ VARCHAR, control VARCHAR, type VARCHAR)", "instruction": "What are the public schools with a master's university?", "output": "SELECT location_s_ FROM table_2076595_1 WHERE control = \"Public\" AND type = \"Master's university\"" }
### INSTRUCTION What is the total number of positions with less than 10 points, more than 7 qualifying, ret value in Race 1, and Jonathan Grant driving? ### INPUT CREATE TABLE table_name_51 (pos VARCHAR, driver VARCHAR, race_1 VARCHAR, points VARCHAR, qualifying VARCHAR) ### OUTPUT SELECT COUNT(pos) FROM table_name_51 WHERE points < 10 AND qualifying > 7 AND race_1 = "ret" AND driver = "jonathan grant"
{ "input": "CREATE TABLE table_name_51 (pos VARCHAR, driver VARCHAR, race_1 VARCHAR, points VARCHAR, qualifying VARCHAR)", "instruction": "What is the total number of positions with less than 10 points, more than 7 qualifying, ret value in Race 1, and Jonathan Grant driving?", "output": "SELECT COUNT(pos) FROM table_name_51 WHERE points < 10 AND qualifying > 7 AND race_1 = \"ret\" AND driver = \"jonathan grant\"" }
### INSTRUCTION Who made the challenge in the Australian Grand Prix? ### INPUT CREATE TABLE table_25531112_2 (challenge VARCHAR, event VARCHAR) ### OUTPUT SELECT challenge FROM table_25531112_2 WHERE event = "Australian Grand Prix"
{ "input": "CREATE TABLE table_25531112_2 (challenge VARCHAR, event VARCHAR)", "instruction": "Who made the challenge in the Australian Grand Prix?", "output": "SELECT challenge FROM table_25531112_2 WHERE event = \"Australian Grand Prix\"" }
### INSTRUCTION what is drawn when the club is hirwaun rfc? ### INPUT CREATE TABLE table_name_80 (drawn VARCHAR, club VARCHAR) ### OUTPUT SELECT drawn FROM table_name_80 WHERE club = "hirwaun rfc"
{ "input": "CREATE TABLE table_name_80 (drawn VARCHAR, club VARCHAR)", "instruction": "what is drawn when the club is hirwaun rfc?", "output": "SELECT drawn FROM table_name_80 WHERE club = \"hirwaun rfc\"" }
### INSTRUCTION What was the attendance of the bowl game in Gainesville, Fl? ### INPUT CREATE TABLE table_15190346_2 (attendance VARCHAR, location VARCHAR) ### OUTPUT SELECT attendance FROM table_15190346_2 WHERE location = "Gainesville, FL"
{ "input": "CREATE TABLE table_15190346_2 (attendance VARCHAR, location VARCHAR)", "instruction": "What was the attendance of the bowl game in Gainesville, Fl?", "output": "SELECT attendance FROM table_15190346_2 WHERE location = \"Gainesville, FL\"" }
### INSTRUCTION what is the date when the nationality is united kingdom, the type is freighter and the displacement is 5,145 t? ### INPUT CREATE TABLE table_name_14 (date VARCHAR, displacement VARCHAR, nationality VARCHAR, type VARCHAR) ### OUTPUT SELECT date FROM table_name_14 WHERE nationality = "united kingdom" AND type = "freighter" AND displacement = "5,145 t"
{ "input": "CREATE TABLE table_name_14 (date VARCHAR, displacement VARCHAR, nationality VARCHAR, type VARCHAR)", "instruction": "what is the date when the nationality is united kingdom, the type is freighter and the displacement is 5,145 t?", "output": "SELECT date FROM table_name_14 WHERE nationality = \"united kingdom\" AND type = \"freighter\" AND displacement = \"5,145 t\"" }
### INSTRUCTION Which 1964 has a Country of united states, and a 1969 smaller than 7.3? ### INPUT CREATE TABLE table_name_85 (country VARCHAR) ### OUTPUT SELECT MIN(1964) FROM table_name_85 WHERE country = "united states" AND 1969 < 7.3
{ "input": "CREATE TABLE table_name_85 (country VARCHAR)", "instruction": "Which 1964 has a Country of united states, and a 1969 smaller than 7.3?", "output": "SELECT MIN(1964) FROM table_name_85 WHERE country = \"united states\" AND 1969 < 7.3" }
### INSTRUCTION What are the names of the drama workshop groups with address in Feliciaberg city? ### INPUT CREATE TABLE Addresses (Address_ID VARCHAR, City_Town VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Address_ID VARCHAR) ### OUTPUT SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = "Feliciaberg"
{ "input": "CREATE TABLE Addresses (Address_ID VARCHAR, City_Town VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Address_ID VARCHAR)", "instruction": "What are the names of the drama workshop groups with address in Feliciaberg city?", "output": "SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = \"Feliciaberg\"" }
### INSTRUCTION What is the seat percentage when vote percentage is 2.4% (-8.3)? ### INPUT CREATE TABLE table_name_73 (seat_percentage VARCHAR, vote_percentage VARCHAR) ### OUTPUT SELECT seat_percentage FROM table_name_73 WHERE vote_percentage = "2.4% (-8.3)"
{ "input": "CREATE TABLE table_name_73 (seat_percentage VARCHAR, vote_percentage VARCHAR)", "instruction": "What is the seat percentage when vote percentage is 2.4% (-8.3)?", "output": "SELECT seat_percentage FROM table_name_73 WHERE vote_percentage = \"2.4% (-8.3)\"" }
### INSTRUCTION Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme. ### INPUT CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, age VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Theme VARCHAR, Journal_ID VARCHAR) ### OUTPUT SELECT T2.Name, T2.age, T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID ORDER BY T3.Theme
{ "input": "CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, age VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Theme VARCHAR, Journal_ID VARCHAR)", "instruction": "Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.", "output": "SELECT T2.Name, T2.age, T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID ORDER BY T3.Theme" }
### INSTRUCTION What is the average Year for the Royal Canadian Mint Engravers Artist when the Mintage is under 200? ### INPUT CREATE TABLE table_name_35 (year INTEGER, artist VARCHAR, mintage VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_35 WHERE artist = "royal canadian mint engravers" AND mintage < 200
{ "input": "CREATE TABLE table_name_35 (year INTEGER, artist VARCHAR, mintage VARCHAR)", "instruction": "What is the average Year for the Royal Canadian Mint Engravers Artist when the Mintage is under 200?", "output": "SELECT AVG(year) FROM table_name_35 WHERE artist = \"royal canadian mint engravers\" AND mintage < 200" }
### INSTRUCTION What is the median income for the region where 24.4% pf people make below 60% of the median income? ### INPUT CREATE TABLE table_25042332_16 (median_income___intl INTEGER, below_60_percentage_of_median_income VARCHAR) ### OUTPUT SELECT MIN(median_income___intl) AS $__ FROM table_25042332_16 WHERE below_60_percentage_of_median_income = "24.4%"
{ "input": "CREATE TABLE table_25042332_16 (median_income___intl INTEGER, below_60_percentage_of_median_income VARCHAR)", "instruction": "What is the median income for the region where 24.4% pf people make below 60% of the median income?", "output": "SELECT MIN(median_income___intl) AS $__ FROM table_25042332_16 WHERE below_60_percentage_of_median_income = \"24.4%\"" }
### INSTRUCTION How many did alco -schenectady preserve of class b-3? ### INPUT CREATE TABLE table_name_68 (quantity_preserved VARCHAR, manufacturer VARCHAR, class VARCHAR) ### OUTPUT SELECT quantity_preserved FROM table_name_68 WHERE manufacturer = "alco -schenectady" AND class = "b-3"
{ "input": "CREATE TABLE table_name_68 (quantity_preserved VARCHAR, manufacturer VARCHAR, class VARCHAR)", "instruction": "How many did alco -schenectady preserve of class b-3?", "output": "SELECT quantity_preserved FROM table_name_68 WHERE manufacturer = \"alco -schenectady\" AND class = \"b-3\"" }
### INSTRUCTION What is the shortest length of a track in Norway that has a maximum grade of 15% and a vertical drop less than 122.22 m? ### INPUT CREATE TABLE table_name_72 (length__m_ INTEGER, country VARCHAR, maximum_grade___percentage_ VARCHAR, vertical_drop__m_ VARCHAR) ### OUTPUT SELECT MIN(length__m_) FROM table_name_72 WHERE maximum_grade___percentage_ = "15" AND vertical_drop__m_ < 122.22 AND country = "norway"
{ "input": "CREATE TABLE table_name_72 (length__m_ INTEGER, country VARCHAR, maximum_grade___percentage_ VARCHAR, vertical_drop__m_ VARCHAR)", "instruction": "What is the shortest length of a track in Norway that has a maximum grade of 15% and a vertical drop less than 122.22 m?", "output": "SELECT MIN(length__m_) FROM table_name_72 WHERE maximum_grade___percentage_ = \"15\" AND vertical_drop__m_ < 122.22 AND country = \"norway\"" }
### INSTRUCTION What's percentage voted for Busg in the county where Kerry got 37.6%? ### INPUT CREATE TABLE table_2401326_1 (bush_percentage VARCHAR, kerry_percentage VARCHAR) ### OUTPUT SELECT bush_percentage FROM table_2401326_1 WHERE kerry_percentage = "37.6%"
{ "input": "CREATE TABLE table_2401326_1 (bush_percentage VARCHAR, kerry_percentage VARCHAR)", "instruction": "What's percentage voted for Busg in the county where Kerry got 37.6%?", "output": "SELECT bush_percentage FROM table_2401326_1 WHERE kerry_percentage = \"37.6%\"" }
### INSTRUCTION When houdet ( fra ) w 6-2, 6-1 is the quarterfinals what is the final/bronze medal match? ### INPUT CREATE TABLE table_18602462_21 (final__bronze_medal_match VARCHAR, quarterfinals VARCHAR) ### OUTPUT SELECT final__bronze_medal_match FROM table_18602462_21 WHERE quarterfinals = "Houdet ( FRA ) W 6-2, 6-1"
{ "input": "CREATE TABLE table_18602462_21 (final__bronze_medal_match VARCHAR, quarterfinals VARCHAR)", "instruction": "When houdet ( fra ) w 6-2, 6-1 is the quarterfinals what is the final/bronze medal match?", "output": "SELECT final__bronze_medal_match FROM table_18602462_21 WHERE quarterfinals = \"Houdet ( FRA ) W 6-2, 6-1\"" }
### INSTRUCTION What is Postition, when Nationality is United States, when Jersey Number(s) is 12, and when Player is Tom Black Category:Articles With hCards? ### INPUT CREATE TABLE table_name_50 (position VARCHAR, player VARCHAR, nationality VARCHAR, jersey_number_s_ VARCHAR) ### OUTPUT SELECT position FROM table_name_50 WHERE nationality = "united states" AND jersey_number_s_ = "12" AND player = "tom black category:articles with hcards"
{ "input": "CREATE TABLE table_name_50 (position VARCHAR, player VARCHAR, nationality VARCHAR, jersey_number_s_ VARCHAR)", "instruction": "What is Postition, when Nationality is United States, when Jersey Number(s) is 12, and when Player is Tom Black Category:Articles With hCards?", "output": "SELECT position FROM table_name_50 WHERE nationality = \"united states\" AND jersey_number_s_ = \"12\" AND player = \"tom black category:articles with hcards\"" }
### INSTRUCTION Show the names of players and names of their coaches. ### INPUT CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR); CREATE TABLE coach (coach_name VARCHAR, Coach_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR) ### OUTPUT SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID
{ "input": "CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR); CREATE TABLE coach (coach_name VARCHAR, Coach_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR)", "instruction": "Show the names of players and names of their coaches.", "output": "SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID" }
### INSTRUCTION Who had the high assists when the game was at American Airlines Center 20,223? ### INPUT CREATE TABLE table_name_8 (high_assists VARCHAR, location_attendance VARCHAR) ### OUTPUT SELECT high_assists FROM table_name_8 WHERE location_attendance = "american airlines center 20,223"
{ "input": "CREATE TABLE table_name_8 (high_assists VARCHAR, location_attendance VARCHAR)", "instruction": "Who had the high assists when the game was at American Airlines Center 20,223?", "output": "SELECT high_assists FROM table_name_8 WHERE location_attendance = \"american airlines center 20,223\"" }
### INSTRUCTION What is the Name of the SS5 Stage? ### INPUT CREATE TABLE table_name_90 (name VARCHAR, stage VARCHAR) ### OUTPUT SELECT name FROM table_name_90 WHERE stage = "ss5"
{ "input": "CREATE TABLE table_name_90 (name VARCHAR, stage VARCHAR)", "instruction": "What is the Name of the SS5 Stage?", "output": "SELECT name FROM table_name_90 WHERE stage = \"ss5\"" }
### INSTRUCTION What is the greatest Wins with Matches smaller than 5, and a Year of 1994? ### INPUT CREATE TABLE table_name_26 (wins INTEGER, matches VARCHAR, year VARCHAR) ### OUTPUT SELECT MAX(wins) FROM table_name_26 WHERE matches < 5 AND year = 1994
{ "input": "CREATE TABLE table_name_26 (wins INTEGER, matches VARCHAR, year VARCHAR)", "instruction": "What is the greatest Wins with Matches smaller than 5, and a Year of 1994?", "output": "SELECT MAX(wins) FROM table_name_26 WHERE matches < 5 AND year = 1994" }
### INSTRUCTION What is henry transfer fee at fcbarcelona.cat in fra? ### INPUT CREATE TABLE table_name_41 (transfer_fee VARCHAR, name VARCHAR, source VARCHAR, country VARCHAR) ### OUTPUT SELECT transfer_fee FROM table_name_41 WHERE source = "fcbarcelona.cat" AND country = "fra" AND name = "henry"
{ "input": "CREATE TABLE table_name_41 (transfer_fee VARCHAR, name VARCHAR, source VARCHAR, country VARCHAR)", "instruction": "What is henry transfer fee at fcbarcelona.cat in fra?", "output": "SELECT transfer_fee FROM table_name_41 WHERE source = \"fcbarcelona.cat\" AND country = \"fra\" AND name = \"henry\"" }
### INSTRUCTION what is the teams for season 1950-51? ### INPUT CREATE TABLE table_name_89 (teams VARCHAR, season VARCHAR) ### OUTPUT SELECT teams FROM table_name_89 WHERE season = "1950-51"
{ "input": "CREATE TABLE table_name_89 (teams VARCHAR, season VARCHAR)", "instruction": "what is the teams for season 1950-51?", "output": "SELECT teams FROM table_name_89 WHERE season = \"1950-51\"" }
### INSTRUCTION Who was the CM winning team when the FM winning team was #17 Elva - Ford? ### INPUT CREATE TABLE table_29225103_2 (cm_winning_team VARCHAR, fm_winning_team VARCHAR) ### OUTPUT SELECT cm_winning_team FROM table_29225103_2 WHERE fm_winning_team = "#17 Elva - Ford"
{ "input": "CREATE TABLE table_29225103_2 (cm_winning_team VARCHAR, fm_winning_team VARCHAR)", "instruction": "Who was the CM winning team when the FM winning team was #17 Elva - Ford?", "output": "SELECT cm_winning_team FROM table_29225103_2 WHERE fm_winning_team = \"#17 Elva - Ford\"" }
### INSTRUCTION List the name of all tracks in the playlists of Movies. ### INPUT CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR) ### OUTPUT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = "Movies"
{ "input": "CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)", "instruction": "List the name of all tracks in the playlists of Movies.", "output": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = \"Movies\"" }
### INSTRUCTION What is the average fastest lap speed in race named 'Monaco Grand Prix' in 2008 ? ### INPUT CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (raceid VARCHAR, year VARCHAR, name VARCHAR) ### OUTPUT SELECT AVG(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix"
{ "input": "CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (raceid VARCHAR, year VARCHAR, name VARCHAR)", "instruction": "What is the average fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?", "output": "SELECT AVG(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"" }
### INSTRUCTION What is the point total for the Formula Renault 2.0 Italy series? ### INPUT CREATE TABLE table_21795650_1 (points VARCHAR, series VARCHAR) ### OUTPUT SELECT COUNT(points) FROM table_21795650_1 WHERE series = "Formula Renault 2.0 Italy"
{ "input": "CREATE TABLE table_21795650_1 (points VARCHAR, series VARCHAR)", "instruction": "What is the point total for the Formula Renault 2.0 Italy series?", "output": "SELECT COUNT(points) FROM table_21795650_1 WHERE series = \"Formula Renault 2.0 Italy\"" }
### INSTRUCTION On what day did the team play the Indianapolis Colts? ### INPUT CREATE TABLE table_name_26 (date VARCHAR, opponent VARCHAR) ### OUTPUT SELECT date FROM table_name_26 WHERE opponent = "indianapolis colts"
{ "input": "CREATE TABLE table_name_26 (date VARCHAR, opponent VARCHAR)", "instruction": "On what day did the team play the Indianapolis Colts?", "output": "SELECT date FROM table_name_26 WHERE opponent = \"indianapolis colts\"" }
### INSTRUCTION What is the record when the game was played at raymond james stadium? ### INPUT CREATE TABLE table_name_46 (record VARCHAR, game_site VARCHAR) ### OUTPUT SELECT record FROM table_name_46 WHERE game_site = "raymond james stadium"
{ "input": "CREATE TABLE table_name_46 (record VARCHAR, game_site VARCHAR)", "instruction": "What is the record when the game was played at raymond james stadium?", "output": "SELECT record FROM table_name_46 WHERE game_site = \"raymond james stadium\"" }
### INSTRUCTION Can you tell me the sum of Grid that has the Laps of 30, and the Rider of toni elias? ### INPUT CREATE TABLE table_name_54 (grid INTEGER, laps VARCHAR, rider VARCHAR) ### OUTPUT SELECT SUM(grid) FROM table_name_54 WHERE laps = 30 AND rider = "toni elias"
{ "input": "CREATE TABLE table_name_54 (grid INTEGER, laps VARCHAR, rider VARCHAR)", "instruction": "Can you tell me the sum of Grid that has the Laps of 30, and the Rider of toni elias?", "output": "SELECT SUM(grid) FROM table_name_54 WHERE laps = 30 AND rider = \"toni elias\"" }
### INSTRUCTION What is the smallest value for League Cup when the League number is greater than 1, no FA Cups, and Brian Deane scoring? ### INPUT CREATE TABLE table_name_88 (league INTEGER, fa_cup VARCHAR, name VARCHAR) ### OUTPUT SELECT MIN(league) AS Cup FROM table_name_88 WHERE league > 1 AND name = "brian deane" AND fa_cup < 1
{ "input": "CREATE TABLE table_name_88 (league INTEGER, fa_cup VARCHAR, name VARCHAR)", "instruction": "What is the smallest value for League Cup when the League number is greater than 1, no FA Cups, and Brian Deane scoring?", "output": "SELECT MIN(league) AS Cup FROM table_name_88 WHERE league > 1 AND name = \"brian deane\" AND fa_cup < 1" }
### INSTRUCTION what is the yard name when the ship types delivered is n3 type, v4 type and the total vessels built for usmc is 13 ships for usmc? ### INPUT CREATE TABLE table_name_19 (yard_name VARCHAR, ship_types_delivered VARCHAR, total_vessels_built_for_usmc VARCHAR) ### OUTPUT SELECT yard_name FROM table_name_19 WHERE ship_types_delivered = "n3 type, v4 type" AND total_vessels_built_for_usmc = "13 ships for usmc"
{ "input": "CREATE TABLE table_name_19 (yard_name VARCHAR, ship_types_delivered VARCHAR, total_vessels_built_for_usmc VARCHAR)", "instruction": "what is the yard name when the ship types delivered is n3 type, v4 type and the total vessels built for usmc is 13 ships for usmc?", "output": "SELECT yard_name FROM table_name_19 WHERE ship_types_delivered = \"n3 type, v4 type\" AND total_vessels_built_for_usmc = \"13 ships for usmc\"" }
### INSTRUCTION What is the best top-10 result when events are fewer than 39, top-5 is 1 and more than 5 cuts are made? ### INPUT CREATE TABLE table_name_89 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR) ### OUTPUT SELECT MAX(top_10) FROM table_name_89 WHERE events < 39 AND top_5 = 1 AND cuts_made > 5
{ "input": "CREATE TABLE table_name_89 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR)", "instruction": "What is the best top-10 result when events are fewer than 39, top-5 is 1 and more than 5 cuts are made?", "output": "SELECT MAX(top_10) FROM table_name_89 WHERE events < 39 AND top_5 = 1 AND cuts_made > 5" }
### INSTRUCTION What is the run time for the episode with 7.9 million viewers? ### INPUT CREATE TABLE table_2108684_1 (run_time VARCHAR, viewers__in_millions_ VARCHAR) ### OUTPUT SELECT run_time FROM table_2108684_1 WHERE viewers__in_millions_ = "7.9"
{ "input": "CREATE TABLE table_2108684_1 (run_time VARCHAR, viewers__in_millions_ VARCHAR)", "instruction": "What is the run time for the episode with 7.9 million viewers?", "output": "SELECT run_time FROM table_2108684_1 WHERE viewers__in_millions_ = \"7.9\"" }
### INSTRUCTION When the winners votes were 50.54% who were the members of parliment? ### INPUT CREATE TABLE table_18106841_1 (members_of_parliament VARCHAR, winners__percentage_votes VARCHAR) ### OUTPUT SELECT members_of_parliament FROM table_18106841_1 WHERE winners__percentage_votes = "50.54%"
{ "input": "CREATE TABLE table_18106841_1 (members_of_parliament VARCHAR, winners__percentage_votes VARCHAR)", "instruction": "When the winners votes were 50.54% who were the members of parliment?", "output": "SELECT members_of_parliament FROM table_18106841_1 WHERE winners__percentage_votes = \"50.54%\"" }
### INSTRUCTION What is the classification for the school in the NEC Conference located in New Britain, Connecticut? ### INPUT CREATE TABLE table_name_4 (classification VARCHAR, current_conference VARCHAR, location VARCHAR) ### OUTPUT SELECT classification FROM table_name_4 WHERE current_conference = "nec" AND location = "new britain, connecticut"
{ "input": "CREATE TABLE table_name_4 (classification VARCHAR, current_conference VARCHAR, location VARCHAR)", "instruction": "What is the classification for the school in the NEC Conference located in New Britain, Connecticut?", "output": "SELECT classification FROM table_name_4 WHERE current_conference = \"nec\" AND location = \"new britain, connecticut\"" }
### INSTRUCTION What are the line 1 and average monthly rentals of all student addresses? ### INPUT CREATE TABLE Addresses (line_1 VARCHAR, address_id VARCHAR); CREATE TABLE Student_Addresses (monthly_rental INTEGER, address_id VARCHAR) ### OUTPUT SELECT T1.line_1, AVG(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id
{ "input": "CREATE TABLE Addresses (line_1 VARCHAR, address_id VARCHAR); CREATE TABLE Student_Addresses (monthly_rental INTEGER, address_id VARCHAR)", "instruction": "What are the line 1 and average monthly rentals of all student addresses?", "output": "SELECT T1.line_1, AVG(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id" }
### INSTRUCTION What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area? ### INPUT CREATE TABLE table_name_98 (roll VARCHAR, area VARCHAR, decile VARCHAR, authority VARCHAR) ### OUTPUT SELECT COUNT(roll) FROM table_name_98 WHERE decile = 7 AND authority = "state" AND area = "macraes flat"
{ "input": "CREATE TABLE table_name_98 (roll VARCHAR, area VARCHAR, decile VARCHAR, authority VARCHAR)", "instruction": "What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area?", "output": "SELECT COUNT(roll) FROM table_name_98 WHERE decile = 7 AND authority = \"state\" AND area = \"macraes flat\"" }
### INSTRUCTION Which league has a pick number larger than 204 from Canada and LW as the position? ### INPUT CREATE TABLE table_name_61 (league_from VARCHAR, position VARCHAR, pick__number VARCHAR, nationality VARCHAR) ### OUTPUT SELECT league_from FROM table_name_61 WHERE pick__number > 204 AND nationality = "canada" AND position = "lw"
{ "input": "CREATE TABLE table_name_61 (league_from VARCHAR, position VARCHAR, pick__number VARCHAR, nationality VARCHAR)", "instruction": "Which league has a pick number larger than 204 from Canada and LW as the position?", "output": "SELECT league_from FROM table_name_61 WHERE pick__number > 204 AND nationality = \"canada\" AND position = \"lw\"" }
### INSTRUCTION What date was the game that home team torquay united played? ### INPUT CREATE TABLE table_name_76 (date VARCHAR, home_team VARCHAR) ### OUTPUT SELECT date FROM table_name_76 WHERE home_team = "torquay united"
{ "input": "CREATE TABLE table_name_76 (date VARCHAR, home_team VARCHAR)", "instruction": "What date was the game that home team torquay united played?", "output": "SELECT date FROM table_name_76 WHERE home_team = \"torquay united\"" }
### INSTRUCTION Return ids of all the products that are supplied by supplier id 2 and are more expensive than the average price of all products. ### INPUT CREATE TABLE products (product_id VARCHAR, product_price INTEGER); CREATE TABLE product_suppliers (product_id VARCHAR, supplier_id VARCHAR); CREATE TABLE products (product_price INTEGER) ### OUTPUT SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 AND T2.product_price > (SELECT AVG(product_price) FROM products)
{ "input": "CREATE TABLE products (product_id VARCHAR, product_price INTEGER); CREATE TABLE product_suppliers (product_id VARCHAR, supplier_id VARCHAR); CREATE TABLE products (product_price INTEGER)", "instruction": "Return ids of all the products that are supplied by supplier id 2 and are more expensive than the average price of all products.", "output": "SELECT T1.product_id FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 2 AND T2.product_price > (SELECT AVG(product_price) FROM products)" }
### INSTRUCTION What was the score of the match that was a played on a hard surface against Peter Gojowczyk? ### INPUT CREATE TABLE table_name_85 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) ### OUTPUT SELECT score FROM table_name_85 WHERE surface = "hard" AND opponent_in_the_final = "peter gojowczyk"
{ "input": "CREATE TABLE table_name_85 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)", "instruction": "What was the score of the match that was a played on a hard surface against Peter Gojowczyk?", "output": "SELECT score FROM table_name_85 WHERE surface = \"hard\" AND opponent_in_the_final = \"peter gojowczyk\"" }
### INSTRUCTION How many different L2 cache numbers are there for the 7130M model? ### INPUT CREATE TABLE table_269920_3 (l2_cache__mb_ VARCHAR, model VARCHAR) ### OUTPUT SELECT COUNT(l2_cache__mb_) FROM table_269920_3 WHERE model = "7130M"
{ "input": "CREATE TABLE table_269920_3 (l2_cache__mb_ VARCHAR, model VARCHAR)", "instruction": "How many different L2 cache numbers are there for the 7130M model?", "output": "SELECT COUNT(l2_cache__mb_) FROM table_269920_3 WHERE model = \"7130M\"" }
### INSTRUCTION Name the club team for overall of 188 for canada ### INPUT CREATE TABLE table_name_72 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR) ### OUTPUT SELECT club_team FROM table_name_72 WHERE nationality = "canada" AND overall = 188
{ "input": "CREATE TABLE table_name_72 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR)", "instruction": "Name the club team for overall of 188 for canada", "output": "SELECT club_team FROM table_name_72 WHERE nationality = \"canada\" AND overall = 188" }
### INSTRUCTION Who is the co-contestant (yaar vs. Pyaar) with Vishal Singh as the main contestant? ### INPUT CREATE TABLE table_name_90 (co_contestant__yaar_vs_pyaar_ VARCHAR, main_contestant VARCHAR) ### OUTPUT SELECT co_contestant__yaar_vs_pyaar_ FROM table_name_90 WHERE main_contestant = "vishal singh"
{ "input": "CREATE TABLE table_name_90 (co_contestant__yaar_vs_pyaar_ VARCHAR, main_contestant VARCHAR)", "instruction": "Who is the co-contestant (yaar vs. Pyaar) with Vishal Singh as the main contestant?", "output": "SELECT co_contestant__yaar_vs_pyaar_ FROM table_name_90 WHERE main_contestant = \"vishal singh\"" }
### INSTRUCTION Does the Scout Association of Hong Kong admit boys, girls, or both? ### INPUT CREATE TABLE table_104858_1 (admits_boys_girls VARCHAR, name_of_member_organization VARCHAR) ### OUTPUT SELECT admits_boys_girls FROM table_104858_1 WHERE name_of_member_organization = "The Scout Association of Hong Kong"
{ "input": "CREATE TABLE table_104858_1 (admits_boys_girls VARCHAR, name_of_member_organization VARCHAR)", "instruction": "Does the Scout Association of Hong Kong admit boys, girls, or both?", "output": "SELECT admits_boys_girls FROM table_104858_1 WHERE name_of_member_organization = \"The Scout Association of Hong Kong\"" }
### INSTRUCTION when were helena suková todd woodbridge the opponents in the final ### INPUT CREATE TABLE table_1918850_2 (year VARCHAR, opponents_in_the_final VARCHAR) ### OUTPUT SELECT year FROM table_1918850_2 WHERE opponents_in_the_final = "Helena Suková Todd Woodbridge"
{ "input": "CREATE TABLE table_1918850_2 (year VARCHAR, opponents_in_the_final VARCHAR)", "instruction": "when were helena suková todd woodbridge the opponents in the final", "output": "SELECT year FROM table_1918850_2 WHERE opponents_in_the_final = \"Helena Suková Todd Woodbridge\"" }
### INSTRUCTION What vehicle has an epa highway fuel economy of 109 mpg-e? ### INPUT CREATE TABLE table_20549371_3 (vehicle VARCHAR, epa_rated_highway_fuel_economy VARCHAR) ### OUTPUT SELECT vehicle FROM table_20549371_3 WHERE epa_rated_highway_fuel_economy = "109 mpg-e"
{ "input": "CREATE TABLE table_20549371_3 (vehicle VARCHAR, epa_rated_highway_fuel_economy VARCHAR)", "instruction": "What vehicle has an epa highway fuel economy of 109 mpg-e?", "output": "SELECT vehicle FROM table_20549371_3 WHERE epa_rated_highway_fuel_economy = \"109 mpg-e\"" }
### INSTRUCTION What is the date for Orangeville? ### INPUT CREATE TABLE table_name_56 (date VARCHAR, name VARCHAR) ### OUTPUT SELECT date FROM table_name_56 WHERE name = "orangeville"
{ "input": "CREATE TABLE table_name_56 (date VARCHAR, name VARCHAR)", "instruction": "What is the date for Orangeville?", "output": "SELECT date FROM table_name_56 WHERE name = \"orangeville\"" }
### INSTRUCTION The EVA that started 8 July 12:38 was from what spacecraft? ### INPUT CREATE TABLE table_name_96 (spacecraft VARCHAR, start_date_time VARCHAR) ### OUTPUT SELECT spacecraft FROM table_name_96 WHERE start_date_time = "8 july 12:38"
{ "input": "CREATE TABLE table_name_96 (spacecraft VARCHAR, start_date_time VARCHAR)", "instruction": "The EVA that started 8 July 12:38 was from what spacecraft?", "output": "SELECT spacecraft FROM table_name_96 WHERE start_date_time = \"8 july 12:38\"" }
### INSTRUCTION What Hyper Transport version has 22.4 gb/s of Max. Aggregate bandwidth? ### INPUT CREATE TABLE table_name_51 (hypertransport_version VARCHAR, max_aggregate_bandwidth__bi_directional_ VARCHAR) ### OUTPUT SELECT hypertransport_version FROM table_name_51 WHERE max_aggregate_bandwidth__bi_directional_ = "22.4 gb/s"
{ "input": "CREATE TABLE table_name_51 (hypertransport_version VARCHAR, max_aggregate_bandwidth__bi_directional_ VARCHAR)", "instruction": "What Hyper Transport version has 22.4 gb/s of Max. Aggregate bandwidth?", "output": "SELECT hypertransport_version FROM table_name_51 WHERE max_aggregate_bandwidth__bi_directional_ = \"22.4 gb/s\"" }
### INSTRUCTION What is the latest year a ride opened that was manufactured by Zamperla, was a convoy ride, and had a name of Tiny Truckers? ### INPUT CREATE TABLE table_name_93 (opened_in INTEGER, ride_name VARCHAR, manufacture VARCHAR, type VARCHAR) ### OUTPUT SELECT MAX(opened_in) FROM table_name_93 WHERE manufacture = "zamperla" AND type = "convoy ride" AND ride_name = "tiny truckers"
{ "input": "CREATE TABLE table_name_93 (opened_in INTEGER, ride_name VARCHAR, manufacture VARCHAR, type VARCHAR)", "instruction": "What is the latest year a ride opened that was manufactured by Zamperla, was a convoy ride, and had a name of Tiny Truckers?", "output": "SELECT MAX(opened_in) FROM table_name_93 WHERE manufacture = \"zamperla\" AND type = \"convoy ride\" AND ride_name = \"tiny truckers\"" }
### INSTRUCTION What was the game record when the opponent was 'at Los Angeles Raiders'? ### INPUT CREATE TABLE table_17972193_1 (record VARCHAR, opponent VARCHAR) ### OUTPUT SELECT record FROM table_17972193_1 WHERE opponent = "at Los Angeles Raiders"
{ "input": "CREATE TABLE table_17972193_1 (record VARCHAR, opponent VARCHAR)", "instruction": "What was the game record when the opponent was 'at Los Angeles Raiders'?", "output": "SELECT record FROM table_17972193_1 WHERE opponent = \"at Los Angeles Raiders\"" }
### INSTRUCTION Which winning team has a winning pitcher of Chris Young and was played in Arlington? ### INPUT CREATE TABLE table_name_46 (winning_team VARCHAR, winning_pitcher VARCHAR, location VARCHAR) ### OUTPUT SELECT winning_team FROM table_name_46 WHERE winning_pitcher = "chris young" AND location = "arlington"
{ "input": "CREATE TABLE table_name_46 (winning_team VARCHAR, winning_pitcher VARCHAR, location VARCHAR)", "instruction": "Which winning team has a winning pitcher of Chris Young and was played in Arlington?", "output": "SELECT winning_team FROM table_name_46 WHERE winning_pitcher = \"chris young\" AND location = \"arlington\"" }
### INSTRUCTION What is the cell phone number of the student whose address has the lowest monthly rental? ### INPUT CREATE TABLE Students (cell_mobile_number VARCHAR, student_id VARCHAR); CREATE TABLE Student_Addresses (student_id VARCHAR, monthly_rental VARCHAR) ### OUTPUT SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.monthly_rental LIMIT 1
{ "input": "CREATE TABLE Students (cell_mobile_number VARCHAR, student_id VARCHAR); CREATE TABLE Student_Addresses (student_id VARCHAR, monthly_rental VARCHAR)", "instruction": "What is the cell phone number of the student whose address has the lowest monthly rental?", "output": "SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.monthly_rental LIMIT 1" }
### INSTRUCTION I want to know the total number of national university of ireland with agricultural panel of 0 and labour panel more than 0 ### INPUT CREATE TABLE table_name_34 (national_university_of_ireland VARCHAR, agricultural_panel VARCHAR, labour_panel VARCHAR) ### OUTPUT SELECT COUNT(national_university_of_ireland) FROM table_name_34 WHERE agricultural_panel = 0 AND labour_panel > 0
{ "input": "CREATE TABLE table_name_34 (national_university_of_ireland VARCHAR, agricultural_panel VARCHAR, labour_panel VARCHAR)", "instruction": "I want to know the total number of national university of ireland with agricultural panel of 0 and labour panel more than 0", "output": "SELECT COUNT(national_university_of_ireland) FROM table_name_34 WHERE agricultural_panel = 0 AND labour_panel > 0" }
### INSTRUCTION Which Genre has a Game of donkey kong country? ### INPUT CREATE TABLE table_name_81 (genre VARCHAR, game VARCHAR) ### OUTPUT SELECT genre FROM table_name_81 WHERE game = "donkey kong country"
{ "input": "CREATE TABLE table_name_81 (genre VARCHAR, game VARCHAR)", "instruction": "Which Genre has a Game of donkey kong country?", "output": "SELECT genre FROM table_name_81 WHERE game = \"donkey kong country\"" }
### INSTRUCTION Find the SSN and name of scientists who are assigned to the project with the longest hours. ### INPUT CREATE TABLE scientists (ssn VARCHAR, name VARCHAR, SSN VARCHAR); CREATE TABLE projects (code VARCHAR, hours INTEGER); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (hours INTEGER) ### OUTPUT SELECT T3.ssn, 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 (ssn VARCHAR, name VARCHAR, SSN VARCHAR); CREATE TABLE projects (code VARCHAR, hours INTEGER); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (hours INTEGER)", "instruction": "Find the SSN and name of scientists who are assigned to the project with the longest hours.", "output": "SELECT T3.ssn, 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 was the air date in the U.S. for the episode that had 1.452 million Canadian viewers? ### INPUT CREATE TABLE table_18424435_4 (us_air_date VARCHAR, canadian_viewers__million_ VARCHAR) ### OUTPUT SELECT us_air_date FROM table_18424435_4 WHERE canadian_viewers__million_ = "1.452"
{ "input": "CREATE TABLE table_18424435_4 (us_air_date VARCHAR, canadian_viewers__million_ VARCHAR)", "instruction": "What was the air date in the U.S. for the episode that had 1.452 million Canadian viewers?", "output": "SELECT us_air_date FROM table_18424435_4 WHERE canadian_viewers__million_ = \"1.452\"" }
### INSTRUCTION Find the total hours of the projects that scientists named Michael Rogers or Carol Smith are assigned to. ### INPUT CREATE TABLE scientists (SSN VARCHAR, name VARCHAR); CREATE TABLE projects (hours INTEGER, code VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR) ### OUTPUT SELECT SUM(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name = 'Michael Rogers' OR T3.name = 'Carol Smith'
{ "input": "CREATE TABLE scientists (SSN VARCHAR, name VARCHAR); CREATE TABLE projects (hours INTEGER, code VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR)", "instruction": "Find the total hours of the projects that scientists named Michael Rogers or Carol Smith are assigned to.", "output": "SELECT SUM(T2.hours) FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name = 'Michael Rogers' OR T3.name = 'Carol Smith'" }
### INSTRUCTION Release date of 2008 q3, and a Part number(s) of nu80579ez009c has what Release price ( USD )? ### INPUT CREATE TABLE table_name_3 (release_price___usd__ VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR) ### OUTPUT SELECT release_price___usd__ FROM table_name_3 WHERE release_date = "2008 q3" AND part_number_s_ = "nu80579ez009c"
{ "input": "CREATE TABLE table_name_3 (release_price___usd__ VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR)", "instruction": "Release date of 2008 q3, and a Part number(s) of nu80579ez009c has what Release price ( USD )?", "output": "SELECT release_price___usd__ FROM table_name_3 WHERE release_date = \"2008 q3\" AND part_number_s_ = \"nu80579ez009c\"" }
### INSTRUCTION Before 1987, what is the Entrant with bmw straight-4 (t/c) as Engine and a great than 2 Pts? ### INPUT CREATE TABLE table_name_12 (entrant VARCHAR, pts VARCHAR, year VARCHAR, engine VARCHAR) ### OUTPUT SELECT entrant FROM table_name_12 WHERE year < 1987 AND engine = "bmw straight-4 (t/c)" AND pts > 2
{ "input": "CREATE TABLE table_name_12 (entrant VARCHAR, pts VARCHAR, year VARCHAR, engine VARCHAR)", "instruction": "Before 1987, what is the Entrant with bmw straight-4 (t/c) as Engine and a great than 2 Pts?", "output": "SELECT entrant FROM table_name_12 WHERE year < 1987 AND engine = \"bmw straight-4 (t/c)\" AND pts > 2" }
### INSTRUCTION Show the average room count of the apartments that have booking status code "Provisional". ### INPUT CREATE TABLE Apartment_Bookings (apt_id VARCHAR, booking_status_code VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR) ### OUTPUT SELECT AVG(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Provisional"
{ "input": "CREATE TABLE Apartment_Bookings (apt_id VARCHAR, booking_status_code VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR)", "instruction": "Show the average room count of the apartments that have booking status code \"Provisional\".", "output": "SELECT AVG(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = \"Provisional\"" }
### INSTRUCTION Who was the rider riding the Kawasaki ZX-6r, that rode less than 22 laps, and the grid was greater than 19, and retirement was the time? ### INPUT CREATE TABLE table_name_64 (rider VARCHAR, bike VARCHAR, time VARCHAR, laps VARCHAR, grid VARCHAR) ### OUTPUT SELECT rider FROM table_name_64 WHERE laps < 22 AND grid > 19 AND time = "retirement" AND bike = "kawasaki zx-6r"
{ "input": "CREATE TABLE table_name_64 (rider VARCHAR, bike VARCHAR, time VARCHAR, laps VARCHAR, grid VARCHAR)", "instruction": "Who was the rider riding the Kawasaki ZX-6r, that rode less than 22 laps, and the grid was greater than 19, and retirement was the time?", "output": "SELECT rider FROM table_name_64 WHERE laps < 22 AND grid > 19 AND time = \"retirement\" AND bike = \"kawasaki zx-6r\"" }
### INSTRUCTION What is the sum of the capacities for Carrigh wind warm that has a size of 0.85 MW and more than 3 turbines? ### INPUT CREATE TABLE table_name_31 (capacity__mw_ INTEGER, turbines VARCHAR, size__mw_ VARCHAR, wind_farm VARCHAR) ### OUTPUT SELECT SUM(capacity__mw_) FROM table_name_31 WHERE size__mw_ = "0.85" AND wind_farm = "carrigh" AND turbines > 3
{ "input": "CREATE TABLE table_name_31 (capacity__mw_ INTEGER, turbines VARCHAR, size__mw_ VARCHAR, wind_farm VARCHAR)", "instruction": "What is the sum of the capacities for Carrigh wind warm that has a size of 0.85 MW and more than 3 turbines?", "output": "SELECT SUM(capacity__mw_) FROM table_name_31 WHERE size__mw_ = \"0.85\" AND wind_farm = \"carrigh\" AND turbines > 3" }
### INSTRUCTION What is the highest round played by Chris Phillips? ### INPUT CREATE TABLE table_name_67 (round INTEGER, player VARCHAR) ### OUTPUT SELECT MAX(round) FROM table_name_67 WHERE player = "chris phillips"
{ "input": "CREATE TABLE table_name_67 (round INTEGER, player VARCHAR)", "instruction": "What is the highest round played by Chris Phillips?", "output": "SELECT MAX(round) FROM table_name_67 WHERE player = \"chris phillips\"" }
### INSTRUCTION Give the most points that features jordan 194 in the Chassis column. ### INPUT CREATE TABLE table_name_64 (points INTEGER, chassis VARCHAR) ### OUTPUT SELECT MAX(points) FROM table_name_64 WHERE chassis = "jordan 194"
{ "input": "CREATE TABLE table_name_64 (points INTEGER, chassis VARCHAR)", "instruction": "Give the most points that features jordan 194 in the Chassis column.", "output": "SELECT MAX(points) FROM table_name_64 WHERE chassis = \"jordan 194\"" }
### INSTRUCTION Name the average Played with a Points of 0*? ### INPUT CREATE TABLE table_name_72 (played INTEGER, points VARCHAR) ### OUTPUT SELECT AVG(played) FROM table_name_72 WHERE points = "0*"
{ "input": "CREATE TABLE table_name_72 (played INTEGER, points VARCHAR)", "instruction": "Name the average Played with a Points of 0*?", "output": "SELECT AVG(played) FROM table_name_72 WHERE points = \"0*\"" }
### INSTRUCTION What is the highest Goals Against, when Club is "Pontevedra CF", and when Played is less than 38? ### INPUT CREATE TABLE table_name_74 (goals_against INTEGER, club VARCHAR, played VARCHAR) ### OUTPUT SELECT MAX(goals_against) FROM table_name_74 WHERE club = "pontevedra cf" AND played < 38
{ "input": "CREATE TABLE table_name_74 (goals_against INTEGER, club VARCHAR, played VARCHAR)", "instruction": "What is the highest Goals Against, when Club is \"Pontevedra CF\", and when Played is less than 38?", "output": "SELECT MAX(goals_against) FROM table_name_74 WHERE club = \"pontevedra cf\" AND played < 38" }
### INSTRUCTION What are the id and name of the mountains that have at least 2 photos? ### INPUT CREATE TABLE mountain (id VARCHAR, name VARCHAR); CREATE TABLE photos (mountain_id VARCHAR) ### OUTPUT SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id GROUP BY T1.id HAVING COUNT(*) >= 2
{ "input": "CREATE TABLE mountain (id VARCHAR, name VARCHAR); CREATE TABLE photos (mountain_id VARCHAR)", "instruction": "What are the id and name of the mountains that have at least 2 photos?", "output": "SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id GROUP BY T1.id HAVING COUNT(*) >= 2" }
### INSTRUCTION When has a Surface of clay, and an Opponent in the final of andrés gómez javier sánchez? ### INPUT CREATE TABLE table_name_98 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) ### OUTPUT SELECT date FROM table_name_98 WHERE surface = "clay" AND opponent_in_the_final = "andrés gómez javier sánchez"
{ "input": "CREATE TABLE table_name_98 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)", "instruction": "When has a Surface of clay, and an Opponent in the final of andrés gómez javier sánchez?", "output": "SELECT date FROM table_name_98 WHERE surface = \"clay\" AND opponent_in_the_final = \"andrés gómez javier sánchez\"" }
### INSTRUCTION How many sockets are listed that have a brand name of "Core i3-2xx7m"? ### INPUT CREATE TABLE table_24538587_11 (socket VARCHAR, brand_name__list_ VARCHAR) ### OUTPUT SELECT COUNT(socket) FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-2xx7M"
{ "input": "CREATE TABLE table_24538587_11 (socket VARCHAR, brand_name__list_ VARCHAR)", "instruction": "How many sockets are listed that have a brand name of \"Core i3-2xx7m\"?", "output": "SELECT COUNT(socket) FROM table_24538587_11 WHERE brand_name__list_ = \"Core i3-2xx7M\"" }
### INSTRUCTION What are all the course names of the courses which ever have students enrolled in? ### INPUT CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Enrolment_Courses (course_id VARCHAR) ### OUTPUT SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id
{ "input": "CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Enrolment_Courses (course_id VARCHAR)", "instruction": "What are all the course names of the courses which ever have students enrolled in?", "output": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id" }
### INSTRUCTION What is the name and job title of the staff who was assigned the latest? ### INPUT CREATE TABLE staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (job_title_code VARCHAR, staff_id VARCHAR, date_assigned_to VARCHAR) ### OUTPUT SELECT T1.staff_name, T2.job_title_code FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY T2.date_assigned_to DESC LIMIT 1
{ "input": "CREATE TABLE staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (job_title_code VARCHAR, staff_id VARCHAR, date_assigned_to VARCHAR)", "instruction": "What is the name and job title of the staff who was assigned the latest?", "output": "SELECT T1.staff_name, T2.job_title_code FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY T2.date_assigned_to DESC LIMIT 1" }
### INSTRUCTION What type has an unspecified species and less than 367 genes? ### INPUT CREATE TABLE table_name_65 (type VARCHAR, species VARCHAR, genes VARCHAR) ### OUTPUT SELECT type FROM table_name_65 WHERE species = "unspecified" AND genes < 367
{ "input": "CREATE TABLE table_name_65 (type VARCHAR, species VARCHAR, genes VARCHAR)", "instruction": "What type has an unspecified species and less than 367 genes?", "output": "SELECT type FROM table_name_65 WHERE species = \"unspecified\" AND genes < 367" }
### INSTRUCTION What is Position, when School/Previous Club Team/Country is Kentucky? ### INPUT CREATE TABLE table_name_67 (position VARCHAR, school_previous_club_team_country VARCHAR) ### OUTPUT SELECT position FROM table_name_67 WHERE school_previous_club_team_country = "kentucky"
{ "input": "CREATE TABLE table_name_67 (position VARCHAR, school_previous_club_team_country VARCHAR)", "instruction": "What is Position, when School/Previous Club Team/Country is Kentucky?", "output": "SELECT position FROM table_name_67 WHERE school_previous_club_team_country = \"kentucky\"" }
### INSTRUCTION What is the name of the tournament played 13 November 2000? ### INPUT CREATE TABLE table_name_35 (tournament VARCHAR, date VARCHAR) ### OUTPUT SELECT tournament FROM table_name_35 WHERE date = "13 november 2000"
{ "input": "CREATE TABLE table_name_35 (tournament VARCHAR, date VARCHAR)", "instruction": "What is the name of the tournament played 13 November 2000?", "output": "SELECT tournament FROM table_name_35 WHERE date = \"13 november 2000\"" }
### INSTRUCTION What is the number of distinct continents where Chinese is spoken? ### INPUT CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Chinese"
{ "input": "CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)", "instruction": "What is the number of distinct continents where Chinese is spoken?", "output": "SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\"" }
### INSTRUCTION In what round was the loss at ufc 118? ### INPUT CREATE TABLE table_name_92 (round VARCHAR, res VARCHAR, event VARCHAR) ### OUTPUT SELECT round FROM table_name_92 WHERE res = "loss" AND event = "ufc 118"
{ "input": "CREATE TABLE table_name_92 (round VARCHAR, res VARCHAR, event VARCHAR)", "instruction": "In what round was the loss at ufc 118?", "output": "SELECT round FROM table_name_92 WHERE res = \"loss\" AND event = \"ufc 118\"" }
### INSTRUCTION Who was the stage winner when the stage was more than 10 and yellow jersey was Joseph Planckaert? ### INPUT CREATE TABLE table_name_99 (stage VARCHAR, yellow_jersey VARCHAR) ### OUTPUT SELECT stage AS winner FROM table_name_99 WHERE stage > 10 AND yellow_jersey = "joseph planckaert"
{ "input": "CREATE TABLE table_name_99 (stage VARCHAR, yellow_jersey VARCHAR)", "instruction": "Who was the stage winner when the stage was more than 10 and yellow jersey was Joseph Planckaert?", "output": "SELECT stage AS winner FROM table_name_99 WHERE stage > 10 AND yellow_jersey = \"joseph planckaert\"" }
### INSTRUCTION What's the airing date of Armed Reaction 陀槍師姐 with 20 episodes in the Modern Action genre having an official website? ### INPUT CREATE TABLE table_name_50 (airing_date VARCHAR, english_title__chinese_title_ VARCHAR, genre VARCHAR, official_website VARCHAR, number_of_episodes VARCHAR) ### OUTPUT SELECT airing_date FROM table_name_50 WHERE official_website = "official website" AND number_of_episodes = 20 AND genre = "modern action" AND english_title__chinese_title_ = "armed reaction 陀槍師姐"
{ "input": "CREATE TABLE table_name_50 (airing_date VARCHAR, english_title__chinese_title_ VARCHAR, genre VARCHAR, official_website VARCHAR, number_of_episodes VARCHAR)", "instruction": "What's the airing date of Armed Reaction 陀槍師姐 with 20 episodes in the Modern Action genre having an official website?", "output": "SELECT airing_date FROM table_name_50 WHERE official_website = \"official website\" AND number_of_episodes = 20 AND genre = \"modern action\" AND english_title__chinese_title_ = \"armed reaction 陀槍師姐\"" }
### INSTRUCTION Find the name of tracks which are in Movies playlist but not in music playlist. ### INPUT CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR) ### OUTPUT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'
{ "input": "CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)", "instruction": "Find the name of tracks which are in Movies playlist but not in music playlist.", "output": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'" }
### INSTRUCTION What is the smallest apps in Honduras with less than 2 goals for Club Deportivo Victoria in a division over 1? ### INPUT CREATE TABLE table_name_79 (apps INTEGER, division VARCHAR, team VARCHAR, country VARCHAR, goals VARCHAR) ### OUTPUT SELECT MIN(apps) FROM table_name_79 WHERE country = "honduras" AND goals < 2 AND team = "club deportivo victoria" AND division > 1
{ "input": "CREATE TABLE table_name_79 (apps INTEGER, division VARCHAR, team VARCHAR, country VARCHAR, goals VARCHAR)", "instruction": "What is the smallest apps in Honduras with less than 2 goals for Club Deportivo Victoria in a division over 1?", "output": "SELECT MIN(apps) FROM table_name_79 WHERE country = \"honduras\" AND goals < 2 AND team = \"club deportivo victoria\" AND division > 1" }
### INSTRUCTION Name the vice captain for melbourne victory ### INPUT CREATE TABLE table_1301373_7 (Vice VARCHAR, captain VARCHAR, club VARCHAR) ### OUTPUT SELECT Vice - captain FROM table_1301373_7 WHERE club = "Melbourne Victory"
{ "input": "CREATE TABLE table_1301373_7 (Vice VARCHAR, captain VARCHAR, club VARCHAR)", "instruction": "Name the vice captain for melbourne victory", "output": "SELECT Vice - captain FROM table_1301373_7 WHERE club = \"Melbourne Victory\"" }
### INSTRUCTION Which Pos has a Make of chevrolet, and a Driver of jack sprague, and a Car # smaller than 2? ### INPUT CREATE TABLE table_name_41 (pos INTEGER, car__number VARCHAR, make VARCHAR, driver VARCHAR) ### OUTPUT SELECT SUM(pos) FROM table_name_41 WHERE make = "chevrolet" AND driver = "jack sprague" AND car__number < 2
{ "input": "CREATE TABLE table_name_41 (pos INTEGER, car__number VARCHAR, make VARCHAR, driver VARCHAR)", "instruction": "Which Pos has a Make of chevrolet, and a Driver of jack sprague, and a Car # smaller than 2?", "output": "SELECT SUM(pos) FROM table_name_41 WHERE make = \"chevrolet\" AND driver = \"jack sprague\" AND car__number < 2" }
### INSTRUCTION Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order). ### INPUT CREATE TABLE products (name VARCHAR, price VARCHAR) ### OUTPUT SELECT name, price FROM products WHERE price >= 180 ORDER BY price DESC, name
{ "input": "CREATE TABLE products (name VARCHAR, price VARCHAR)", "instruction": "Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order).", "output": "SELECT name, price FROM products WHERE price >= 180 ORDER BY price DESC, name" }
### INSTRUCTION How many different product types are there? ### INPUT CREATE TABLE products_for_hire (product_type_code VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT product_type_code) FROM products_for_hire
{ "input": "CREATE TABLE products_for_hire (product_type_code VARCHAR)", "instruction": "How many different product types are there?", "output": "SELECT COUNT(DISTINCT product_type_code) FROM products_for_hire" }
### INSTRUCTION What is the league name for the regular season status of 2nd, mid atlantic? ### INPUT CREATE TABLE table_16636344_1 (league VARCHAR, regular_season VARCHAR) ### OUTPUT SELECT league FROM table_16636344_1 WHERE regular_season = "2nd, Mid Atlantic"
{ "input": "CREATE TABLE table_16636344_1 (league VARCHAR, regular_season VARCHAR)", "instruction": "What is the league name for the regular season status of 2nd, mid atlantic?", "output": "SELECT league FROM table_16636344_1 WHERE regular_season = \"2nd, Mid Atlantic\"" }
### INSTRUCTION what's the date of completion where deadline for completion is september 30, 2007 ### INPUT CREATE TABLE table_12078626_1 (date_of_completion VARCHAR, deadline_for_completion VARCHAR) ### OUTPUT SELECT date_of_completion FROM table_12078626_1 WHERE deadline_for_completion = "September 30, 2007"
{ "input": "CREATE TABLE table_12078626_1 (date_of_completion VARCHAR, deadline_for_completion VARCHAR)", "instruction": " what's the date of completion where deadline for completion is september 30, 2007", "output": "SELECT date_of_completion FROM table_12078626_1 WHERE deadline_for_completion = \"September 30, 2007\"" }
### INSTRUCTION Find the number of medications prescribed for each brand. ### INPUT CREATE TABLE medication (name VARCHAR, brand VARCHAR, code VARCHAR); CREATE TABLE prescribes (medication VARCHAR) ### OUTPUT SELECT COUNT(*), T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand
{ "input": "CREATE TABLE medication (name VARCHAR, brand VARCHAR, code VARCHAR); CREATE TABLE prescribes (medication VARCHAR)", "instruction": "Find the number of medications prescribed for each brand.", "output": "SELECT COUNT(*), T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand" }
### INSTRUCTION What sensor has a resolution of 640x480 with small CPU usage, jpeg compressed output and a camera of sony playstation eyetoy? ### INPUT CREATE TABLE table_name_21 (sensor VARCHAR, camera VARCHAR, output VARCHAR, sensor_resolution VARCHAR, cpu_usage VARCHAR) ### OUTPUT SELECT sensor FROM table_name_21 WHERE sensor_resolution = "640x480" AND cpu_usage = "small" AND output = "jpeg compressed" AND camera = "sony playstation eyetoy"
{ "input": "CREATE TABLE table_name_21 (sensor VARCHAR, camera VARCHAR, output VARCHAR, sensor_resolution VARCHAR, cpu_usage VARCHAR)", "instruction": "What sensor has a resolution of 640x480 with small CPU usage, jpeg compressed output and a camera of sony playstation eyetoy?", "output": "SELECT sensor FROM table_name_21 WHERE sensor_resolution = \"640x480\" AND cpu_usage = \"small\" AND output = \"jpeg compressed\" AND camera = \"sony playstation eyetoy\"" }
### INSTRUCTION What is the fewest draws for teams with a 0 goal difference and under 55 goals against? ### INPUT CREATE TABLE table_name_45 (drawn INTEGER, goal_difference VARCHAR, goals_against VARCHAR) ### OUTPUT SELECT MIN(drawn) FROM table_name_45 WHERE goal_difference = "0" AND goals_against < 55
{ "input": "CREATE TABLE table_name_45 (drawn INTEGER, goal_difference VARCHAR, goals_against VARCHAR)", "instruction": "What is the fewest draws for teams with a 0 goal difference and under 55 goals against?", "output": "SELECT MIN(drawn) FROM table_name_45 WHERE goal_difference = \"0\" AND goals_against < 55" }
### INSTRUCTION Which Number of households has Per capita income of $21,571, and a Population smaller than 9,783? ### INPUT CREATE TABLE table_name_61 (number_of_households INTEGER, per_capita_income VARCHAR, population VARCHAR) ### OUTPUT SELECT AVG(number_of_households) FROM table_name_61 WHERE per_capita_income = "$21,571" AND population < 9 OFFSET 783
{ "input": "CREATE TABLE table_name_61 (number_of_households INTEGER, per_capita_income VARCHAR, population VARCHAR)", "instruction": "Which Number of households has Per capita income of $21,571, and a Population smaller than 9,783?", "output": "SELECT AVG(number_of_households) FROM table_name_61 WHERE per_capita_income = \"$21,571\" AND population < 9 OFFSET 783" }
### INSTRUCTION Find the name and account balance of the customers who have loans with a total amount of more than 5000. ### INPUT CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR, cust_id VARCHAR) ### OUTPUT SELECT T1.cust_name, T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING SUM(T2.amount) > 5000
{ "input": "CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR, cust_id VARCHAR)", "instruction": "Find the name and account balance of the customers who have loans with a total amount of more than 5000.", "output": "SELECT T1.cust_name, T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING SUM(T2.amount) > 5000" }
### INSTRUCTION Who had the pole position in the August 15, 1981 race? ### INPUT CREATE TABLE table_22765887_1 (pole_position VARCHAR, date VARCHAR) ### OUTPUT SELECT pole_position FROM table_22765887_1 WHERE date = "August 15, 1981"
{ "input": "CREATE TABLE table_22765887_1 (pole_position VARCHAR, date VARCHAR)", "instruction": "Who had the pole position in the August 15, 1981 race? ", "output": "SELECT pole_position FROM table_22765887_1 WHERE date = \"August 15, 1981\"" }