text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Which films participated when the category was Best Newcomer? ### INPUT CREATE TABLE table_29644931_1 (participants_recipients VARCHAR, category VARCHAR) ### OUTPUT SELECT participants_recipients FROM table_29644931_1 WHERE category = "Best Newcomer"
{ "input": "CREATE TABLE table_29644931_1 (participants_recipients VARCHAR, category VARCHAR)", "instruction": "Which films participated when the category was Best Newcomer?", "output": "SELECT participants_recipients FROM table_29644931_1 WHERE category = \"Best Newcomer\"" }
### INSTRUCTION How many total units were built of Model ds-4-4-660 with a b-b wheel arrangement and a PRR Class of bs6? ### INPUT CREATE TABLE table_name_13 (total_produced INTEGER, builder’s_model VARCHAR, wheel_arrangement VARCHAR, prr_class VARCHAR) ### OUTPUT SELECT SUM(total_produced) FROM table_name_13 WHERE wheel_arrangement = "b-b" AND prr_class = "bs6" AND builder’s_model = "ds-4-4-660"
{ "input": "CREATE TABLE table_name_13 (total_produced INTEGER, builder’s_model VARCHAR, wheel_arrangement VARCHAR, prr_class VARCHAR)", "instruction": "How many total units were built of Model ds-4-4-660 with a b-b wheel arrangement and a PRR Class of bs6?", "output": "SELECT SUM(total_produced) FROM table_name_13 WHERE wheel_arrangement = \"b-b\" AND prr_class = \"bs6\" AND builder’s_model = \"ds-4-4-660\"" }
### INSTRUCTION What is the most draws when goals against are more than 33, losses are 13 and goals for is less than 51? ### INPUT CREATE TABLE table_name_1 (draws INTEGER, goals_for VARCHAR, goals_against VARCHAR, losses VARCHAR) ### OUTPUT SELECT MAX(draws) FROM table_name_1 WHERE goals_against > 33 AND losses = 13 AND goals_for < 51
{ "input": "CREATE TABLE table_name_1 (draws INTEGER, goals_for VARCHAR, goals_against VARCHAR, losses VARCHAR)", "instruction": "What is the most draws when goals against are more than 33, losses are 13 and goals for is less than 51?", "output": "SELECT MAX(draws) FROM table_name_1 WHERE goals_against > 33 AND losses = 13 AND goals_for < 51" }
### INSTRUCTION What is Norikazu Murakami's total? ### INPUT CREATE TABLE table_name_41 (total VARCHAR, name VARCHAR) ### OUTPUT SELECT total FROM table_name_41 WHERE name = "norikazu murakami"
{ "input": "CREATE TABLE table_name_41 (total VARCHAR, name VARCHAR)", "instruction": "What is Norikazu Murakami's total?", "output": "SELECT total FROM table_name_41 WHERE name = \"norikazu murakami\"" }
### INSTRUCTION What is the first name, last name, and phone of the customer with account name 162? ### INPUT CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR, account_name VARCHAR) ### OUTPUT SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = "162"
{ "input": "CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR, account_name VARCHAR)", "instruction": "What is the first name, last name, and phone of the customer with account name 162?", "output": "SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = \"162\"" }
### INSTRUCTION Name the number of year for 6–3, 6–2 hard surface ### INPUT CREATE TABLE table_23235767_4 (year VARCHAR, score_in_the_final VARCHAR, surface VARCHAR) ### OUTPUT SELECT COUNT(year) FROM table_23235767_4 WHERE score_in_the_final = "6–3, 6–2" AND surface = "Hard"
{ "input": "CREATE TABLE table_23235767_4 (year VARCHAR, score_in_the_final VARCHAR, surface VARCHAR)", "instruction": "Name the number of year for 6–3, 6–2 hard surface", "output": "SELECT COUNT(year) FROM table_23235767_4 WHERE score_in_the_final = \"6–3, 6–2\" AND surface = \"Hard\"" }
### INSTRUCTION Name the champion for 2000 ### INPUT CREATE TABLE table_name_52 (champion VARCHAR, year VARCHAR) ### OUTPUT SELECT champion FROM table_name_52 WHERE year = "2000"
{ "input": "CREATE TABLE table_name_52 (champion VARCHAR, year VARCHAR)", "instruction": "Name the champion for 2000", "output": "SELECT champion FROM table_name_52 WHERE year = \"2000\"" }
### INSTRUCTION Which Home team has a Score of 1–1, and an Away team of tottenham hotspur? ### INPUT CREATE TABLE table_name_68 (home_team VARCHAR, score VARCHAR, away_team VARCHAR) ### OUTPUT SELECT home_team FROM table_name_68 WHERE score = "1–1" AND away_team = "tottenham hotspur"
{ "input": "CREATE TABLE table_name_68 (home_team VARCHAR, score VARCHAR, away_team VARCHAR)", "instruction": "Which Home team has a Score of 1–1, and an Away team of tottenham hotspur?", "output": "SELECT home_team FROM table_name_68 WHERE score = \"1–1\" AND away_team = \"tottenham hotspur\"" }
### INSTRUCTION Which Model has a GCM (kg) Technical Capacity of 35000, a GVM (kg) Technical Capacity of 16000, and Cummins Interact 6.0-euro III (turbo intercooler) for the Engine? ### INPUT CREATE TABLE table_name_94 (model VARCHAR, engine_make_capacity VARCHAR, gcm__kg__technical_capacity VARCHAR, gvm__kg__technical_capacity VARCHAR) ### OUTPUT SELECT model FROM table_name_94 WHERE gcm__kg__technical_capacity = "35000" AND gvm__kg__technical_capacity = "16000" AND engine_make_capacity = "cummins interact 6.0-euro iii (turbo intercooler)"
{ "input": "CREATE TABLE table_name_94 (model VARCHAR, engine_make_capacity VARCHAR, gcm__kg__technical_capacity VARCHAR, gvm__kg__technical_capacity VARCHAR)", "instruction": "Which Model has a GCM (kg) Technical Capacity of 35000, a GVM (kg) Technical Capacity of 16000, and Cummins Interact 6.0-euro III (turbo intercooler) for the Engine?", "output": "SELECT model FROM table_name_94 WHERE gcm__kg__technical_capacity = \"35000\" AND gvm__kg__technical_capacity = \"16000\" AND engine_make_capacity = \"cummins interact 6.0-euro iii (turbo intercooler)\"" }
### INSTRUCTION Which date has a Week smaller than 14, and an Opponent of san francisco 49ers? ### INPUT CREATE TABLE table_name_92 (date VARCHAR, week VARCHAR, opponent VARCHAR) ### OUTPUT SELECT date FROM table_name_92 WHERE week < 14 AND opponent = "san francisco 49ers"
{ "input": "CREATE TABLE table_name_92 (date VARCHAR, week VARCHAR, opponent VARCHAR)", "instruction": "Which date has a Week smaller than 14, and an Opponent of san francisco 49ers?", "output": "SELECT date FROM table_name_92 WHERE week < 14 AND opponent = \"san francisco 49ers\"" }
### INSTRUCTION Location of brendan byrne arena had what score? ### INPUT CREATE TABLE table_name_5 (score VARCHAR, location VARCHAR) ### OUTPUT SELECT score FROM table_name_5 WHERE location = "brendan byrne arena"
{ "input": "CREATE TABLE table_name_5 (score VARCHAR, location VARCHAR)", "instruction": "Location of brendan byrne arena had what score?", "output": "SELECT score FROM table_name_5 WHERE location = \"brendan byrne arena\"" }
### INSTRUCTION Name the min total pts for team dennis conner ### INPUT CREATE TABLE table_21471897_2 (total_pts INTEGER, team_name VARCHAR) ### OUTPUT SELECT MIN(total_pts) FROM table_21471897_2 WHERE team_name = "Team Dennis Conner"
{ "input": "CREATE TABLE table_21471897_2 (total_pts INTEGER, team_name VARCHAR)", "instruction": "Name the min total pts for team dennis conner", "output": "SELECT MIN(total_pts) FROM table_21471897_2 WHERE team_name = \"Team Dennis Conner\"" }
### INSTRUCTION What is the score of the scores when Game had a Record of 17-29? ### INPUT CREATE TABLE table_name_27 (game INTEGER, record VARCHAR) ### OUTPUT SELECT SUM(game) FROM table_name_27 WHERE record = "17-29"
{ "input": "CREATE TABLE table_name_27 (game INTEGER, record VARCHAR)", "instruction": "What is the score of the scores when Game had a Record of 17-29?", "output": "SELECT SUM(game) FROM table_name_27 WHERE record = \"17-29\"" }
### INSTRUCTION Find the total number of students and total number of instructors for each department. ### INPUT CREATE TABLE department (dept_name VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR); CREATE TABLE instructor (dept_name VARCHAR, id VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT T2.id), COUNT(DISTINCT T3.id), T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name
{ "input": "CREATE TABLE department (dept_name VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR); CREATE TABLE instructor (dept_name VARCHAR, id VARCHAR)", "instruction": "Find the total number of students and total number of instructors for each department.", "output": "SELECT COUNT(DISTINCT T2.id), COUNT(DISTINCT T3.id), T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name" }
### INSTRUCTION Which episode had Hoagy carmichael safe with an order of 5? ### INPUT CREATE TABLE table_name_10 (episode VARCHAR, original_artist VARCHAR, result VARCHAR, order__number VARCHAR) ### OUTPUT SELECT episode FROM table_name_10 WHERE result = "safe" AND order__number = "5" AND original_artist = "hoagy carmichael"
{ "input": "CREATE TABLE table_name_10 (episode VARCHAR, original_artist VARCHAR, result VARCHAR, order__number VARCHAR)", "instruction": "Which episode had Hoagy carmichael safe with an order of 5?", "output": "SELECT episode FROM table_name_10 WHERE result = \"safe\" AND order__number = \"5\" AND original_artist = \"hoagy carmichael\"" }
### INSTRUCTION Which Opponents have a Score of 1–2, and a Team of arsenal, and Progress of first round? ### INPUT CREATE TABLE table_name_82 (opponents VARCHAR, progress VARCHAR, score VARCHAR, team VARCHAR) ### OUTPUT SELECT opponents FROM table_name_82 WHERE score = "1–2" AND team = "arsenal" AND progress = "first round"
{ "input": "CREATE TABLE table_name_82 (opponents VARCHAR, progress VARCHAR, score VARCHAR, team VARCHAR)", "instruction": "Which Opponents have a Score of 1–2, and a Team of arsenal, and Progress of first round?", "output": "SELECT opponents FROM table_name_82 WHERE score = \"1–2\" AND team = \"arsenal\" AND progress = \"first round\"" }
### INSTRUCTION Find the name, address, number of students in the departments that have the top 3 highest number of students. ### INPUT CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_address VARCHAR, dept_code VARCHAR) ### OUTPUT SELECT T2.dept_name, T2.dept_address, COUNT(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 3
{ "input": "CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_address VARCHAR, dept_code VARCHAR)", "instruction": "Find the name, address, number of students in the departments that have the top 3 highest number of students.", "output": "SELECT T2.dept_name, T2.dept_address, COUNT(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 3" }
### INSTRUCTION The pooulation of јарковац is? ### INPUT CREATE TABLE table_2562572_39 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR) ### OUTPUT SELECT population__2011_ FROM table_2562572_39 WHERE cyrillic_name_other_names = "Јарковац"
{ "input": "CREATE TABLE table_2562572_39 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR)", "instruction": "The pooulation of јарковац is?", "output": "SELECT population__2011_ FROM table_2562572_39 WHERE cyrillic_name_other_names = \"Јарковац\"" }
### INSTRUCTION Name the total number of troops per one million being 2.76 ### INPUT CREATE TABLE table_30108346_1 (troops_per_one_million_population VARCHAR, troops_per_$1_billion___usd___gdp VARCHAR) ### OUTPUT SELECT COUNT(troops_per_one_million_population) FROM table_30108346_1 WHERE troops_per_$1_billion___usd___gdp = "2.76"
{ "input": "CREATE TABLE table_30108346_1 (troops_per_one_million_population VARCHAR, troops_per_$1_billion___usd___gdp VARCHAR)", "instruction": "Name the total number of troops per one million being 2.76", "output": "SELECT COUNT(troops_per_one_million_population) FROM table_30108346_1 WHERE troops_per_$1_billion___usd___gdp = \"2.76\"" }
### INSTRUCTION What is the average played value in Belgrade with attendance greater than 26,222? ### INPUT CREATE TABLE table_name_83 (played INTEGER, city VARCHAR, average_attendance VARCHAR) ### OUTPUT SELECT AVG(played) FROM table_name_83 WHERE city = "belgrade" AND average_attendance > 26 OFFSET 222
{ "input": "CREATE TABLE table_name_83 (played INTEGER, city VARCHAR, average_attendance VARCHAR)", "instruction": "What is the average played value in Belgrade with attendance greater than 26,222?", "output": "SELECT AVG(played) FROM table_name_83 WHERE city = \"belgrade\" AND average_attendance > 26 OFFSET 222" }
### INSTRUCTION How many games against for team guarani with under 3 draws? ### INPUT CREATE TABLE table_name_84 (against INTEGER, team VARCHAR, drawn VARCHAR) ### OUTPUT SELECT SUM(against) FROM table_name_84 WHERE team = "guarani" AND drawn < 3
{ "input": "CREATE TABLE table_name_84 (against INTEGER, team VARCHAR, drawn VARCHAR)", "instruction": "How many games against for team guarani with under 3 draws?", "output": "SELECT SUM(against) FROM table_name_84 WHERE team = \"guarani\" AND drawn < 3" }
### INSTRUCTION List the dates of enrollment and completion of the student with family name "Zieme" and personal name "Bernie". ### INPUT CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, date_of_completion VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, family_name VARCHAR, personal_name VARCHAR) ### OUTPUT SELECT T1.date_of_enrolment, T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.family_name = "Zieme" AND T2.personal_name = "Bernie"
{ "input": "CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, date_of_completion VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, family_name VARCHAR, personal_name VARCHAR)", "instruction": "List the dates of enrollment and completion of the student with family name \"Zieme\" and personal name \"Bernie\".", "output": "SELECT T1.date_of_enrolment, T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.family_name = \"Zieme\" AND T2.personal_name = \"Bernie\"" }
### INSTRUCTION Show all the cinema names and opening years in descending order of opening year. ### INPUT CREATE TABLE cinema (name VARCHAR, openning_year VARCHAR) ### OUTPUT SELECT name, openning_year FROM cinema ORDER BY openning_year DESC
{ "input": "CREATE TABLE cinema (name VARCHAR, openning_year VARCHAR)", "instruction": "Show all the cinema names and opening years in descending order of opening year.", "output": "SELECT name, openning_year FROM cinema ORDER BY openning_year DESC" }
### INSTRUCTION Name the series number for m. scott veach & rebecca kirsch ### INPUT CREATE TABLE table_20704243_5 (series__number VARCHAR, written_by VARCHAR) ### OUTPUT SELECT series__number FROM table_20704243_5 WHERE written_by = "M. Scott Veach & Rebecca Kirsch"
{ "input": "CREATE TABLE table_20704243_5 (series__number VARCHAR, written_by VARCHAR)", "instruction": "Name the series number for m. scott veach & rebecca kirsch", "output": "SELECT series__number FROM table_20704243_5 WHERE written_by = \"M. Scott Veach & Rebecca Kirsch\"" }
### INSTRUCTION How many date of appointments are there when the date of vacancy was 2 october 2010? ### INPUT CREATE TABLE table_26976615_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR) ### OUTPUT SELECT COUNT(date_of_appointment) FROM table_26976615_3 WHERE date_of_vacancy = "2 October 2010"
{ "input": "CREATE TABLE table_26976615_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)", "instruction": "How many date of appointments are there when the date of vacancy was 2 october 2010?", "output": "SELECT COUNT(date_of_appointment) FROM table_26976615_3 WHERE date_of_vacancy = \"2 October 2010\"" }
### INSTRUCTION Show the names of phones and the districts of markets they are on, in ascending order of the ranking of the market. ### INPUT CREATE TABLE market (District VARCHAR, Market_ID VARCHAR, Ranking VARCHAR); CREATE TABLE phone (Name VARCHAR, Phone_ID VARCHAR); CREATE TABLE phone_market (Market_ID VARCHAR, Phone_ID VARCHAR) ### OUTPUT SELECT T3.Name, T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID ORDER BY T2.Ranking
{ "input": "CREATE TABLE market (District VARCHAR, Market_ID VARCHAR, Ranking VARCHAR); CREATE TABLE phone (Name VARCHAR, Phone_ID VARCHAR); CREATE TABLE phone_market (Market_ID VARCHAR, Phone_ID VARCHAR)", "instruction": "Show the names of phones and the districts of markets they are on, in ascending order of the ranking of the market.", "output": "SELECT T3.Name, T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID ORDER BY T2.Ranking" }
### INSTRUCTION In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427? ### INPUT CREATE TABLE table_name_48 (lyrics VARCHAR, date VARCHAR, catalog_number VARCHAR) ### OUTPUT SELECT lyrics FROM table_name_48 WHERE date = "august 10, 2005" AND catalog_number = "tocp-66427"
{ "input": "CREATE TABLE table_name_48 (lyrics VARCHAR, date VARCHAR, catalog_number VARCHAR)", "instruction": "In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427?", "output": "SELECT lyrics FROM table_name_48 WHERE date = \"august 10, 2005\" AND catalog_number = \"tocp-66427\"" }
### INSTRUCTION When Herb Graver played, how many field goals were made when there were more than 50 points, less than 15 touchdowns, and more than 0 extra points? ### INPUT CREATE TABLE table_name_87 (field_goals INTEGER, touchdowns VARCHAR, player VARCHAR, points VARCHAR, extra_points VARCHAR) ### OUTPUT SELECT AVG(field_goals) FROM table_name_87 WHERE points > 50 AND extra_points > 0 AND player = "herb graver" AND touchdowns < 15
{ "input": "CREATE TABLE table_name_87 (field_goals INTEGER, touchdowns VARCHAR, player VARCHAR, points VARCHAR, extra_points VARCHAR)", "instruction": "When Herb Graver played, how many field goals were made when there were more than 50 points, less than 15 touchdowns, and more than 0 extra points?", "output": "SELECT AVG(field_goals) FROM table_name_87 WHERE points > 50 AND extra_points > 0 AND player = \"herb graver\" AND touchdowns < 15" }
### INSTRUCTION What score has vancouver as the home, and february 16 as the date? ### INPUT CREATE TABLE table_name_81 (score VARCHAR, home VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_81 WHERE home = "vancouver" AND date = "february 16"
{ "input": "CREATE TABLE table_name_81 (score VARCHAR, home VARCHAR, date VARCHAR)", "instruction": "What score has vancouver as the home, and february 16 as the date?", "output": "SELECT score FROM table_name_81 WHERE home = \"vancouver\" AND date = \"february 16\"" }
### INSTRUCTION when the nickname halley is used, what are the date completed ### INPUT CREATE TABLE table_15070195_1 (date_completed VARCHAR, nickname VARCHAR) ### OUTPUT SELECT date_completed FROM table_15070195_1 WHERE nickname = "Halley"
{ "input": "CREATE TABLE table_15070195_1 (date_completed VARCHAR, nickname VARCHAR)", "instruction": "when the nickname halley is used, what are the date completed", "output": "SELECT date_completed FROM table_15070195_1 WHERE nickname = \"Halley\"" }
### INSTRUCTION Show the names of countries that have more than one roller coaster. ### INPUT CREATE TABLE roller_coaster (Country_ID VARCHAR); CREATE TABLE country (Name VARCHAR, Country_ID VARCHAR) ### OUTPUT SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT(*) > 1
{ "input": "CREATE TABLE roller_coaster (Country_ID VARCHAR); CREATE TABLE country (Name VARCHAR, Country_ID VARCHAR)", "instruction": "Show the names of countries that have more than one roller coaster.", "output": "SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT(*) > 1" }
### INSTRUCTION Name the grand prix for casey stoner and circuit of losail ### INPUT CREATE TABLE table_name_55 (grand_prix VARCHAR, motogp_winner VARCHAR, circuit VARCHAR) ### OUTPUT SELECT grand_prix FROM table_name_55 WHERE motogp_winner = "casey stoner" AND circuit = "losail"
{ "input": "CREATE TABLE table_name_55 (grand_prix VARCHAR, motogp_winner VARCHAR, circuit VARCHAR)", "instruction": "Name the grand prix for casey stoner and circuit of losail", "output": "SELECT grand_prix FROM table_name_55 WHERE motogp_winner = \"casey stoner\" AND circuit = \"losail\"" }
### INSTRUCTION List title of albums have the number of tracks greater than 10. ### INPUT CREATE TABLE tracks (album_id VARCHAR); CREATE TABLE albums (title VARCHAR, id VARCHAR) ### OUTPUT SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING COUNT(T1.id) > 10
{ "input": "CREATE TABLE tracks (album_id VARCHAR); CREATE TABLE albums (title VARCHAR, id VARCHAR)", "instruction": "List title of albums have the number of tracks greater than 10.", "output": "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING COUNT(T1.id) > 10" }
### INSTRUCTION Which team had a final stage when Claudio Chiappucci had the points? ### INPUT CREATE TABLE table_name_23 (trofeo_fast_team VARCHAR, points_classification VARCHAR, stage VARCHAR) ### OUTPUT SELECT trofeo_fast_team FROM table_name_23 WHERE points_classification = "claudio chiappucci" AND stage = "final"
{ "input": "CREATE TABLE table_name_23 (trofeo_fast_team VARCHAR, points_classification VARCHAR, stage VARCHAR)", "instruction": "Which team had a final stage when Claudio Chiappucci had the points?", "output": "SELECT trofeo_fast_team FROM table_name_23 WHERE points_classification = \"claudio chiappucci\" AND stage = \"final\"" }
### INSTRUCTION Which Producer(s) has a Track smaller than 8, and a Songwriter(s) of hadise açıkgöz, yves jongen, and a Length of 3:08? ### INPUT CREATE TABLE table_name_46 (producer_s_ VARCHAR, length VARCHAR, track VARCHAR, songwriter_s_ VARCHAR) ### OUTPUT SELECT producer_s_ FROM table_name_46 WHERE track < 8 AND songwriter_s_ = "hadise açıkgöz, yves jongen" AND length = "3:08"
{ "input": "CREATE TABLE table_name_46 (producer_s_ VARCHAR, length VARCHAR, track VARCHAR, songwriter_s_ VARCHAR)", "instruction": "Which Producer(s) has a Track smaller than 8, and a Songwriter(s) of hadise açıkgöz, yves jongen, and a Length of 3:08?", "output": "SELECT producer_s_ FROM table_name_46 WHERE track < 8 AND songwriter_s_ = \"hadise açıkgöz, yves jongen\" AND length = \"3:08\"" }
### INSTRUCTION What is the pick for the Maryland-Eastern Shore team with a round lower than 2? ### INPUT CREATE TABLE table_name_70 (pick INTEGER, school_club_team VARCHAR, round VARCHAR) ### OUTPUT SELECT SUM(pick) FROM table_name_70 WHERE school_club_team = "maryland-eastern shore" AND round < 2
{ "input": "CREATE TABLE table_name_70 (pick INTEGER, school_club_team VARCHAR, round VARCHAR)", "instruction": "What is the pick for the Maryland-Eastern Shore team with a round lower than 2?", "output": "SELECT SUM(pick) FROM table_name_70 WHERE school_club_team = \"maryland-eastern shore\" AND round < 2" }
### INSTRUCTION Which Country has a Label of Toshiba-emi and a Catalog of vjcp-68403? ### INPUT CREATE TABLE table_name_95 (country VARCHAR, label VARCHAR, catalog VARCHAR) ### OUTPUT SELECT country FROM table_name_95 WHERE label = "toshiba-emi" AND catalog = "vjcp-68403"
{ "input": "CREATE TABLE table_name_95 (country VARCHAR, label VARCHAR, catalog VARCHAR)", "instruction": "Which Country has a Label of Toshiba-emi and a Catalog of vjcp-68403?", "output": "SELECT country FROM table_name_95 WHERE label = \"toshiba-emi\" AND catalog = \"vjcp-68403\"" }
### INSTRUCTION When Essendon was the Home Team, what was the Away Team score? ### INPUT CREATE TABLE table_name_43 (away_team VARCHAR, home_team VARCHAR) ### OUTPUT SELECT away_team AS score FROM table_name_43 WHERE home_team = "essendon"
{ "input": "CREATE TABLE table_name_43 (away_team VARCHAR, home_team VARCHAR)", "instruction": "When Essendon was the Home Team, what was the Away Team score?", "output": "SELECT away_team AS score FROM table_name_43 WHERE home_team = \"essendon\"" }
### INSTRUCTION Which Whitten has a Stuart of bass, and a Paul McCartney of electric guitar? ### INPUT CREATE TABLE table_name_12 (whitten VARCHAR, stuart VARCHAR, paul_mccartney VARCHAR) ### OUTPUT SELECT whitten FROM table_name_12 WHERE stuart = "bass" AND paul_mccartney = "electric guitar"
{ "input": "CREATE TABLE table_name_12 (whitten VARCHAR, stuart VARCHAR, paul_mccartney VARCHAR)", "instruction": "Which Whitten has a Stuart of bass, and a Paul McCartney of electric guitar?", "output": "SELECT whitten FROM table_name_12 WHERE stuart = \"bass\" AND paul_mccartney = \"electric guitar\"" }
### INSTRUCTION what's the winner with purse( $ ) value of bigger than 964017.2297960471 and date value of may 28 ### INPUT CREATE TABLE table_11621915_1 (winner VARCHAR, purse__$__ VARCHAR, date VARCHAR) ### OUTPUT SELECT winner FROM table_11621915_1 WHERE purse__$__ > 964017.2297960471 AND date = "May 28"
{ "input": "CREATE TABLE table_11621915_1 (winner VARCHAR, purse__$__ VARCHAR, date VARCHAR)", "instruction": "what's the winner with purse( $ ) value of bigger than 964017.2297960471 and date value of may 28", "output": "SELECT winner FROM table_11621915_1 WHERE purse__$__ > 964017.2297960471 AND date = \"May 28\"" }
### INSTRUCTION which Surface has Opponents in the final of mark edmondson sherwood stewart, and a Tournament of dallas , u.s.? ### INPUT CREATE TABLE table_name_74 (surface VARCHAR, opponents_in_the_final VARCHAR, tournament VARCHAR) ### OUTPUT SELECT surface FROM table_name_74 WHERE opponents_in_the_final = "mark edmondson sherwood stewart" AND tournament = "dallas , u.s."
{ "input": "CREATE TABLE table_name_74 (surface VARCHAR, opponents_in_the_final VARCHAR, tournament VARCHAR)", "instruction": "which Surface has Opponents in the final of mark edmondson sherwood stewart, and a Tournament of dallas , u.s.?", "output": "SELECT surface FROM table_name_74 WHERE opponents_in_the_final = \"mark edmondson sherwood stewart\" AND tournament = \"dallas , u.s.\"" }
### INSTRUCTION How many "goals against" were scored at the club that had a "goal difference" of 0, 12 wins, and more than 44 goals? ### INPUT CREATE TABLE table_name_13 (goals_against VARCHAR, goals_for VARCHAR, goal_difference VARCHAR, wins VARCHAR) ### OUTPUT SELECT COUNT(goals_against) FROM table_name_13 WHERE goal_difference = 0 AND wins = 12 AND goals_for > 44
{ "input": "CREATE TABLE table_name_13 (goals_against VARCHAR, goals_for VARCHAR, goal_difference VARCHAR, wins VARCHAR)", "instruction": "How many \"goals against\" were scored at the club that had a \"goal difference\" of 0, 12 wins, and more than 44 goals?", "output": "SELECT COUNT(goals_against) FROM table_name_13 WHERE goal_difference = 0 AND wins = 12 AND goals_for > 44" }
### INSTRUCTION What is the sum of silver medals for teams with more than 14 total medals and more than 16 golds? ### INPUT CREATE TABLE table_name_14 (silver INTEGER, total VARCHAR, gold VARCHAR) ### OUTPUT SELECT SUM(silver) FROM table_name_14 WHERE total > 14 AND gold > 16
{ "input": "CREATE TABLE table_name_14 (silver INTEGER, total VARCHAR, gold VARCHAR)", "instruction": "What is the sum of silver medals for teams with more than 14 total medals and more than 16 golds?", "output": "SELECT SUM(silver) FROM table_name_14 WHERE total > 14 AND gold > 16" }
### INSTRUCTION What is the last name of the author that has published the most papers? ### INPUT CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (lname VARCHAR, fname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR) ### OUTPUT SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname, t1.lname ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (lname VARCHAR, fname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR)", "instruction": "What is the last name of the author that has published the most papers?", "output": "SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname, t1.lname ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What are the ids of all students for courses and what are the names of those courses? ### INPUT CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR, course_id VARCHAR) ### OUTPUT SELECT T1.student_id, T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id
{ "input": "CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR, course_id VARCHAR)", "instruction": "What are the ids of all students for courses and what are the names of those courses?", "output": "SELECT T1.student_id, T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id" }
### INSTRUCTION Which company name has headquarters in nagaokakyo, kyoto? ### INPUT CREATE TABLE table_237199_1 (company_name VARCHAR, world_headquarters VARCHAR) ### OUTPUT SELECT company_name FROM table_237199_1 WHERE world_headquarters = "Nagaokakyo, Kyoto"
{ "input": "CREATE TABLE table_237199_1 (company_name VARCHAR, world_headquarters VARCHAR)", "instruction": "Which company name has headquarters in nagaokakyo, kyoto?", "output": "SELECT company_name FROM table_237199_1 WHERE world_headquarters = \"Nagaokakyo, Kyoto\"" }
### INSTRUCTION state the winnings of yates racing front row motorsports where poles were 0 ### INPUT CREATE TABLE table_2012187_1 (winnings VARCHAR, poles VARCHAR, team_s_ VARCHAR) ### OUTPUT SELECT winnings FROM table_2012187_1 WHERE poles = 0 AND team_s_ = "Yates Racing Front Row Motorsports"
{ "input": "CREATE TABLE table_2012187_1 (winnings VARCHAR, poles VARCHAR, team_s_ VARCHAR)", "instruction": "state the winnings of yates racing front row motorsports where poles were 0", "output": "SELECT winnings FROM table_2012187_1 WHERE poles = 0 AND team_s_ = \"Yates Racing Front Row Motorsports\"" }
### INSTRUCTION Who was the girl of the week 3 weeks after brianne bailey in the same month? ### INPUT CREATE TABLE table_name_65 (week_5 VARCHAR, week_2 VARCHAR) ### OUTPUT SELECT week_5 FROM table_name_65 WHERE week_2 = "brianne bailey"
{ "input": "CREATE TABLE table_name_65 (week_5 VARCHAR, week_2 VARCHAR)", "instruction": "Who was the girl of the week 3 weeks after brianne bailey in the same month?", "output": "SELECT week_5 FROM table_name_65 WHERE week_2 = \"brianne bailey\"" }
### INSTRUCTION Who previously attended south kent school / brentwood hs? ### INPUT CREATE TABLE table_29050051_3 (name VARCHAR, previous_school VARCHAR) ### OUTPUT SELECT name FROM table_29050051_3 WHERE previous_school = "South Kent School / Brentwood HS"
{ "input": "CREATE TABLE table_29050051_3 (name VARCHAR, previous_school VARCHAR)", "instruction": "Who previously attended south kent school / brentwood hs?", "output": "SELECT name FROM table_29050051_3 WHERE previous_school = \"South Kent School / Brentwood HS\"" }
### INSTRUCTION Show id, first and last names for all customers with at least two cards. ### INPUT CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR) ### OUTPUT SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2
{ "input": "CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)", "instruction": "Show id, first and last names for all customers with at least two cards.", "output": "SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2" }
### INSTRUCTION What is the name and country of origin of the artist who released a song that has "love" in its title? ### INPUT CREATE TABLE song (artist_name VARCHAR, song_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR) ### OUTPUT SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE "%love%"
{ "input": "CREATE TABLE song (artist_name VARCHAR, song_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)", "instruction": "What is the name and country of origin of the artist who released a song that has \"love\" in its title?", "output": "SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE \"%love%\"" }
### INSTRUCTION Show me the departure date and arrival date for all flights from Los Angeles to Honolulu. ### INPUT CREATE TABLE Flight (departure_date VARCHAR, arrival_date VARCHAR, origin VARCHAR, destination VARCHAR) ### OUTPUT SELECT departure_date, arrival_date FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu"
{ "input": "CREATE TABLE Flight (departure_date VARCHAR, arrival_date VARCHAR, origin VARCHAR, destination VARCHAR)", "instruction": "Show me the departure date and arrival date for all flights from Los Angeles to Honolulu.", "output": "SELECT departure_date, arrival_date FROM Flight WHERE origin = \"Los Angeles\" AND destination = \"Honolulu\"" }
### INSTRUCTION For democratic party, countries represented is montgomery and where committee is judiciary mention all the delegate name. ### INPUT CREATE TABLE table_27050336_7 (delegate VARCHAR, counties_represented VARCHAR, committee VARCHAR, party VARCHAR) ### OUTPUT SELECT delegate FROM table_27050336_7 WHERE committee = "Judiciary" AND party = "Democratic" AND counties_represented = "Montgomery"
{ "input": "CREATE TABLE table_27050336_7 (delegate VARCHAR, counties_represented VARCHAR, committee VARCHAR, party VARCHAR)", "instruction": "For democratic party, countries represented is montgomery and where committee is judiciary mention all the delegate name.", "output": "SELECT delegate FROM table_27050336_7 WHERE committee = \"Judiciary\" AND party = \"Democratic\" AND counties_represented = \"Montgomery\"" }
### INSTRUCTION Which vocal type has the band mate with first name "Marianne" played the most? ### INPUT CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR) ### OUTPUT SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Marianne" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR)", "instruction": "Which vocal type has the band mate with first name \"Marianne\" played the most?", "output": "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = \"Marianne\" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is Regulator, when Conduct of Litigation is Yes, and when Probate Activities is Yes? ### INPUT CREATE TABLE table_name_13 (regulator VARCHAR, conduct_of_litigation VARCHAR, probate_activities VARCHAR) ### OUTPUT SELECT regulator FROM table_name_13 WHERE conduct_of_litigation = "yes" AND probate_activities = "yes"
{ "input": "CREATE TABLE table_name_13 (regulator VARCHAR, conduct_of_litigation VARCHAR, probate_activities VARCHAR)", "instruction": "What is Regulator, when Conduct of Litigation is Yes, and when Probate Activities is Yes?", "output": "SELECT regulator FROM table_name_13 WHERE conduct_of_litigation = \"yes\" AND probate_activities = \"yes\"" }
### INSTRUCTION Who was the EP winning team when the CP winning team was Dave Clark and the GM winning team was Stuart Northrup? ### INPUT CREATE TABLE table_29225103_2 (ep_winning_team VARCHAR, cp_winning_team VARCHAR, gm_winning_team VARCHAR) ### OUTPUT SELECT ep_winning_team FROM table_29225103_2 WHERE cp_winning_team = "Dave Clark" AND gm_winning_team = "Stuart Northrup"
{ "input": "CREATE TABLE table_29225103_2 (ep_winning_team VARCHAR, cp_winning_team VARCHAR, gm_winning_team VARCHAR)", "instruction": "Who was the EP winning team when the CP winning team was Dave Clark and the GM winning team was Stuart Northrup?", "output": "SELECT ep_winning_team FROM table_29225103_2 WHERE cp_winning_team = \"Dave Clark\" AND gm_winning_team = \"Stuart Northrup\"" }
### INSTRUCTION What was the highest number of students in Fall 09 in the state that had 3821 in Fall 06? ### INPUT CREATE TABLE table_15055594_6 (fall_09 INTEGER, fall_06 VARCHAR) ### OUTPUT SELECT MAX(fall_09) FROM table_15055594_6 WHERE fall_06 = 3821
{ "input": "CREATE TABLE table_15055594_6 (fall_09 INTEGER, fall_06 VARCHAR)", "instruction": "What was the highest number of students in Fall 09 in the state that had 3821 in Fall 06?", "output": "SELECT MAX(fall_09) FROM table_15055594_6 WHERE fall_06 = 3821" }
### INSTRUCTION What is the score for Set 2 at 15:21? ### INPUT CREATE TABLE table_name_48 (score VARCHAR, set_2 VARCHAR) ### OUTPUT SELECT score FROM table_name_48 WHERE set_2 = "15:21"
{ "input": "CREATE TABLE table_name_48 (score VARCHAR, set_2 VARCHAR)", "instruction": "What is the score for Set 2 at 15:21?", "output": "SELECT score FROM table_name_48 WHERE set_2 = \"15:21\"" }
### INSTRUCTION what is the height when the locale is nepean sea road, floors is more than 30 and sr no is 58? ### INPUT CREATE TABLE table_name_99 (height VARCHAR, sr_no VARCHAR, locale VARCHAR, floors VARCHAR) ### OUTPUT SELECT height FROM table_name_99 WHERE locale = "nepean sea road" AND floors > 30 AND sr_no = 58
{ "input": "CREATE TABLE table_name_99 (height VARCHAR, sr_no VARCHAR, locale VARCHAR, floors VARCHAR)", "instruction": "what is the height when the locale is nepean sea road, floors is more than 30 and sr no is 58?", "output": "SELECT height FROM table_name_99 WHERE locale = \"nepean sea road\" AND floors > 30 AND sr_no = 58" }
### INSTRUCTION Which service id and type has the least number of participants? ### INPUT CREATE TABLE Participants_in_Events (Participant_ID VARCHAR, Event_ID VARCHAR); CREATE TABLE services (Service_Type_Code VARCHAR, service_id VARCHAR); CREATE TABLE EVENTS (service_id VARCHAR, Event_ID VARCHAR); CREATE TABLE participants (Participant_ID VARCHAR) ### OUTPUT SELECT T3.service_id, T4.Service_Type_Code FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID JOIN EVENTS AS T3 ON T2.Event_ID = T3.Event_ID JOIN services AS T4 ON T3.service_id = T4.service_id GROUP BY T3.service_id ORDER BY COUNT(*) LIMIT 1
{ "input": "CREATE TABLE Participants_in_Events (Participant_ID VARCHAR, Event_ID VARCHAR); CREATE TABLE services (Service_Type_Code VARCHAR, service_id VARCHAR); CREATE TABLE EVENTS (service_id VARCHAR, Event_ID VARCHAR); CREATE TABLE participants (Participant_ID VARCHAR)", "instruction": "Which service id and type has the least number of participants?", "output": "SELECT T3.service_id, T4.Service_Type_Code FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID JOIN EVENTS AS T3 ON T2.Event_ID = T3.Event_ID JOIN services AS T4 ON T3.service_id = T4.service_id GROUP BY T3.service_id ORDER BY COUNT(*) LIMIT 1" }
### INSTRUCTION What is the outcome of the match against Sylvia Hanika on a hard (i) surface? ### INPUT CREATE TABLE table_name_75 (outcome VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR) ### OUTPUT SELECT outcome FROM table_name_75 WHERE opponent_in_the_final = "sylvia hanika" AND surface = "hard (i)"
{ "input": "CREATE TABLE table_name_75 (outcome VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR)", "instruction": "What is the outcome of the match against Sylvia Hanika on a hard (i) surface?", "output": "SELECT outcome FROM table_name_75 WHERE opponent_in_the_final = \"sylvia hanika\" AND surface = \"hard (i)\"" }
### INSTRUCTION what is the conference joined for the county 69 ripley in 1952 in versailles? ### INPUT CREATE TABLE table_name_58 (conference_joined VARCHAR, location VARCHAR, county VARCHAR, year_joined VARCHAR) ### OUTPUT SELECT conference_joined FROM table_name_58 WHERE county = "69 ripley" AND year_joined = 1952 AND location = "versailles"
{ "input": "CREATE TABLE table_name_58 (conference_joined VARCHAR, location VARCHAR, county VARCHAR, year_joined VARCHAR)", "instruction": "what is the conference joined for the county 69 ripley in 1952 in versailles?", "output": "SELECT conference_joined FROM table_name_58 WHERE county = \"69 ripley\" AND year_joined = 1952 AND location = \"versailles\"" }
### INSTRUCTION Name the most number for automóvil club argentino for benedicto campos ### INPUT CREATE TABLE table_21977704_1 (no INTEGER, entrant VARCHAR, driver VARCHAR) ### OUTPUT SELECT MAX(no) FROM table_21977704_1 WHERE entrant = "Automóvil Club Argentino" AND driver = "Benedicto Campos"
{ "input": "CREATE TABLE table_21977704_1 (no INTEGER, entrant VARCHAR, driver VARCHAR)", "instruction": "Name the most number for automóvil club argentino for benedicto campos", "output": "SELECT MAX(no) FROM table_21977704_1 WHERE entrant = \"Automóvil Club Argentino\" AND driver = \"Benedicto Campos\"" }
### INSTRUCTION What turbo has a L2 cache of 4 × 256 kb, a release date of June 2013, and a Model number of core i7-4770s? ### INPUT CREATE TABLE table_name_78 (turbo VARCHAR, model_number VARCHAR, l2_cache VARCHAR, release_date VARCHAR) ### OUTPUT SELECT turbo FROM table_name_78 WHERE l2_cache = "4 × 256 kb" AND release_date = "june 2013" AND model_number = "core i7-4770s"
{ "input": "CREATE TABLE table_name_78 (turbo VARCHAR, model_number VARCHAR, l2_cache VARCHAR, release_date VARCHAR)", "instruction": "What turbo has a L2 cache of 4 × 256 kb, a release date of June 2013, and a Model number of core i7-4770s?", "output": "SELECT turbo FROM table_name_78 WHERE l2_cache = \"4 × 256 kb\" AND release_date = \"june 2013\" AND model_number = \"core i7-4770s\"" }
### INSTRUCTION What's the name of the competition where the nationality is Brazil and the voting percentage is n/a? ### INPUT CREATE TABLE table_24765815_2 (competition VARCHAR, vote_percentage VARCHAR, nationality VARCHAR) ### OUTPUT SELECT competition FROM table_24765815_2 WHERE vote_percentage = "N/A" AND nationality = "Brazil"
{ "input": "CREATE TABLE table_24765815_2 (competition VARCHAR, vote_percentage VARCHAR, nationality VARCHAR)", "instruction": "What's the name of the competition where the nationality is Brazil and the voting percentage is n/a?", "output": "SELECT competition FROM table_24765815_2 WHERE vote_percentage = \"N/A\" AND nationality = \"Brazil\"" }
### INSTRUCTION Name the number of production code for 5.08 ### INPUT CREATE TABLE table_18569389_1 (production_code VARCHAR, us_viewers__million_ VARCHAR) ### OUTPUT SELECT COUNT(production_code) FROM table_18569389_1 WHERE us_viewers__million_ = "5.08"
{ "input": "CREATE TABLE table_18569389_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)", "instruction": "Name the number of production code for 5.08", "output": "SELECT COUNT(production_code) FROM table_18569389_1 WHERE us_viewers__million_ = \"5.08\"" }
### INSTRUCTION Show the delegates and the names of county they belong to. ### INPUT CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR) ### OUTPUT SELECT T2.Delegate, T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District
{ "input": "CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR)", "instruction": "Show the delegates and the names of county they belong to.", "output": "SELECT T2.Delegate, T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District" }
### INSTRUCTION What kind of decor has the least number of reservations? ### INPUT CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (decor VARCHAR, RoomId VARCHAR) ### OUTPUT SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T2.decor ORDER BY COUNT(T2.decor) LIMIT 1
{ "input": "CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (decor VARCHAR, RoomId VARCHAR)", "instruction": "What kind of decor has the least number of reservations?", "output": "SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T2.decor ORDER BY COUNT(T2.decor) LIMIT 1" }
### INSTRUCTION List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born. ### INPUT CREATE TABLE management (department_id VARCHAR, head_id VARCHAR); CREATE TABLE head (born_state VARCHAR, head_id VARCHAR); CREATE TABLE department (department_id VARCHAR, name VARCHAR) ### OUTPUT SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Treasury' INTERSECT SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Homeland Security'
{ "input": "CREATE TABLE management (department_id VARCHAR, head_id VARCHAR); CREATE TABLE head (born_state VARCHAR, head_id VARCHAR); CREATE TABLE department (department_id VARCHAR, name VARCHAR)", "instruction": "List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born.", "output": "SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Treasury' INTERSECT SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Homeland Security'" }
### INSTRUCTION What is the regulated retail price for the tariff code ff0 prs? ### INPUT CREATE TABLE table_10408617_5 (bts_retail_price__regulated_ VARCHAR, tariff_code VARCHAR) ### OUTPUT SELECT bts_retail_price__regulated_ FROM table_10408617_5 WHERE tariff_code = "ff0 PRS"
{ "input": "CREATE TABLE table_10408617_5 (bts_retail_price__regulated_ VARCHAR, tariff_code VARCHAR)", "instruction": "What is the regulated retail price for the tariff code ff0 prs?", "output": "SELECT bts_retail_price__regulated_ FROM table_10408617_5 WHERE tariff_code = \"ff0 PRS\"" }
### INSTRUCTION What is the FIPS code for the municipality that has an area of 114.76 sq mi (297.23 sq km) and had a 2010 population of less than 166,327? ### INPUT CREATE TABLE table_name_70 (fips_code INTEGER, area VARCHAR, population__2010_ VARCHAR) ### OUTPUT SELECT AVG(fips_code) FROM table_name_70 WHERE area = "114.76 sq mi (297.23 sq km)" AND population__2010_ < 166 OFFSET 327
{ "input": "CREATE TABLE table_name_70 (fips_code INTEGER, area VARCHAR, population__2010_ VARCHAR)", "instruction": "What is the FIPS code for the municipality that has an area of 114.76 sq mi (297.23 sq km) and had a 2010 population of less than 166,327?", "output": "SELECT AVG(fips_code) FROM table_name_70 WHERE area = \"114.76 sq mi (297.23 sq km)\" AND population__2010_ < 166 OFFSET 327" }
### INSTRUCTION Find the name and id of accounts whose checking balance is below the maximum checking balance. ### INPUT CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER) ### OUTPUT SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT MAX(balance) FROM checking)
{ "input": "CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER)", "instruction": "Find the name and id of accounts whose checking balance is below the maximum checking balance.", "output": "SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT MAX(balance) FROM checking)" }
### INSTRUCTION Who are the finals opponents for the match with partner Ricardo Hocevar? ### INPUT CREATE TABLE table_name_44 (opponents_in_the_final VARCHAR, partnering VARCHAR) ### OUTPUT SELECT opponents_in_the_final FROM table_name_44 WHERE partnering = "ricardo hocevar"
{ "input": "CREATE TABLE table_name_44 (opponents_in_the_final VARCHAR, partnering VARCHAR)", "instruction": "Who are the finals opponents for the match with partner Ricardo Hocevar?", "output": "SELECT opponents_in_the_final FROM table_name_44 WHERE partnering = \"ricardo hocevar\"" }
### INSTRUCTION What is the total number of James Bond 007: Everything or Nothing for each system? ### INPUT CREATE TABLE table_10875694_11 (system VARCHAR, title VARCHAR) ### OUTPUT SELECT COUNT(system) FROM table_10875694_11 WHERE title = "James Bond 007: Everything or Nothing"
{ "input": "CREATE TABLE table_10875694_11 (system VARCHAR, title VARCHAR)", "instruction": "What is the total number of James Bond 007: Everything or Nothing for each system?", "output": "SELECT COUNT(system) FROM table_10875694_11 WHERE title = \"James Bond 007: Everything or Nothing\"" }
### INSTRUCTION What is the mean Evaluation number (Before April 2009) when the percentage of negative evaluations was 0.8% and the mean Evaluation number of April 2009 was 4.2? ### INPUT CREATE TABLE table_name_41 (evaluation_average__before_april_2009_ VARCHAR, _percentage_of_negative_evaluations VARCHAR, evaluation_average__from_april_2009_ VARCHAR) ### OUTPUT SELECT evaluation_average__before_april_2009_ FROM table_name_41 WHERE _percentage_of_negative_evaluations = "0.8%" AND evaluation_average__from_april_2009_ = "4.2"
{ "input": "CREATE TABLE table_name_41 (evaluation_average__before_april_2009_ VARCHAR, _percentage_of_negative_evaluations VARCHAR, evaluation_average__from_april_2009_ VARCHAR)", "instruction": "What is the mean Evaluation number (Before April 2009) when the percentage of negative evaluations was 0.8% and the mean Evaluation number of April 2009 was 4.2?", "output": "SELECT evaluation_average__before_april_2009_ FROM table_name_41 WHERE _percentage_of_negative_evaluations = \"0.8%\" AND evaluation_average__from_april_2009_ = \"4.2\"" }
### INSTRUCTION Show the transaction type descriptions and dates if the share count is smaller than 10. ### INPUT CREATE TABLE Ref_Transaction_Types (transaction_type_description VARCHAR, transaction_type_code VARCHAR); CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, transaction_type_code VARCHAR, share_count INTEGER) ### OUTPUT SELECT T1.transaction_type_description, T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10
{ "input": "CREATE TABLE Ref_Transaction_Types (transaction_type_description VARCHAR, transaction_type_code VARCHAR); CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, transaction_type_code VARCHAR, share_count INTEGER)", "instruction": "Show the transaction type descriptions and dates if the share count is smaller than 10.", "output": "SELECT T1.transaction_type_description, T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10" }
### INSTRUCTION What us the number of the round during which #56 Blue Thunder Racing become the GTP winning team and #38 Mandeville Auto Tech became the GTO winning team? ### INPUT CREATE TABLE table_13643320_2 (rnd VARCHAR, gtp_winning_team VARCHAR, gto_winning_team VARCHAR) ### OUTPUT SELECT rnd FROM table_13643320_2 WHERE gtp_winning_team = "#56 Blue Thunder Racing" AND gto_winning_team = "#38 Mandeville Auto Tech"
{ "input": "CREATE TABLE table_13643320_2 (rnd VARCHAR, gtp_winning_team VARCHAR, gto_winning_team VARCHAR)", "instruction": "What us the number of the round during which #56 Blue Thunder Racing become the GTP winning team and #38 Mandeville Auto Tech became the GTO winning team? ", "output": "SELECT rnd FROM table_13643320_2 WHERE gtp_winning_team = \"#56 Blue Thunder Racing\" AND gto_winning_team = \"#38 Mandeville Auto Tech\"" }
### INSTRUCTION What are all the languages for tsotsi? ### INPUT CREATE TABLE table_13700749_1 (language_s_ VARCHAR, film_title VARCHAR) ### OUTPUT SELECT language_s_ FROM table_13700749_1 WHERE film_title = "Tsotsi"
{ "input": "CREATE TABLE table_13700749_1 (language_s_ VARCHAR, film_title VARCHAR)", "instruction": "What are all the languages for tsotsi?", "output": "SELECT language_s_ FROM table_13700749_1 WHERE film_title = \"Tsotsi\"" }
### INSTRUCTION What was the round for 29 January 1949, when the against was 1? ### INPUT CREATE TABLE table_name_52 (round VARCHAR, against VARCHAR, date VARCHAR) ### OUTPUT SELECT round FROM table_name_52 WHERE against = 1 AND date = "29 january 1949"
{ "input": "CREATE TABLE table_name_52 (round VARCHAR, against VARCHAR, date VARCHAR)", "instruction": "What was the round for 29 January 1949, when the against was 1?", "output": "SELECT round FROM table_name_52 WHERE against = 1 AND date = \"29 january 1949\"" }
### INSTRUCTION Which Score has a Home of quebec nordiques on april 16? ### INPUT CREATE TABLE table_name_83 (score VARCHAR, home VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_83 WHERE home = "quebec nordiques" AND date = "april 16"
{ "input": "CREATE TABLE table_name_83 (score VARCHAR, home VARCHAR, date VARCHAR)", "instruction": "Which Score has a Home of quebec nordiques on april 16?", "output": "SELECT score FROM table_name_83 WHERE home = \"quebec nordiques\" AND date = \"april 16\"" }
### INSTRUCTION How many Poles have a Class of 125cc, and a Team of matteoni racing team, and Points larger than 3? ### INPUT CREATE TABLE table_name_39 (poles INTEGER, points VARCHAR, class VARCHAR, team VARCHAR) ### OUTPUT SELECT SUM(poles) FROM table_name_39 WHERE class = "125cc" AND team = "matteoni racing team" AND points > 3
{ "input": "CREATE TABLE table_name_39 (poles INTEGER, points VARCHAR, class VARCHAR, team VARCHAR)", "instruction": "How many Poles have a Class of 125cc, and a Team of matteoni racing team, and Points larger than 3?", "output": "SELECT SUM(poles) FROM table_name_39 WHERE class = \"125cc\" AND team = \"matteoni racing team\" AND points > 3" }
### INSTRUCTION What original air date has 5.85 u.s. viewers (million)? ### INPUT CREATE TABLE table_27117365_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR) ### OUTPUT SELECT original_air_date FROM table_27117365_1 WHERE us_viewers__million_ = "5.85"
{ "input": "CREATE TABLE table_27117365_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)", "instruction": "What original air date has 5.85 u.s. viewers (million)?", "output": "SELECT original_air_date FROM table_27117365_1 WHERE us_viewers__million_ = \"5.85\"" }
### INSTRUCTION with delivery date of 2001 2001 what is gross tonnage? ### INPUT CREATE TABLE table_name_35 (gross_tonnage INTEGER, delivery_date VARCHAR) ### OUTPUT SELECT AVG(gross_tonnage) FROM table_name_35 WHERE delivery_date = "2001 2001"
{ "input": "CREATE TABLE table_name_35 (gross_tonnage INTEGER, delivery_date VARCHAR)", "instruction": "with delivery date of 2001 2001 what is gross tonnage?", "output": "SELECT AVG(gross_tonnage) FROM table_name_35 WHERE delivery_date = \"2001 2001\"" }
### INSTRUCTION What race after round 6 did Graham Rahal win with a pole position of graham rahal? ### INPUT CREATE TABLE table_name_59 (race_name VARCHAR, pole_position VARCHAR, winning_driver VARCHAR, round VARCHAR) ### OUTPUT SELECT race_name FROM table_name_59 WHERE winning_driver = "graham rahal" AND round > 6 AND pole_position = "graham rahal"
{ "input": "CREATE TABLE table_name_59 (race_name VARCHAR, pole_position VARCHAR, winning_driver VARCHAR, round VARCHAR)", "instruction": "What race after round 6 did Graham Rahal win with a pole position of graham rahal?", "output": "SELECT race_name FROM table_name_59 WHERE winning_driver = \"graham rahal\" AND round > 6 AND pole_position = \"graham rahal\"" }
### INSTRUCTION What is the copa mercosur 1999 result for team grêmio, who did not qualify for the Copa Libertadores 1999 and Copa Conmebol 1999? ### INPUT CREATE TABLE table_name_51 (copa_mercosur_1999 VARCHAR, team VARCHAR, copa_libertadores_1999 VARCHAR, copa_conmebol_1999 VARCHAR) ### OUTPUT SELECT copa_mercosur_1999 FROM table_name_51 WHERE copa_libertadores_1999 = "did not qualify" AND copa_conmebol_1999 = "did not qualify" AND team = "grêmio"
{ "input": "CREATE TABLE table_name_51 (copa_mercosur_1999 VARCHAR, team VARCHAR, copa_libertadores_1999 VARCHAR, copa_conmebol_1999 VARCHAR)", "instruction": "What is the copa mercosur 1999 result for team grêmio, who did not qualify for the Copa Libertadores 1999 and Copa Conmebol 1999?", "output": "SELECT copa_mercosur_1999 FROM table_name_51 WHERE copa_libertadores_1999 = \"did not qualify\" AND copa_conmebol_1999 = \"did not qualify\" AND team = \"grêmio\"" }
### INSTRUCTION What is the time when the opponent is stephanie palmer? ### INPUT CREATE TABLE table_name_27 (time VARCHAR, opponent VARCHAR) ### OUTPUT SELECT time FROM table_name_27 WHERE opponent = "stephanie palmer"
{ "input": "CREATE TABLE table_name_27 (time VARCHAR, opponent VARCHAR)", "instruction": "What is the time when the opponent is stephanie palmer?", "output": "SELECT time FROM table_name_27 WHERE opponent = \"stephanie palmer\"" }
### INSTRUCTION What is the Nationality of the Deacon of S. Maria in Via Lata? ### INPUT CREATE TABLE table_name_5 (nationality VARCHAR, title VARCHAR) ### OUTPUT SELECT nationality FROM table_name_5 WHERE title = "deacon of s. maria in via lata"
{ "input": "CREATE TABLE table_name_5 (nationality VARCHAR, title VARCHAR)", "instruction": "What is the Nationality of the Deacon of S. Maria in Via Lata?", "output": "SELECT nationality FROM table_name_5 WHERE title = \"deacon of s. maria in via lata\"" }
### INSTRUCTION Who won the Silver the Year Katie Curtis Unknown won the Bronze? ### INPUT CREATE TABLE table_name_28 (silver VARCHAR, bronze VARCHAR) ### OUTPUT SELECT silver FROM table_name_28 WHERE bronze = "katie curtis unknown"
{ "input": "CREATE TABLE table_name_28 (silver VARCHAR, bronze VARCHAR)", "instruction": "Who won the Silver the Year Katie Curtis Unknown won the Bronze?", "output": "SELECT silver FROM table_name_28 WHERE bronze = \"katie curtis unknown\"" }
### INSTRUCTION Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4? ### INPUT CREATE TABLE table_name_7 (points_classification VARCHAR, stage VARCHAR, winner VARCHAR, general_classification VARCHAR, trofeo_fast_team VARCHAR) ### OUTPUT SELECT points_classification FROM table_name_7 WHERE general_classification = "bernard hinault" AND trofeo_fast_team = "bianchi" AND winner = "urs freuler" AND stage = "4"
{ "input": "CREATE TABLE table_name_7 (points_classification VARCHAR, stage VARCHAR, winner VARCHAR, general_classification VARCHAR, trofeo_fast_team VARCHAR)", "instruction": "Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4?", "output": "SELECT points_classification FROM table_name_7 WHERE general_classification = \"bernard hinault\" AND trofeo_fast_team = \"bianchi\" AND winner = \"urs freuler\" AND stage = \"4\"" }
### INSTRUCTION how many first elected with incumbent being charles edward bennett ### INPUT CREATE TABLE table_1342013_9 (first_elected VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT COUNT(first_elected) FROM table_1342013_9 WHERE incumbent = "Charles Edward Bennett"
{ "input": "CREATE TABLE table_1342013_9 (first_elected VARCHAR, incumbent VARCHAR)", "instruction": " how many first elected with incumbent being charles edward bennett", "output": "SELECT COUNT(first_elected) FROM table_1342013_9 WHERE incumbent = \"Charles Edward Bennett\"" }
### INSTRUCTION What team does Reed Sorenson drive for? ### INPUT CREATE TABLE table_name_22 (team VARCHAR, driver_s_ VARCHAR) ### OUTPUT SELECT team FROM table_name_22 WHERE driver_s_ = "reed sorenson"
{ "input": "CREATE TABLE table_name_22 (team VARCHAR, driver_s_ VARCHAR)", "instruction": "What team does Reed Sorenson drive for?", "output": "SELECT team FROM table_name_22 WHERE driver_s_ = \"reed sorenson\"" }
### INSTRUCTION What ship has a norway nationality? ### INPUT CREATE TABLE table_name_18 (ship VARCHAR, nationality VARCHAR) ### OUTPUT SELECT ship FROM table_name_18 WHERE nationality = "norway"
{ "input": "CREATE TABLE table_name_18 (ship VARCHAR, nationality VARCHAR)", "instruction": "What ship has a norway nationality?", "output": "SELECT ship FROM table_name_18 WHERE nationality = \"norway\"" }
### INSTRUCTION Which Nationality has a Rank larger than 1, and a Time smaller than 22.12, and a Lane smaller than 4, and a Name of ashley callus? ### INPUT CREATE TABLE table_name_99 (nationality VARCHAR, name VARCHAR, lane VARCHAR, rank VARCHAR, time VARCHAR) ### OUTPUT SELECT nationality FROM table_name_99 WHERE rank > 1 AND time < 22.12 AND lane < 4 AND name = "ashley callus"
{ "input": "CREATE TABLE table_name_99 (nationality VARCHAR, name VARCHAR, lane VARCHAR, rank VARCHAR, time VARCHAR)", "instruction": "Which Nationality has a Rank larger than 1, and a Time smaller than 22.12, and a Lane smaller than 4, and a Name of ashley callus?", "output": "SELECT nationality FROM table_name_99 WHERE rank > 1 AND time < 22.12 AND lane < 4 AND name = \"ashley callus\"" }
### INSTRUCTION What is the game number when the Toronto Maple Leafs were the opponent, and the February was less than 17? ### INPUT CREATE TABLE table_name_49 (game INTEGER, opponent VARCHAR, february VARCHAR) ### OUTPUT SELECT AVG(game) FROM table_name_49 WHERE opponent = "toronto maple leafs" AND february < 17
{ "input": "CREATE TABLE table_name_49 (game INTEGER, opponent VARCHAR, february VARCHAR)", "instruction": "What is the game number when the Toronto Maple Leafs were the opponent, and the February was less than 17?", "output": "SELECT AVG(game) FROM table_name_49 WHERE opponent = \"toronto maple leafs\" AND february < 17" }
### INSTRUCTION Name the fifth district for william womer ### INPUT CREATE TABLE table_15442974_1 (fifth_district VARCHAR, third_district VARCHAR) ### OUTPUT SELECT fifth_district FROM table_15442974_1 WHERE third_district = "William Womer"
{ "input": "CREATE TABLE table_15442974_1 (fifth_district VARCHAR, third_district VARCHAR)", "instruction": "Name the fifth district for william womer", "output": "SELECT fifth_district FROM table_15442974_1 WHERE third_district = \"William Womer\"" }
### INSTRUCTION What is the sum of the final for finland, who placed greater than 2 and had an all around larger than 18.9? ### INPUT CREATE TABLE table_name_26 (final INTEGER, all_around VARCHAR, place VARCHAR, nation VARCHAR) ### OUTPUT SELECT SUM(final) FROM table_name_26 WHERE place > 2 AND nation = "finland" AND all_around > 18.9
{ "input": "CREATE TABLE table_name_26 (final INTEGER, all_around VARCHAR, place VARCHAR, nation VARCHAR)", "instruction": "What is the sum of the final for finland, who placed greater than 2 and had an all around larger than 18.9?", "output": "SELECT SUM(final) FROM table_name_26 WHERE place > 2 AND nation = \"finland\" AND all_around > 18.9" }
### INSTRUCTION How many car models were produced by the maker with full name American Motor Company? ### INPUT CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR) ### OUTPUT SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company'
{ "input": "CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR)", "instruction": "How many car models were produced by the maker with full name American Motor Company?", "output": "SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company'" }
### INSTRUCTION Who was the original artist when the order number is 9? ### INPUT CREATE TABLE table_15796072_1 (original_artist VARCHAR, order__number VARCHAR) ### OUTPUT SELECT original_artist FROM table_15796072_1 WHERE order__number = "9"
{ "input": "CREATE TABLE table_15796072_1 (original_artist VARCHAR, order__number VARCHAR)", "instruction": "Who was the original artist when the order number is 9?", "output": "SELECT original_artist FROM table_15796072_1 WHERE order__number = \"9\"" }
### INSTRUCTION Which Round is the lowest one that has a School/Club Team of alabama, and a Pick larger than 43? ### INPUT CREATE TABLE table_name_87 (round INTEGER, school_club_team VARCHAR, pick VARCHAR) ### OUTPUT SELECT MIN(round) FROM table_name_87 WHERE school_club_team = "alabama" AND pick > 43
{ "input": "CREATE TABLE table_name_87 (round INTEGER, school_club_team VARCHAR, pick VARCHAR)", "instruction": "Which Round is the lowest one that has a School/Club Team of alabama, and a Pick larger than 43?", "output": "SELECT MIN(round) FROM table_name_87 WHERE school_club_team = \"alabama\" AND pick > 43" }
### INSTRUCTION which entrant after 1987 had 12 points and a benetton b188 chassis? ### INPUT CREATE TABLE table_name_22 (entrant VARCHAR, points VARCHAR, year VARCHAR, chassis VARCHAR) ### OUTPUT SELECT entrant FROM table_name_22 WHERE year > 1987 AND chassis = "benetton b188" AND points = 12
{ "input": "CREATE TABLE table_name_22 (entrant VARCHAR, points VARCHAR, year VARCHAR, chassis VARCHAR)", "instruction": "which entrant after 1987 had 12 points and a benetton b188 chassis?", "output": "SELECT entrant FROM table_name_22 WHERE year > 1987 AND chassis = \"benetton b188\" AND points = 12" }