text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Show the denomination shared by schools founded before 1890 and schools founded after 1900 ### INPUT CREATE TABLE school (Denomination VARCHAR, Founded INTEGER) ### OUTPUT SELECT Denomination FROM school WHERE Founded < 1890 INTERSECT SELECT Denomination FROM school WHERE Founded > 1900
{ "input": "CREATE TABLE school (Denomination VARCHAR, Founded INTEGER)", "instruction": "Show the denomination shared by schools founded before 1890 and schools founded after 1900", "output": "SELECT Denomination FROM school WHERE Founded < 1890 INTERSECT SELECT Denomination FROM school WHERE Founded > 1900" }
### INSTRUCTION Which district has a Democratic incumbent that was first elected before 1996? ### INPUT CREATE TABLE table_name_62 (district VARCHAR, party VARCHAR, first_elected VARCHAR) ### OUTPUT SELECT district FROM table_name_62 WHERE party = "democratic" AND first_elected < 1996
{ "input": "CREATE TABLE table_name_62 (district VARCHAR, party VARCHAR, first_elected VARCHAR)", "instruction": "Which district has a Democratic incumbent that was first elected before 1996?", "output": "SELECT district FROM table_name_62 WHERE party = \"democratic\" AND first_elected < 1996" }
### INSTRUCTION What is the date the high points was lamarcus aldridge (36)? ### INPUT CREATE TABLE table_27734769_8 (date VARCHAR, high_points VARCHAR) ### OUTPUT SELECT date FROM table_27734769_8 WHERE high_points = "LaMarcus Aldridge (36)"
{ "input": "CREATE TABLE table_27734769_8 (date VARCHAR, high_points VARCHAR)", "instruction": "What is the date the high points was lamarcus aldridge (36)?", "output": "SELECT date FROM table_27734769_8 WHERE high_points = \"LaMarcus Aldridge (36)\"" }
### INSTRUCTION What is the area of cimahi city? ### INPUT CREATE TABLE table_21734764_1 (area__km²__2005 VARCHAR, administrative_division VARCHAR) ### OUTPUT SELECT area__km²__2005 FROM table_21734764_1 WHERE administrative_division = "Cimahi City"
{ "input": "CREATE TABLE table_21734764_1 (area__km²__2005 VARCHAR, administrative_division VARCHAR)", "instruction": "What is the area of cimahi city?", "output": "SELECT area__km²__2005 FROM table_21734764_1 WHERE administrative_division = \"Cimahi City\"" }
### INSTRUCTION Who was the constructor of the car that had a Q1 pos of less than 8 and a Q1 time of 1:15.038? ### INPUT CREATE TABLE table_name_84 (constructor VARCHAR, q1_pos VARCHAR, q1_time VARCHAR) ### OUTPUT SELECT constructor FROM table_name_84 WHERE q1_pos < 8 AND q1_time = "1:15.038"
{ "input": "CREATE TABLE table_name_84 (constructor VARCHAR, q1_pos VARCHAR, q1_time VARCHAR)", "instruction": "Who was the constructor of the car that had a Q1 pos of less than 8 and a Q1 time of 1:15.038?", "output": "SELECT constructor FROM table_name_84 WHERE q1_pos < 8 AND q1_time = \"1:15.038\"" }
### INSTRUCTION Which call sign has a Class of A, and a Frequency MHz of 88.7? ### INPUT CREATE TABLE table_name_1 (call_sign VARCHAR, class VARCHAR, frequency_mhz VARCHAR) ### OUTPUT SELECT call_sign FROM table_name_1 WHERE class = "a" AND frequency_mhz = 88.7
{ "input": "CREATE TABLE table_name_1 (call_sign VARCHAR, class VARCHAR, frequency_mhz VARCHAR)", "instruction": "Which call sign has a Class of A, and a Frequency MHz of 88.7?", "output": "SELECT call_sign FROM table_name_1 WHERE class = \"a\" AND frequency_mhz = 88.7" }
### INSTRUCTION What is the Closure date of Hunterston B ### INPUT CREATE TABLE table_143352_1 (accounting_closure_date INTEGER, agr_power_station VARCHAR) ### OUTPUT SELECT MIN(accounting_closure_date) FROM table_143352_1 WHERE agr_power_station = "Hunterston B"
{ "input": "CREATE TABLE table_143352_1 (accounting_closure_date INTEGER, agr_power_station VARCHAR)", "instruction": "What is the Closure date of Hunterston B", "output": "SELECT MIN(accounting_closure_date) FROM table_143352_1 WHERE agr_power_station = \"Hunterston B\"" }
### INSTRUCTION What is the invoice number and invoice date for the invoice with most number of transactions? ### INPUT CREATE TABLE Invoices (invoice_number VARCHAR, invoice_date VARCHAR); CREATE TABLE Financial_transactions (invoice_number VARCHAR) ### OUTPUT SELECT T2.invoice_number, T2.invoice_date FROM Financial_transactions AS T1 JOIN Invoices AS T2 ON T1.invoice_number = T2.invoice_number GROUP BY T1.invoice_number ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Invoices (invoice_number VARCHAR, invoice_date VARCHAR); CREATE TABLE Financial_transactions (invoice_number VARCHAR)", "instruction": "What is the invoice number and invoice date for the invoice with most number of transactions?", "output": "SELECT T2.invoice_number, T2.invoice_date FROM Financial_transactions AS T1 JOIN Invoices AS T2 ON T1.invoice_number = T2.invoice_number GROUP BY T1.invoice_number ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What number corresponds to the quantity of 24? ### INPUT CREATE TABLE table_name_50 (number_s_ VARCHAR, quantity VARCHAR) ### OUTPUT SELECT number_s_ FROM table_name_50 WHERE quantity = "24"
{ "input": "CREATE TABLE table_name_50 (number_s_ VARCHAR, quantity VARCHAR)", "instruction": "What number corresponds to the quantity of 24?", "output": "SELECT number_s_ FROM table_name_50 WHERE quantity = \"24\"" }
### INSTRUCTION Find the program which most number of students are enrolled in. List both the id and the summary. ### INPUT CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Student_Enrolment (degree_program_id VARCHAR) ### OUTPUT SELECT T1.degree_program_id, T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Student_Enrolment (degree_program_id VARCHAR)", "instruction": "Find the program which most number of students are enrolled in. List both the id and the summary.", "output": "SELECT T1.degree_program_id, T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Name the class a for pearland ### INPUT CREATE TABLE table_14601528_2 (class_a VARCHAR, class_aAAAA VARCHAR, Pearland VARCHAR) ### OUTPUT SELECT class_a FROM table_14601528_2 WHERE class_aAAAA = Pearland
{ "input": "CREATE TABLE table_14601528_2 (class_a VARCHAR, class_aAAAA VARCHAR, Pearland VARCHAR)", "instruction": "Name the class a for pearland", "output": "SELECT class_a FROM table_14601528_2 WHERE class_aAAAA = Pearland" }
### INSTRUCTION What is average lesson price taught by staff with first name as Janessa and last name as Sawayn? ### INPUT CREATE TABLE Lessons (staff_id VARCHAR); CREATE TABLE Staff (staff_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### OUTPUT SELECT AVG(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
{ "input": "CREATE TABLE Lessons (staff_id VARCHAR); CREATE TABLE Staff (staff_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "instruction": "What is average lesson price taught by staff with first name as Janessa and last name as Sawayn?", "output": "SELECT AVG(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\"" }
### INSTRUCTION Which mlb team is located in maryland? ### INPUT CREATE TABLE table_name_95 (team VARCHAR, state_province VARCHAR, league VARCHAR) ### OUTPUT SELECT team FROM table_name_95 WHERE state_province = "maryland" AND league = "mlb"
{ "input": "CREATE TABLE table_name_95 (team VARCHAR, state_province VARCHAR, league VARCHAR)", "instruction": "Which mlb team is located in maryland?", "output": "SELECT team FROM table_name_95 WHERE state_province = \"maryland\" AND league = \"mlb\"" }
### INSTRUCTION List the names of shops that have no devices in stock. ### INPUT CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_Name VARCHAR, Shop_ID VARCHAR) ### OUTPUT SELECT Shop_Name FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM stock)
{ "input": "CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_Name VARCHAR, Shop_ID VARCHAR)", "instruction": "List the names of shops that have no devices in stock.", "output": "SELECT Shop_Name FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM stock)" }
### INSTRUCTION What Frequency's Branding is Your Cure for Corporate Radio? ### INPUT CREATE TABLE table_name_23 (frequency VARCHAR, branding VARCHAR) ### OUTPUT SELECT frequency FROM table_name_23 WHERE branding = "your cure for corporate radio"
{ "input": "CREATE TABLE table_name_23 (frequency VARCHAR, branding VARCHAR)", "instruction": "What Frequency's Branding is Your Cure for Corporate Radio?", "output": "SELECT frequency FROM table_name_23 WHERE branding = \"your cure for corporate radio\"" }
### INSTRUCTION What is the title of the representative appointed by James K. Polk? ### INPUT CREATE TABLE table_name_52 (title VARCHAR, appointed_by VARCHAR) ### OUTPUT SELECT title FROM table_name_52 WHERE appointed_by = "james k. polk"
{ "input": "CREATE TABLE table_name_52 (title VARCHAR, appointed_by VARCHAR)", "instruction": "What is the title of the representative appointed by James K. Polk?", "output": "SELECT title FROM table_name_52 WHERE appointed_by = \"james k. polk\"" }
### INSTRUCTION what is the total number of times the tournament was pga championship and evens is less than 4? ### INPUT CREATE TABLE table_name_95 (top_5 VARCHAR, tournament VARCHAR, events VARCHAR) ### OUTPUT SELECT COUNT(top_5) FROM table_name_95 WHERE tournament = "pga championship" AND events < 4
{ "input": "CREATE TABLE table_name_95 (top_5 VARCHAR, tournament VARCHAR, events VARCHAR)", "instruction": "what is the total number of times the tournament was pga championship and evens is less than 4?", "output": "SELECT COUNT(top_5) FROM table_name_95 WHERE tournament = \"pga championship\" AND events < 4" }
### INSTRUCTION What is the average played for entries with fewer than 65 goals against, points 1 of 19 2, and a position higher than 15? ### INPUT CREATE TABLE table_name_89 (played INTEGER, goals_against VARCHAR, position VARCHAR, points_1 VARCHAR) ### OUTPUT SELECT AVG(played) FROM table_name_89 WHERE position < 15 AND points_1 = "19 2" AND goals_against < 65
{ "input": "CREATE TABLE table_name_89 (played INTEGER, goals_against VARCHAR, position VARCHAR, points_1 VARCHAR)", "instruction": "What is the average played for entries with fewer than 65 goals against, points 1 of 19 2, and a position higher than 15?", "output": "SELECT AVG(played) FROM table_name_89 WHERE position < 15 AND points_1 = \"19 2\" AND goals_against < 65" }
### INSTRUCTION Candiates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% had what result? ### INPUT CREATE TABLE table_2668336_17 (result VARCHAR, candidates VARCHAR) ### OUTPUT SELECT result FROM table_2668336_17 WHERE candidates = "Charles Fisher (DR) 65.1% W. Jones (F) 34.9%"
{ "input": "CREATE TABLE table_2668336_17 (result VARCHAR, candidates VARCHAR)", "instruction": "Candiates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% had what result?", "output": "SELECT result FROM table_2668336_17 WHERE candidates = \"Charles Fisher (DR) 65.1% W. Jones (F) 34.9%\"" }
### INSTRUCTION Which District has a First elected of 1858, and a Result of retired republican gain, and an Incumbent of william millward? ### INPUT CREATE TABLE table_name_2 (district VARCHAR, incumbent VARCHAR, first_elected VARCHAR, result VARCHAR) ### OUTPUT SELECT district FROM table_name_2 WHERE first_elected = 1858 AND result = "retired republican gain" AND incumbent = "william millward"
{ "input": "CREATE TABLE table_name_2 (district VARCHAR, incumbent VARCHAR, first_elected VARCHAR, result VARCHAR)", "instruction": "Which District has a First elected of 1858, and a Result of retired republican gain, and an Incumbent of william millward?", "output": "SELECT district FROM table_name_2 WHERE first_elected = 1858 AND result = \"retired republican gain\" AND incumbent = \"william millward\"" }
### INSTRUCTION What is the least round number for Jon Olinger, who was picked before pick # 24? ### INPUT CREATE TABLE table_name_3 (round INTEGER, name VARCHAR, pick__number VARCHAR) ### OUTPUT SELECT MIN(round) FROM table_name_3 WHERE name = "jon olinger" AND pick__number < 24
{ "input": "CREATE TABLE table_name_3 (round INTEGER, name VARCHAR, pick__number VARCHAR)", "instruction": "What is the least round number for Jon Olinger, who was picked before pick # 24?", "output": "SELECT MIN(round) FROM table_name_3 WHERE name = \"jon olinger\" AND pick__number < 24" }
### INSTRUCTION what was the opponent on 26 october 1889? ### INPUT CREATE TABLE table_name_51 (opponents VARCHAR, date VARCHAR) ### OUTPUT SELECT opponents FROM table_name_51 WHERE date = "26 october 1889"
{ "input": "CREATE TABLE table_name_51 (opponents VARCHAR, date VARCHAR)", "instruction": "what was the opponent on 26 october 1889?", "output": "SELECT opponents FROM table_name_51 WHERE date = \"26 october 1889\"" }
### INSTRUCTION Count the products that have the color description "white" or have the characteristic name "hot". ### INPUT CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR) ### OUTPUT SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "white" OR t3.characteristic_name = "hot"
{ "input": "CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)", "instruction": "Count the products that have the color description \"white\" or have the characteristic name \"hot\".", "output": "SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"white\" OR t3.characteristic_name = \"hot\"" }
### INSTRUCTION What was the final venue whene England hasted the competition and the runner-up record is [[|]] 4 points and the winner record is [[|]] 6 points? ### INPUT CREATE TABLE table_28601467_1 (final_venue VARCHAR, winner VARCHAR, host_nation_s_ VARCHAR, runner_up VARCHAR) ### OUTPUT SELECT final_venue FROM table_28601467_1 WHERE host_nation_s_ = "England" AND runner_up = "[[|]] 4 points" AND winner = "[[|]] 6 points"
{ "input": "CREATE TABLE table_28601467_1 (final_venue VARCHAR, winner VARCHAR, host_nation_s_ VARCHAR, runner_up VARCHAR)", "instruction": "What was the final venue whene England hasted the competition and the runner-up record is [[|]] 4 points and the winner record is [[|]] 6 points?", "output": "SELECT final_venue FROM table_28601467_1 WHERE host_nation_s_ = \"England\" AND runner_up = \"[[|]] 4 points\" AND winner = \"[[|]] 6 points\"" }
### INSTRUCTION Which Nominee has a Category of outstanding musical? ### INPUT CREATE TABLE table_name_88 (nominee VARCHAR, category VARCHAR) ### OUTPUT SELECT nominee FROM table_name_88 WHERE category = "outstanding musical"
{ "input": "CREATE TABLE table_name_88 (nominee VARCHAR, category VARCHAR)", "instruction": "Which Nominee has a Category of outstanding musical?", "output": "SELECT nominee FROM table_name_88 WHERE category = \"outstanding musical\"" }
### INSTRUCTION HOw many films did martin repka category:articles with hcards direct? ### INPUT CREATE TABLE table_22032599_1 (film_title_used_in_nomination VARCHAR, director VARCHAR) ### OUTPUT SELECT COUNT(film_title_used_in_nomination) FROM table_22032599_1 WHERE director = "Martin Repka Category:Articles with hCards"
{ "input": "CREATE TABLE table_22032599_1 (film_title_used_in_nomination VARCHAR, director VARCHAR)", "instruction": "HOw many films did martin repka category:articles with hcards direct?", "output": "SELECT COUNT(film_title_used_in_nomination) FROM table_22032599_1 WHERE director = \"Martin Repka Category:Articles with hCards\"" }
### INSTRUCTION What is the sum for December against the vancouver canucks earlier than game 33? ### INPUT CREATE TABLE table_name_59 (december INTEGER, opponent VARCHAR, game VARCHAR) ### OUTPUT SELECT SUM(december) FROM table_name_59 WHERE opponent = "vancouver canucks" AND game < 33
{ "input": "CREATE TABLE table_name_59 (december INTEGER, opponent VARCHAR, game VARCHAR)", "instruction": "What is the sum for December against the vancouver canucks earlier than game 33?", "output": "SELECT SUM(december) FROM table_name_59 WHERE opponent = \"vancouver canucks\" AND game < 33" }
### INSTRUCTION Who was on Jason's team for the 12 June 2009 episode? ### INPUT CREATE TABLE table_23292220_8 (jasons_team VARCHAR, first_broadcast VARCHAR) ### OUTPUT SELECT jasons_team FROM table_23292220_8 WHERE first_broadcast = "12 June 2009"
{ "input": "CREATE TABLE table_23292220_8 (jasons_team VARCHAR, first_broadcast VARCHAR)", "instruction": "Who was on Jason's team for the 12 June 2009 episode?", "output": "SELECT jasons_team FROM table_23292220_8 WHERE first_broadcast = \"12 June 2009\"" }
### INSTRUCTION What are the lowest conceded with 1 draw, and a score larger than 14? ### INPUT CREATE TABLE table_name_71 (conceded INTEGER, draws VARCHAR, scored VARCHAR) ### OUTPUT SELECT MIN(conceded) FROM table_name_71 WHERE draws = 1 AND scored > 14
{ "input": "CREATE TABLE table_name_71 (conceded INTEGER, draws VARCHAR, scored VARCHAR)", "instruction": "What are the lowest conceded with 1 draw, and a score larger than 14?", "output": "SELECT MIN(conceded) FROM table_name_71 WHERE draws = 1 AND scored > 14" }
### INSTRUCTION What are the total number of Domestic Passengers of airports that contain the word "London". ### INPUT CREATE TABLE airport (Domestic_Passengers INTEGER, Airport_Name VARCHAR) ### OUTPUT SELECT SUM(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE "%London%"
{ "input": "CREATE TABLE airport (Domestic_Passengers INTEGER, Airport_Name VARCHAR)", "instruction": "What are the total number of Domestic Passengers of airports that contain the word \"London\".", "output": "SELECT SUM(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE \"%London%\"" }
### INSTRUCTION Where is every location where Nick is Bru? ### INPUT CREATE TABLE table_2112260_1 (location VARCHAR, nick VARCHAR) ### OUTPUT SELECT location FROM table_2112260_1 WHERE nick = "BRU"
{ "input": "CREATE TABLE table_2112260_1 (location VARCHAR, nick VARCHAR)", "instruction": "Where is every location where Nick is Bru?", "output": "SELECT location FROM table_2112260_1 WHERE nick = \"BRU\"" }
### INSTRUCTION On week 11 when Dixon scored an 8, what was tonioli's score? ### INPUT CREATE TABLE table_2803106_1 (tonioli VARCHAR, week__number VARCHAR, dixon VARCHAR) ### OUTPUT SELECT tonioli FROM table_2803106_1 WHERE week__number = 11 AND dixon = "8"
{ "input": "CREATE TABLE table_2803106_1 (tonioli VARCHAR, week__number VARCHAR, dixon VARCHAR)", "instruction": "On week 11 when Dixon scored an 8, what was tonioli's score?", "output": "SELECT tonioli FROM table_2803106_1 WHERE week__number = 11 AND dixon = \"8\"" }
### INSTRUCTION How many managers for club in Turku where kitmaker is Puma? ### INPUT CREATE TABLE table_25129482_1 (manager VARCHAR, kitmaker VARCHAR, location VARCHAR) ### OUTPUT SELECT COUNT(manager) FROM table_25129482_1 WHERE kitmaker = "Puma" AND location = "Turku"
{ "input": "CREATE TABLE table_25129482_1 (manager VARCHAR, kitmaker VARCHAR, location VARCHAR)", "instruction": "How many managers for club in Turku where kitmaker is Puma?", "output": "SELECT COUNT(manager) FROM table_25129482_1 WHERE kitmaker = \"Puma\" AND location = \"Turku\"" }
### INSTRUCTION How many seasons are there with Formula Holden? ### INPUT CREATE TABLE table_2822193_1 (seasons VARCHAR, series VARCHAR) ### OUTPUT SELECT COUNT(seasons) FROM table_2822193_1 WHERE series = "Formula Holden"
{ "input": "CREATE TABLE table_2822193_1 (seasons VARCHAR, series VARCHAR)", "instruction": "How many seasons are there with Formula Holden?", "output": "SELECT COUNT(seasons) FROM table_2822193_1 WHERE series = \"Formula Holden\"" }
### INSTRUCTION How many catches did Clifford McWatt have? ### INPUT CREATE TABLE table_27771406_1 (catches INTEGER, player VARCHAR) ### OUTPUT SELECT MIN(catches) FROM table_27771406_1 WHERE player = "Clifford McWatt"
{ "input": "CREATE TABLE table_27771406_1 (catches INTEGER, player VARCHAR)", "instruction": "How many catches did Clifford McWatt have? ", "output": "SELECT MIN(catches) FROM table_27771406_1 WHERE player = \"Clifford McWatt\"" }
### INSTRUCTION Which Bronze has a Silver larger than 1, a Total larger than 3, a Nation of turkey, and a Gold smaller than 2? ### INPUT CREATE TABLE table_name_53 (bronze INTEGER, gold VARCHAR, nation VARCHAR, silver VARCHAR, total VARCHAR) ### OUTPUT SELECT SUM(bronze) FROM table_name_53 WHERE silver > 1 AND total > 3 AND nation = "turkey" AND gold < 2
{ "input": "CREATE TABLE table_name_53 (bronze INTEGER, gold VARCHAR, nation VARCHAR, silver VARCHAR, total VARCHAR)", "instruction": "Which Bronze has a Silver larger than 1, a Total larger than 3, a Nation of turkey, and a Gold smaller than 2?", "output": "SELECT SUM(bronze) FROM table_name_53 WHERE silver > 1 AND total > 3 AND nation = \"turkey\" AND gold < 2" }
### INSTRUCTION What is the highest Win #, when Winner is "Knoxville Cherokees", when Playoff Result is "Lost 1st Round ( LOU )", and when Points is less than 94? ### INPUT CREATE TABLE table_name_87 (win__number INTEGER, points VARCHAR, winner VARCHAR, playoff_result VARCHAR) ### OUTPUT SELECT MAX(win__number) FROM table_name_87 WHERE winner = "knoxville cherokees" AND playoff_result = "lost 1st round ( lou )" AND points < 94
{ "input": "CREATE TABLE table_name_87 (win__number INTEGER, points VARCHAR, winner VARCHAR, playoff_result VARCHAR)", "instruction": "What is the highest Win #, when Winner is \"Knoxville Cherokees\", when Playoff Result is \"Lost 1st Round ( LOU )\", and when Points is less than 94?", "output": "SELECT MAX(win__number) FROM table_name_87 WHERE winner = \"knoxville cherokees\" AND playoff_result = \"lost 1st round ( lou )\" AND points < 94" }
### INSTRUCTION Who was the winner in philadelphia municipal stadium in 1939? ### INPUT CREATE TABLE table_name_31 (winner VARCHAR, location VARCHAR, year VARCHAR) ### OUTPUT SELECT winner FROM table_name_31 WHERE location = "philadelphia municipal stadium" AND year = 1939
{ "input": "CREATE TABLE table_name_31 (winner VARCHAR, location VARCHAR, year VARCHAR)", "instruction": "Who was the winner in philadelphia municipal stadium in 1939?", "output": "SELECT winner FROM table_name_31 WHERE location = \"philadelphia municipal stadium\" AND year = 1939" }
### INSTRUCTION What is the english title with a lp format and an Original title of то ли ещё будет? ### INPUT CREATE TABLE table_name_49 (title_in_english VARCHAR, format VARCHAR, original_title VARCHAR) ### OUTPUT SELECT title_in_english FROM table_name_49 WHERE format = "lp" AND original_title = "то ли ещё будет"
{ "input": "CREATE TABLE table_name_49 (title_in_english VARCHAR, format VARCHAR, original_title VARCHAR)", "instruction": "What is the english title with a lp format and an Original title of то ли ещё будет?", "output": "SELECT title_in_english FROM table_name_49 WHERE format = \"lp\" AND original_title = \"то ли ещё будет\"" }
### INSTRUCTION In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas? ### INPUT CREATE TABLE table_name_83 (year VARCHAR, team VARCHAR, tournament VARCHAR, finish VARCHAR) ### OUTPUT SELECT year FROM table_name_83 WHERE tournament = "1st division el salvador" AND finish = "champion" AND team = "fas"
{ "input": "CREATE TABLE table_name_83 (year VARCHAR, team VARCHAR, tournament VARCHAR, finish VARCHAR)", "instruction": "In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas?", "output": "SELECT year FROM table_name_83 WHERE tournament = \"1st division el salvador\" AND finish = \"champion\" AND team = \"fas\"" }
### INSTRUCTION What are the maximum duration and resolution of songs grouped and ordered by languages? ### INPUT CREATE TABLE song (languages VARCHAR, resolution INTEGER, f_id VARCHAR); CREATE TABLE files (duration INTEGER, f_id VARCHAR) ### OUTPUT SELECT MAX(T1.duration), MAX(T2.resolution), T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages
{ "input": "CREATE TABLE song (languages VARCHAR, resolution INTEGER, f_id VARCHAR); CREATE TABLE files (duration INTEGER, f_id VARCHAR)", "instruction": "What are the maximum duration and resolution of songs grouped and ordered by languages?", "output": "SELECT MAX(T1.duration), MAX(T2.resolution), T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages" }
### INSTRUCTION What is the first, last name, gpa of the youngest one among students whose GPA is above 3? ### INPUT CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_gpa INTEGER, stu_dob VARCHAR) ### OUTPUT SELECT stu_fname, stu_lname, stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1
{ "input": "CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_gpa INTEGER, stu_dob VARCHAR)", "instruction": "What is the first, last name, gpa of the youngest one among students whose GPA is above 3?", "output": "SELECT stu_fname, stu_lname, stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1" }
### INSTRUCTION What is the total of NA for set 4, a score of 3-0 and a 26-24 for set 2? ### INPUT CREATE TABLE table_name_62 (total VARCHAR, set_2 VARCHAR, set_4 VARCHAR, score VARCHAR) ### OUTPUT SELECT total FROM table_name_62 WHERE set_4 = "na" AND score = "3-0" AND set_2 = "26-24"
{ "input": "CREATE TABLE table_name_62 (total VARCHAR, set_2 VARCHAR, set_4 VARCHAR, score VARCHAR)", "instruction": "What is the total of NA for set 4, a score of 3-0 and a 26-24 for set 2?", "output": "SELECT total FROM table_name_62 WHERE set_4 = \"na\" AND score = \"3-0\" AND set_2 = \"26-24\"" }
### INSTRUCTION What is the final score of the runner-up on 9 February 1992? ### INPUT CREATE TABLE table_name_75 (score_in_final VARCHAR, outcome VARCHAR, date VARCHAR) ### OUTPUT SELECT score_in_final FROM table_name_75 WHERE outcome = "runner-up" AND date = "9 february 1992"
{ "input": "CREATE TABLE table_name_75 (score_in_final VARCHAR, outcome VARCHAR, date VARCHAR)", "instruction": "What is the final score of the runner-up on 9 February 1992?", "output": "SELECT score_in_final FROM table_name_75 WHERE outcome = \"runner-up\" AND date = \"9 february 1992\"" }
### INSTRUCTION Who did the high rebounds in the game in which Rodney Stuckey (16) did the high points? ### INPUT CREATE TABLE table_27755603_2 (high_rebounds VARCHAR, high_points VARCHAR) ### OUTPUT SELECT high_rebounds FROM table_27755603_2 WHERE high_points = "Rodney Stuckey (16)"
{ "input": "CREATE TABLE table_27755603_2 (high_rebounds VARCHAR, high_points VARCHAR)", "instruction": "Who did the high rebounds in the game in which Rodney Stuckey (16) did the high points?", "output": "SELECT high_rebounds FROM table_27755603_2 WHERE high_points = \"Rodney Stuckey (16)\"" }
### INSTRUCTION what is the largest city where the population is 6620100? ### INPUT CREATE TABLE table_17416221_1 (largest_city VARCHAR, population__2013_ VARCHAR) ### OUTPUT SELECT largest_city FROM table_17416221_1 WHERE population__2013_ = 6620100
{ "input": "CREATE TABLE table_17416221_1 (largest_city VARCHAR, population__2013_ VARCHAR)", "instruction": "what is the largest city where the population is 6620100?", "output": "SELECT largest_city FROM table_17416221_1 WHERE population__2013_ = 6620100" }
### INSTRUCTION How many teams have a combination classification of Alejandro Valverde and a Points classification of Alessandro Petacchi? ### INPUT CREATE TABLE table_15059783_1 (team_classification VARCHAR, combination_classification VARCHAR, points_classification VARCHAR) ### OUTPUT SELECT COUNT(team_classification) FROM table_15059783_1 WHERE combination_classification = "Alejandro Valverde" AND points_classification = "Alessandro Petacchi"
{ "input": "CREATE TABLE table_15059783_1 (team_classification VARCHAR, combination_classification VARCHAR, points_classification VARCHAR)", "instruction": "How many teams have a combination classification of Alejandro Valverde and a Points classification of Alessandro Petacchi?", "output": "SELECT COUNT(team_classification) FROM table_15059783_1 WHERE combination_classification = \"Alejandro Valverde\" AND points_classification = \"Alessandro Petacchi\"" }
### INSTRUCTION where the land is 35.990 what is the number of the geo id ### INPUT CREATE TABLE table_18600760_19 (geo_id VARCHAR, land___sqmi__ VARCHAR) ### OUTPUT SELECT geo_id FROM table_18600760_19 WHERE land___sqmi__ = "35.990"
{ "input": "CREATE TABLE table_18600760_19 (geo_id VARCHAR, land___sqmi__ VARCHAR)", "instruction": "where the land is 35.990 what is the number of the geo id", "output": "SELECT geo_id FROM table_18600760_19 WHERE land___sqmi__ = \"35.990\"" }
### INSTRUCTION Which player plays for the Winnipeg Blue Bombers? ### INPUT CREATE TABLE table_21321804_3 (player VARCHAR, cfl_team VARCHAR) ### OUTPUT SELECT player FROM table_21321804_3 WHERE cfl_team = "Winnipeg Blue Bombers"
{ "input": "CREATE TABLE table_21321804_3 (player VARCHAR, cfl_team VARCHAR)", "instruction": "Which player plays for the Winnipeg Blue Bombers? ", "output": "SELECT player FROM table_21321804_3 WHERE cfl_team = \"Winnipeg Blue Bombers\"" }
### INSTRUCTION What type of engine did the Fuel Injection entrant use? ### INPUT CREATE TABLE table_name_4 (engine VARCHAR, entrant VARCHAR) ### OUTPUT SELECT engine FROM table_name_4 WHERE entrant = "fuel injection"
{ "input": "CREATE TABLE table_name_4 (engine VARCHAR, entrant VARCHAR)", "instruction": "What type of engine did the Fuel Injection entrant use?", "output": "SELECT engine FROM table_name_4 WHERE entrant = \"fuel injection\"" }
### INSTRUCTION what is the circuit where the fastest lap is sam lowes and the winning rider is luca scassa? ### INPUT CREATE TABLE table_29686983_1 (circuit VARCHAR, fastest_lap VARCHAR, winning_rider VARCHAR) ### OUTPUT SELECT circuit FROM table_29686983_1 WHERE fastest_lap = "Sam Lowes" AND winning_rider = "Luca Scassa"
{ "input": "CREATE TABLE table_29686983_1 (circuit VARCHAR, fastest_lap VARCHAR, winning_rider VARCHAR)", "instruction": "what is the circuit where the fastest lap is sam lowes and the winning rider is luca scassa?", "output": "SELECT circuit FROM table_29686983_1 WHERE fastest_lap = \"Sam Lowes\" AND winning_rider = \"Luca Scassa\"" }
### INSTRUCTION Median household income of $40,340, and a Number of households smaller than 64,767 is what average population? ### INPUT CREATE TABLE table_name_54 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR) ### OUTPUT SELECT AVG(population) FROM table_name_54 WHERE median_household_income = "$40,340" AND number_of_households < 64 OFFSET 767
{ "input": "CREATE TABLE table_name_54 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR)", "instruction": "Median household income of $40,340, and a Number of households smaller than 64,767 is what average population?", "output": "SELECT AVG(population) FROM table_name_54 WHERE median_household_income = \"$40,340\" AND number_of_households < 64 OFFSET 767" }
### INSTRUCTION When sault ste. marie greyhounds (oha) is the college, junior, or club team how many nationalities are there? ### INPUT CREATE TABLE table_1965650_9 (nationality VARCHAR, college_junior_club_team VARCHAR) ### OUTPUT SELECT COUNT(nationality) FROM table_1965650_9 WHERE college_junior_club_team = "Sault Ste. Marie Greyhounds (OHA)"
{ "input": "CREATE TABLE table_1965650_9 (nationality VARCHAR, college_junior_club_team VARCHAR)", "instruction": "When sault ste. marie greyhounds (oha) is the college, junior, or club team how many nationalities are there?", "output": "SELECT COUNT(nationality) FROM table_1965650_9 WHERE college_junior_club_team = \"Sault Ste. Marie Greyhounds (OHA)\"" }
### INSTRUCTION Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009. ### INPUT CREATE TABLE exhibition (ticket_price INTEGER, YEAR INTEGER) ### OUTPUT SELECT AVG(ticket_price), MIN(ticket_price), MAX(ticket_price) FROM exhibition WHERE YEAR < 2009
{ "input": "CREATE TABLE exhibition (ticket_price INTEGER, YEAR INTEGER)", "instruction": "Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.", "output": "SELECT AVG(ticket_price), MIN(ticket_price), MAX(ticket_price) FROM exhibition WHERE YEAR < 2009" }
### INSTRUCTION What is the average access count of documents? ### INPUT CREATE TABLE documents (access_count INTEGER) ### OUTPUT SELECT AVG(access_count) FROM documents
{ "input": "CREATE TABLE documents (access_count INTEGER)", "instruction": "What is the average access count of documents?", "output": "SELECT AVG(access_count) FROM documents" }
### INSTRUCTION What lane is David Carry in heat 1? ### INPUT CREATE TABLE table_name_80 (lane VARCHAR, heat VARCHAR, name VARCHAR) ### OUTPUT SELECT COUNT(lane) FROM table_name_80 WHERE heat = 1 AND name = "david carry"
{ "input": "CREATE TABLE table_name_80 (lane VARCHAR, heat VARCHAR, name VARCHAR)", "instruction": "What lane is David Carry in heat 1?", "output": "SELECT COUNT(lane) FROM table_name_80 WHERE heat = 1 AND name = \"david carry\"" }
### INSTRUCTION Tell me the section for position of 8th and season of 2003 ### INPUT CREATE TABLE table_name_29 (section VARCHAR, position VARCHAR, season VARCHAR) ### OUTPUT SELECT section FROM table_name_29 WHERE position = "8th" AND season = "2003"
{ "input": "CREATE TABLE table_name_29 (section VARCHAR, position VARCHAR, season VARCHAR)", "instruction": "Tell me the section for position of 8th and season of 2003", "output": "SELECT section FROM table_name_29 WHERE position = \"8th\" AND season = \"2003\"" }
### INSTRUCTION Which company has a market value greater than 1, Assets (US$ billion) smaller than 10.7, a Rank smaller than 10, and revenue (US$ billion) of 9.3? ### INPUT CREATE TABLE table_name_41 (company VARCHAR, revenues__us$_billion_ VARCHAR, rank VARCHAR, market_value__us$_billion_ VARCHAR, assets__us$_billion_ VARCHAR) ### OUTPUT SELECT company FROM table_name_41 WHERE market_value__us$_billion_ > 1 AND assets__us$_billion_ < 10.7 AND rank < 10 AND revenues__us$_billion_ = 9.3
{ "input": "CREATE TABLE table_name_41 (company VARCHAR, revenues__us$_billion_ VARCHAR, rank VARCHAR, market_value__us$_billion_ VARCHAR, assets__us$_billion_ VARCHAR)", "instruction": "Which company has a market value greater than 1, Assets (US$ billion) smaller than 10.7, a Rank smaller than 10, and revenue (US$ billion) of 9.3?", "output": "SELECT company FROM table_name_41 WHERE market_value__us$_billion_ > 1 AND assets__us$_billion_ < 10.7 AND rank < 10 AND revenues__us$_billion_ = 9.3" }
### INSTRUCTION How many losses did the Burnaby Lakers accumulate when they scored 8 points in 1998 playing less than 25 games? ### INPUT CREATE TABLE table_name_11 (losses INTEGER, games VARCHAR, season VARCHAR, team_name VARCHAR, points VARCHAR) ### OUTPUT SELECT SUM(losses) FROM table_name_11 WHERE team_name = "burnaby lakers" AND points = 8 AND season = "1998" AND games < 25
{ "input": "CREATE TABLE table_name_11 (losses INTEGER, games VARCHAR, season VARCHAR, team_name VARCHAR, points VARCHAR)", "instruction": "How many losses did the Burnaby Lakers accumulate when they scored 8 points in 1998 playing less than 25 games?", "output": "SELECT SUM(losses) FROM table_name_11 WHERE team_name = \"burnaby lakers\" AND points = 8 AND season = \"1998\" AND games < 25" }
### INSTRUCTION What district did the Democratic party incumbent Stephen J. Solarz get first elected to in 1974? ### INPUT CREATE TABLE table_1341663_33 (district VARCHAR, incumbent VARCHAR, party VARCHAR, first_elected VARCHAR) ### OUTPUT SELECT district FROM table_1341663_33 WHERE party = "Democratic" AND first_elected = 1974 AND incumbent = "Stephen J. Solarz"
{ "input": "CREATE TABLE table_1341663_33 (district VARCHAR, incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)", "instruction": "What district did the Democratic party incumbent Stephen J. Solarz get first elected to in 1974?", "output": "SELECT district FROM table_1341663_33 WHERE party = \"Democratic\" AND first_elected = 1974 AND incumbent = \"Stephen J. Solarz\"" }
### INSTRUCTION Name the date of vacancy for manuel pellegrini ### INPUT CREATE TABLE table_22640051_3 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR) ### OUTPUT SELECT date_of_vacancy FROM table_22640051_3 WHERE outgoing_manager = "Manuel Pellegrini"
{ "input": "CREATE TABLE table_22640051_3 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)", "instruction": "Name the date of vacancy for manuel pellegrini", "output": "SELECT date_of_vacancy FROM table_22640051_3 WHERE outgoing_manager = \"Manuel Pellegrini\"" }
### INSTRUCTION Show the names of cities in counties that have a crime rate less than 100. ### INPUT CREATE TABLE county_public_safety (name VARCHAR, county_id VARCHAR, Crime_rate INTEGER); CREATE TABLE city (name VARCHAR, county_id VARCHAR, Crime_rate INTEGER) ### OUTPUT SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate < 100)
{ "input": "CREATE TABLE county_public_safety (name VARCHAR, county_id VARCHAR, Crime_rate INTEGER); CREATE TABLE city (name VARCHAR, county_id VARCHAR, Crime_rate INTEGER)", "instruction": "Show the names of cities in counties that have a crime rate less than 100.", "output": "SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate < 100)" }
### INSTRUCTION What are the names and id of courses having at most 2 sections? ### INPUT CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Sections (course_id VARCHAR) ### OUTPUT SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2
{ "input": "CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Sections (course_id VARCHAR)", "instruction": "What are the names and id of courses having at most 2 sections?", "output": "SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2" }
### INSTRUCTION What is every score in the final for opponent in final John Mcenroe at US Open? ### INPUT CREATE TABLE table_23235767_1 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, championship VARCHAR) ### OUTPUT SELECT score_in_the_final FROM table_23235767_1 WHERE opponent_in_the_final = "John McEnroe" AND championship = "US Open"
{ "input": "CREATE TABLE table_23235767_1 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, championship VARCHAR)", "instruction": "What is every score in the final for opponent in final John Mcenroe at US Open?", "output": "SELECT score_in_the_final FROM table_23235767_1 WHERE opponent_in_the_final = \"John McEnroe\" AND championship = \"US Open\"" }
### INSTRUCTION What is the highest position the album Where we belong, which had an issue date higher than 9, had? ### INPUT CREATE TABLE table_name_14 (highest_position VARCHAR, issue_date VARCHAR, album_title VARCHAR) ### OUTPUT SELECT COUNT(highest_position) FROM table_name_14 WHERE issue_date < 9 AND album_title = "where we belong"
{ "input": "CREATE TABLE table_name_14 (highest_position VARCHAR, issue_date VARCHAR, album_title VARCHAR)", "instruction": "What is the highest position the album Where we belong, which had an issue date higher than 9, had?", "output": "SELECT COUNT(highest_position) FROM table_name_14 WHERE issue_date < 9 AND album_title = \"where we belong\"" }
### INSTRUCTION Show the guest first names, start dates, and end dates of all the apartment bookings. ### INPUT CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, guest_id VARCHAR); CREATE TABLE Guests (guest_first_name VARCHAR, guest_id VARCHAR) ### OUTPUT SELECT T2.guest_first_name, T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id
{ "input": "CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, guest_id VARCHAR); CREATE TABLE Guests (guest_first_name VARCHAR, guest_id VARCHAR)", "instruction": "Show the guest first names, start dates, and end dates of all the apartment bookings.", "output": "SELECT T2.guest_first_name, T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id" }
### INSTRUCTION List the first and last names of all distinct staff members who are assigned to the problem whose id is 1. ### INPUT CREATE TABLE problem_log (assigned_to_staff_id VARCHAR, problem_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR) ### OUTPUT SELECT DISTINCT staff_first_name, staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1
{ "input": "CREATE TABLE problem_log (assigned_to_staff_id VARCHAR, problem_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR)", "instruction": "List the first and last names of all distinct staff members who are assigned to the problem whose id is 1.", "output": "SELECT DISTINCT staff_first_name, staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1" }
### INSTRUCTION What is the date of the game later than week 13 and 41,862 people attended? ### INPUT CREATE TABLE table_name_62 (date VARCHAR, week VARCHAR, attendance VARCHAR) ### OUTPUT SELECT date FROM table_name_62 WHERE week > 13 AND attendance = "41,862"
{ "input": "CREATE TABLE table_name_62 (date VARCHAR, week VARCHAR, attendance VARCHAR)", "instruction": "What is the date of the game later than week 13 and 41,862 people attended?", "output": "SELECT date FROM table_name_62 WHERE week > 13 AND attendance = \"41,862\"" }
### INSTRUCTION What was the association for Indonesian Idol after 2005 with a Nominated Result? ### INPUT CREATE TABLE table_name_39 (association VARCHAR, result VARCHAR, nominee VARCHAR, year VARCHAR) ### OUTPUT SELECT association FROM table_name_39 WHERE nominee = "indonesian idol" AND year > 2005 AND result = "nominated"
{ "input": "CREATE TABLE table_name_39 (association VARCHAR, result VARCHAR, nominee VARCHAR, year VARCHAR)", "instruction": "What was the association for Indonesian Idol after 2005 with a Nominated Result?", "output": "SELECT association FROM table_name_39 WHERE nominee = \"indonesian idol\" AND year > 2005 AND result = \"nominated\"" }
### INSTRUCTION Which rank had the Labour party winning in 2003, a swing to gain that was larger than 2.13, a lab hold as a result, and which took place in the Linlithgow constituency? ### INPUT CREATE TABLE table_name_21 (rank VARCHAR, constituency VARCHAR, result VARCHAR, winning_party_2003 VARCHAR, swing_to_gain VARCHAR) ### OUTPUT SELECT rank FROM table_name_21 WHERE winning_party_2003 = "labour" AND swing_to_gain > 2.13 AND result = "lab hold" AND constituency = "linlithgow"
{ "input": "CREATE TABLE table_name_21 (rank VARCHAR, constituency VARCHAR, result VARCHAR, winning_party_2003 VARCHAR, swing_to_gain VARCHAR)", "instruction": "Which rank had the Labour party winning in 2003, a swing to gain that was larger than 2.13, a lab hold as a result, and which took place in the Linlithgow constituency?", "output": "SELECT rank FROM table_name_21 WHERE winning_party_2003 = \"labour\" AND swing_to_gain > 2.13 AND result = \"lab hold\" AND constituency = \"linlithgow\"" }
### INSTRUCTION Which Tournament has a score of 2–6 6–4 [10–8]? ### INPUT CREATE TABLE table_name_9 (tournament VARCHAR, score VARCHAR) ### OUTPUT SELECT tournament FROM table_name_9 WHERE score = "2–6 6–4 [10–8]"
{ "input": "CREATE TABLE table_name_9 (tournament VARCHAR, score VARCHAR)", "instruction": "Which Tournament has a score of 2–6 6–4 [10–8]?", "output": "SELECT tournament FROM table_name_9 WHERE score = \"2–6 6–4 [10–8]\"" }
### INSTRUCTION Nam the opponent for prudential center ### INPUT CREATE TABLE table_16864968_9 (opponent VARCHAR, location VARCHAR) ### OUTPUT SELECT opponent FROM table_16864968_9 WHERE location = "Prudential Center"
{ "input": "CREATE TABLE table_16864968_9 (opponent VARCHAR, location VARCHAR)", "instruction": "Nam the opponent for prudential center", "output": "SELECT opponent FROM table_16864968_9 WHERE location = \"Prudential Center\"" }
### INSTRUCTION How many final venues were there in the 1997-98 season? ### INPUT CREATE TABLE table_19651669_1 (final_venue VARCHAR, season VARCHAR) ### OUTPUT SELECT COUNT(final_venue) FROM table_19651669_1 WHERE season = "1997-98"
{ "input": "CREATE TABLE table_19651669_1 (final_venue VARCHAR, season VARCHAR)", "instruction": "How many final venues were there in the 1997-98 season?", "output": "SELECT COUNT(final_venue) FROM table_19651669_1 WHERE season = \"1997-98\"" }
### INSTRUCTION What is the rank of the film directed by Kevin Costner? ### INPUT CREATE TABLE table_name_14 (rank VARCHAR, director VARCHAR) ### OUTPUT SELECT COUNT(rank) FROM table_name_14 WHERE director = "kevin costner"
{ "input": "CREATE TABLE table_name_14 (rank VARCHAR, director VARCHAR)", "instruction": "What is the rank of the film directed by Kevin Costner?", "output": "SELECT COUNT(rank) FROM table_name_14 WHERE director = \"kevin costner\"" }
### INSTRUCTION What round had a result of 6–7 (6–8) , 1–6? ### INPUT CREATE TABLE table_name_83 (round VARCHAR, result VARCHAR) ### OUTPUT SELECT round FROM table_name_83 WHERE result = "6–7 (6–8) , 1–6"
{ "input": "CREATE TABLE table_name_83 (round VARCHAR, result VARCHAR)", "instruction": "What round had a result of 6–7 (6–8) , 1–6?", "output": "SELECT round FROM table_name_83 WHERE result = \"6–7 (6–8) , 1–6\"" }
### INSTRUCTION What is the district with the candidates edwin gray (dr)? ### INPUT CREATE TABLE table_2668393_18 (district VARCHAR, candidates VARCHAR) ### OUTPUT SELECT district FROM table_2668393_18 WHERE candidates = "Edwin Gray (DR)"
{ "input": "CREATE TABLE table_2668393_18 (district VARCHAR, candidates VARCHAR)", "instruction": "What is the district with the candidates edwin gray (dr)?", "output": "SELECT district FROM table_2668393_18 WHERE candidates = \"Edwin Gray (DR)\"" }
### INSTRUCTION Who is the women's doubles when the mixed doubles are sudket prapakamol saralee thungthongkam? ### INPUT CREATE TABLE table_27753492_2 (womens_doubles VARCHAR, mixed_doubles VARCHAR) ### OUTPUT SELECT womens_doubles FROM table_27753492_2 WHERE mixed_doubles = "Sudket Prapakamol Saralee Thungthongkam"
{ "input": "CREATE TABLE table_27753492_2 (womens_doubles VARCHAR, mixed_doubles VARCHAR)", "instruction": "Who is the women's doubles when the mixed doubles are sudket prapakamol saralee thungthongkam?", "output": "SELECT womens_doubles FROM table_27753492_2 WHERE mixed_doubles = \"Sudket Prapakamol Saralee Thungthongkam\"" }
### INSTRUCTION Which of the Rounds has an Entrant of automobiles Talbot-Darracq, and Pierre Levegh as the driver? ### INPUT CREATE TABLE table_name_72 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR) ### OUTPUT SELECT rounds FROM table_name_72 WHERE entrant = "automobiles talbot-darracq" AND driver = "pierre levegh"
{ "input": "CREATE TABLE table_name_72 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR)", "instruction": "Which of the Rounds has an Entrant of automobiles Talbot-Darracq, and Pierre Levegh as the driver?", "output": "SELECT rounds FROM table_name_72 WHERE entrant = \"automobiles talbot-darracq\" AND driver = \"pierre levegh\"" }
### INSTRUCTION How many Field goals (5 points) have a Total Points of 123, and Touchdowns (5 points) larger than 13? ### INPUT CREATE TABLE table_name_59 (field_goals__5_points_ VARCHAR, total_points VARCHAR, touchdowns__5_points_ VARCHAR) ### OUTPUT SELECT COUNT(field_goals__5_points_) FROM table_name_59 WHERE total_points = 123 AND touchdowns__5_points_ > 13
{ "input": "CREATE TABLE table_name_59 (field_goals__5_points_ VARCHAR, total_points VARCHAR, touchdowns__5_points_ VARCHAR)", "instruction": "How many Field goals (5 points) have a Total Points of 123, and Touchdowns (5 points) larger than 13?", "output": "SELECT COUNT(field_goals__5_points_) FROM table_name_59 WHERE total_points = 123 AND touchdowns__5_points_ > 13" }
### INSTRUCTION Who is the Incumbent of the Democratic Party at an election after 1992 in the New York 1 District who was Re-elected? ### INPUT CREATE TABLE table_name_45 (incumbent VARCHAR, district VARCHAR, first_elected VARCHAR, party VARCHAR, results VARCHAR) ### OUTPUT SELECT incumbent FROM table_name_45 WHERE party = "democratic" AND results = "re-elected" AND first_elected > 1992 AND district = "new york 1"
{ "input": "CREATE TABLE table_name_45 (incumbent VARCHAR, district VARCHAR, first_elected VARCHAR, party VARCHAR, results VARCHAR)", "instruction": "Who is the Incumbent of the Democratic Party at an election after 1992 in the New York 1 District who was Re-elected?", "output": "SELECT incumbent FROM table_name_45 WHERE party = \"democratic\" AND results = \"re-elected\" AND first_elected > 1992 AND district = \"new york 1\"" }
### INSTRUCTION Who is the home captain that played at Edgbaston? ### INPUT CREATE TABLE table_name_22 (home_captain VARCHAR, venue VARCHAR) ### OUTPUT SELECT home_captain FROM table_name_22 WHERE venue = "edgbaston"
{ "input": "CREATE TABLE table_name_22 (home_captain VARCHAR, venue VARCHAR)", "instruction": "Who is the home captain that played at Edgbaston?", "output": "SELECT home_captain FROM table_name_22 WHERE venue = \"edgbaston\"" }
### INSTRUCTION In the County of Prince, what was the highest Population density when the Area (km²) was larger than 3.02, and the Population (2006) was larger than 786, and the Population (2011) was smaller than 1135? ### INPUT CREATE TABLE table_name_93 (population_density INTEGER, population__2011_ VARCHAR, population__2006_ VARCHAR, county VARCHAR, area__km²_ VARCHAR) ### OUTPUT SELECT MAX(population_density) FROM table_name_93 WHERE county = "prince" AND area__km²_ > 3.02 AND population__2006_ > 786 AND population__2011_ < 1135
{ "input": "CREATE TABLE table_name_93 (population_density INTEGER, population__2011_ VARCHAR, population__2006_ VARCHAR, county VARCHAR, area__km²_ VARCHAR)", "instruction": "In the County of Prince, what was the highest Population density when the Area (km²) was larger than 3.02, and the Population (2006) was larger than 786, and the Population (2011) was smaller than 1135?", "output": "SELECT MAX(population_density) FROM table_name_93 WHERE county = \"prince\" AND area__km²_ > 3.02 AND population__2006_ > 786 AND population__2011_ < 1135" }
### INSTRUCTION what is the year when the notes is 5000 m and the competition is world junior championships in athletics? ### INPUT CREATE TABLE table_name_36 (year VARCHAR, notes VARCHAR, competition VARCHAR) ### OUTPUT SELECT COUNT(year) FROM table_name_36 WHERE notes = "5000 m" AND competition = "world junior championships in athletics"
{ "input": "CREATE TABLE table_name_36 (year VARCHAR, notes VARCHAR, competition VARCHAR)", "instruction": "what is the year when the notes is 5000 m and the competition is world junior championships in athletics?", "output": "SELECT COUNT(year) FROM table_name_36 WHERE notes = \"5000 m\" AND competition = \"world junior championships in athletics\"" }
### INSTRUCTION What is the Rowers of the race with a Time of 7:41.97 and Notes of FC? ### INPUT CREATE TABLE table_name_99 (rowers VARCHAR, notes VARCHAR, time VARCHAR) ### OUTPUT SELECT rowers FROM table_name_99 WHERE notes = "fc" AND time = "7:41.97"
{ "input": "CREATE TABLE table_name_99 (rowers VARCHAR, notes VARCHAR, time VARCHAR)", "instruction": "What is the Rowers of the race with a Time of 7:41.97 and Notes of FC?", "output": "SELECT rowers FROM table_name_99 WHERE notes = \"fc\" AND time = \"7:41.97\"" }
### INSTRUCTION What is the result of men's doubles when there was no competition? ### INPUT CREATE TABLE table_14904221_1 (mixed_doubles VARCHAR, mens_doubles VARCHAR) ### OUTPUT SELECT mixed_doubles FROM table_14904221_1 WHERE mens_doubles = "no competition"
{ "input": "CREATE TABLE table_14904221_1 (mixed_doubles VARCHAR, mens_doubles VARCHAR)", "instruction": "What is the result of men's doubles when there was no competition?", "output": "SELECT mixed_doubles FROM table_14904221_1 WHERE mens_doubles = \"no competition\"" }
### INSTRUCTION Which Advisor has most of students? List advisor and the number of students. ### INPUT CREATE TABLE Student (Advisor VARCHAR) ### OUTPUT SELECT Advisor, COUNT(*) FROM Student GROUP BY Advisor ORDER BY COUNT(Advisor) DESC LIMIT 1
{ "input": "CREATE TABLE Student (Advisor VARCHAR)", "instruction": "Which Advisor has most of students? List advisor and the number of students.", "output": "SELECT Advisor, COUNT(*) FROM Student GROUP BY Advisor ORDER BY COUNT(Advisor) DESC LIMIT 1" }
### INSTRUCTION What is the record for opponent Anna Barone? ### INPUT CREATE TABLE table_name_24 (record VARCHAR, opponent VARCHAR) ### OUTPUT SELECT record FROM table_name_24 WHERE opponent = "anna barone"
{ "input": "CREATE TABLE table_name_24 (record VARCHAR, opponent VARCHAR)", "instruction": "What is the record for opponent Anna Barone?", "output": "SELECT record FROM table_name_24 WHERE opponent = \"anna barone\"" }
### INSTRUCTION What is Club Source [I ], when Name is "Andrew McCombie Category:Articles With hCards"? ### INPUT CREATE TABLE table_name_14 (club_source_ VARCHAR, i_ VARCHAR, name VARCHAR) ### OUTPUT SELECT club_source_[i_] FROM table_name_14 WHERE name = "andrew mccombie category:articles with hcards"
{ "input": "CREATE TABLE table_name_14 (club_source_ VARCHAR, i_ VARCHAR, name VARCHAR)", "instruction": "What is Club Source [I ], when Name is \"Andrew McCombie Category:Articles With hCards\"?", "output": "SELECT club_source_[i_] FROM table_name_14 WHERE name = \"andrew mccombie category:articles with hcards\"" }
### INSTRUCTION What category was Joe Jonas nominated for at the Kids' Choice Awards Mexico in 2010? ### INPUT CREATE TABLE table_name_44 (category VARCHAR, recipient_s_ VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR) ### OUTPUT SELECT category FROM table_name_44 WHERE result = "nominated" AND year = 2010 AND award = "kids' choice awards mexico" AND recipient_s_ = "joe jonas"
{ "input": "CREATE TABLE table_name_44 (category VARCHAR, recipient_s_ VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR)", "instruction": "What category was Joe Jonas nominated for at the Kids' Choice Awards Mexico in 2010?", "output": "SELECT category FROM table_name_44 WHERE result = \"nominated\" AND year = 2010 AND award = \"kids' choice awards mexico\" AND recipient_s_ = \"joe jonas\"" }
### INSTRUCTION What is the NFL club of the cornerback player with a pick greater than 63? ### INPUT CREATE TABLE table_name_34 (nfl_club VARCHAR, pick VARCHAR, position VARCHAR) ### OUTPUT SELECT nfl_club FROM table_name_34 WHERE pick > 63 AND position = "cornerback"
{ "input": "CREATE TABLE table_name_34 (nfl_club VARCHAR, pick VARCHAR, position VARCHAR)", "instruction": "What is the NFL club of the cornerback player with a pick greater than 63?", "output": "SELECT nfl_club FROM table_name_34 WHERE pick > 63 AND position = \"cornerback\"" }
### INSTRUCTION What is the democratic coalation when together we can do more is sergio castro ( pc )? ### INPUT CREATE TABLE table_2651755_1 (democratic_coalition VARCHAR, together_we_can_do_more VARCHAR) ### OUTPUT SELECT democratic_coalition FROM table_2651755_1 WHERE together_we_can_do_more = "Sergio Castro ( PC )"
{ "input": "CREATE TABLE table_2651755_1 (democratic_coalition VARCHAR, together_we_can_do_more VARCHAR)", "instruction": "What is the democratic coalation when together we can do more is sergio castro ( pc )?", "output": "SELECT democratic_coalition FROM table_2651755_1 WHERE together_we_can_do_more = \"Sergio Castro ( PC )\"" }
### INSTRUCTION Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430 ### INPUT CREATE TABLE table_name_34 (erp___power_w VARCHAR, frequency VARCHAR, facility_id VARCHAR) ### OUTPUT SELECT COUNT(erp___power_w) FROM table_name_34 WHERE frequency = "89.3 fm" AND facility_id < 40430
{ "input": "CREATE TABLE table_name_34 (erp___power_w VARCHAR, frequency VARCHAR, facility_id VARCHAR)", "instruction": "Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430", "output": "SELECT COUNT(erp___power_w) FROM table_name_34 WHERE frequency = \"89.3 fm\" AND facility_id < 40430" }
### INSTRUCTION Name the name origin for 54.0e ### INPUT CREATE TABLE table_16799784_2 (name VARCHAR, longitude VARCHAR) ### OUTPUT SELECT name AS origin FROM table_16799784_2 WHERE longitude = "54.0E"
{ "input": "CREATE TABLE table_16799784_2 (name VARCHAR, longitude VARCHAR)", "instruction": "Name the name origin for 54.0e", "output": "SELECT name AS origin FROM table_16799784_2 WHERE longitude = \"54.0E\"" }
### INSTRUCTION What are the id and the amount of refund of the booking that incurred the most times of payments? ### INPUT CREATE TABLE Payments (booking_id VARCHAR); CREATE TABLE Bookings (booking_id VARCHAR, amount_of_refund VARCHAR) ### OUTPUT SELECT T1.booking_id, T1.amount_of_refund FROM Bookings AS T1 JOIN Payments AS T2 ON T1.booking_id = T2.booking_id GROUP BY T1.booking_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Payments (booking_id VARCHAR); CREATE TABLE Bookings (booking_id VARCHAR, amount_of_refund VARCHAR)", "instruction": "What are the id and the amount of refund of the booking that incurred the most times of payments?", "output": "SELECT T1.booking_id, T1.amount_of_refund FROM Bookings AS T1 JOIN Payments AS T2 ON T1.booking_id = T2.booking_id GROUP BY T1.booking_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the location of the game that was friendly and resulted in 2-3? ### INPUT CREATE TABLE table_name_6 (venue VARCHAR, competition VARCHAR, result VARCHAR) ### OUTPUT SELECT venue FROM table_name_6 WHERE competition = "friendly" AND result = "2-3"
{ "input": "CREATE TABLE table_name_6 (venue VARCHAR, competition VARCHAR, result VARCHAR)", "instruction": "What is the location of the game that was friendly and resulted in 2-3?", "output": "SELECT venue FROM table_name_6 WHERE competition = \"friendly\" AND result = \"2-3\"" }
### INSTRUCTION What is the average total with 1 FA cup and more than 0 FA trophies? ### INPUT CREATE TABLE table_name_61 (total INTEGER, fa_cup VARCHAR, fa_trophy VARCHAR) ### OUTPUT SELECT AVG(total) FROM table_name_61 WHERE fa_cup = 1 AND fa_trophy > 0
{ "input": "CREATE TABLE table_name_61 (total INTEGER, fa_cup VARCHAR, fa_trophy VARCHAR)", "instruction": "What is the average total with 1 FA cup and more than 0 FA trophies?", "output": "SELECT AVG(total) FROM table_name_61 WHERE fa_cup = 1 AND fa_trophy > 0" }
### INSTRUCTION What was the percent cunt for the nation that had fuel oil stocks need only for industry as their fuel alternative? ### INPUT CREATE TABLE table_21690339_1 (_percentage_cut VARCHAR, alternative_fuel VARCHAR) ### OUTPUT SELECT _percentage_cut FROM table_21690339_1 WHERE alternative_fuel = "Fuel oil stocks need only for industry"
{ "input": "CREATE TABLE table_21690339_1 (_percentage_cut VARCHAR, alternative_fuel VARCHAR)", "instruction": "What was the percent cunt for the nation that had fuel oil stocks need only for industry as their fuel alternative?", "output": "SELECT _percentage_cut FROM table_21690339_1 WHERE alternative_fuel = \"Fuel oil stocks need only for industry\"" }
### INSTRUCTION Find the name of customers who are living in Colorado? ### INPUT CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE addresses (address_id VARCHAR, state_province_county VARCHAR) ### OUTPUT SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = "Colorado"
{ "input": "CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE addresses (address_id VARCHAR, state_province_county VARCHAR)", "instruction": "Find the name of customers who are living in Colorado?", "output": "SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = \"Colorado\"" }
### INSTRUCTION What was the record when the high rebounds was david lee (8) ### INPUT CREATE TABLE table_23248869_8 (record VARCHAR, high_rebounds VARCHAR) ### OUTPUT SELECT record FROM table_23248869_8 WHERE high_rebounds = "David Lee (8)"
{ "input": "CREATE TABLE table_23248869_8 (record VARCHAR, high_rebounds VARCHAR)", "instruction": "What was the record when the high rebounds was david lee (8)", "output": "SELECT record FROM table_23248869_8 WHERE high_rebounds = \"David Lee (8)\"" }
### INSTRUCTION What was the result in the year greaters than 2008 with an award of Jahat and had a category of Stacy? ### INPUT CREATE TABLE table_name_51 (result VARCHAR, awards VARCHAR, category VARCHAR, year VARCHAR) ### OUTPUT SELECT result FROM table_name_51 WHERE category = "stacy" AND year > 2008 AND awards = "jahat"
{ "input": "CREATE TABLE table_name_51 (result VARCHAR, awards VARCHAR, category VARCHAR, year VARCHAR)", "instruction": "What was the result in the year greaters than 2008 with an award of Jahat and had a category of Stacy?", "output": "SELECT result FROM table_name_51 WHERE category = \"stacy\" AND year > 2008 AND awards = \"jahat\"" }