text
stringlengths
147
1.06k
source
dict
### INSTRUCTION How many viewers are the when the draw is 3? ### INPUT CREATE TABLE table_27994983_8 (viewers INTEGER, draw VARCHAR) ### OUTPUT SELECT MAX(viewers) FROM table_27994983_8 WHERE draw = 3
{ "input": "CREATE TABLE table_27994983_8 (viewers INTEGER, draw VARCHAR)", "instruction": "How many viewers are the when the draw is 3?", "output": "SELECT MAX(viewers) FROM table_27994983_8 WHERE draw = 3" }
### INSTRUCTION When the stamp duty reserve tax is 3,669 what is the percentage over gdp? ### INPUT CREATE TABLE table_1618358_1 (over_gdp__in__percentage_ VARCHAR, stamp_duty_reserve_tax VARCHAR) ### OUTPUT SELECT over_gdp__in__percentage_ FROM table_1618358_1 WHERE stamp_duty_reserve_tax = "3,669"
{ "input": "CREATE TABLE table_1618358_1 (over_gdp__in__percentage_ VARCHAR, stamp_duty_reserve_tax VARCHAR)", "instruction": "When the stamp duty reserve tax is 3,669 what is the percentage over gdp?", "output": "SELECT over_gdp__in__percentage_ FROM table_1618358_1 WHERE stamp_duty_reserve_tax = \"3,669\"" }
### INSTRUCTION What was the position of the player picked by the Montreal Canadiens? ### INPUT CREATE TABLE table_1473672_5 (position VARCHAR, nhl_team VARCHAR) ### OUTPUT SELECT position FROM table_1473672_5 WHERE nhl_team = "Montreal Canadiens"
{ "input": "CREATE TABLE table_1473672_5 (position VARCHAR, nhl_team VARCHAR)", "instruction": "What was the position of the player picked by the Montreal Canadiens?", "output": "SELECT position FROM table_1473672_5 WHERE nhl_team = \"Montreal Canadiens\"" }
### INSTRUCTION What is the Report of Winning Team Penske Racing, and what was Rick Mears' Pole position? ### INPUT CREATE TABLE table_name_68 (report VARCHAR, winning_team VARCHAR, pole_position VARCHAR) ### OUTPUT SELECT report FROM table_name_68 WHERE winning_team = "penske racing" AND pole_position = "rick mears"
{ "input": "CREATE TABLE table_name_68 (report VARCHAR, winning_team VARCHAR, pole_position VARCHAR)", "instruction": "What is the Report of Winning Team Penske Racing, and what was Rick Mears' Pole position?", "output": "SELECT report FROM table_name_68 WHERE winning_team = \"penske racing\" AND pole_position = \"rick mears\"" }
### INSTRUCTION What record has Glenn Robinson (16) as the leading scorer? ### INPUT CREATE TABLE table_name_83 (record VARCHAR, leading_scorer VARCHAR) ### OUTPUT SELECT record FROM table_name_83 WHERE leading_scorer = "glenn robinson (16)"
{ "input": "CREATE TABLE table_name_83 (record VARCHAR, leading_scorer VARCHAR)", "instruction": "What record has Glenn Robinson (16) as the leading scorer?", "output": "SELECT record FROM table_name_83 WHERE leading_scorer = \"glenn robinson (16)\"" }
### INSTRUCTION Which Leading scorer 1 has a League Contested of northern premier league premier division, and an FA Cup of 2q? ### INPUT CREATE TABLE table_name_2 (leading_scorer_1 VARCHAR, leaguecontested VARCHAR, fa_cup VARCHAR) ### OUTPUT SELECT leading_scorer_1 FROM table_name_2 WHERE leaguecontested = "northern premier league premier division" AND fa_cup = "2q"
{ "input": "CREATE TABLE table_name_2 (leading_scorer_1 VARCHAR, leaguecontested VARCHAR, fa_cup VARCHAR)", "instruction": "Which Leading scorer 1 has a League Contested of northern premier league premier division, and an FA Cup of 2q?", "output": "SELECT leading_scorer_1 FROM table_name_2 WHERE leaguecontested = \"northern premier league premier division\" AND fa_cup = \"2q\"" }
### INSTRUCTION If the points scored were 93.45%, what's the lowest amount of games lost? ### INPUT CREATE TABLE table_name_27 (lost INTEGER, _percentage_pts VARCHAR) ### OUTPUT SELECT MIN(lost) FROM table_name_27 WHERE _percentage_pts = 93.45
{ "input": "CREATE TABLE table_name_27 (lost INTEGER, _percentage_pts VARCHAR)", "instruction": "If the points scored were 93.45%, what's the lowest amount of games lost?", "output": "SELECT MIN(lost) FROM table_name_27 WHERE _percentage_pts = 93.45" }
### INSTRUCTION Which Delegate has a Placement in Miss Universe of fourth runner-up, and a Hometown of makati , rizal? ### INPUT CREATE TABLE table_name_96 (delegate VARCHAR, placement_in_miss_universe VARCHAR, hometown VARCHAR) ### OUTPUT SELECT delegate FROM table_name_96 WHERE placement_in_miss_universe = "fourth runner-up" AND hometown = "makati , rizal"
{ "input": "CREATE TABLE table_name_96 (delegate VARCHAR, placement_in_miss_universe VARCHAR, hometown VARCHAR)", "instruction": "Which Delegate has a Placement in Miss Universe of fourth runner-up, and a Hometown of makati , rizal?", "output": "SELECT delegate FROM table_name_96 WHERE placement_in_miss_universe = \"fourth runner-up\" AND hometown = \"makati , rizal\"" }
### INSTRUCTION What was the average attendance on October 30, 1938? ### INPUT CREATE TABLE table_name_33 (attendance INTEGER, date VARCHAR) ### OUTPUT SELECT AVG(attendance) FROM table_name_33 WHERE date = "october 30, 1938"
{ "input": "CREATE TABLE table_name_33 (attendance INTEGER, date VARCHAR)", "instruction": "What was the average attendance on October 30, 1938?", "output": "SELECT AVG(attendance) FROM table_name_33 WHERE date = \"october 30, 1938\"" }
### INSTRUCTION Tell me the DA for bureau chief ada ### INPUT CREATE TABLE table_name_22 (district_attorney VARCHAR, position VARCHAR) ### OUTPUT SELECT district_attorney FROM table_name_22 WHERE position = "bureau chief ada"
{ "input": "CREATE TABLE table_name_22 (district_attorney VARCHAR, position VARCHAR)", "instruction": "Tell me the DA for bureau chief ada", "output": "SELECT district_attorney FROM table_name_22 WHERE position = \"bureau chief ada\"" }
### INSTRUCTION Who is the visitor team on Saturday, November 22 when linköpings hc was the home team and there were more than 20 rounds? ### INPUT CREATE TABLE table_name_89 (visitor VARCHAR, date VARCHAR, home VARCHAR, round VARCHAR) ### OUTPUT SELECT visitor FROM table_name_89 WHERE home = "linköpings hc" AND round > 20 AND date = "saturday, november 22"
{ "input": "CREATE TABLE table_name_89 (visitor VARCHAR, date VARCHAR, home VARCHAR, round VARCHAR)", "instruction": "Who is the visitor team on Saturday, November 22 when linköpings hc was the home team and there were more than 20 rounds?", "output": "SELECT visitor FROM table_name_89 WHERE home = \"linköpings hc\" AND round > 20 AND date = \"saturday, november 22\"" }
### INSTRUCTION How many records are there for the game on november 24? ### INPUT CREATE TABLE table_27715173_6 (record VARCHAR, date VARCHAR) ### OUTPUT SELECT COUNT(record) FROM table_27715173_6 WHERE date = "November 24"
{ "input": "CREATE TABLE table_27715173_6 (record VARCHAR, date VARCHAR)", "instruction": "How many records are there for the game on november 24?", "output": "SELECT COUNT(record) FROM table_27715173_6 WHERE date = \"November 24\"" }
### INSTRUCTION Which object type had an NGC number greater than 6357 and a declination (J2000) of °45′34″? ### INPUT CREATE TABLE table_name_53 (object_type VARCHAR, ngc_number VARCHAR, declination___j2000__ VARCHAR) ### OUTPUT SELECT object_type FROM table_name_53 WHERE ngc_number > 6357 AND declination___j2000__ = "°45′34″"
{ "input": "CREATE TABLE table_name_53 (object_type VARCHAR, ngc_number VARCHAR, declination___j2000__ VARCHAR)", "instruction": "Which object type had an NGC number greater than 6357 and a declination (J2000) of °45′34″?", "output": "SELECT object_type FROM table_name_53 WHERE ngc_number > 6357 AND declination___j2000__ = \"°45′34″\"" }
### INSTRUCTION What is To par, when Total is less than 148, and when Country is "South Africa"? ### INPUT CREATE TABLE table_name_7 (to_par VARCHAR, total VARCHAR, country VARCHAR) ### OUTPUT SELECT to_par FROM table_name_7 WHERE total < 148 AND country = "south africa"
{ "input": "CREATE TABLE table_name_7 (to_par VARCHAR, total VARCHAR, country VARCHAR)", "instruction": "What is To par, when Total is less than 148, and when Country is \"South Africa\"?", "output": "SELECT to_par FROM table_name_7 WHERE total < 148 AND country = \"south africa\"" }
### INSTRUCTION What is Score, when Game is less than 61, when February is less than 11, and when Opponent is "@ Buffalo Sabres"? ### INPUT CREATE TABLE table_name_25 (score VARCHAR, opponent VARCHAR, game VARCHAR, february VARCHAR) ### OUTPUT SELECT score FROM table_name_25 WHERE game < 61 AND february < 11 AND opponent = "@ buffalo sabres"
{ "input": "CREATE TABLE table_name_25 (score VARCHAR, opponent VARCHAR, game VARCHAR, february VARCHAR)", "instruction": "What is Score, when Game is less than 61, when February is less than 11, and when Opponent is \"@ Buffalo Sabres\"?", "output": "SELECT score FROM table_name_25 WHERE game < 61 AND february < 11 AND opponent = \"@ buffalo sabres\"" }
### INSTRUCTION How many games did they have a record of 39-12-6? ### INPUT CREATE TABLE table_23308178_8 (game VARCHAR, record VARCHAR) ### OUTPUT SELECT COUNT(game) FROM table_23308178_8 WHERE record = "39-12-6"
{ "input": "CREATE TABLE table_23308178_8 (game VARCHAR, record VARCHAR)", "instruction": "How many games did they have a record of 39-12-6?", "output": "SELECT COUNT(game) FROM table_23308178_8 WHERE record = \"39-12-6\"" }
### INSTRUCTION What are the luma samples at level 1.3? ### INPUT CREATE TABLE table_237036_2 (luma_samples_s VARCHAR, level VARCHAR) ### OUTPUT SELECT luma_samples_s FROM table_237036_2 WHERE level = "1.3"
{ "input": "CREATE TABLE table_237036_2 (luma_samples_s VARCHAR, level VARCHAR)", "instruction": "What are the luma samples at level 1.3?", "output": "SELECT luma_samples_s FROM table_237036_2 WHERE level = \"1.3\"" }
### INSTRUCTION What is San Antonio game number? ### INPUT CREATE TABLE table_11960610_10 (game INTEGER, team VARCHAR) ### OUTPUT SELECT MAX(game) FROM table_11960610_10 WHERE team = "San Antonio"
{ "input": "CREATE TABLE table_11960610_10 (game INTEGER, team VARCHAR)", "instruction": "What is San Antonio game number?", "output": "SELECT MAX(game) FROM table_11960610_10 WHERE team = \"San Antonio\"" }
### INSTRUCTION What was the Winning Score on May 29, 1977? ### INPUT CREATE TABLE table_name_2 (winning_score VARCHAR, date VARCHAR) ### OUTPUT SELECT winning_score FROM table_name_2 WHERE date = "may 29, 1977"
{ "input": "CREATE TABLE table_name_2 (winning_score VARCHAR, date VARCHAR)", "instruction": "What was the Winning Score on May 29, 1977?", "output": "SELECT winning_score FROM table_name_2 WHERE date = \"may 29, 1977\"" }
### INSTRUCTION What is the earnings per share when the net profit is 16.2 million dollars? ### INPUT CREATE TABLE table_18077713_1 (earnings_per_share__¢_ VARCHAR, net_profit__us_$m_ VARCHAR) ### OUTPUT SELECT earnings_per_share__¢_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "16.2"
{ "input": "CREATE TABLE table_18077713_1 (earnings_per_share__¢_ VARCHAR, net_profit__us_$m_ VARCHAR)", "instruction": "What is the earnings per share when the net profit is 16.2 million dollars?", "output": "SELECT earnings_per_share__¢_ FROM table_18077713_1 WHERE net_profit__us_$m_ = \"16.2\"" }
### INSTRUCTION Name the best supporting actress for sun honglei for mongol ### INPUT CREATE TABLE table_15301258_1 (best_supporting_actress VARCHAR, best_supporting_actor VARCHAR) ### OUTPUT SELECT best_supporting_actress FROM table_15301258_1 WHERE best_supporting_actor = "Sun Honglei for Mongol"
{ "input": "CREATE TABLE table_15301258_1 (best_supporting_actress VARCHAR, best_supporting_actor VARCHAR)", "instruction": "Name the best supporting actress for sun honglei for mongol", "output": "SELECT best_supporting_actress FROM table_15301258_1 WHERE best_supporting_actor = \"Sun Honglei for Mongol\"" }
### INSTRUCTION What is the minimum population of the region in which Roskilde is the largest city? ### INPUT CREATE TABLE table_16278602_1 (_2008_ VARCHAR, population__january_1 INTEGER, largest_city VARCHAR) ### OUTPUT SELECT MIN(population__january_1), _2008_ FROM table_16278602_1 WHERE largest_city = "Roskilde"
{ "input": "CREATE TABLE table_16278602_1 (_2008_ VARCHAR, population__january_1 INTEGER, largest_city VARCHAR)", "instruction": "What is the minimum population of the region in which Roskilde is the largest city?", "output": "SELECT MIN(population__january_1), _2008_ FROM table_16278602_1 WHERE largest_city = \"Roskilde\"" }
### INSTRUCTION The score of 73-71-70=214 belongs to what country? ### INPUT CREATE TABLE table_name_77 (country VARCHAR, score VARCHAR) ### OUTPUT SELECT country FROM table_name_77 WHERE score = 73 - 71 - 70 = 214
{ "input": "CREATE TABLE table_name_77 (country VARCHAR, score VARCHAR)", "instruction": "The score of 73-71-70=214 belongs to what country?", "output": "SELECT country FROM table_name_77 WHERE score = 73 - 71 - 70 = 214" }
### INSTRUCTION Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names. ### INPUT CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR, grade VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR) ### OUTPUT SELECT DISTINCT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER"
{ "input": "CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR, grade VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)", "instruction": "Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.", "output": "SELECT DISTINCT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"OTHA\" AND T2.lastname = \"MOYER\"" }
### INSTRUCTION how many millions of spectator did has the episode whose prod.code was rp#213? ### INPUT CREATE TABLE table_23117208_3 (viewers__millions_ VARCHAR, prod_code VARCHAR) ### OUTPUT SELECT viewers__millions_ FROM table_23117208_3 WHERE prod_code = "RP#213"
{ "input": "CREATE TABLE table_23117208_3 (viewers__millions_ VARCHAR, prod_code VARCHAR)", "instruction": "how many millions of spectator did has the episode whose prod.code was rp#213?", "output": "SELECT viewers__millions_ FROM table_23117208_3 WHERE prod_code = \"RP#213\"" }
### INSTRUCTION What is the largest metropolitan area of the Central-West? ### INPUT CREATE TABLE table_name_99 (largest_metropolitan_area VARCHAR, name VARCHAR) ### OUTPUT SELECT largest_metropolitan_area FROM table_name_99 WHERE name = "central-west"
{ "input": "CREATE TABLE table_name_99 (largest_metropolitan_area VARCHAR, name VARCHAR)", "instruction": "What is the largest metropolitan area of the Central-West?", "output": "SELECT largest_metropolitan_area FROM table_name_99 WHERE name = \"central-west\"" }
### INSTRUCTION What is the GDP (billion US$) of the country that has a GDP per capita (US$) of 8,861? ### INPUT CREATE TABLE table_name_29 (gdp__billion_us$_ VARCHAR, gdp_per_capita__us$_ VARCHAR) ### OUTPUT SELECT gdp__billion_us$_ FROM table_name_29 WHERE gdp_per_capita__us$_ = "8,861"
{ "input": "CREATE TABLE table_name_29 (gdp__billion_us$_ VARCHAR, gdp_per_capita__us$_ VARCHAR)", "instruction": "What is the GDP (billion US$) of the country that has a GDP per capita (US$) of 8,861?", "output": "SELECT gdp__billion_us$_ FROM table_name_29 WHERE gdp_per_capita__us$_ = \"8,861\"" }
### INSTRUCTION Opponents of sebastián decoud santiago giraldo had what surface? ### INPUT CREATE TABLE table_name_71 (surface VARCHAR, opponents VARCHAR) ### OUTPUT SELECT surface FROM table_name_71 WHERE opponents = "sebastián decoud santiago giraldo"
{ "input": "CREATE TABLE table_name_71 (surface VARCHAR, opponents VARCHAR)", "instruction": "Opponents of sebastián decoud santiago giraldo had what surface?", "output": "SELECT surface FROM table_name_71 WHERE opponents = \"sebastián decoud santiago giraldo\"" }
### INSTRUCTION What is the chassis of Officine Alfieri Maserati with a Maserati Straight-6 engine and fewer than 6 points? ### INPUT CREATE TABLE table_name_55 (chassis VARCHAR, points VARCHAR, engine VARCHAR, entrant VARCHAR) ### OUTPUT SELECT chassis FROM table_name_55 WHERE engine = "maserati straight-6" AND entrant = "officine alfieri maserati" AND points < 6
{ "input": "CREATE TABLE table_name_55 (chassis VARCHAR, points VARCHAR, engine VARCHAR, entrant VARCHAR)", "instruction": "What is the chassis of Officine Alfieri Maserati with a Maserati Straight-6 engine and fewer than 6 points?", "output": "SELECT chassis FROM table_name_55 WHERE engine = \"maserati straight-6\" AND entrant = \"officine alfieri maserati\" AND points < 6" }
### INSTRUCTION how many times what the position 6th, the competition was super league xvii and played was larger than 27? ### INPUT CREATE TABLE table_name_22 (drawn VARCHAR, played VARCHAR, position VARCHAR, competition VARCHAR) ### OUTPUT SELECT COUNT(drawn) FROM table_name_22 WHERE position = "6th" AND competition = "super league xvii" AND played > 27
{ "input": "CREATE TABLE table_name_22 (drawn VARCHAR, played VARCHAR, position VARCHAR, competition VARCHAR)", "instruction": "how many times what the position 6th, the competition was super league xvii and played was larger than 27?", "output": "SELECT COUNT(drawn) FROM table_name_22 WHERE position = \"6th\" AND competition = \"super league xvii\" AND played > 27" }
### INSTRUCTION What is the remark for Norway? ### INPUT CREATE TABLE table_name_38 (remarks VARCHAR, country_of_origin VARCHAR) ### OUTPUT SELECT remarks FROM table_name_38 WHERE country_of_origin = "norway"
{ "input": "CREATE TABLE table_name_38 (remarks VARCHAR, country_of_origin VARCHAR)", "instruction": "What is the remark for Norway?", "output": "SELECT remarks FROM table_name_38 WHERE country_of_origin = \"norway\"" }
### INSTRUCTION Who is from south africa and has a score of 76-75-73-71=295? ### INPUT CREATE TABLE table_name_25 (player VARCHAR, country VARCHAR, score VARCHAR) ### OUTPUT SELECT player FROM table_name_25 WHERE country = "south africa" AND score = 76 - 75 - 73 - 71 = 295
{ "input": "CREATE TABLE table_name_25 (player VARCHAR, country VARCHAR, score VARCHAR)", "instruction": "Who is from south africa and has a score of 76-75-73-71=295?", "output": "SELECT player FROM table_name_25 WHERE country = \"south africa\" AND score = 76 - 75 - 73 - 71 = 295" }
### INSTRUCTION What is the largest amount of wins when there are less than 5 points, the class is 500cc, the team is norton, and the year is more recent than 1955? ### INPUT CREATE TABLE table_name_1 (wins INTEGER, year VARCHAR, team VARCHAR, points VARCHAR, class VARCHAR) ### OUTPUT SELECT MAX(wins) FROM table_name_1 WHERE points < 5 AND class = "500cc" AND team = "norton" AND year > 1955
{ "input": "CREATE TABLE table_name_1 (wins INTEGER, year VARCHAR, team VARCHAR, points VARCHAR, class VARCHAR)", "instruction": "What is the largest amount of wins when there are less than 5 points, the class is 500cc, the team is norton, and the year is more recent than 1955?", "output": "SELECT MAX(wins) FROM table_name_1 WHERE points < 5 AND class = \"500cc\" AND team = \"norton\" AND year > 1955" }
### INSTRUCTION Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35? ### INPUT CREATE TABLE table_name_94 (played INTEGER, goals_against VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR) ### OUTPUT SELECT AVG(played) FROM table_name_94 WHERE position < 4 AND wins > 16 AND points = 38 AND goals_against > 35
{ "input": "CREATE TABLE table_name_94 (played INTEGER, goals_against VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR)", "instruction": "Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35?", "output": "SELECT AVG(played) FROM table_name_94 WHERE position < 4 AND wins > 16 AND points = 38 AND goals_against > 35" }
### INSTRUCTION List the name and phone number of all suppliers in the alphabetical order of their addresses. ### INPUT CREATE TABLE addresses (address_id VARCHAR, address_details VARCHAR); CREATE TABLE supplier_addresses (supplier_id VARCHAR, address_id VARCHAR); CREATE TABLE Suppliers (supplier_name VARCHAR, supplier_phone VARCHAR, supplier_id VARCHAR) ### OUTPUT SELECT T1.supplier_name, T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id ORDER BY T3.address_details
{ "input": "CREATE TABLE addresses (address_id VARCHAR, address_details VARCHAR); CREATE TABLE supplier_addresses (supplier_id VARCHAR, address_id VARCHAR); CREATE TABLE Suppliers (supplier_name VARCHAR, supplier_phone VARCHAR, supplier_id VARCHAR)", "instruction": "List the name and phone number of all suppliers in the alphabetical order of their addresses.", "output": "SELECT T1.supplier_name, T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id ORDER BY T3.address_details" }
### INSTRUCTION Which Round is the average one that has a Pick # larger than 26, and a Position of defensive back? ### INPUT CREATE TABLE table_name_52 (round INTEGER, pick__number VARCHAR, position VARCHAR) ### OUTPUT SELECT AVG(round) FROM table_name_52 WHERE pick__number > 26 AND position = "defensive back"
{ "input": "CREATE TABLE table_name_52 (round INTEGER, pick__number VARCHAR, position VARCHAR)", "instruction": "Which Round is the average one that has a Pick # larger than 26, and a Position of defensive back?", "output": "SELECT AVG(round) FROM table_name_52 WHERE pick__number > 26 AND position = \"defensive back\"" }
### INSTRUCTION Find the first and last name of the author(s) who wrote the paper "Nameless, Painless". ### INPUT CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR) ### OUTPUT SELECT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Nameless , Painless"
{ "input": "CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR)", "instruction": "Find the first and last name of the author(s) who wrote the paper \"Nameless, Painless\".", "output": "SELECT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = \"Nameless , Painless\"" }
### INSTRUCTION What is the opening day net gross a Reliance Entertainment movie before 2011 had? ### INPUT CREATE TABLE table_name_90 (opening_day_net_gross INTEGER, studio_s_ VARCHAR, year VARCHAR) ### OUTPUT SELECT SUM(opening_day_net_gross) FROM table_name_90 WHERE studio_s_ = "reliance entertainment" AND year < 2011
{ "input": "CREATE TABLE table_name_90 (opening_day_net_gross INTEGER, studio_s_ VARCHAR, year VARCHAR)", "instruction": "What is the opening day net gross a Reliance Entertainment movie before 2011 had?", "output": "SELECT SUM(opening_day_net_gross) FROM table_name_90 WHERE studio_s_ = \"reliance entertainment\" AND year < 2011" }
### INSTRUCTION What was the spending per capita when the revenue per capita was $7,755? ### INPUT CREATE TABLE table_14700336_1 (spending_per_capita VARCHAR, revenue_per_capita VARCHAR) ### OUTPUT SELECT spending_per_capita FROM table_14700336_1 WHERE revenue_per_capita = "$7,755"
{ "input": "CREATE TABLE table_14700336_1 (spending_per_capita VARCHAR, revenue_per_capita VARCHAR)", "instruction": "What was the spending per capita when the revenue per capita was $7,755?", "output": "SELECT spending_per_capita FROM table_14700336_1 WHERE revenue_per_capita = \"$7,755\"" }
### INSTRUCTION How many assists per game in the tournament 2010 fiba world championship? ### INPUT CREATE TABLE table_2387461_1 (assists_per_game VARCHAR, tournament VARCHAR) ### OUTPUT SELECT assists_per_game FROM table_2387461_1 WHERE tournament = "2010 FIBA World Championship"
{ "input": "CREATE TABLE table_2387461_1 (assists_per_game VARCHAR, tournament VARCHAR)", "instruction": "How many assists per game in the tournament 2010 fiba world championship?", "output": "SELECT assists_per_game FROM table_2387461_1 WHERE tournament = \"2010 FIBA World Championship\"" }
### INSTRUCTION Find the name of the ships that are steered by both a captain with Midshipman rank and a captain with Lieutenant rank. ### INPUT CREATE TABLE ship (name VARCHAR, ship_id VARCHAR); CREATE TABLE captain (ship_id VARCHAR, rank VARCHAR) ### OUTPUT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant'
{ "input": "CREATE TABLE ship (name VARCHAR, ship_id VARCHAR); CREATE TABLE captain (ship_id VARCHAR, rank VARCHAR)", "instruction": "Find the name of the ships that are steered by both a captain with Midshipman rank and a captain with Lieutenant rank.", "output": "SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant'" }
### INSTRUCTION If Internet Explorer is 47.22%, what is the Safari total? ### INPUT CREATE TABLE table_1876262_10 (safari VARCHAR, internet_explorer VARCHAR) ### OUTPUT SELECT safari FROM table_1876262_10 WHERE internet_explorer = "47.22%"
{ "input": "CREATE TABLE table_1876262_10 (safari VARCHAR, internet_explorer VARCHAR)", "instruction": "If Internet Explorer is 47.22%, what is the Safari total?", "output": "SELECT safari FROM table_1876262_10 WHERE internet_explorer = \"47.22%\"" }
### INSTRUCTION Show the name of colleges that have at least two players in descending alphabetical order. ### INPUT CREATE TABLE match_season (College VARCHAR) ### OUTPUT SELECT College FROM match_season GROUP BY College HAVING COUNT(*) >= 2 ORDER BY College DESC
{ "input": "CREATE TABLE match_season (College VARCHAR)", "instruction": "Show the name of colleges that have at least two players in descending alphabetical order.", "output": "SELECT College FROM match_season GROUP BY College HAVING COUNT(*) >= 2 ORDER BY College DESC" }
### INSTRUCTION Name the most pick number for real salt lake and affiliation of ucla los angeles storm ### INPUT CREATE TABLE table_name_63 (pick__number INTEGER, mls_team VARCHAR, affiliation VARCHAR) ### OUTPUT SELECT MAX(pick__number) FROM table_name_63 WHERE mls_team = "real salt lake" AND affiliation = "ucla los angeles storm"
{ "input": "CREATE TABLE table_name_63 (pick__number INTEGER, mls_team VARCHAR, affiliation VARCHAR)", "instruction": "Name the most pick number for real salt lake and affiliation of ucla los angeles storm", "output": "SELECT MAX(pick__number) FROM table_name_63 WHERE mls_team = \"real salt lake\" AND affiliation = \"ucla los angeles storm\"" }
### INSTRUCTION Name the total number for 3 public ### INPUT CREATE TABLE table_26375386_22 (total VARCHAR, public VARCHAR) ### OUTPUT SELECT COUNT(total) FROM table_26375386_22 WHERE public = 3
{ "input": "CREATE TABLE table_26375386_22 (total VARCHAR, public VARCHAR)", "instruction": "Name the total number for 3 public", "output": "SELECT COUNT(total) FROM table_26375386_22 WHERE public = 3" }
### INSTRUCTION What is the date of appointment for outgoing manager Campbell Money ### INPUT CREATE TABLE table_11206916_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) ### OUTPUT SELECT date_of_appointment FROM table_11206916_2 WHERE outgoing_manager = "Campbell Money"
{ "input": "CREATE TABLE table_11206916_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)", "instruction": "What is the date of appointment for outgoing manager Campbell Money", "output": "SELECT date_of_appointment FROM table_11206916_2 WHERE outgoing_manager = \"Campbell Money\"" }
### INSTRUCTION What is the production when engine is 2.7l, and acceleration 0–100km/h (0–62mph) is 8.5 s? ### INPUT CREATE TABLE table_name_5 (production VARCHAR, engine VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR) ### OUTPUT SELECT production FROM table_name_5 WHERE engine = "2.7l" AND acceleration_0_100km_h__0_62mph_ = "8.5 s"
{ "input": "CREATE TABLE table_name_5 (production VARCHAR, engine VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)", "instruction": "What is the production when engine is 2.7l, and acceleration 0–100km/h (0–62mph) is 8.5 s?", "output": "SELECT production FROM table_name_5 WHERE engine = \"2.7l\" AND acceleration_0_100km_h__0_62mph_ = \"8.5 s\"" }
### INSTRUCTION Find the name of the scientist who worked on both a project named 'Matter of Time' and a project named 'A Puzzling Parallax'. ### INPUT CREATE TABLE projects (code VARCHAR, name VARCHAR); CREATE TABLE scientists (name VARCHAR, SSN VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR) ### OUTPUT 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.name = 'Matter of Time' INTERSECT 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.name = 'A Puzzling Parallax'
{ "input": "CREATE TABLE projects (code VARCHAR, name VARCHAR); CREATE TABLE scientists (name VARCHAR, SSN VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR)", "instruction": "Find the name of the scientist who worked on both a project named 'Matter of Time' and a project named 'A Puzzling Parallax'.", "output": "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.name = 'Matter of Time' INTERSECT 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.name = 'A Puzzling Parallax'" }
### INSTRUCTION Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program. ### INPUT CREATE TABLE Addresses (address_id VARCHAR, state_province_county VARCHAR); CREATE TABLE Students (last_name VARCHAR, current_address_id VARCHAR); CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR) ### OUTPUT SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id
{ "input": "CREATE TABLE Addresses (address_id VARCHAR, state_province_county VARCHAR); CREATE TABLE Students (last_name VARCHAR, current_address_id VARCHAR); CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR)", "instruction": "Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.", "output": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id" }
### INSTRUCTION What is the goal difference when there are fewer than 12 wins, 32 goals against and 8 draws? ### INPUT CREATE TABLE table_name_3 (goal_difference INTEGER, wins VARCHAR, draws VARCHAR, goals_against VARCHAR) ### OUTPUT SELECT SUM(goal_difference) FROM table_name_3 WHERE draws = 8 AND goals_against = 32 AND wins < 12
{ "input": "CREATE TABLE table_name_3 (goal_difference INTEGER, wins VARCHAR, draws VARCHAR, goals_against VARCHAR)", "instruction": "What is the goal difference when there are fewer than 12 wins, 32 goals against and 8 draws?", "output": "SELECT SUM(goal_difference) FROM table_name_3 WHERE draws = 8 AND goals_against = 32 AND wins < 12" }
### INSTRUCTION Which round has pain and glory 2006 as the event? ### INPUT CREATE TABLE table_name_94 (round VARCHAR, event VARCHAR) ### OUTPUT SELECT round FROM table_name_94 WHERE event = "pain and glory 2006"
{ "input": "CREATE TABLE table_name_94 (round VARCHAR, event VARCHAR)", "instruction": "Which round has pain and glory 2006 as the event?", "output": "SELECT round FROM table_name_94 WHERE event = \"pain and glory 2006\"" }
### INSTRUCTION What year was the League the malaysian super league, and a Malaysia Cup of group stage? ### INPUT CREATE TABLE table_name_73 (year VARCHAR, league VARCHAR, malaysia_cup VARCHAR) ### OUTPUT SELECT year FROM table_name_73 WHERE league = "malaysian super league" AND malaysia_cup = "group stage"
{ "input": "CREATE TABLE table_name_73 (year VARCHAR, league VARCHAR, malaysia_cup VARCHAR)", "instruction": "What year was the League the malaysian super league, and a Malaysia Cup of group stage?", "output": "SELECT year FROM table_name_73 WHERE league = \"malaysian super league\" AND malaysia_cup = \"group stage\"" }
### INSTRUCTION Name the loss for june 22 ### INPUT CREATE TABLE table_name_8 (loss VARCHAR, date VARCHAR) ### OUTPUT SELECT loss FROM table_name_8 WHERE date = "june 22"
{ "input": "CREATE TABLE table_name_8 (loss VARCHAR, date VARCHAR)", "instruction": "Name the loss for june 22", "output": "SELECT loss FROM table_name_8 WHERE date = \"june 22\"" }
### INSTRUCTION Which incumbent was first elected in 1940? ### INPUT CREATE TABLE table_1342256_10 (incumbent VARCHAR, first_elected VARCHAR) ### OUTPUT SELECT incumbent FROM table_1342256_10 WHERE first_elected = 1940
{ "input": "CREATE TABLE table_1342256_10 (incumbent VARCHAR, first_elected VARCHAR)", "instruction": "Which incumbent was first elected in 1940?", "output": "SELECT incumbent FROM table_1342256_10 WHERE first_elected = 1940" }
### INSTRUCTION What are the special notes for an issue price under 24.95 with an edmonton oilers theme? ### INPUT CREATE TABLE table_name_91 (special_notes VARCHAR, issue_price VARCHAR, theme VARCHAR) ### OUTPUT SELECT special_notes FROM table_name_91 WHERE issue_price < 24.95 AND theme = "edmonton oilers"
{ "input": "CREATE TABLE table_name_91 (special_notes VARCHAR, issue_price VARCHAR, theme VARCHAR)", "instruction": "What are the special notes for an issue price under 24.95 with an edmonton oilers theme?", "output": "SELECT special_notes FROM table_name_91 WHERE issue_price < 24.95 AND theme = \"edmonton oilers\"" }
### INSTRUCTION What was the result of the UEFA Euro 2008 Qualifying competition? ### INPUT CREATE TABLE table_name_97 (result VARCHAR, competition VARCHAR) ### OUTPUT SELECT result FROM table_name_97 WHERE competition = "uefa euro 2008 qualifying"
{ "input": "CREATE TABLE table_name_97 (result VARCHAR, competition VARCHAR)", "instruction": "What was the result of the UEFA Euro 2008 Qualifying competition?", "output": "SELECT result FROM table_name_97 WHERE competition = \"uefa euro 2008 qualifying\"" }
### INSTRUCTION What's the name of the central bank in the country where Colombian Peso (cop) is the local currency? ### INPUT CREATE TABLE table_1222653_10 (central_bank VARCHAR, currency VARCHAR) ### OUTPUT SELECT central_bank FROM table_1222653_10 WHERE currency = "Colombian peso (COP)"
{ "input": "CREATE TABLE table_1222653_10 (central_bank VARCHAR, currency VARCHAR)", "instruction": "What's the name of the central bank in the country where Colombian Peso (cop) is the local currency?", "output": "SELECT central_bank FROM table_1222653_10 WHERE currency = \"Colombian peso (COP)\"" }
### INSTRUCTION Name the Place which has a Score of 67-71=138, united states? ### INPUT CREATE TABLE table_name_17 (place VARCHAR, country VARCHAR, score VARCHAR) ### OUTPUT SELECT place FROM table_name_17 WHERE country = "united states" AND score = 67 - 71 = 138
{ "input": "CREATE TABLE table_name_17 (place VARCHAR, country VARCHAR, score VARCHAR)", "instruction": "Name the Place which has a Score of 67-71=138, united states?", "output": "SELECT place FROM table_name_17 WHERE country = \"united states\" AND score = 67 - 71 = 138" }
### INSTRUCTION What is the winner in event number 15h? ### INPUT CREATE TABLE table_22050544_1 (winner VARCHAR, event__number VARCHAR) ### OUTPUT SELECT winner FROM table_22050544_1 WHERE event__number = "15H"
{ "input": "CREATE TABLE table_22050544_1 (winner VARCHAR, event__number VARCHAR)", "instruction": "What is the winner in event number 15h?", "output": "SELECT winner FROM table_22050544_1 WHERE event__number = \"15H\"" }
### INSTRUCTION What is the number of gold when the silver is 1, bronze is 1, and the nation is Austria? ### INPUT CREATE TABLE table_name_4 (gold VARCHAR, nation VARCHAR, silver VARCHAR, bronze VARCHAR) ### OUTPUT SELECT COUNT(gold) FROM table_name_4 WHERE silver = 1 AND bronze = 1 AND nation = "austria"
{ "input": "CREATE TABLE table_name_4 (gold VARCHAR, nation VARCHAR, silver VARCHAR, bronze VARCHAR)", "instruction": "What is the number of gold when the silver is 1, bronze is 1, and the nation is Austria?", "output": "SELECT COUNT(gold) FROM table_name_4 WHERE silver = 1 AND bronze = 1 AND nation = \"austria\"" }
### INSTRUCTION Which sum of AVE-No has a Name of albula alps, and a Height (m) larger than 3418? ### INPUT CREATE TABLE table_name_98 (ave__no INTEGER, name VARCHAR, height__m_ VARCHAR) ### OUTPUT SELECT SUM(ave__no) FROM table_name_98 WHERE name = "albula alps" AND height__m_ > 3418
{ "input": "CREATE TABLE table_name_98 (ave__no INTEGER, name VARCHAR, height__m_ VARCHAR)", "instruction": "Which sum of AVE-No has a Name of albula alps, and a Height (m) larger than 3418?", "output": "SELECT SUM(ave__no) FROM table_name_98 WHERE name = \"albula alps\" AND height__m_ > 3418" }
### INSTRUCTION Which distinct car models are the produced after 1980? ### INPUT CREATE TABLE CARS_DATA (id VARCHAR, year INTEGER); CREATE TABLE MODEL_LIST (model VARCHAR); CREATE TABLE CAR_NAMES (model VARCHAR, MakeId VARCHAR) ### OUTPUT SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980
{ "input": "CREATE TABLE CARS_DATA (id VARCHAR, year INTEGER); CREATE TABLE MODEL_LIST (model VARCHAR); CREATE TABLE CAR_NAMES (model VARCHAR, MakeId VARCHAR)", "instruction": "Which distinct car models are the produced after 1980?", "output": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980" }
### INSTRUCTION How many total wins did the team ranked lower than 1 with a run ratio less than 5.85 and more than 4 losses have? ### INPUT CREATE TABLE table_name_87 (wins VARCHAR, losses VARCHAR, rank VARCHAR, run_ratio VARCHAR) ### OUTPUT SELECT COUNT(wins) FROM table_name_87 WHERE rank > 1 AND run_ratio < 5.85 AND losses > 4
{ "input": "CREATE TABLE table_name_87 (wins VARCHAR, losses VARCHAR, rank VARCHAR, run_ratio VARCHAR)", "instruction": "How many total wins did the team ranked lower than 1 with a run ratio less than 5.85 and more than 4 losses have?", "output": "SELECT COUNT(wins) FROM table_name_87 WHERE rank > 1 AND run_ratio < 5.85 AND losses > 4" }
### INSTRUCTION Find the name of the storm that affected both Afghanistan and Albania regions. ### INPUT CREATE TABLE storm (Name VARCHAR, storm_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE region (region_id VARCHAR, Region_name VARCHAR) ### OUTPUT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Albania'
{ "input": "CREATE TABLE storm (Name VARCHAR, storm_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE region (region_id VARCHAR, Region_name VARCHAR)", "instruction": "Find the name of the storm that affected both Afghanistan and Albania regions.", "output": "SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Albania'" }
### INSTRUCTION Show the details and star ratings of the 3 least expensive hotels. ### INPUT CREATE TABLE HOTELS (other_hotel_details VARCHAR, star_rating_code VARCHAR, price_range VARCHAR) ### OUTPUT SELECT other_hotel_details, star_rating_code FROM HOTELS ORDER BY price_range LIMIT 3
{ "input": "CREATE TABLE HOTELS (other_hotel_details VARCHAR, star_rating_code VARCHAR, price_range VARCHAR)", "instruction": "Show the details and star ratings of the 3 least expensive hotels.", "output": "SELECT other_hotel_details, star_rating_code FROM HOTELS ORDER BY price_range LIMIT 3" }
### INSTRUCTION Show the ids and names of festivals that have at least two nominations for artworks. ### INPUT CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR) ### OUTPUT SELECT T1.Festival_ID, T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*) >= 2
{ "input": "CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR)", "instruction": "Show the ids and names of festivals that have at least two nominations for artworks.", "output": "SELECT T1.Festival_ID, T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*) >= 2" }
### INSTRUCTION What is the place when the player is Bob Gilder and the money was $20,903? ### INPUT CREATE TABLE table_name_88 (place VARCHAR, money___$__ VARCHAR, player VARCHAR) ### OUTPUT SELECT place FROM table_name_88 WHERE money___$__ = "20,903" AND player = "bob gilder"
{ "input": "CREATE TABLE table_name_88 (place VARCHAR, money___$__ VARCHAR, player VARCHAR)", "instruction": "What is the place when the player is Bob Gilder and the money was $20,903?", "output": "SELECT place FROM table_name_88 WHERE money___$__ = \"20,903\" AND player = \"bob gilder\"" }
### INSTRUCTION Name the general classification with roman kreuziger and points classification of fabian cancellara ### INPUT CREATE TABLE table_name_97 (general_classification VARCHAR, young_rider_classification VARCHAR, points_classification VARCHAR) ### OUTPUT SELECT general_classification FROM table_name_97 WHERE young_rider_classification = "roman kreuziger" AND points_classification = "fabian cancellara"
{ "input": "CREATE TABLE table_name_97 (general_classification VARCHAR, young_rider_classification VARCHAR, points_classification VARCHAR)", "instruction": "Name the general classification with roman kreuziger and points classification of fabian cancellara", "output": "SELECT general_classification FROM table_name_97 WHERE young_rider_classification = \"roman kreuziger\" AND points_classification = \"fabian cancellara\"" }
### INSTRUCTION What is the number of people in attendance when venue shows A, and Di Matteo, M. Hughes were the scorers? ### INPUT CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, scorers VARCHAR) ### OUTPUT SELECT SUM(attendance) FROM table_name_99 WHERE venue = "a" AND scorers = "di matteo, m. hughes"
{ "input": "CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, scorers VARCHAR)", "instruction": "What is the number of people in attendance when venue shows A, and Di Matteo, M. Hughes were the scorers?", "output": "SELECT SUM(attendance) FROM table_name_99 WHERE venue = \"a\" AND scorers = \"di matteo, m. hughes\"" }
### INSTRUCTION What is the club that has the turkish basketball cup and fiba eurochallenge (3rd tier)? ### INPUT CREATE TABLE table_name_97 (club VARCHAR, national_cup VARCHAR, european_cup VARCHAR) ### OUTPUT SELECT club FROM table_name_97 WHERE national_cup = "turkish basketball cup" AND european_cup = "fiba eurochallenge (3rd tier)"
{ "input": "CREATE TABLE table_name_97 (club VARCHAR, national_cup VARCHAR, european_cup VARCHAR)", "instruction": "What is the club that has the turkish basketball cup and fiba eurochallenge (3rd tier)?", "output": "SELECT club FROM table_name_97 WHERE national_cup = \"turkish basketball cup\" AND european_cup = \"fiba eurochallenge (3rd tier)\"" }
### INSTRUCTION What has the lowest number of wins with GA smaller than 39, more than 2 losses, and ties greater than 0? ### INPUT CREATE TABLE table_name_17 (wins INTEGER, ties VARCHAR, goals_against VARCHAR, losses VARCHAR) ### OUTPUT SELECT MIN(wins) FROM table_name_17 WHERE goals_against < 39 AND losses > 2 AND ties > 0
{ "input": "CREATE TABLE table_name_17 (wins INTEGER, ties VARCHAR, goals_against VARCHAR, losses VARCHAR)", "instruction": "What has the lowest number of wins with GA smaller than 39, more than 2 losses, and ties greater than 0?", "output": "SELECT MIN(wins) FROM table_name_17 WHERE goals_against < 39 AND losses > 2 AND ties > 0" }
### INSTRUCTION What percentage of others have an SZDSZ of 4% and a Fidesz of 60%? ### INPUT CREATE TABLE table_name_10 (others VARCHAR, szdsz VARCHAR, fidesz VARCHAR) ### OUTPUT SELECT others FROM table_name_10 WHERE szdsz = "4%" AND fidesz = "60%"
{ "input": "CREATE TABLE table_name_10 (others VARCHAR, szdsz VARCHAR, fidesz VARCHAR)", "instruction": "What percentage of others have an SZDSZ of 4% and a Fidesz of 60%?", "output": "SELECT others FROM table_name_10 WHERE szdsz = \"4%\" AND fidesz = \"60%\"" }
### INSTRUCTION What are the ids of the movies that are not reviewed by Brittany Harris. ### INPUT CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Rating (mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR) ### OUTPUT SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = "Brittany Harris"
{ "input": "CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Rating (mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)", "instruction": "What are the ids of the movies that are not reviewed by Brittany Harris.", "output": "SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = \"Brittany Harris\"" }
### INSTRUCTION Which continent has the most diverse languages? ### INPUT CREATE TABLE countrylanguage (CountryCode VARCHAR); CREATE TABLE country (Continent VARCHAR, Code VARCHAR) ### OUTPUT SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE countrylanguage (CountryCode VARCHAR); CREATE TABLE country (Continent VARCHAR, Code VARCHAR)", "instruction": "Which continent has the most diverse languages?", "output": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION display the employee number, name( first name and last name ) and job title for all employees whose salary is more than any salary of those employees whose job title is PU_MAN. ### INPUT CREATE TABLE employees (employee_id VARCHAR, first_name VARCHAR, last_name VARCHAR, job_id VARCHAR, salary INTEGER) ### OUTPUT SELECT employee_id, first_name, last_name, job_id FROM employees WHERE salary > (SELECT MAX(salary) FROM employees WHERE job_id = 'PU_MAN')
{ "input": "CREATE TABLE employees (employee_id VARCHAR, first_name VARCHAR, last_name VARCHAR, job_id VARCHAR, salary INTEGER)", "instruction": "display the employee number, name( first name and last name ) and job title for all employees whose salary is more than any salary of those employees whose job title is PU_MAN.", "output": "SELECT employee_id, first_name, last_name, job_id FROM employees WHERE salary > (SELECT MAX(salary) FROM employees WHERE job_id = 'PU_MAN')" }
### INSTRUCTION What is the to par of the player with a t4 place and a score of 75-69-74-72=290? ### INPUT CREATE TABLE table_name_46 (to_par VARCHAR, place VARCHAR, score VARCHAR) ### OUTPUT SELECT to_par FROM table_name_46 WHERE place = "t4" AND score = 75 - 69 - 74 - 72 = 290
{ "input": "CREATE TABLE table_name_46 (to_par VARCHAR, place VARCHAR, score VARCHAR)", "instruction": "What is the to par of the player with a t4 place and a score of 75-69-74-72=290?", "output": "SELECT to_par FROM table_name_46 WHERE place = \"t4\" AND score = 75 - 69 - 74 - 72 = 290" }
### INSTRUCTION Name the lpsos 3/14/09 for opinionway of 4/17/09 of 5% and lfof 11/12/08 of 7% ### INPUT CREATE TABLE table_name_33 (ipsos_3_14_09 VARCHAR, ifop_11_12_08 VARCHAR, opinionway_4_17_09 VARCHAR) ### OUTPUT SELECT ipsos_3_14_09 FROM table_name_33 WHERE ifop_11_12_08 = "7%" AND opinionway_4_17_09 = "5%"
{ "input": "CREATE TABLE table_name_33 (ipsos_3_14_09 VARCHAR, ifop_11_12_08 VARCHAR, opinionway_4_17_09 VARCHAR)", "instruction": "Name the lpsos 3/14/09 for opinionway of 4/17/09 of 5% and lfof 11/12/08 of 7%", "output": "SELECT ipsos_3_14_09 FROM table_name_33 WHERE ifop_11_12_08 = \"7%\" AND opinionway_4_17_09 = \"5%\"" }
### INSTRUCTION List the publication dates of publications with 3 lowest prices. ### INPUT CREATE TABLE publication (Publication_Date VARCHAR, Price VARCHAR) ### OUTPUT SELECT Publication_Date FROM publication ORDER BY Price LIMIT 3
{ "input": "CREATE TABLE publication (Publication_Date VARCHAR, Price VARCHAR)", "instruction": "List the publication dates of publications with 3 lowest prices.", "output": "SELECT Publication_Date FROM publication ORDER BY Price LIMIT 3" }
### INSTRUCTION What is Date, when Fastest Lap is James Winslow, when Race is 1, and when Winning Driver is Leanne Tander? ### INPUT CREATE TABLE table_name_81 (date VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR, race VARCHAR) ### OUTPUT SELECT date FROM table_name_81 WHERE fastest_lap = "james winslow" AND race = 1 AND winning_driver = "leanne tander"
{ "input": "CREATE TABLE table_name_81 (date VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR, race VARCHAR)", "instruction": "What is Date, when Fastest Lap is James Winslow, when Race is 1, and when Winning Driver is Leanne Tander?", "output": "SELECT date FROM table_name_81 WHERE fastest_lap = \"james winslow\" AND race = 1 AND winning_driver = \"leanne tander\"" }
### INSTRUCTION What is the location of the school named Brisbane Girls' Grammar School? ### INPUT CREATE TABLE table_11318462_29 (location VARCHAR, school VARCHAR) ### OUTPUT SELECT location FROM table_11318462_29 WHERE school = "Brisbane Girls' Grammar school"
{ "input": "CREATE TABLE table_11318462_29 (location VARCHAR, school VARCHAR)", "instruction": "What is the location of the school named Brisbane Girls' Grammar School?", "output": "SELECT location FROM table_11318462_29 WHERE school = \"Brisbane Girls' Grammar school\"" }
### INSTRUCTION How many values for points have Sophia Witherspoon as the player? ### INPUT CREATE TABLE table_25352324_5 (points VARCHAR, player VARCHAR) ### OUTPUT SELECT COUNT(points) FROM table_25352324_5 WHERE player = "Sophia Witherspoon"
{ "input": "CREATE TABLE table_25352324_5 (points VARCHAR, player VARCHAR)", "instruction": "How many values for points have Sophia Witherspoon as the player?", "output": "SELECT COUNT(points) FROM table_25352324_5 WHERE player = \"Sophia Witherspoon\"" }
### INSTRUCTION What is the highest block that has 15.09.1981 as the date, and a height greater than 202? ### INPUT CREATE TABLE table_name_76 (block INTEGER, date_of_birth VARCHAR, height VARCHAR) ### OUTPUT SELECT MAX(block) FROM table_name_76 WHERE date_of_birth = "15.09.1981" AND height > 202
{ "input": "CREATE TABLE table_name_76 (block INTEGER, date_of_birth VARCHAR, height VARCHAR)", "instruction": "What is the highest block that has 15.09.1981 as the date, and a height greater than 202?", "output": "SELECT MAX(block) FROM table_name_76 WHERE date_of_birth = \"15.09.1981\" AND height > 202" }
### INSTRUCTION What is every company with an index weighting % of 1 and the city of Dimitrovgrad? ### INPUT CREATE TABLE table_20667854_1 (company VARCHAR, index_weighting___percentage VARCHAR, city VARCHAR) ### OUTPUT SELECT company FROM table_20667854_1 WHERE index_weighting___percentage = "1" AND city = "Dimitrovgrad"
{ "input": "CREATE TABLE table_20667854_1 (company VARCHAR, index_weighting___percentage VARCHAR, city VARCHAR)", "instruction": "What is every company with an index weighting % of 1 and the city of Dimitrovgrad?", "output": "SELECT company FROM table_20667854_1 WHERE index_weighting___percentage = \"1\" AND city = \"Dimitrovgrad\"" }
### INSTRUCTION What is the label for October 21, 1981? ### INPUT CREATE TABLE table_name_37 (label VARCHAR, date VARCHAR) ### OUTPUT SELECT label FROM table_name_37 WHERE date = "october 21, 1981"
{ "input": "CREATE TABLE table_name_37 (label VARCHAR, date VARCHAR)", "instruction": "What is the label for October 21, 1981?", "output": "SELECT label FROM table_name_37 WHERE date = \"october 21, 1981\"" }
### INSTRUCTION Who is the rb player from team oakland? ### INPUT CREATE TABLE table_name_69 (player VARCHAR, position VARCHAR, team VARCHAR) ### OUTPUT SELECT player FROM table_name_69 WHERE position = "rb" AND team = "oakland"
{ "input": "CREATE TABLE table_name_69 (player VARCHAR, position VARCHAR, team VARCHAR)", "instruction": "Who is the rb player from team oakland?", "output": "SELECT player FROM table_name_69 WHERE position = \"rb\" AND team = \"oakland\"" }
### INSTRUCTION When was Stellbrookmoor established? ### INPUT CREATE TABLE table_26013618_1 (date_established VARCHAR, name_of_the_nature_reserve VARCHAR) ### OUTPUT SELECT date_established FROM table_26013618_1 WHERE name_of_the_nature_reserve = "Stellbrookmoor"
{ "input": "CREATE TABLE table_26013618_1 (date_established VARCHAR, name_of_the_nature_reserve VARCHAR)", "instruction": "When was Stellbrookmoor established?", "output": "SELECT date_established FROM table_26013618_1 WHERE name_of_the_nature_reserve = \"Stellbrookmoor\"" }
### INSTRUCTION When frederick remann (r) is the vacator what is the reason for vacancy? ### INPUT CREATE TABLE table_2417445_4 (reason_for_vacancy VARCHAR, vacator VARCHAR) ### OUTPUT SELECT reason_for_vacancy FROM table_2417445_4 WHERE vacator = "Frederick Remann (R)"
{ "input": "CREATE TABLE table_2417445_4 (reason_for_vacancy VARCHAR, vacator VARCHAR)", "instruction": "When frederick remann (r) is the vacator what is the reason for vacancy?", "output": "SELECT reason_for_vacancy FROM table_2417445_4 WHERE vacator = \"Frederick Remann (R)\"" }
### INSTRUCTION Which stadium has FC Seoul? ### INPUT CREATE TABLE table_name_65 (stadium VARCHAR, club VARCHAR) ### OUTPUT SELECT stadium FROM table_name_65 WHERE club = "fc seoul"
{ "input": "CREATE TABLE table_name_65 (stadium VARCHAR, club VARCHAR)", "instruction": "Which stadium has FC Seoul?", "output": "SELECT stadium FROM table_name_65 WHERE club = \"fc seoul\"" }
### INSTRUCTION Show the location name and code with the least documents. ### INPUT CREATE TABLE Document_locations (location_code VARCHAR); CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR) ### OUTPUT SELECT T2.location_name, T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY COUNT(*) LIMIT 1
{ "input": "CREATE TABLE Document_locations (location_code VARCHAR); CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR)", "instruction": "Show the location name and code with the least documents.", "output": "SELECT T2.location_name, T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY COUNT(*) LIMIT 1" }
### INSTRUCTION What is the sum of Points, when Home is "Pittsburgh", when Date is "December 21", and when Attendance is greater than 5,307? ### INPUT CREATE TABLE table_name_84 (points INTEGER, attendance VARCHAR, home VARCHAR, date VARCHAR) ### OUTPUT SELECT SUM(points) FROM table_name_84 WHERE home = "pittsburgh" AND date = "december 21" AND attendance > 5 OFFSET 307
{ "input": "CREATE TABLE table_name_84 (points INTEGER, attendance VARCHAR, home VARCHAR, date VARCHAR)", "instruction": "What is the sum of Points, when Home is \"Pittsburgh\", when Date is \"December 21\", and when Attendance is greater than 5,307?", "output": "SELECT SUM(points) FROM table_name_84 WHERE home = \"pittsburgh\" AND date = \"december 21\" AND attendance > 5 OFFSET 307" }