text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What is the average pick of player jim h. mitchell? ### INPUT CREATE TABLE table_name_3 (pick INTEGER, player VARCHAR) ### OUTPUT SELECT AVG(pick) FROM table_name_3 WHERE player = "jim h. mitchell"
{ "input": "CREATE TABLE table_name_3 (pick INTEGER, player VARCHAR)", "instruction": "What is the average pick of player jim h. mitchell?", "output": "SELECT AVG(pick) FROM table_name_3 WHERE player = \"jim h. mitchell\"" }
### INSTRUCTION What is the average value of Bush# when the value for Others# is greater than 57, and the value for Bush% is 49.2%? ### INPUT CREATE TABLE table_name_70 (bush_number INTEGER, others_number VARCHAR, bush_percentage VARCHAR) ### OUTPUT SELECT AVG(bush_number) FROM table_name_70 WHERE others_number > 57 AND bush_percentage = "49.2%"
{ "input": "CREATE TABLE table_name_70 (bush_number INTEGER, others_number VARCHAR, bush_percentage VARCHAR)", "instruction": "What is the average value of Bush# when the value for Others# is greater than 57, and the value for Bush% is 49.2%?", "output": "SELECT AVG(bush_number) FROM table_name_70 WHERE others_number > 57 AND bush_percentage = \"49.2%\"" }
### INSTRUCTION How many fastest laps for the nation with 32 (30) entries and starts and fewer than 2 podiums? ### INPUT CREATE TABLE table_name_74 (fastest_laps INTEGER, race_entries__starts_ VARCHAR, podiums VARCHAR) ### OUTPUT SELECT MIN(fastest_laps) FROM table_name_74 WHERE race_entries__starts_ = "32 (30)" AND podiums < 2
{ "input": "CREATE TABLE table_name_74 (fastest_laps INTEGER, race_entries__starts_ VARCHAR, podiums VARCHAR)", "instruction": "How many fastest laps for the nation with 32 (30) entries and starts and fewer than 2 podiums?", "output": "SELECT MIN(fastest_laps) FROM table_name_74 WHERE race_entries__starts_ = \"32 (30)\" AND podiums < 2" }
### INSTRUCTION What is the english spelling of the word that has the strongs trasliteration of y e howram? ### INPUT CREATE TABLE table_1242447_1 (english_spelling VARCHAR, strongs_transliteration VARCHAR) ### OUTPUT SELECT english_spelling FROM table_1242447_1 WHERE strongs_transliteration = "Y e howram"
{ "input": "CREATE TABLE table_1242447_1 (english_spelling VARCHAR, strongs_transliteration VARCHAR)", "instruction": "What is the english spelling of the word that has the strongs trasliteration of y e howram?", "output": "SELECT english_spelling FROM table_1242447_1 WHERE strongs_transliteration = \"Y e howram\"" }
### INSTRUCTION Find the first name of students who are living in the Smith Hall. ### INPUT CREATE TABLE student (fname VARCHAR, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm (dormid VARCHAR, dorm_name VARCHAR) ### OUTPUT SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall'
{ "input": "CREATE TABLE student (fname VARCHAR, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm (dormid VARCHAR, dorm_name VARCHAR)", "instruction": "Find the first name of students who are living in the Smith Hall.", "output": "SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall'" }
### INSTRUCTION Find the name of the person who has no student friends. ### INPUT CREATE TABLE Person (name VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE person (name VARCHAR) ### OUTPUT SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student'
{ "input": "CREATE TABLE Person (name VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE person (name VARCHAR)", "instruction": "Find the name of the person who has no student friends.", "output": "SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student'" }
### INSTRUCTION How many parties does william b. cravens represent? ### INPUT CREATE TABLE table_1342292_4 (party VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT COUNT(party) FROM table_1342292_4 WHERE incumbent = "William B. Cravens"
{ "input": "CREATE TABLE table_1342292_4 (party VARCHAR, incumbent VARCHAR)", "instruction": "How many parties does william b. cravens represent?", "output": "SELECT COUNT(party) FROM table_1342292_4 WHERE incumbent = \"William B. Cravens\"" }
### INSTRUCTION Which Brazil scorers have a Result of w, and a Competition of world cup qualifying, and a Date of february 28, 1954? ### INPUT CREATE TABLE table_name_5 (brazil_scorers VARCHAR, date VARCHAR, result VARCHAR, competition VARCHAR) ### OUTPUT SELECT brazil_scorers FROM table_name_5 WHERE result = "w" AND competition = "world cup qualifying" AND date = "february 28, 1954"
{ "input": "CREATE TABLE table_name_5 (brazil_scorers VARCHAR, date VARCHAR, result VARCHAR, competition VARCHAR)", "instruction": "Which Brazil scorers have a Result of w, and a Competition of world cup qualifying, and a Date of february 28, 1954?", "output": "SELECT brazil_scorers FROM table_name_5 WHERE result = \"w\" AND competition = \"world cup qualifying\" AND date = \"february 28, 1954\"" }
### INSTRUCTION What RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak of 21? ### INPUT CREATE TABLE table_name_1 (riaa_sales_certification VARCHAR, billboard_200_peak VARCHAR) ### OUTPUT SELECT riaa_sales_certification FROM table_name_1 WHERE billboard_200_peak = 21
{ "input": "CREATE TABLE table_name_1 (riaa_sales_certification VARCHAR, billboard_200_peak VARCHAR)", "instruction": "What RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak of 21?", "output": "SELECT riaa_sales_certification FROM table_name_1 WHERE billboard_200_peak = 21" }
### INSTRUCTION On July 25 what is the lowest attendance with the Brewers as the opponent? ### INPUT CREATE TABLE table_name_26 (attendance INTEGER, opponent VARCHAR, date VARCHAR) ### OUTPUT SELECT MIN(attendance) FROM table_name_26 WHERE opponent = "brewers" AND date = "july 25"
{ "input": "CREATE TABLE table_name_26 (attendance INTEGER, opponent VARCHAR, date VARCHAR)", "instruction": "On July 25 what is the lowest attendance with the Brewers as the opponent?", "output": "SELECT MIN(attendance) FROM table_name_26 WHERE opponent = \"brewers\" AND date = \"july 25\"" }
### INSTRUCTION For the group name European Progressive Democrats what is the French abbr? ### INPUT CREATE TABLE table_name_23 (french_abbr VARCHAR, group_name VARCHAR) ### OUTPUT SELECT french_abbr FROM table_name_23 WHERE group_name = "european progressive democrats"
{ "input": "CREATE TABLE table_name_23 (french_abbr VARCHAR, group_name VARCHAR)", "instruction": "For the group name European Progressive Democrats what is the French abbr?", "output": "SELECT french_abbr FROM table_name_23 WHERE group_name = \"european progressive democrats\"" }
### INSTRUCTION In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'? ### INPUT CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR, injury VARCHAR); CREATE TABLE game (season VARCHAR, stadium_id VARCHAR, id VARCHAR) ### OUTPUT SELECT T1.season, T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.injury = 'Foot injury' OR T3.injury = 'Knee problem'
{ "input": "CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR, injury VARCHAR); CREATE TABLE game (season VARCHAR, stadium_id VARCHAR, id VARCHAR)", "instruction": "In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?", "output": "SELECT T1.season, T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.injury = 'Foot injury' OR T3.injury = 'Knee problem'" }
### INSTRUCTION What is the data limit for a T-Mobile internet basic plan? ### INPUT CREATE TABLE table_name_18 (data_limit__gb VARCHAR, company VARCHAR, plan_name VARCHAR) ### OUTPUT SELECT data_limit__gb FROM table_name_18 WHERE company = "t-mobile" AND plan_name = "internet basic"
{ "input": "CREATE TABLE table_name_18 (data_limit__gb VARCHAR, company VARCHAR, plan_name VARCHAR)", "instruction": "What is the data limit for a T-Mobile internet basic plan?", "output": "SELECT data_limit__gb FROM table_name_18 WHERE company = \"t-mobile\" AND plan_name = \"internet basic\"" }
### INSTRUCTION How long does student Linda Smith spend on the restaurant in total? ### INPUT CREATE TABLE Visits_Restaurant (Spent INTEGER); CREATE TABLE Student (Spent INTEGER) ### OUTPUT SELECT SUM(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith"
{ "input": "CREATE TABLE Visits_Restaurant (Spent INTEGER); CREATE TABLE Student (Spent INTEGER)", "instruction": "How long does student Linda Smith spend on the restaurant in total?", "output": "SELECT SUM(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = \"Linda\" AND Student.Lname = \"Smith\"" }
### INSTRUCTION What is the score of the match at happy valley recreation ground pitch #2 with a 14:30 time? ### INPUT CREATE TABLE table_name_93 (score VARCHAR, time VARCHAR, venue VARCHAR) ### OUTPUT SELECT score FROM table_name_93 WHERE time = "14:30" AND venue = "happy valley recreation ground pitch #2"
{ "input": "CREATE TABLE table_name_93 (score VARCHAR, time VARCHAR, venue VARCHAR)", "instruction": "What is the score of the match at happy valley recreation ground pitch #2 with a 14:30 time?", "output": "SELECT score FROM table_name_93 WHERE time = \"14:30\" AND venue = \"happy valley recreation ground pitch #2\"" }
### INSTRUCTION Which Name has a Height (cm) of 175 and a Birthplace of detroit, michigan ### INPUT CREATE TABLE table_name_42 (name VARCHAR, height__cm_ VARCHAR, birthplace VARCHAR) ### OUTPUT SELECT name FROM table_name_42 WHERE height__cm_ = 175 AND birthplace = "detroit, michigan"
{ "input": "CREATE TABLE table_name_42 (name VARCHAR, height__cm_ VARCHAR, birthplace VARCHAR)", "instruction": "Which Name has a Height (cm) of 175 and a Birthplace of detroit, michigan", "output": "SELECT name FROM table_name_42 WHERE height__cm_ = 175 AND birthplace = \"detroit, michigan\"" }
### INSTRUCTION What's the mountains classification when the points classification is Alessandro Petacchi and the general classification is Danilo Di Luca? ### INPUT CREATE TABLE table_name_26 (mountains_classification VARCHAR, points_classification VARCHAR, general_classification VARCHAR) ### OUTPUT SELECT mountains_classification FROM table_name_26 WHERE points_classification = "alessandro petacchi" AND general_classification = "danilo di luca"
{ "input": "CREATE TABLE table_name_26 (mountains_classification VARCHAR, points_classification VARCHAR, general_classification VARCHAR)", "instruction": "What's the mountains classification when the points classification is Alessandro Petacchi and the general classification is Danilo Di Luca?", "output": "SELECT mountains_classification FROM table_name_26 WHERE points_classification = \"alessandro petacchi\" AND general_classification = \"danilo di luca\"" }
### INSTRUCTION What is the to par when the total is larger than 288? ### INPUT CREATE TABLE table_name_97 (to_par VARCHAR, total INTEGER) ### OUTPUT SELECT to_par FROM table_name_97 WHERE total > 288
{ "input": "CREATE TABLE table_name_97 (to_par VARCHAR, total INTEGER)", "instruction": "What is the to par when the total is larger than 288?", "output": "SELECT to_par FROM table_name_97 WHERE total > 288" }
### INSTRUCTION what is the smallest series episode number whose production code is 2t7211? ### INPUT CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR) ### OUTPUT SELECT MIN(no) FROM table_21979779_1 WHERE production_code = "2T7211"
{ "input": "CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR)", "instruction": "what is the smallest series episode number whose production code is 2t7211?", "output": "SELECT MIN(no) FROM table_21979779_1 WHERE production_code = \"2T7211\"" }
### INSTRUCTION Which Margin has a Winning score of –7 (71-72-67-71=281)? ### INPUT CREATE TABLE table_name_26 (margin VARCHAR, winning_score VARCHAR) ### OUTPUT SELECT margin FROM table_name_26 WHERE winning_score = –7(71 - 72 - 67 - 71 = 281)
{ "input": "CREATE TABLE table_name_26 (margin VARCHAR, winning_score VARCHAR)", "instruction": "Which Margin has a Winning score of –7 (71-72-67-71=281)?", "output": "SELECT margin FROM table_name_26 WHERE winning_score = –7(71 - 72 - 67 - 71 = 281)" }
### INSTRUCTION For grants with both documents described as 'Regular' and documents described as 'Initial Application', list its start date. ### INPUT CREATE TABLE Grants (grant_start_date VARCHAR, grant_id VARCHAR); CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR); CREATE TABLE Documents (grant_id VARCHAR, document_type_code VARCHAR) ### OUTPUT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Initial Application'
{ "input": "CREATE TABLE Grants (grant_start_date VARCHAR, grant_id VARCHAR); CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR); CREATE TABLE Documents (grant_id VARCHAR, document_type_code VARCHAR)", "instruction": "For grants with both documents described as 'Regular' and documents described as 'Initial Application', list its start date.", "output": "SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Initial Application'" }
### INSTRUCTION Find all the forenames of distinct drivers who was in position 1 as standing and won? ### INPUT CREATE TABLE driverstandings (driverid VARCHAR, position VARCHAR, wins VARCHAR); CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR) ### OUTPUT SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1
{ "input": "CREATE TABLE driverstandings (driverid VARCHAR, position VARCHAR, wins VARCHAR); CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR)", "instruction": "Find all the forenames of distinct drivers who was in position 1 as standing and won?", "output": "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1" }
### INSTRUCTION What Miss Maja Pilipinas has a Binibining Pilipinas-Tourism of not awarded, and a Binibining Pilipinas-Universe of anjanette abayari? ### INPUT CREATE TABLE table_name_30 (miss_maja_pilipinas VARCHAR, binibining_pilipinas_tourism VARCHAR, binibining_pilipinas_universe VARCHAR) ### OUTPUT SELECT miss_maja_pilipinas FROM table_name_30 WHERE binibining_pilipinas_tourism = "not awarded" AND binibining_pilipinas_universe = "anjanette abayari"
{ "input": "CREATE TABLE table_name_30 (miss_maja_pilipinas VARCHAR, binibining_pilipinas_tourism VARCHAR, binibining_pilipinas_universe VARCHAR)", "instruction": "What Miss Maja Pilipinas has a Binibining Pilipinas-Tourism of not awarded, and a Binibining Pilipinas-Universe of anjanette abayari?", "output": "SELECT miss_maja_pilipinas FROM table_name_30 WHERE binibining_pilipinas_tourism = \"not awarded\" AND binibining_pilipinas_universe = \"anjanette abayari\"" }
### INSTRUCTION What is the Points Classification Navy Blue Jersey that has Yoann le Boulanger, and Gerolsteiner? ### INPUT CREATE TABLE table_name_11 (points_classification_navy_blue_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, team_classification VARCHAR) ### OUTPUT SELECT points_classification_navy_blue_jersey FROM table_name_11 WHERE mountains_classification_green_jersey = "yoann le boulanger" AND team_classification = "gerolsteiner"
{ "input": "CREATE TABLE table_name_11 (points_classification_navy_blue_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, team_classification VARCHAR)", "instruction": "What is the Points Classification Navy Blue Jersey that has Yoann le Boulanger, and Gerolsteiner?", "output": "SELECT points_classification_navy_blue_jersey FROM table_name_11 WHERE mountains_classification_green_jersey = \"yoann le boulanger\" AND team_classification = \"gerolsteiner\"" }
### INSTRUCTION How many grids have a Constructor of talbot-lago - talbot, a Laps under 83, and a driver of johnny claes? ### INPUT CREATE TABLE table_name_20 (grid VARCHAR, driver VARCHAR, constructor VARCHAR, laps VARCHAR) ### OUTPUT SELECT COUNT(grid) FROM table_name_20 WHERE constructor = "talbot-lago - talbot" AND laps < 83 AND driver = "johnny claes"
{ "input": "CREATE TABLE table_name_20 (grid VARCHAR, driver VARCHAR, constructor VARCHAR, laps VARCHAR)", "instruction": "How many grids have a Constructor of talbot-lago - talbot, a Laps under 83, and a driver of johnny claes?", "output": "SELECT COUNT(grid) FROM table_name_20 WHERE constructor = \"talbot-lago - talbot\" AND laps < 83 AND driver = \"johnny claes\"" }
### INSTRUCTION What is the area in km2 for Cape Agulhas, whose density is larger than 9.4 inhabitants/km2 and whose population in 2011 was less than 33,038? ### INPUT CREATE TABLE table_name_28 (area__km_2__ INTEGER, population__2011_ VARCHAR, density__inhabitants_km_2__ VARCHAR, name VARCHAR) ### OUTPUT SELECT MAX(area__km_2__) FROM table_name_28 WHERE density__inhabitants_km_2__ > 9.4 AND name = "cape agulhas" AND population__2011_ < 33 OFFSET 038
{ "input": "CREATE TABLE table_name_28 (area__km_2__ INTEGER, population__2011_ VARCHAR, density__inhabitants_km_2__ VARCHAR, name VARCHAR)", "instruction": "What is the area in km2 for Cape Agulhas, whose density is larger than 9.4 inhabitants/km2 and whose population in 2011 was less than 33,038?", "output": "SELECT MAX(area__km_2__) FROM table_name_28 WHERE density__inhabitants_km_2__ > 9.4 AND name = \"cape agulhas\" AND population__2011_ < 33 OFFSET 038" }
### INSTRUCTION What B Mountain Channel has station call letters of k41go? ### INPUT CREATE TABLE table_name_75 (b_mountain_channel VARCHAR, station_call_letters VARCHAR) ### OUTPUT SELECT b_mountain_channel FROM table_name_75 WHERE station_call_letters = "k41go"
{ "input": "CREATE TABLE table_name_75 (b_mountain_channel VARCHAR, station_call_letters VARCHAR)", "instruction": "What B Mountain Channel has station call letters of k41go?", "output": "SELECT b_mountain_channel FROM table_name_75 WHERE station_call_letters = \"k41go\"" }
### INSTRUCTION What province was New Plymouth formed from? ### INPUT CREATE TABLE table_275023_1 (formed_from VARCHAR, province VARCHAR) ### OUTPUT SELECT formed_from FROM table_275023_1 WHERE province = "New Plymouth"
{ "input": "CREATE TABLE table_275023_1 (formed_from VARCHAR, province VARCHAR)", "instruction": "What province was New Plymouth formed from?", "output": "SELECT formed_from FROM table_275023_1 WHERE province = \"New Plymouth\"" }
### INSTRUCTION WHAT IS THE LOWEST DIAMETER FOR A LATITIDE OF 52.0S? ### INPUT CREATE TABLE table_name_78 (diameter__km_ INTEGER, latitude VARCHAR) ### OUTPUT SELECT MIN(diameter__km_) FROM table_name_78 WHERE latitude = "52.0s"
{ "input": "CREATE TABLE table_name_78 (diameter__km_ INTEGER, latitude VARCHAR)", "instruction": "WHAT IS THE LOWEST DIAMETER FOR A LATITIDE OF 52.0S?", "output": "SELECT MIN(diameter__km_) FROM table_name_78 WHERE latitude = \"52.0s\"" }
### INSTRUCTION Find the name of airports which do not have any flight in and out. ### INPUT CREATE TABLE Flights (AirportName VARCHAR, AirportCode VARCHAR, SourceAirport VARCHAR, DestAirport VARCHAR); CREATE TABLE Airports (AirportName VARCHAR, AirportCode VARCHAR, SourceAirport VARCHAR, DestAirport VARCHAR) ### OUTPUT SELECT AirportName FROM Airports WHERE NOT AirportCode IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)
{ "input": "CREATE TABLE Flights (AirportName VARCHAR, AirportCode VARCHAR, SourceAirport VARCHAR, DestAirport VARCHAR); CREATE TABLE Airports (AirportName VARCHAR, AirportCode VARCHAR, SourceAirport VARCHAR, DestAirport VARCHAR)", "instruction": "Find the name of airports which do not have any flight in and out.", "output": "SELECT AirportName FROM Airports WHERE NOT AirportCode IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)" }
### INSTRUCTION What is the Result that has the New York Rangers as the Offer Team and Adam Graves as the Player? ### INPUT CREATE TABLE table_name_79 (result VARCHAR, offer_team VARCHAR, player VARCHAR) ### OUTPUT SELECT result FROM table_name_79 WHERE offer_team = "new york rangers" AND player = "adam graves"
{ "input": "CREATE TABLE table_name_79 (result VARCHAR, offer_team VARCHAR, player VARCHAR)", "instruction": "What is the Result that has the New York Rangers as the Offer Team and Adam Graves as the Player?", "output": "SELECT result FROM table_name_79 WHERE offer_team = \"new york rangers\" AND player = \"adam graves\"" }
### INSTRUCTION Who was the home team when Boston is the road team in game 4? ### INPUT CREATE TABLE table_name_89 (home_team VARCHAR, road_team VARCHAR, game VARCHAR) ### OUTPUT SELECT home_team FROM table_name_89 WHERE road_team = "boston" AND game = "game 4"
{ "input": "CREATE TABLE table_name_89 (home_team VARCHAR, road_team VARCHAR, game VARCHAR)", "instruction": "Who was the home team when Boston is the road team in game 4?", "output": "SELECT home_team FROM table_name_89 WHERE road_team = \"boston\" AND game = \"game 4\"" }
### INSTRUCTION What Year has a Tyre of D, and Chassis of Mazda 787? ### INPUT CREATE TABLE table_name_55 (year VARCHAR, tyre VARCHAR, chassis VARCHAR) ### OUTPUT SELECT year FROM table_name_55 WHERE tyre = "d" AND chassis = "mazda 787"
{ "input": "CREATE TABLE table_name_55 (year VARCHAR, tyre VARCHAR, chassis VARCHAR)", "instruction": "What Year has a Tyre of D, and Chassis of Mazda 787?", "output": "SELECT year FROM table_name_55 WHERE tyre = \"d\" AND chassis = \"mazda 787\"" }
### INSTRUCTION What team was Bodine in when he had an average finish of 8.3? ### INPUT CREATE TABLE table_2387790_2 (team_s_ VARCHAR, avg_finish VARCHAR) ### OUTPUT SELECT team_s_ FROM table_2387790_2 WHERE avg_finish = "8.3"
{ "input": "CREATE TABLE table_2387790_2 (team_s_ VARCHAR, avg_finish VARCHAR)", "instruction": "What team was Bodine in when he had an average finish of 8.3?", "output": "SELECT team_s_ FROM table_2387790_2 WHERE avg_finish = \"8.3\"" }
### INSTRUCTION Find the number of products for each manufacturer, showing the name of each company. ### INPUT CREATE TABLE products (Manufacturer VARCHAR); CREATE TABLE manufacturers (name VARCHAR, code VARCHAR) ### OUTPUT SELECT COUNT(*), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name
{ "input": "CREATE TABLE products (Manufacturer VARCHAR); CREATE TABLE manufacturers (name VARCHAR, code VARCHAR)", "instruction": "Find the number of products for each manufacturer, showing the name of each company.", "output": "SELECT COUNT(*), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name" }
### INSTRUCTION Where was the GTE Suncoast Classic tournament held? ### INPUT CREATE TABLE table_11622562_1 (location VARCHAR, tournament VARCHAR) ### OUTPUT SELECT location FROM table_11622562_1 WHERE tournament = "GTE Suncoast Classic"
{ "input": "CREATE TABLE table_11622562_1 (location VARCHAR, tournament VARCHAR)", "instruction": "Where was the GTE Suncoast Classic tournament held?", "output": "SELECT location FROM table_11622562_1 WHERE tournament = \"GTE Suncoast Classic\"" }
### INSTRUCTION What was the original air date of the episode that had 5.30 million U.S. viewers? ### INPUT CREATE TABLE table_25548505_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) ### OUTPUT SELECT original_air_date FROM table_25548505_1 WHERE us_viewers__millions_ = "5.30"
{ "input": "CREATE TABLE table_25548505_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)", "instruction": "What was the original air date of the episode that had 5.30 million U.S. viewers? ", "output": "SELECT original_air_date FROM table_25548505_1 WHERE us_viewers__millions_ = \"5.30\"" }
### INSTRUCTION What No is the player Zoran Erceg ### INPUT CREATE TABLE table_12962773_4 (no INTEGER, player VARCHAR) ### OUTPUT SELECT MIN(no) FROM table_12962773_4 WHERE player = "Zoran Erceg"
{ "input": "CREATE TABLE table_12962773_4 (no INTEGER, player VARCHAR)", "instruction": "What No is the player Zoran Erceg", "output": "SELECT MIN(no) FROM table_12962773_4 WHERE player = \"Zoran Erceg\"" }
### INSTRUCTION Which party had a result of retired democratic hold and a first elected earlier than 1884 with an incumbent of samuel dibble? ### INPUT CREATE TABLE table_name_32 (party VARCHAR, incumbent VARCHAR, result VARCHAR, first_elected VARCHAR) ### OUTPUT SELECT party FROM table_name_32 WHERE result = "retired democratic hold" AND first_elected < 1884 AND incumbent = "samuel dibble"
{ "input": "CREATE TABLE table_name_32 (party VARCHAR, incumbent VARCHAR, result VARCHAR, first_elected VARCHAR)", "instruction": "Which party had a result of retired democratic hold and a first elected earlier than 1884 with an incumbent of samuel dibble?", "output": "SELECT party FROM table_name_32 WHERE result = \"retired democratic hold\" AND first_elected < 1884 AND incumbent = \"samuel dibble\"" }
### INSTRUCTION Name the number of candidates for # of seats won being 43 ### INPUT CREATE TABLE table_19283982_4 (_number_of_candidates VARCHAR, _number_of_seats_won VARCHAR) ### OUTPUT SELECT _number_of_candidates FROM table_19283982_4 WHERE _number_of_seats_won = 43
{ "input": "CREATE TABLE table_19283982_4 (_number_of_candidates VARCHAR, _number_of_seats_won VARCHAR)", "instruction": "Name the number of candidates for # of seats won being 43", "output": "SELECT _number_of_candidates FROM table_19283982_4 WHERE _number_of_seats_won = 43" }
### INSTRUCTION What is the Notes of the Frequency with a call sign of CBUE-FM? ### INPUT CREATE TABLE table_name_82 (notes VARCHAR, call_sign VARCHAR) ### OUTPUT SELECT notes FROM table_name_82 WHERE call_sign = "cbue-fm"
{ "input": "CREATE TABLE table_name_82 (notes VARCHAR, call_sign VARCHAR)", "instruction": "What is the Notes of the Frequency with a call sign of CBUE-FM?", "output": "SELECT notes FROM table_name_82 WHERE call_sign = \"cbue-fm\"" }
### INSTRUCTION What is the home city for angelo massimino stadium? ### INPUT CREATE TABLE table_name_7 (home_city VARCHAR, stadium VARCHAR) ### OUTPUT SELECT home_city FROM table_name_7 WHERE stadium = "angelo massimino"
{ "input": "CREATE TABLE table_name_7 (home_city VARCHAR, stadium VARCHAR)", "instruction": "What is the home city for angelo massimino stadium?", "output": "SELECT home_city FROM table_name_7 WHERE stadium = \"angelo massimino\"" }
### INSTRUCTION What are the phones and emails of workshop groups in which services are performed? ### INPUT CREATE TABLE Services (Workshop_Group_ID VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Phone VARCHAR, Store_Email_Address VARCHAR, Workshop_Group_ID VARCHAR) ### OUTPUT SELECT T1.Store_Phone, T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID
{ "input": "CREATE TABLE Services (Workshop_Group_ID VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Phone VARCHAR, Store_Email_Address VARCHAR, Workshop_Group_ID VARCHAR)", "instruction": "What are the phones and emails of workshop groups in which services are performed?", "output": "SELECT T1.Store_Phone, T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID" }
### INSTRUCTION What was the duration of Robert Joy's portrayal? ### INPUT CREATE TABLE table_11240028_1 (duration VARCHAR, portrayed_by VARCHAR) ### OUTPUT SELECT COUNT(duration) FROM table_11240028_1 WHERE portrayed_by = "Robert Joy"
{ "input": "CREATE TABLE table_11240028_1 (duration VARCHAR, portrayed_by VARCHAR)", "instruction": "What was the duration of Robert Joy's portrayal?", "output": "SELECT COUNT(duration) FROM table_11240028_1 WHERE portrayed_by = \"Robert Joy\"" }
### INSTRUCTION which To par has a Country of united states, and a Player of dave stockton? ### INPUT CREATE TABLE table_name_42 (to_par VARCHAR, country VARCHAR, player VARCHAR) ### OUTPUT SELECT to_par FROM table_name_42 WHERE country = "united states" AND player = "dave stockton"
{ "input": "CREATE TABLE table_name_42 (to_par VARCHAR, country VARCHAR, player VARCHAR)", "instruction": "which To par has a Country of united states, and a Player of dave stockton?", "output": "SELECT to_par FROM table_name_42 WHERE country = \"united states\" AND player = \"dave stockton\"" }
### INSTRUCTION Who directed the episode with production code 4akj01? ### INPUT CREATE TABLE table_19929970_1 (directed_by VARCHAR, production_code VARCHAR) ### OUTPUT SELECT directed_by FROM table_19929970_1 WHERE production_code = "4AKJ01"
{ "input": "CREATE TABLE table_19929970_1 (directed_by VARCHAR, production_code VARCHAR)", "instruction": "Who directed the episode with production code 4akj01?", "output": "SELECT directed_by FROM table_19929970_1 WHERE production_code = \"4AKJ01\"" }
### INSTRUCTION The episode with production code 693-002, has how many original airdates? ### INPUT CREATE TABLE table_26982362_2 (original_airdate VARCHAR, production_code VARCHAR) ### OUTPUT SELECT COUNT(original_airdate) FROM table_26982362_2 WHERE production_code = "693-002"
{ "input": "CREATE TABLE table_26982362_2 (original_airdate VARCHAR, production_code VARCHAR)", "instruction": "The episode with production code 693-002, has how many original airdates?", "output": "SELECT COUNT(original_airdate) FROM table_26982362_2 WHERE production_code = \"693-002\"" }
### INSTRUCTION Find all the payment dates for the payments with an amount larger than 10 and the payments handled by a staff person with the first name Elsa. ### INPUT CREATE TABLE payment (payment_date VARCHAR, staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, first_name VARCHAR); CREATE TABLE payment (payment_date VARCHAR, amount INTEGER) ### OUTPUT SELECT payment_date FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa'
{ "input": "CREATE TABLE payment (payment_date VARCHAR, staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, first_name VARCHAR); CREATE TABLE payment (payment_date VARCHAR, amount INTEGER)", "instruction": "Find all the payment dates for the payments with an amount larger than 10 and the payments handled by a staff person with the first name Elsa.", "output": "SELECT payment_date FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa'" }
### INSTRUCTION How many home games did the team Boston Red Stockings play from 1990 to 2000 in total? ### INPUT CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE home_game (games INTEGER, team_id VARCHAR, year VARCHAR) ### OUTPUT SELECT SUM(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000
{ "input": "CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE home_game (games INTEGER, team_id VARCHAR, year VARCHAR)", "instruction": "How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?", "output": "SELECT SUM(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000" }
### INSTRUCTION What is the date of elevation for the Cardinal elevated by Nicholas III to the title of Cardinal-Deacon of S. Eustachio? ### INPUT CREATE TABLE table_name_7 (elevated VARCHAR, elevator VARCHAR, cardinalatial_order_and_title VARCHAR) ### OUTPUT SELECT elevated FROM table_name_7 WHERE elevator = "nicholas iii" AND cardinalatial_order_and_title = "cardinal-deacon of s. eustachio"
{ "input": "CREATE TABLE table_name_7 (elevated VARCHAR, elevator VARCHAR, cardinalatial_order_and_title VARCHAR)", "instruction": "What is the date of elevation for the Cardinal elevated by Nicholas III to the title of Cardinal-Deacon of S. Eustachio?", "output": "SELECT elevated FROM table_name_7 WHERE elevator = \"nicholas iii\" AND cardinalatial_order_and_title = \"cardinal-deacon of s. eustachio\"" }
### INSTRUCTION When did Robert G. Miner present his credentials? ### INPUT CREATE TABLE table_name_62 (presentation_of_credentials VARCHAR, name VARCHAR) ### OUTPUT SELECT presentation_of_credentials FROM table_name_62 WHERE name = "robert g. miner"
{ "input": "CREATE TABLE table_name_62 (presentation_of_credentials VARCHAR, name VARCHAR)", "instruction": "When did Robert G. Miner present his credentials?", "output": "SELECT presentation_of_credentials FROM table_name_62 WHERE name = \"robert g. miner\"" }
### INSTRUCTION Name the 2012 for 2009 of 1r ### INPUT CREATE TABLE table_name_19 (Id VARCHAR) ### OUTPUT SELECT 2012 FROM table_name_19 WHERE 2009 = "1r"
{ "input": "CREATE TABLE table_name_19 (Id VARCHAR)", "instruction": "Name the 2012 for 2009 of 1r", "output": "SELECT 2012 FROM table_name_19 WHERE 2009 = \"1r\"" }
### INSTRUCTION Name the height in ft for the player from wyoming ### INPUT CREATE TABLE table_name_59 (height_in_ft VARCHAR, school_club_team_country VARCHAR) ### OUTPUT SELECT height_in_ft FROM table_name_59 WHERE school_club_team_country = "wyoming"
{ "input": "CREATE TABLE table_name_59 (height_in_ft VARCHAR, school_club_team_country VARCHAR)", "instruction": "Name the height in ft for the player from wyoming", "output": "SELECT height_in_ft FROM table_name_59 WHERE school_club_team_country = \"wyoming\"" }
### INSTRUCTION What are the names of the courses that have exactly 1 student enrollment? ### INPUT CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Course_Enrolment (course_id VARCHAR) ### OUTPUT SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) = 1
{ "input": "CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Course_Enrolment (course_id VARCHAR)", "instruction": "What are the names of the courses that have exactly 1 student enrollment?", "output": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) = 1" }
### INSTRUCTION What position has 7 as the round, with a pick # less than 214? ### INPUT CREATE TABLE table_name_5 (position VARCHAR, round VARCHAR, pick__number VARCHAR) ### OUTPUT SELECT position FROM table_name_5 WHERE round = 7 AND pick__number < 214
{ "input": "CREATE TABLE table_name_5 (position VARCHAR, round VARCHAR, pick__number VARCHAR)", "instruction": "What position has 7 as the round, with a pick # less than 214?", "output": "SELECT position FROM table_name_5 WHERE round = 7 AND pick__number < 214" }
### INSTRUCTION The episode with the production code E0208 is directed by who? ### INPUT CREATE TABLE table_2618152_1 (directed_by VARCHAR, production_code VARCHAR) ### OUTPUT SELECT directed_by FROM table_2618152_1 WHERE production_code = "E0208"
{ "input": "CREATE TABLE table_2618152_1 (directed_by VARCHAR, production_code VARCHAR)", "instruction": "The episode with the production code E0208 is directed by who?", "output": "SELECT directed_by FROM table_2618152_1 WHERE production_code = \"E0208\"" }
### INSTRUCTION Name the total number of club worl cup for djibril cisse ### INPUT CREATE TABLE table_19764939_1 (club_world_cup VARCHAR, player VARCHAR) ### OUTPUT SELECT COUNT(club_world_cup) FROM table_19764939_1 WHERE player = "Djibril Cisse"
{ "input": "CREATE TABLE table_19764939_1 (club_world_cup VARCHAR, player VARCHAR)", "instruction": "Name the total number of club worl cup for djibril cisse", "output": "SELECT COUNT(club_world_cup) FROM table_19764939_1 WHERE player = \"Djibril Cisse\"" }
### INSTRUCTION Can you tell me the highest DCSF number that has the Name of field, and the Ofsted number larger than 117160? ### INPUT CREATE TABLE table_name_52 (dcsf_number INTEGER, name VARCHAR, ofsted_number VARCHAR) ### OUTPUT SELECT MAX(dcsf_number) FROM table_name_52 WHERE name = "field" AND ofsted_number > 117160
{ "input": "CREATE TABLE table_name_52 (dcsf_number INTEGER, name VARCHAR, ofsted_number VARCHAR)", "instruction": "Can you tell me the highest DCSF number that has the Name of field, and the Ofsted number larger than 117160?", "output": "SELECT MAX(dcsf_number) FROM table_name_52 WHERE name = \"field\" AND ofsted_number > 117160" }
### INSTRUCTION What is the original air date when there were 12.81 million u.s viewers? ### INPUT CREATE TABLE table_11404452_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) ### OUTPUT SELECT original_air_date FROM table_11404452_1 WHERE us_viewers__millions_ = "12.81"
{ "input": "CREATE TABLE table_11404452_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)", "instruction": "What is the original air date when there were 12.81 million u.s viewers?", "output": "SELECT original_air_date FROM table_11404452_1 WHERE us_viewers__millions_ = \"12.81\"" }
### INSTRUCTION What is the name of the episode that was written by Scott M. Gimple? ### INPUT CREATE TABLE table_27450976_1 (title VARCHAR, written_by VARCHAR) ### OUTPUT SELECT title FROM table_27450976_1 WHERE written_by = "Scott M. Gimple"
{ "input": "CREATE TABLE table_27450976_1 (title VARCHAR, written_by VARCHAR)", "instruction": "What is the name of the episode that was written by Scott M. Gimple?", "output": "SELECT title FROM table_27450976_1 WHERE written_by = \"Scott M. Gimple\"" }
### INSTRUCTION Where is the service pattern sydenham then fast to norwood junction? ### INPUT CREATE TABLE table_1569516_1 (destination VARCHAR, service_pattern VARCHAR) ### OUTPUT SELECT destination FROM table_1569516_1 WHERE service_pattern = "Sydenham then fast to Norwood Junction"
{ "input": "CREATE TABLE table_1569516_1 (destination VARCHAR, service_pattern VARCHAR)", "instruction": "Where is the service pattern sydenham then fast to norwood junction?", "output": "SELECT destination FROM table_1569516_1 WHERE service_pattern = \"Sydenham then fast to Norwood Junction\"" }
### INSTRUCTION Name the extra points for left guard ### INPUT CREATE TABLE table_14342592_8 (extra_points VARCHAR, position VARCHAR) ### OUTPUT SELECT extra_points FROM table_14342592_8 WHERE position = "Left guard"
{ "input": "CREATE TABLE table_14342592_8 (extra_points VARCHAR, position VARCHAR)", "instruction": "Name the extra points for left guard", "output": "SELECT extra_points FROM table_14342592_8 WHERE position = \"Left guard\"" }
### INSTRUCTION What is the average cost of procedures that physician John Wen was trained in? ### INPUT CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (cost INTEGER, code VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR) ### OUTPUT SELECT AVG(T3.cost) FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"
{ "input": "CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (cost INTEGER, code VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR)", "instruction": "What is the average cost of procedures that physician John Wen was trained in?", "output": "SELECT AVG(T3.cost) FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"" }
### INSTRUCTION Name the rating for 3.79 viewers ### INPUT CREATE TABLE table_22822468_2 (rating VARCHAR, viewers__millions_ VARCHAR) ### OUTPUT SELECT rating FROM table_22822468_2 WHERE viewers__millions_ = "3.79"
{ "input": "CREATE TABLE table_22822468_2 (rating VARCHAR, viewers__millions_ VARCHAR)", "instruction": "Name the rating for 3.79 viewers", "output": "SELECT rating FROM table_22822468_2 WHERE viewers__millions_ = \"3.79\"" }
### INSTRUCTION How many female students have milk or egg allergies? ### INPUT CREATE TABLE Student (StuID VARCHAR, sex VARCHAR); CREATE TABLE has_allergy (StuID VARCHAR, allergy VARCHAR) ### OUTPUT SELECT COUNT(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = "F" AND T1.allergy = "Milk" OR T1.allergy = "Eggs"
{ "input": "CREATE TABLE Student (StuID VARCHAR, sex VARCHAR); CREATE TABLE has_allergy (StuID VARCHAR, allergy VARCHAR)", "instruction": "How many female students have milk or egg allergies?", "output": "SELECT COUNT(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = \"F\" AND T1.allergy = \"Milk\" OR T1.allergy = \"Eggs\"" }
### INSTRUCTION What season was herschelle gibbs andrew symonds venugopal rao batsmen? ### INPUT CREATE TABLE table_22962745_35 (season VARCHAR, batsmen VARCHAR) ### OUTPUT SELECT season FROM table_22962745_35 WHERE batsmen = "Herschelle Gibbs Andrew Symonds Venugopal Rao"
{ "input": "CREATE TABLE table_22962745_35 (season VARCHAR, batsmen VARCHAR)", "instruction": "What season was herschelle gibbs andrew symonds venugopal rao batsmen?", "output": "SELECT season FROM table_22962745_35 WHERE batsmen = \"Herschelle Gibbs Andrew Symonds Venugopal Rao\"" }
### INSTRUCTION Find the id and number of shops for the company that produces the most expensive furniture. ### INPUT CREATE TABLE manufacturer (manufacturer_id VARCHAR, num_of_shops VARCHAR); CREATE TABLE furniture_manufacte (manufacturer_id VARCHAR, Price_in_Dollar VARCHAR) ### OUTPUT SELECT t1.manufacturer_id, t1.num_of_shops FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id ORDER BY t2.Price_in_Dollar DESC LIMIT 1
{ "input": "CREATE TABLE manufacturer (manufacturer_id VARCHAR, num_of_shops VARCHAR); CREATE TABLE furniture_manufacte (manufacturer_id VARCHAR, Price_in_Dollar VARCHAR)", "instruction": "Find the id and number of shops for the company that produces the most expensive furniture.", "output": "SELECT t1.manufacturer_id, t1.num_of_shops FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id ORDER BY t2.Price_in_Dollar DESC LIMIT 1" }
### INSTRUCTION What's the average Grid for those who spun off after Lap 64? ### INPUT CREATE TABLE table_name_68 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) ### OUTPUT SELECT AVG(grid) FROM table_name_68 WHERE time_retired = "spun off" AND laps > 64
{ "input": "CREATE TABLE table_name_68 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)", "instruction": "What's the average Grid for those who spun off after Lap 64?", "output": "SELECT AVG(grid) FROM table_name_68 WHERE time_retired = \"spun off\" AND laps > 64" }
### INSTRUCTION Show all dates of transactions whose type code is "SALE". ### INPUT CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, transaction_type_code VARCHAR) ### OUTPUT SELECT date_of_transaction FROM TRANSACTIONS WHERE transaction_type_code = "SALE"
{ "input": "CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, transaction_type_code VARCHAR)", "instruction": "Show all dates of transactions whose type code is \"SALE\".", "output": "SELECT date_of_transaction FROM TRANSACTIONS WHERE transaction_type_code = \"SALE\"" }
### INSTRUCTION What COSPAR ID has a Launch date/time (UTC) of 1995-11-06, 05:15:01? ### INPUT CREATE TABLE table_name_40 (cospar_id VARCHAR, launch_date_time__utc_ VARCHAR) ### OUTPUT SELECT cospar_id FROM table_name_40 WHERE launch_date_time__utc_ = "1995-11-06, 05:15:01"
{ "input": "CREATE TABLE table_name_40 (cospar_id VARCHAR, launch_date_time__utc_ VARCHAR)", "instruction": "What COSPAR ID has a Launch date/time (UTC) of 1995-11-06, 05:15:01?", "output": "SELECT cospar_id FROM table_name_40 WHERE launch_date_time__utc_ = \"1995-11-06, 05:15:01\"" }
### INSTRUCTION Name the championship for clay and corrado barazzutti ### INPUT CREATE TABLE table_23235767_4 (championship VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) ### OUTPUT SELECT championship FROM table_23235767_4 WHERE surface = "Clay" AND opponent_in_the_final = "Corrado Barazzutti"
{ "input": "CREATE TABLE table_23235767_4 (championship VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)", "instruction": "Name the championship for clay and corrado barazzutti", "output": "SELECT championship FROM table_23235767_4 WHERE surface = \"Clay\" AND opponent_in_the_final = \"Corrado Barazzutti\"" }
### INSTRUCTION what's the result with candidates being billy tauzin (d) unopposed ### INPUT CREATE TABLE table_1341586_19 (result VARCHAR, candidates VARCHAR) ### OUTPUT SELECT result FROM table_1341586_19 WHERE candidates = "Billy Tauzin (D) Unopposed"
{ "input": "CREATE TABLE table_1341586_19 (result VARCHAR, candidates VARCHAR)", "instruction": "what's the result with candidates being billy tauzin (d) unopposed", "output": "SELECT result FROM table_1341586_19 WHERE candidates = \"Billy Tauzin (D) Unopposed\"" }
### INSTRUCTION How many customers did not have any event? ### INPUT CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE customer_events (customer_id VARCHAR) ### OUTPUT SELECT COUNT(*) FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM customer_events)
{ "input": "CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE customer_events (customer_id VARCHAR)", "instruction": "How many customers did not have any event?", "output": "SELECT COUNT(*) FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM customer_events)" }
### INSTRUCTION What Republican incumbent was elected in 1974? ### INPUT CREATE TABLE table_1341568_14 (incumbent VARCHAR, elected VARCHAR, party VARCHAR) ### OUTPUT SELECT incumbent FROM table_1341568_14 WHERE elected = 1974 AND party = "Republican"
{ "input": "CREATE TABLE table_1341568_14 (incumbent VARCHAR, elected VARCHAR, party VARCHAR)", "instruction": "What Republican incumbent was elected in 1974?", "output": "SELECT incumbent FROM table_1341568_14 WHERE elected = 1974 AND party = \"Republican\"" }
### INSTRUCTION What was Craig Stadler's score? ### INPUT CREATE TABLE table_name_80 (score VARCHAR, player VARCHAR) ### OUTPUT SELECT score FROM table_name_80 WHERE player = "craig stadler"
{ "input": "CREATE TABLE table_name_80 (score VARCHAR, player VARCHAR)", "instruction": "What was Craig Stadler's score?", "output": "SELECT score FROM table_name_80 WHERE player = \"craig stadler\"" }
### INSTRUCTION What is the average birth rate that has a total fertility rate of na, and a natural growth smaller than 2.5? ### INPUT CREATE TABLE table_name_14 (births__000s_ INTEGER, total_fertility_rate VARCHAR, natural_growth VARCHAR) ### OUTPUT SELECT AVG(births__000s_) FROM table_name_14 WHERE total_fertility_rate = "na" AND natural_growth < 2.5
{ "input": "CREATE TABLE table_name_14 (births__000s_ INTEGER, total_fertility_rate VARCHAR, natural_growth VARCHAR)", "instruction": "What is the average birth rate that has a total fertility rate of na, and a natural growth smaller than 2.5?", "output": "SELECT AVG(births__000s_) FROM table_name_14 WHERE total_fertility_rate = \"na\" AND natural_growth < 2.5" }
### INSTRUCTION How many episodes did Julie Martin wrote for the show If every episode has its own production code? ### INPUT CREATE TABLE table_17623902_1 (production_code VARCHAR, written_by VARCHAR) ### OUTPUT SELECT COUNT(production_code) FROM table_17623902_1 WHERE written_by = "Julie Martin"
{ "input": "CREATE TABLE table_17623902_1 (production_code VARCHAR, written_by VARCHAR)", "instruction": "How many episodes did Julie Martin wrote for the show If every episode has its own production code?", "output": "SELECT COUNT(production_code) FROM table_17623902_1 WHERE written_by = \"Julie Martin\"" }
### INSTRUCTION What home team played at western oval? ### INPUT CREATE TABLE table_name_9 (home_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT home_team FROM table_name_9 WHERE venue = "western oval"
{ "input": "CREATE TABLE table_name_9 (home_team VARCHAR, venue VARCHAR)", "instruction": "What home team played at western oval?", "output": "SELECT home_team FROM table_name_9 WHERE venue = \"western oval\"" }
### INSTRUCTION Who were the opponents in the final where the score in the final is 6–4, 7–6 2? ### INPUT CREATE TABLE table_22597626_17 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR) ### OUTPUT SELECT opponents_in_the_final FROM table_22597626_17 WHERE score_in_the_final = "6–4, 7–6 2"
{ "input": "CREATE TABLE table_22597626_17 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)", "instruction": "Who were the opponents in the final where the score in the final is 6–4, 7–6 2?", "output": "SELECT opponents_in_the_final FROM table_22597626_17 WHERE score_in_the_final = \"6–4, 7–6 2\"" }
### INSTRUCTION What is the greatest Total population (1000) from Sweden and born in a non EU state (1000) less than 859? ### INPUT CREATE TABLE table_name_79 (total_population__1000_ INTEGER, country VARCHAR, born_in_a_non_eu_state__1000_ VARCHAR) ### OUTPUT SELECT MAX(total_population__1000_) FROM table_name_79 WHERE country = "sweden" AND born_in_a_non_eu_state__1000_ < 859
{ "input": "CREATE TABLE table_name_79 (total_population__1000_ INTEGER, country VARCHAR, born_in_a_non_eu_state__1000_ VARCHAR)", "instruction": "What is the greatest Total population (1000) from Sweden and born in a non EU state (1000) less than 859?", "output": "SELECT MAX(total_population__1000_) FROM table_name_79 WHERE country = \"sweden\" AND born_in_a_non_eu_state__1000_ < 859" }
### INSTRUCTION What is the average first elected year that has a district of 11 and a committee of environmental matters? ### INPUT CREATE TABLE table_name_18 (first_elected INTEGER, district VARCHAR, committee VARCHAR) ### OUTPUT SELECT AVG(first_elected) FROM table_name_18 WHERE district = "11" AND committee = "environmental matters"
{ "input": "CREATE TABLE table_name_18 (first_elected INTEGER, district VARCHAR, committee VARCHAR)", "instruction": "What is the average first elected year that has a district of 11 and a committee of environmental matters?", "output": "SELECT AVG(first_elected) FROM table_name_18 WHERE district = \"11\" AND committee = \"environmental matters\"" }
### INSTRUCTION What is the address content of the customer named "Maudie Kertzmann"? ### INPUT CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE addresses (address_content VARCHAR, address_id VARCHAR) ### OUTPUT SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = "Maudie Kertzmann"
{ "input": "CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE addresses (address_content VARCHAR, address_id VARCHAR)", "instruction": "What is the address content of the customer named \"Maudie Kertzmann\"?", "output": "SELECT t3.address_content FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t1.customer_name = \"Maudie Kertzmann\"" }
### INSTRUCTION Name the studio analysts for espn with erin andrews and tom rinaldi ### INPUT CREATE TABLE table_2724704_5 (studio_analyst_s_ VARCHAR, network_s_ VARCHAR, sideline_reporter_s_ VARCHAR) ### OUTPUT SELECT studio_analyst_s_ FROM table_2724704_5 WHERE network_s_ = "ESPN" AND sideline_reporter_s_ = "Erin Andrews and Tom Rinaldi"
{ "input": "CREATE TABLE table_2724704_5 (studio_analyst_s_ VARCHAR, network_s_ VARCHAR, sideline_reporter_s_ VARCHAR)", "instruction": "Name the studio analysts for espn with erin andrews and tom rinaldi", "output": "SELECT studio_analyst_s_ FROM table_2724704_5 WHERE network_s_ = \"ESPN\" AND sideline_reporter_s_ = \"Erin Andrews and Tom Rinaldi\"" }
### INSTRUCTION What average bronze has 0 as the silver, 17 as the rank, and a gold less than 1? ### INPUT CREATE TABLE table_name_80 (bronze INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR) ### OUTPUT SELECT AVG(bronze) FROM table_name_80 WHERE silver = 0 AND rank = "17" AND gold < 1
{ "input": "CREATE TABLE table_name_80 (bronze INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR)", "instruction": "What average bronze has 0 as the silver, 17 as the rank, and a gold less than 1?", "output": "SELECT AVG(bronze) FROM table_name_80 WHERE silver = 0 AND rank = \"17\" AND gold < 1" }
### INSTRUCTION What programs were held at highland speedway? ### INPUT CREATE TABLE table_16275828_4 (program VARCHAR, track_name VARCHAR) ### OUTPUT SELECT program FROM table_16275828_4 WHERE track_name = "Highland Speedway"
{ "input": "CREATE TABLE table_16275828_4 (program VARCHAR, track_name VARCHAR)", "instruction": "What programs were held at highland speedway?", "output": "SELECT program FROM table_16275828_4 WHERE track_name = \"Highland Speedway\"" }
### INSTRUCTION What year featured lola motorsport as an entrant with over 0 points? ### INPUT CREATE TABLE table_name_44 (year INTEGER, entrant VARCHAR, points VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_44 WHERE entrant = "lola motorsport" AND points > 0
{ "input": "CREATE TABLE table_name_44 (year INTEGER, entrant VARCHAR, points VARCHAR)", "instruction": "What year featured lola motorsport as an entrant with over 0 points?", "output": "SELECT AVG(year) FROM table_name_44 WHERE entrant = \"lola motorsport\" AND points > 0" }
### INSTRUCTION List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32. ### INPUT CREATE TABLE chip_model (Model_name VARCHAR, Launch_year VARCHAR, RAM_MiB VARCHAR); CREATE TABLE phone (Hardware_Model_name VARCHAR, Company_name VARCHAR, chip_model VARCHAR) ### OUTPUT SELECT T2.Hardware_Model_name, T2.Company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 OR T1.RAM_MiB > 32
{ "input": "CREATE TABLE chip_model (Model_name VARCHAR, Launch_year VARCHAR, RAM_MiB VARCHAR); CREATE TABLE phone (Hardware_Model_name VARCHAR, Company_name VARCHAR, chip_model VARCHAR)", "instruction": "List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.", "output": "SELECT T2.Hardware_Model_name, T2.Company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 OR T1.RAM_MiB > 32" }
### INSTRUCTION Find the number of the products that have their color described as "red" and have a characteristic named "slow". ### INPUT CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR) ### OUTPUT SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "red" AND t3.characteristic_name = "slow"
{ "input": "CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)", "instruction": "Find the number of the products that have their color described as \"red\" and have a characteristic named \"slow\".", "output": "SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"red\" AND t3.characteristic_name = \"slow\"" }
### INSTRUCTION How many people attended on december 26, 1982? ### INPUT CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR) ### OUTPUT SELECT attendance FROM table_name_78 WHERE date = "december 26, 1982"
{ "input": "CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR)", "instruction": "How many people attended on december 26, 1982?", "output": "SELECT attendance FROM table_name_78 WHERE date = \"december 26, 1982\"" }
### INSTRUCTION What date was Montreal the visitor? ### INPUT CREATE TABLE table_name_50 (date VARCHAR, visitor VARCHAR) ### OUTPUT SELECT date FROM table_name_50 WHERE visitor = "montreal"
{ "input": "CREATE TABLE table_name_50 (date VARCHAR, visitor VARCHAR)", "instruction": "What date was Montreal the visitor?", "output": "SELECT date FROM table_name_50 WHERE visitor = \"montreal\"" }
### INSTRUCTION How many seasons did the canterbury bulldogs (8) win? ### INPUT CREATE TABLE table_11236195_5 (season VARCHAR, winningteam VARCHAR) ### OUTPUT SELECT COUNT(season) FROM table_11236195_5 WHERE winningteam = "Canterbury Bulldogs (8)"
{ "input": "CREATE TABLE table_11236195_5 (season VARCHAR, winningteam VARCHAR)", "instruction": "How many seasons did the canterbury bulldogs (8) win?", "output": "SELECT COUNT(season) FROM table_11236195_5 WHERE winningteam = \"Canterbury Bulldogs (8)\"" }
### INSTRUCTION What is the score of the game with an 11-32-11 record? ### INPUT CREATE TABLE table_name_40 (score VARCHAR, record VARCHAR) ### OUTPUT SELECT score FROM table_name_40 WHERE record = "11-32-11"
{ "input": "CREATE TABLE table_name_40 (score VARCHAR, record VARCHAR)", "instruction": "What is the score of the game with an 11-32-11 record?", "output": "SELECT score FROM table_name_40 WHERE record = \"11-32-11\"" }
### INSTRUCTION What is the Season when the Lead was don bartlett, and the third was don walchuk, and a Second of carter rycroft? ### INPUT CREATE TABLE table_name_63 (season VARCHAR, second VARCHAR, lead VARCHAR, third VARCHAR) ### OUTPUT SELECT season FROM table_name_63 WHERE lead = "don bartlett" AND third = "don walchuk" AND second = "carter rycroft"
{ "input": "CREATE TABLE table_name_63 (season VARCHAR, second VARCHAR, lead VARCHAR, third VARCHAR)", "instruction": "What is the Season when the Lead was don bartlett, and the third was don walchuk, and a Second of carter rycroft?", "output": "SELECT season FROM table_name_63 WHERE lead = \"don bartlett\" AND third = \"don walchuk\" AND second = \"carter rycroft\"" }
### INSTRUCTION What was the score for the tournament in Michigan where the purse was smaller than 1813335.221493934? ### INPUT CREATE TABLE table_11603006_1 (score VARCHAR, location VARCHAR, purse__$__ VARCHAR) ### OUTPUT SELECT score FROM table_11603006_1 WHERE location = "Michigan" AND purse__$__ < 1813335.221493934
{ "input": "CREATE TABLE table_11603006_1 (score VARCHAR, location VARCHAR, purse__$__ VARCHAR)", "instruction": "What was the score for the tournament in Michigan where the purse was smaller than 1813335.221493934?", "output": "SELECT score FROM table_11603006_1 WHERE location = \"Michigan\" AND purse__$__ < 1813335.221493934" }
### INSTRUCTION Which Score has a Money ( £ ) of 90,400, and a Country of south africa, and a Player of thomas aiken? Question 1 ### INPUT CREATE TABLE table_name_38 (score VARCHAR, player VARCHAR, money___£__ VARCHAR, country VARCHAR) ### OUTPUT SELECT score FROM table_name_38 WHERE money___£__ = "90,400" AND country = "south africa" AND player = "thomas aiken"
{ "input": "CREATE TABLE table_name_38 (score VARCHAR, player VARCHAR, money___£__ VARCHAR, country VARCHAR)", "instruction": "Which Score has a Money ( £ ) of 90,400, and a Country of south africa, and a Player of thomas aiken? Question 1", "output": "SELECT score FROM table_name_38 WHERE money___£__ = \"90,400\" AND country = \"south africa\" AND player = \"thomas aiken\"" }
### INSTRUCTION Which MWEHL team has player Ben Johnson? ### INPUT CREATE TABLE table_name_29 (mwehl_team VARCHAR, player VARCHAR) ### OUTPUT SELECT mwehl_team FROM table_name_29 WHERE player = "ben johnson"
{ "input": "CREATE TABLE table_name_29 (mwehl_team VARCHAR, player VARCHAR)", "instruction": "Which MWEHL team has player Ben Johnson?", "output": "SELECT mwehl_team FROM table_name_29 WHERE player = \"ben johnson\"" }
### INSTRUCTION What was the finish with a total larger than 286, a to par of +4 and Bob Tway played? ### INPUT CREATE TABLE table_name_70 (finish VARCHAR, player VARCHAR, total VARCHAR, to_par VARCHAR) ### OUTPUT SELECT finish FROM table_name_70 WHERE total > 286 AND to_par = "+4" AND player = "bob tway"
{ "input": "CREATE TABLE table_name_70 (finish VARCHAR, player VARCHAR, total VARCHAR, to_par VARCHAR)", "instruction": "What was the finish with a total larger than 286, a to par of +4 and Bob Tway played?", "output": "SELECT finish FROM table_name_70 WHERE total > 286 AND to_par = \"+4\" AND player = \"bob tway\"" }
### INSTRUCTION Name the total number of roll for state authority and stanley avenue school with decile more than 5 ### INPUT CREATE TABLE table_name_31 (roll VARCHAR, decile VARCHAR, authority VARCHAR, name VARCHAR) ### OUTPUT SELECT COUNT(roll) FROM table_name_31 WHERE authority = "state" AND name = "stanley avenue school" AND decile > 5
{ "input": "CREATE TABLE table_name_31 (roll VARCHAR, decile VARCHAR, authority VARCHAR, name VARCHAR)", "instruction": "Name the total number of roll for state authority and stanley avenue school with decile more than 5", "output": "SELECT COUNT(roll) FROM table_name_31 WHERE authority = \"state\" AND name = \"stanley avenue school\" AND decile > 5" }
### INSTRUCTION Name the highest total for the tournament more than 0 and regular season after 8 ### INPUT CREATE TABLE table_name_15 (total INTEGER, tournament VARCHAR, regular_season VARCHAR) ### OUTPUT SELECT MAX(total) FROM table_name_15 WHERE tournament > 0 AND regular_season > 8
{ "input": "CREATE TABLE table_name_15 (total INTEGER, tournament VARCHAR, regular_season VARCHAR)", "instruction": "Name the highest total for the tournament more than 0 and regular season after 8", "output": "SELECT MAX(total) FROM table_name_15 WHERE tournament > 0 AND regular_season > 8" }
### INSTRUCTION What is the content when the package/option is qualsiasi and sky primafila 14 is the television service? ### INPUT CREATE TABLE table_name_13 (content VARCHAR, package_option VARCHAR, television_service VARCHAR) ### OUTPUT SELECT content FROM table_name_13 WHERE package_option = "qualsiasi" AND television_service = "sky primafila 14"
{ "input": "CREATE TABLE table_name_13 (content VARCHAR, package_option VARCHAR, television_service VARCHAR)", "instruction": "What is the content when the package/option is qualsiasi and sky primafila 14 is the television service?", "output": "SELECT content FROM table_name_13 WHERE package_option = \"qualsiasi\" AND television_service = \"sky primafila 14\"" }