text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What is the sum of the game with a PWin% of —, Term [c] of 1987–1988, and Win% less than 0.506? ### INPUT CREATE TABLE table_name_30 (games INTEGER, win_percentage VARCHAR, Pwin_percentage VARCHAR, — VARCHAR, term_ VARCHAR, c_ VARCHAR) ### OUTPUT SELECT SUM(games) FROM table_name_30 WHERE Pwin_percentage = — AND term_[c_] = "1987–1988" AND win_percentage < 0.506
{ "input": "CREATE TABLE table_name_30 (games INTEGER, win_percentage VARCHAR, Pwin_percentage VARCHAR, — VARCHAR, term_ VARCHAR, c_ VARCHAR)", "instruction": "What is the sum of the game with a PWin% of —, Term [c] of 1987–1988, and Win% less than 0.506?", "output": "SELECT SUM(games) FROM table_name_30 WHERE Pwin_percentage = — AND term_[c_] = \"1987–1988\" AND win_percentage < 0.506" }
### INSTRUCTION Show first name and last name for all the students advised by Michael Goodrich. ### INPUT CREATE TABLE Faculty (FacID VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE Student (fname VARCHAR, lname VARCHAR, advisor VARCHAR) ### OUTPUT SELECT T2.fname, T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = "Michael" AND T1.lname = "Goodrich"
{ "input": "CREATE TABLE Faculty (FacID VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE Student (fname VARCHAR, lname VARCHAR, advisor VARCHAR)", "instruction": "Show first name and last name for all the students advised by Michael Goodrich.", "output": "SELECT T2.fname, T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = \"Michael\" AND T1.lname = \"Goodrich\"" }
### INSTRUCTION What is the name of the winner when the Score was 274 (–14) in tennessee? ### INPUT CREATE TABLE table_name_40 (winner VARCHAR, score VARCHAR, location VARCHAR) ### OUTPUT SELECT winner FROM table_name_40 WHERE score = "274 (–14)" AND location = "tennessee"
{ "input": "CREATE TABLE table_name_40 (winner VARCHAR, score VARCHAR, location VARCHAR)", "instruction": "What is the name of the winner when the Score was 274 (–14) in tennessee?", "output": "SELECT winner FROM table_name_40 WHERE score = \"274 (–14)\" AND location = \"tennessee\"" }
### INSTRUCTION What is the New Zealand Kennel Club Toy Group with papillon as the Australian National Kennel Council Toy Dogs Group breed? ### INPUT CREATE TABLE table_name_26 (new_zealand_kennel_club_toy_group VARCHAR, australian_national_kennel_council_toy_dogs_group VARCHAR) ### OUTPUT SELECT new_zealand_kennel_club_toy_group FROM table_name_26 WHERE australian_national_kennel_council_toy_dogs_group = "papillon"
{ "input": "CREATE TABLE table_name_26 (new_zealand_kennel_club_toy_group VARCHAR, australian_national_kennel_council_toy_dogs_group VARCHAR)", "instruction": "What is the New Zealand Kennel Club Toy Group with papillon as the Australian National Kennel Council Toy Dogs Group breed?", "output": "SELECT new_zealand_kennel_club_toy_group FROM table_name_26 WHERE australian_national_kennel_council_toy_dogs_group = \"papillon\"" }
### INSTRUCTION What is the total number of losses that has draws larger than 1 and a Portland DFL of westerns? ### INPUT CREATE TABLE table_name_75 (losses INTEGER, portland_dfl VARCHAR, draws VARCHAR) ### OUTPUT SELECT SUM(losses) FROM table_name_75 WHERE portland_dfl = "westerns" AND draws > 1
{ "input": "CREATE TABLE table_name_75 (losses INTEGER, portland_dfl VARCHAR, draws VARCHAR)", "instruction": "What is the total number of losses that has draws larger than 1 and a Portland DFL of westerns?", "output": "SELECT SUM(losses) FROM table_name_75 WHERE portland_dfl = \"westerns\" AND draws > 1" }
### INSTRUCTION What is the lowest expenditures on R&D for Poland after 2011? ### INPUT CREATE TABLE table_name_94 (_ppp__ VARCHAR, d__billions_of_us$_ VARCHAR, expenditures_on_r INTEGER, country_region VARCHAR, year VARCHAR) ### OUTPUT SELECT MIN(expenditures_on_r) & d__billions_of_us$_, _ppp__ FROM table_name_94 WHERE country_region = "poland" AND year > 2011
{ "input": "CREATE TABLE table_name_94 (_ppp__ VARCHAR, d__billions_of_us$_ VARCHAR, expenditures_on_r INTEGER, country_region VARCHAR, year VARCHAR)", "instruction": "What is the lowest expenditures on R&D for Poland after 2011?", "output": "SELECT MIN(expenditures_on_r) & d__billions_of_us$_, _ppp__ FROM table_name_94 WHERE country_region = \"poland\" AND year > 2011" }
### INSTRUCTION What is the number of passengers in millions that have traveled a distance of 1075km? ### INPUT CREATE TABLE table_name_56 (distance VARCHAR) ### OUTPUT SELECT COUNT(*) FROM table_name_56 WHERE distance = "1075km"
{ "input": "CREATE TABLE table_name_56 (distance VARCHAR)", "instruction": "What is the number of passengers in millions that have traveled a distance of 1075km?", "output": "SELECT COUNT(*) FROM table_name_56 WHERE distance = \"1075km\"" }
### INSTRUCTION What is the round on 30 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team? ### INPUT CREATE TABLE table_name_7 (round VARCHAR, winning_team VARCHAR, date VARCHAR) ### OUTPUT SELECT round FROM table_name_7 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "30 june"
{ "input": "CREATE TABLE table_name_7 (round VARCHAR, winning_team VARCHAR, date VARCHAR)", "instruction": "What is the round on 30 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?", "output": "SELECT round FROM table_name_7 WHERE winning_team = \"a.z.k./roc-compétition a.z.k./roc-compétition\" AND date = \"30 june\"" }
### INSTRUCTION what's the result with candidates being charles edward bennett (d) unopposed ### INPUT CREATE TABLE table_1342013_9 (result VARCHAR, candidates VARCHAR) ### OUTPUT SELECT result FROM table_1342013_9 WHERE candidates = "Charles Edward Bennett (D) Unopposed"
{ "input": "CREATE TABLE table_1342013_9 (result VARCHAR, candidates VARCHAR)", "instruction": "what's the result with candidates being charles edward bennett (d) unopposed", "output": "SELECT result FROM table_1342013_9 WHERE candidates = \"Charles Edward Bennett (D) Unopposed\"" }
### INSTRUCTION What is the lowest grid number that had a rider with KTM as the manufacturer who did more than 20 laps? ### INPUT CREATE TABLE table_name_74 (grid INTEGER, manufacturer VARCHAR, laps VARCHAR) ### OUTPUT SELECT MIN(grid) FROM table_name_74 WHERE manufacturer = "ktm" AND laps > 20
{ "input": "CREATE TABLE table_name_74 (grid INTEGER, manufacturer VARCHAR, laps VARCHAR)", "instruction": "What is the lowest grid number that had a rider with KTM as the manufacturer who did more than 20 laps?", "output": "SELECT MIN(grid) FROM table_name_74 WHERE manufacturer = \"ktm\" AND laps > 20" }
### INSTRUCTION What's the highest year than hawthorn won with a season result of preliminary finalist and a crowd smaller than 27,407? ### INPUT CREATE TABLE table_name_18 (year INTEGER, crowd VARCHAR, winners VARCHAR, season_result VARCHAR) ### OUTPUT SELECT MAX(year) FROM table_name_18 WHERE winners = "hawthorn" AND season_result = "preliminary finalist" AND crowd < 27 OFFSET 407
{ "input": "CREATE TABLE table_name_18 (year INTEGER, crowd VARCHAR, winners VARCHAR, season_result VARCHAR)", "instruction": "What's the highest year than hawthorn won with a season result of preliminary finalist and a crowd smaller than 27,407?", "output": "SELECT MAX(year) FROM table_name_18 WHERE winners = \"hawthorn\" AND season_result = \"preliminary finalist\" AND crowd < 27 OFFSET 407" }
### INSTRUCTION What's the latest episode in a season where the U.S. viewers totaled 14.37 million? ### INPUT CREATE TABLE table_10842344_1 (no_in_season INTEGER, us_viewers__millions_ VARCHAR) ### OUTPUT SELECT MAX(no_in_season) FROM table_10842344_1 WHERE us_viewers__millions_ = "14.37"
{ "input": "CREATE TABLE table_10842344_1 (no_in_season INTEGER, us_viewers__millions_ VARCHAR)", "instruction": "What's the latest episode in a season where the U.S. viewers totaled 14.37 million?", "output": "SELECT MAX(no_in_season) FROM table_10842344_1 WHERE us_viewers__millions_ = \"14.37\"" }
### INSTRUCTION What are the lot details of lots associated with transactions with share count smaller than 50? ### INPUT CREATE TABLE LOTS (lot_details VARCHAR, lot_id VARCHAR); CREATE TABLE TRANSACTIONS_LOTS (transaction_id VARCHAR); CREATE TABLE TRANSACTIONS (transaction_id VARCHAR, share_count INTEGER) ### OUTPUT SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count < 50
{ "input": "CREATE TABLE LOTS (lot_details VARCHAR, lot_id VARCHAR); CREATE TABLE TRANSACTIONS_LOTS (transaction_id VARCHAR); CREATE TABLE TRANSACTIONS (transaction_id VARCHAR, share_count INTEGER)", "instruction": "What are the lot details of lots associated with transactions with share count smaller than 50?", "output": "SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count < 50" }
### INSTRUCTION The Palazzo's street address is listed as what? ### INPUT CREATE TABLE table_name_73 (street_address VARCHAR, name VARCHAR) ### OUTPUT SELECT street_address FROM table_name_73 WHERE name = "the palazzo"
{ "input": "CREATE TABLE table_name_73 (street_address VARCHAR, name VARCHAR)", "instruction": "The Palazzo's street address is listed as what?", "output": "SELECT street_address FROM table_name_73 WHERE name = \"the palazzo\"" }
### INSTRUCTION What is the total average for swimsuits smaller than 9.62 in Colorado? ### INPUT CREATE TABLE table_name_70 (average INTEGER, swimsuit VARCHAR, country VARCHAR) ### OUTPUT SELECT SUM(average) FROM table_name_70 WHERE swimsuit < 9.62 AND country = "colorado"
{ "input": "CREATE TABLE table_name_70 (average INTEGER, swimsuit VARCHAR, country VARCHAR)", "instruction": "What is the total average for swimsuits smaller than 9.62 in Colorado?", "output": "SELECT SUM(average) FROM table_name_70 WHERE swimsuit < 9.62 AND country = \"colorado\"" }
### INSTRUCTION How many DVDs where were in the complete collection series 1-8 with extras? ### INPUT CREATE TABLE table_25721_4 (_number_of_discs VARCHAR, release VARCHAR) ### OUTPUT SELECT _number_of_discs FROM table_25721_4 WHERE release = "The Complete Collection Series 1-8 with extras"
{ "input": "CREATE TABLE table_25721_4 (_number_of_discs VARCHAR, release VARCHAR)", "instruction": "How many DVDs where were in the complete collection series 1-8 with extras?", "output": "SELECT _number_of_discs FROM table_25721_4 WHERE release = \"The Complete Collection Series 1-8 with extras\"" }
### INSTRUCTION Which entrant has a Honda V6 engine and a Lotus 99t chassis? ### INPUT CREATE TABLE table_name_42 (entrant VARCHAR, engine VARCHAR, chassis VARCHAR) ### OUTPUT SELECT entrant FROM table_name_42 WHERE engine = "honda v6" AND chassis = "lotus 99t"
{ "input": "CREATE TABLE table_name_42 (entrant VARCHAR, engine VARCHAR, chassis VARCHAR)", "instruction": "Which entrant has a Honda V6 engine and a Lotus 99t chassis?", "output": "SELECT entrant FROM table_name_42 WHERE engine = \"honda v6\" AND chassis = \"lotus 99t\"" }
### INSTRUCTION Find the first name and office of history professor who did not get a Ph.D. degree. ### INPUT CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR, dept_code VARCHAR, prof_high_degree VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR) ### OUTPUT SELECT T2.emp_fname, T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree <> 'Ph.D.'
{ "input": "CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR, dept_code VARCHAR, prof_high_degree VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)", "instruction": "Find the first name and office of history professor who did not get a Ph.D. degree.", "output": "SELECT T2.emp_fname, T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree <> 'Ph.D.'" }
### INSTRUCTION Name the Score which has a Partner of jorge lozano, an Outcome of runner-up, and Opponents in the final of udo riglewski michael stich? ### INPUT CREATE TABLE table_name_85 (score_in_the_final VARCHAR, opponents_in_the_final VARCHAR, partner VARCHAR, outcome VARCHAR) ### OUTPUT SELECT score_in_the_final FROM table_name_85 WHERE partner = "jorge lozano" AND outcome = "runner-up" AND opponents_in_the_final = "udo riglewski michael stich"
{ "input": "CREATE TABLE table_name_85 (score_in_the_final VARCHAR, opponents_in_the_final VARCHAR, partner VARCHAR, outcome VARCHAR)", "instruction": "Name the Score which has a Partner of jorge lozano, an Outcome of runner-up, and Opponents in the final of udo riglewski michael stich?", "output": "SELECT score_in_the_final FROM table_name_85 WHERE partner = \"jorge lozano\" AND outcome = \"runner-up\" AND opponents_in_the_final = \"udo riglewski michael stich\"" }
### INSTRUCTION What amount of senior high school where junior high school is 114cm? ### INPUT CREATE TABLE table_13555999_1 (senior_high_school__15_18_yrs_ VARCHAR, junior_high_school__12_15_yrs_ VARCHAR) ### OUTPUT SELECT senior_high_school__15_18_yrs_ FROM table_13555999_1 WHERE junior_high_school__12_15_yrs_ = "114cm"
{ "input": "CREATE TABLE table_13555999_1 (senior_high_school__15_18_yrs_ VARCHAR, junior_high_school__12_15_yrs_ VARCHAR)", "instruction": "What amount of senior high school where junior high school is 114cm?", "output": "SELECT senior_high_school__15_18_yrs_ FROM table_13555999_1 WHERE junior_high_school__12_15_yrs_ = \"114cm\"" }
### INSTRUCTION What is the location for the year under 2010 and the year Hei Zhi Hong won silver? ### INPUT CREATE TABLE table_name_67 (location VARCHAR, year VARCHAR, silver VARCHAR) ### OUTPUT SELECT location FROM table_name_67 WHERE year < 2010 AND silver = "hei zhi hong"
{ "input": "CREATE TABLE table_name_67 (location VARCHAR, year VARCHAR, silver VARCHAR)", "instruction": "What is the location for the year under 2010 and the year Hei Zhi Hong won silver?", "output": "SELECT location FROM table_name_67 WHERE year < 2010 AND silver = \"hei zhi hong\"" }
### INSTRUCTION What was the highest money when the score was 69-68-67-69=273? ### INPUT CREATE TABLE table_name_37 (money___ INTEGER, score VARCHAR) ### OUTPUT SELECT MAX(money___) AS $__ FROM table_name_37 WHERE score = 69 - 68 - 67 - 69 = 273
{ "input": "CREATE TABLE table_name_37 (money___ INTEGER, score VARCHAR)", "instruction": "What was the highest money when the score was 69-68-67-69=273?", "output": "SELECT MAX(money___) AS $__ FROM table_name_37 WHERE score = 69 - 68 - 67 - 69 = 273" }
### INSTRUCTION Name the date for chris evert opponent and carpet surface ### INPUT CREATE TABLE table_name_98 (date VARCHAR, opponent VARCHAR, surface VARCHAR) ### OUTPUT SELECT date FROM table_name_98 WHERE opponent = "chris evert" AND surface = "carpet"
{ "input": "CREATE TABLE table_name_98 (date VARCHAR, opponent VARCHAR, surface VARCHAR)", "instruction": "Name the date for chris evert opponent and carpet surface", "output": "SELECT date FROM table_name_98 WHERE opponent = \"chris evert\" AND surface = \"carpet\"" }
### INSTRUCTION What is the lowest total number of wins in a season before 1989 with tianjin as the runners-up and more than 8 clubs? ### INPUT CREATE TABLE table_name_92 (total_wins INTEGER, number_of_clubs VARCHAR, season VARCHAR, runners_up VARCHAR) ### OUTPUT SELECT MIN(total_wins) FROM table_name_92 WHERE season < 1989 AND runners_up = "tianjin" AND number_of_clubs > 8
{ "input": "CREATE TABLE table_name_92 (total_wins INTEGER, number_of_clubs VARCHAR, season VARCHAR, runners_up VARCHAR)", "instruction": "What is the lowest total number of wins in a season before 1989 with tianjin as the runners-up and more than 8 clubs?", "output": "SELECT MIN(total_wins) FROM table_name_92 WHERE season < 1989 AND runners_up = \"tianjin\" AND number_of_clubs > 8" }
### INSTRUCTION Show all locations which don't have a train station with at least 15 platforms. ### INPUT CREATE TABLE station (LOCATION VARCHAR, number_of_platforms VARCHAR) ### OUTPUT SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms >= 15
{ "input": "CREATE TABLE station (LOCATION VARCHAR, number_of_platforms VARCHAR)", "instruction": "Show all locations which don't have a train station with at least 15 platforms.", "output": "SELECT LOCATION FROM station EXCEPT SELECT LOCATION FROM station WHERE number_of_platforms >= 15" }
### INSTRUCTION What is the result for thomas s. mcmillan? ### INPUT CREATE TABLE table_1342359_39 (result VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT result FROM table_1342359_39 WHERE incumbent = "Thomas S. McMillan"
{ "input": "CREATE TABLE table_1342359_39 (result VARCHAR, incumbent VARCHAR)", "instruction": "What is the result for thomas s. mcmillan?", "output": "SELECT result FROM table_1342359_39 WHERE incumbent = \"Thomas S. McMillan\"" }
### INSTRUCTION Which Drawn is the average one that has a Position smaller than 9, and Points smaller than 22, and a Lost smaller than 9, and an Against larger than 29? ### INPUT CREATE TABLE table_name_76 (drawn INTEGER, against VARCHAR, lost VARCHAR, position VARCHAR, points VARCHAR) ### OUTPUT SELECT AVG(drawn) FROM table_name_76 WHERE position < 9 AND points < 22 AND lost < 9 AND against > 29
{ "input": "CREATE TABLE table_name_76 (drawn INTEGER, against VARCHAR, lost VARCHAR, position VARCHAR, points VARCHAR)", "instruction": "Which Drawn is the average one that has a Position smaller than 9, and Points smaller than 22, and a Lost smaller than 9, and an Against larger than 29?", "output": "SELECT AVG(drawn) FROM table_name_76 WHERE position < 9 AND points < 22 AND lost < 9 AND against > 29" }
### INSTRUCTION What is the name of the national final co host when David Jacobs was the National final main host, and the selection show was a song for europe in 1966? ### INPUT CREATE TABLE table_name_85 (national_final_co_host VARCHAR, year_s_ VARCHAR, national_final_main_host VARCHAR, selection_show VARCHAR) ### OUTPUT SELECT national_final_co_host FROM table_name_85 WHERE national_final_main_host = "david jacobs" AND selection_show = "a song for europe" AND year_s_ = "1966"
{ "input": "CREATE TABLE table_name_85 (national_final_co_host VARCHAR, year_s_ VARCHAR, national_final_main_host VARCHAR, selection_show VARCHAR)", "instruction": "What is the name of the national final co host when David Jacobs was the National final main host, and the selection show was a song for europe in 1966?", "output": "SELECT national_final_co_host FROM table_name_85 WHERE national_final_main_host = \"david jacobs\" AND selection_show = \"a song for europe\" AND year_s_ = \"1966\"" }
### INSTRUCTION Find the total savings balance of all accounts except the account with name ‘Brown’. ### INPUT CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR) ### OUTPUT SELECT SUM(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name <> 'Brown'
{ "input": "CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR)", "instruction": "Find the total savings balance of all accounts except the account with name ‘Brown’.", "output": "SELECT SUM(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name <> 'Brown'" }
### INSTRUCTION What is the lowest average points per race entered of driver kimi räikkönen, who has more than 194 entries? ### INPUT CREATE TABLE table_name_3 (average_points_per_race_entered INTEGER, driver VARCHAR, entries VARCHAR) ### OUTPUT SELECT MIN(average_points_per_race_entered) FROM table_name_3 WHERE driver = "kimi räikkönen" AND entries > 194
{ "input": "CREATE TABLE table_name_3 (average_points_per_race_entered INTEGER, driver VARCHAR, entries VARCHAR)", "instruction": "What is the lowest average points per race entered of driver kimi räikkönen, who has more than 194 entries?", "output": "SELECT MIN(average_points_per_race_entered) FROM table_name_3 WHERE driver = \"kimi räikkönen\" AND entries > 194" }
### INSTRUCTION Name the directors for peter gawler ### INPUT CREATE TABLE table_25764073_3 (director_s_ VARCHAR, writer_s_ VARCHAR) ### OUTPUT SELECT director_s_ FROM table_25764073_3 WHERE writer_s_ = "Peter Gawler"
{ "input": "CREATE TABLE table_25764073_3 (director_s_ VARCHAR, writer_s_ VARCHAR)", "instruction": "Name the directors for peter gawler", "output": "SELECT director_s_ FROM table_25764073_3 WHERE writer_s_ = \"Peter Gawler\"" }
### INSTRUCTION What position was drafted by the Hamilton Tiger-Cats? ### INPUT CREATE TABLE table_21321804_5 (position VARCHAR, cfl_team VARCHAR) ### OUTPUT SELECT position FROM table_21321804_5 WHERE cfl_team = "Hamilton Tiger-Cats"
{ "input": "CREATE TABLE table_21321804_5 (position VARCHAR, cfl_team VARCHAR)", "instruction": "What position was drafted by the Hamilton Tiger-Cats? ", "output": "SELECT position FROM table_21321804_5 WHERE cfl_team = \"Hamilton Tiger-Cats\"" }
### INSTRUCTION Find the names of all stores in Khanewal District. ### INPUT CREATE TABLE district (district_id VARCHAR, district_name VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR); CREATE TABLE store (store_name VARCHAR, store_id VARCHAR) ### OUTPUT SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_name = "Khanewal District"
{ "input": "CREATE TABLE district (district_id VARCHAR, district_name VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR); CREATE TABLE store (store_name VARCHAR, store_id VARCHAR)", "instruction": "Find the names of all stores in Khanewal District.", "output": "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_name = \"Khanewal District\"" }
### INSTRUCTION If the channels is wxyzuv, what is the number of channels? ### INPUT CREATE TABLE table_233830_1 (number_of_channels VARCHAR, channels VARCHAR) ### OUTPUT SELECT number_of_channels FROM table_233830_1 WHERE channels = "WXYZUV"
{ "input": "CREATE TABLE table_233830_1 (number_of_channels VARCHAR, channels VARCHAR)", "instruction": "If the channels is wxyzuv, what is the number of channels?", "output": "SELECT number_of_channels FROM table_233830_1 WHERE channels = \"WXYZUV\"" }
### INSTRUCTION What was the studio for The Hard Way in 1943? ### INPUT CREATE TABLE table_name_77 (studio VARCHAR, year VARCHAR, title VARCHAR) ### OUTPUT SELECT studio FROM table_name_77 WHERE year = 1943 AND title = "the hard way"
{ "input": "CREATE TABLE table_name_77 (studio VARCHAR, year VARCHAR, title VARCHAR)", "instruction": "What was the studio for The Hard Way in 1943?", "output": "SELECT studio FROM table_name_77 WHERE year = 1943 AND title = \"the hard way\"" }
### INSTRUCTION Who placed in t5 and scored 73-69-68=210? ### INPUT CREATE TABLE table_name_76 (player VARCHAR, place VARCHAR, score VARCHAR) ### OUTPUT SELECT player FROM table_name_76 WHERE place = "t5" AND score = 73 - 69 - 68 = 210
{ "input": "CREATE TABLE table_name_76 (player VARCHAR, place VARCHAR, score VARCHAR)", "instruction": "Who placed in t5 and scored 73-69-68=210?", "output": "SELECT player FROM table_name_76 WHERE place = \"t5\" AND score = 73 - 69 - 68 = 210" }
### INSTRUCTION In what year did a car have a yamaha v12 engine and a brabham bt60y chassis ### INPUT CREATE TABLE table_name_70 (year VARCHAR, engine VARCHAR, chassis VARCHAR) ### OUTPUT SELECT year FROM table_name_70 WHERE engine = "yamaha v12" AND chassis = "brabham bt60y"
{ "input": "CREATE TABLE table_name_70 (year VARCHAR, engine VARCHAR, chassis VARCHAR)", "instruction": "In what year did a car have a yamaha v12 engine and a brabham bt60y chassis", "output": "SELECT year FROM table_name_70 WHERE engine = \"yamaha v12\" AND chassis = \"brabham bt60y\"" }
### INSTRUCTION Which start has 32 as the finish and laps more than 6? ### INPUT CREATE TABLE table_name_11 (start VARCHAR, finish VARCHAR, laps VARCHAR) ### OUTPUT SELECT start FROM table_name_11 WHERE finish = "32" AND laps > 6
{ "input": "CREATE TABLE table_name_11 (start VARCHAR, finish VARCHAR, laps VARCHAR)", "instruction": "Which start has 32 as the finish and laps more than 6?", "output": "SELECT start FROM table_name_11 WHERE finish = \"32\" AND laps > 6" }
### INSTRUCTION What high assists has the high points of andrew bynum (23)? ### INPUT CREATE TABLE table_name_71 (high_assists VARCHAR, high_points VARCHAR) ### OUTPUT SELECT high_assists FROM table_name_71 WHERE high_points = "andrew bynum (23)"
{ "input": "CREATE TABLE table_name_71 (high_assists VARCHAR, high_points VARCHAR)", "instruction": "What high assists has the high points of andrew bynum (23)?", "output": "SELECT high_assists FROM table_name_71 WHERE high_points = \"andrew bynum (23)\"" }
### INSTRUCTION What was the prize when the show was aired on Ant1, was presented by Andreas Mikroutsikos, and was launched on March 10, 2003? ### INPUT CREATE TABLE table_name_19 (the_prize VARCHAR, launch_date VARCHAR, tv_channel VARCHAR, the_presenter VARCHAR) ### OUTPUT SELECT the_prize FROM table_name_19 WHERE tv_channel = "ant1" AND the_presenter = "andreas mikroutsikos" AND launch_date = "march 10, 2003"
{ "input": "CREATE TABLE table_name_19 (the_prize VARCHAR, launch_date VARCHAR, tv_channel VARCHAR, the_presenter VARCHAR)", "instruction": "What was the prize when the show was aired on Ant1, was presented by Andreas Mikroutsikos, and was launched on March 10, 2003?", "output": "SELECT the_prize FROM table_name_19 WHERE tv_channel = \"ant1\" AND the_presenter = \"andreas mikroutsikos\" AND launch_date = \"march 10, 2003\"" }
### INSTRUCTION How many michelob ultra mountains classification for darren lill ### INPUT CREATE TABLE table_13223187_1 (michelob_ultra_mountains_classification_gold_polka_dot_jersey VARCHAR, drury_hotels_most_aggressive_rider_red_jersey VARCHAR) ### OUTPUT SELECT COUNT(michelob_ultra_mountains_classification_gold_polka_dot_jersey) FROM table_13223187_1 WHERE drury_hotels_most_aggressive_rider_red_jersey = "Darren Lill"
{ "input": "CREATE TABLE table_13223187_1 (michelob_ultra_mountains_classification_gold_polka_dot_jersey VARCHAR, drury_hotels_most_aggressive_rider_red_jersey VARCHAR)", "instruction": "How many michelob ultra mountains classification for darren lill", "output": "SELECT COUNT(michelob_ultra_mountains_classification_gold_polka_dot_jersey) FROM table_13223187_1 WHERE drury_hotels_most_aggressive_rider_red_jersey = \"Darren Lill\"" }
### INSTRUCTION Name the total number of high points for pepsi center 19,756 ### INPUT CREATE TABLE table_23284271_6 (high_points VARCHAR, location_attendance VARCHAR) ### OUTPUT SELECT COUNT(high_points) FROM table_23284271_6 WHERE location_attendance = "Pepsi Center 19,756"
{ "input": "CREATE TABLE table_23284271_6 (high_points VARCHAR, location_attendance VARCHAR)", "instruction": "Name the total number of high points for pepsi center 19,756", "output": "SELECT COUNT(high_points) FROM table_23284271_6 WHERE location_attendance = \"Pepsi Center 19,756\"" }
### INSTRUCTION Who won the stage when Mark Cavendish led the points classification, Rinaldo Nocentini led the general classification, and the stage was less than 11.0? ### INPUT CREATE TABLE table_14395920_2 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, general_classification VARCHAR) ### OUTPUT SELECT winner FROM table_14395920_2 WHERE points_classification = "Mark Cavendish" AND general_classification = "Rinaldo Nocentini" AND stage < 11.0
{ "input": "CREATE TABLE table_14395920_2 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, general_classification VARCHAR)", "instruction": "Who won the stage when Mark Cavendish led the points classification, Rinaldo Nocentini led the general classification, and the stage was less than 11.0?", "output": "SELECT winner FROM table_14395920_2 WHERE points_classification = \"Mark Cavendish\" AND general_classification = \"Rinaldo Nocentini\" AND stage < 11.0" }
### INSTRUCTION What are the average number of played with goals of less than 43, more than 9 draws, a higher position than 17 and 30-8 points? ### INPUT CREATE TABLE table_name_64 (played INTEGER, points VARCHAR, position VARCHAR, goals_for VARCHAR, draws VARCHAR) ### OUTPUT SELECT AVG(played) FROM table_name_64 WHERE goals_for < 43 AND draws > 9 AND position > 17 AND points = "30-8"
{ "input": "CREATE TABLE table_name_64 (played INTEGER, points VARCHAR, position VARCHAR, goals_for VARCHAR, draws VARCHAR)", "instruction": "What are the average number of played with goals of less than 43, more than 9 draws, a higher position than 17 and 30-8 points?", "output": "SELECT AVG(played) FROM table_name_64 WHERE goals_for < 43 AND draws > 9 AND position > 17 AND points = \"30-8\"" }
### INSTRUCTION what is the grid when the driver is pierre levegh? ### INPUT CREATE TABLE table_name_11 (grid VARCHAR, driver VARCHAR) ### OUTPUT SELECT grid FROM table_name_11 WHERE driver = "pierre levegh"
{ "input": "CREATE TABLE table_name_11 (grid VARCHAR, driver VARCHAR)", "instruction": "what is the grid when the driver is pierre levegh?", "output": "SELECT grid FROM table_name_11 WHERE driver = \"pierre levegh\"" }
### INSTRUCTION What is the win-loss when 2008 has a value of Q1 at Australian Open? ### INPUT CREATE TABLE table_name_65 (career_win_loss VARCHAR, tournament VARCHAR) ### OUTPUT SELECT career_win_loss FROM table_name_65 WHERE 2008 = "q1" AND tournament = "australian open"
{ "input": "CREATE TABLE table_name_65 (career_win_loss VARCHAR, tournament VARCHAR)", "instruction": "What is the win-loss when 2008 has a value of Q1 at Australian Open?", "output": "SELECT career_win_loss FROM table_name_65 WHERE 2008 = \"q1\" AND tournament = \"australian open\"" }
### INSTRUCTION What is the english title of the film before 1999 with a role of kim da-rim? ### INPUT CREATE TABLE table_name_80 (english_title VARCHAR, year VARCHAR, role VARCHAR) ### OUTPUT SELECT english_title FROM table_name_80 WHERE year < 1999 AND role = "kim da-rim"
{ "input": "CREATE TABLE table_name_80 (english_title VARCHAR, year VARCHAR, role VARCHAR)", "instruction": "What is the english title of the film before 1999 with a role of kim da-rim?", "output": "SELECT english_title FROM table_name_80 WHERE year < 1999 AND role = \"kim da-rim\"" }
### INSTRUCTION Name the broadcast date for 6.4 million viewers for the archive of 16mm t/r ### INPUT CREATE TABLE table_1776943_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR, archive VARCHAR) ### OUTPUT SELECT broadcast_date FROM table_1776943_1 WHERE viewers__in_millions_ = "6.4" AND archive = "16mm t/r"
{ "input": "CREATE TABLE table_1776943_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR, archive VARCHAR)", "instruction": "Name the broadcast date for 6.4 million viewers for the archive of 16mm t/r", "output": "SELECT broadcast_date FROM table_1776943_1 WHERE viewers__in_millions_ = \"6.4\" AND archive = \"16mm t/r\"" }
### INSTRUCTION Which skip's third is Steffen Walstad? ### INPUT CREATE TABLE table_name_1 (skip VARCHAR, third VARCHAR) ### OUTPUT SELECT skip FROM table_name_1 WHERE third = "steffen walstad"
{ "input": "CREATE TABLE table_name_1 (skip VARCHAR, third VARCHAR)", "instruction": "Which skip's third is Steffen Walstad?", "output": "SELECT skip FROM table_name_1 WHERE third = \"steffen walstad\"" }
### INSTRUCTION Find the number of funiture types produced by each manufacturer as well as the company names. ### INPUT CREATE TABLE furniture_manufacte (manufacturer_id VARCHAR); CREATE TABLE manufacturer (name VARCHAR, manufacturer_id VARCHAR) ### OUTPUT SELECT COUNT(*), t1.name FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id GROUP BY t1.manufacturer_id
{ "input": "CREATE TABLE furniture_manufacte (manufacturer_id VARCHAR); CREATE TABLE manufacturer (name VARCHAR, manufacturer_id VARCHAR)", "instruction": "Find the number of funiture types produced by each manufacturer as well as the company names.", "output": "SELECT COUNT(*), t1.name FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id GROUP BY t1.manufacturer_id" }
### INSTRUCTION Find the different first names and cities of the students who have allergy to milk or cat. ### INPUT CREATE TABLE Has_Allergy (stuid VARCHAR, Allergy VARCHAR); CREATE TABLE Student (fname VARCHAR, city_code VARCHAR, stuid VARCHAR) ### OUTPUT SELECT DISTINCT T1.fname, T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = "Milk" OR T2.Allergy = "Cat"
{ "input": "CREATE TABLE Has_Allergy (stuid VARCHAR, Allergy VARCHAR); CREATE TABLE Student (fname VARCHAR, city_code VARCHAR, stuid VARCHAR)", "instruction": "Find the different first names and cities of the students who have allergy to milk or cat.", "output": "SELECT DISTINCT T1.fname, T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = \"Milk\" OR T2.Allergy = \"Cat\"" }
### INSTRUCTION What is the grid for the driver with an electrical time/retired and 51 laps? ### INPUT CREATE TABLE table_name_43 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR) ### OUTPUT SELECT grid FROM table_name_43 WHERE time_retired = "electrical" AND laps = 51
{ "input": "CREATE TABLE table_name_43 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)", "instruction": "What is the grid for the driver with an electrical time/retired and 51 laps?", "output": "SELECT grid FROM table_name_43 WHERE time_retired = \"electrical\" AND laps = 51" }
### INSTRUCTION Gary Barnett who has been in 0 FA Cups plays what position? ### INPUT CREATE TABLE table_name_7 (position VARCHAR, fa_cup_apps VARCHAR, name VARCHAR) ### OUTPUT SELECT position FROM table_name_7 WHERE fa_cup_apps = "0" AND name = "gary barnett"
{ "input": "CREATE TABLE table_name_7 (position VARCHAR, fa_cup_apps VARCHAR, name VARCHAR)", "instruction": "Gary Barnett who has been in 0 FA Cups plays what position?", "output": "SELECT position FROM table_name_7 WHERE fa_cup_apps = \"0\" AND name = \"gary barnett\"" }
### INSTRUCTION What is the prime mover of the locomotive with a fa-2 model? ### INPUT CREATE TABLE table_name_16 (prime_mover VARCHAR, model VARCHAR) ### OUTPUT SELECT prime_mover FROM table_name_16 WHERE model = "fa-2"
{ "input": "CREATE TABLE table_name_16 (prime_mover VARCHAR, model VARCHAR)", "instruction": "What is the prime mover of the locomotive with a fa-2 model?", "output": "SELECT prime_mover FROM table_name_16 WHERE model = \"fa-2\"" }
### INSTRUCTION Who is the independent regional force when democratic coalition is (r) jorge tarud ( ppd )? ### INPUT CREATE TABLE table_2651755_1 (independent_regional_force VARCHAR, democratic_coalition VARCHAR) ### OUTPUT SELECT independent_regional_force FROM table_2651755_1 WHERE democratic_coalition = "(R) Jorge Tarud ( PPD )"
{ "input": "CREATE TABLE table_2651755_1 (independent_regional_force VARCHAR, democratic_coalition VARCHAR)", "instruction": "Who is the independent regional force when democratic coalition is (r) jorge tarud ( ppd )?", "output": "SELECT independent_regional_force FROM table_2651755_1 WHERE democratic_coalition = \"(R) Jorge Tarud ( PPD )\"" }
### INSTRUCTION What is the number of Jianshu when the total is more than 19.16, for Nguyen Huy Thanh ( vie ), and Qiangshu is more than 9.66? ### INPUT CREATE TABLE table_name_76 (jianshu VARCHAR, qiangshu VARCHAR, total VARCHAR, athlete VARCHAR) ### OUTPUT SELECT COUNT(jianshu) FROM table_name_76 WHERE total > 19.16 AND athlete = "nguyen huy thanh ( vie )" AND qiangshu > 9.66
{ "input": "CREATE TABLE table_name_76 (jianshu VARCHAR, qiangshu VARCHAR, total VARCHAR, athlete VARCHAR)", "instruction": "What is the number of Jianshu when the total is more than 19.16, for Nguyen Huy Thanh ( vie ), and Qiangshu is more than 9.66?", "output": "SELECT COUNT(jianshu) FROM table_name_76 WHERE total > 19.16 AND athlete = \"nguyen huy thanh ( vie )\" AND qiangshu > 9.66" }
### INSTRUCTION what is the number of lane with a rank more than 2 for Louise ørnstedt? ### INPUT CREATE TABLE table_name_86 (lane VARCHAR, rank VARCHAR, name VARCHAR) ### OUTPUT SELECT COUNT(lane) FROM table_name_86 WHERE rank > 2 AND name = "louise ørnstedt"
{ "input": "CREATE TABLE table_name_86 (lane VARCHAR, rank VARCHAR, name VARCHAR)", "instruction": "what is the number of lane with a rank more than 2 for Louise ørnstedt?", "output": "SELECT COUNT(lane) FROM table_name_86 WHERE rank > 2 AND name = \"louise ørnstedt\"" }
### INSTRUCTION What's the total number of Silver that has Gold that's larger than 0, Bronze that's smaller than 23, a Total that's larger than 22, and has the Nation of Saint Kitts and Nevis? ### INPUT CREATE TABLE table_name_96 (silver VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR) ### OUTPUT SELECT COUNT(silver) FROM table_name_96 WHERE gold > 0 AND bronze < 23 AND total > 22 AND nation = "saint kitts and nevis"
{ "input": "CREATE TABLE table_name_96 (silver VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)", "instruction": "What's the total number of Silver that has Gold that's larger than 0, Bronze that's smaller than 23, a Total that's larger than 22, and has the Nation of Saint Kitts and Nevis?", "output": "SELECT COUNT(silver) FROM table_name_96 WHERE gold > 0 AND bronze < 23 AND total > 22 AND nation = \"saint kitts and nevis\"" }
### INSTRUCTION What location has a home ground of n/a, and position in 2012-13 of 13th, third division? ### INPUT CREATE TABLE table_name_2 (location VARCHAR, home_ground VARCHAR, position_in_2012_13 VARCHAR) ### OUTPUT SELECT location FROM table_name_2 WHERE home_ground = "n/a" AND position_in_2012_13 = "13th, third division"
{ "input": "CREATE TABLE table_name_2 (location VARCHAR, home_ground VARCHAR, position_in_2012_13 VARCHAR)", "instruction": "What location has a home ground of n/a, and position in 2012-13 of 13th, third division?", "output": "SELECT location FROM table_name_2 WHERE home_ground = \"n/a\" AND position_in_2012_13 = \"13th, third division\"" }
### INSTRUCTION What is the 2006 result of the Canada Masters tournament that is A in 2009 and A in 2010? ### INPUT CREATE TABLE table_name_88 (tournament VARCHAR) ### OUTPUT SELECT 2006 FROM table_name_88 WHERE 2010 = "a" AND 2009 = "a" AND tournament = "canada masters"
{ "input": "CREATE TABLE table_name_88 (tournament VARCHAR)", "instruction": "What is the 2006 result of the Canada Masters tournament that is A in 2009 and A in 2010?", "output": "SELECT 2006 FROM table_name_88 WHERE 2010 = \"a\" AND 2009 = \"a\" AND tournament = \"canada masters\"" }
### INSTRUCTION If the coordinate velocity v dx/dt in units of c is (e 2 − 1)/(e 2 + 1) ≅ 0.761, what is the velocity angle η in i-radians? ### INPUT CREATE TABLE table_15314901_1 (velocity_angle_η_in_i_radians VARCHAR, coordinate_velocity_v_dx_dt_in_units_of_c VARCHAR) ### OUTPUT SELECT velocity_angle_η_in_i_radians FROM table_15314901_1 WHERE coordinate_velocity_v_dx_dt_in_units_of_c = "(e 2 − 1)/(e 2 + 1) ≅ 0.761"
{ "input": "CREATE TABLE table_15314901_1 (velocity_angle_η_in_i_radians VARCHAR, coordinate_velocity_v_dx_dt_in_units_of_c VARCHAR)", "instruction": "If the coordinate velocity v dx/dt in units of c is (e 2 − 1)/(e 2 + 1) ≅ 0.761, what is the velocity angle η in i-radians?", "output": "SELECT velocity_angle_η_in_i_radians FROM table_15314901_1 WHERE coordinate_velocity_v_dx_dt_in_units_of_c = \"(e 2 − 1)/(e 2 + 1) ≅ 0.761\"" }
### INSTRUCTION What's the location of Mom's Radio 95.9 Naga having a power of 10kw? ### INPUT CREATE TABLE table_name_58 (location VARCHAR, power__kw_ VARCHAR, branding VARCHAR) ### OUTPUT SELECT location FROM table_name_58 WHERE power__kw_ = "10kw" AND branding = "mom's radio 95.9 naga"
{ "input": "CREATE TABLE table_name_58 (location VARCHAR, power__kw_ VARCHAR, branding VARCHAR)", "instruction": "What's the location of Mom's Radio 95.9 Naga having a power of 10kw?", "output": "SELECT location FROM table_name_58 WHERE power__kw_ = \"10kw\" AND branding = \"mom's radio 95.9 naga\"" }
### INSTRUCTION What is the height above sea level for the station opened 175.67km from Wellington prior to 1887? ### INPUT CREATE TABLE table_name_2 (height_above_sea_level__m_ VARCHAR, opened VARCHAR, distance_from_wellington VARCHAR) ### OUTPUT SELECT height_above_sea_level__m_ FROM table_name_2 WHERE opened < 1887 AND distance_from_wellington = "175.67km"
{ "input": "CREATE TABLE table_name_2 (height_above_sea_level__m_ VARCHAR, opened VARCHAR, distance_from_wellington VARCHAR)", "instruction": "What is the height above sea level for the station opened 175.67km from Wellington prior to 1887?", "output": "SELECT height_above_sea_level__m_ FROM table_name_2 WHERE opened < 1887 AND distance_from_wellington = \"175.67km\"" }
### INSTRUCTION What's the total goals for Alan Sweeney having 0 FA Cup goals and fewer than 0 League Cup apps? ### INPUT CREATE TABLE table_name_91 (total_goals INTEGER, league_cup_apps VARCHAR, fa_cup_goals VARCHAR, name VARCHAR) ### OUTPUT SELECT AVG(total_goals) FROM table_name_91 WHERE fa_cup_goals = 0 AND name = "alan sweeney" AND league_cup_apps < 0
{ "input": "CREATE TABLE table_name_91 (total_goals INTEGER, league_cup_apps VARCHAR, fa_cup_goals VARCHAR, name VARCHAR)", "instruction": "What's the total goals for Alan Sweeney having 0 FA Cup goals and fewer than 0 League Cup apps?", "output": "SELECT AVG(total_goals) FROM table_name_91 WHERE fa_cup_goals = 0 AND name = \"alan sweeney\" AND league_cup_apps < 0" }
### INSTRUCTION what is the average genes when the reference is 2009 and the strain is rku-1? ### INPUT CREATE TABLE table_name_84 (genes INTEGER, reference VARCHAR, strain VARCHAR) ### OUTPUT SELECT AVG(genes) FROM table_name_84 WHERE reference = "2009" AND strain = "rku-1"
{ "input": "CREATE TABLE table_name_84 (genes INTEGER, reference VARCHAR, strain VARCHAR)", "instruction": "what is the average genes when the reference is 2009 and the strain is rku-1?", "output": "SELECT AVG(genes) FROM table_name_84 WHERE reference = \"2009\" AND strain = \"rku-1\"" }
### INSTRUCTION What's the round of 32 during the 56kg when the quarterfinals, semifinals, and finals did not advance? ### INPUT CREATE TABLE table_name_10 (round_of_32 VARCHAR, event VARCHAR, quarterfinals VARCHAR, finals VARCHAR, semifinals VARCHAR) ### OUTPUT SELECT round_of_32 FROM table_name_10 WHERE finals = "did not advance" AND semifinals = "did not advance" AND quarterfinals = "did not advance" AND event = "56kg"
{ "input": "CREATE TABLE table_name_10 (round_of_32 VARCHAR, event VARCHAR, quarterfinals VARCHAR, finals VARCHAR, semifinals VARCHAR)", "instruction": "What's the round of 32 during the 56kg when the quarterfinals, semifinals, and finals did not advance?", "output": "SELECT round_of_32 FROM table_name_10 WHERE finals = \"did not advance\" AND semifinals = \"did not advance\" AND quarterfinals = \"did not advance\" AND event = \"56kg\"" }
### INSTRUCTION Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle. ### INPUT CREATE TABLE STUDENT (StuID VARCHAR, city_code VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR) ### OUTPUT SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring"
{ "input": "CREATE TABLE STUDENT (StuID VARCHAR, city_code VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)", "instruction": "Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.", "output": "SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = \"NYC\" AND T2.Election_Cycle = \"Spring\"" }
### INSTRUCTION What is the average number of employees of the departments whose rank is between 10 and 15? ### INPUT CREATE TABLE department (num_employees INTEGER, ranking INTEGER) ### OUTPUT SELECT AVG(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15
{ "input": "CREATE TABLE department (num_employees INTEGER, ranking INTEGER)", "instruction": "What is the average number of employees of the departments whose rank is between 10 and 15?", "output": "SELECT AVG(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15" }
### INSTRUCTION What is Party, when Results is "Re-Elected", when First Elected is greater than 1990, and when District is "Minnesota 4"? ### INPUT CREATE TABLE table_name_10 (party VARCHAR, district VARCHAR, results VARCHAR, first_elected VARCHAR) ### OUTPUT SELECT party FROM table_name_10 WHERE results = "re-elected" AND first_elected > 1990 AND district = "minnesota 4"
{ "input": "CREATE TABLE table_name_10 (party VARCHAR, district VARCHAR, results VARCHAR, first_elected VARCHAR)", "instruction": "What is Party, when Results is \"Re-Elected\", when First Elected is greater than 1990, and when District is \"Minnesota 4\"?", "output": "SELECT party FROM table_name_10 WHERE results = \"re-elected\" AND first_elected > 1990 AND district = \"minnesota 4\"" }
### INSTRUCTION What is Administration of Oaths, when Rights of Audience is Yes, and when Reserved Instruments is Yes? ### INPUT CREATE TABLE table_name_43 (administration_of_oaths VARCHAR, rights_of_audience VARCHAR, reserved_instruments VARCHAR) ### OUTPUT SELECT administration_of_oaths FROM table_name_43 WHERE rights_of_audience = "yes" AND reserved_instruments = "yes"
{ "input": "CREATE TABLE table_name_43 (administration_of_oaths VARCHAR, rights_of_audience VARCHAR, reserved_instruments VARCHAR)", "instruction": "What is Administration of Oaths, when Rights of Audience is Yes, and when Reserved Instruments is Yes?", "output": "SELECT administration_of_oaths FROM table_name_43 WHERE rights_of_audience = \"yes\" AND reserved_instruments = \"yes\"" }
### INSTRUCTION If the Class A is Anton and Class AAA is Burnet, what is Class AA? ### INPUT CREATE TABLE table_name_88 (class_aA VARCHAR, class_a VARCHAR, class_aAA VARCHAR, burnet VARCHAR) ### OUTPUT SELECT class_aA FROM table_name_88 WHERE class_a = "anton" AND class_aAA = burnet
{ "input": "CREATE TABLE table_name_88 (class_aA VARCHAR, class_a VARCHAR, class_aAA VARCHAR, burnet VARCHAR)", "instruction": "If the Class A is Anton and Class AAA is Burnet, what is Class AA?", "output": "SELECT class_aA FROM table_name_88 WHERE class_a = \"anton\" AND class_aAA = burnet" }
### INSTRUCTION What is the smallest year for a Main of Eintracht Frankfurt, Rhein of Waldhof Mannheim, Sarr of FK Pirmasens, and Hessen of Wormatia Worms? ### INPUT CREATE TABLE table_name_96 (year INTEGER, hessen VARCHAR, saar VARCHAR, main VARCHAR, rhein VARCHAR) ### OUTPUT SELECT MIN(year) FROM table_name_96 WHERE main = "eintracht frankfurt" AND rhein = "waldhof mannheim" AND saar = "fk pirmasens" AND hessen = "wormatia worms"
{ "input": "CREATE TABLE table_name_96 (year INTEGER, hessen VARCHAR, saar VARCHAR, main VARCHAR, rhein VARCHAR)", "instruction": "What is the smallest year for a Main of Eintracht Frankfurt, Rhein of Waldhof Mannheim, Sarr of FK Pirmasens, and Hessen of Wormatia Worms?", "output": "SELECT MIN(year) FROM table_name_96 WHERE main = \"eintracht frankfurt\" AND rhein = \"waldhof mannheim\" AND saar = \"fk pirmasens\" AND hessen = \"wormatia worms\"" }
### INSTRUCTION How many Gold medals did Puerto Rico receive with 1 Silver and a Total of 1 or less? ### INPUT CREATE TABLE table_name_79 (gold VARCHAR, total VARCHAR, silver VARCHAR, nation VARCHAR) ### OUTPUT SELECT COUNT(gold) FROM table_name_79 WHERE silver = 1 AND nation = "puerto rico" AND total < 1
{ "input": "CREATE TABLE table_name_79 (gold VARCHAR, total VARCHAR, silver VARCHAR, nation VARCHAR)", "instruction": "How many Gold medals did Puerto Rico receive with 1 Silver and a Total of 1 or less?", "output": "SELECT COUNT(gold) FROM table_name_79 WHERE silver = 1 AND nation = \"puerto rico\" AND total < 1" }
### INSTRUCTION What was the senior status for the judge who was terminated because of death, with a Chief Judge entry of —? ### INPUT CREATE TABLE table_name_22 (senior_status VARCHAR, reason_for_termination VARCHAR, chief_judge VARCHAR) ### OUTPUT SELECT senior_status FROM table_name_22 WHERE reason_for_termination = "death" AND chief_judge = "—"
{ "input": "CREATE TABLE table_name_22 (senior_status VARCHAR, reason_for_termination VARCHAR, chief_judge VARCHAR)", "instruction": "What was the senior status for the judge who was terminated because of death, with a Chief Judge entry of —?", "output": "SELECT senior_status FROM table_name_22 WHERE reason_for_termination = \"death\" AND chief_judge = \"—\"" }
### INSTRUCTION What candidate was re-elected in the Louisiana 5 district? ### INPUT CREATE TABLE table_1342149_18 (candidates VARCHAR, result VARCHAR, district VARCHAR) ### OUTPUT SELECT candidates FROM table_1342149_18 WHERE result = "Re-elected" AND district = "Louisiana 5"
{ "input": "CREATE TABLE table_1342149_18 (candidates VARCHAR, result VARCHAR, district VARCHAR)", "instruction": "What candidate was re-elected in the Louisiana 5 district? ", "output": "SELECT candidates FROM table_1342149_18 WHERE result = \"Re-elected\" AND district = \"Louisiana 5\"" }
### INSTRUCTION I want the condition that has a partial thromboplastin time of prolonged and unaffected bleeding time ### INPUT CREATE TABLE table_name_41 (condition VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR) ### OUTPUT SELECT condition FROM table_name_41 WHERE partial_thromboplastin_time = "prolonged" AND bleeding_time = "unaffected"
{ "input": "CREATE TABLE table_name_41 (condition VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR)", "instruction": "I want the condition that has a partial thromboplastin time of prolonged and unaffected bleeding time", "output": "SELECT condition FROM table_name_41 WHERE partial_thromboplastin_time = \"prolonged\" AND bleeding_time = \"unaffected\"" }
### INSTRUCTION What is the Bulgarian Commander in Autumn 1040 at the Battle of Thessalonica? ### INPUT CREATE TABLE table_name_41 (bulgarian_commander VARCHAR, battle VARCHAR, date VARCHAR) ### OUTPUT SELECT bulgarian_commander FROM table_name_41 WHERE battle = "battle of thessalonica" AND date = "autumn 1040"
{ "input": "CREATE TABLE table_name_41 (bulgarian_commander VARCHAR, battle VARCHAR, date VARCHAR)", "instruction": "What is the Bulgarian Commander in Autumn 1040 at the Battle of Thessalonica?", "output": "SELECT bulgarian_commander FROM table_name_41 WHERE battle = \"battle of thessalonica\" AND date = \"autumn 1040\"" }
### INSTRUCTION Find the semester and year which has the least number of student taking any class. ### INPUT CREATE TABLE takes (semester VARCHAR, YEAR VARCHAR) ### OUTPUT SELECT semester, YEAR FROM takes GROUP BY semester, YEAR ORDER BY COUNT(*) LIMIT 1
{ "input": "CREATE TABLE takes (semester VARCHAR, YEAR VARCHAR)", "instruction": "Find the semester and year which has the least number of student taking any class.", "output": "SELECT semester, YEAR FROM takes GROUP BY semester, YEAR ORDER BY COUNT(*) LIMIT 1" }
### INSTRUCTION List the names of all left-footed players who have overall rating between 85 and 90. ### INPUT CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (player_api_id VARCHAR, overall_rating VARCHAR, preferred_foot VARCHAR) ### OUTPUT SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot = "left" AND T2.overall_rating >= 85 AND T2.overall_rating <= 90
{ "input": "CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (player_api_id VARCHAR, overall_rating VARCHAR, preferred_foot VARCHAR)", "instruction": "List the names of all left-footed players who have overall rating between 85 and 90.", "output": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot = \"left\" AND T2.overall_rating >= 85 AND T2.overall_rating <= 90" }
### INSTRUCTION What methos did Keith Wisniewski use in the ufc fight night: teixeira vs. bader? ### INPUT CREATE TABLE table_name_99 (method VARCHAR, event VARCHAR) ### OUTPUT SELECT method FROM table_name_99 WHERE event = "ufc fight night: teixeira vs. bader"
{ "input": "CREATE TABLE table_name_99 (method VARCHAR, event VARCHAR)", "instruction": "What methos did Keith Wisniewski use in the ufc fight night: teixeira vs. bader?", "output": "SELECT method FROM table_name_99 WHERE event = \"ufc fight night: teixeira vs. bader\"" }
### INSTRUCTION What competition had a final round in the finals and the final position winners? ### INPUT CREATE TABLE table_name_66 (competition VARCHAR, final_position VARCHAR, final_round VARCHAR) ### OUTPUT SELECT competition FROM table_name_66 WHERE final_position = "winners" AND final_round = "finals"
{ "input": "CREATE TABLE table_name_66 (competition VARCHAR, final_position VARCHAR, final_round VARCHAR)", "instruction": "What competition had a final round in the finals and the final position winners?", "output": "SELECT competition FROM table_name_66 WHERE final_position = \"winners\" AND final_round = \"finals\"" }
### INSTRUCTION Where did Test Mission: War Heads and Missile Payload launch when there was a partial failure? ### INPUT CREATE TABLE table_11869952_3 (launch_site VARCHAR, mission VARCHAR, results VARCHAR) ### OUTPUT SELECT launch_site FROM table_11869952_3 WHERE mission = "Test mission: war heads and Missile payload" AND results = "Partial Failure"
{ "input": "CREATE TABLE table_11869952_3 (launch_site VARCHAR, mission VARCHAR, results VARCHAR)", "instruction": "Where did Test Mission: War Heads and Missile Payload launch when there was a partial failure?", "output": "SELECT launch_site FROM table_11869952_3 WHERE mission = \"Test mission: war heads and Missile payload\" AND results = \"Partial Failure\"" }
### INSTRUCTION Which Score has Opponents of pkns fc, and a Date of january 8, 2006? ### INPUT CREATE TABLE table_name_35 (score VARCHAR, opponents VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_35 WHERE opponents = "pkns fc" AND date = "january 8, 2006"
{ "input": "CREATE TABLE table_name_35 (score VARCHAR, opponents VARCHAR, date VARCHAR)", "instruction": "Which Score has Opponents of pkns fc, and a Date of january 8, 2006?", "output": "SELECT score FROM table_name_35 WHERE opponents = \"pkns fc\" AND date = \"january 8, 2006\"" }
### INSTRUCTION What is the earliest year with less than 45 points for Yamaha team in 21st rank? ### INPUT CREATE TABLE table_name_49 (year INTEGER, rank VARCHAR, points VARCHAR, team VARCHAR) ### OUTPUT SELECT MIN(year) FROM table_name_49 WHERE points < 45 AND team = "yamaha" AND rank = "21st"
{ "input": "CREATE TABLE table_name_49 (year INTEGER, rank VARCHAR, points VARCHAR, team VARCHAR)", "instruction": "What is the earliest year with less than 45 points for Yamaha team in 21st rank?", "output": "SELECT MIN(year) FROM table_name_49 WHERE points < 45 AND team = \"yamaha\" AND rank = \"21st\"" }
### INSTRUCTION What is Injured, when Date is "09.15 Sep. 15"? ### INPUT CREATE TABLE table_name_98 (injured VARCHAR, date VARCHAR) ### OUTPUT SELECT injured FROM table_name_98 WHERE date = "09.15 sep. 15"
{ "input": "CREATE TABLE table_name_98 (injured VARCHAR, date VARCHAR)", "instruction": "What is Injured, when Date is \"09.15 Sep. 15\"?", "output": "SELECT injured FROM table_name_98 WHERE date = \"09.15 sep. 15\"" }
### INSTRUCTION What was the score when the Shingo Kunieda Satoshi Saida were the opponents? ### INPUT CREATE TABLE table_name_84 (score_in_final VARCHAR, opponents_in_final VARCHAR) ### OUTPUT SELECT score_in_final FROM table_name_84 WHERE opponents_in_final = "shingo kunieda satoshi saida"
{ "input": "CREATE TABLE table_name_84 (score_in_final VARCHAR, opponents_in_final VARCHAR)", "instruction": "What was the score when the Shingo Kunieda Satoshi Saida were the opponents?", "output": "SELECT score_in_final FROM table_name_84 WHERE opponents_in_final = \"shingo kunieda satoshi saida\"" }
### INSTRUCTION Which Round has a School/Club Team of arizona, and a Pick smaller than 298? ### INPUT CREATE TABLE table_name_68 (round INTEGER, school_club_team VARCHAR, pick VARCHAR) ### OUTPUT SELECT MAX(round) FROM table_name_68 WHERE school_club_team = "arizona" AND pick < 298
{ "input": "CREATE TABLE table_name_68 (round INTEGER, school_club_team VARCHAR, pick VARCHAR)", "instruction": "Which Round has a School/Club Team of arizona, and a Pick smaller than 298?", "output": "SELECT MAX(round) FROM table_name_68 WHERE school_club_team = \"arizona\" AND pick < 298" }
### INSTRUCTION What were the total 2012 births when the 2012 deaths were 163? ### INPUT CREATE TABLE table_25703_2 (birth_2012 INTEGER, death_2012 VARCHAR) ### OUTPUT SELECT MIN(birth_2012) FROM table_25703_2 WHERE death_2012 = 163
{ "input": "CREATE TABLE table_25703_2 (birth_2012 INTEGER, death_2012 VARCHAR)", "instruction": "What were the total 2012 births when the 2012 deaths were 163?", "output": "SELECT MIN(birth_2012) FROM table_25703_2 WHERE death_2012 = 163" }
### INSTRUCTION Find the driver id and number of races of all drivers who have at most participated in 30 races? ### INPUT CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR); CREATE TABLE drivers (driverid VARCHAR) ### OUTPUT SELECT T1.driverid, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) <= 30
{ "input": "CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR); CREATE TABLE drivers (driverid VARCHAR)", "instruction": "Find the driver id and number of races of all drivers who have at most participated in 30 races?", "output": "SELECT T1.driverid, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) <= 30" }
### INSTRUCTION Who is every play-by-play announcer when Chris Rose is the trophy presenter? ### INPUT CREATE TABLE table_2941848_2 (play_by_play_announcer VARCHAR, trophy_presentation VARCHAR) ### OUTPUT SELECT play_by_play_announcer FROM table_2941848_2 WHERE trophy_presentation = "Chris Rose"
{ "input": "CREATE TABLE table_2941848_2 (play_by_play_announcer VARCHAR, trophy_presentation VARCHAR)", "instruction": "Who is every play-by-play announcer when Chris Rose is the trophy presenter?", "output": "SELECT play_by_play_announcer FROM table_2941848_2 WHERE trophy_presentation = \"Chris Rose\"" }
### INSTRUCTION What's the total long for more than 24 loss, a gain over 273, and an avg/g of 207.8? ### INPUT CREATE TABLE table_name_19 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR) ### OUTPUT SELECT SUM(long) FROM table_name_19 WHERE loss > 24 AND gain > 273 AND avg_g = 207.8
{ "input": "CREATE TABLE table_name_19 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)", "instruction": "What's the total long for more than 24 loss, a gain over 273, and an avg/g of 207.8?", "output": "SELECT SUM(long) FROM table_name_19 WHERE loss > 24 AND gain > 273 AND avg_g = 207.8" }
### INSTRUCTION Find the name and nationality of the swimmer who has won (i.e., has a result of "win") more than 1 time. ### INPUT CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, nationality VARCHAR, id VARCHAR) ### OUTPUT SELECT t1.name, t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' GROUP BY t2.swimmer_id HAVING COUNT(*) > 1
{ "input": "CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, nationality VARCHAR, id VARCHAR)", "instruction": "Find the name and nationality of the swimmer who has won (i.e., has a result of \"win\") more than 1 time.", "output": "SELECT t1.name, t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' GROUP BY t2.swimmer_id HAVING COUNT(*) > 1" }
### INSTRUCTION What is the height in Rouen? ### INPUT CREATE TABLE table_name_23 (height_metres___ft VARCHAR, town VARCHAR) ### OUTPUT SELECT height_metres___ft FROM table_name_23 WHERE town = "rouen"
{ "input": "CREATE TABLE table_name_23 (height_metres___ft VARCHAR, town VARCHAR)", "instruction": "What is the height in Rouen?", "output": "SELECT height_metres___ft FROM table_name_23 WHERE town = \"rouen\"" }
### INSTRUCTION What is the duration of the song where the major instrument is the piano and the date is 2004-02-03? ### INPUT CREATE TABLE table_10416547_1 (duration VARCHAR, major_instrument_s_ VARCHAR, date VARCHAR) ### OUTPUT SELECT duration FROM table_10416547_1 WHERE major_instrument_s_ = "Piano" AND date = "2004-02-03"
{ "input": "CREATE TABLE table_10416547_1 (duration VARCHAR, major_instrument_s_ VARCHAR, date VARCHAR)", "instruction": "What is the duration of the song where the major instrument is the piano and the date is 2004-02-03?", "output": "SELECT duration FROM table_10416547_1 WHERE major_instrument_s_ = \"Piano\" AND date = \"2004-02-03\"" }
### INSTRUCTION What is the highest number of doctorates the college of informatics and systems, which has 0 specialists and less than 2 master's degrees, have? ### INPUT CREATE TABLE table_name_10 (doctorate INTEGER, masters VARCHAR, specialist VARCHAR, college VARCHAR) ### OUTPUT SELECT MAX(doctorate) FROM table_name_10 WHERE specialist = 0 AND college = "informatics and systems" AND masters < 2
{ "input": "CREATE TABLE table_name_10 (doctorate INTEGER, masters VARCHAR, specialist VARCHAR, college VARCHAR)", "instruction": "What is the highest number of doctorates the college of informatics and systems, which has 0 specialists and less than 2 master's degrees, have?", "output": "SELECT MAX(doctorate) FROM table_name_10 WHERE specialist = 0 AND college = \"informatics and systems\" AND masters < 2" }
### INSTRUCTION What is the name of the claim processing stage that most of the claims are on? ### INPUT CREATE TABLE claims_processing (claim_stage_id VARCHAR); CREATE TABLE claims_processing_stages (claim_status_name VARCHAR, claim_stage_id VARCHAR) ### OUTPUT SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id = t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE claims_processing (claim_stage_id VARCHAR); CREATE TABLE claims_processing_stages (claim_status_name VARCHAR, claim_stage_id VARCHAR)", "instruction": "What is the name of the claim processing stage that most of the claims are on?", "output": "SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id = t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Who was the Runner-up for the merrill lynch/golf digest commemorative pro-am tournament? ### INPUT CREATE TABLE table_name_21 (runner_s__up VARCHAR, tournament VARCHAR) ### OUTPUT SELECT runner_s__up FROM table_name_21 WHERE tournament = "merrill lynch/golf digest commemorative pro-am"
{ "input": "CREATE TABLE table_name_21 (runner_s__up VARCHAR, tournament VARCHAR)", "instruction": "Who was the Runner-up for the merrill lynch/golf digest commemorative pro-am tournament?", "output": "SELECT runner_s__up FROM table_name_21 WHERE tournament = \"merrill lynch/golf digest commemorative pro-am\"" }
### INSTRUCTION Find the last and first name of students who are playing Football or Lacrosse. ### INPUT CREATE TABLE SportsInfo (StuID VARCHAR, SportName VARCHAR); CREATE TABLE Student (lname VARCHAR, fname VARCHAR, StuID VARCHAR) ### OUTPUT SELECT T2.lname, T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = "Football" OR T1.SportName = "Lacrosse"
{ "input": "CREATE TABLE SportsInfo (StuID VARCHAR, SportName VARCHAR); CREATE TABLE Student (lname VARCHAR, fname VARCHAR, StuID VARCHAR)", "instruction": "Find the last and first name of students who are playing Football or Lacrosse.", "output": "SELECT T2.lname, T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = \"Football\" OR T1.SportName = \"Lacrosse\"" }
### INSTRUCTION Which rapid has a distance in km smaller than 14.2, and a Station of kōmyōji? ### INPUT CREATE TABLE table_name_91 (rapid VARCHAR, distance__km_ VARCHAR, station VARCHAR) ### OUTPUT SELECT rapid FROM table_name_91 WHERE distance__km_ < 14.2 AND station = "kōmyōji"
{ "input": "CREATE TABLE table_name_91 (rapid VARCHAR, distance__km_ VARCHAR, station VARCHAR)", "instruction": "Which rapid has a distance in km smaller than 14.2, and a Station of kōmyōji?", "output": "SELECT rapid FROM table_name_91 WHERE distance__km_ < 14.2 AND station = \"kōmyōji\"" }
### INSTRUCTION What's the least amount of laps that George Eaton completed that has a time/retired engine and a grid larger than 8? ### INPUT CREATE TABLE table_name_20 (laps INTEGER, driver VARCHAR, time_retired VARCHAR, grid VARCHAR) ### OUTPUT SELECT MIN(laps) FROM table_name_20 WHERE time_retired = "engine" AND grid > 8 AND driver = "george eaton"
{ "input": "CREATE TABLE table_name_20 (laps INTEGER, driver VARCHAR, time_retired VARCHAR, grid VARCHAR)", "instruction": "What's the least amount of laps that George Eaton completed that has a time/retired engine and a grid larger than 8?", "output": "SELECT MIN(laps) FROM table_name_20 WHERE time_retired = \"engine\" AND grid > 8 AND driver = \"george eaton\"" }