text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What is the last episode in the season that had 3.91 million viewers in the US? ### INPUT CREATE TABLE table_29154676_1 (season_no INTEGER, us_viewers__millions_ VARCHAR) ### OUTPUT SELECT MIN(season_no) FROM table_29154676_1 WHERE us_viewers__millions_ = "3.91"
{ "input": "CREATE TABLE table_29154676_1 (season_no INTEGER, us_viewers__millions_ VARCHAR)", "instruction": "What is the last episode in the season that had 3.91 million viewers in the US?", "output": "SELECT MIN(season_no) FROM table_29154676_1 WHERE us_viewers__millions_ = \"3.91\"" }
### INSTRUCTION What Nation of citizenship has a stock car vehicle with a year of 1999? ### INPUT CREATE TABLE table_name_78 (nation_of_citizenship VARCHAR, type_of_vehicle VARCHAR, year VARCHAR) ### OUTPUT SELECT nation_of_citizenship FROM table_name_78 WHERE type_of_vehicle = "stock car" AND year = 1999
{ "input": "CREATE TABLE table_name_78 (nation_of_citizenship VARCHAR, type_of_vehicle VARCHAR, year VARCHAR)", "instruction": "What Nation of citizenship has a stock car vehicle with a year of 1999?", "output": "SELECT nation_of_citizenship FROM table_name_78 WHERE type_of_vehicle = \"stock car\" AND year = 1999" }
### INSTRUCTION Name the least number of seasons in top division with position in 2012-13 of 001 1st ### INPUT CREATE TABLE table_name_46 (number_of_seasons_in_top_division INTEGER, position_in_2012_13 VARCHAR) ### OUTPUT SELECT MIN(number_of_seasons_in_top_division) FROM table_name_46 WHERE position_in_2012_13 = "001 1st"
{ "input": "CREATE TABLE table_name_46 (number_of_seasons_in_top_division INTEGER, position_in_2012_13 VARCHAR)", "instruction": "Name the least number of seasons in top division with position in 2012-13 of 001 1st", "output": "SELECT MIN(number_of_seasons_in_top_division) FROM table_name_46 WHERE position_in_2012_13 = \"001 1st\"" }
### INSTRUCTION Who won the mixed restricted when Tomasz Rzeszotko won the mixed veteran and Karina Le Fevre won the U21 womens? ### INPUT CREATE TABLE table_28211674_3 (mixed_restricted VARCHAR, mixed_veteran VARCHAR, u21_womens VARCHAR) ### OUTPUT SELECT mixed_restricted FROM table_28211674_3 WHERE mixed_veteran = "Tomasz Rzeszotko" AND u21_womens = "Karina Le Fevre"
{ "input": "CREATE TABLE table_28211674_3 (mixed_restricted VARCHAR, mixed_veteran VARCHAR, u21_womens VARCHAR)", "instruction": "Who won the mixed restricted when Tomasz Rzeszotko won the mixed veteran and Karina Le Fevre won the U21 womens?", "output": "SELECT mixed_restricted FROM table_28211674_3 WHERE mixed_veteran = \"Tomasz Rzeszotko\" AND u21_womens = \"Karina Le Fevre\"" }
### INSTRUCTION What game, played on October 17 in front of 49,347 fans, had the lowest score? ### INPUT CREATE TABLE table_name_93 (game INTEGER, date VARCHAR, attendance VARCHAR) ### OUTPUT SELECT MIN(game) FROM table_name_93 WHERE date = "october 17" AND attendance > 49 OFFSET 347
{ "input": "CREATE TABLE table_name_93 (game INTEGER, date VARCHAR, attendance VARCHAR)", "instruction": "What game, played on October 17 in front of 49,347 fans, had the lowest score?", "output": "SELECT MIN(game) FROM table_name_93 WHERE date = \"october 17\" AND attendance > 49 OFFSET 347" }
### INSTRUCTION What is the land area of the RCM having a density of 21.1? ### INPUT CREATE TABLE table_214920_1 (land_area VARCHAR, density__pop_per_km2_ VARCHAR) ### OUTPUT SELECT land_area FROM table_214920_1 WHERE density__pop_per_km2_ = "21.1"
{ "input": "CREATE TABLE table_214920_1 (land_area VARCHAR, density__pop_per_km2_ VARCHAR)", "instruction": "What is the land area of the RCM having a density of 21.1?", "output": "SELECT land_area FROM table_214920_1 WHERE density__pop_per_km2_ = \"21.1\"" }
### INSTRUCTION How many years have an Award of venice film festival, and a Title of lust, caution? ### INPUT CREATE TABLE table_name_73 (year VARCHAR, award VARCHAR, title VARCHAR) ### OUTPUT SELECT COUNT(year) FROM table_name_73 WHERE award = "venice film festival" AND title = "lust, caution"
{ "input": "CREATE TABLE table_name_73 (year VARCHAR, award VARCHAR, title VARCHAR)", "instruction": "How many years have an Award of venice film festival, and a Title of lust, caution?", "output": "SELECT COUNT(year) FROM table_name_73 WHERE award = \"venice film festival\" AND title = \"lust, caution\"" }
### INSTRUCTION Which municipalities located in the county of Finnmark have populations bigger than 6187.0? ### INPUT CREATE TABLE table_157826_1 (municipality VARCHAR, county VARCHAR, population VARCHAR) ### OUTPUT SELECT municipality FROM table_157826_1 WHERE county = "Finnmark" AND population > 6187.0
{ "input": "CREATE TABLE table_157826_1 (municipality VARCHAR, county VARCHAR, population VARCHAR)", "instruction": "Which municipalities located in the county of Finnmark have populations bigger than 6187.0?", "output": "SELECT municipality FROM table_157826_1 WHERE county = \"Finnmark\" AND population > 6187.0" }
### INSTRUCTION What is the record for January 19? ### INPUT CREATE TABLE table_name_37 (record VARCHAR, date VARCHAR) ### OUTPUT SELECT record FROM table_name_37 WHERE date = "january 19"
{ "input": "CREATE TABLE table_name_37 (record VARCHAR, date VARCHAR)", "instruction": "What is the record for January 19?", "output": "SELECT record FROM table_name_37 WHERE date = \"january 19\"" }
### INSTRUCTION What is the Score with a Home of colorado, and a Date with may 11? ### INPUT CREATE TABLE table_name_72 (score VARCHAR, home VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_72 WHERE home = "colorado" AND date = "may 11"
{ "input": "CREATE TABLE table_name_72 (score VARCHAR, home VARCHAR, date VARCHAR)", "instruction": "What is the Score with a Home of colorado, and a Date with may 11?", "output": "SELECT score FROM table_name_72 WHERE home = \"colorado\" AND date = \"may 11\"" }
### INSTRUCTION What is Player, when To Par is "+1", when Country is "United States", and when Score is "71-70=141"? ### INPUT CREATE TABLE table_name_32 (player VARCHAR, to_par VARCHAR, country VARCHAR, score VARCHAR) ### OUTPUT SELECT player FROM table_name_32 WHERE to_par = "+1" AND country = "united states" AND score = 71 - 70 = 141
{ "input": "CREATE TABLE table_name_32 (player VARCHAR, to_par VARCHAR, country VARCHAR, score VARCHAR)", "instruction": "What is Player, when To Par is \"+1\", when Country is \"United States\", and when Score is \"71-70=141\"?", "output": "SELECT player FROM table_name_32 WHERE to_par = \"+1\" AND country = \"united states\" AND score = 71 - 70 = 141" }
### INSTRUCTION What is the highest rank of an athlete from Switzerland in a heat larger than 3? ### INPUT CREATE TABLE table_name_54 (rank INTEGER, heat VARCHAR, nationality VARCHAR) ### OUTPUT SELECT MAX(rank) FROM table_name_54 WHERE heat > 3 AND nationality = "switzerland"
{ "input": "CREATE TABLE table_name_54 (rank INTEGER, heat VARCHAR, nationality VARCHAR)", "instruction": "What is the highest rank of an athlete from Switzerland in a heat larger than 3?", "output": "SELECT MAX(rank) FROM table_name_54 WHERE heat > 3 AND nationality = \"switzerland\"" }
### INSTRUCTION Show the customer ids and firstname without a credit card. ### INPUT CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, card_type_code VARCHAR) ### OUTPUT SELECT customer_id, customer_first_name FROM Customers EXCEPT SELECT T1.customer_id, T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = "Credit"
{ "input": "CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, card_type_code VARCHAR)", "instruction": "Show the customer ids and firstname without a credit card.", "output": "SELECT customer_id, customer_first_name FROM Customers EXCEPT SELECT T1.customer_id, T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = \"Credit\"" }
### INSTRUCTION What is the Place 2 Player? ### INPUT CREATE TABLE table_name_1 (player VARCHAR, place VARCHAR) ### OUTPUT SELECT player FROM table_name_1 WHERE place = "2"
{ "input": "CREATE TABLE table_name_1 (player VARCHAR, place VARCHAR)", "instruction": "What is the Place 2 Player?", "output": "SELECT player FROM table_name_1 WHERE place = \"2\"" }
### INSTRUCTION What is the Tie number for the match where Dartford was the hone team? ### INPUT CREATE TABLE table_name_31 (tie_no VARCHAR, home_team VARCHAR) ### OUTPUT SELECT tie_no FROM table_name_31 WHERE home_team = "dartford"
{ "input": "CREATE TABLE table_name_31 (tie_no VARCHAR, home_team VARCHAR)", "instruction": "What is the Tie number for the match where Dartford was the hone team?", "output": "SELECT tie_no FROM table_name_31 WHERE home_team = \"dartford\"" }
### INSTRUCTION Name the region 4 for the complete fifth series ### INPUT CREATE TABLE table_1337525_1 (region_4 VARCHAR, complete_series VARCHAR) ### OUTPUT SELECT region_4 FROM table_1337525_1 WHERE complete_series = "The Complete Fifth Series"
{ "input": "CREATE TABLE table_1337525_1 (region_4 VARCHAR, complete_series VARCHAR)", "instruction": "Name the region 4 for the complete fifth series", "output": "SELECT region_4 FROM table_1337525_1 WHERE complete_series = \"The Complete Fifth Series\"" }
### INSTRUCTION What was the nominated film title of শ্যামল ছায়া (shyamol chhaya)? ### INPUT CREATE TABLE table_17156199_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) ### OUTPUT SELECT film_title_used_in_nomination FROM table_17156199_1 WHERE original_title = "শ্যামল ছায়া (Shyamol Chhaya)"
{ "input": "CREATE TABLE table_17156199_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)", "instruction": "What was the nominated film title of শ্যামল ছায়া (shyamol chhaya)?", "output": "SELECT film_title_used_in_nomination FROM table_17156199_1 WHERE original_title = \"শ্যামল ছায়া (Shyamol Chhaya)\"" }
### INSTRUCTION List the Episode of all TV series showed on TV Channel with series name "Sky Radio". ### INPUT CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR); CREATE TABLE TV_series (Episode VARCHAR, Channel VARCHAR) ### OUTPUT SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio"
{ "input": "CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR); CREATE TABLE TV_series (Episode VARCHAR, Channel VARCHAR)", "instruction": "List the Episode of all TV series showed on TV Channel with series name \"Sky Radio\".", "output": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\"" }
### INSTRUCTION Which Name has a Bullett of 10.57 (.416) and a Base of 14.96 (.589)? ### INPUT CREATE TABLE table_name_86 (name VARCHAR, bullet VARCHAR, base VARCHAR) ### OUTPUT SELECT name FROM table_name_86 WHERE bullet = "10.57 (.416)" AND base = "14.96 (.589)"
{ "input": "CREATE TABLE table_name_86 (name VARCHAR, bullet VARCHAR, base VARCHAR)", "instruction": "Which Name has a Bullett of 10.57 (.416) and a Base of 14.96 (.589)?", "output": "SELECT name FROM table_name_86 WHERE bullet = \"10.57 (.416)\" AND base = \"14.96 (.589)\"" }
### INSTRUCTION Name the Rider which has Laps smaller than 11 and a Bike of kawasaki zx-10r, and a Grid of 8? ### INPUT CREATE TABLE table_name_98 (rider VARCHAR, grid VARCHAR, laps VARCHAR, bike VARCHAR) ### OUTPUT SELECT rider FROM table_name_98 WHERE laps < 11 AND bike = "kawasaki zx-10r" AND grid = 8
{ "input": "CREATE TABLE table_name_98 (rider VARCHAR, grid VARCHAR, laps VARCHAR, bike VARCHAR)", "instruction": "Name the Rider which has Laps smaller than 11 and a Bike of kawasaki zx-10r, and a Grid of 8?", "output": "SELECT rider FROM table_name_98 WHERE laps < 11 AND bike = \"kawasaki zx-10r\" AND grid = 8" }
### INSTRUCTION what will be the population of Europe when Northern America is 482 (4.7%)? ### INPUT CREATE TABLE table_19017269_5 (europe VARCHAR, northern_america VARCHAR) ### OUTPUT SELECT europe FROM table_19017269_5 WHERE northern_america = "482 (4.7%)"
{ "input": "CREATE TABLE table_19017269_5 (europe VARCHAR, northern_america VARCHAR)", "instruction": "what will be the population of Europe when Northern America is 482 (4.7%)?", "output": "SELECT europe FROM table_19017269_5 WHERE northern_america = \"482 (4.7%)\"" }
### INSTRUCTION What was the earliest release-year of the first charted record of Abba? ### INPUT CREATE TABLE table_name_88 (release_year_of_first_charted_record INTEGER, artist VARCHAR) ### OUTPUT SELECT MIN(release_year_of_first_charted_record) FROM table_name_88 WHERE artist = "abba"
{ "input": "CREATE TABLE table_name_88 (release_year_of_first_charted_record INTEGER, artist VARCHAR)", "instruction": "What was the earliest release-year of the first charted record of Abba?", "output": "SELECT MIN(release_year_of_first_charted_record) FROM table_name_88 WHERE artist = \"abba\"" }
### INSTRUCTION An artist of the Beatles with an issue date(s) of 19 September has what as the listed weeks on top? ### INPUT CREATE TABLE table_name_26 (weeks_on_top VARCHAR, artist VARCHAR, issue_date_s_ VARCHAR) ### OUTPUT SELECT weeks_on_top FROM table_name_26 WHERE artist = "the beatles" AND issue_date_s_ = "19 september"
{ "input": "CREATE TABLE table_name_26 (weeks_on_top VARCHAR, artist VARCHAR, issue_date_s_ VARCHAR)", "instruction": "An artist of the Beatles with an issue date(s) of 19 September has what as the listed weeks on top?", "output": "SELECT weeks_on_top FROM table_name_26 WHERE artist = \"the beatles\" AND issue_date_s_ = \"19 september\"" }
### INSTRUCTION Where did the team finish in the season when the playoff result was divisional finals. ### INPUT CREATE TABLE table_1427998_1 (regular_season VARCHAR, playoffs VARCHAR) ### OUTPUT SELECT regular_season FROM table_1427998_1 WHERE playoffs = "divisional Finals"
{ "input": "CREATE TABLE table_1427998_1 (regular_season VARCHAR, playoffs VARCHAR)", "instruction": "Where did the team finish in the season when the playoff result was divisional finals.", "output": "SELECT regular_season FROM table_1427998_1 WHERE playoffs = \"divisional Finals\"" }
### INSTRUCTION What is Date, when Matches is less than 32, and when Round is Fifth Round Proper? ### INPUT CREATE TABLE table_name_55 (date VARCHAR, matches VARCHAR, round VARCHAR) ### OUTPUT SELECT date FROM table_name_55 WHERE matches < 32 AND round = "fifth round proper"
{ "input": "CREATE TABLE table_name_55 (date VARCHAR, matches VARCHAR, round VARCHAR)", "instruction": "What is Date, when Matches is less than 32, and when Round is Fifth Round Proper?", "output": "SELECT date FROM table_name_55 WHERE matches < 32 AND round = \"fifth round proper\"" }
### INSTRUCTION Which Melbourne had a gold coast and sydney which were yes, but an adelaide that was no? ### INPUT CREATE TABLE table_name_59 (melbourne VARCHAR, sydney VARCHAR, gold_coast VARCHAR, adelaide VARCHAR) ### OUTPUT SELECT melbourne FROM table_name_59 WHERE gold_coast = "yes" AND adelaide = "no" AND sydney = "yes"
{ "input": "CREATE TABLE table_name_59 (melbourne VARCHAR, sydney VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)", "instruction": "Which Melbourne had a gold coast and sydney which were yes, but an adelaide that was no?", "output": "SELECT melbourne FROM table_name_59 WHERE gold_coast = \"yes\" AND adelaide = \"no\" AND sydney = \"yes\"" }
### INSTRUCTION What is the location when the status is in service as coaching stock? ### INPUT CREATE TABLE table_1090916_2 (location VARCHAR, status VARCHAR) ### OUTPUT SELECT location FROM table_1090916_2 WHERE status = "In service as coaching stock"
{ "input": "CREATE TABLE table_1090916_2 (location VARCHAR, status VARCHAR)", "instruction": "What is the location when the status is in service as coaching stock?", "output": "SELECT location FROM table_1090916_2 WHERE status = \"In service as coaching stock\"" }
### INSTRUCTION How many are in the Labour Party of a Fianna Fail of 3 with a total higher than 9 and more than 2 in the Green Party? ### INPUT CREATE TABLE table_name_29 (labour_party INTEGER, green_party VARCHAR, fianna_fáil VARCHAR, total VARCHAR) ### OUTPUT SELECT SUM(labour_party) FROM table_name_29 WHERE fianna_fáil = 3 AND total > 9 AND green_party > 2
{ "input": "CREATE TABLE table_name_29 (labour_party INTEGER, green_party VARCHAR, fianna_fáil VARCHAR, total VARCHAR)", "instruction": "How many are in the Labour Party of a Fianna Fail of 3 with a total higher than 9 and more than 2 in the Green Party?", "output": "SELECT SUM(labour_party) FROM table_name_29 WHERE fianna_fáil = 3 AND total > 9 AND green_party > 2" }
### INSTRUCTION Which To par has a Year(s) won of 1983? ### INPUT CREATE TABLE table_name_15 (to_par VARCHAR, year_s__won VARCHAR) ### OUTPUT SELECT to_par FROM table_name_15 WHERE year_s__won = "1983"
{ "input": "CREATE TABLE table_name_15 (to_par VARCHAR, year_s__won VARCHAR)", "instruction": "Which To par has a Year(s) won of 1983?", "output": "SELECT to_par FROM table_name_15 WHERE year_s__won = \"1983\"" }
### INSTRUCTION What was the percentage of muslims during a time where there were 614 registered mosques? ### INPUT CREATE TABLE table_1532779_1 (muslim___percentage_of_total_population_ VARCHAR, registered_mosques VARCHAR) ### OUTPUT SELECT muslim___percentage_of_total_population_ FROM table_1532779_1 WHERE registered_mosques = 614
{ "input": "CREATE TABLE table_1532779_1 (muslim___percentage_of_total_population_ VARCHAR, registered_mosques VARCHAR)", "instruction": "What was the percentage of muslims during a time where there were 614 registered mosques?", "output": "SELECT muslim___percentage_of_total_population_ FROM table_1532779_1 WHERE registered_mosques = 614" }
### INSTRUCTION How many of the Royal Waggon Train Unit were Missing while having a Killed of 0 off 0 men and a Wounded of 0 off 0 men? ### INPUT CREATE TABLE table_name_89 (missing VARCHAR, unit VARCHAR, killed VARCHAR, wounded VARCHAR) ### OUTPUT SELECT missing FROM table_name_89 WHERE killed = "0 off 0 men" AND wounded = "0 off 0 men" AND unit = "royal waggon train"
{ "input": "CREATE TABLE table_name_89 (missing VARCHAR, unit VARCHAR, killed VARCHAR, wounded VARCHAR)", "instruction": "How many of the Royal Waggon Train Unit were Missing while having a Killed of 0 off 0 men and a Wounded of 0 off 0 men?", "output": "SELECT missing FROM table_name_89 WHERE killed = \"0 off 0 men\" AND wounded = \"0 off 0 men\" AND unit = \"royal waggon train\"" }
### INSTRUCTION Which 1st Party has an Election of 1893 by-election? ### INPUT CREATE TABLE table_name_10 (election VARCHAR) ### OUTPUT SELECT 1 AS st_party FROM table_name_10 WHERE election = "1893 by-election"
{ "input": "CREATE TABLE table_name_10 (election VARCHAR)", "instruction": "Which 1st Party has an Election of 1893 by-election?", "output": "SELECT 1 AS st_party FROM table_name_10 WHERE election = \"1893 by-election\"" }
### INSTRUCTION Who received gold when the event is time trial details and silver is simon richardson great britain (gbr)? ### INPUT CREATE TABLE table_name_2 (gold VARCHAR, event VARCHAR, silver VARCHAR) ### OUTPUT SELECT gold FROM table_name_2 WHERE event = "time trial details" AND silver = "simon richardson great britain (gbr)"
{ "input": "CREATE TABLE table_name_2 (gold VARCHAR, event VARCHAR, silver VARCHAR)", "instruction": "Who received gold when the event is time trial details and silver is simon richardson great britain (gbr)?", "output": "SELECT gold FROM table_name_2 WHERE event = \"time trial details\" AND silver = \"simon richardson great britain (gbr)\"" }
### INSTRUCTION What are the highest wins with cuts smaller than 6, events of 4 and a top-5 smaller than 0? ### INPUT CREATE TABLE table_name_74 (wins INTEGER, top_5 VARCHAR, cuts_made VARCHAR, events VARCHAR) ### OUTPUT SELECT MAX(wins) FROM table_name_74 WHERE cuts_made < 6 AND events = 4 AND top_5 < 0
{ "input": "CREATE TABLE table_name_74 (wins INTEGER, top_5 VARCHAR, cuts_made VARCHAR, events VARCHAR)", "instruction": "What are the highest wins with cuts smaller than 6, events of 4 and a top-5 smaller than 0?", "output": "SELECT MAX(wins) FROM table_name_74 WHERE cuts_made < 6 AND events = 4 AND top_5 < 0" }
### INSTRUCTION What is the mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%? ### INPUT CREATE TABLE table_name_23 (evaluation_average__before_april_2009_ VARCHAR, peak_lessons_taught VARCHAR, _percentage_of_negative_evaluations VARCHAR) ### OUTPUT SELECT evaluation_average__before_april_2009_ FROM table_name_23 WHERE peak_lessons_taught < 80 AND _percentage_of_negative_evaluations = "0.8%"
{ "input": "CREATE TABLE table_name_23 (evaluation_average__before_april_2009_ VARCHAR, peak_lessons_taught VARCHAR, _percentage_of_negative_evaluations VARCHAR)", "instruction": "What is the mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%?", "output": "SELECT evaluation_average__before_april_2009_ FROM table_name_23 WHERE peak_lessons_taught < 80 AND _percentage_of_negative_evaluations = \"0.8%\"" }
### INSTRUCTION What's the team number with John Wall (9) in high assists and a w 97–83 (ot) score? ### INPUT CREATE TABLE table_27721131_2 (team VARCHAR, high_assists VARCHAR, score VARCHAR) ### OUTPUT SELECT COUNT(team) FROM table_27721131_2 WHERE high_assists = "John Wall (9)" AND score = "W 97–83 (OT)"
{ "input": "CREATE TABLE table_27721131_2 (team VARCHAR, high_assists VARCHAR, score VARCHAR)", "instruction": "What's the team number with John Wall (9) in high assists and a w 97–83 (ot) score?", "output": "SELECT COUNT(team) FROM table_27721131_2 WHERE high_assists = \"John Wall (9)\" AND score = \"W 97–83 (OT)\"" }
### INSTRUCTION Which party does the incumbent Mathias Morris belong to? ### INPUT CREATE TABLE table_2668169_2 (party VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT party FROM table_2668169_2 WHERE incumbent = "Mathias Morris"
{ "input": "CREATE TABLE table_2668169_2 (party VARCHAR, incumbent VARCHAR)", "instruction": "Which party does the incumbent Mathias Morris belong to?", "output": "SELECT party FROM table_2668169_2 WHERE incumbent = \"Mathias Morris\"" }
### INSTRUCTION Which place is Andy Bean from the United States? ### INPUT CREATE TABLE table_name_50 (place VARCHAR, country VARCHAR, player VARCHAR) ### OUTPUT SELECT place FROM table_name_50 WHERE country = "united states" AND player = "andy bean"
{ "input": "CREATE TABLE table_name_50 (place VARCHAR, country VARCHAR, player VARCHAR)", "instruction": "Which place is Andy Bean from the United States?", "output": "SELECT place FROM table_name_50 WHERE country = \"united states\" AND player = \"andy bean\"" }
### INSTRUCTION What is the code of the course which the student whose last name is Smithson took? ### INPUT CREATE TABLE student (stu_num VARCHAR, stu_lname VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR); CREATE TABLE CLASS (crs_code VARCHAR, class_code VARCHAR) ### OUTPUT SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num WHERE T3.stu_lname = 'Smithson'
{ "input": "CREATE TABLE student (stu_num VARCHAR, stu_lname VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR); CREATE TABLE CLASS (crs_code VARCHAR, class_code VARCHAR)", "instruction": "What is the code of the course which the student whose last name is Smithson took?", "output": "SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num WHERE T3.stu_lname = 'Smithson'" }
### INSTRUCTION How many players were in the team Boston Red Stockings in 2000? ### INPUT CREATE TABLE salary (team_id VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR) ### OUTPUT SELECT COUNT(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000
{ "input": "CREATE TABLE salary (team_id VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)", "instruction": "How many players were in the team Boston Red Stockings in 2000?", "output": "SELECT COUNT(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2000" }
### INSTRUCTION What's the highest reign on march 10, 2007? ### INPUT CREATE TABLE table_name_66 (reign INTEGER, date VARCHAR) ### OUTPUT SELECT MAX(reign) FROM table_name_66 WHERE date = "march 10, 2007"
{ "input": "CREATE TABLE table_name_66 (reign INTEGER, date VARCHAR)", "instruction": "What's the highest reign on march 10, 2007?", "output": "SELECT MAX(reign) FROM table_name_66 WHERE date = \"march 10, 2007\"" }
### INSTRUCTION What is the total longitude of Nogosek and a GEO ID larger than 3809357060? ### INPUT CREATE TABLE table_name_68 (longitude VARCHAR, township VARCHAR, geo_id VARCHAR) ### OUTPUT SELECT COUNT(longitude) FROM table_name_68 WHERE township = "nogosek" AND geo_id > 3809357060
{ "input": "CREATE TABLE table_name_68 (longitude VARCHAR, township VARCHAR, geo_id VARCHAR)", "instruction": "What is the total longitude of Nogosek and a GEO ID larger than 3809357060?", "output": "SELECT COUNT(longitude) FROM table_name_68 WHERE township = \"nogosek\" AND geo_id > 3809357060" }
### INSTRUCTION What is the total number of postseason games that team Boston Red Stockings participated in? ### INPUT CREATE TABLE postseason (team_id_winner VARCHAR, team_id_loser VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR) ### OUTPUT SELECT COUNT(*) FROM (SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings')
{ "input": "CREATE TABLE postseason (team_id_winner VARCHAR, team_id_loser VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)", "instruction": "What is the total number of postseason games that team Boston Red Stockings participated in?", "output": "SELECT COUNT(*) FROM (SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings')" }
### INSTRUCTION What is the total of Bronze with a total smaller than 3, and a nation of Poland, and a rank larger than 4? ### INPUT CREATE TABLE table_name_52 (bronze VARCHAR, rank VARCHAR, total VARCHAR, nation VARCHAR) ### OUTPUT SELECT COUNT(bronze) FROM table_name_52 WHERE total < 3 AND nation = "poland" AND rank > 4
{ "input": "CREATE TABLE table_name_52 (bronze VARCHAR, rank VARCHAR, total VARCHAR, nation VARCHAR)", "instruction": "What is the total of Bronze with a total smaller than 3, and a nation of Poland, and a rank larger than 4?", "output": "SELECT COUNT(bronze) FROM table_name_52 WHERE total < 3 AND nation = \"poland\" AND rank > 4" }
### INSTRUCTION display the first and last name, department, city, and state province for each employee. ### INPUT CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR, location_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, department_id VARCHAR); CREATE TABLE locations (city VARCHAR, state_province VARCHAR, location_id VARCHAR) ### OUTPUT SELECT T1.first_name, T1.last_name, T2.department_name, T3.city, T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id
{ "input": "CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR, location_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, department_id VARCHAR); CREATE TABLE locations (city VARCHAR, state_province VARCHAR, location_id VARCHAR)", "instruction": "display the first and last name, department, city, and state province for each employee.", "output": "SELECT T1.first_name, T1.last_name, T2.department_name, T3.city, T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id" }
### INSTRUCTION Who has the lowest league total goals with 0 FA cup goals and no FA cup appearances, plays the DF position and has appeared in total of 3 times? ### INPUT CREATE TABLE table_name_84 (league_goals INTEGER, total_apps VARCHAR, position VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR) ### OUTPUT SELECT MIN(league_goals) FROM table_name_84 WHERE fa_cup_goals = "0" AND fa_cup_apps = "0" AND position = "df" AND total_apps = "3"
{ "input": "CREATE TABLE table_name_84 (league_goals INTEGER, total_apps VARCHAR, position VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)", "instruction": "Who has the lowest league total goals with 0 FA cup goals and no FA cup appearances, plays the DF position and has appeared in total of 3 times?", "output": "SELECT MIN(league_goals) FROM table_name_84 WHERE fa_cup_goals = \"0\" AND fa_cup_apps = \"0\" AND position = \"df\" AND total_apps = \"3\"" }
### INSTRUCTION Who was the French Elector Elevated on 1288, May 16? ### INPUT CREATE TABLE table_name_92 (elector VARCHAR, nationality VARCHAR, elevated VARCHAR) ### OUTPUT SELECT elector FROM table_name_92 WHERE nationality = "french" AND elevated = "1288, may 16"
{ "input": "CREATE TABLE table_name_92 (elector VARCHAR, nationality VARCHAR, elevated VARCHAR)", "instruction": "Who was the French Elector Elevated on 1288, May 16?", "output": "SELECT elector FROM table_name_92 WHERE nationality = \"french\" AND elevated = \"1288, may 16\"" }
### INSTRUCTION Tell me the time for 6/6/77 release date and song title of way down ### INPUT CREATE TABLE table_name_95 (time VARCHAR, release_date VARCHAR, song_title VARCHAR) ### OUTPUT SELECT time FROM table_name_95 WHERE release_date = "6/6/77" AND song_title = "way down"
{ "input": "CREATE TABLE table_name_95 (time VARCHAR, release_date VARCHAR, song_title VARCHAR)", "instruction": "Tell me the time for 6/6/77 release date and song title of way down", "output": "SELECT time FROM table_name_95 WHERE release_date = \"6/6/77\" AND song_title = \"way down\"" }
### INSTRUCTION What is the entrant earlier than 1956 with a Vanwall Special chassis? ### INPUT CREATE TABLE table_name_19 (entrant VARCHAR, year VARCHAR, chassis VARCHAR) ### OUTPUT SELECT entrant FROM table_name_19 WHERE year < 1956 AND chassis = "vanwall special"
{ "input": "CREATE TABLE table_name_19 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)", "instruction": "What is the entrant earlier than 1956 with a Vanwall Special chassis?", "output": "SELECT entrant FROM table_name_19 WHERE year < 1956 AND chassis = \"vanwall special\"" }
### INSTRUCTION What is department name and office for the professor whose last name is Heffington? ### INPUT CREATE TABLE employee (emp_num VARCHAR, emp_lname VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR, dept_code VARCHAR) ### OUTPUT SELECT T3.dept_name, T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T1.emp_lname = 'Heffington'
{ "input": "CREATE TABLE employee (emp_num VARCHAR, emp_lname VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR, dept_code VARCHAR)", "instruction": "What is department name and office for the professor whose last name is Heffington?", "output": "SELECT T3.dept_name, T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T1.emp_lname = 'Heffington'" }
### INSTRUCTION What is the format of catalog number 886973273913 (gowow012) in the United Kingdom? ### INPUT CREATE TABLE table_name_70 (format VARCHAR, country VARCHAR, catalogue__number VARCHAR) ### OUTPUT SELECT format FROM table_name_70 WHERE country = "united kingdom" AND catalogue__number = "886973273913 (gowow012)"
{ "input": "CREATE TABLE table_name_70 (format VARCHAR, country VARCHAR, catalogue__number VARCHAR)", "instruction": "What is the format of catalog number 886973273913 (gowow012) in the United Kingdom?", "output": "SELECT format FROM table_name_70 WHERE country = \"united kingdom\" AND catalogue__number = \"886973273913 (gowow012)\"" }
### INSTRUCTION Which Home has a Visitor of quebec nordiques, and a Score of 3–4, and a Record of 8–8–1? ### INPUT CREATE TABLE table_name_62 (home VARCHAR, record VARCHAR, visitor VARCHAR, score VARCHAR) ### OUTPUT SELECT home FROM table_name_62 WHERE visitor = "quebec nordiques" AND score = "3–4" AND record = "8–8–1"
{ "input": "CREATE TABLE table_name_62 (home VARCHAR, record VARCHAR, visitor VARCHAR, score VARCHAR)", "instruction": "Which Home has a Visitor of quebec nordiques, and a Score of 3–4, and a Record of 8–8–1?", "output": "SELECT home FROM table_name_62 WHERE visitor = \"quebec nordiques\" AND score = \"3–4\" AND record = \"8–8–1\"" }
### INSTRUCTION What is Date, when Venue is Melbourne Cricket Ground, and when Result is Eng By Inns&225 Runs? ### INPUT CREATE TABLE table_name_95 (date VARCHAR, venue VARCHAR, result VARCHAR) ### OUTPUT SELECT date FROM table_name_95 WHERE venue = "melbourne cricket ground" AND result = "eng by inns&225 runs"
{ "input": "CREATE TABLE table_name_95 (date VARCHAR, venue VARCHAR, result VARCHAR)", "instruction": "What is Date, when Venue is Melbourne Cricket Ground, and when Result is Eng By Inns&225 Runs?", "output": "SELECT date FROM table_name_95 WHERE venue = \"melbourne cricket ground\" AND result = \"eng by inns&225 runs\"" }
### INSTRUCTION What is the average grid number with a ferrari and a time or retired time of 1:32:35.101? ### INPUT CREATE TABLE table_name_10 (grid INTEGER, constructor VARCHAR, time_retired VARCHAR) ### OUTPUT SELECT AVG(grid) FROM table_name_10 WHERE constructor = "ferrari" AND time_retired = "1:32:35.101"
{ "input": "CREATE TABLE table_name_10 (grid INTEGER, constructor VARCHAR, time_retired VARCHAR)", "instruction": "What is the average grid number with a ferrari and a time or retired time of 1:32:35.101?", "output": "SELECT AVG(grid) FROM table_name_10 WHERE constructor = \"ferrari\" AND time_retired = \"1:32:35.101\"" }
### INSTRUCTION What is the lowest rank of the team with 0 bronze, 1 silver, and more than 0 gold? ### INPUT CREATE TABLE table_name_69 (rank INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_69 WHERE bronze = 0 AND silver = 1 AND gold > 0
{ "input": "CREATE TABLE table_name_69 (rank INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR)", "instruction": "What is the lowest rank of the team with 0 bronze, 1 silver, and more than 0 gold?", "output": "SELECT MIN(rank) FROM table_name_69 WHERE bronze = 0 AND silver = 1 AND gold > 0" }
### INSTRUCTION How many Grand Prix were the winning constructor Benetton - Ford and the pole position was Michael Schumacher? ### INPUT CREATE TABLE table_1137702_3 (grand_prix VARCHAR, winning_constructor VARCHAR, pole_position VARCHAR) ### OUTPUT SELECT COUNT(grand_prix) FROM table_1137702_3 WHERE winning_constructor = "Benetton - Ford" AND pole_position = "Michael Schumacher"
{ "input": "CREATE TABLE table_1137702_3 (grand_prix VARCHAR, winning_constructor VARCHAR, pole_position VARCHAR)", "instruction": "How many Grand Prix were the winning constructor Benetton - Ford and the pole position was Michael Schumacher?", "output": "SELECT COUNT(grand_prix) FROM table_1137702_3 WHERE winning_constructor = \"Benetton - Ford\" AND pole_position = \"Michael Schumacher\"" }
### INSTRUCTION What is the highest number of games played for teams with 3 draws, 5 losses, and under 39 points? ### INPUT CREATE TABLE table_name_64 (games_played INTEGER, points VARCHAR, draws VARCHAR, loses VARCHAR) ### OUTPUT SELECT MAX(games_played) FROM table_name_64 WHERE draws = 3 AND loses = 5 AND points < 39
{ "input": "CREATE TABLE table_name_64 (games_played INTEGER, points VARCHAR, draws VARCHAR, loses VARCHAR)", "instruction": "What is the highest number of games played for teams with 3 draws, 5 losses, and under 39 points?", "output": "SELECT MAX(games_played) FROM table_name_64 WHERE draws = 3 AND loses = 5 AND points < 39" }
### INSTRUCTION What is the lowest attendance on Monday, November 10 when linköpings hc was the home team and there were more than 18 rounds? ### INPUT CREATE TABLE table_name_30 (attendance INTEGER, round VARCHAR, home VARCHAR, date VARCHAR) ### OUTPUT SELECT MIN(attendance) FROM table_name_30 WHERE home = "linköpings hc" AND date = "monday, november 10" AND round > 18
{ "input": "CREATE TABLE table_name_30 (attendance INTEGER, round VARCHAR, home VARCHAR, date VARCHAR)", "instruction": "What is the lowest attendance on Monday, November 10 when linköpings hc was the home team and there were more than 18 rounds?", "output": "SELECT MIN(attendance) FROM table_name_30 WHERE home = \"linköpings hc\" AND date = \"monday, november 10\" AND round > 18" }
### INSTRUCTION What was the attendance for the home team of Walsall? ### INPUT CREATE TABLE table_name_48 (attendance VARCHAR, home_team VARCHAR) ### OUTPUT SELECT attendance FROM table_name_48 WHERE home_team = "walsall"
{ "input": "CREATE TABLE table_name_48 (attendance VARCHAR, home_team VARCHAR)", "instruction": "What was the attendance for the home team of Walsall?", "output": "SELECT attendance FROM table_name_48 WHERE home_team = \"walsall\"" }
### INSTRUCTION What week had kickoff time at 6:00 p.m.? ### INPUT CREATE TABLE table_24786958_2 (week INTEGER, kickoff VARCHAR) ### OUTPUT SELECT MIN(week) FROM table_24786958_2 WHERE kickoff = "6:00 p.m."
{ "input": "CREATE TABLE table_24786958_2 (week INTEGER, kickoff VARCHAR)", "instruction": "What week had kickoff time at 6:00 p.m.?", "output": "SELECT MIN(week) FROM table_24786958_2 WHERE kickoff = \"6:00 p.m.\"" }
### INSTRUCTION Name the date of vacancy for daniel uberti ### INPUT CREATE TABLE table_18522916_5 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR) ### OUTPUT SELECT date_of_vacancy FROM table_18522916_5 WHERE outgoing_manager = "Daniel Uberti"
{ "input": "CREATE TABLE table_18522916_5 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)", "instruction": "Name the date of vacancy for daniel uberti", "output": "SELECT date_of_vacancy FROM table_18522916_5 WHERE outgoing_manager = \"Daniel Uberti\"" }
### INSTRUCTION What is the pole position of the Belgian Grand Prix? ### INPUT CREATE TABLE table_name_27 (pole_position VARCHAR, grand_prix VARCHAR) ### OUTPUT SELECT pole_position FROM table_name_27 WHERE grand_prix = "belgian grand prix"
{ "input": "CREATE TABLE table_name_27 (pole_position VARCHAR, grand_prix VARCHAR)", "instruction": "What is the pole position of the Belgian Grand Prix?", "output": "SELECT pole_position FROM table_name_27 WHERE grand_prix = \"belgian grand prix\"" }
### INSTRUCTION display all the information for all employees who have the letters D or S in their first name and also arrange the result in descending order by salary. ### INPUT CREATE TABLE employees (salary VARCHAR, first_name VARCHAR) ### OUTPUT SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' ORDER BY salary DESC
{ "input": "CREATE TABLE employees (salary VARCHAR, first_name VARCHAR)", "instruction": "display all the information for all employees who have the letters D or S in their first name and also arrange the result in descending order by salary.", "output": "SELECT * FROM employees WHERE first_name LIKE '%D%' OR first_name LIKE '%S%' ORDER BY salary DESC" }
### INSTRUCTION How many type classifications are given to the measure with the description, calling convention to revise state constitution? ### INPUT CREATE TABLE table_256286_5 (type VARCHAR, description VARCHAR) ### OUTPUT SELECT COUNT(type) FROM table_256286_5 WHERE description = "Calling Convention to revise State Constitution"
{ "input": "CREATE TABLE table_256286_5 (type VARCHAR, description VARCHAR)", "instruction": "How many type classifications are given to the measure with the description, calling convention to revise state constitution? ", "output": "SELECT COUNT(type) FROM table_256286_5 WHERE description = \"Calling Convention to revise State Constitution\"" }
### INSTRUCTION In what Week has a Result of l 24–20, and a Opponent of at new england patriots? ### INPUT CREATE TABLE table_name_32 (week INTEGER, result VARCHAR, opponent VARCHAR) ### OUTPUT SELECT MAX(week) FROM table_name_32 WHERE result = "l 24–20" AND opponent = "at new england patriots"
{ "input": "CREATE TABLE table_name_32 (week INTEGER, result VARCHAR, opponent VARCHAR)", "instruction": "In what Week has a Result of l 24–20, and a Opponent of at new england patriots?", "output": "SELECT MAX(week) FROM table_name_32 WHERE result = \"l 24–20\" AND opponent = \"at new england patriots\"" }
### INSTRUCTION Name the total number of population for 1991 for 9564 for 2011 ### INPUT CREATE TABLE table_2562572_5 (population__1991_ VARCHAR, population__2011_ VARCHAR) ### OUTPUT SELECT COUNT(population__1991_) FROM table_2562572_5 WHERE population__2011_ = 9564
{ "input": "CREATE TABLE table_2562572_5 (population__1991_ VARCHAR, population__2011_ VARCHAR)", "instruction": "Name the total number of population for 1991 for 9564 for 2011", "output": "SELECT COUNT(population__1991_) FROM table_2562572_5 WHERE population__2011_ = 9564" }
### INSTRUCTION How many averages had a swimsuit number of 8.42 and an evening gown number that was less than 8.71? ### INPUT CREATE TABLE table_name_96 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR) ### OUTPUT SELECT SUM(average) FROM table_name_96 WHERE swimsuit = 8.42 AND evening_gown < 8.71
{ "input": "CREATE TABLE table_name_96 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR)", "instruction": "How many averages had a swimsuit number of 8.42 and an evening gown number that was less than 8.71?", "output": "SELECT SUM(average) FROM table_name_96 WHERE swimsuit = 8.42 AND evening_gown < 8.71" }
### INSTRUCTION what's the incumbent with district being massachusetts 2 ### INPUT CREATE TABLE table_1341604_22 (incumbent VARCHAR, district VARCHAR) ### OUTPUT SELECT incumbent FROM table_1341604_22 WHERE district = "Massachusetts 2"
{ "input": "CREATE TABLE table_1341604_22 (incumbent VARCHAR, district VARCHAR)", "instruction": "what's the incumbent with district being massachusetts 2", "output": "SELECT incumbent FROM table_1341604_22 WHERE district = \"Massachusetts 2\"" }
### INSTRUCTION What is the Record of the 3000 M? ### INPUT CREATE TABLE table_name_15 (record VARCHAR, event VARCHAR) ### OUTPUT SELECT record FROM table_name_15 WHERE event = "3000 m"
{ "input": "CREATE TABLE table_name_15 (record VARCHAR, event VARCHAR)", "instruction": "What is the Record of the 3000 M?", "output": "SELECT record FROM table_name_15 WHERE event = \"3000 m\"" }
### INSTRUCTION What is the Japanese title with an average rating of 11.6%? ### INPUT CREATE TABLE table_18540104_1 (japanese_title VARCHAR, average_ratings VARCHAR) ### OUTPUT SELECT japanese_title FROM table_18540104_1 WHERE average_ratings = "11.6%"
{ "input": "CREATE TABLE table_18540104_1 (japanese_title VARCHAR, average_ratings VARCHAR)", "instruction": "What is the Japanese title with an average rating of 11.6%?", "output": "SELECT japanese_title FROM table_18540104_1 WHERE average_ratings = \"11.6%\"" }
### INSTRUCTION Show the years and the official names of the host cities of competitions. ### INPUT CREATE TABLE city (Official_Name VARCHAR, City_ID VARCHAR); CREATE TABLE farm_competition (Year VARCHAR, Host_city_ID VARCHAR) ### OUTPUT SELECT T2.Year, T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID
{ "input": "CREATE TABLE city (Official_Name VARCHAR, City_ID VARCHAR); CREATE TABLE farm_competition (Year VARCHAR, Host_city_ID VARCHAR)", "instruction": "Show the years and the official names of the host cities of competitions.", "output": "SELECT T2.Year, T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID" }
### INSTRUCTION On what date was Arthur Jones the away captain at Sydney Cricket Ground? ### INPUT CREATE TABLE table_name_33 (date VARCHAR, away_captain VARCHAR, venue VARCHAR) ### OUTPUT SELECT date FROM table_name_33 WHERE away_captain = "arthur jones" AND venue = "sydney cricket ground"
{ "input": "CREATE TABLE table_name_33 (date VARCHAR, away_captain VARCHAR, venue VARCHAR)", "instruction": "On what date was Arthur Jones the away captain at Sydney Cricket Ground?", "output": "SELECT date FROM table_name_33 WHERE away_captain = \"arthur jones\" AND venue = \"sydney cricket ground\"" }
### INSTRUCTION Name the most FA cup for championship of 18 and total of 19 ### INPUT CREATE TABLE table_name_74 (fa_cup INTEGER, championship VARCHAR, total VARCHAR) ### OUTPUT SELECT MAX(fa_cup) FROM table_name_74 WHERE championship = 18 AND total = 19
{ "input": "CREATE TABLE table_name_74 (fa_cup INTEGER, championship VARCHAR, total VARCHAR)", "instruction": "Name the most FA cup for championship of 18 and total of 19", "output": "SELECT MAX(fa_cup) FROM table_name_74 WHERE championship = 18 AND total = 19" }
### INSTRUCTION Which opposing team had an Against score less than 42 and a Tour Match status in Rugby Park, Gisborne? ### INPUT CREATE TABLE table_name_48 (opposing_team VARCHAR, venue VARCHAR, against VARCHAR, status VARCHAR) ### OUTPUT SELECT opposing_team FROM table_name_48 WHERE against < 42 AND status = "tour match" AND venue = "rugby park, gisborne"
{ "input": "CREATE TABLE table_name_48 (opposing_team VARCHAR, venue VARCHAR, against VARCHAR, status VARCHAR)", "instruction": "Which opposing team had an Against score less than 42 and a Tour Match status in Rugby Park, Gisborne?", "output": "SELECT opposing_team FROM table_name_48 WHERE against < 42 AND status = \"tour match\" AND venue = \"rugby park, gisborne\"" }
### INSTRUCTION Name the Evening that has a Sunday of no, and a Name of s. vidal/plant express? ### INPUT CREATE TABLE table_name_18 (evening VARCHAR, sunday VARCHAR, name VARCHAR) ### OUTPUT SELECT evening FROM table_name_18 WHERE sunday = "no" AND name = "s. vidal/plant express"
{ "input": "CREATE TABLE table_name_18 (evening VARCHAR, sunday VARCHAR, name VARCHAR)", "instruction": "Name the Evening that has a Sunday of no, and a Name of s. vidal/plant express?", "output": "SELECT evening FROM table_name_18 WHERE sunday = \"no\" AND name = \"s. vidal/plant express\"" }
### INSTRUCTION What is the name of the stadium which held the most events? ### INPUT CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (stadium_id VARCHAR) ### OUTPUT SELECT t1.name FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (stadium_id VARCHAR)", "instruction": "What is the name of the stadium which held the most events?", "output": "SELECT t1.name FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION How many villages had 21.7% of slovenes in 1991? ### INPUT CREATE TABLE table_10797463_1 (village__german_ VARCHAR, percent_of_slovenes_1991 VARCHAR) ### OUTPUT SELECT COUNT(village__german_) FROM table_10797463_1 WHERE percent_of_slovenes_1991 = "21.7%"
{ "input": "CREATE TABLE table_10797463_1 (village__german_ VARCHAR, percent_of_slovenes_1991 VARCHAR)", "instruction": "How many villages had 21.7% of slovenes in 1991?", "output": "SELECT COUNT(village__german_) FROM table_10797463_1 WHERE percent_of_slovenes_1991 = \"21.7%\"" }
### INSTRUCTION How many districts in Baltimore City does Cheryl Glenn dictate? ### INPUT CREATE TABLE table_name_40 (district VARCHAR, place_of_birth VARCHAR, delegate VARCHAR) ### OUTPUT SELECT COUNT(district) FROM table_name_40 WHERE place_of_birth = "baltimore city" AND delegate = "cheryl glenn"
{ "input": "CREATE TABLE table_name_40 (district VARCHAR, place_of_birth VARCHAR, delegate VARCHAR)", "instruction": "How many districts in Baltimore City does Cheryl Glenn dictate?", "output": "SELECT COUNT(district) FROM table_name_40 WHERE place_of_birth = \"baltimore city\" AND delegate = \"cheryl glenn\"" }
### INSTRUCTION What is the low lap total for the under 4 grid car driven by juan pablo montoya? ### INPUT CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, driver VARCHAR) ### OUTPUT SELECT MIN(laps) FROM table_name_65 WHERE grid < 4 AND driver = "juan pablo montoya"
{ "input": "CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, driver VARCHAR)", "instruction": "What is the low lap total for the under 4 grid car driven by juan pablo montoya?", "output": "SELECT MIN(laps) FROM table_name_65 WHERE grid < 4 AND driver = \"juan pablo montoya\"" }
### INSTRUCTION How many age figures for the player fired in week 6? ### INPUT CREATE TABLE table_24501530_1 (age VARCHAR, result VARCHAR) ### OUTPUT SELECT COUNT(age) FROM table_24501530_1 WHERE result = "Fired in week 6"
{ "input": "CREATE TABLE table_24501530_1 (age VARCHAR, result VARCHAR)", "instruction": "How many age figures for the player fired in week 6?", "output": "SELECT COUNT(age) FROM table_24501530_1 WHERE result = \"Fired in week 6\"" }
### INSTRUCTION Show names of technicians and the number of machines they are assigned to repair. ### INPUT CREATE TABLE repair_assignment (technician_ID VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR) ### OUTPUT SELECT T2.Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name
{ "input": "CREATE TABLE repair_assignment (technician_ID VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR)", "instruction": "Show names of technicians and the number of machines they are assigned to repair.", "output": "SELECT T2.Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_ID = T2.technician_ID GROUP BY T2.Name" }
### INSTRUCTION What is Score in The Final, when Opponent in The Final is "John McEnroe", and when Championship is "Los Angeles , U.S."? ### INPUT CREATE TABLE table_name_98 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, championship VARCHAR) ### OUTPUT SELECT score_in_the_final FROM table_name_98 WHERE opponent_in_the_final = "john mcenroe" AND championship = "los angeles , u.s."
{ "input": "CREATE TABLE table_name_98 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, championship VARCHAR)", "instruction": "What is Score in The Final, when Opponent in The Final is \"John McEnroe\", and when Championship is \"Los Angeles , U.S.\"?", "output": "SELECT score_in_the_final FROM table_name_98 WHERE opponent_in_the_final = \"john mcenroe\" AND championship = \"los angeles , u.s.\"" }
### INSTRUCTION How many top division titles does Club Guadalajara have, with more than 42 seasons in Liga MX? ### INPUT CREATE TABLE table_name_66 (top_division_titles INTEGER, number_of_seasons_in_liga_mx VARCHAR, club VARCHAR) ### OUTPUT SELECT SUM(top_division_titles) FROM table_name_66 WHERE number_of_seasons_in_liga_mx > 42 AND club = "guadalajara"
{ "input": "CREATE TABLE table_name_66 (top_division_titles INTEGER, number_of_seasons_in_liga_mx VARCHAR, club VARCHAR)", "instruction": "How many top division titles does Club Guadalajara have, with more than 42 seasons in Liga MX?", "output": "SELECT SUM(top_division_titles) FROM table_name_66 WHERE number_of_seasons_in_liga_mx > 42 AND club = \"guadalajara\"" }
### INSTRUCTION What was the attendance on 31 January 2009 when the opponent was Airdrie United? ### INPUT CREATE TABLE table_name_33 (attendance INTEGER, opponent VARCHAR, date VARCHAR) ### OUTPUT SELECT AVG(attendance) FROM table_name_33 WHERE opponent = "airdrie united" AND date = "31 january 2009"
{ "input": "CREATE TABLE table_name_33 (attendance INTEGER, opponent VARCHAR, date VARCHAR)", "instruction": "What was the attendance on 31 January 2009 when the opponent was Airdrie United?", "output": "SELECT AVG(attendance) FROM table_name_33 WHERE opponent = \"airdrie united\" AND date = \"31 january 2009\"" }
### INSTRUCTION Where was the place of birth for the delegate who took office after 1982, delegates a district smaller than 43 and belongs to a Health and Government operations committee? ### INPUT CREATE TABLE table_name_31 (place_of_birth VARCHAR, committee VARCHAR, took_office VARCHAR, district VARCHAR) ### OUTPUT SELECT place_of_birth FROM table_name_31 WHERE took_office > 1982 AND district < 43 AND committee = "health and government operations"
{ "input": "CREATE TABLE table_name_31 (place_of_birth VARCHAR, committee VARCHAR, took_office VARCHAR, district VARCHAR)", "instruction": "Where was the place of birth for the delegate who took office after 1982, delegates a district smaller than 43 and belongs to a Health and Government operations committee?", "output": "SELECT place_of_birth FROM table_name_31 WHERE took_office > 1982 AND district < 43 AND committee = \"health and government operations\"" }
### INSTRUCTION Who was the leader at the summit when the stage was larger than 14, the category was 1, the start was Saint-Girons, and the finish was Cauterets? ### INPUT CREATE TABLE table_name_78 (leader_at_the_summit VARCHAR, finish VARCHAR, start VARCHAR, stage VARCHAR, category VARCHAR) ### OUTPUT SELECT leader_at_the_summit FROM table_name_78 WHERE stage > 14 AND category = 1 AND start = "saint-girons" AND finish = "cauterets"
{ "input": "CREATE TABLE table_name_78 (leader_at_the_summit VARCHAR, finish VARCHAR, start VARCHAR, stage VARCHAR, category VARCHAR)", "instruction": "Who was the leader at the summit when the stage was larger than 14, the category was 1, the start was Saint-Girons, and the finish was Cauterets?", "output": "SELECT leader_at_the_summit FROM table_name_78 WHERE stage > 14 AND category = 1 AND start = \"saint-girons\" AND finish = \"cauterets\"" }
### INSTRUCTION How many votes went to other candidates in the county that gave 1.9% votes to them, and 160,390 total votes to Bush? ### INPUT CREATE TABLE table_name_12 (others_number INTEGER, others_percentage VARCHAR, bush_number VARCHAR) ### OUTPUT SELECT MIN(others_number) FROM table_name_12 WHERE others_percentage = "1.9%" AND bush_number < 160 OFFSET 390
{ "input": "CREATE TABLE table_name_12 (others_number INTEGER, others_percentage VARCHAR, bush_number VARCHAR)", "instruction": "How many votes went to other candidates in the county that gave 1.9% votes to them, and 160,390 total votes to Bush?", "output": "SELECT MIN(others_number) FROM table_name_12 WHERE others_percentage = \"1.9%\" AND bush_number < 160 OFFSET 390" }
### INSTRUCTION Name the mixed doubles when tour is hong kong super series ### INPUT CREATE TABLE table_14496232_2 (mixed_doubles VARCHAR, tour VARCHAR) ### OUTPUT SELECT mixed_doubles FROM table_14496232_2 WHERE tour = "Hong Kong Super Series"
{ "input": "CREATE TABLE table_14496232_2 (mixed_doubles VARCHAR, tour VARCHAR)", "instruction": "Name the mixed doubles when tour is hong kong super series", "output": "SELECT mixed_doubles FROM table_14496232_2 WHERE tour = \"Hong Kong Super Series\"" }
### INSTRUCTION Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order. ### INPUT CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### OUTPUT SELECT T2.balance, T3.balance, T1.name 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 + T3.balance DESC
{ "input": "CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)", "instruction": "Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order.", "output": "SELECT T2.balance, T3.balance, T1.name 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 + T3.balance DESC" }
### INSTRUCTION Who was the away team when the crowd was larger than 41,451? ### INPUT CREATE TABLE table_name_69 (away_team VARCHAR, crowd INTEGER) ### OUTPUT SELECT away_team FROM table_name_69 WHERE crowd > 41 OFFSET 451
{ "input": "CREATE TABLE table_name_69 (away_team VARCHAR, crowd INTEGER)", "instruction": "Who was the away team when the crowd was larger than 41,451?", "output": "SELECT away_team FROM table_name_69 WHERE crowd > 41 OFFSET 451" }
### INSTRUCTION Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005. ### INPUT CREATE TABLE APPELLATIONS (Appelation VARCHAR, Area VARCHAR); CREATE TABLE WINE (Price INTEGER, Appelation VARCHAR, year VARCHAR) ### OUTPUT SELECT MAX(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = "Central Coast" AND T2.year < 2005
{ "input": "CREATE TABLE APPELLATIONS (Appelation VARCHAR, Area VARCHAR); CREATE TABLE WINE (Price INTEGER, Appelation VARCHAR, year VARCHAR)", "instruction": "Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005.", "output": "SELECT MAX(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = \"Central Coast\" AND T2.year < 2005" }
### INSTRUCTION What are all the states (class) when the reason for change was resigned November 26, 1798 and the vacator was John Hunter ( DR )? ### INPUT CREATE TABLE table_224839_3 (state__class_ VARCHAR, reason_for_change VARCHAR, vacator VARCHAR) ### OUTPUT SELECT state__class_ FROM table_224839_3 WHERE reason_for_change = "Resigned November 26, 1798" AND vacator = "John Hunter ( DR )"
{ "input": "CREATE TABLE table_224839_3 (state__class_ VARCHAR, reason_for_change VARCHAR, vacator VARCHAR)", "instruction": "What are all the states (class) when the reason for change was resigned November 26, 1798 and the vacator was John Hunter ( DR )?", "output": "SELECT state__class_ FROM table_224839_3 WHERE reason_for_change = \"Resigned November 26, 1798\" AND vacator = \"John Hunter ( DR )\"" }
### INSTRUCTION Show all the buildings that have at least 10 professors. ### INPUT CREATE TABLE Faculty (building VARCHAR, rank VARCHAR) ### OUTPUT SELECT building FROM Faculty WHERE rank = "Professor" GROUP BY building HAVING COUNT(*) >= 10
{ "input": "CREATE TABLE Faculty (building VARCHAR, rank VARCHAR)", "instruction": "Show all the buildings that have at least 10 professors.", "output": "SELECT building FROM Faculty WHERE rank = \"Professor\" GROUP BY building HAVING COUNT(*) >= 10" }
### INSTRUCTION Who was the home team that played against Manchester United? ### INPUT CREATE TABLE table_name_86 (home_team VARCHAR, away_team VARCHAR) ### OUTPUT SELECT home_team FROM table_name_86 WHERE away_team = "manchester united"
{ "input": "CREATE TABLE table_name_86 (home_team VARCHAR, away_team VARCHAR)", "instruction": "Who was the home team that played against Manchester United?", "output": "SELECT home_team FROM table_name_86 WHERE away_team = \"manchester united\"" }
### INSTRUCTION How many 'United Airlines' flights go to Airport 'ASY'? ### INPUT CREATE TABLE FLIGHTS (Airline VARCHAR, DestAirport VARCHAR); CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR) ### OUTPUT SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.DestAirport = "ASY"
{ "input": "CREATE TABLE FLIGHTS (Airline VARCHAR, DestAirport VARCHAR); CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR)", "instruction": "How many 'United Airlines' flights go to Airport 'ASY'?", "output": "SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"" }
### INSTRUCTION What is the average speed of rider Peter Williams? ### INPUT CREATE TABLE table_name_44 (speed VARCHAR, rider VARCHAR) ### OUTPUT SELECT speed FROM table_name_44 WHERE rider = "peter williams"
{ "input": "CREATE TABLE table_name_44 (speed VARCHAR, rider VARCHAR)", "instruction": "What is the average speed of rider Peter Williams?", "output": "SELECT speed FROM table_name_44 WHERE rider = \"peter williams\"" }
### INSTRUCTION What was the endowment in 2008 of the college that was established in 1961? ### INPUT CREATE TABLE table_name_55 (endowment_as_of_2008 VARCHAR, established VARCHAR) ### OUTPUT SELECT endowment_as_of_2008 FROM table_name_55 WHERE established = 1961
{ "input": "CREATE TABLE table_name_55 (endowment_as_of_2008 VARCHAR, established VARCHAR)", "instruction": "What was the endowment in 2008 of the college that was established in 1961?", "output": "SELECT endowment_as_of_2008 FROM table_name_55 WHERE established = 1961" }
### INSTRUCTION Find the names of departments that are located in Houston. ### INPUT CREATE TABLE dept_locations (dnumber VARCHAR, dlocation VARCHAR); CREATE TABLE department (dname VARCHAR, dnumber VARCHAR) ### OUTPUT SELECT t1.dname FROM department AS t1 JOIN dept_locations AS t2 ON t1.dnumber = t2.dnumber WHERE t2.dlocation = 'Houston'
{ "input": "CREATE TABLE dept_locations (dnumber VARCHAR, dlocation VARCHAR); CREATE TABLE department (dname VARCHAR, dnumber VARCHAR)", "instruction": "Find the names of departments that are located in Houston.", "output": "SELECT t1.dname FROM department AS t1 JOIN dept_locations AS t2 ON t1.dnumber = t2.dnumber WHERE t2.dlocation = 'Houston'" }
### INSTRUCTION Who was the winner from the United States the year Kimberly Kim was runner-up? ### INPUT CREATE TABLE table_name_59 (winner VARCHAR, runner_up VARCHAR, country VARCHAR) ### OUTPUT SELECT winner FROM table_name_59 WHERE runner_up = "kimberly kim" AND country = "united states"
{ "input": "CREATE TABLE table_name_59 (winner VARCHAR, runner_up VARCHAR, country VARCHAR)", "instruction": "Who was the winner from the United States the year Kimberly Kim was runner-up?", "output": "SELECT winner FROM table_name_59 WHERE runner_up = \"kimberly kim\" AND country = \"united states\"" }
### INSTRUCTION What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats? ### INPUT CREATE TABLE table_name_86 (social_democratic VARCHAR, democratic_and_social_centre VARCHAR) ### OUTPUT SELECT social_democratic FROM table_name_86 WHERE democratic_and_social_centre = "4.4% 4 seats"
{ "input": "CREATE TABLE table_name_86 (social_democratic VARCHAR, democratic_and_social_centre VARCHAR)", "instruction": "What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats?", "output": "SELECT social_democratic FROM table_name_86 WHERE democratic_and_social_centre = \"4.4% 4 seats\"" }