text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What is the to par dated may 4, 2003? ### INPUT CREATE TABLE table_1121352_2 (to_par VARCHAR, date VARCHAR) ### OUTPUT SELECT to_par FROM table_1121352_2 WHERE date = "May 4, 2003"
{ "input": "CREATE TABLE table_1121352_2 (to_par VARCHAR, date VARCHAR)", "instruction": "What is the to par dated may 4, 2003?", "output": "SELECT to_par FROM table_1121352_2 WHERE date = \"May 4, 2003\"" }
### INSTRUCTION Games started of 4 is in what hometown? ### INPUT CREATE TABLE table_name_79 (hometown VARCHAR, games_started VARCHAR) ### OUTPUT SELECT hometown FROM table_name_79 WHERE games_started = "4"
{ "input": "CREATE TABLE table_name_79 (hometown VARCHAR, games_started VARCHAR)", "instruction": "Games started of 4 is in what hometown?", "output": "SELECT hometown FROM table_name_79 WHERE games_started = \"4\"" }
### INSTRUCTION What year was the Win percentage 50.00%, with more than 14 matches, and wins more than 8? ### INPUT CREATE TABLE table_name_6 (year VARCHAR, wins VARCHAR, win__percentage VARCHAR, matches VARCHAR) ### OUTPUT SELECT year FROM table_name_6 WHERE win__percentage = "50.00%" AND matches > 14 AND wins > 8
{ "input": "CREATE TABLE table_name_6 (year VARCHAR, wins VARCHAR, win__percentage VARCHAR, matches VARCHAR)", "instruction": "What year was the Win percentage 50.00%, with more than 14 matches, and wins more than 8?", "output": "SELECT year FROM table_name_6 WHERE win__percentage = \"50.00%\" AND matches > 14 AND wins > 8" }
### INSTRUCTION Silver larger than 0, and a Total smaller than 3, and a Nation of bulgaria, and a Bronze smaller than 0 had what sum of gold? ### INPUT CREATE TABLE table_name_51 (gold INTEGER, bronze VARCHAR, nation VARCHAR, silver VARCHAR, total VARCHAR) ### OUTPUT SELECT SUM(gold) FROM table_name_51 WHERE silver > 0 AND total < 3 AND nation = "bulgaria" AND bronze < 0
{ "input": "CREATE TABLE table_name_51 (gold INTEGER, bronze VARCHAR, nation VARCHAR, silver VARCHAR, total VARCHAR)", "instruction": "Silver larger than 0, and a Total smaller than 3, and a Nation of bulgaria, and a Bronze smaller than 0 had what sum of gold?", "output": "SELECT SUM(gold) FROM table_name_51 WHERE silver > 0 AND total < 3 AND nation = \"bulgaria\" AND bronze < 0" }
### INSTRUCTION What is the Race 1 result of Round 2? ### INPUT CREATE TABLE table_name_25 (race_1 VARCHAR, round VARCHAR) ### OUTPUT SELECT race_1 FROM table_name_25 WHERE round = "round 2"
{ "input": "CREATE TABLE table_name_25 (race_1 VARCHAR, round VARCHAR)", "instruction": "What is the Race 1 result of Round 2?", "output": "SELECT race_1 FROM table_name_25 WHERE round = \"round 2\"" }
### INSTRUCTION What is the weight of the player from club panionios g.c. and was born on 1975-05-21? ### INPUT CREATE TABLE table_name_70 (weight VARCHAR, club VARCHAR, date_of_birth VARCHAR) ### OUTPUT SELECT weight FROM table_name_70 WHERE club = "panionios g.c." AND date_of_birth = "1975-05-21"
{ "input": "CREATE TABLE table_name_70 (weight VARCHAR, club VARCHAR, date_of_birth VARCHAR)", "instruction": "What is the weight of the player from club panionios g.c. and was born on 1975-05-21?", "output": "SELECT weight FROM table_name_70 WHERE club = \"panionios g.c.\" AND date_of_birth = \"1975-05-21\"" }
### INSTRUCTION What is Win %, when Conference Titles is 0, and when Win-Loss is 20-10? ### INPUT CREATE TABLE table_name_68 (win__percentage VARCHAR, conference_titles VARCHAR, win_loss VARCHAR) ### OUTPUT SELECT win__percentage FROM table_name_68 WHERE conference_titles = "0" AND win_loss = "20-10"
{ "input": "CREATE TABLE table_name_68 (win__percentage VARCHAR, conference_titles VARCHAR, win_loss VARCHAR)", "instruction": "What is Win %, when Conference Titles is 0, and when Win-Loss is 20-10?", "output": "SELECT win__percentage FROM table_name_68 WHERE conference_titles = \"0\" AND win_loss = \"20-10\"" }
### INSTRUCTION I want the sum of number of seasons in top division for position in 2012-13 of 009 9th and number of seasons in premier league less than 3 ### INPUT CREATE TABLE table_name_48 (number_of_seasons_in_top_division INTEGER, position_in_2012_13 VARCHAR, number_of_seasons_in_the_premier_league VARCHAR) ### OUTPUT SELECT SUM(number_of_seasons_in_top_division) FROM table_name_48 WHERE position_in_2012_13 = "009 9th" AND number_of_seasons_in_the_premier_league < 3
{ "input": "CREATE TABLE table_name_48 (number_of_seasons_in_top_division INTEGER, position_in_2012_13 VARCHAR, number_of_seasons_in_the_premier_league VARCHAR)", "instruction": "I want the sum of number of seasons in top division for position in 2012-13 of 009 9th and number of seasons in premier league less than 3", "output": "SELECT SUM(number_of_seasons_in_top_division) FROM table_name_48 WHERE position_in_2012_13 = \"009 9th\" AND number_of_seasons_in_the_premier_league < 3" }
### INSTRUCTION Which situation has an original u.s. airdate of December 5, 2007? ### INPUT CREATE TABLE table_14570857_1 (situation VARCHAR, original_us_airdate VARCHAR) ### OUTPUT SELECT situation FROM table_14570857_1 WHERE original_us_airdate = "December 5, 2007"
{ "input": "CREATE TABLE table_14570857_1 (situation VARCHAR, original_us_airdate VARCHAR)", "instruction": "Which situation has an original u.s. airdate of December 5, 2007?", "output": "SELECT situation FROM table_14570857_1 WHERE original_us_airdate = \"December 5, 2007\"" }
### INSTRUCTION What is the largest amount of wins that was before the 2007 season, as well as the Team being silverstone motorsport academy? ### INPUT CREATE TABLE table_name_92 (wins INTEGER, season VARCHAR, team VARCHAR) ### OUTPUT SELECT MAX(wins) FROM table_name_92 WHERE season < 2007 AND team = "silverstone motorsport academy"
{ "input": "CREATE TABLE table_name_92 (wins INTEGER, season VARCHAR, team VARCHAR)", "instruction": "What is the largest amount of wins that was before the 2007 season, as well as the Team being silverstone motorsport academy?", "output": "SELECT MAX(wins) FROM table_name_92 WHERE season < 2007 AND team = \"silverstone motorsport academy\"" }
### INSTRUCTION What is Surface, when Opponent is "Jiří Vaněk"? ### INPUT CREATE TABLE table_name_31 (surface VARCHAR, opponent VARCHAR) ### OUTPUT SELECT surface FROM table_name_31 WHERE opponent = "jiří vaněk"
{ "input": "CREATE TABLE table_name_31 (surface VARCHAR, opponent VARCHAR)", "instruction": "What is Surface, when Opponent is \"Jiří Vaněk\"?", "output": "SELECT surface FROM table_name_31 WHERE opponent = \"jiří vaněk\"" }
### INSTRUCTION For each station, return its longitude and the average duration of trips that started from the station. ### INPUT CREATE TABLE station (name VARCHAR, long VARCHAR, id VARCHAR); CREATE TABLE trip (duration INTEGER, start_station_id VARCHAR) ### OUTPUT SELECT T1.name, T1.long, AVG(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id
{ "input": "CREATE TABLE station (name VARCHAR, long VARCHAR, id VARCHAR); CREATE TABLE trip (duration INTEGER, start_station_id VARCHAR)", "instruction": "For each station, return its longitude and the average duration of trips that started from the station.", "output": "SELECT T1.name, T1.long, AVG(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id" }
### INSTRUCTION Who had a disputed marriage? ### INPUT CREATE TABLE table_name_57 (name VARCHAR, marriage VARCHAR) ### OUTPUT SELECT name FROM table_name_57 WHERE marriage = "disputed"
{ "input": "CREATE TABLE table_name_57 (name VARCHAR, marriage VARCHAR)", "instruction": "Who had a disputed marriage?", "output": "SELECT name FROM table_name_57 WHERE marriage = \"disputed\"" }
### INSTRUCTION For each Orange county campus, report the number of degrees granted after 2000. ### INPUT CREATE TABLE campuses (campus VARCHAR, id VARCHAR, county VARCHAR); CREATE TABLE degrees (degrees INTEGER, campus VARCHAR, year VARCHAR) ### OUTPUT SELECT T1.campus, SUM(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = "Orange" AND T2.year >= 2000 GROUP BY T1.campus
{ "input": "CREATE TABLE campuses (campus VARCHAR, id VARCHAR, county VARCHAR); CREATE TABLE degrees (degrees INTEGER, campus VARCHAR, year VARCHAR)", "instruction": "For each Orange county campus, report the number of degrees granted after 2000.", "output": "SELECT T1.campus, SUM(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = \"Orange\" AND T2.year >= 2000 GROUP BY T1.campus" }
### INSTRUCTION What district has Riley Joseph Wilson as the incumbent? ### INPUT CREATE TABLE table_1342331_18 (district VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT district FROM table_1342331_18 WHERE incumbent = "Riley Joseph Wilson"
{ "input": "CREATE TABLE table_1342331_18 (district VARCHAR, incumbent VARCHAR)", "instruction": "What district has Riley Joseph Wilson as the incumbent?", "output": "SELECT district FROM table_1342331_18 WHERE incumbent = \"Riley Joseph Wilson\"" }
### INSTRUCTION Why did the change happened in Massachusetts (2)? ### INPUT CREATE TABLE table_18563954_3 (reason_for_change VARCHAR, state__class_ VARCHAR) ### OUTPUT SELECT reason_for_change FROM table_18563954_3 WHERE state__class_ = "Massachusetts (2)"
{ "input": "CREATE TABLE table_18563954_3 (reason_for_change VARCHAR, state__class_ VARCHAR)", "instruction": "Why did the change happened in Massachusetts (2)?", "output": "SELECT reason_for_change FROM table_18563954_3 WHERE state__class_ = \"Massachusetts (2)\"" }
### INSTRUCTION What was Footscray's score when it played as the home team? ### INPUT CREATE TABLE table_name_2 (home_team VARCHAR) ### OUTPUT SELECT home_team AS score FROM table_name_2 WHERE home_team = "footscray"
{ "input": "CREATE TABLE table_name_2 (home_team VARCHAR)", "instruction": "What was Footscray's score when it played as the home team?", "output": "SELECT home_team AS score FROM table_name_2 WHERE home_team = \"footscray\"" }
### INSTRUCTION Find the last name and gender of the students who are playing both Call of Destiny and Works of Widenius games. ### INPUT CREATE TABLE Plays_games (StuID VARCHAR, GameID VARCHAR); CREATE TABLE Student (lname VARCHAR, sex VARCHAR, StuID VARCHAR); CREATE TABLE Video_games (GameID VARCHAR, Gname VARCHAR) ### OUTPUT SELECT lname, sex FROM Student WHERE StuID IN (SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = "Call of Destiny" INTERSECT SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = "Works of Widenius")
{ "input": "CREATE TABLE Plays_games (StuID VARCHAR, GameID VARCHAR); CREATE TABLE Student (lname VARCHAR, sex VARCHAR, StuID VARCHAR); CREATE TABLE Video_games (GameID VARCHAR, Gname VARCHAR)", "instruction": "Find the last name and gender of the students who are playing both Call of Destiny and Works of Widenius games.", "output": "SELECT lname, sex FROM Student WHERE StuID IN (SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = \"Call of Destiny\" INTERSECT SELECT T1.StuID FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.GameID = T2.GameID WHERE T2.Gname = \"Works of Widenius\")" }
### INSTRUCTION In which special stage named Tempo 2 was Sébastien Loeb the leader? ### INPUT CREATE TABLE table_21326205_2 (stage VARCHAR, rally_leader VARCHAR, name VARCHAR) ### OUTPUT SELECT stage FROM table_21326205_2 WHERE rally_leader = "Sébastien Loeb" AND name = "Tempo 2"
{ "input": "CREATE TABLE table_21326205_2 (stage VARCHAR, rally_leader VARCHAR, name VARCHAR)", "instruction": "In which special stage named Tempo 2 was Sébastien Loeb the leader?", "output": "SELECT stage FROM table_21326205_2 WHERE rally_leader = \"Sébastien Loeb\" AND name = \"Tempo 2\"" }
### INSTRUCTION Retrieve the open and close dates of all the policies associated with the customer whose name contains "Diana" ### INPUT CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customers_policies (date_opened VARCHAR, date_closed VARCHAR, customer_id VARCHAR) ### OUTPUT SELECT t2.date_opened, t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE "%Diana%"
{ "input": "CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customers_policies (date_opened VARCHAR, date_closed VARCHAR, customer_id VARCHAR)", "instruction": "Retrieve the open and close dates of all the policies associated with the customer whose name contains \"Diana\"", "output": "SELECT t2.date_opened, t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE \"%Diana%\"" }
### INSTRUCTION Who is the written by when mark worthington is the director? ### INPUT CREATE TABLE table_22570439_1 (written_by VARCHAR, directed_by VARCHAR) ### OUTPUT SELECT written_by FROM table_22570439_1 WHERE directed_by = "Mark Worthington"
{ "input": "CREATE TABLE table_22570439_1 (written_by VARCHAR, directed_by VARCHAR)", "instruction": "Who is the written by when mark worthington is the director?", "output": "SELECT written_by FROM table_22570439_1 WHERE directed_by = \"Mark Worthington\"" }
### INSTRUCTION When the venue is away and the opponents are the bracknell bees, what is the competition? ### INPUT CREATE TABLE table_name_88 (competition VARCHAR, venue VARCHAR, opponent VARCHAR) ### OUTPUT SELECT competition FROM table_name_88 WHERE venue = "away" AND opponent = "bracknell bees"
{ "input": "CREATE TABLE table_name_88 (competition VARCHAR, venue VARCHAR, opponent VARCHAR)", "instruction": "When the venue is away and the opponents are the bracknell bees, what is the competition?", "output": "SELECT competition FROM table_name_88 WHERE venue = \"away\" AND opponent = \"bracknell bees\"" }
### INSTRUCTION Who were the candidates when Henry Garland Dupré was incumbent? ### INPUT CREATE TABLE table_1342451_16 (candidates VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT candidates FROM table_1342451_16 WHERE incumbent = "Henry Garland Dupré"
{ "input": "CREATE TABLE table_1342451_16 (candidates VARCHAR, incumbent VARCHAR)", "instruction": "Who were the candidates when Henry Garland Dupré was incumbent?", "output": "SELECT candidates FROM table_1342451_16 WHERE incumbent = \"Henry Garland Dupré\"" }
### INSTRUCTION How many races had #99 gainsco/bob stallings racing in round 10? ### INPUT CREATE TABLE table_19751479_4 (fastest_lap VARCHAR, rnd VARCHAR, pole_position VARCHAR) ### OUTPUT SELECT COUNT(fastest_lap) FROM table_19751479_4 WHERE rnd = 10 AND pole_position = "#99 GAINSCO/Bob Stallings Racing"
{ "input": "CREATE TABLE table_19751479_4 (fastest_lap VARCHAR, rnd VARCHAR, pole_position VARCHAR)", "instruction": "How many races had #99 gainsco/bob stallings racing in round 10?", "output": "SELECT COUNT(fastest_lap) FROM table_19751479_4 WHERE rnd = 10 AND pole_position = \"#99 GAINSCO/Bob Stallings Racing\"" }
### INSTRUCTION What are the lowest goal that have goals/matches greater than 0.43 with joachim streich as the name and matches greater than 378? ### INPUT CREATE TABLE table_name_37 (goals INTEGER, matches VARCHAR, name VARCHAR) ### OUTPUT SELECT MIN(goals) FROM table_name_37 WHERE goals / matches > 0.43 AND name = "joachim streich" AND matches > 378
{ "input": "CREATE TABLE table_name_37 (goals INTEGER, matches VARCHAR, name VARCHAR)", "instruction": "What are the lowest goal that have goals/matches greater than 0.43 with joachim streich as the name and matches greater than 378?", "output": "SELECT MIN(goals) FROM table_name_37 WHERE goals / matches > 0.43 AND name = \"joachim streich\" AND matches > 378" }
### INSTRUCTION What episode was directed by Karen Gaviola? ### INPUT CREATE TABLE table_20726262_6 (no_in_season INTEGER, directedby VARCHAR) ### OUTPUT SELECT MIN(no_in_season) FROM table_20726262_6 WHERE directedby = "Karen Gaviola"
{ "input": "CREATE TABLE table_20726262_6 (no_in_season INTEGER, directedby VARCHAR)", "instruction": "What episode was directed by Karen Gaviola?", "output": "SELECT MIN(no_in_season) FROM table_20726262_6 WHERE directedby = \"Karen Gaviola\"" }
### INSTRUCTION With 0 Goals and less than 1 Tries, what is Matt James position? ### INPUT CREATE TABLE table_name_38 (position VARCHAR, player VARCHAR, goals VARCHAR, tries VARCHAR) ### OUTPUT SELECT position FROM table_name_38 WHERE goals = "0" AND tries < 1 AND player = "matt james"
{ "input": "CREATE TABLE table_name_38 (position VARCHAR, player VARCHAR, goals VARCHAR, tries VARCHAR)", "instruction": "With 0 Goals and less than 1 Tries, what is Matt James position?", "output": "SELECT position FROM table_name_38 WHERE goals = \"0\" AND tries < 1 AND player = \"matt james\"" }
### INSTRUCTION When the runner-up is listed as Gigi Fernández Natalia Zvereva and the week is 26 June 2 weeks, who are the semi finalists? ### INPUT CREATE TABLE table_name_25 (semi_finalists VARCHAR, runner_up VARCHAR, week_of VARCHAR) ### OUTPUT SELECT semi_finalists FROM table_name_25 WHERE runner_up = "gigi fernández natalia zvereva" AND week_of = "26 june 2 weeks"
{ "input": "CREATE TABLE table_name_25 (semi_finalists VARCHAR, runner_up VARCHAR, week_of VARCHAR)", "instruction": "When the runner-up is listed as Gigi Fernández Natalia Zvereva and the week is 26 June 2 weeks, who are the semi finalists?", "output": "SELECT semi_finalists FROM table_name_25 WHERE runner_up = \"gigi fernández natalia zvereva\" AND week_of = \"26 june 2 weeks\"" }
### INSTRUCTION What nationality has a position of left wing, and a round greater than 4, with mattia baldi as the player? ### INPUT CREATE TABLE table_name_75 (nationality VARCHAR, player VARCHAR, position VARCHAR, round VARCHAR) ### OUTPUT SELECT nationality FROM table_name_75 WHERE position = "left wing" AND round > 4 AND player = "mattia baldi"
{ "input": "CREATE TABLE table_name_75 (nationality VARCHAR, player VARCHAR, position VARCHAR, round VARCHAR)", "instruction": "What nationality has a position of left wing, and a round greater than 4, with mattia baldi as the player?", "output": "SELECT nationality FROM table_name_75 WHERE position = \"left wing\" AND round > 4 AND player = \"mattia baldi\"" }
### INSTRUCTION who is the the womens doubles with mens doubles being leopold bauer alfred kohlhauser ### INPUT CREATE TABLE table_15002265_1 (womens_doubles VARCHAR, mens_doubles VARCHAR) ### OUTPUT SELECT womens_doubles FROM table_15002265_1 WHERE mens_doubles = "Leopold Bauer Alfred Kohlhauser"
{ "input": "CREATE TABLE table_15002265_1 (womens_doubles VARCHAR, mens_doubles VARCHAR)", "instruction": "who is the the womens doubles with mens doubles being leopold bauer alfred kohlhauser", "output": "SELECT womens_doubles FROM table_15002265_1 WHERE mens_doubles = \"Leopold Bauer Alfred Kohlhauser\"" }
### INSTRUCTION Who is the director of Wallace & Gromit: The Curse of the Were-Rabbit? ### INPUT CREATE TABLE table_name_99 (director VARCHAR, title VARCHAR) ### OUTPUT SELECT director FROM table_name_99 WHERE title = "wallace & gromit: the curse of the were-rabbit"
{ "input": "CREATE TABLE table_name_99 (director VARCHAR, title VARCHAR)", "instruction": "Who is the director of Wallace & Gromit: The Curse of the Were-Rabbit?", "output": "SELECT director FROM table_name_99 WHERE title = \"wallace & gromit: the curse of the were-rabbit\"" }
### INSTRUCTION List all company names with a book published by Alyson. ### INPUT CREATE TABLE culture_company (company_name VARCHAR, book_club_id VARCHAR); CREATE TABLE book_club (book_club_id VARCHAR, publisher VARCHAR) ### OUTPUT SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id = T2.book_club_id WHERE T2.publisher = 'Alyson'
{ "input": "CREATE TABLE culture_company (company_name VARCHAR, book_club_id VARCHAR); CREATE TABLE book_club (book_club_id VARCHAR, publisher VARCHAR)", "instruction": "List all company names with a book published by Alyson.", "output": "SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id = T2.book_club_id WHERE T2.publisher = 'Alyson'" }
### INSTRUCTION Show names of shops that have more than one kind of device in stock. ### INPUT CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_ID VARCHAR) ### OUTPUT SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*) > 1
{ "input": "CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_ID VARCHAR)", "instruction": "Show names of shops that have more than one kind of device in stock.", "output": "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID HAVING COUNT(*) > 1" }
### INSTRUCTION Who directed the episode with 899000 viewers? ### INPUT CREATE TABLE table_27547668_3 (directed_by VARCHAR, viewers VARCHAR) ### OUTPUT SELECT directed_by FROM table_27547668_3 WHERE viewers = 899000
{ "input": "CREATE TABLE table_27547668_3 (directed_by VARCHAR, viewers VARCHAR)", "instruction": "Who directed the episode with 899000 viewers?", "output": "SELECT directed_by FROM table_27547668_3 WHERE viewers = 899000" }
### INSTRUCTION What is Australia's score where they were in place t1? ### INPUT CREATE TABLE table_name_43 (score VARCHAR, country VARCHAR, place VARCHAR) ### OUTPUT SELECT score FROM table_name_43 WHERE country = "australia" AND place = "t1"
{ "input": "CREATE TABLE table_name_43 (score VARCHAR, country VARCHAR, place VARCHAR)", "instruction": "What is Australia's score where they were in place t1?", "output": "SELECT score FROM table_name_43 WHERE country = \"australia\" AND place = \"t1\"" }
### INSTRUCTION What are all info of students who registered courses but not attended courses? ### INPUT CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR) ### OUTPUT SELECT * FROM student_course_registrations WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)
{ "input": "CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR)", "instruction": "What are all info of students who registered courses but not attended courses?", "output": "SELECT * FROM student_course_registrations WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)" }
### INSTRUCTION What is the stage of Fabiano Fontanelli, who had a Trofeo Fast Team of Gewiss Playbus and a point classification of Fabrizio Guidi? ### INPUT CREATE TABLE table_name_13 (stage VARCHAR, winner VARCHAR, trofeo_fast_team VARCHAR, points_classification VARCHAR) ### OUTPUT SELECT stage FROM table_name_13 WHERE trofeo_fast_team = "gewiss playbus" AND points_classification = "fabrizio guidi" AND winner = "fabiano fontanelli"
{ "input": "CREATE TABLE table_name_13 (stage VARCHAR, winner VARCHAR, trofeo_fast_team VARCHAR, points_classification VARCHAR)", "instruction": "What is the stage of Fabiano Fontanelli, who had a Trofeo Fast Team of Gewiss Playbus and a point classification of Fabrizio Guidi?", "output": "SELECT stage FROM table_name_13 WHERE trofeo_fast_team = \"gewiss playbus\" AND points_classification = \"fabrizio guidi\" AND winner = \"fabiano fontanelli\"" }
### INSTRUCTION When the Year is over 2008, what is the highest Mintage for the Royal Canadian Mint Engravers Artist? ### INPUT CREATE TABLE table_name_46 (mintage INTEGER, artist VARCHAR, year VARCHAR) ### OUTPUT SELECT MAX(mintage) FROM table_name_46 WHERE artist = "royal canadian mint engravers" AND year > 2008
{ "input": "CREATE TABLE table_name_46 (mintage INTEGER, artist VARCHAR, year VARCHAR)", "instruction": "When the Year is over 2008, what is the highest Mintage for the Royal Canadian Mint Engravers Artist?", "output": "SELECT MAX(mintage) FROM table_name_46 WHERE artist = \"royal canadian mint engravers\" AND year > 2008" }
### INSTRUCTION report the total number of degrees granted between 1998 and 2002. ### INPUT CREATE TABLE campuses (campus VARCHAR, id VARCHAR); CREATE TABLE degrees (degrees INTEGER, campus VARCHAR, year VARCHAR) ### OUTPUT SELECT T1.campus, SUM(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus
{ "input": "CREATE TABLE campuses (campus VARCHAR, id VARCHAR); CREATE TABLE degrees (degrees INTEGER, campus VARCHAR, year VARCHAR)", "instruction": "report the total number of degrees granted between 1998 and 2002.", "output": "SELECT T1.campus, SUM(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus" }
### INSTRUCTION What is the administrative panel average when the cultural and educational panel is greater than 1 and the industrial and commercial panel less than 4? ### INPUT CREATE TABLE table_name_77 (administrative_panel INTEGER, cultural_and_educational_panel VARCHAR, industrial_and_commercial_panel VARCHAR) ### OUTPUT SELECT AVG(administrative_panel) FROM table_name_77 WHERE cultural_and_educational_panel > 1 AND industrial_and_commercial_panel < 4
{ "input": "CREATE TABLE table_name_77 (administrative_panel INTEGER, cultural_and_educational_panel VARCHAR, industrial_and_commercial_panel VARCHAR)", "instruction": "What is the administrative panel average when the cultural and educational panel is greater than 1 and the industrial and commercial panel less than 4?", "output": "SELECT AVG(administrative_panel) FROM table_name_77 WHERE cultural_and_educational_panel > 1 AND industrial_and_commercial_panel < 4" }
### INSTRUCTION Which countries do not have a stadium that was opened after 2006? ### INPUT CREATE TABLE stadium (country VARCHAR, opening_year INTEGER) ### OUTPUT SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year > 2006
{ "input": "CREATE TABLE stadium (country VARCHAR, opening_year INTEGER)", "instruction": "Which countries do not have a stadium that was opened after 2006?", "output": "SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year > 2006" }
### INSTRUCTION Who was the Home Captain and the Result for AUS by 4 wkts? ### INPUT CREATE TABLE table_name_25 (home_captain VARCHAR, result VARCHAR) ### OUTPUT SELECT home_captain FROM table_name_25 WHERE result = "aus by 4 wkts"
{ "input": "CREATE TABLE table_name_25 (home_captain VARCHAR, result VARCHAR)", "instruction": "Who was the Home Captain and the Result for AUS by 4 wkts?", "output": "SELECT home_captain FROM table_name_25 WHERE result = \"aus by 4 wkts\"" }
### INSTRUCTION Which players are from Indonesia? ### INPUT CREATE TABLE country (Country_id VARCHAR, Country_name VARCHAR); CREATE TABLE match_season (Player VARCHAR, Country VARCHAR) ### OUTPUT SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Country_name = "Indonesia"
{ "input": "CREATE TABLE country (Country_id VARCHAR, Country_name VARCHAR); CREATE TABLE match_season (Player VARCHAR, Country VARCHAR)", "instruction": "Which players are from Indonesia?", "output": "SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Country_name = \"Indonesia\"" }
### INSTRUCTION In Limerick County, what is the Rank with a Total larger than 12 and Tipperary as the Opposition? ### INPUT CREATE TABLE table_name_48 (rank INTEGER, total VARCHAR, opposition VARCHAR, county VARCHAR) ### OUTPUT SELECT AVG(rank) FROM table_name_48 WHERE opposition = "tipperary" AND county = "limerick" AND total > 12
{ "input": "CREATE TABLE table_name_48 (rank INTEGER, total VARCHAR, opposition VARCHAR, county VARCHAR)", "instruction": "In Limerick County, what is the Rank with a Total larger than 12 and Tipperary as the Opposition?", "output": "SELECT AVG(rank) FROM table_name_48 WHERE opposition = \"tipperary\" AND county = \"limerick\" AND total > 12" }
### INSTRUCTION WHAT IS THE AVERAGE OVERALL WITH A ROUND LARGER THAN 9, AND RB POSITION? ### INPUT CREATE TABLE table_name_85 (overall INTEGER, round VARCHAR, position VARCHAR) ### OUTPUT SELECT AVG(overall) FROM table_name_85 WHERE round > 9 AND position = "rb"
{ "input": "CREATE TABLE table_name_85 (overall INTEGER, round VARCHAR, position VARCHAR)", "instruction": "WHAT IS THE AVERAGE OVERALL WITH A ROUND LARGER THAN 9, AND RB POSITION?", "output": "SELECT AVG(overall) FROM table_name_85 WHERE round > 9 AND position = \"rb\"" }
### INSTRUCTION Show the statement id and the statement detail for the statement with most number of accounts. ### INPUT CREATE TABLE Accounts (statement_id VARCHAR); CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR) ### OUTPUT SELECT T1.statement_id, T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id GROUP BY T1.statement_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Accounts (statement_id VARCHAR); CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR)", "instruction": "Show the statement id and the statement detail for the statement with most number of accounts.", "output": "SELECT T1.statement_id, T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id GROUP BY T1.statement_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What site has an orbit of Leo, a decay (UTC) of still in orbit, and a magnetosphere research? ### INPUT CREATE TABLE table_name_5 (site VARCHAR, function VARCHAR, orbit VARCHAR, decay___utc__ VARCHAR) ### OUTPUT SELECT site FROM table_name_5 WHERE orbit = "leo" AND decay___utc__ = "still in orbit" AND function = "magnetosphere research"
{ "input": "CREATE TABLE table_name_5 (site VARCHAR, function VARCHAR, orbit VARCHAR, decay___utc__ VARCHAR)", "instruction": "What site has an orbit of Leo, a decay (UTC) of still in orbit, and a magnetosphere research?", "output": "SELECT site FROM table_name_5 WHERE orbit = \"leo\" AND decay___utc__ = \"still in orbit\" AND function = \"magnetosphere research\"" }
### INSTRUCTION Which college had a pick in a round under 7, with a pick number 13 and overall was under 186? ### INPUT CREATE TABLE table_name_6 (college VARCHAR, pick VARCHAR, round VARCHAR, overall VARCHAR) ### OUTPUT SELECT college FROM table_name_6 WHERE round < 7 AND overall < 186 AND pick = 13
{ "input": "CREATE TABLE table_name_6 (college VARCHAR, pick VARCHAR, round VARCHAR, overall VARCHAR)", "instruction": "Which college had a pick in a round under 7, with a pick number 13 and overall was under 186?", "output": "SELECT college FROM table_name_6 WHERE round < 7 AND overall < 186 AND pick = 13" }
### INSTRUCTION Find the names of all reviewers who rated Gone with the Wind. ### INPUT CREATE TABLE Movie (mID VARCHAR, title VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR) ### OUTPUT SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind'
{ "input": "CREATE TABLE Movie (mID VARCHAR, title VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)", "instruction": "Find the names of all reviewers who rated Gone with the Wind.", "output": "SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind'" }
### INSTRUCTION what is the rank when bronze is less than 1 and silver is less than 1? ### INPUT CREATE TABLE table_name_52 (rank VARCHAR, bronze VARCHAR, silver VARCHAR) ### OUTPUT SELECT rank FROM table_name_52 WHERE bronze < 1 AND silver < 1
{ "input": "CREATE TABLE table_name_52 (rank VARCHAR, bronze VARCHAR, silver VARCHAR)", "instruction": "what is the rank when bronze is less than 1 and silver is less than 1?", "output": "SELECT rank FROM table_name_52 WHERE bronze < 1 AND silver < 1" }
### INSTRUCTION Who is the winning driver of the race with no race as the winning manufacturer? ### INPUT CREATE TABLE table_name_66 (winning_driver VARCHAR, winning_manufacturer VARCHAR) ### OUTPUT SELECT winning_driver FROM table_name_66 WHERE winning_manufacturer = "no race"
{ "input": "CREATE TABLE table_name_66 (winning_driver VARCHAR, winning_manufacturer VARCHAR)", "instruction": "Who is the winning driver of the race with no race as the winning manufacturer?", "output": "SELECT winning_driver FROM table_name_66 WHERE winning_manufacturer = \"no race\"" }
### INSTRUCTION What are the number in series of the pieces directed by Win Phelps and which number in season is 11? ### INPUT CREATE TABLE table_25604014_6 (no_in_series VARCHAR, directed_by VARCHAR, no_in_season VARCHAR) ### OUTPUT SELECT no_in_series FROM table_25604014_6 WHERE directed_by = "Win Phelps" AND no_in_season = 11
{ "input": "CREATE TABLE table_25604014_6 (no_in_series VARCHAR, directed_by VARCHAR, no_in_season VARCHAR)", "instruction": "What are the number in series of the pieces directed by Win Phelps and which number in season is 11?", "output": "SELECT no_in_series FROM table_25604014_6 WHERE directed_by = \"Win Phelps\" AND no_in_season = 11" }
### INSTRUCTION What is the enrollment associated with a capacity greater then 35,650? ### INPUT CREATE TABLE table_name_46 (enrollment INTEGER, capacity INTEGER) ### OUTPUT SELECT MIN(enrollment) FROM table_name_46 WHERE capacity > 35 OFFSET 650
{ "input": "CREATE TABLE table_name_46 (enrollment INTEGER, capacity INTEGER)", "instruction": "What is the enrollment associated with a capacity greater then 35,650?", "output": "SELECT MIN(enrollment) FROM table_name_46 WHERE capacity > 35 OFFSET 650" }
### INSTRUCTION How many engines have a Model of sl600, and a Year From of 1994, and a Year To smaller than 1995? ### INPUT CREATE TABLE table_name_82 (engine VARCHAR, year_to VARCHAR, model VARCHAR, year_from VARCHAR) ### OUTPUT SELECT COUNT(engine) FROM table_name_82 WHERE model = "sl600" AND year_from = 1994 AND year_to < 1995
{ "input": "CREATE TABLE table_name_82 (engine VARCHAR, year_to VARCHAR, model VARCHAR, year_from VARCHAR)", "instruction": "How many engines have a Model of sl600, and a Year From of 1994, and a Year To smaller than 1995?", "output": "SELECT COUNT(engine) FROM table_name_82 WHERE model = \"sl600\" AND year_from = 1994 AND year_to < 1995" }
### INSTRUCTION which championship had helena suková tom nijssen as opponents in the final and nicole provis as partner, the surface was hard and the outcome was winner ### INPUT CREATE TABLE table_1918850_2 (championship VARCHAR, opponents_in_the_final VARCHAR, partner VARCHAR, outcome VARCHAR, surface VARCHAR) ### OUTPUT SELECT championship FROM table_1918850_2 WHERE outcome = "Winner" AND surface = "Hard" AND partner = "Nicole Provis" AND opponents_in_the_final = "Helena Suková Tom Nijssen"
{ "input": "CREATE TABLE table_1918850_2 (championship VARCHAR, opponents_in_the_final VARCHAR, partner VARCHAR, outcome VARCHAR, surface VARCHAR)", "instruction": "which championship had helena suková tom nijssen as opponents in the final and nicole provis as partner, the surface was hard and the outcome was winner", "output": "SELECT championship FROM table_1918850_2 WHERE outcome = \"Winner\" AND surface = \"Hard\" AND partner = \"Nicole Provis\" AND opponents_in_the_final = \"Helena Suková Tom Nijssen\"" }
### INSTRUCTION What is the loaction attendance that has a game greater than 35, with January 30 as the date? ### INPUT CREATE TABLE table_name_24 (location_attendance VARCHAR, game VARCHAR, date VARCHAR) ### OUTPUT SELECT location_attendance FROM table_name_24 WHERE game > 35 AND date = "january 30"
{ "input": "CREATE TABLE table_name_24 (location_attendance VARCHAR, game VARCHAR, date VARCHAR)", "instruction": "What is the loaction attendance that has a game greater than 35, with January 30 as the date?", "output": "SELECT location_attendance FROM table_name_24 WHERE game > 35 AND date = \"january 30\"" }
### INSTRUCTION Find the last name of the student who has a cat that is age 3. ### INPUT CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pet_age VARCHAR, pettype VARCHAR) ### OUTPUT SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'
{ "input": "CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pet_age VARCHAR, pettype VARCHAR)", "instruction": "Find the last name of the student who has a cat that is age 3.", "output": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'" }
### INSTRUCTION What country submitted the movie the orphanage? ### INPUT CREATE TABLE table_12842068_1 (submitting_country VARCHAR, film_title_used_in_nomination VARCHAR) ### OUTPUT SELECT submitting_country FROM table_12842068_1 WHERE film_title_used_in_nomination = "The Orphanage"
{ "input": "CREATE TABLE table_12842068_1 (submitting_country VARCHAR, film_title_used_in_nomination VARCHAR)", "instruction": "What country submitted the movie the orphanage?", "output": "SELECT submitting_country FROM table_12842068_1 WHERE film_title_used_in_nomination = \"The Orphanage\"" }
### INSTRUCTION What is the Tournament with a Opponents in the final with rod laver fred stolle? ### INPUT CREATE TABLE table_name_15 (tournament VARCHAR, opponents_in_the_final VARCHAR) ### OUTPUT SELECT tournament FROM table_name_15 WHERE opponents_in_the_final = "rod laver fred stolle"
{ "input": "CREATE TABLE table_name_15 (tournament VARCHAR, opponents_in_the_final VARCHAR)", "instruction": "What is the Tournament with a Opponents in the final with rod laver fred stolle?", "output": "SELECT tournament FROM table_name_15 WHERE opponents_in_the_final = \"rod laver fred stolle\"" }
### INSTRUCTION How many U.S. viewers, in millions, watched the episode that aired on November 13, 2007? ### INPUT CREATE TABLE table_13301516_1 (us_viewers__millions_ VARCHAR, original_air_date VARCHAR) ### OUTPUT SELECT us_viewers__millions_ FROM table_13301516_1 WHERE original_air_date = "November 13, 2007"
{ "input": "CREATE TABLE table_13301516_1 (us_viewers__millions_ VARCHAR, original_air_date VARCHAR)", "instruction": "How many U.S. viewers, in millions, watched the episode that aired on November 13, 2007?", "output": "SELECT us_viewers__millions_ FROM table_13301516_1 WHERE original_air_date = \"November 13, 2007\"" }
### INSTRUCTION What is the highest Bronze with the Event 1972 Heidelberg and Total less than 5? ### INPUT CREATE TABLE table_name_27 (bronze INTEGER, event VARCHAR, total VARCHAR) ### OUTPUT SELECT MAX(bronze) FROM table_name_27 WHERE event = "1972 heidelberg" AND total < 5
{ "input": "CREATE TABLE table_name_27 (bronze INTEGER, event VARCHAR, total VARCHAR)", "instruction": "What is the highest Bronze with the Event 1972 Heidelberg and Total less than 5?", "output": "SELECT MAX(bronze) FROM table_name_27 WHERE event = \"1972 heidelberg\" AND total < 5" }
### INSTRUCTION According to the August 2008 poll that reported 36% New Demcratic, what percentage aligned with the Liberal party? ### INPUT CREATE TABLE table_name_37 (liberal VARCHAR, new_democratic VARCHAR, dates VARCHAR) ### OUTPUT SELECT liberal FROM table_name_37 WHERE new_democratic = "36%" AND dates = "august 2008"
{ "input": "CREATE TABLE table_name_37 (liberal VARCHAR, new_democratic VARCHAR, dates VARCHAR)", "instruction": "According to the August 2008 poll that reported 36% New Demcratic, what percentage aligned with the Liberal party?", "output": "SELECT liberal FROM table_name_37 WHERE new_democratic = \"36%\" AND dates = \"august 2008\"" }
### INSTRUCTION What's the Württemberg for Karlsruher FV happening after 1931? ### INPUT CREATE TABLE table_name_51 (württemberg VARCHAR, baden VARCHAR, year VARCHAR) ### OUTPUT SELECT württemberg FROM table_name_51 WHERE baden = "karlsruher fv" AND year > 1931
{ "input": "CREATE TABLE table_name_51 (württemberg VARCHAR, baden VARCHAR, year VARCHAR)", "instruction": "What's the Württemberg for Karlsruher FV happening after 1931?", "output": "SELECT württemberg FROM table_name_51 WHERE baden = \"karlsruher fv\" AND year > 1931" }
### INSTRUCTION Tell me the lowest tries for goals more than 0 with centre position and points less than 54 ### INPUT CREATE TABLE table_name_40 (tries INTEGER, points VARCHAR, goals VARCHAR, position VARCHAR) ### OUTPUT SELECT MIN(tries) FROM table_name_40 WHERE goals > 0 AND position = "centre" AND points < 54
{ "input": "CREATE TABLE table_name_40 (tries INTEGER, points VARCHAR, goals VARCHAR, position VARCHAR)", "instruction": "Tell me the lowest tries for goals more than 0 with centre position and points less than 54", "output": "SELECT MIN(tries) FROM table_name_40 WHERE goals > 0 AND position = \"centre\" AND points < 54" }
### INSTRUCTION Which school is in the hometown of Aledo, Texas? ### INPUT CREATE TABLE table_11677691_5 (school VARCHAR, hometown VARCHAR) ### OUTPUT SELECT school FROM table_11677691_5 WHERE hometown = "Aledo, Texas"
{ "input": "CREATE TABLE table_11677691_5 (school VARCHAR, hometown VARCHAR)", "instruction": "Which school is in the hometown of Aledo, Texas?", "output": "SELECT school FROM table_11677691_5 WHERE hometown = \"Aledo, Texas\"" }
### INSTRUCTION What is the Power (kW) for the station with a frequency of 95.1mhz? ### INPUT CREATE TABLE table_name_72 (power__kw_ VARCHAR, frequency VARCHAR) ### OUTPUT SELECT power__kw_ FROM table_name_72 WHERE frequency = "95.1mhz"
{ "input": "CREATE TABLE table_name_72 (power__kw_ VARCHAR, frequency VARCHAR)", "instruction": "What is the Power (kW) for the station with a frequency of 95.1mhz?", "output": "SELECT power__kw_ FROM table_name_72 WHERE frequency = \"95.1mhz\"" }
### INSTRUCTION What is the highest Points, when Position is less than 4, when Equipment is Zabel - VMC, and when Bike No is less than 1? ### INPUT CREATE TABLE table_name_19 (points INTEGER, bike_no VARCHAR, position VARCHAR, equipment VARCHAR) ### OUTPUT SELECT MAX(points) FROM table_name_19 WHERE position < 4 AND equipment = "zabel - vmc" AND bike_no < 1
{ "input": "CREATE TABLE table_name_19 (points INTEGER, bike_no VARCHAR, position VARCHAR, equipment VARCHAR)", "instruction": "What is the highest Points, when Position is less than 4, when Equipment is Zabel - VMC, and when Bike No is less than 1?", "output": "SELECT MAX(points) FROM table_name_19 WHERE position < 4 AND equipment = \"zabel - vmc\" AND bike_no < 1" }
### INSTRUCTION Find the name and access counts of all documents, in alphabetic order of the document name. ### INPUT CREATE TABLE documents (document_name VARCHAR, access_count VARCHAR) ### OUTPUT SELECT document_name, access_count FROM documents ORDER BY document_name
{ "input": "CREATE TABLE documents (document_name VARCHAR, access_count VARCHAR)", "instruction": "Find the name and access counts of all documents, in alphabetic order of the document name.", "output": "SELECT document_name, access_count FROM documents ORDER BY document_name" }
### INSTRUCTION what kind of Week 5 that has a Week 1 of mandy ashford? ### INPUT CREATE TABLE table_name_68 (week_5 VARCHAR, week_1 VARCHAR) ### OUTPUT SELECT week_5 FROM table_name_68 WHERE week_1 = "mandy ashford"
{ "input": "CREATE TABLE table_name_68 (week_5 VARCHAR, week_1 VARCHAR)", "instruction": "what kind of Week 5 that has a Week 1 of mandy ashford?", "output": "SELECT week_5 FROM table_name_68 WHERE week_1 = \"mandy ashford\"" }
### INSTRUCTION Which gender is associated with University students and adults of 25mm? ### INPUT CREATE TABLE table_name_19 (gender VARCHAR, university_students_and_adults__18yrs VARCHAR, _ VARCHAR) ### OUTPUT SELECT gender FROM table_name_19 WHERE university_students_and_adults__18yrs + _ = "25mm"
{ "input": "CREATE TABLE table_name_19 (gender VARCHAR, university_students_and_adults__18yrs VARCHAR, _ VARCHAR)", "instruction": "Which gender is associated with University students and adults of 25mm?", "output": "SELECT gender FROM table_name_19 WHERE university_students_and_adults__18yrs + _ = \"25mm\"" }
### INSTRUCTION Which average Crowd has a Home team of essendon? ### INPUT CREATE TABLE table_name_59 (crowd INTEGER, home_team VARCHAR) ### OUTPUT SELECT AVG(crowd) FROM table_name_59 WHERE home_team = "essendon"
{ "input": "CREATE TABLE table_name_59 (crowd INTEGER, home_team VARCHAR)", "instruction": "Which average Crowd has a Home team of essendon?", "output": "SELECT AVG(crowd) FROM table_name_59 WHERE home_team = \"essendon\"" }
### INSTRUCTION Which Founded has a Club of tri-city storm and a Titles larger than 1? ### INPUT CREATE TABLE table_name_68 (founded INTEGER, club VARCHAR, titles VARCHAR) ### OUTPUT SELECT SUM(founded) FROM table_name_68 WHERE club = "tri-city storm" AND titles > 1
{ "input": "CREATE TABLE table_name_68 (founded INTEGER, club VARCHAR, titles VARCHAR)", "instruction": "Which Founded has a Club of tri-city storm and a Titles larger than 1?", "output": "SELECT SUM(founded) FROM table_name_68 WHERE club = \"tri-city storm\" AND titles > 1" }
### INSTRUCTION How many countries were sampled for the index in 2nd place in the LA ranking and 23rd in the world ranking? ### INPUT CREATE TABLE table_19948664_1 (countries_sampled VARCHAR, ranking_la__2_ VARCHAR, world_ranking__1_ VARCHAR) ### OUTPUT SELECT countries_sampled FROM table_19948664_1 WHERE ranking_la__2_ = "2nd" AND world_ranking__1_ = "23rd"
{ "input": "CREATE TABLE table_19948664_1 (countries_sampled VARCHAR, ranking_la__2_ VARCHAR, world_ranking__1_ VARCHAR)", "instruction": "How many countries were sampled for the index in 2nd place in the LA ranking and 23rd in the world ranking?", "output": "SELECT countries_sampled FROM table_19948664_1 WHERE ranking_la__2_ = \"2nd\" AND world_ranking__1_ = \"23rd\"" }
### INSTRUCTION What is Ateneo de Manila's PBA Team? ### INPUT CREATE TABLE table_name_96 (pba_team VARCHAR, college VARCHAR) ### OUTPUT SELECT pba_team FROM table_name_96 WHERE college = "ateneo de manila"
{ "input": "CREATE TABLE table_name_96 (pba_team VARCHAR, college VARCHAR)", "instruction": "What is Ateneo de Manila's PBA Team?", "output": "SELECT pba_team FROM table_name_96 WHERE college = \"ateneo de manila\"" }
### INSTRUCTION Who won in 2003? ### INPUT CREATE TABLE table_name_19 (winner VARCHAR, year VARCHAR) ### OUTPUT SELECT winner FROM table_name_19 WHERE year = 2003
{ "input": "CREATE TABLE table_name_19 (winner VARCHAR, year VARCHAR)", "instruction": "Who won in 2003?", "output": "SELECT winner FROM table_name_19 WHERE year = 2003" }
### INSTRUCTION Which engineers have never visited to maintain the assets? List the engineer first name and last name. ### INPUT CREATE TABLE Engineer_Visits (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR) ### OUTPUT SELECT first_name, last_name FROM Maintenance_Engineers WHERE NOT engineer_id IN (SELECT engineer_id FROM Engineer_Visits)
{ "input": "CREATE TABLE Engineer_Visits (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR)", "instruction": "Which engineers have never visited to maintain the assets? List the engineer first name and last name.", "output": "SELECT first_name, last_name FROM Maintenance_Engineers WHERE NOT engineer_id IN (SELECT engineer_id FROM Engineer_Visits)" }
### INSTRUCTION What is Minister, when Portfolio is "Minister of Pubblic Administration", and when Took Office is "14 November 2002"? ### INPUT CREATE TABLE table_name_97 (minister VARCHAR, portfolio VARCHAR, took_office VARCHAR) ### OUTPUT SELECT minister FROM table_name_97 WHERE portfolio = "minister of pubblic administration" AND took_office = "14 november 2002"
{ "input": "CREATE TABLE table_name_97 (minister VARCHAR, portfolio VARCHAR, took_office VARCHAR)", "instruction": "What is Minister, when Portfolio is \"Minister of Pubblic Administration\", and when Took Office is \"14 November 2002\"?", "output": "SELECT minister FROM table_name_97 WHERE portfolio = \"minister of pubblic administration\" AND took_office = \"14 november 2002\"" }
### INSTRUCTION What is City, when State is California, when AAM Accredited is No, when ASTC Member is Yes, and when AAM Member is No? ### INPUT CREATE TABLE table_name_30 (city VARCHAR, aam_member VARCHAR, astc_member VARCHAR, state VARCHAR, aam_accredited VARCHAR) ### OUTPUT SELECT city FROM table_name_30 WHERE state = "california" AND aam_accredited = "no" AND astc_member = "yes" AND aam_member = "no"
{ "input": "CREATE TABLE table_name_30 (city VARCHAR, aam_member VARCHAR, astc_member VARCHAR, state VARCHAR, aam_accredited VARCHAR)", "instruction": "What is City, when State is California, when AAM Accredited is No, when ASTC Member is Yes, and when AAM Member is No?", "output": "SELECT city FROM table_name_30 WHERE state = \"california\" AND aam_accredited = \"no\" AND astc_member = \"yes\" AND aam_member = \"no\"" }
### INSTRUCTION Which Water (sqmi) has a County of benson, and an ANSI code smaller than 1759243? ### INPUT CREATE TABLE table_name_13 (water__sqmi_ INTEGER, county VARCHAR, ansi_code VARCHAR) ### OUTPUT SELECT MIN(water__sqmi_) FROM table_name_13 WHERE county = "benson" AND ansi_code < 1759243
{ "input": "CREATE TABLE table_name_13 (water__sqmi_ INTEGER, county VARCHAR, ansi_code VARCHAR)", "instruction": "Which Water (sqmi) has a County of benson, and an ANSI code smaller than 1759243?", "output": "SELECT MIN(water__sqmi_) FROM table_name_13 WHERE county = \"benson\" AND ansi_code < 1759243" }
### INSTRUCTION Which Champion has a Runner-up of florian mayer, and a Score of 7–6(6), 4–6, 7–5? ### INPUT CREATE TABLE table_name_96 (champion VARCHAR, runner_up VARCHAR, score VARCHAR) ### OUTPUT SELECT champion FROM table_name_96 WHERE runner_up = "florian mayer" AND score = "7–6(6), 4–6, 7–5"
{ "input": "CREATE TABLE table_name_96 (champion VARCHAR, runner_up VARCHAR, score VARCHAR)", "instruction": "Which Champion has a Runner-up of florian mayer, and a Score of 7–6(6), 4–6, 7–5?", "output": "SELECT champion FROM table_name_96 WHERE runner_up = \"florian mayer\" AND score = \"7–6(6), 4–6, 7–5\"" }
### INSTRUCTION What is the highest episode# with the writer Paul West? ### INPUT CREATE TABLE table_2342078_2 (episode__number INTEGER, written_by VARCHAR) ### OUTPUT SELECT MAX(episode__number) FROM table_2342078_2 WHERE written_by = "Paul West"
{ "input": "CREATE TABLE table_2342078_2 (episode__number INTEGER, written_by VARCHAR)", "instruction": "What is the highest episode# with the writer Paul West?", "output": "SELECT MAX(episode__number) FROM table_2342078_2 WHERE written_by = \"Paul West\"" }
### INSTRUCTION Who is the main contestant eliminated with a score of 1 + 7 + 5 = 13? ### INPUT CREATE TABLE table_name_11 (main_contestant VARCHAR, status VARCHAR, scores_by_each_individual_judge VARCHAR) ### OUTPUT SELECT main_contestant FROM table_name_11 WHERE status = "eliminated" AND scores_by_each_individual_judge = 1 + 7 + 5 = 13
{ "input": "CREATE TABLE table_name_11 (main_contestant VARCHAR, status VARCHAR, scores_by_each_individual_judge VARCHAR)", "instruction": "Who is the main contestant eliminated with a score of 1 + 7 + 5 = 13?", "output": "SELECT main_contestant FROM table_name_11 WHERE status = \"eliminated\" AND scores_by_each_individual_judge = 1 + 7 + 5 = 13" }
### INSTRUCTION What's the catalog number for a December 11, 2007 record from columbia formatted in a that's from Canada? ### INPUT CREATE TABLE table_name_1 (catalog VARCHAR, region VARCHAR, label VARCHAR, date VARCHAR) ### OUTPUT SELECT catalog FROM table_name_1 WHERE label = "columbia" AND date = "december 11, 2007" AND region = "canada"
{ "input": "CREATE TABLE table_name_1 (catalog VARCHAR, region VARCHAR, label VARCHAR, date VARCHAR)", "instruction": "What's the catalog number for a December 11, 2007 record from columbia formatted in a that's from Canada?", "output": "SELECT catalog FROM table_name_1 WHERE label = \"columbia\" AND date = \"december 11, 2007\" AND region = \"canada\"" }
### INSTRUCTION What is the population density where area is 48.67? ### INPUT CREATE TABLE table_255602_1 (pop_density__per_km²_ VARCHAR, area__km²_ VARCHAR) ### OUTPUT SELECT COUNT(pop_density__per_km²_) FROM table_255602_1 WHERE area__km²_ = "48.67"
{ "input": "CREATE TABLE table_255602_1 (pop_density__per_km²_ VARCHAR, area__km²_ VARCHAR)", "instruction": "What is the population density where area is 48.67?", "output": "SELECT COUNT(pop_density__per_km²_) FROM table_255602_1 WHERE area__km²_ = \"48.67\"" }
### INSTRUCTION What is the Intermediate Sprints Classification Red Jersey that has a Green Jersey of Murilo Antonio Fischer, and Jose Joaquin Rojas Gil? ### INPUT CREATE TABLE table_name_34 (intermediate_sprints_classification_red_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, points_classification_navy_blue_jersey VARCHAR) ### OUTPUT SELECT intermediate_sprints_classification_red_jersey FROM table_name_34 WHERE mountains_classification_green_jersey = "murilo antonio fischer" AND points_classification_navy_blue_jersey = "jose joaquin rojas gil"
{ "input": "CREATE TABLE table_name_34 (intermediate_sprints_classification_red_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, points_classification_navy_blue_jersey VARCHAR)", "instruction": "What is the Intermediate Sprints Classification Red Jersey that has a Green Jersey of Murilo Antonio Fischer, and Jose Joaquin Rojas Gil?", "output": "SELECT intermediate_sprints_classification_red_jersey FROM table_name_34 WHERE mountains_classification_green_jersey = \"murilo antonio fischer\" AND points_classification_navy_blue_jersey = \"jose joaquin rojas gil\"" }
### INSTRUCTION On which date did Ger Loughnane from Team Clare have a match? ### INPUT CREATE TABLE table_name_88 (date VARCHAR, team VARCHAR, player VARCHAR) ### OUTPUT SELECT date FROM table_name_88 WHERE team = "clare" AND player = "ger loughnane"
{ "input": "CREATE TABLE table_name_88 (date VARCHAR, team VARCHAR, player VARCHAR)", "instruction": "On which date did Ger Loughnane from Team Clare have a match?", "output": "SELECT date FROM table_name_88 WHERE team = \"clare\" AND player = \"ger loughnane\"" }
### INSTRUCTION Who is the player who went to Stanford? ### INPUT CREATE TABLE table_name_8 (player VARCHAR, school_club_team VARCHAR) ### OUTPUT SELECT player FROM table_name_8 WHERE school_club_team = "stanford"
{ "input": "CREATE TABLE table_name_8 (player VARCHAR, school_club_team VARCHAR)", "instruction": "Who is the player who went to Stanford?", "output": "SELECT player FROM table_name_8 WHERE school_club_team = \"stanford\"" }
### INSTRUCTION What year did the United States win with a total of 278? ### INPUT CREATE TABLE table_name_4 (year_s__won VARCHAR, country VARCHAR, total VARCHAR) ### OUTPUT SELECT year_s__won FROM table_name_4 WHERE country = "united states" AND total = 278
{ "input": "CREATE TABLE table_name_4 (year_s__won VARCHAR, country VARCHAR, total VARCHAR)", "instruction": "What year did the United States win with a total of 278?", "output": "SELECT year_s__won FROM table_name_4 WHERE country = \"united states\" AND total = 278" }
### INSTRUCTION Can you tell me the Week that has the Home Team of detroit, and the Divisional Record of (3-0), and the Overall Record of (5-1), and the Away Team of minnesota? ### INPUT CREATE TABLE table_name_40 (week VARCHAR, away_team VARCHAR, overall_record VARCHAR, home_team VARCHAR, divisional_record VARCHAR) ### OUTPUT SELECT week FROM table_name_40 WHERE home_team = "detroit" AND divisional_record = "(3-0)" AND overall_record = "(5-1)" AND away_team = "minnesota"
{ "input": "CREATE TABLE table_name_40 (week VARCHAR, away_team VARCHAR, overall_record VARCHAR, home_team VARCHAR, divisional_record VARCHAR)", "instruction": "Can you tell me the Week that has the Home Team of detroit, and the Divisional Record of (3-0), and the Overall Record of (5-1), and the Away Team of minnesota?", "output": "SELECT week FROM table_name_40 WHERE home_team = \"detroit\" AND divisional_record = \"(3-0)\" AND overall_record = \"(5-1)\" AND away_team = \"minnesota\"" }
### INSTRUCTION What was the film title used in nomination for the film directed by Gheorghe Vitanidis? ### INPUT CREATE TABLE table_name_89 (film_title_used_in_nomination VARCHAR, director VARCHAR) ### OUTPUT SELECT film_title_used_in_nomination FROM table_name_89 WHERE director = "gheorghe vitanidis"
{ "input": "CREATE TABLE table_name_89 (film_title_used_in_nomination VARCHAR, director VARCHAR)", "instruction": "What was the film title used in nomination for the film directed by Gheorghe Vitanidis?", "output": "SELECT film_title_used_in_nomination FROM table_name_89 WHERE director = \"gheorghe vitanidis\"" }
### INSTRUCTION What was the lowest pick number for a united states player picked before round 7? ### INPUT CREATE TABLE table_name_91 (pick INTEGER, round VARCHAR, nationality VARCHAR) ### OUTPUT SELECT MIN(pick) FROM table_name_91 WHERE round > 7 AND nationality = "united states"
{ "input": "CREATE TABLE table_name_91 (pick INTEGER, round VARCHAR, nationality VARCHAR)", "instruction": "What was the lowest pick number for a united states player picked before round 7?", "output": "SELECT MIN(pick) FROM table_name_91 WHERE round > 7 AND nationality = \"united states\"" }
### INSTRUCTION Who played the mathematics student? ### INPUT CREATE TABLE table_2933761_1 (played_by VARCHAR, occupation VARCHAR) ### OUTPUT SELECT played_by FROM table_2933761_1 WHERE occupation = "Mathematics Student"
{ "input": "CREATE TABLE table_2933761_1 (played_by VARCHAR, occupation VARCHAR)", "instruction": "Who played the mathematics student?", "output": "SELECT played_by FROM table_2933761_1 WHERE occupation = \"Mathematics Student\"" }
### INSTRUCTION Who was the subject of the bronze sculpture who was a colonist and soldier in Ville Marie, New France? ### INPUT CREATE TABLE table_20903658_1 (title_subject VARCHAR, medium VARCHAR, public_office VARCHAR) ### OUTPUT SELECT title_subject FROM table_20903658_1 WHERE medium = "Bronze" AND public_office = "colonist and soldier in Ville Marie, New France"
{ "input": "CREATE TABLE table_20903658_1 (title_subject VARCHAR, medium VARCHAR, public_office VARCHAR)", "instruction": "Who was the subject of the bronze sculpture who was a colonist and soldier in Ville Marie, New France? ", "output": "SELECT title_subject FROM table_20903658_1 WHERE medium = \"Bronze\" AND public_office = \"colonist and soldier in Ville Marie, New France\"" }
### INSTRUCTION Show the ids and details of the investors who have at least two transactions with type code "SALE". ### INPUT CREATE TABLE TRANSACTIONS (investor_id VARCHAR, transaction_type_code VARCHAR); CREATE TABLE INVESTORS (Investor_details VARCHAR, investor_id VARCHAR) ### OUTPUT SELECT T2.investor_id, T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE T2.transaction_type_code = "SALE" GROUP BY T2.investor_id HAVING COUNT(*) >= 2
{ "input": "CREATE TABLE TRANSACTIONS (investor_id VARCHAR, transaction_type_code VARCHAR); CREATE TABLE INVESTORS (Investor_details VARCHAR, investor_id VARCHAR)", "instruction": "Show the ids and details of the investors who have at least two transactions with type code \"SALE\".", "output": "SELECT T2.investor_id, T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE T2.transaction_type_code = \"SALE\" GROUP BY T2.investor_id HAVING COUNT(*) >= 2" }
### INSTRUCTION Name the sum of Comp which has a Yds/game smaller than 209.5,brytus Name, and a Rating smaller than 100? ### INPUT CREATE TABLE table_name_94 (comp INTEGER, rating VARCHAR, yds_game VARCHAR, name VARCHAR) ### OUTPUT SELECT SUM(comp) FROM table_name_94 WHERE yds_game < 209.5 AND name = "brytus" AND rating < 100
{ "input": "CREATE TABLE table_name_94 (comp INTEGER, rating VARCHAR, yds_game VARCHAR, name VARCHAR)", "instruction": "Name the sum of Comp which has a Yds/game smaller than 209.5,brytus Name, and a Rating smaller than 100?", "output": "SELECT SUM(comp) FROM table_name_94 WHERE yds_game < 209.5 AND name = \"brytus\" AND rating < 100" }
### INSTRUCTION When was tony parker (guard) born? ### INPUT CREATE TABLE table_name_31 (year_born INTEGER, position VARCHAR, player VARCHAR) ### OUTPUT SELECT MAX(year_born) FROM table_name_31 WHERE position = "guard" AND player = "tony parker"
{ "input": "CREATE TABLE table_name_31 (year_born INTEGER, position VARCHAR, player VARCHAR)", "instruction": "When was tony parker (guard) born?", "output": "SELECT MAX(year_born) FROM table_name_31 WHERE position = \"guard\" AND player = \"tony parker\"" }
### INSTRUCTION What is the score of the game against away team exeter city on 10 jan 1990? ### INPUT CREATE TABLE table_name_70 (score VARCHAR, date VARCHAR, away_team VARCHAR) ### OUTPUT SELECT score FROM table_name_70 WHERE date = "10 jan 1990" AND away_team = "exeter city"
{ "input": "CREATE TABLE table_name_70 (score VARCHAR, date VARCHAR, away_team VARCHAR)", "instruction": "What is the score of the game against away team exeter city on 10 jan 1990?", "output": "SELECT score FROM table_name_70 WHERE date = \"10 jan 1990\" AND away_team = \"exeter city\"" }
### INSTRUCTION How many total innings have an average under 6.33, strike rate under 71.43, balls faced over 36, and smaller than 19 runs scored? ### INPUT CREATE TABLE table_name_35 (innings INTEGER, runs_scored VARCHAR, balls_faced VARCHAR, average VARCHAR, sr VARCHAR) ### OUTPUT SELECT SUM(innings) FROM table_name_35 WHERE average < 6.33 AND sr < 71.43 AND balls_faced > 36 AND runs_scored < 19
{ "input": "CREATE TABLE table_name_35 (innings INTEGER, runs_scored VARCHAR, balls_faced VARCHAR, average VARCHAR, sr VARCHAR)", "instruction": "How many total innings have an average under 6.33, strike rate under 71.43, balls faced over 36, and smaller than 19 runs scored?", "output": "SELECT SUM(innings) FROM table_name_35 WHERE average < 6.33 AND sr < 71.43 AND balls_faced > 36 AND runs_scored < 19" }
### INSTRUCTION What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18? ### INPUT CREATE TABLE table_name_86 (goals_conceded INTEGER, points VARCHAR, played VARCHAR) ### OUTPUT SELECT SUM(goals_conceded) FROM table_name_86 WHERE points < 26 AND played < 18
{ "input": "CREATE TABLE table_name_86 (goals_conceded INTEGER, points VARCHAR, played VARCHAR)", "instruction": "What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18?", "output": "SELECT SUM(goals_conceded) FROM table_name_86 WHERE points < 26 AND played < 18" }
### INSTRUCTION How many values when the bearing or degrees is 67.6 - 82.5 82.6 - 97.5 97.6 - 112.5? ### INPUT CREATE TABLE table_23406517_2 (bearing___degrees VARCHAR) ### OUTPUT SELECT COUNT(*) FROM table_23406517_2 WHERE bearing___degrees = "67.6 - 82.5 82.6 - 97.5 97.6 - 112.5"
{ "input": "CREATE TABLE table_23406517_2 (bearing___degrees VARCHAR)", "instruction": "How many values when the bearing or degrees is 67.6 - 82.5 82.6 - 97.5 97.6 - 112.5?", "output": "SELECT COUNT(*) FROM table_23406517_2 WHERE bearing___degrees = \"67.6 - 82.5 82.6 - 97.5 97.6 - 112.5\"" }