text
stringlengths
147
1.06k
source
dict
### INSTRUCTION How many pages were in the book by Stefano D'Arrigo? ### INPUT CREATE TABLE table_name_39 (page_count VARCHAR, author VARCHAR) ### OUTPUT SELECT page_count FROM table_name_39 WHERE author = "stefano d'arrigo"
{ "input": "CREATE TABLE table_name_39 (page_count VARCHAR, author VARCHAR)", "instruction": "How many pages were in the book by Stefano D'Arrigo?", "output": "SELECT page_count FROM table_name_39 WHERE author = \"stefano d'arrigo\"" }
### INSTRUCTION What date has an outcome of runner-up, and a Score of 6–4, 6–2, and a Opponents of gisela dulko flavia pennetta? ### INPUT CREATE TABLE table_name_42 (date VARCHAR, opponents VARCHAR, outcome VARCHAR, score VARCHAR) ### OUTPUT SELECT date FROM table_name_42 WHERE outcome = "runner-up" AND score = "6–4, 6–2" AND opponents = "gisela dulko flavia pennetta"
{ "input": "CREATE TABLE table_name_42 (date VARCHAR, opponents VARCHAR, outcome VARCHAR, score VARCHAR)", "instruction": "What date has an outcome of runner-up, and a Score of 6–4, 6–2, and a Opponents of gisela dulko flavia pennetta?", "output": "SELECT date FROM table_name_42 WHERE outcome = \"runner-up\" AND score = \"6–4, 6–2\" AND opponents = \"gisela dulko flavia pennetta\"" }
### INSTRUCTION Find number of products which Sony does not make. ### INPUT CREATE TABLE manufacturers (code VARCHAR, name VARCHAR); CREATE TABLE products (name VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony')
{ "input": "CREATE TABLE manufacturers (code VARCHAR, name VARCHAR); CREATE TABLE products (name VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR)", "instruction": "Find number of products which Sony does not make.", "output": "SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony')" }
### INSTRUCTION How many Losses have South West DFL of coleraine, and an Against smaller than 891? ### INPUT CREATE TABLE table_name_51 (losses VARCHAR, south_west_dfl VARCHAR, against VARCHAR) ### OUTPUT SELECT COUNT(losses) FROM table_name_51 WHERE south_west_dfl = "coleraine" AND against < 891
{ "input": "CREATE TABLE table_name_51 (losses VARCHAR, south_west_dfl VARCHAR, against VARCHAR)", "instruction": "How many Losses have South West DFL of coleraine, and an Against smaller than 891?", "output": "SELECT COUNT(losses) FROM table_name_51 WHERE south_west_dfl = \"coleraine\" AND against < 891" }
### INSTRUCTION Show the ids of the employees who don't authorize destruction for any document. ### INPUT CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR); CREATE TABLE Employees (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR) ### OUTPUT SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed
{ "input": "CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR); CREATE TABLE Employees (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR)", "instruction": "Show the ids of the employees who don't authorize destruction for any document.", "output": "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed" }
### INSTRUCTION Name the accrediatation for southeast technical institute ### INPUT CREATE TABLE table_2076557_2 (accreditation VARCHAR, school VARCHAR) ### OUTPUT SELECT accreditation FROM table_2076557_2 WHERE school = "Southeast Technical Institute"
{ "input": "CREATE TABLE table_2076557_2 (accreditation VARCHAR, school VARCHAR)", "instruction": "Name the accrediatation for southeast technical institute", "output": "SELECT accreditation FROM table_2076557_2 WHERE school = \"Southeast Technical Institute\"" }
### INSTRUCTION Count the Rank-Final which has a Year larger than 2008, and an Apparatus of balance beam, and a Rank-Qualifying larger than 4? ### INPUT CREATE TABLE table_name_68 (rank_final VARCHAR, rank_qualifying VARCHAR, year VARCHAR, apparatus VARCHAR) ### OUTPUT SELECT COUNT(rank_final) FROM table_name_68 WHERE year > 2008 AND apparatus = "balance beam" AND rank_qualifying > 4
{ "input": "CREATE TABLE table_name_68 (rank_final VARCHAR, rank_qualifying VARCHAR, year VARCHAR, apparatus VARCHAR)", "instruction": "Count the Rank-Final which has a Year larger than 2008, and an Apparatus of balance beam, and a Rank-Qualifying larger than 4?", "output": "SELECT COUNT(rank_final) FROM table_name_68 WHERE year > 2008 AND apparatus = \"balance beam\" AND rank_qualifying > 4" }
### INSTRUCTION What is the lowest Rank, when Name is Jeremiah Massey, and when Games is less than 20? ### INPUT CREATE TABLE table_name_60 (rank INTEGER, name VARCHAR, games VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_60 WHERE name = "jeremiah massey" AND games < 20
{ "input": "CREATE TABLE table_name_60 (rank INTEGER, name VARCHAR, games VARCHAR)", "instruction": "What is the lowest Rank, when Name is Jeremiah Massey, and when Games is less than 20?", "output": "SELECT MIN(rank) FROM table_name_60 WHERE name = \"jeremiah massey\" AND games < 20" }
### INSTRUCTION Who was the lead with John Shuster as skip in the season of 2009–10? ### INPUT CREATE TABLE table_name_83 (lead VARCHAR, skip VARCHAR, season VARCHAR) ### OUTPUT SELECT lead FROM table_name_83 WHERE skip = "john shuster" AND season = "2009–10"
{ "input": "CREATE TABLE table_name_83 (lead VARCHAR, skip VARCHAR, season VARCHAR)", "instruction": "Who was the lead with John Shuster as skip in the season of 2009–10?", "output": "SELECT lead FROM table_name_83 WHERE skip = \"john shuster\" AND season = \"2009–10\"" }
### INSTRUCTION What is the lowest Ovrs, when Wkts is greater than 13, and when Econ is less than 3.21? ### INPUT CREATE TABLE table_name_68 (ovrs INTEGER, wkts VARCHAR, econ VARCHAR) ### OUTPUT SELECT MIN(ovrs) FROM table_name_68 WHERE wkts > 13 AND econ < 3.21
{ "input": "CREATE TABLE table_name_68 (ovrs INTEGER, wkts VARCHAR, econ VARCHAR)", "instruction": "What is the lowest Ovrs, when Wkts is greater than 13, and when Econ is less than 3.21?", "output": "SELECT MIN(ovrs) FROM table_name_68 WHERE wkts > 13 AND econ < 3.21" }
### INSTRUCTION Name the Points which has a Team of sportivo luqueño, and Wins larger than 1? ### INPUT CREATE TABLE table_name_41 (points INTEGER, team VARCHAR, wins VARCHAR) ### OUTPUT SELECT MIN(points) FROM table_name_41 WHERE team = "sportivo luqueño" AND wins > 1
{ "input": "CREATE TABLE table_name_41 (points INTEGER, team VARCHAR, wins VARCHAR)", "instruction": "Name the Points which has a Team of sportivo luqueño, and Wins larger than 1?", "output": "SELECT MIN(points) FROM table_name_41 WHERE team = \"sportivo luqueño\" AND wins > 1" }
### INSTRUCTION When was the 1991 world group I with the opponent of Li Fang? ### INPUT CREATE TABLE table_name_2 (date VARCHAR, edition VARCHAR, opponent VARCHAR) ### OUTPUT SELECT date FROM table_name_2 WHERE edition = "1991 world group i" AND opponent = "li fang"
{ "input": "CREATE TABLE table_name_2 (date VARCHAR, edition VARCHAR, opponent VARCHAR)", "instruction": "When was the 1991 world group I with the opponent of Li Fang?", "output": "SELECT date FROM table_name_2 WHERE edition = \"1991 world group i\" AND opponent = \"li fang\"" }
### INSTRUCTION I want the condition that has a prolonged bleeding time and a platelet count of decreased or unaffected ### INPUT CREATE TABLE table_name_41 (condition VARCHAR, bleeding_time VARCHAR, platelet_count VARCHAR) ### OUTPUT SELECT condition FROM table_name_41 WHERE bleeding_time = "prolonged" AND platelet_count = "decreased or unaffected"
{ "input": "CREATE TABLE table_name_41 (condition VARCHAR, bleeding_time VARCHAR, platelet_count VARCHAR)", "instruction": "I want the condition that has a prolonged bleeding time and a platelet count of decreased or unaffected", "output": "SELECT condition FROM table_name_41 WHERE bleeding_time = \"prolonged\" AND platelet_count = \"decreased or unaffected\"" }
### INSTRUCTION What is the ID of marshall landfill on 09/08/1983? ### INPUT CREATE TABLE table_name_98 (cerclis_id VARCHAR, listed VARCHAR, name VARCHAR) ### OUTPUT SELECT cerclis_id FROM table_name_98 WHERE listed = "09/08/1983" AND name = "marshall landfill"
{ "input": "CREATE TABLE table_name_98 (cerclis_id VARCHAR, listed VARCHAR, name VARCHAR)", "instruction": "What is the ID of marshall landfill on 09/08/1983?", "output": "SELECT cerclis_id FROM table_name_98 WHERE listed = \"09/08/1983\" AND name = \"marshall landfill\"" }
### INSTRUCTION Name the tournament for outcome of winner and clay surface with opponent of aranza salut ### INPUT CREATE TABLE table_name_61 (tournament VARCHAR, opponent VARCHAR, outcome VARCHAR, surface VARCHAR) ### OUTPUT SELECT tournament FROM table_name_61 WHERE outcome = "winner" AND surface = "clay" AND opponent = "aranza salut"
{ "input": "CREATE TABLE table_name_61 (tournament VARCHAR, opponent VARCHAR, outcome VARCHAR, surface VARCHAR)", "instruction": "Name the tournament for outcome of winner and clay surface with opponent of aranza salut", "output": "SELECT tournament FROM table_name_61 WHERE outcome = \"winner\" AND surface = \"clay\" AND opponent = \"aranza salut\"" }
### INSTRUCTION What is Partner, when Outcome is Winner, and when Date is 12 October 2003? ### INPUT CREATE TABLE table_name_73 (partner VARCHAR, outcome VARCHAR, date VARCHAR) ### OUTPUT SELECT partner FROM table_name_73 WHERE outcome = "winner" AND date = "12 october 2003"
{ "input": "CREATE TABLE table_name_73 (partner VARCHAR, outcome VARCHAR, date VARCHAR)", "instruction": "What is Partner, when Outcome is Winner, and when Date is 12 October 2003?", "output": "SELECT partner FROM table_name_73 WHERE outcome = \"winner\" AND date = \"12 october 2003\"" }
### INSTRUCTION What stage (winner) has thor hushovd as a general classification, and trent lowe as a rider classification? ### INPUT CREATE TABLE table_name_3 (stage__winner_ VARCHAR, general_classification VARCHAR, young_rider_classification VARCHAR) ### OUTPUT SELECT stage__winner_ FROM table_name_3 WHERE general_classification = "thor hushovd" AND young_rider_classification = "trent lowe"
{ "input": "CREATE TABLE table_name_3 (stage__winner_ VARCHAR, general_classification VARCHAR, young_rider_classification VARCHAR)", "instruction": "What stage (winner) has thor hushovd as a general classification, and trent lowe as a rider classification?", "output": "SELECT stage__winner_ FROM table_name_3 WHERE general_classification = \"thor hushovd\" AND young_rider_classification = \"trent lowe\"" }
### INSTRUCTION What is the highest Gold that has a Silver less than 7 and Bronze less than 0 ### INPUT CREATE TABLE table_name_17 (gold INTEGER, silver VARCHAR, bronze VARCHAR) ### OUTPUT SELECT MAX(gold) FROM table_name_17 WHERE silver < 7 AND bronze < 0
{ "input": "CREATE TABLE table_name_17 (gold INTEGER, silver VARCHAR, bronze VARCHAR)", "instruction": "What is the highest Gold that has a Silver less than 7 and Bronze less than 0", "output": "SELECT MAX(gold) FROM table_name_17 WHERE silver < 7 AND bronze < 0" }
### INSTRUCTION What is the Borough for the Seward listing on 1977-11-23? ### INPUT CREATE TABLE table_name_54 (borough VARCHAR, location VARCHAR, listed VARCHAR) ### OUTPUT SELECT borough FROM table_name_54 WHERE location = "seward" AND listed = "1977-11-23"
{ "input": "CREATE TABLE table_name_54 (borough VARCHAR, location VARCHAR, listed VARCHAR)", "instruction": "What is the Borough for the Seward listing on 1977-11-23?", "output": "SELECT borough FROM table_name_54 WHERE location = \"seward\" AND listed = \"1977-11-23\"" }
### INSTRUCTION What is the make of the car that won the brazilian grand prix? ### INPUT CREATE TABLE table_1139087_2 (constructor VARCHAR, grand_prix VARCHAR) ### OUTPUT SELECT constructor FROM table_1139087_2 WHERE grand_prix = "Brazilian grand_prix"
{ "input": "CREATE TABLE table_1139087_2 (constructor VARCHAR, grand_prix VARCHAR)", "instruction": "What is the make of the car that won the brazilian grand prix?", "output": "SELECT constructor FROM table_1139087_2 WHERE grand_prix = \"Brazilian grand_prix\"" }
### INSTRUCTION What is the lowest number of games played of the club with more than 25 goals conceded, more than 17 goals scored, and a position of 7? ### INPUT CREATE TABLE table_name_40 (games_played INTEGER, position VARCHAR, goals_conceded VARCHAR, goals_scored VARCHAR) ### OUTPUT SELECT MIN(games_played) FROM table_name_40 WHERE goals_conceded > 25 AND goals_scored > 17 AND position = 7
{ "input": "CREATE TABLE table_name_40 (games_played INTEGER, position VARCHAR, goals_conceded VARCHAR, goals_scored VARCHAR)", "instruction": "What is the lowest number of games played of the club with more than 25 goals conceded, more than 17 goals scored, and a position of 7?", "output": "SELECT MIN(games_played) FROM table_name_40 WHERE goals_conceded > 25 AND goals_scored > 17 AND position = 7" }
### INSTRUCTION What is the average crowd size for the home team hawthorn? ### INPUT CREATE TABLE table_name_13 (crowd INTEGER, home_team VARCHAR) ### OUTPUT SELECT AVG(crowd) FROM table_name_13 WHERE home_team = "hawthorn"
{ "input": "CREATE TABLE table_name_13 (crowd INTEGER, home_team VARCHAR)", "instruction": "What is the average crowd size for the home team hawthorn?", "output": "SELECT AVG(crowd) FROM table_name_13 WHERE home_team = \"hawthorn\"" }
### INSTRUCTION What are the ids of documents with letter 's' in the name with any expense budgets. ### INPUT CREATE TABLE Documents_with_expenses (document_id VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR) ### OUTPUT SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%'
{ "input": "CREATE TABLE Documents_with_expenses (document_id VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR)", "instruction": "What are the ids of documents with letter 's' in the name with any expense budgets.", "output": "SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%'" }
### INSTRUCTION How many directed by entries have UK viewership over 6.16 million? ### INPUT CREATE TABLE table_29063233_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR) ### OUTPUT SELECT COUNT(directed_by) FROM table_29063233_1 WHERE uk_viewers__million_ = "6.16"
{ "input": "CREATE TABLE table_29063233_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR)", "instruction": "How many directed by entries have UK viewership over 6.16 million?", "output": "SELECT COUNT(directed_by) FROM table_29063233_1 WHERE uk_viewers__million_ = \"6.16\"" }
### INSTRUCTION What prefix has Haloalkane as the chemical class? ### INPUT CREATE TABLE table_name_4 (prefix VARCHAR, chemical_class VARCHAR) ### OUTPUT SELECT prefix FROM table_name_4 WHERE chemical_class = "haloalkane"
{ "input": "CREATE TABLE table_name_4 (prefix VARCHAR, chemical_class VARCHAR)", "instruction": "What prefix has Haloalkane as the chemical class?", "output": "SELECT prefix FROM table_name_4 WHERE chemical_class = \"haloalkane\"" }
### INSTRUCTION Which Bolton Wanderers career has a Total larger than 404, and a Position of fw, and Apps less than 492, and 79 Goals? ### INPUT CREATE TABLE table_name_75 (bolton_wanderers_career VARCHAR, goals VARCHAR, apps VARCHAR, total VARCHAR, position VARCHAR) ### OUTPUT SELECT bolton_wanderers_career FROM table_name_75 WHERE total > 404 AND position = "fw" AND apps < 492 AND goals = "79"
{ "input": "CREATE TABLE table_name_75 (bolton_wanderers_career VARCHAR, goals VARCHAR, apps VARCHAR, total VARCHAR, position VARCHAR)", "instruction": "Which Bolton Wanderers career has a Total larger than 404, and a Position of fw, and Apps less than 492, and 79 Goals?", "output": "SELECT bolton_wanderers_career FROM table_name_75 WHERE total > 404 AND position = \"fw\" AND apps < 492 AND goals = \"79\"" }
### INSTRUCTION Which dance style had a draw smaller than 15 and 18 points? ### INPUT CREATE TABLE table_name_54 (dance_styles VARCHAR, draw VARCHAR, points VARCHAR) ### OUTPUT SELECT dance_styles FROM table_name_54 WHERE draw < 15 AND points = 18
{ "input": "CREATE TABLE table_name_54 (dance_styles VARCHAR, draw VARCHAR, points VARCHAR)", "instruction": "Which dance style had a draw smaller than 15 and 18 points?", "output": "SELECT dance_styles FROM table_name_54 WHERE draw < 15 AND points = 18" }
### INSTRUCTION Find the semester when both Master students and Bachelor students got enrolled in. ### INPUT CREATE TABLE Degree_Programs (degree_program_id VARCHAR); CREATE TABLE Student_Enrolment (semester_id VARCHAR, degree_program_id VARCHAR) ### OUTPUT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'
{ "input": "CREATE TABLE Degree_Programs (degree_program_id VARCHAR); CREATE TABLE Student_Enrolment (semester_id VARCHAR, degree_program_id VARCHAR)", "instruction": "Find the semester when both Master students and Bachelor students got enrolled in.", "output": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'" }
### INSTRUCTION What's Trina Gulliver's high checkout? ### INPUT CREATE TABLE table_20351295_2 (high_checkout VARCHAR, player VARCHAR) ### OUTPUT SELECT high_checkout FROM table_20351295_2 WHERE player = "Trina Gulliver"
{ "input": "CREATE TABLE table_20351295_2 (high_checkout VARCHAR, player VARCHAR)", "instruction": "What's Trina Gulliver's high checkout?", "output": "SELECT high_checkout FROM table_20351295_2 WHERE player = \"Trina Gulliver\"" }
### INSTRUCTION What is the Score of the game with the New York Rangers Home team with a Record of 8–27–5? ### INPUT CREATE TABLE table_name_48 (score VARCHAR, home VARCHAR, record VARCHAR) ### OUTPUT SELECT score FROM table_name_48 WHERE home = "new york rangers" AND record = "8–27–5"
{ "input": "CREATE TABLE table_name_48 (score VARCHAR, home VARCHAR, record VARCHAR)", "instruction": "What is the Score of the game with the New York Rangers Home team with a Record of 8–27–5?", "output": "SELECT score FROM table_name_48 WHERE home = \"new york rangers\" AND record = \"8–27–5\"" }
### INSTRUCTION What are the Asian countries which have a population larger than that of any country in Africa? ### INPUT CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER) ### OUTPUT SELECT Name FROM country WHERE Continent = "Asia" AND population > (SELECT MIN(population) FROM country WHERE Continent = "Africa")
{ "input": "CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)", "instruction": "What are the Asian countries which have a population larger than that of any country in Africa?", "output": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT MIN(population) FROM country WHERE Continent = \"Africa\")" }
### INSTRUCTION Which Partial thromboplastin time has a Prothrombin time of prolonged, and a Bleeding time of unaffected, and a Condition of vitamin k deficiency or warfarin? Question 6 ### INPUT CREATE TABLE table_name_1 (partial_thromboplastin_time VARCHAR, condition VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR) ### OUTPUT SELECT partial_thromboplastin_time FROM table_name_1 WHERE prothrombin_time = "prolonged" AND bleeding_time = "unaffected" AND condition = "vitamin k deficiency or warfarin"
{ "input": "CREATE TABLE table_name_1 (partial_thromboplastin_time VARCHAR, condition VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)", "instruction": "Which Partial thromboplastin time has a Prothrombin time of prolonged, and a Bleeding time of unaffected, and a Condition of vitamin k deficiency or warfarin? Question 6", "output": "SELECT partial_thromboplastin_time FROM table_name_1 WHERE prothrombin_time = \"prolonged\" AND bleeding_time = \"unaffected\" AND condition = \"vitamin k deficiency or warfarin\"" }
### INSTRUCTION Name the average grade for şımarık tarkan ### INPUT CREATE TABLE table_21829580_1 (average_grade VARCHAR, song VARCHAR) ### OUTPUT SELECT average_grade FROM table_21829580_1 WHERE song = "Şımarık Tarkan"
{ "input": "CREATE TABLE table_21829580_1 (average_grade VARCHAR, song VARCHAR)", "instruction": "Name the average grade for şımarık tarkan", "output": "SELECT average_grade FROM table_21829580_1 WHERE song = \"Şımarık Tarkan\"" }
### INSTRUCTION What is the average Pct value when state champions is less than 1, MRC Championships is 10, and co-champions are greater than 4? ### INPUT CREATE TABLE table_name_51 (pct INTEGER, co_champions VARCHAR, state_champions VARCHAR, mrc_championships VARCHAR) ### OUTPUT SELECT AVG(pct) FROM table_name_51 WHERE state_champions < 1 AND mrc_championships = 10 AND co_champions > 4
{ "input": "CREATE TABLE table_name_51 (pct INTEGER, co_champions VARCHAR, state_champions VARCHAR, mrc_championships VARCHAR)", "instruction": "What is the average Pct value when state champions is less than 1, MRC Championships is 10, and co-champions are greater than 4?", "output": "SELECT AVG(pct) FROM table_name_51 WHERE state_champions < 1 AND mrc_championships = 10 AND co_champions > 4" }
### INSTRUCTION Show the name of the teacher for the math course. ### INPUT CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course_ID VARCHAR, Course VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR) ### OUTPUT SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = "Math"
{ "input": "CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course_ID VARCHAR, Course VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR)", "instruction": "Show the name of the teacher for the math course.", "output": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"" }
### INSTRUCTION What is the State with the imsa gt as the Major Series and a track in new orleans? ### INPUT CREATE TABLE table_name_23 (state VARCHAR, major_series VARCHAR, track VARCHAR) ### OUTPUT SELECT state FROM table_name_23 WHERE major_series = "imsa gt" AND track = "new orleans"
{ "input": "CREATE TABLE table_name_23 (state VARCHAR, major_series VARCHAR, track VARCHAR)", "instruction": "What is the State with the imsa gt as the Major Series and a track in new orleans?", "output": "SELECT state FROM table_name_23 WHERE major_series = \"imsa gt\" AND track = \"new orleans\"" }
### INSTRUCTION What was the highest match when the away opponent was Dalian Shide Siwu? ### INPUT CREATE TABLE table_name_53 (match INTEGER, opponent_team VARCHAR, home_away VARCHAR) ### OUTPUT SELECT MAX(match) FROM table_name_53 WHERE opponent_team = "dalian shide siwu" AND home_away = "away"
{ "input": "CREATE TABLE table_name_53 (match INTEGER, opponent_team VARCHAR, home_away VARCHAR)", "instruction": "What was the highest match when the away opponent was Dalian Shide Siwu?", "output": "SELECT MAX(match) FROM table_name_53 WHERE opponent_team = \"dalian shide siwu\" AND home_away = \"away\"" }
### INSTRUCTION what is the race title when the winner is dick johnson and the circuit is sandown raceway? ### INPUT CREATE TABLE table_name_53 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR) ### OUTPUT SELECT race_title FROM table_name_53 WHERE winner = "dick johnson" AND circuit = "sandown raceway"
{ "input": "CREATE TABLE table_name_53 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR)", "instruction": "what is the race title when the winner is dick johnson and the circuit is sandown raceway?", "output": "SELECT race_title FROM table_name_53 WHERE winner = \"dick johnson\" AND circuit = \"sandown raceway\"" }
### INSTRUCTION What is the average Total, when Gold is 0, and when Nation is Iran? ### INPUT CREATE TABLE table_name_71 (total INTEGER, gold VARCHAR, nation VARCHAR) ### OUTPUT SELECT AVG(total) FROM table_name_71 WHERE gold = 0 AND nation = "iran"
{ "input": "CREATE TABLE table_name_71 (total INTEGER, gold VARCHAR, nation VARCHAR)", "instruction": "What is the average Total, when Gold is 0, and when Nation is Iran?", "output": "SELECT AVG(total) FROM table_name_71 WHERE gold = 0 AND nation = \"iran\"" }
### INSTRUCTION How many tournament wins were at Volvo Masters Andalucia? ### INPUT CREATE TABLE table_1615980_4 (no VARCHAR, tournament VARCHAR) ### OUTPUT SELECT COUNT(no) FROM table_1615980_4 WHERE tournament = "Volvo Masters Andalucia"
{ "input": "CREATE TABLE table_1615980_4 (no VARCHAR, tournament VARCHAR)", "instruction": "How many tournament wins were at Volvo Masters Andalucia?", "output": "SELECT COUNT(no) FROM table_1615980_4 WHERE tournament = \"Volvo Masters Andalucia\"" }
### INSTRUCTION What is the Away team score when they played Geelong as the Home team? ### INPUT CREATE TABLE table_name_15 (away_team VARCHAR, home_team VARCHAR) ### OUTPUT SELECT away_team AS score FROM table_name_15 WHERE home_team = "geelong"
{ "input": "CREATE TABLE table_name_15 (away_team VARCHAR, home_team VARCHAR)", "instruction": "What is the Away team score when they played Geelong as the Home team?", "output": "SELECT away_team AS score FROM table_name_15 WHERE home_team = \"geelong\"" }
### INSTRUCTION Name the most 10 3 bbl/d (2008) for present share being 1.7% ### INPUT CREATE TABLE table_23195_5 (present_share VARCHAR) ### OUTPUT SELECT MAX(_3_bbl_d__2008_) FROM table_23195_5 WHERE present_share = "1.7%"
{ "input": "CREATE TABLE table_23195_5 (present_share VARCHAR)", "instruction": "Name the most 10 3 bbl/d (2008) for present share being 1.7%", "output": "SELECT MAX(_3_bbl_d__2008_) FROM table_23195_5 WHERE present_share = \"1.7%\"" }
### INSTRUCTION What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns? ### INPUT CREATE TABLE customer (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE rental (staff_id VARCHAR, customer_id VARCHAR); CREATE TABLE staff (first_name VARCHAR, last_name VARCHAR, staff_id VARCHAR) ### OUTPUT SELECT DISTINCT T1.first_name, T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS'
{ "input": "CREATE TABLE customer (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE rental (staff_id VARCHAR, customer_id VARCHAR); CREATE TABLE staff (first_name VARCHAR, last_name VARCHAR, staff_id VARCHAR)", "instruction": "What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns?", "output": "SELECT DISTINCT T1.first_name, T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS'" }
### INSTRUCTION List the names and birthdays of the top five players in terms of potential. ### INPUT CREATE TABLE Player_Attributes (player_api_id VARCHAR); CREATE TABLE Player (player_name VARCHAR, birthday VARCHAR, player_api_id VARCHAR) ### OUTPUT SELECT DISTINCT T1.player_name, T1.birthday FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY potential DESC LIMIT 5
{ "input": "CREATE TABLE Player_Attributes (player_api_id VARCHAR); CREATE TABLE Player (player_name VARCHAR, birthday VARCHAR, player_api_id VARCHAR)", "instruction": "List the names and birthdays of the top five players in terms of potential.", "output": "SELECT DISTINCT T1.player_name, T1.birthday FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY potential DESC LIMIT 5" }
### INSTRUCTION What name was number 7 when Mason was number 1, Owen was number 6, Jackson was number 9, and Logan was number 10? ### INPUT CREATE TABLE table_name_68 (no_7 VARCHAR, no_6 VARCHAR, no_10 VARCHAR, no_1 VARCHAR, no_9 VARCHAR) ### OUTPUT SELECT no_7 FROM table_name_68 WHERE no_1 = "mason" AND no_9 = "jackson" AND no_10 = "logan" AND no_6 = "owen"
{ "input": "CREATE TABLE table_name_68 (no_7 VARCHAR, no_6 VARCHAR, no_10 VARCHAR, no_1 VARCHAR, no_9 VARCHAR)", "instruction": "What name was number 7 when Mason was number 1, Owen was number 6, Jackson was number 9, and Logan was number 10?", "output": "SELECT no_7 FROM table_name_68 WHERE no_1 = \"mason\" AND no_9 = \"jackson\" AND no_10 = \"logan\" AND no_6 = \"owen\"" }
### INSTRUCTION What's the Nordbayern with a Württemberg of Union Böckingen in the year before 1932? ### INPUT CREATE TABLE table_name_92 (nordbayern VARCHAR, year VARCHAR, württemberg VARCHAR) ### OUTPUT SELECT nordbayern FROM table_name_92 WHERE year < 1932 AND württemberg = "union böckingen"
{ "input": "CREATE TABLE table_name_92 (nordbayern VARCHAR, year VARCHAR, württemberg VARCHAR)", "instruction": "What's the Nordbayern with a Württemberg of Union Böckingen in the year before 1932?", "output": "SELECT nordbayern FROM table_name_92 WHERE year < 1932 AND württemberg = \"union böckingen\"" }
### INSTRUCTION What is the Home team score at junction oval? ### INPUT CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT home_team FROM table_name_19 WHERE venue = "junction oval"
{ "input": "CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR)", "instruction": "What is the Home team score at junction oval?", "output": "SELECT home_team FROM table_name_19 WHERE venue = \"junction oval\"" }
### INSTRUCTION what is the total sack when totaltk is 1 and asst. is more than 0? ### INPUT CREATE TABLE table_name_86 (sack INTEGER, totaltk VARCHAR, asst VARCHAR) ### OUTPUT SELECT SUM(sack) FROM table_name_86 WHERE totaltk = 1 AND asst > 0
{ "input": "CREATE TABLE table_name_86 (sack INTEGER, totaltk VARCHAR, asst VARCHAR)", "instruction": "what is the total sack when totaltk is 1 and asst. is more than 0?", "output": "SELECT SUM(sack) FROM table_name_86 WHERE totaltk = 1 AND asst > 0" }
### INSTRUCTION Name the team #2 for river plate ### INPUT CREATE TABLE table_23812628_1 (team__number2 VARCHAR, team__number1 VARCHAR) ### OUTPUT SELECT team__number2 FROM table_23812628_1 WHERE team__number1 = "River Plate"
{ "input": "CREATE TABLE table_23812628_1 (team__number2 VARCHAR, team__number1 VARCHAR)", "instruction": "Name the team #2 for river plate", "output": "SELECT team__number2 FROM table_23812628_1 WHERE team__number1 = \"River Plate\"" }
### INSTRUCTION What were the circumstances of the Hostile incident on the road to Jalalabad? ### INPUT CREATE TABLE table_name_18 (circumstances VARCHAR, nature_of_incident VARCHAR, location VARCHAR) ### OUTPUT SELECT circumstances FROM table_name_18 WHERE nature_of_incident = "hostile" AND location = "road to jalalabad"
{ "input": "CREATE TABLE table_name_18 (circumstances VARCHAR, nature_of_incident VARCHAR, location VARCHAR)", "instruction": "What were the circumstances of the Hostile incident on the road to Jalalabad?", "output": "SELECT circumstances FROM table_name_18 WHERE nature_of_incident = \"hostile\" AND location = \"road to jalalabad\"" }
### INSTRUCTION What player was place of t1 in To Par and had a score of 70-73-69=212? ### INPUT CREATE TABLE table_name_81 (to_par VARCHAR, place VARCHAR, score VARCHAR) ### OUTPUT SELECT to_par FROM table_name_81 WHERE place = "t1" AND score = 70 - 73 - 69 = 212
{ "input": "CREATE TABLE table_name_81 (to_par VARCHAR, place VARCHAR, score VARCHAR)", "instruction": "What player was place of t1 in To Par and had a score of 70-73-69=212?", "output": "SELECT to_par FROM table_name_81 WHERE place = \"t1\" AND score = 70 - 73 - 69 = 212" }
### INSTRUCTION What is the 2011 value with a 2008 value of 0.3 and is a member state of the European Union? ### INPUT CREATE TABLE table_name_64 (member_state VARCHAR) ### OUTPUT SELECT 2011 FROM table_name_64 WHERE 2008 = "0.3" AND member_state = "european union"
{ "input": "CREATE TABLE table_name_64 (member_state VARCHAR)", "instruction": "What is the 2011 value with a 2008 value of 0.3 and is a member state of the European Union?", "output": "SELECT 2011 FROM table_name_64 WHERE 2008 = \"0.3\" AND member_state = \"european union\"" }
### INSTRUCTION Find the names of stadiums that some Australian swimmers have been to. ### INPUT CREATE TABLE swimmer (id VARCHAR, nationality VARCHAR); CREATE TABLE record (swimmer_id VARCHAR, event_id VARCHAR); CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (id VARCHAR, stadium_id VARCHAR) ### OUTPUT SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id JOIN event AS t3 ON t2.event_id = t3.id JOIN stadium AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = 'Australia'
{ "input": "CREATE TABLE swimmer (id VARCHAR, nationality VARCHAR); CREATE TABLE record (swimmer_id VARCHAR, event_id VARCHAR); CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (id VARCHAR, stadium_id VARCHAR)", "instruction": "Find the names of stadiums that some Australian swimmers have been to.", "output": "SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id JOIN event AS t3 ON t2.event_id = t3.id JOIN stadium AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = 'Australia'" }
### INSTRUCTION What was the date of the Arden Street Oval game? ### INPUT CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR) ### OUTPUT SELECT date FROM table_name_59 WHERE venue = "arden street oval"
{ "input": "CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR)", "instruction": "What was the date of the Arden Street Oval game?", "output": "SELECT date FROM table_name_59 WHERE venue = \"arden street oval\"" }
### INSTRUCTION Which Club has a League Cup goals of 0, and a FA Cup goals of 1, and a Total larger than 11, and a League goals of 13? ### INPUT CREATE TABLE table_name_99 (club VARCHAR, league_goals VARCHAR, total VARCHAR, league_cup_goals VARCHAR, fa_cup_goals VARCHAR) ### OUTPUT SELECT club FROM table_name_99 WHERE league_cup_goals = "0" AND fa_cup_goals = "1" AND total > 11 AND league_goals = "13"
{ "input": "CREATE TABLE table_name_99 (club VARCHAR, league_goals VARCHAR, total VARCHAR, league_cup_goals VARCHAR, fa_cup_goals VARCHAR)", "instruction": "Which Club has a League Cup goals of 0, and a FA Cup goals of 1, and a Total larger than 11, and a League goals of 13?", "output": "SELECT club FROM table_name_99 WHERE league_cup_goals = \"0\" AND fa_cup_goals = \"1\" AND total > 11 AND league_goals = \"13\"" }
### INSTRUCTION Can you tell me the Total that has the A Score larger than 6.4, and the B Score smaller than 9.025? ### INPUT CREATE TABLE table_name_31 (total VARCHAR, a_score VARCHAR, b_score VARCHAR) ### OUTPUT SELECT total FROM table_name_31 WHERE a_score > 6.4 AND b_score < 9.025
{ "input": "CREATE TABLE table_name_31 (total VARCHAR, a_score VARCHAR, b_score VARCHAR)", "instruction": "Can you tell me the Total that has the A Score larger than 6.4, and the B Score smaller than 9.025?", "output": "SELECT total FROM table_name_31 WHERE a_score > 6.4 AND b_score < 9.025" }
### INSTRUCTION I want the greatest attendance when the opponent is the chicago bears ### INPUT CREATE TABLE table_name_64 (attendance INTEGER, opponent VARCHAR) ### OUTPUT SELECT MAX(attendance) FROM table_name_64 WHERE opponent = "chicago bears"
{ "input": "CREATE TABLE table_name_64 (attendance INTEGER, opponent VARCHAR)", "instruction": "I want the greatest attendance when the opponent is the chicago bears", "output": "SELECT MAX(attendance) FROM table_name_64 WHERE opponent = \"chicago bears\"" }
### INSTRUCTION How many places according to the 2011 census of whatever population have an area of 132.79 kilometers squared? ### INPUT CREATE TABLE table_14325808_1 (population__2011_census_ VARCHAR, area__km²_ VARCHAR) ### OUTPUT SELECT COUNT(population__2011_census_) FROM table_14325808_1 WHERE area__km²_ = "132.79"
{ "input": "CREATE TABLE table_14325808_1 (population__2011_census_ VARCHAR, area__km²_ VARCHAR)", "instruction": "How many places according to the 2011 census of whatever population have an area of 132.79 kilometers squared?", "output": "SELECT COUNT(population__2011_census_) FROM table_14325808_1 WHERE area__km²_ = \"132.79\"" }
### INSTRUCTION What is the High assists for march 25? ### INPUT CREATE TABLE table_name_69 (high_assists VARCHAR, date VARCHAR) ### OUTPUT SELECT high_assists FROM table_name_69 WHERE date = "march 25"
{ "input": "CREATE TABLE table_name_69 (high_assists VARCHAR, date VARCHAR)", "instruction": "What is the High assists for march 25?", "output": "SELECT high_assists FROM table_name_69 WHERE date = \"march 25\"" }
### INSTRUCTION What is the engine name that has a maximum torque at rpm of n·m ( lbf·ft ) @ 3,800? ### INPUT CREATE TABLE table_name_42 (engine_name VARCHAR, max_torque_at_rpm VARCHAR) ### OUTPUT SELECT engine_name FROM table_name_42 WHERE max_torque_at_rpm = "n·m ( lbf·ft ) @ 3,800"
{ "input": "CREATE TABLE table_name_42 (engine_name VARCHAR, max_torque_at_rpm VARCHAR)", "instruction": "What is the engine name that has a maximum torque at rpm of n·m ( lbf·ft ) @ 3,800?", "output": "SELECT engine_name FROM table_name_42 WHERE max_torque_at_rpm = \"n·m ( lbf·ft ) @ 3,800\"" }
### INSTRUCTION What is Outcome, when Opponent is Victoria Azarenka, and when Score is 6–2, 2–6, 7–5? ### INPUT CREATE TABLE table_name_63 (outcome VARCHAR, opponent VARCHAR, score VARCHAR) ### OUTPUT SELECT outcome FROM table_name_63 WHERE opponent = "victoria azarenka" AND score = "6–2, 2–6, 7–5"
{ "input": "CREATE TABLE table_name_63 (outcome VARCHAR, opponent VARCHAR, score VARCHAR)", "instruction": "What is Outcome, when Opponent is Victoria Azarenka, and when Score is 6–2, 2–6, 7–5?", "output": "SELECT outcome FROM table_name_63 WHERE opponent = \"victoria azarenka\" AND score = \"6–2, 2–6, 7–5\"" }
### INSTRUCTION What label released a CD in 1988? ### INPUT CREATE TABLE table_name_37 (label VARCHAR, date VARCHAR, format VARCHAR) ### OUTPUT SELECT label FROM table_name_37 WHERE date = "1988" AND format = "cd"
{ "input": "CREATE TABLE table_name_37 (label VARCHAR, date VARCHAR, format VARCHAR)", "instruction": "What label released a CD in 1988?", "output": "SELECT label FROM table_name_37 WHERE date = \"1988\" AND format = \"cd\"" }
### INSTRUCTION What is the Population of the Rural Community ### INPUT CREATE TABLE table_name_75 (population VARCHAR, status VARCHAR) ### OUTPUT SELECT population FROM table_name_75 WHERE status = "rural community"
{ "input": "CREATE TABLE table_name_75 (population VARCHAR, status VARCHAR)", "instruction": "What is the Population of the Rural Community", "output": "SELECT population FROM table_name_75 WHERE status = \"rural community\"" }
### INSTRUCTION Please list the location and the winning aircraft name. ### INPUT CREATE TABLE MATCH (Location VARCHAR, Winning_Aircraft VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR) ### OUTPUT SELECT T2.Location, T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft
{ "input": "CREATE TABLE MATCH (Location VARCHAR, Winning_Aircraft VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR)", "instruction": "Please list the location and the winning aircraft name.", "output": "SELECT T2.Location, T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft" }
### INSTRUCTION What is the free of Apolline Dreyfuss & Lila Meesseman-Bakir, when the total was larger than 90.333? ### INPUT CREATE TABLE table_name_87 (free INTEGER, athlete VARCHAR, total VARCHAR) ### OUTPUT SELECT MIN(free) FROM table_name_87 WHERE athlete = "apolline dreyfuss & lila meesseman-bakir" AND total > 90.333
{ "input": "CREATE TABLE table_name_87 (free INTEGER, athlete VARCHAR, total VARCHAR)", "instruction": "What is the free of Apolline Dreyfuss & Lila Meesseman-Bakir, when the total was larger than 90.333?", "output": "SELECT MIN(free) FROM table_name_87 WHERE athlete = \"apolline dreyfuss & lila meesseman-bakir\" AND total > 90.333" }
### INSTRUCTION What is the name of the plaza where the told for heavy vehicles with 2 axles is r20.50? ### INPUT CREATE TABLE table_1211545_2 (name VARCHAR, heavy_vehicle__2_axles_ VARCHAR) ### OUTPUT SELECT name FROM table_1211545_2 WHERE heavy_vehicle__2_axles_ = "R20.50"
{ "input": "CREATE TABLE table_1211545_2 (name VARCHAR, heavy_vehicle__2_axles_ VARCHAR)", "instruction": "What is the name of the plaza where the told for heavy vehicles with 2 axles is r20.50?", "output": "SELECT name FROM table_1211545_2 WHERE heavy_vehicle__2_axles_ = \"R20.50\"" }
### INSTRUCTION Who was the winner that had a Points Classification of Giuseppe Saronni, a Trofeo Fast Team of Bianchi, and was Stage 3? ### INPUT CREATE TABLE table_name_71 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, trofeo_fast_team VARCHAR) ### OUTPUT SELECT winner FROM table_name_71 WHERE points_classification = "giuseppe saronni" AND trofeo_fast_team = "bianchi" AND stage = "3"
{ "input": "CREATE TABLE table_name_71 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, trofeo_fast_team VARCHAR)", "instruction": "Who was the winner that had a Points Classification of Giuseppe Saronni, a Trofeo Fast Team of Bianchi, and was Stage 3?", "output": "SELECT winner FROM table_name_71 WHERE points_classification = \"giuseppe saronni\" AND trofeo_fast_team = \"bianchi\" AND stage = \"3\"" }
### INSTRUCTION When the home attendance is 3.123, what's the highest away attendance? ### INPUT CREATE TABLE table_1816947_2 (highest_attendance_away VARCHAR, average_attendance_home VARCHAR) ### OUTPUT SELECT highest_attendance_away FROM table_1816947_2 WHERE average_attendance_home = "3.123"
{ "input": "CREATE TABLE table_1816947_2 (highest_attendance_away VARCHAR, average_attendance_home VARCHAR)", "instruction": "When the home attendance is 3.123, what's the highest away attendance?", "output": "SELECT highest_attendance_away FROM table_1816947_2 WHERE average_attendance_home = \"3.123\"" }
### INSTRUCTION What is GDP 2012 Millions of Euro, when Population in Millions is less than 1.3, and when GDP (Nominal) Per Capita 2012 Euro is 20,700(p)? ### INPUT CREATE TABLE table_name_51 (gdp_2012_millions_of_euro VARCHAR, population_in_millions VARCHAR, gdp__nominal__per_capita_2012_euro VARCHAR) ### OUTPUT SELECT gdp_2012_millions_of_euro FROM table_name_51 WHERE population_in_millions < 1.3 AND gdp__nominal__per_capita_2012_euro = "20,700(p)"
{ "input": "CREATE TABLE table_name_51 (gdp_2012_millions_of_euro VARCHAR, population_in_millions VARCHAR, gdp__nominal__per_capita_2012_euro VARCHAR)", "instruction": "What is GDP 2012 Millions of Euro, when Population in Millions is less than 1.3, and when GDP (Nominal) Per Capita 2012 Euro is 20,700(p)?", "output": "SELECT gdp_2012_millions_of_euro FROM table_name_51 WHERE population_in_millions < 1.3 AND gdp__nominal__per_capita_2012_euro = \"20,700(p)\"" }
### INSTRUCTION What's the acting segment of 林佩琪 lin peiqi's events that are eliminated? ### INPUT CREATE TABLE table_name_36 (acting_segment VARCHAR, status VARCHAR, name VARCHAR) ### OUTPUT SELECT acting_segment FROM table_name_36 WHERE status = "eliminated" AND name = "林佩琪 lin peiqi"
{ "input": "CREATE TABLE table_name_36 (acting_segment VARCHAR, status VARCHAR, name VARCHAR)", "instruction": "What's the acting segment of 林佩琪 lin peiqi's events that are eliminated?", "output": "SELECT acting_segment FROM table_name_36 WHERE status = \"eliminated\" AND name = \"林佩琪 lin peiqi\"" }
### INSTRUCTION What is the earliest round drafted for a University of Southern California player? ### INPUT CREATE TABLE table_name_91 (round INTEGER, school VARCHAR) ### OUTPUT SELECT MIN(round) FROM table_name_91 WHERE school = "university of southern california"
{ "input": "CREATE TABLE table_name_91 (round INTEGER, school VARCHAR)", "instruction": "What is the earliest round drafted for a University of Southern California player?", "output": "SELECT MIN(round) FROM table_name_91 WHERE school = \"university of southern california\"" }
### INSTRUCTION What is every website with specialization of engineering and division of dhaka division? ### INPUT CREATE TABLE table_2112260_1 (website VARCHAR, specialization VARCHAR, division VARCHAR) ### OUTPUT SELECT website FROM table_2112260_1 WHERE specialization = "Engineering" AND division = "Dhaka division"
{ "input": "CREATE TABLE table_2112260_1 (website VARCHAR, specialization VARCHAR, division VARCHAR)", "instruction": "What is every website with specialization of engineering and division of dhaka division?", "output": "SELECT website FROM table_2112260_1 WHERE specialization = \"Engineering\" AND division = \"Dhaka division\"" }
### INSTRUCTION What is the code of airport that has the highest number of flights? ### INPUT CREATE TABLE FLIGHTS (DestAirport VARCHAR, SourceAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR) ### OUTPUT SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE FLIGHTS (DestAirport VARCHAR, SourceAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR)", "instruction": "What is the code of airport that has the highest number of flights?", "output": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Where is the location of Game 4? ### INPUT CREATE TABLE table_name_26 (location_attendance VARCHAR, game VARCHAR) ### OUTPUT SELECT location_attendance FROM table_name_26 WHERE game = "4"
{ "input": "CREATE TABLE table_name_26 (location_attendance VARCHAR, game VARCHAR)", "instruction": "Where is the location of Game 4?", "output": "SELECT location_attendance FROM table_name_26 WHERE game = \"4\"" }
### INSTRUCTION What is the total frequency mhz of the kgrj call sign, which has an erp w greater than 21,500? ### INPUT CREATE TABLE table_name_19 (frequency_mhz VARCHAR, call_sign VARCHAR, erp_w VARCHAR) ### OUTPUT SELECT COUNT(frequency_mhz) FROM table_name_19 WHERE call_sign = "kgrj" AND erp_w > 21 OFFSET 500
{ "input": "CREATE TABLE table_name_19 (frequency_mhz VARCHAR, call_sign VARCHAR, erp_w VARCHAR)", "instruction": "What is the total frequency mhz of the kgrj call sign, which has an erp w greater than 21,500?", "output": "SELECT COUNT(frequency_mhz) FROM table_name_19 WHERE call_sign = \"kgrj\" AND erp_w > 21 OFFSET 500" }
### INSTRUCTION What is the sum of the years where the attendance was 95,000 and the runner-up was dresdner sc? ### INPUT CREATE TABLE table_name_39 (year INTEGER, attendance VARCHAR, runner_up VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_39 WHERE attendance = "95,000" AND runner_up = "dresdner sc"
{ "input": "CREATE TABLE table_name_39 (year INTEGER, attendance VARCHAR, runner_up VARCHAR)", "instruction": "What is the sum of the years where the attendance was 95,000 and the runner-up was dresdner sc?", "output": "SELECT SUM(year) FROM table_name_39 WHERE attendance = \"95,000\" AND runner_up = \"dresdner sc\"" }
### INSTRUCTION Name the number location of georgia perimeter college ### INPUT CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR) ### OUTPUT SELECT COUNT(location) FROM table_16734640_1 WHERE institution = "Georgia Perimeter College"
{ "input": "CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR)", "instruction": "Name the number location of georgia perimeter college", "output": "SELECT COUNT(location) FROM table_16734640_1 WHERE institution = \"Georgia Perimeter College\"" }
### INSTRUCTION What is the name of the person with a courtesy title of sanuki-no-kami/jiju? ### INPUT CREATE TABLE table_name_32 (name VARCHAR, courtesy_title VARCHAR) ### OUTPUT SELECT name FROM table_name_32 WHERE courtesy_title = "sanuki-no-kami/jiju"
{ "input": "CREATE TABLE table_name_32 (name VARCHAR, courtesy_title VARCHAR)", "instruction": "What is the name of the person with a courtesy title of sanuki-no-kami/jiju?", "output": "SELECT name FROM table_name_32 WHERE courtesy_title = \"sanuki-no-kami/jiju\"" }
### INSTRUCTION Find the number of projects which each scientist is working on and scientist's name. ### INPUT CREATE TABLE scientists (name VARCHAR, ssn VARCHAR); CREATE TABLE assignedto (scientist VARCHAR) ### OUTPUT SELECT COUNT(*), T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn = T2.scientist GROUP BY T1.name
{ "input": "CREATE TABLE scientists (name VARCHAR, ssn VARCHAR); CREATE TABLE assignedto (scientist VARCHAR)", "instruction": "Find the number of projects which each scientist is working on and scientist's name.", "output": "SELECT COUNT(*), T1.name FROM scientists AS T1 JOIN assignedto AS T2 ON T1.ssn = T2.scientist GROUP BY T1.name" }
### INSTRUCTION Which Round has a College/Junior/Club Team (League) of hamilton red wings (oha), and a Position of rw? ### INPUT CREATE TABLE table_name_63 (round INTEGER, college_junior_club_team__league_ VARCHAR, position VARCHAR) ### OUTPUT SELECT AVG(round) FROM table_name_63 WHERE college_junior_club_team__league_ = "hamilton red wings (oha)" AND position = "rw"
{ "input": "CREATE TABLE table_name_63 (round INTEGER, college_junior_club_team__league_ VARCHAR, position VARCHAR)", "instruction": "Which Round has a College/Junior/Club Team (League) of hamilton red wings (oha), and a Position of rw?", "output": "SELECT AVG(round) FROM table_name_63 WHERE college_junior_club_team__league_ = \"hamilton red wings (oha)\" AND position = \"rw\"" }
### INSTRUCTION What was the little league team from Kentucky when the little league team from Illinois was Rock Falls LL Rock Falls? ### INPUT CREATE TABLE table_18461045_1 (kentucky VARCHAR, illinois VARCHAR) ### OUTPUT SELECT kentucky FROM table_18461045_1 WHERE illinois = "Rock Falls LL Rock Falls"
{ "input": "CREATE TABLE table_18461045_1 (kentucky VARCHAR, illinois VARCHAR)", "instruction": "What was the little league team from Kentucky when the little league team from Illinois was Rock Falls LL Rock Falls?", "output": "SELECT kentucky FROM table_18461045_1 WHERE illinois = \"Rock Falls LL Rock Falls\"" }
### INSTRUCTION When the cmd.exe / command.com is type, what are all associated values for powershell (cmdlet)? ### INPUT CREATE TABLE table_14465871_1 (powershell__cmdlet_ VARCHAR, cmdexe___commandcom VARCHAR) ### OUTPUT SELECT powershell__cmdlet_ FROM table_14465871_1 WHERE cmdexe___commandcom = "type"
{ "input": "CREATE TABLE table_14465871_1 (powershell__cmdlet_ VARCHAR, cmdexe___commandcom VARCHAR)", "instruction": "When the cmd.exe / command.com is type, what are all associated values for powershell (cmdlet)?", "output": "SELECT powershell__cmdlet_ FROM table_14465871_1 WHERE cmdexe___commandcom = \"type\"" }
### INSTRUCTION What is the average wickets that have overs greater than 44, danish kaneria as the player, with an average greater than 13.8? ### INPUT CREATE TABLE table_name_24 (wickets INTEGER, average VARCHAR, overs VARCHAR, player VARCHAR) ### OUTPUT SELECT AVG(wickets) FROM table_name_24 WHERE overs > 44 AND player = "danish kaneria" AND average > 13.8
{ "input": "CREATE TABLE table_name_24 (wickets INTEGER, average VARCHAR, overs VARCHAR, player VARCHAR)", "instruction": "What is the average wickets that have overs greater than 44, danish kaneria as the player, with an average greater than 13.8?", "output": "SELECT AVG(wickets) FROM table_name_24 WHERE overs > 44 AND player = \"danish kaneria\" AND average > 13.8" }
### INSTRUCTION What is the most current year signed for separation of † and a separation year of 1997? ### INPUT CREATE TABLE table_name_79 (year_signed INTEGER, reason_for_separation VARCHAR, year_separated VARCHAR) ### OUTPUT SELECT MAX(year_signed) FROM table_name_79 WHERE reason_for_separation = "†" AND year_separated = "1997"
{ "input": "CREATE TABLE table_name_79 (year_signed INTEGER, reason_for_separation VARCHAR, year_separated VARCHAR)", "instruction": "What is the most current year signed for separation of † and a separation year of 1997?", "output": "SELECT MAX(year_signed) FROM table_name_79 WHERE reason_for_separation = \"†\" AND year_separated = \"1997\"" }
### INSTRUCTION Show the id of each employee and the number of document destruction authorised by that employee. ### INPUT CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR) ### OUTPUT SELECT Destruction_Authorised_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID
{ "input": "CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR)", "instruction": "Show the id of each employee and the number of document destruction authorised by that employee.", "output": "SELECT Destruction_Authorised_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID" }
### INSTRUCTION What was the host of the round in the Montagne Center in Texas? ### INPUT CREATE TABLE table_name_62 (host VARCHAR, state VARCHAR, venue VARCHAR) ### OUTPUT SELECT host FROM table_name_62 WHERE state = "texas" AND venue = "montagne center"
{ "input": "CREATE TABLE table_name_62 (host VARCHAR, state VARCHAR, venue VARCHAR)", "instruction": "What was the host of the round in the Montagne Center in Texas?", "output": "SELECT host FROM table_name_62 WHERE state = \"texas\" AND venue = \"montagne center\"" }
### INSTRUCTION Which owner has a description of Mark 1 CK and is dated 1953? ### INPUT CREATE TABLE table_name_30 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR) ### OUTPUT SELECT owner_s_ FROM table_name_30 WHERE date = 1953 AND description = "mark 1 ck"
{ "input": "CREATE TABLE table_name_30 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR)", "instruction": "Which owner has a description of Mark 1 CK and is dated 1953?", "output": "SELECT owner_s_ FROM table_name_30 WHERE date = 1953 AND description = \"mark 1 ck\"" }
### INSTRUCTION Name the number ends won when L is 4 and stolen ends is 17 ### INPUT CREATE TABLE table_15333005_1 (Ends VARCHAR, l VARCHAR, stolen_ends VARCHAR) ### OUTPUT SELECT COUNT(Ends) AS won FROM table_15333005_1 WHERE l = 4 AND stolen_ends = 17
{ "input": "CREATE TABLE table_15333005_1 (Ends VARCHAR, l VARCHAR, stolen_ends VARCHAR)", "instruction": "Name the number ends won when L is 4 and stolen ends is 17", "output": "SELECT COUNT(Ends) AS won FROM table_15333005_1 WHERE l = 4 AND stolen_ends = 17" }
### INSTRUCTION Which state has 67% Republicans and a ratio of 24/12 of Republicans to Democrats? ### INPUT CREATE TABLE table_name_28 (state_ranked_in_partisan_order VARCHAR, percentage_republicans VARCHAR, republican__democratic VARCHAR) ### OUTPUT SELECT state_ranked_in_partisan_order FROM table_name_28 WHERE percentage_republicans = "67%" AND republican__democratic = "24/12"
{ "input": "CREATE TABLE table_name_28 (state_ranked_in_partisan_order VARCHAR, percentage_republicans VARCHAR, republican__democratic VARCHAR)", "instruction": "Which state has 67% Republicans and a ratio of 24/12 of Republicans to Democrats?", "output": "SELECT state_ranked_in_partisan_order FROM table_name_28 WHERE percentage_republicans = \"67%\" AND republican__democratic = \"24/12\"" }
### INSTRUCTION What are the names and ids of stations that had more than 14 bikes available on average or were installed in December? ### INPUT CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE station (name VARCHAR, id VARCHAR, installation_date VARCHAR); CREATE TABLE status (station_id VARCHAR, bikes_available INTEGER) ### OUTPUT SELECT T1.name, T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(T2.bikes_available) > 14 UNION SELECT name, id FROM station WHERE installation_date LIKE "12/%"
{ "input": "CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE station (name VARCHAR, id VARCHAR, installation_date VARCHAR); CREATE TABLE status (station_id VARCHAR, bikes_available INTEGER)", "instruction": "What are the names and ids of stations that had more than 14 bikes available on average or were installed in December?", "output": "SELECT T1.name, T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(T2.bikes_available) > 14 UNION SELECT name, id FROM station WHERE installation_date LIKE \"12/%\"" }
### INSTRUCTION Name the total number of tourism receipts 2011 where tourism receipts 2003 13.5 ### INPUT CREATE TABLE table_18524_6 (tourism_receipts__2011___us VARCHAR, tourism_receipts__2003___as__percentage_of_gdp_ VARCHAR) ### OUTPUT SELECT COUNT(tourism_receipts__2011___us) AS $_per_capita_ FROM table_18524_6 WHERE tourism_receipts__2003___as__percentage_of_gdp_ = "13.5"
{ "input": "CREATE TABLE table_18524_6 (tourism_receipts__2011___us VARCHAR, tourism_receipts__2003___as__percentage_of_gdp_ VARCHAR)", "instruction": "Name the total number of tourism receipts 2011 where tourism receipts 2003 13.5", "output": "SELECT COUNT(tourism_receipts__2011___us) AS $_per_capita_ FROM table_18524_6 WHERE tourism_receipts__2003___as__percentage_of_gdp_ = \"13.5\"" }
### INSTRUCTION How many teams have a player named Denis Andersen? ### INPUT CREATE TABLE table_1965650_7 (nhl_team VARCHAR, player VARCHAR) ### OUTPUT SELECT COUNT(nhl_team) FROM table_1965650_7 WHERE player = "Denis Andersen"
{ "input": "CREATE TABLE table_1965650_7 (nhl_team VARCHAR, player VARCHAR)", "instruction": "How many teams have a player named Denis Andersen?", "output": "SELECT COUNT(nhl_team) FROM table_1965650_7 WHERE player = \"Denis Andersen\"" }
### INSTRUCTION What is every pole position for the Castle Combe circuit and Robbie Kerr is the winning driver? ### INPUT CREATE TABLE table_26137666_3 (pole_position VARCHAR, circuit VARCHAR, winning_driver VARCHAR) ### OUTPUT SELECT pole_position FROM table_26137666_3 WHERE circuit = "Castle Combe" AND winning_driver = "Robbie Kerr"
{ "input": "CREATE TABLE table_26137666_3 (pole_position VARCHAR, circuit VARCHAR, winning_driver VARCHAR)", "instruction": "What is every pole position for the Castle Combe circuit and Robbie Kerr is the winning driver?", "output": "SELECT pole_position FROM table_26137666_3 WHERE circuit = \"Castle Combe\" AND winning_driver = \"Robbie Kerr\"" }
### INSTRUCTION I want the time/retired with grid less than 22 and Laps less than 33 for john surtees ### INPUT CREATE TABLE table_name_96 (time_retired VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR) ### OUTPUT SELECT time_retired FROM table_name_96 WHERE grid < 22 AND laps < 33 AND driver = "john surtees"
{ "input": "CREATE TABLE table_name_96 (time_retired VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR)", "instruction": "I want the time/retired with grid less than 22 and Laps less than 33 for john surtees", "output": "SELECT time_retired FROM table_name_96 WHERE grid < 22 AND laps < 33 AND driver = \"john surtees\"" }
### INSTRUCTION Who was the colour commmentator that broadcasted along with the Play-by-play of bob cole? ### INPUT CREATE TABLE table_name_1 (colour_commentator_s_ VARCHAR, play_by_play VARCHAR) ### OUTPUT SELECT colour_commentator_s_ FROM table_name_1 WHERE play_by_play = "bob cole"
{ "input": "CREATE TABLE table_name_1 (colour_commentator_s_ VARCHAR, play_by_play VARCHAR)", "instruction": "Who was the colour commmentator that broadcasted along with the Play-by-play of bob cole?", "output": "SELECT colour_commentator_s_ FROM table_name_1 WHERE play_by_play = \"bob cole\"" }
### INSTRUCTION What is Score, when Venue is Riyadh, Saudi Arabia, and when Result is "Win"? ### INPUT CREATE TABLE table_name_22 (score VARCHAR, venue VARCHAR, result VARCHAR) ### OUTPUT SELECT score FROM table_name_22 WHERE venue = "riyadh, saudi arabia" AND result = "win"
{ "input": "CREATE TABLE table_name_22 (score VARCHAR, venue VARCHAR, result VARCHAR)", "instruction": "What is Score, when Venue is Riyadh, Saudi Arabia, and when Result is \"Win\"?", "output": "SELECT score FROM table_name_22 WHERE venue = \"riyadh, saudi arabia\" AND result = \"win\"" }
### INSTRUCTION Which Surface has an Outcome of runner-up, and a Score in the final of 4–6, 6–7, 6–2, 2–6? ### INPUT CREATE TABLE table_name_87 (surface VARCHAR, outcome VARCHAR, score_in_the_final VARCHAR) ### OUTPUT SELECT surface FROM table_name_87 WHERE outcome = "runner-up" AND score_in_the_final = "4–6, 6–7, 6–2, 2–6"
{ "input": "CREATE TABLE table_name_87 (surface VARCHAR, outcome VARCHAR, score_in_the_final VARCHAR)", "instruction": "Which Surface has an Outcome of runner-up, and a Score in the final of 4–6, 6–7, 6–2, 2–6?", "output": "SELECT surface FROM table_name_87 WHERE outcome = \"runner-up\" AND score_in_the_final = \"4–6, 6–7, 6–2, 2–6\"" }
### INSTRUCTION What was the time of the games that took place at the cassell coliseum • blacksburg, va? ### INPUT CREATE TABLE table_29535057_4 (time VARCHAR, location VARCHAR) ### OUTPUT SELECT time FROM table_29535057_4 WHERE location = "Cassell Coliseum • Blacksburg, VA"
{ "input": "CREATE TABLE table_29535057_4 (time VARCHAR, location VARCHAR)", "instruction": "What was the time of the games that took place at the cassell coliseum • blacksburg, va?", "output": "SELECT time FROM table_29535057_4 WHERE location = \"Cassell Coliseum • Blacksburg, VA\"" }
### INSTRUCTION What was the season number episode directed by John David Coles? ### INPUT CREATE TABLE table_21781578_2 (season_no VARCHAR, directed_by VARCHAR) ### OUTPUT SELECT season_no FROM table_21781578_2 WHERE directed_by = "John David Coles"
{ "input": "CREATE TABLE table_21781578_2 (season_no VARCHAR, directed_by VARCHAR)", "instruction": "What was the season number episode directed by John David Coles?", "output": "SELECT season_no FROM table_21781578_2 WHERE directed_by = \"John David Coles\"" }
### INSTRUCTION What position does Toby Flood, who is from Newcastle and has fewer than 24 caps, play? ### INPUT CREATE TABLE table_name_47 (position VARCHAR, player VARCHAR, club_province VARCHAR, caps VARCHAR) ### OUTPUT SELECT position FROM table_name_47 WHERE club_province = "newcastle" AND caps < 24 AND player = "toby flood"
{ "input": "CREATE TABLE table_name_47 (position VARCHAR, player VARCHAR, club_province VARCHAR, caps VARCHAR)", "instruction": "What position does Toby Flood, who is from Newcastle and has fewer than 24 caps, play?", "output": "SELECT position FROM table_name_47 WHERE club_province = \"newcastle\" AND caps < 24 AND player = \"toby flood\"" }