text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Show the movie titles and book titles for all companies in China. ### INPUT CREATE TABLE movie (title VARCHAR, movie_id VARCHAR); CREATE TABLE culture_company (movie_id VARCHAR, book_club_id VARCHAR, incorporated_in VARCHAR); CREATE TABLE book_club (book_title VARCHAR, book_club_id VARCHAR) ### OUTPUT SELECT T1.title, T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id JOIN book_club AS T3 ON T3.book_club_id = T2.book_club_id WHERE T2.incorporated_in = 'China'
{ "input": "CREATE TABLE movie (title VARCHAR, movie_id VARCHAR); CREATE TABLE culture_company (movie_id VARCHAR, book_club_id VARCHAR, incorporated_in VARCHAR); CREATE TABLE book_club (book_title VARCHAR, book_club_id VARCHAR)", "instruction": "Show the movie titles and book titles for all companies in China.", "output": "SELECT T1.title, T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id JOIN book_club AS T3 ON T3.book_club_id = T2.book_club_id WHERE T2.incorporated_in = 'China'" }
### INSTRUCTION Name the number of players when starter is no and touchdowns is 1 for right halfback ### INPUT CREATE TABLE table_14342592_4 (player VARCHAR, position VARCHAR, starter VARCHAR, touchdowns VARCHAR) ### OUTPUT SELECT COUNT(player) FROM table_14342592_4 WHERE starter = "No" AND touchdowns = 1 AND position = "Right halfback"
{ "input": "CREATE TABLE table_14342592_4 (player VARCHAR, position VARCHAR, starter VARCHAR, touchdowns VARCHAR)", "instruction": "Name the number of players when starter is no and touchdowns is 1 for right halfback", "output": "SELECT COUNT(player) FROM table_14342592_4 WHERE starter = \"No\" AND touchdowns = 1 AND position = \"Right halfback\"" }
### INSTRUCTION Find the saving balance of the account with the highest checking balance. ### INPUT CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (custid VARCHAR) ### OUTPUT SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1
{ "input": "CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (custid VARCHAR)", "instruction": "Find the saving balance of the account with the highest checking balance.", "output": "SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1" }
### INSTRUCTION What Catalogue is Dated 14 november 2003, with the Format compact disc? ### INPUT CREATE TABLE table_name_47 (catalogue VARCHAR, date VARCHAR, format VARCHAR) ### OUTPUT SELECT catalogue FROM table_name_47 WHERE date = "14 november 2003" AND format = "compact disc"
{ "input": "CREATE TABLE table_name_47 (catalogue VARCHAR, date VARCHAR, format VARCHAR)", "instruction": "What Catalogue is Dated 14 november 2003, with the Format compact disc?", "output": "SELECT catalogue FROM table_name_47 WHERE date = \"14 november 2003\" AND format = \"compact disc\"" }
### INSTRUCTION who had the pole position at rockingham circuit with adam christodoulou having the fastest lap? ### INPUT CREATE TABLE table_name_10 (pole_position VARCHAR, fastest_lap VARCHAR, circuit VARCHAR) ### OUTPUT SELECT pole_position FROM table_name_10 WHERE fastest_lap = "adam christodoulou" AND circuit = "rockingham"
{ "input": "CREATE TABLE table_name_10 (pole_position VARCHAR, fastest_lap VARCHAR, circuit VARCHAR)", "instruction": "who had the pole position at rockingham circuit with adam christodoulou having the fastest lap?", "output": "SELECT pole_position FROM table_name_10 WHERE fastest_lap = \"adam christodoulou\" AND circuit = \"rockingham\"" }
### INSTRUCTION If the founding university is in Charlotte, NC, what is the nickname? ### INPUT CREATE TABLE table_2538117_7 (nickname VARCHAR, founding_university VARCHAR) ### OUTPUT SELECT nickname FROM table_2538117_7 WHERE founding_university = "Charlotte, NC"
{ "input": "CREATE TABLE table_2538117_7 (nickname VARCHAR, founding_university VARCHAR)", "instruction": "If the founding university is in Charlotte, NC, what is the nickname?", "output": "SELECT nickname FROM table_2538117_7 WHERE founding_university = \"Charlotte, NC\"" }
### INSTRUCTION With the Destination of Jupiter and the Closest approach of 4 February 2004, what is the Time elapsed? ### INPUT CREATE TABLE table_name_11 (time_elapsed VARCHAR, destination VARCHAR, closest_approach VARCHAR) ### OUTPUT SELECT time_elapsed FROM table_name_11 WHERE destination = "jupiter" AND closest_approach = "4 february 2004"
{ "input": "CREATE TABLE table_name_11 (time_elapsed VARCHAR, destination VARCHAR, closest_approach VARCHAR)", "instruction": "With the Destination of Jupiter and the Closest approach of 4 February 2004, what is the Time elapsed?", "output": "SELECT time_elapsed FROM table_name_11 WHERE destination = \"jupiter\" AND closest_approach = \"4 february 2004\"" }
### INSTRUCTION What years does Our Lady Sacred Heart School, which is state integrated, have? ### INPUT CREATE TABLE table_name_47 (years VARCHAR, authority VARCHAR, name VARCHAR) ### OUTPUT SELECT years FROM table_name_47 WHERE authority = "state integrated" AND name = "our lady sacred heart school"
{ "input": "CREATE TABLE table_name_47 (years VARCHAR, authority VARCHAR, name VARCHAR)", "instruction": "What years does Our Lady Sacred Heart School, which is state integrated, have?", "output": "SELECT years FROM table_name_47 WHERE authority = \"state integrated\" AND name = \"our lady sacred heart school\"" }
### INSTRUCTION On what date did a friendly competition, hosted in Dubai, result in a draw? ### INPUT CREATE TABLE table_name_79 (date VARCHAR, venue VARCHAR, result VARCHAR, competition VARCHAR) ### OUTPUT SELECT date FROM table_name_79 WHERE result = "draw" AND competition = "friendly" AND venue = "dubai"
{ "input": "CREATE TABLE table_name_79 (date VARCHAR, venue VARCHAR, result VARCHAR, competition VARCHAR)", "instruction": "On what date did a friendly competition, hosted in Dubai, result in a draw?", "output": "SELECT date FROM table_name_79 WHERE result = \"draw\" AND competition = \"friendly\" AND venue = \"dubai\"" }
### INSTRUCTION What's the FCC info with a Frequency MHz thats smaller than 91.9 and has a CIty of license of Dansville, NY? ### INPUT CREATE TABLE table_name_8 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR) ### OUTPUT SELECT fcc_info FROM table_name_8 WHERE frequency_mhz < 91.9 AND city_of_license = "dansville, ny"
{ "input": "CREATE TABLE table_name_8 (fcc_info VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)", "instruction": "What's the FCC info with a Frequency MHz thats smaller than 91.9 and has a CIty of license of Dansville, NY?", "output": "SELECT fcc_info FROM table_name_8 WHERE frequency_mhz < 91.9 AND city_of_license = \"dansville, ny\"" }
### INSTRUCTION What was the score of the game with away team chelsea on 29 january 1983? ### INPUT CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR, away_team VARCHAR) ### OUTPUT SELECT score FROM table_name_10 WHERE date = "29 january 1983" AND away_team = "chelsea"
{ "input": "CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR, away_team VARCHAR)", "instruction": "What was the score of the game with away team chelsea on 29 january 1983?", "output": "SELECT score FROM table_name_10 WHERE date = \"29 january 1983\" AND away_team = \"chelsea\"" }
### INSTRUCTION Find the top 3 artists who have the largest number of songs works whose language is Bangla. ### INPUT CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR) ### OUTPUT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "bangla" GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3
{ "input": "CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR)", "instruction": "Find the top 3 artists who have the largest number of songs works whose language is Bangla.", "output": "SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = \"bangla\" GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3" }
### INSTRUCTION Which institution was located in bakersfield, california? ### INPUT CREATE TABLE table_27816698_2 (institution VARCHAR, location VARCHAR) ### OUTPUT SELECT institution FROM table_27816698_2 WHERE location = "Bakersfield, California"
{ "input": "CREATE TABLE table_27816698_2 (institution VARCHAR, location VARCHAR)", "instruction": "Which institution was located in bakersfield, california?", "output": "SELECT institution FROM table_27816698_2 WHERE location = \"Bakersfield, California\"" }
### INSTRUCTION What is the lowest 2013 population estimate of the province with a 23.7 percentage? ### INPUT CREATE TABLE table_name_57 (population_estimate__2013_ INTEGER, percentage VARCHAR) ### OUTPUT SELECT MIN(population_estimate__2013_) FROM table_name_57 WHERE percentage = 23.7
{ "input": "CREATE TABLE table_name_57 (population_estimate__2013_ INTEGER, percentage VARCHAR)", "instruction": "What is the lowest 2013 population estimate of the province with a 23.7 percentage?", "output": "SELECT MIN(population_estimate__2013_) FROM table_name_57 WHERE percentage = 23.7" }
### INSTRUCTION Show the names of all the activities Mark Giuliano participates in. ### INPUT CREATE TABLE Activity (activity_name VARCHAR, actid VARCHAR); CREATE TABLE Faculty (facID VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR) ### OUTPUT SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = "Mark" AND T1.lname = "Giuliano"
{ "input": "CREATE TABLE Activity (activity_name VARCHAR, actid VARCHAR); CREATE TABLE Faculty (facID VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR)", "instruction": "Show the names of all the activities Mark Giuliano participates in.", "output": "SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN Activity AS T3 ON T3.actid = T2.actid WHERE T1.fname = \"Mark\" AND T1.lname = \"Giuliano\"" }
### INSTRUCTION What is the total number of Round, when Position is "D", and when Player is "Andrew Campbell"? ### INPUT CREATE TABLE table_name_94 (round VARCHAR, position VARCHAR, player VARCHAR) ### OUTPUT SELECT COUNT(round) FROM table_name_94 WHERE position = "d" AND player = "andrew campbell"
{ "input": "CREATE TABLE table_name_94 (round VARCHAR, position VARCHAR, player VARCHAR)", "instruction": "What is the total number of Round, when Position is \"D\", and when Player is \"Andrew Campbell\"?", "output": "SELECT COUNT(round) FROM table_name_94 WHERE position = \"d\" AND player = \"andrew campbell\"" }
### INSTRUCTION Which venue hosted the 2004 AFC Asian Cup qualification on November 18, 2003? ### INPUT CREATE TABLE table_name_11 (venue VARCHAR, competition VARCHAR, date VARCHAR) ### OUTPUT SELECT venue FROM table_name_11 WHERE competition = "2004 afc asian cup qualification" AND date = "november 18, 2003"
{ "input": "CREATE TABLE table_name_11 (venue VARCHAR, competition VARCHAR, date VARCHAR)", "instruction": "Which venue hosted the 2004 AFC Asian Cup qualification on November 18, 2003?", "output": "SELECT venue FROM table_name_11 WHERE competition = \"2004 afc asian cup qualification\" AND date = \"november 18, 2003\"" }
### INSTRUCTION What is Josh Hamilton's hometown? ### INPUT CREATE TABLE table_11677100_5 (hometown VARCHAR, player VARCHAR) ### OUTPUT SELECT hometown FROM table_11677100_5 WHERE player = "Josh Hamilton"
{ "input": "CREATE TABLE table_11677100_5 (hometown VARCHAR, player VARCHAR)", "instruction": "What is Josh Hamilton's hometown?", "output": "SELECT hometown FROM table_11677100_5 WHERE player = \"Josh Hamilton\"" }
### INSTRUCTION Which Apps have a Club of barcelona, and a Season of 1996/97, and a Rank smaller than 7? ### INPUT CREATE TABLE table_name_29 (apps INTEGER, rank VARCHAR, club VARCHAR, season VARCHAR) ### OUTPUT SELECT MIN(apps) FROM table_name_29 WHERE club = "barcelona" AND season = "1996/97" AND rank < 7
{ "input": "CREATE TABLE table_name_29 (apps INTEGER, rank VARCHAR, club VARCHAR, season VARCHAR)", "instruction": "Which Apps have a Club of barcelona, and a Season of 1996/97, and a Rank smaller than 7?", "output": "SELECT MIN(apps) FROM table_name_29 WHERE club = \"barcelona\" AND season = \"1996/97\" AND rank < 7" }
### INSTRUCTION How many pints does the Cambrian Welfare RFC have? ### INPUT CREATE TABLE table_name_50 (points_for VARCHAR, club VARCHAR) ### OUTPUT SELECT points_for FROM table_name_50 WHERE club = "cambrian welfare rfc"
{ "input": "CREATE TABLE table_name_50 (points_for VARCHAR, club VARCHAR)", "instruction": "How many pints does the Cambrian Welfare RFC have?", "output": "SELECT points_for FROM table_name_50 WHERE club = \"cambrian welfare rfc\"" }
### INSTRUCTION What is Player, when Figures is source: . last updated: 28 june 2007.? ### INPUT CREATE TABLE table_name_52 (player VARCHAR, figures VARCHAR) ### OUTPUT SELECT player FROM table_name_52 WHERE figures = "source: . last updated: 28 june 2007."
{ "input": "CREATE TABLE table_name_52 (player VARCHAR, figures VARCHAR)", "instruction": "What is Player, when Figures is source: . last updated: 28 june 2007.?", "output": "SELECT player FROM table_name_52 WHERE figures = \"source: . last updated: 28 june 2007.\"" }
### INSTRUCTION Find the production code and channel of the most recently aired cartoon . ### INPUT CREATE TABLE cartoon (production_code VARCHAR, channel VARCHAR, original_air_date VARCHAR) ### OUTPUT SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1
{ "input": "CREATE TABLE cartoon (production_code VARCHAR, channel VARCHAR, original_air_date VARCHAR)", "instruction": "Find the production code and channel of the most recently aired cartoon .", "output": "SELECT production_code, channel FROM cartoon ORDER BY original_air_date DESC LIMIT 1" }
### INSTRUCTION When was the stokers' training ship launched? ### INPUT CREATE TABLE table_24496403_1 (launched VARCHAR, disposition VARCHAR) ### OUTPUT SELECT launched FROM table_24496403_1 WHERE disposition = "Stokers' training ship"
{ "input": "CREATE TABLE table_24496403_1 (launched VARCHAR, disposition VARCHAR)", "instruction": "When was the stokers' training ship launched?", "output": "SELECT launched FROM table_24496403_1 WHERE disposition = \"Stokers' training ship\"" }
### INSTRUCTION What are the first names of the professors who do not teach a class. ### INPUT CREATE TABLE employee (emp_fname VARCHAR, emp_jobcode VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR) ### OUTPUT SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num
{ "input": "CREATE TABLE employee (emp_fname VARCHAR, emp_jobcode VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)", "instruction": "What are the first names of the professors who do not teach a class.", "output": "SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num" }
### INSTRUCTION Who was the rookie who played when Matt Vinc was defensive and Pat Maddalena was offensive? ### INPUT CREATE TABLE table_name_6 (rookie VARCHAR, defensive VARCHAR, offensive VARCHAR) ### OUTPUT SELECT rookie FROM table_name_6 WHERE defensive = "matt vinc" AND offensive = "pat maddalena"
{ "input": "CREATE TABLE table_name_6 (rookie VARCHAR, defensive VARCHAR, offensive VARCHAR)", "instruction": "Who was the rookie who played when Matt Vinc was defensive and Pat Maddalena was offensive?", "output": "SELECT rookie FROM table_name_6 WHERE defensive = \"matt vinc\" AND offensive = \"pat maddalena\"" }
### INSTRUCTION Show names of teachers and the number of courses they teach. ### INPUT CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course_arrange (Teacher_ID VARCHAR) ### OUTPUT SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name
{ "input": "CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course_arrange (Teacher_ID VARCHAR)", "instruction": "Show names of teachers and the number of courses they teach.", "output": "SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name" }
### INSTRUCTION What was the result of the Award of Drama desk award nominee Tom Hewitt. ### INPUT CREATE TABLE table_name_37 (result VARCHAR, award VARCHAR, nominee VARCHAR) ### OUTPUT SELECT result FROM table_name_37 WHERE award = "drama desk award" AND nominee = "tom hewitt"
{ "input": "CREATE TABLE table_name_37 (result VARCHAR, award VARCHAR, nominee VARCHAR)", "instruction": "What was the result of the Award of Drama desk award nominee Tom Hewitt.", "output": "SELECT result FROM table_name_37 WHERE award = \"drama desk award\" AND nominee = \"tom hewitt\"" }
### INSTRUCTION what's the primary payload(s) with launch date being july 8, 1994 ### INPUT CREATE TABLE table_14118521_1 (primary_payload_s_ VARCHAR, launch_date VARCHAR) ### OUTPUT SELECT primary_payload_s_ FROM table_14118521_1 WHERE launch_date = "July 8, 1994"
{ "input": "CREATE TABLE table_14118521_1 (primary_payload_s_ VARCHAR, launch_date VARCHAR)", "instruction": "what's the primary payload(s) with launch date being july 8, 1994", "output": "SELECT primary_payload_s_ FROM table_14118521_1 WHERE launch_date = \"July 8, 1994\"" }
### INSTRUCTION What is the Total with 0 Silver and Gold, 1 Bronze and Rank larger than 2? ### INPUT CREATE TABLE table_name_54 (total INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR, bronze VARCHAR) ### OUTPUT SELECT MIN(total) FROM table_name_54 WHERE rank > 2 AND bronze = 1 AND silver > 0 AND gold < 0
{ "input": "CREATE TABLE table_name_54 (total INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR, bronze VARCHAR)", "instruction": "What is the Total with 0 Silver and Gold, 1 Bronze and Rank larger than 2?", "output": "SELECT MIN(total) FROM table_name_54 WHERE rank > 2 AND bronze = 1 AND silver > 0 AND gold < 0" }
### INSTRUCTION What is the most recent episode number written by Matthew Pitts? ### INPUT CREATE TABLE table_24649082_1 (_number INTEGER, written_by VARCHAR) ### OUTPUT SELECT MAX(_number) FROM table_24649082_1 WHERE written_by = "Matthew Pitts"
{ "input": "CREATE TABLE table_24649082_1 (_number INTEGER, written_by VARCHAR)", "instruction": "What is the most recent episode number written by Matthew Pitts?", "output": "SELECT MAX(_number) FROM table_24649082_1 WHERE written_by = \"Matthew Pitts\"" }
### INSTRUCTION Result of missed*, and a Game time of 2nd quarter (0:00), and a Kicker of mason crosby involves what date? ### INPUT CREATE TABLE table_name_3 (date VARCHAR, kicker VARCHAR, result VARCHAR, game_time VARCHAR) ### OUTPUT SELECT date FROM table_name_3 WHERE result = "missed*" AND game_time = "2nd quarter (0:00)" AND kicker = "mason crosby"
{ "input": "CREATE TABLE table_name_3 (date VARCHAR, kicker VARCHAR, result VARCHAR, game_time VARCHAR)", "instruction": "Result of missed*, and a Game time of 2nd quarter (0:00), and a Kicker of mason crosby involves what date?", "output": "SELECT date FROM table_name_3 WHERE result = \"missed*\" AND game_time = \"2nd quarter (0:00)\" AND kicker = \"mason crosby\"" }
### INSTRUCTION What are the the approximate translations when the Morphological Category is 1st. plur. perfect? ### INPUT CREATE TABLE table_2784232_1 (approximate_translation VARCHAR, morphological_category VARCHAR) ### OUTPUT SELECT approximate_translation FROM table_2784232_1 WHERE morphological_category = "1st. plur. perfect"
{ "input": "CREATE TABLE table_2784232_1 (approximate_translation VARCHAR, morphological_category VARCHAR)", "instruction": "What are the the approximate translations when the Morphological Category is 1st. plur. perfect?", "output": "SELECT approximate_translation FROM table_2784232_1 WHERE morphological_category = \"1st. plur. perfect\"" }
### INSTRUCTION how many series have production code 8acx05 ### INPUT CREATE TABLE table_26259391_1 (no_in_series VARCHAR, production_code VARCHAR) ### OUTPUT SELECT no_in_series FROM table_26259391_1 WHERE production_code = "8ACX05"
{ "input": "CREATE TABLE table_26259391_1 (no_in_series VARCHAR, production_code VARCHAR)", "instruction": "how many series have production code 8acx05", "output": "SELECT no_in_series FROM table_26259391_1 WHERE production_code = \"8ACX05\"" }
### INSTRUCTION What was the tries against when the drawn was 2? ### INPUT CREATE TABLE table_12792876_3 (tries_against VARCHAR, drawn VARCHAR) ### OUTPUT SELECT tries_against FROM table_12792876_3 WHERE drawn = "2"
{ "input": "CREATE TABLE table_12792876_3 (tries_against VARCHAR, drawn VARCHAR)", "instruction": "What was the tries against when the drawn was 2?", "output": "SELECT tries_against FROM table_12792876_3 WHERE drawn = \"2\"" }
### INSTRUCTION Which Runner(s)-up has a Margin of victory of 1 stroke, and a Tournament of world seniors invitational? ### INPUT CREATE TABLE table_name_34 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) ### OUTPUT SELECT runner_s__up FROM table_name_34 WHERE margin_of_victory = "1 stroke" AND tournament = "world seniors invitational"
{ "input": "CREATE TABLE table_name_34 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)", "instruction": "Which Runner(s)-up has a Margin of victory of 1 stroke, and a Tournament of world seniors invitational?", "output": "SELECT runner_s__up FROM table_name_34 WHERE margin_of_victory = \"1 stroke\" AND tournament = \"world seniors invitational\"" }
### INSTRUCTION Who was the artist for the album, Christmas under the reunion label with the guitar? ### INPUT CREATE TABLE table_name_67 (artist VARCHAR, album VARCHAR, label VARCHAR, credit VARCHAR) ### OUTPUT SELECT artist FROM table_name_67 WHERE label = "reunion" AND credit = "guitar" AND album = "christmas"
{ "input": "CREATE TABLE table_name_67 (artist VARCHAR, album VARCHAR, label VARCHAR, credit VARCHAR)", "instruction": "Who was the artist for the album, Christmas under the reunion label with the guitar?", "output": "SELECT artist FROM table_name_67 WHERE label = \"reunion\" AND credit = \"guitar\" AND album = \"christmas\"" }
### INSTRUCTION What is the total number of Round with a Method of submission (ankle lock), a Location of tokyo, japan, and a Record of 13-5-2? ### INPUT CREATE TABLE table_name_84 (round INTEGER, record VARCHAR, method VARCHAR, location VARCHAR) ### OUTPUT SELECT SUM(round) FROM table_name_84 WHERE method = "submission (ankle lock)" AND location = "tokyo, japan" AND record = "13-5-2"
{ "input": "CREATE TABLE table_name_84 (round INTEGER, record VARCHAR, method VARCHAR, location VARCHAR)", "instruction": "What is the total number of Round with a Method of submission (ankle lock), a Location of tokyo, japan, and a Record of 13-5-2?", "output": "SELECT SUM(round) FROM table_name_84 WHERE method = \"submission (ankle lock)\" AND location = \"tokyo, japan\" AND record = \"13-5-2\"" }
### INSTRUCTION Tell me the Shuji Kondo for MAZADA of X with Ryuji Hijikata of hijikata (14:24) ### INPUT CREATE TABLE table_name_90 (shuji_kondo VARCHAR, mazada VARCHAR, ryuji_hijikata VARCHAR) ### OUTPUT SELECT shuji_kondo FROM table_name_90 WHERE mazada = "x" AND ryuji_hijikata = "hijikata (14:24)"
{ "input": "CREATE TABLE table_name_90 (shuji_kondo VARCHAR, mazada VARCHAR, ryuji_hijikata VARCHAR)", "instruction": "Tell me the Shuji Kondo for MAZADA of X with Ryuji Hijikata of hijikata (14:24)", "output": "SELECT shuji_kondo FROM table_name_90 WHERE mazada = \"x\" AND ryuji_hijikata = \"hijikata (14:24)\"" }
### INSTRUCTION What year is the date when the boiler type is forward topfeed, the built at is Crewe, and lot number is less than 187? ### INPUT CREATE TABLE table_name_94 (date VARCHAR, lot_no VARCHAR, boiler_type VARCHAR, built_at VARCHAR) ### OUTPUT SELECT COUNT(date) FROM table_name_94 WHERE boiler_type = "forward topfeed" AND built_at = "crewe" AND lot_no < 187
{ "input": "CREATE TABLE table_name_94 (date VARCHAR, lot_no VARCHAR, boiler_type VARCHAR, built_at VARCHAR)", "instruction": "What year is the date when the boiler type is forward topfeed, the built at is Crewe, and lot number is less than 187?", "output": "SELECT COUNT(date) FROM table_name_94 WHERE boiler_type = \"forward topfeed\" AND built_at = \"crewe\" AND lot_no < 187" }
### INSTRUCTION Which actor from Serbia was nominated for best actor in a supporting role? ### INPUT CREATE TABLE table_10236830_4 (actors_name VARCHAR, nomination VARCHAR, country VARCHAR) ### OUTPUT SELECT actors_name FROM table_10236830_4 WHERE nomination = "Best Actor in a Supporting Role" AND country = "Serbia"
{ "input": "CREATE TABLE table_10236830_4 (actors_name VARCHAR, nomination VARCHAR, country VARCHAR)", "instruction": "Which actor from Serbia was nominated for best actor in a supporting role?", "output": "SELECT actors_name FROM table_10236830_4 WHERE nomination = \"Best Actor in a Supporting Role\" AND country = \"Serbia\"" }
### INSTRUCTION What is the score of the team that plays in lake oval? ### INPUT CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT away_team AS score FROM table_name_85 WHERE venue = "lake oval"
{ "input": "CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR)", "instruction": "What is the score of the team that plays in lake oval?", "output": "SELECT away_team AS score FROM table_name_85 WHERE venue = \"lake oval\"" }
### INSTRUCTION How much Goal Difference has less than 9 Losses, and 8 Draws, and more than 40 points? ### INPUT CREATE TABLE table_name_22 (goal_difference INTEGER, points VARCHAR, losses VARCHAR, draws VARCHAR) ### OUTPUT SELECT SUM(goal_difference) FROM table_name_22 WHERE losses < 9 AND draws = 8 AND points > 40
{ "input": "CREATE TABLE table_name_22 (goal_difference INTEGER, points VARCHAR, losses VARCHAR, draws VARCHAR)", "instruction": "How much Goal Difference has less than 9 Losses, and 8 Draws, and more than 40 points?", "output": "SELECT SUM(goal_difference) FROM table_name_22 WHERE losses < 9 AND draws = 8 AND points > 40" }
### INSTRUCTION What was the original air date of this episode that was written by Debbie Sarjeant? ### INPUT CREATE TABLE table_17623902_1 (original_air_date VARCHAR, written_by VARCHAR) ### OUTPUT SELECT original_air_date FROM table_17623902_1 WHERE written_by = "Debbie Sarjeant"
{ "input": "CREATE TABLE table_17623902_1 (original_air_date VARCHAR, written_by VARCHAR)", "instruction": "What was the original air date of this episode that was written by Debbie Sarjeant?", "output": "SELECT original_air_date FROM table_17623902_1 WHERE written_by = \"Debbie Sarjeant\"" }
### INSTRUCTION What was the result of the game after week 3 against the New York Giants? ### INPUT CREATE TABLE table_name_94 (result VARCHAR, week VARCHAR, opponent VARCHAR) ### OUTPUT SELECT result FROM table_name_94 WHERE week > 3 AND opponent = "new york giants"
{ "input": "CREATE TABLE table_name_94 (result VARCHAR, week VARCHAR, opponent VARCHAR)", "instruction": "What was the result of the game after week 3 against the New York Giants?", "output": "SELECT result FROM table_name_94 WHERE week > 3 AND opponent = \"new york giants\"" }
### INSTRUCTION Show the statement detail and the corresponding document name for the statement with detail 'Private Project'. ### INPUT CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR); CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR) ### OUTPUT SELECT T1.statement_details, T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project'
{ "input": "CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR); CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR)", "instruction": "Show the statement detail and the corresponding document name for the statement with detail 'Private Project'.", "output": "SELECT T1.statement_details, T2.document_name FROM Statements AS T1 JOIN Documents AS T2 ON T1.statement_id = T2.document_id WHERE T1.statement_details = 'Private Project'" }
### INSTRUCTION what is the points against when the losing bonus is 0 and the club is banwen rfc? ### INPUT CREATE TABLE table_name_32 (points_against VARCHAR, losing_bonus VARCHAR, club VARCHAR) ### OUTPUT SELECT points_against FROM table_name_32 WHERE losing_bonus = "0" AND club = "banwen rfc"
{ "input": "CREATE TABLE table_name_32 (points_against VARCHAR, losing_bonus VARCHAR, club VARCHAR)", "instruction": "what is the points against when the losing bonus is 0 and the club is banwen rfc?", "output": "SELECT points_against FROM table_name_32 WHERE losing_bonus = \"0\" AND club = \"banwen rfc\"" }
### INSTRUCTION What is the name of the opponent at the Herceg Novi tournament? ### INPUT CREATE TABLE table_name_54 (opponent VARCHAR, tournament VARCHAR) ### OUTPUT SELECT opponent FROM table_name_54 WHERE tournament = "herceg novi"
{ "input": "CREATE TABLE table_name_54 (opponent VARCHAR, tournament VARCHAR)", "instruction": "What is the name of the opponent at the Herceg Novi tournament?", "output": "SELECT opponent FROM table_name_54 WHERE tournament = \"herceg novi\"" }
### INSTRUCTION What is the total bronze medals when the silver medals is 0, and 1 is the rank, Brazil (BRA) is the nation, and the gold medals is less than 2? ### INPUT CREATE TABLE table_name_28 (bronze INTEGER, gold VARCHAR, nation VARCHAR, silver VARCHAR, rank VARCHAR) ### OUTPUT SELECT SUM(bronze) FROM table_name_28 WHERE silver = 0 AND rank = "1" AND nation = "brazil (bra)" AND gold < 2
{ "input": "CREATE TABLE table_name_28 (bronze INTEGER, gold VARCHAR, nation VARCHAR, silver VARCHAR, rank VARCHAR)", "instruction": "What is the total bronze medals when the silver medals is 0, and 1 is the rank, Brazil (BRA) is the nation, and the gold medals is less than 2?", "output": "SELECT SUM(bronze) FROM table_name_28 WHERE silver = 0 AND rank = \"1\" AND nation = \"brazil (bra)\" AND gold < 2" }
### INSTRUCTION Which venue has a scoreof 2–0? ### INPUT CREATE TABLE table_name_60 (venue VARCHAR, score VARCHAR) ### OUTPUT SELECT venue FROM table_name_60 WHERE score = "2–0"
{ "input": "CREATE TABLE table_name_60 (venue VARCHAR, score VARCHAR)", "instruction": "Which venue has a scoreof 2–0?", "output": "SELECT venue FROM table_name_60 WHERE score = \"2–0\"" }
### INSTRUCTION When was Ranma ½: netsuretsu kakutouhen first release by Banpresto? ### INPUT CREATE TABLE table_name_41 (initial_release_date VARCHAR, publisher VARCHAR, japanese_title VARCHAR) ### OUTPUT SELECT initial_release_date FROM table_name_41 WHERE publisher = "banpresto" AND japanese_title = "ranma ½: netsuretsu kakutouhen"
{ "input": "CREATE TABLE table_name_41 (initial_release_date VARCHAR, publisher VARCHAR, japanese_title VARCHAR)", "instruction": "When was Ranma ½: netsuretsu kakutouhen first release by Banpresto?", "output": "SELECT initial_release_date FROM table_name_41 WHERE publisher = \"banpresto\" AND japanese_title = \"ranma ½: netsuretsu kakutouhen\"" }
### INSTRUCTION What is the date of the inauguration with a Length of retirement of 00,624 days? ### INPUT CREATE TABLE table_name_78 (date_of_inauguration VARCHAR, length_of_retirement VARCHAR) ### OUTPUT SELECT date_of_inauguration FROM table_name_78 WHERE length_of_retirement = "00,624 days"
{ "input": "CREATE TABLE table_name_78 (date_of_inauguration VARCHAR, length_of_retirement VARCHAR)", "instruction": "What is the date of the inauguration with a Length of retirement of 00,624 days?", "output": "SELECT date_of_inauguration FROM table_name_78 WHERE length_of_retirement = \"00,624 days\"" }
### INSTRUCTION Where is the headquarter located for the Annapolis Valley Regional School Board? ### INPUT CREATE TABLE table_21514460_1 (headquarters VARCHAR, school_district VARCHAR) ### OUTPUT SELECT headquarters FROM table_21514460_1 WHERE school_district = "Annapolis Valley Regional School Board"
{ "input": "CREATE TABLE table_21514460_1 (headquarters VARCHAR, school_district VARCHAR)", "instruction": "Where is the headquarter located for the Annapolis Valley Regional School Board?", "output": "SELECT headquarters FROM table_21514460_1 WHERE school_district = \"Annapolis Valley Regional School Board\"" }
### INSTRUCTION Name the circuit when the fastest lap was john surtees and the winning driver was john surtees. ### INPUT CREATE TABLE table_name_53 (circuit VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR) ### OUTPUT SELECT circuit FROM table_name_53 WHERE fastest_lap = "john surtees" AND winning_driver = "john surtees"
{ "input": "CREATE TABLE table_name_53 (circuit VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)", "instruction": "Name the circuit when the fastest lap was john surtees and the winning driver was john surtees.", "output": "SELECT circuit FROM table_name_53 WHERE fastest_lap = \"john surtees\" AND winning_driver = \"john surtees\"" }
### INSTRUCTION How long has Sebastian Telfair played for Toronto? ### INPUT CREATE TABLE table_name_83 (years_in_toronto VARCHAR, player VARCHAR) ### OUTPUT SELECT years_in_toronto FROM table_name_83 WHERE player = "sebastian telfair"
{ "input": "CREATE TABLE table_name_83 (years_in_toronto VARCHAR, player VARCHAR)", "instruction": "How long has Sebastian Telfair played for Toronto?", "output": "SELECT years_in_toronto FROM table_name_83 WHERE player = \"sebastian telfair\"" }
### INSTRUCTION What is the Location with a Year larger than 2011, and a President with herman van rompuy (2nd term), and a Date of 28–29 june, and a Type with scheduled? ### INPUT CREATE TABLE table_name_63 (location VARCHAR, type VARCHAR, date VARCHAR, year VARCHAR, president VARCHAR) ### OUTPUT SELECT location FROM table_name_63 WHERE year > 2011 AND president = "herman van rompuy (2nd term)" AND date = "28–29 june" AND type = "scheduled"
{ "input": "CREATE TABLE table_name_63 (location VARCHAR, type VARCHAR, date VARCHAR, year VARCHAR, president VARCHAR)", "instruction": "What is the Location with a Year larger than 2011, and a President with herman van rompuy (2nd term), and a Date of 28–29 june, and a Type with scheduled?", "output": "SELECT location FROM table_name_63 WHERE year > 2011 AND president = \"herman van rompuy (2nd term)\" AND date = \"28–29 june\" AND type = \"scheduled\"" }
### INSTRUCTION What are the id and name of the photos for mountains? ### INPUT CREATE TABLE photos (mountain_id VARCHAR); CREATE TABLE mountain (id VARCHAR, name VARCHAR, height INTEGER) ### OUTPUT SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000
{ "input": "CREATE TABLE photos (mountain_id VARCHAR); CREATE TABLE mountain (id VARCHAR, name VARCHAR, height INTEGER)", "instruction": "What are the id and name of the photos for mountains?", "output": "SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000" }
### INSTRUCTION What team had a high rebound of perkins (9) and a game smaller than 78? ### INPUT CREATE TABLE table_name_39 (team VARCHAR, game VARCHAR, high_rebounds VARCHAR) ### OUTPUT SELECT team FROM table_name_39 WHERE game < 78 AND high_rebounds = "perkins (9)"
{ "input": "CREATE TABLE table_name_39 (team VARCHAR, game VARCHAR, high_rebounds VARCHAR)", "instruction": "What team had a high rebound of perkins (9) and a game smaller than 78?", "output": "SELECT team FROM table_name_39 WHERE game < 78 AND high_rebounds = \"perkins (9)\"" }
### INSTRUCTION Can you tell me the Matches that has the Rank of 1? ### INPUT CREATE TABLE table_name_89 (matches VARCHAR, rank VARCHAR) ### OUTPUT SELECT matches FROM table_name_89 WHERE rank = 1
{ "input": "CREATE TABLE table_name_89 (matches VARCHAR, rank VARCHAR)", "instruction": "Can you tell me the Matches that has the Rank of 1?", "output": "SELECT matches FROM table_name_89 WHERE rank = 1" }
### INSTRUCTION Who was the opponent when the loss was Wells (4-7)? ### INPUT CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR) ### OUTPUT SELECT opponent FROM table_name_35 WHERE loss = "wells (4-7)"
{ "input": "CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR)", "instruction": "Who was the opponent when the loss was Wells (4-7)?", "output": "SELECT opponent FROM table_name_35 WHERE loss = \"wells (4-7)\"" }
### INSTRUCTION What is every country with a flag with population of 11346670? ### INPUT CREATE TABLE table_298550_1 (country_with_flag VARCHAR, population__1_july_2005_est_ VARCHAR) ### OUTPUT SELECT country_with_flag FROM table_298550_1 WHERE population__1_july_2005_est_ = 11346670
{ "input": "CREATE TABLE table_298550_1 (country_with_flag VARCHAR, population__1_july_2005_est_ VARCHAR)", "instruction": "What is every country with a flag with population of 11346670?", "output": "SELECT country_with_flag FROM table_298550_1 WHERE population__1_july_2005_est_ = 11346670" }
### INSTRUCTION Name the laps for suzuki and time/retired of +1:02.804 ### INPUT CREATE TABLE table_name_92 (laps VARCHAR, manufacturer VARCHAR, time_retired VARCHAR) ### OUTPUT SELECT laps FROM table_name_92 WHERE manufacturer = "suzuki" AND time_retired = "+1:02.804"
{ "input": "CREATE TABLE table_name_92 (laps VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)", "instruction": "Name the laps for suzuki and time/retired of +1:02.804", "output": "SELECT laps FROM table_name_92 WHERE manufacturer = \"suzuki\" AND time_retired = \"+1:02.804\"" }
### INSTRUCTION What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%? ### INPUT CREATE TABLE table_name_45 (karen_handel VARCHAR, eric_johnson VARCHAR, undecided VARCHAR) ### OUTPUT SELECT karen_handel FROM table_name_45 WHERE eric_johnson = "13%" AND undecided = "22%"
{ "input": "CREATE TABLE table_name_45 (karen_handel VARCHAR, eric_johnson VARCHAR, undecided VARCHAR)", "instruction": "What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%?", "output": "SELECT karen_handel FROM table_name_45 WHERE eric_johnson = \"13%\" AND undecided = \"22%\"" }
### INSTRUCTION Who was Silva's Partner in the match with a Score of 6–3, 7–6 (7–3)? ### INPUT CREATE TABLE table_name_64 (partner VARCHAR, score VARCHAR) ### OUTPUT SELECT partner FROM table_name_64 WHERE score = "6–3, 7–6 (7–3)"
{ "input": "CREATE TABLE table_name_64 (partner VARCHAR, score VARCHAR)", "instruction": "Who was Silva's Partner in the match with a Score of 6–3, 7–6 (7–3)?", "output": "SELECT partner FROM table_name_64 WHERE score = \"6–3, 7–6 (7–3)\"" }
### INSTRUCTION What is the average Year that has the Group, Logie Award, the Award, Most Outstanding Actor, and the Result, nominated? ### INPUT CREATE TABLE table_name_79 (year INTEGER, result VARCHAR, group VARCHAR, award VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_79 WHERE group = "logie award" AND award = "most outstanding actor" AND result = "nominated"
{ "input": "CREATE TABLE table_name_79 (year INTEGER, result VARCHAR, group VARCHAR, award VARCHAR)", "instruction": "What is the average Year that has the Group, Logie Award, the Award, Most Outstanding Actor, and the Result, nominated?", "output": "SELECT AVG(year) FROM table_name_79 WHERE group = \"logie award\" AND award = \"most outstanding actor\" AND result = \"nominated\"" }
### INSTRUCTION how many original airdate with writer(s) being becky hartman edwards and director being adam nimoy ### INPUT CREATE TABLE table_13956521_2 (original_airdate VARCHAR, writer_s_ VARCHAR, director VARCHAR) ### OUTPUT SELECT COUNT(original_airdate) FROM table_13956521_2 WHERE writer_s_ = "Becky Hartman Edwards" AND director = "Adam Nimoy"
{ "input": "CREATE TABLE table_13956521_2 (original_airdate VARCHAR, writer_s_ VARCHAR, director VARCHAR)", "instruction": " how many original airdate with writer(s) being becky hartman edwards and director being adam nimoy", "output": "SELECT COUNT(original_airdate) FROM table_13956521_2 WHERE writer_s_ = \"Becky Hartman Edwards\" AND director = \"Adam Nimoy\"" }
### INSTRUCTION What was the score in the episode with john barrowman and vic reeves on sean's team? ### INPUT CREATE TABLE table_23292220_4 (scores VARCHAR, seans_team VARCHAR) ### OUTPUT SELECT scores FROM table_23292220_4 WHERE seans_team = "John Barrowman and Vic Reeves"
{ "input": "CREATE TABLE table_23292220_4 (scores VARCHAR, seans_team VARCHAR)", "instruction": "What was the score in the episode with john barrowman and vic reeves on sean's team?", "output": "SELECT scores FROM table_23292220_4 WHERE seans_team = \"John Barrowman and Vic Reeves\"" }
### INSTRUCTION How many branches where have more than average number of memberships are there? ### INPUT CREATE TABLE branch (membership_amount INTEGER) ### OUTPUT SELECT COUNT(*) FROM branch WHERE membership_amount > (SELECT AVG(membership_amount) FROM branch)
{ "input": "CREATE TABLE branch (membership_amount INTEGER)", "instruction": "How many branches where have more than average number of memberships are there?", "output": "SELECT COUNT(*) FROM branch WHERE membership_amount > (SELECT AVG(membership_amount) FROM branch)" }
### INSTRUCTION What is the highest games from a game with points less than 4, drawn of 1 and a lost less than 6? ### INPUT CREATE TABLE table_name_58 (games INTEGER, lost VARCHAR, points VARCHAR, drawn VARCHAR) ### OUTPUT SELECT MAX(games) FROM table_name_58 WHERE points < 4 AND drawn = 1 AND lost < 6
{ "input": "CREATE TABLE table_name_58 (games INTEGER, lost VARCHAR, points VARCHAR, drawn VARCHAR)", "instruction": "What is the highest games from a game with points less than 4, drawn of 1 and a lost less than 6?", "output": "SELECT MAX(games) FROM table_name_58 WHERE points < 4 AND drawn = 1 AND lost < 6" }
### INSTRUCTION How many assets does each maintenance contract contain? List the number and the contract id. ### INPUT CREATE TABLE Assets (maintenance_contract_id VARCHAR); CREATE TABLE Maintenance_Contracts (maintenance_contract_id VARCHAR) ### OUTPUT SELECT COUNT(*), T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id
{ "input": "CREATE TABLE Assets (maintenance_contract_id VARCHAR); CREATE TABLE Maintenance_Contracts (maintenance_contract_id VARCHAR)", "instruction": "How many assets does each maintenance contract contain? List the number and the contract id.", "output": "SELECT COUNT(*), T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id" }
### INSTRUCTION How many Bangladeshis were admitted when 714 Nepalis and 13,575 Pakistanis were admitted? ### INPUT CREATE TABLE table_name_23 (bangladeshis_admitted INTEGER, nepalis_admitted VARCHAR, pakistanis_admitted VARCHAR) ### OUTPUT SELECT AVG(bangladeshis_admitted) FROM table_name_23 WHERE nepalis_admitted = 714 AND pakistanis_admitted > 13 OFFSET 575
{ "input": "CREATE TABLE table_name_23 (bangladeshis_admitted INTEGER, nepalis_admitted VARCHAR, pakistanis_admitted VARCHAR)", "instruction": "How many Bangladeshis were admitted when 714 Nepalis and 13,575 Pakistanis were admitted?", "output": "SELECT AVG(bangladeshis_admitted) FROM table_name_23 WHERE nepalis_admitted = 714 AND pakistanis_admitted > 13 OFFSET 575" }
### INSTRUCTION What was the score for Groves High School when the high assist was Giovanni Riley (9)? ### INPUT CREATE TABLE table_name_21 (score VARCHAR, location_attendance VARCHAR, high_assists VARCHAR) ### OUTPUT SELECT score FROM table_name_21 WHERE location_attendance = "groves high school" AND high_assists = "giovanni riley (9)"
{ "input": "CREATE TABLE table_name_21 (score VARCHAR, location_attendance VARCHAR, high_assists VARCHAR)", "instruction": "What was the score for Groves High School when the high assist was Giovanni Riley (9)?", "output": "SELECT score FROM table_name_21 WHERE location_attendance = \"groves high school\" AND high_assists = \"giovanni riley (9)\"" }
### INSTRUCTION What is Result, when Director is Veljko Bulajić category:articles with hcards, and when Original title is Sarajevski Atentat? ### INPUT CREATE TABLE table_name_46 (result VARCHAR, director VARCHAR, original_title VARCHAR) ### OUTPUT SELECT result FROM table_name_46 WHERE director = "veljko bulajić category:articles with hcards" AND original_title = "sarajevski atentat"
{ "input": "CREATE TABLE table_name_46 (result VARCHAR, director VARCHAR, original_title VARCHAR)", "instruction": "What is Result, when Director is Veljko Bulajić category:articles with hcards, and when Original title is Sarajevski Atentat?", "output": "SELECT result FROM table_name_46 WHERE director = \"veljko bulajić category:articles with hcards\" AND original_title = \"sarajevski atentat\"" }
### INSTRUCTION who are all the players for mission viejo high school ### INPUT CREATE TABLE table_11677691_12 (player VARCHAR, school VARCHAR) ### OUTPUT SELECT player FROM table_11677691_12 WHERE school = "Mission Viejo High school"
{ "input": "CREATE TABLE table_11677691_12 (player VARCHAR, school VARCHAR)", "instruction": "who are all the players for mission viejo high school", "output": "SELECT player FROM table_11677691_12 WHERE school = \"Mission Viejo High school\"" }
### INSTRUCTION What is the type of the Leeds United source, winter transfer window and moving from Northampton town? ### INPUT CREATE TABLE table_name_65 (type VARCHAR, moving_from VARCHAR, source VARCHAR, transfer_window VARCHAR) ### OUTPUT SELECT type FROM table_name_65 WHERE source = "leeds united" AND transfer_window = "winter" AND moving_from = "northampton town"
{ "input": "CREATE TABLE table_name_65 (type VARCHAR, moving_from VARCHAR, source VARCHAR, transfer_window VARCHAR)", "instruction": "What is the type of the Leeds United source, winter transfer window and moving from Northampton town?", "output": "SELECT type FROM table_name_65 WHERE source = \"leeds united\" AND transfer_window = \"winter\" AND moving_from = \"northampton town\"" }
### INSTRUCTION Achievement of m (ft), and a Type of mi-10r, and a Pilot of v.p. koloshenko, and a Date of 28 may 1965 had what record description? ### INPUT CREATE TABLE table_name_96 (record_description VARCHAR, date VARCHAR, pilot VARCHAR, achievement VARCHAR, type VARCHAR) ### OUTPUT SELECT record_description FROM table_name_96 WHERE achievement = "m (ft)" AND type = "mi-10r" AND pilot = "v.p. koloshenko" AND date = "28 may 1965"
{ "input": "CREATE TABLE table_name_96 (record_description VARCHAR, date VARCHAR, pilot VARCHAR, achievement VARCHAR, type VARCHAR)", "instruction": "Achievement of m (ft), and a Type of mi-10r, and a Pilot of v.p. koloshenko, and a Date of 28 may 1965 had what record description?", "output": "SELECT record_description FROM table_name_96 WHERE achievement = \"m (ft)\" AND type = \"mi-10r\" AND pilot = \"v.p. koloshenko\" AND date = \"28 may 1965\"" }
### INSTRUCTION What is the color code with a temperature classification of ordinary? ### INPUT CREATE TABLE table_name_67 (color_code__with_fusible_link_ VARCHAR, temperature_classification VARCHAR) ### OUTPUT SELECT color_code__with_fusible_link_ FROM table_name_67 WHERE temperature_classification = "ordinary"
{ "input": "CREATE TABLE table_name_67 (color_code__with_fusible_link_ VARCHAR, temperature_classification VARCHAR)", "instruction": "What is the color code with a temperature classification of ordinary?", "output": "SELECT color_code__with_fusible_link_ FROM table_name_67 WHERE temperature_classification = \"ordinary\"" }
### INSTRUCTION What year before 1980 has is the highest Inflation Index (2000=100)? ### INPUT CREATE TABLE table_name_34 (year INTEGER, inflation_index__2000 INTEGER) ### OUTPUT SELECT MAX(inflation_index__2000) = 100 AS _ FROM table_name_34 WHERE year < 1980
{ "input": "CREATE TABLE table_name_34 (year INTEGER, inflation_index__2000 INTEGER)", "instruction": "What year before 1980 has is the highest Inflation Index (2000=100)?", "output": "SELECT MAX(inflation_index__2000) = 100 AS _ FROM table_name_34 WHERE year < 1980" }
### INSTRUCTION What is Fonsi Nieto's average grid when he's riding a Suzuki GSX-R1000? ### INPUT CREATE TABLE table_name_25 (grid INTEGER, bike VARCHAR, rider VARCHAR) ### OUTPUT SELECT AVG(grid) FROM table_name_25 WHERE bike = "suzuki gsx-r1000" AND rider = "fonsi nieto"
{ "input": "CREATE TABLE table_name_25 (grid INTEGER, bike VARCHAR, rider VARCHAR)", "instruction": "What is Fonsi Nieto's average grid when he's riding a Suzuki GSX-R1000?", "output": "SELECT AVG(grid) FROM table_name_25 WHERE bike = \"suzuki gsx-r1000\" AND rider = \"fonsi nieto\"" }
### INSTRUCTION List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS. ### INPUT CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR) ### OUTPUT SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS"
{ "input": "CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR)", "instruction": "List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.", "output": "SELECT document_id FROM Documents WHERE document_status_code = \"done\" AND document_type_code = \"Paper\" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\"" }
### INSTRUCTION Name the original title for not nominated result with report on death ### INPUT CREATE TABLE table_20963074_1 (original_title VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR) ### OUTPUT SELECT original_title FROM table_20963074_1 WHERE result = "Not Nominated" AND film_title_used_in_nomination = "Report on Death"
{ "input": "CREATE TABLE table_20963074_1 (original_title VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR)", "instruction": "Name the original title for not nominated result with report on death", "output": "SELECT original_title FROM table_20963074_1 WHERE result = \"Not Nominated\" AND film_title_used_in_nomination = \"Report on Death\"" }
### INSTRUCTION On November 14, 2007, how many different Republican: Jeff Sessions are there? ### INPUT CREATE TABLE table_16751596_12 (republican VARCHAR, dates_administered VARCHAR) ### OUTPUT SELECT COUNT(republican) AS :_jeff_sessions FROM table_16751596_12 WHERE dates_administered = "November 14, 2007"
{ "input": "CREATE TABLE table_16751596_12 (republican VARCHAR, dates_administered VARCHAR)", "instruction": "On November 14, 2007, how many different Republican: Jeff Sessions are there?", "output": "SELECT COUNT(republican) AS :_jeff_sessions FROM table_16751596_12 WHERE dates_administered = \"November 14, 2007\"" }
### INSTRUCTION What was the highest attendance when the opponent was the Indians and the record was 13-4? ### INPUT CREATE TABLE table_name_99 (attendance INTEGER, opponent VARCHAR, record VARCHAR) ### OUTPUT SELECT MAX(attendance) FROM table_name_99 WHERE opponent = "indians" AND record = "13-4"
{ "input": "CREATE TABLE table_name_99 (attendance INTEGER, opponent VARCHAR, record VARCHAR)", "instruction": "What was the highest attendance when the opponent was the Indians and the record was 13-4?", "output": "SELECT MAX(attendance) FROM table_name_99 WHERE opponent = \"indians\" AND record = \"13-4\"" }
### INSTRUCTION What player has over 1 first apperance and over 32 first team goals? ### INPUT CREATE TABLE table_name_97 (player VARCHAR, first_team_appearances VARCHAR, first_team_goals VARCHAR) ### OUTPUT SELECT player FROM table_name_97 WHERE first_team_appearances > 1 AND first_team_goals = 32
{ "input": "CREATE TABLE table_name_97 (player VARCHAR, first_team_appearances VARCHAR, first_team_goals VARCHAR)", "instruction": "What player has over 1 first apperance and over 32 first team goals?", "output": "SELECT player FROM table_name_97 WHERE first_team_appearances > 1 AND first_team_goals = 32" }
### INSTRUCTION What is the round when Grand Slam was the Davis Cup? ### INPUT CREATE TABLE table_name_92 (round VARCHAR, grand_slam VARCHAR) ### OUTPUT SELECT round FROM table_name_92 WHERE grand_slam = "davis cup"
{ "input": "CREATE TABLE table_name_92 (round VARCHAR, grand_slam VARCHAR)", "instruction": "What is the round when Grand Slam was the Davis Cup?", "output": "SELECT round FROM table_name_92 WHERE grand_slam = \"davis cup\"" }
### INSTRUCTION What is the name of the national final main host when the semi final/heat host shows internal selection in 2011? ### INPUT CREATE TABLE table_name_83 (national_final_main_host VARCHAR, semi_final_heat_host VARCHAR, year_s_ VARCHAR) ### OUTPUT SELECT national_final_main_host FROM table_name_83 WHERE semi_final_heat_host = "internal selection" AND year_s_ = "2011"
{ "input": "CREATE TABLE table_name_83 (national_final_main_host VARCHAR, semi_final_heat_host VARCHAR, year_s_ VARCHAR)", "instruction": "What is the name of the national final main host when the semi final/heat host shows internal selection in 2011?", "output": "SELECT national_final_main_host FROM table_name_83 WHERE semi_final_heat_host = \"internal selection\" AND year_s_ = \"2011\"" }
### INSTRUCTION How many miles were driven with the average speed at 116.81? ### INPUT CREATE TABLE table_2175858_1 (miles__km_ VARCHAR, average_speed__mph_ VARCHAR) ### OUTPUT SELECT miles__km_ FROM table_2175858_1 WHERE average_speed__mph_ = "116.81"
{ "input": "CREATE TABLE table_2175858_1 (miles__km_ VARCHAR, average_speed__mph_ VARCHAR)", "instruction": "How many miles were driven with the average speed at 116.81?", "output": "SELECT miles__km_ FROM table_2175858_1 WHERE average_speed__mph_ = \"116.81\"" }
### INSTRUCTION Tell me the Host interface for digital of dvb-t (cx22702) and model of nova-t pci (90002) ### INPUT CREATE TABLE table_name_34 (host_interface VARCHAR, digital VARCHAR, model VARCHAR) ### OUTPUT SELECT host_interface FROM table_name_34 WHERE digital = "dvb-t (cx22702)" AND model = "nova-t pci (90002)"
{ "input": "CREATE TABLE table_name_34 (host_interface VARCHAR, digital VARCHAR, model VARCHAR)", "instruction": "Tell me the Host interface for digital of dvb-t (cx22702) and model of nova-t pci (90002)", "output": "SELECT host_interface FROM table_name_34 WHERE digital = \"dvb-t (cx22702)\" AND model = \"nova-t pci (90002)\"" }
### INSTRUCTION Show the names of companies and of employees. ### INPUT CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) ### OUTPUT SELECT T3.Name, T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID
{ "input": "CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)", "instruction": "Show the names of companies and of employees.", "output": "SELECT T3.Name, T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID" }
### INSTRUCTION What was the Outcome against Opponent in the Final Carlos Kirmayr? ### INPUT CREATE TABLE table_name_41 (outcome VARCHAR, opponent_in_the_final VARCHAR) ### OUTPUT SELECT outcome FROM table_name_41 WHERE opponent_in_the_final = "carlos kirmayr"
{ "input": "CREATE TABLE table_name_41 (outcome VARCHAR, opponent_in_the_final VARCHAR)", "instruction": "What was the Outcome against Opponent in the Final Carlos Kirmayr?", "output": "SELECT outcome FROM table_name_41 WHERE opponent_in_the_final = \"carlos kirmayr\"" }
### INSTRUCTION What year did the winnings equal $281,945? ### INPUT CREATE TABLE table_2182562_1 (year VARCHAR, winnings VARCHAR) ### OUTPUT SELECT year FROM table_2182562_1 WHERE winnings = "$281,945"
{ "input": "CREATE TABLE table_2182562_1 (year VARCHAR, winnings VARCHAR)", "instruction": "What year did the winnings equal $281,945?", "output": "SELECT year FROM table_2182562_1 WHERE winnings = \"$281,945\"" }
### INSTRUCTION Which Byes have a Lexton Plains of skipton? ### INPUT CREATE TABLE table_name_87 (byes INTEGER, lexton_plains VARCHAR) ### OUTPUT SELECT MAX(byes) FROM table_name_87 WHERE lexton_plains = "skipton"
{ "input": "CREATE TABLE table_name_87 (byes INTEGER, lexton_plains VARCHAR)", "instruction": "Which Byes have a Lexton Plains of skipton?", "output": "SELECT MAX(byes) FROM table_name_87 WHERE lexton_plains = \"skipton\"" }
### INSTRUCTION What was the title of the episode that aired February 9, 1979? ### INPUT CREATE TABLE table_2343740_1 (title VARCHAR, original_air_date VARCHAR) ### OUTPUT SELECT title FROM table_2343740_1 WHERE original_air_date = "February 9, 1979"
{ "input": "CREATE TABLE table_2343740_1 (title VARCHAR, original_air_date VARCHAR)", "instruction": "What was the title of the episode that aired February 9, 1979?", "output": "SELECT title FROM table_2343740_1 WHERE original_air_date = \"February 9, 1979\"" }
### INSTRUCTION How many ranks had 367 matches and more than 216 goals? ### INPUT CREATE TABLE table_name_94 (rank INTEGER, matches VARCHAR, goals VARCHAR) ### OUTPUT SELECT SUM(rank) FROM table_name_94 WHERE matches = 367 AND goals > 216
{ "input": "CREATE TABLE table_name_94 (rank INTEGER, matches VARCHAR, goals VARCHAR)", "instruction": "How many ranks had 367 matches and more than 216 goals?", "output": "SELECT SUM(rank) FROM table_name_94 WHERE matches = 367 AND goals > 216" }
### INSTRUCTION What is the average sales for the company with market value of 204.9bil and profits under 20.6bil? ### INPUT CREATE TABLE table_name_18 (sales__billion_ INTEGER, market_value__billion_$_ VARCHAR, profits__billion_$_ VARCHAR) ### OUTPUT SELECT AVG(sales__billion_) AS $_ FROM table_name_18 WHERE market_value__billion_$_ = 204.9 AND profits__billion_$_ < 20.6
{ "input": "CREATE TABLE table_name_18 (sales__billion_ INTEGER, market_value__billion_$_ VARCHAR, profits__billion_$_ VARCHAR)", "instruction": "What is the average sales for the company with market value of 204.9bil and profits under 20.6bil?", "output": "SELECT AVG(sales__billion_) AS $_ FROM table_name_18 WHERE market_value__billion_$_ = 204.9 AND profits__billion_$_ < 20.6" }
### INSTRUCTION What was the score for United States when the player was Mike Reid and the To par was e? ### INPUT CREATE TABLE table_name_30 (score VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR) ### OUTPUT SELECT score FROM table_name_30 WHERE country = "united states" AND to_par = "e" AND player = "mike reid"
{ "input": "CREATE TABLE table_name_30 (score VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR)", "instruction": "What was the score for United States when the player was Mike Reid and the To par was e?", "output": "SELECT score FROM table_name_30 WHERE country = \"united states\" AND to_par = \"e\" AND player = \"mike reid\"" }
### INSTRUCTION What is the number of ties when Altrincham is the home team? ### INPUT CREATE TABLE table_name_88 (tie_no VARCHAR, home_team VARCHAR) ### OUTPUT SELECT tie_no FROM table_name_88 WHERE home_team = "altrincham"
{ "input": "CREATE TABLE table_name_88 (tie_no VARCHAR, home_team VARCHAR)", "instruction": "What is the number of ties when Altrincham is the home team?", "output": "SELECT tie_no FROM table_name_88 WHERE home_team = \"altrincham\"" }
### INSTRUCTION What season began on december 5, 1953? ### INPUT CREATE TABLE table_15824796_3 (season__number INTEGER, original_air_date VARCHAR) ### OUTPUT SELECT MAX(season__number) FROM table_15824796_3 WHERE original_air_date = "December 5, 1953"
{ "input": "CREATE TABLE table_15824796_3 (season__number INTEGER, original_air_date VARCHAR)", "instruction": "What season began on december 5, 1953?", "output": "SELECT MAX(season__number) FROM table_15824796_3 WHERE original_air_date = \"December 5, 1953\"" }
### INSTRUCTION What is the description of the type of the company who concluded its contracts most recently? ### INPUT CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR, contract_end_date VARCHAR); CREATE TABLE Third_Party_Companies (company_name VARCHAR, company_id VARCHAR, company_type_code VARCHAR); CREATE TABLE Ref_Company_Types (company_type_code VARCHAR) ### OUTPUT SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id JOIN Ref_Company_Types AS T3 ON T1.company_type_code = T3.company_type_code ORDER BY T2.contract_end_date DESC LIMIT 1
{ "input": "CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR, contract_end_date VARCHAR); CREATE TABLE Third_Party_Companies (company_name VARCHAR, company_id VARCHAR, company_type_code VARCHAR); CREATE TABLE Ref_Company_Types (company_type_code VARCHAR)", "instruction": "What is the description of the type of the company who concluded its contracts most recently?", "output": "SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id JOIN Ref_Company_Types AS T3 ON T1.company_type_code = T3.company_type_code ORDER BY T2.contract_end_date DESC LIMIT 1" }
### INSTRUCTION Name the total number of revenue for italy with team of internazionale with operating income less than 27 ### INPUT CREATE TABLE table_name_21 (revenue__ VARCHAR, operating_income__$m_ VARCHAR, country VARCHAR, team VARCHAR) ### OUTPUT SELECT COUNT(revenue__) AS $m_ FROM table_name_21 WHERE country = "italy" AND team = "internazionale" AND operating_income__$m_ < 27
{ "input": "CREATE TABLE table_name_21 (revenue__ VARCHAR, operating_income__$m_ VARCHAR, country VARCHAR, team VARCHAR)", "instruction": "Name the total number of revenue for italy with team of internazionale with operating income less than 27", "output": "SELECT COUNT(revenue__) AS $m_ FROM table_name_21 WHERE country = \"italy\" AND team = \"internazionale\" AND operating_income__$m_ < 27" }
### INSTRUCTION Name the Years which have Transmission of digital satellite, an On demand of no, and a Free or pay of free + ppv? ### INPUT CREATE TABLE table_name_16 (years VARCHAR, free_or_pay VARCHAR, transmission VARCHAR, on_demand VARCHAR) ### OUTPUT SELECT years FROM table_name_16 WHERE transmission = "digital satellite" AND on_demand = "no" AND free_or_pay = "free + ppv"
{ "input": "CREATE TABLE table_name_16 (years VARCHAR, free_or_pay VARCHAR, transmission VARCHAR, on_demand VARCHAR)", "instruction": "Name the Years which have Transmission of digital satellite, an On demand of no, and a Free or pay of free + ppv?", "output": "SELECT years FROM table_name_16 WHERE transmission = \"digital satellite\" AND on_demand = \"no\" AND free_or_pay = \"free + ppv\"" }