text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What was the event for round 1 against Lance Wipf? ### INPUT CREATE TABLE table_name_9 (event VARCHAR, round VARCHAR, opponent VARCHAR) ### OUTPUT SELECT event FROM table_name_9 WHERE round = "1" AND opponent = "lance wipf"
{ "input": "CREATE TABLE table_name_9 (event VARCHAR, round VARCHAR, opponent VARCHAR)", "instruction": "What was the event for round 1 against Lance Wipf?", "output": "SELECT event FROM table_name_9 WHERE round = \"1\" AND opponent = \"lance wipf\"" }
### INSTRUCTION What is the games lost when games played was 2, year was earlier than 1999, and points for was 24? ### INPUT CREATE TABLE table_name_73 (games_lost___tests__ VARCHAR, points_for___tests__ VARCHAR, games_played___tests__ VARCHAR, year_s_ VARCHAR) ### OUTPUT SELECT games_lost___tests__ FROM table_name_73 WHERE games_played___tests__ = "2" AND year_s_ < 1999 AND points_for___tests__ = "24"
{ "input": "CREATE TABLE table_name_73 (games_lost___tests__ VARCHAR, points_for___tests__ VARCHAR, games_played___tests__ VARCHAR, year_s_ VARCHAR)", "instruction": "What is the games lost when games played was 2, year was earlier than 1999, and points for was 24?", "output": "SELECT games_lost___tests__ FROM table_name_73 WHERE games_played___tests__ = \"2\" AND year_s_ < 1999 AND points_for___tests__ = \"24\"" }
### INSTRUCTION what is the highest lane number for johan wissman when the react is less than 0.242? ### INPUT CREATE TABLE table_name_48 (lane INTEGER, name VARCHAR, react VARCHAR) ### OUTPUT SELECT MAX(lane) FROM table_name_48 WHERE name = "johan wissman" AND react < 0.242
{ "input": "CREATE TABLE table_name_48 (lane INTEGER, name VARCHAR, react VARCHAR)", "instruction": "what is the highest lane number for johan wissman when the react is less than 0.242?", "output": "SELECT MAX(lane) FROM table_name_48 WHERE name = \"johan wissman\" AND react < 0.242" }
### INSTRUCTION Who was the lights 2 race two winning team when the lites 1 race one winning team was #13 Inspire Motorsports? ### INPUT CREATE TABLE table_26638600_3 (lites_2_race_two_winning_team VARCHAR, lites_1_race_one_winning_team VARCHAR) ### OUTPUT SELECT lites_2_race_two_winning_team FROM table_26638600_3 WHERE lites_1_race_one_winning_team = "#13 Inspire Motorsports"
{ "input": "CREATE TABLE table_26638600_3 (lites_2_race_two_winning_team VARCHAR, lites_1_race_one_winning_team VARCHAR)", "instruction": "Who was the lights 2 race two winning team when the lites 1 race one winning team was #13 Inspire Motorsports?", "output": "SELECT lites_2_race_two_winning_team FROM table_26638600_3 WHERE lites_1_race_one_winning_team = \"#13 Inspire Motorsports\"" }
### INSTRUCTION Find the name of customers who have more than one loan. ### INPUT CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR) ### OUTPUT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING COUNT(*) > 1
{ "input": "CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)", "instruction": "Find the name of customers who have more than one loan.", "output": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING COUNT(*) > 1" }
### INSTRUCTION who are the writers of the episode that had 3.07 millions of North American spectators? ### INPUT CREATE TABLE table_21979779_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) ### OUTPUT SELECT written_by FROM table_21979779_1 WHERE us_viewers__million_ = "3.07"
{ "input": "CREATE TABLE table_21979779_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)", "instruction": "who are the writers of the episode that had 3.07 millions of North American spectators?", "output": "SELECT written_by FROM table_21979779_1 WHERE us_viewers__million_ = \"3.07\"" }
### INSTRUCTION Who was the team captain for Crystal Palace? ### INPUT CREATE TABLE table_name_56 (captain VARCHAR, team VARCHAR) ### OUTPUT SELECT captain FROM table_name_56 WHERE team = "crystal palace"
{ "input": "CREATE TABLE table_name_56 (captain VARCHAR, team VARCHAR)", "instruction": "Who was the team captain for Crystal Palace?", "output": "SELECT captain FROM table_name_56 WHERE team = \"crystal palace\"" }
### INSTRUCTION What is Nationality, and when College is Illinois State? ### INPUT CREATE TABLE table_name_2 (nationality VARCHAR, college VARCHAR) ### OUTPUT SELECT nationality FROM table_name_2 WHERE college = "illinois state"
{ "input": "CREATE TABLE table_name_2 (nationality VARCHAR, college VARCHAR)", "instruction": "What is Nationality, and when College is Illinois State?", "output": "SELECT nationality FROM table_name_2 WHERE college = \"illinois state\"" }
### INSTRUCTION Find the name and savings balance of the top 3 accounts with the highest saving balance sorted by savings balance in descending order. ### INPUT CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### OUTPUT SELECT T1.name, T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC LIMIT 3
{ "input": "CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)", "instruction": "Find the name and savings balance of the top 3 accounts with the highest saving balance sorted by savings balance in descending order.", "output": "SELECT T1.name, T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC LIMIT 3" }
### INSTRUCTION What is the L2 cache of the microprocessor with model number pentium dual-core t3400? ### INPUT CREATE TABLE table_name_91 (l2_cache VARCHAR, model_number VARCHAR) ### OUTPUT SELECT l2_cache FROM table_name_91 WHERE model_number = "pentium dual-core t3400"
{ "input": "CREATE TABLE table_name_91 (l2_cache VARCHAR, model_number VARCHAR)", "instruction": "What is the L2 cache of the microprocessor with model number pentium dual-core t3400?", "output": "SELECT l2_cache FROM table_name_91 WHERE model_number = \"pentium dual-core t3400\"" }
### INSTRUCTION What is the Clean & jerk for the bodyweight less than 76.55, and the Total (kg) of –? ### INPUT CREATE TABLE table_name_36 (clean_ VARCHAR, _jerk VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR) ### OUTPUT SELECT clean_ & _jerk FROM table_name_36 WHERE bodyweight < 76.55 AND total__kg_ = "–"
{ "input": "CREATE TABLE table_name_36 (clean_ VARCHAR, _jerk VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR)", "instruction": "What is the Clean & jerk for the bodyweight less than 76.55, and the Total (kg) of –?", "output": "SELECT clean_ & _jerk FROM table_name_36 WHERE bodyweight < 76.55 AND total__kg_ = \"–\"" }
### INSTRUCTION Who's the winner in stage 1a, where the leader in the young rider classification is Francesco Casagrande? ### INPUT CREATE TABLE table_12261714_2 (winner VARCHAR, young_rider_classification VARCHAR, stage VARCHAR) ### OUTPUT SELECT winner FROM table_12261714_2 WHERE young_rider_classification = "Francesco Casagrande" AND stage = "1a"
{ "input": "CREATE TABLE table_12261714_2 (winner VARCHAR, young_rider_classification VARCHAR, stage VARCHAR)", "instruction": "Who's the winner in stage 1a, where the leader in the young rider classification is Francesco Casagrande?", "output": "SELECT winner FROM table_12261714_2 WHERE young_rider_classification = \"Francesco Casagrande\" AND stage = \"1a\"" }
### INSTRUCTION What is the highest enrollment for rochester community school? ### INPUT CREATE TABLE table_name_66 (enrollment INTEGER, school VARCHAR) ### OUTPUT SELECT MAX(enrollment) FROM table_name_66 WHERE school = "rochester community"
{ "input": "CREATE TABLE table_name_66 (enrollment INTEGER, school VARCHAR)", "instruction": "What is the highest enrollment for rochester community school?", "output": "SELECT MAX(enrollment) FROM table_name_66 WHERE school = \"rochester community\"" }
### INSTRUCTION Which Mountains classification has a Team classification of quick step? ### INPUT CREATE TABLE table_name_81 (mountains_classification VARCHAR, team_classification VARCHAR) ### OUTPUT SELECT mountains_classification FROM table_name_81 WHERE team_classification = "quick step"
{ "input": "CREATE TABLE table_name_81 (mountains_classification VARCHAR, team_classification VARCHAR)", "instruction": "Which Mountains classification has a Team classification of quick step?", "output": "SELECT mountains_classification FROM table_name_81 WHERE team_classification = \"quick step\"" }
### INSTRUCTION Which Color commentator has a Channel of fsn new england, and a Year of 2004-05? ### INPUT CREATE TABLE table_name_41 (color_commentator_s_ VARCHAR, channel VARCHAR, year VARCHAR) ### OUTPUT SELECT color_commentator_s_ FROM table_name_41 WHERE channel = "fsn new england" AND year = "2004-05"
{ "input": "CREATE TABLE table_name_41 (color_commentator_s_ VARCHAR, channel VARCHAR, year VARCHAR)", "instruction": "Which Color commentator has a Channel of fsn new england, and a Year of 2004-05?", "output": "SELECT color_commentator_s_ FROM table_name_41 WHERE channel = \"fsn new england\" AND year = \"2004-05\"" }
### INSTRUCTION What is every episode number for the series number 3? ### INPUT CREATE TABLE table_27208311_1 (episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series VARCHAR, _whereas_series_no_refers_to_the_episodes_number_in_this_particular_series VARCHAR, series_no VARCHAR) ### OUTPUT SELECT episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series, _whereas_series_no_refers_to_the_episodes_number_in_this_particular_series FROM table_27208311_1 WHERE series_no = 3
{ "input": "CREATE TABLE table_27208311_1 (episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series VARCHAR, _whereas_series_no_refers_to_the_episodes_number_in_this_particular_series VARCHAR, series_no VARCHAR)", "instruction": "What is every episode number for the series number 3?", "output": "SELECT episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series, _whereas_series_no_refers_to_the_episodes_number_in_this_particular_series FROM table_27208311_1 WHERE series_no = 3" }
### INSTRUCTION What is every missile type with a code and location of M-20 Harbor Drive? ### INPUT CREATE TABLE table_22282917_26 (missile_type VARCHAR, code_ VARCHAR, _location VARCHAR) ### OUTPUT SELECT missile_type FROM table_22282917_26 WHERE code_ & _location = "M-20 Harbor Drive"
{ "input": "CREATE TABLE table_22282917_26 (missile_type VARCHAR, code_ VARCHAR, _location VARCHAR)", "instruction": "What is every missile type with a code and location of M-20 Harbor Drive?", "output": "SELECT missile_type FROM table_22282917_26 WHERE code_ & _location = \"M-20 Harbor Drive\"" }
### INSTRUCTION Which Team has Losses larger than 5, and a Position of 12? ### INPUT CREATE TABLE table_name_53 (team VARCHAR, losses VARCHAR, position VARCHAR) ### OUTPUT SELECT team FROM table_name_53 WHERE losses > 5 AND position = 12
{ "input": "CREATE TABLE table_name_53 (team VARCHAR, losses VARCHAR, position VARCHAR)", "instruction": "Which Team has Losses larger than 5, and a Position of 12?", "output": "SELECT team FROM table_name_53 WHERE losses > 5 AND position = 12" }
### INSTRUCTION What is the series score of the game with Vancouver as the visiting team on April 16? ### INPUT CREATE TABLE table_name_73 (series VARCHAR, visitor VARCHAR, date VARCHAR) ### OUTPUT SELECT series FROM table_name_73 WHERE visitor = "vancouver" AND date = "april 16"
{ "input": "CREATE TABLE table_name_73 (series VARCHAR, visitor VARCHAR, date VARCHAR)", "instruction": "What is the series score of the game with Vancouver as the visiting team on April 16?", "output": "SELECT series FROM table_name_73 WHERE visitor = \"vancouver\" AND date = \"april 16\"" }
### INSTRUCTION What is the highest attendance for the match against west ham united at the venue of a? ### INPUT CREATE TABLE table_name_42 (attendance INTEGER, venue VARCHAR, opponent VARCHAR) ### OUTPUT SELECT MAX(attendance) FROM table_name_42 WHERE venue = "a" AND opponent = "west ham united"
{ "input": "CREATE TABLE table_name_42 (attendance INTEGER, venue VARCHAR, opponent VARCHAR)", "instruction": "What is the highest attendance for the match against west ham united at the venue of a?", "output": "SELECT MAX(attendance) FROM table_name_42 WHERE venue = \"a\" AND opponent = \"west ham united\"" }
### INSTRUCTION Who was the EP winning team when the FM winning team was Brabham - Ford and the HM winning team was Osca? ### INPUT CREATE TABLE table_29225103_2 (ep_winning_team VARCHAR, fm_winning_team VARCHAR, hm_winning_team VARCHAR) ### OUTPUT SELECT ep_winning_team FROM table_29225103_2 WHERE fm_winning_team = "Brabham - Ford" AND hm_winning_team = "Osca"
{ "input": "CREATE TABLE table_29225103_2 (ep_winning_team VARCHAR, fm_winning_team VARCHAR, hm_winning_team VARCHAR)", "instruction": "Who was the EP winning team when the FM winning team was Brabham - Ford and the HM winning team was Osca?", "output": "SELECT ep_winning_team FROM table_29225103_2 WHERE fm_winning_team = \"Brabham - Ford\" AND hm_winning_team = \"Osca\"" }
### INSTRUCTION What's the percentage of votes for other candidates in the county where Bush got 51.6% of the votes? ### INPUT CREATE TABLE table_1304443_2 (others_percentage VARCHAR, bush_percentage VARCHAR) ### OUTPUT SELECT others_percentage FROM table_1304443_2 WHERE bush_percentage = "51.6%"
{ "input": "CREATE TABLE table_1304443_2 (others_percentage VARCHAR, bush_percentage VARCHAR)", "instruction": "What's the percentage of votes for other candidates in the county where Bush got 51.6% of the votes?", "output": "SELECT others_percentage FROM table_1304443_2 WHERE bush_percentage = \"51.6%\"" }
### INSTRUCTION Which player has a cap larger than 12 and Clubs of Toulouse? ### INPUT CREATE TABLE table_name_74 (player VARCHAR, caps VARCHAR, club_province VARCHAR) ### OUTPUT SELECT player FROM table_name_74 WHERE caps > 12 AND club_province = "toulouse"
{ "input": "CREATE TABLE table_name_74 (player VARCHAR, caps VARCHAR, club_province VARCHAR)", "instruction": "Which player has a cap larger than 12 and Clubs of Toulouse?", "output": "SELECT player FROM table_name_74 WHERE caps > 12 AND club_province = \"toulouse\"" }
### INSTRUCTION when the number of spectator are 5.28 millions, which is the smallest number of the episode in series? ### INPUT CREATE TABLE table_23117208_3 (no_in_series INTEGER, viewers__millions_ VARCHAR) ### OUTPUT SELECT MIN(no_in_series) FROM table_23117208_3 WHERE viewers__millions_ = "5.28"
{ "input": "CREATE TABLE table_23117208_3 (no_in_series INTEGER, viewers__millions_ VARCHAR)", "instruction": "when the number of spectator are 5.28 millions, which is the smallest number of the episode in series? ", "output": "SELECT MIN(no_in_series) FROM table_23117208_3 WHERE viewers__millions_ = \"5.28\"" }
### INSTRUCTION \What is the class of the station with the call sign w254ah? ### INPUT CREATE TABLE table_name_35 (class VARCHAR, call_sign VARCHAR) ### OUTPUT SELECT class FROM table_name_35 WHERE call_sign = "w254ah"
{ "input": "CREATE TABLE table_name_35 (class VARCHAR, call_sign VARCHAR)", "instruction": "\\What is the class of the station with the call sign w254ah?", "output": "SELECT class FROM table_name_35 WHERE call_sign = \"w254ah\"" }
### INSTRUCTION Who is the Finalist, when the Surface is Clay, and when the Semifinalist is Yevgeny Kafelnikov Juan Carlos Ferrero (2)? ### INPUT CREATE TABLE table_name_20 (finalist VARCHAR, surface VARCHAR, semifinalists VARCHAR) ### OUTPUT SELECT finalist FROM table_name_20 WHERE surface = "clay" AND semifinalists = "yevgeny kafelnikov juan carlos ferrero (2)"
{ "input": "CREATE TABLE table_name_20 (finalist VARCHAR, surface VARCHAR, semifinalists VARCHAR)", "instruction": "Who is the Finalist, when the Surface is Clay, and when the Semifinalist is Yevgeny Kafelnikov Juan Carlos Ferrero (2)?", "output": "SELECT finalist FROM table_name_20 WHERE surface = \"clay\" AND semifinalists = \"yevgeny kafelnikov juan carlos ferrero (2)\"" }
### INSTRUCTION What was Olazabal's winning score in the German Masters? ### INPUT CREATE TABLE table_name_62 (winning_score VARCHAR, tournament VARCHAR) ### OUTPUT SELECT winning_score FROM table_name_62 WHERE tournament = "german masters"
{ "input": "CREATE TABLE table_name_62 (winning_score VARCHAR, tournament VARCHAR)", "instruction": "What was Olazabal's winning score in the German Masters?", "output": "SELECT winning_score FROM table_name_62 WHERE tournament = \"german masters\"" }
### INSTRUCTION What is the title of the show with less than 10 seasons that aired on September 29, 1997 and is directed by Milan Cheylov? ### INPUT CREATE TABLE table_name_69 (title VARCHAR, original_air_date VARCHAR, season__number VARCHAR, directed_by VARCHAR) ### OUTPUT SELECT title FROM table_name_69 WHERE season__number < 10 AND directed_by = "milan cheylov" AND original_air_date = "september 29, 1997"
{ "input": "CREATE TABLE table_name_69 (title VARCHAR, original_air_date VARCHAR, season__number VARCHAR, directed_by VARCHAR)", "instruction": "What is the title of the show with less than 10 seasons that aired on September 29, 1997 and is directed by Milan Cheylov?", "output": "SELECT title FROM table_name_69 WHERE season__number < 10 AND directed_by = \"milan cheylov\" AND original_air_date = \"september 29, 1997\"" }
### INSTRUCTION What are seasons by team for Pro Bowl appearances of the player who was an OL and had 11 appearances? ### INPUT CREATE TABLE table_274117_5 (seasons_by_team VARCHAR, position VARCHAR, number VARCHAR) ### OUTPUT SELECT seasons_by_team FROM table_274117_5 WHERE position = "OL" AND number = 11
{ "input": "CREATE TABLE table_274117_5 (seasons_by_team VARCHAR, position VARCHAR, number VARCHAR)", "instruction": "What are seasons by team for Pro Bowl appearances of the player who was an OL and had 11 appearances? ", "output": "SELECT seasons_by_team FROM table_274117_5 WHERE position = \"OL\" AND number = 11" }
### INSTRUCTION What is the lowest game on February 10? ### INPUT CREATE TABLE table_name_66 (game INTEGER, date VARCHAR) ### OUTPUT SELECT MIN(game) FROM table_name_66 WHERE date = "february 10"
{ "input": "CREATE TABLE table_name_66 (game INTEGER, date VARCHAR)", "instruction": "What is the lowest game on February 10?", "output": "SELECT MIN(game) FROM table_name_66 WHERE date = \"february 10\"" }
### INSTRUCTION What is the average nominated of the composition nominated by Taioseach with an Industrial and Commercial panel less than 9, an administrative panel greater than 0, a cultural and educational panel greater than 2, and a total less than 29? ### INPUT CREATE TABLE table_name_99 (nominated_by_the_taoiseach INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, industrial_and_commercial_panel VARCHAR, administrative_panel VARCHAR) ### OUTPUT SELECT AVG(nominated_by_the_taoiseach) FROM table_name_99 WHERE industrial_and_commercial_panel < 9 AND administrative_panel > 0 AND cultural_and_educational_panel > 2 AND total < 29
{ "input": "CREATE TABLE table_name_99 (nominated_by_the_taoiseach INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, industrial_and_commercial_panel VARCHAR, administrative_panel VARCHAR)", "instruction": "What is the average nominated of the composition nominated by Taioseach with an Industrial and Commercial panel less than 9, an administrative panel greater than 0, a cultural and educational panel greater than 2, and a total less than 29?", "output": "SELECT AVG(nominated_by_the_taoiseach) FROM table_name_99 WHERE industrial_and_commercial_panel < 9 AND administrative_panel > 0 AND cultural_and_educational_panel > 2 AND total < 29" }
### INSTRUCTION What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with. ### INPUT CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR); CREATE TABLE medicine (id VARCHAR, Name VARCHAR, FDA_approved VARCHAR) ### OUTPUT SELECT T1.id, T1.Name, T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC
{ "input": "CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR); CREATE TABLE medicine (id VARCHAR, Name VARCHAR, FDA_approved VARCHAR)", "instruction": "What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.", "output": "SELECT T1.id, T1.Name, T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC" }
### INSTRUCTION Name the title of jean-pierre jeunet ### INPUT CREATE TABLE table_name_17 (english_title VARCHAR, director VARCHAR) ### OUTPUT SELECT english_title FROM table_name_17 WHERE director = "jean-pierre jeunet"
{ "input": "CREATE TABLE table_name_17 (english_title VARCHAR, director VARCHAR)", "instruction": "Name the title of jean-pierre jeunet", "output": "SELECT english_title FROM table_name_17 WHERE director = \"jean-pierre jeunet\"" }
### INSTRUCTION What is the total number of runs when the average was less than 31.25 and there were fewer than 24 innings? ### INPUT CREATE TABLE table_name_51 (runs VARCHAR, average VARCHAR, innings VARCHAR) ### OUTPUT SELECT COUNT(runs) FROM table_name_51 WHERE average > 31.25 AND innings < 24
{ "input": "CREATE TABLE table_name_51 (runs VARCHAR, average VARCHAR, innings VARCHAR)", "instruction": "What is the total number of runs when the average was less than 31.25 and there were fewer than 24 innings?", "output": "SELECT COUNT(runs) FROM table_name_51 WHERE average > 31.25 AND innings < 24" }
### INSTRUCTION Which Date has a Record of 1-4? ### INPUT CREATE TABLE table_name_34 (date VARCHAR, record VARCHAR) ### OUTPUT SELECT date FROM table_name_34 WHERE record = "1-4"
{ "input": "CREATE TABLE table_name_34 (date VARCHAR, record VARCHAR)", "instruction": "Which Date has a Record of 1-4?", "output": "SELECT date FROM table_name_34 WHERE record = \"1-4\"" }
### INSTRUCTION What is the highest Amerindian (Hispanic/Non-Hispanic) value having a Black (Hispanic/Non-Hispanic) of 15.7 and White (Hispanic/Non-Hispanic) over 69.5? ### INPUT CREATE TABLE table_name_67 (amerindian__both_hispanic_and_non_hispanic_ INTEGER, black__both_hispanic_and_non_hispanic_ VARCHAR, white__both_hispanic_and_non_hispanic_ VARCHAR) ### OUTPUT SELECT MAX(amerindian__both_hispanic_and_non_hispanic_) FROM table_name_67 WHERE black__both_hispanic_and_non_hispanic_ = 15.7 AND white__both_hispanic_and_non_hispanic_ > 69.5
{ "input": "CREATE TABLE table_name_67 (amerindian__both_hispanic_and_non_hispanic_ INTEGER, black__both_hispanic_and_non_hispanic_ VARCHAR, white__both_hispanic_and_non_hispanic_ VARCHAR)", "instruction": "What is the highest Amerindian (Hispanic/Non-Hispanic) value having a Black (Hispanic/Non-Hispanic) of 15.7 and White (Hispanic/Non-Hispanic) over 69.5?", "output": "SELECT MAX(amerindian__both_hispanic_and_non_hispanic_) FROM table_name_67 WHERE black__both_hispanic_and_non_hispanic_ = 15.7 AND white__both_hispanic_and_non_hispanic_ > 69.5" }
### INSTRUCTION When the foursome was w-l-h is 1–0–0 won w/ p. creamer 3&2, what was the points %? ### INPUT CREATE TABLE table_1628607_5 (points__percentage VARCHAR, foursomes_w_l_h VARCHAR) ### OUTPUT SELECT points__percentage FROM table_1628607_5 WHERE foursomes_w_l_h = "1–0–0 won w/ P. Creamer 3&2"
{ "input": "CREATE TABLE table_1628607_5 (points__percentage VARCHAR, foursomes_w_l_h VARCHAR)", "instruction": "When the foursome was w-l-h is 1–0–0 won w/ p. creamer 3&2, what was the points %?", "output": "SELECT points__percentage FROM table_1628607_5 WHERE foursomes_w_l_h = \"1–0–0 won w/ P. Creamer 3&2\"" }
### INSTRUCTION what is the type when the rank is smaller than 70, the province is british columbia and the capacity (mw) is more than 2,480? ### INPUT CREATE TABLE table_name_14 (type VARCHAR, capacity___mw__ VARCHAR, rank VARCHAR, province VARCHAR) ### OUTPUT SELECT type FROM table_name_14 WHERE rank < 70 AND province = "british columbia" AND capacity___mw__ > 2 OFFSET 480
{ "input": "CREATE TABLE table_name_14 (type VARCHAR, capacity___mw__ VARCHAR, rank VARCHAR, province VARCHAR)", "instruction": "what is the type when the rank is smaller than 70, the province is british columbia and the capacity (mw) is more than 2,480?", "output": "SELECT type FROM table_name_14 WHERE rank < 70 AND province = \"british columbia\" AND capacity___mw__ > 2 OFFSET 480" }
### INSTRUCTION What year was incumbent william f. stevenson first elected? ### INPUT CREATE TABLE table_1342451_38 (first_elected VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT first_elected FROM table_1342451_38 WHERE incumbent = "William F. Stevenson"
{ "input": "CREATE TABLE table_1342451_38 (first_elected VARCHAR, incumbent VARCHAR)", "instruction": "What year was incumbent william f. stevenson first elected?", "output": "SELECT first_elected FROM table_1342451_38 WHERE incumbent = \"William F. Stevenson\"" }
### INSTRUCTION Which artist does the album "Balls to the Wall" belong to? ### INPUT CREATE TABLE ALBUM (ArtistId VARCHAR, Title VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR) ### OUTPUT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = "Balls to the Wall"
{ "input": "CREATE TABLE ALBUM (ArtistId VARCHAR, Title VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR)", "instruction": "Which artist does the album \"Balls to the Wall\" belong to?", "output": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = \"Balls to the Wall\"" }
### INSTRUCTION What is Second Vice President, when Third Vice President is "Gen. Juan Alonso", and when Inaugurated is "15 March 1940"? ### INPUT CREATE TABLE table_name_74 (second_vice_president VARCHAR, third_vice_president VARCHAR, inaugurated VARCHAR) ### OUTPUT SELECT second_vice_president FROM table_name_74 WHERE third_vice_president = "gen. juan alonso" AND inaugurated = "15 march 1940"
{ "input": "CREATE TABLE table_name_74 (second_vice_president VARCHAR, third_vice_president VARCHAR, inaugurated VARCHAR)", "instruction": "What is Second Vice President, when Third Vice President is \"Gen. Juan Alonso\", and when Inaugurated is \"15 March 1940\"?", "output": "SELECT second_vice_president FROM table_name_74 WHERE third_vice_president = \"gen. juan alonso\" AND inaugurated = \"15 march 1940\"" }
### INSTRUCTION In what Election year was Adalberto Mosaner the Mayor with less than 16,170 Inhabitants? ### INPUT CREATE TABLE table_name_64 (election INTEGER, mayor VARCHAR, inhabitants VARCHAR) ### OUTPUT SELECT SUM(election) FROM table_name_64 WHERE mayor = "adalberto mosaner" AND inhabitants < 16 OFFSET 170
{ "input": "CREATE TABLE table_name_64 (election INTEGER, mayor VARCHAR, inhabitants VARCHAR)", "instruction": "In what Election year was Adalberto Mosaner the Mayor with less than 16,170 Inhabitants?", "output": "SELECT SUM(election) FROM table_name_64 WHERE mayor = \"adalberto mosaner\" AND inhabitants < 16 OFFSET 170" }
### INSTRUCTION Name the tournament for clay surface and outcome is winner with score is 6–3, 6–2 ### INPUT CREATE TABLE table_name_99 (tournament VARCHAR, score VARCHAR, surface VARCHAR, outcome VARCHAR) ### OUTPUT SELECT tournament FROM table_name_99 WHERE surface = "clay" AND outcome = "winner" AND score = "6–3, 6–2"
{ "input": "CREATE TABLE table_name_99 (tournament VARCHAR, score VARCHAR, surface VARCHAR, outcome VARCHAR)", "instruction": "Name the tournament for clay surface and outcome is winner with score is 6–3, 6–2", "output": "SELECT tournament FROM table_name_99 WHERE surface = \"clay\" AND outcome = \"winner\" AND score = \"6–3, 6–2\"" }
### INSTRUCTION What is the sum of Population, when Markatal is greater than 48, when Inhabitants Per Km² is greater than 24, and when Municipality is Runavík? ### INPUT CREATE TABLE table_name_57 (population INTEGER, municipality VARCHAR, markatal VARCHAR, inhabitants_per_km² VARCHAR) ### OUTPUT SELECT SUM(population) FROM table_name_57 WHERE markatal > 48 AND inhabitants_per_km² > 24 AND municipality = "runavík"
{ "input": "CREATE TABLE table_name_57 (population INTEGER, municipality VARCHAR, markatal VARCHAR, inhabitants_per_km² VARCHAR)", "instruction": "What is the sum of Population, when Markatal is greater than 48, when Inhabitants Per Km² is greater than 24, and when Municipality is Runavík?", "output": "SELECT SUM(population) FROM table_name_57 WHERE markatal > 48 AND inhabitants_per_km² > 24 AND municipality = \"runavík\"" }
### INSTRUCTION Show the names and ids of tourist attractions that are visited at most once. ### INPUT CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR) ### OUTPUT SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING COUNT(*) <= 1
{ "input": "CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)", "instruction": "Show the names and ids of tourist attractions that are visited at most once.", "output": "SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING COUNT(*) <= 1" }
### INSTRUCTION Find the campus fee of "San Jose State University" in year 2000. ### INPUT CREATE TABLE campuses (id VARCHAR, campus VARCHAR); CREATE TABLE csu_fees (campusfee VARCHAR, campus VARCHAR, year VARCHAR) ### OUTPUT SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = "San Jose State University" AND t1.year = 2000
{ "input": "CREATE TABLE campuses (id VARCHAR, campus VARCHAR); CREATE TABLE csu_fees (campusfee VARCHAR, campus VARCHAR, year VARCHAR)", "instruction": "Find the campus fee of \"San Jose State University\" in year 2000.", "output": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Jose State University\" AND t1.year = 2000" }
### INSTRUCTION What is the Most Spoken language in the Place with Code 70403 with an Area (km 2) larger than 3.79 and a Population larger than 73,283? ### INPUT CREATE TABLE table_name_91 (most_spoken_language VARCHAR, population VARCHAR, code VARCHAR, area__km_2__ VARCHAR) ### OUTPUT SELECT most_spoken_language FROM table_name_91 WHERE code > 70403 AND area__km_2__ > 3.79 AND population > 73 OFFSET 283
{ "input": "CREATE TABLE table_name_91 (most_spoken_language VARCHAR, population VARCHAR, code VARCHAR, area__km_2__ VARCHAR)", "instruction": "What is the Most Spoken language in the Place with Code 70403 with an Area (km 2) larger than 3.79 and a Population larger than 73,283?", "output": "SELECT most_spoken_language FROM table_name_91 WHERE code > 70403 AND area__km_2__ > 3.79 AND population > 73 OFFSET 283" }
### INSTRUCTION Name the wicket for 19-03-2007 ### INPUT CREATE TABLE table_name_59 (wicket VARCHAR, date VARCHAR) ### OUTPUT SELECT wicket FROM table_name_59 WHERE date = "19-03-2007"
{ "input": "CREATE TABLE table_name_59 (wicket VARCHAR, date VARCHAR)", "instruction": "Name the wicket for 19-03-2007", "output": "SELECT wicket FROM table_name_59 WHERE date = \"19-03-2007\"" }
### INSTRUCTION Name the greek modern for słyszałeś był / słyszałaś była ### INPUT CREATE TABLE table_1841901_1 (greek__modern_ VARCHAR, polish__extinct_ VARCHAR) ### OUTPUT SELECT greek__modern_ FROM table_1841901_1 WHERE polish__extinct_ = "słyszałeś był / słyszałaś była"
{ "input": "CREATE TABLE table_1841901_1 (greek__modern_ VARCHAR, polish__extinct_ VARCHAR)", "instruction": "Name the greek modern for słyszałeś był / słyszałaś była", "output": "SELECT greek__modern_ FROM table_1841901_1 WHERE polish__extinct_ = \"słyszałeś był / słyszałaś była\"" }
### INSTRUCTION Name the high points for toyota center 18,269? ### INPUT CREATE TABLE table_11964263_13 (high_points VARCHAR, location_attendance VARCHAR) ### OUTPUT SELECT high_points FROM table_11964263_13 WHERE location_attendance = "Toyota Center 18,269"
{ "input": "CREATE TABLE table_11964263_13 (high_points VARCHAR, location_attendance VARCHAR)", "instruction": "Name the high points for toyota center 18,269?", "output": "SELECT high_points FROM table_11964263_13 WHERE location_attendance = \"Toyota Center 18,269\"" }
### INSTRUCTION Who were the home team during the game that aired on Fox after 2007 on October 23? ### INPUT CREATE TABLE table_name_53 (designated_home VARCHAR, date VARCHAR, television VARCHAR, year VARCHAR) ### OUTPUT SELECT designated_home FROM table_name_53 WHERE television = "fox" AND year > 2007 AND date = "october 23"
{ "input": "CREATE TABLE table_name_53 (designated_home VARCHAR, date VARCHAR, television VARCHAR, year VARCHAR)", "instruction": "Who were the home team during the game that aired on Fox after 2007 on October 23?", "output": "SELECT designated_home FROM table_name_53 WHERE television = \"fox\" AND year > 2007 AND date = \"october 23\"" }
### INSTRUCTION Who is the voice actor (harmony gold ova dub) of the character with a voice actor (adv TV/sentai ova dub) Kim Prause? ### INPUT CREATE TABLE table_name_10 (voice_actor__harmony_gold_ova_dub_ VARCHAR, voice_actor__adv_tv_sentai_ova_dub_ VARCHAR) ### OUTPUT SELECT voice_actor__harmony_gold_ova_dub_ FROM table_name_10 WHERE voice_actor__adv_tv_sentai_ova_dub_ = "kim prause"
{ "input": "CREATE TABLE table_name_10 (voice_actor__harmony_gold_ova_dub_ VARCHAR, voice_actor__adv_tv_sentai_ova_dub_ VARCHAR)", "instruction": "Who is the voice actor (harmony gold ova dub) of the character with a voice actor (adv TV/sentai ova dub) Kim Prause?", "output": "SELECT voice_actor__harmony_gold_ova_dub_ FROM table_name_10 WHERE voice_actor__adv_tv_sentai_ova_dub_ = \"kim prause\"" }
### INSTRUCTION What date did Jatin Shah and Shalini Chandran perform? ### INPUT CREATE TABLE table_18278508_2 (date_performed VARCHAR, main_contestant VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR) ### OUTPUT SELECT date_performed FROM table_18278508_2 WHERE main_contestant = "Jatin Shah" AND co_contestant__yaar_vs_pyaar_ = "Shalini Chandran"
{ "input": "CREATE TABLE table_18278508_2 (date_performed VARCHAR, main_contestant VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)", "instruction": "What date did Jatin Shah and Shalini Chandran perform?", "output": "SELECT date_performed FROM table_18278508_2 WHERE main_contestant = \"Jatin Shah\" AND co_contestant__yaar_vs_pyaar_ = \"Shalini Chandran\"" }
### INSTRUCTION What is the direction of the route that stars at downtown transit center and has a terminus point at Pensacola Beach? ### INPUT CREATE TABLE table_name_50 (direction VARCHAR, starting_point VARCHAR, terminus VARCHAR) ### OUTPUT SELECT direction FROM table_name_50 WHERE starting_point = "downtown transit center" AND terminus = "pensacola beach"
{ "input": "CREATE TABLE table_name_50 (direction VARCHAR, starting_point VARCHAR, terminus VARCHAR)", "instruction": "What is the direction of the route that stars at downtown transit center and has a terminus point at Pensacola Beach?", "output": "SELECT direction FROM table_name_50 WHERE starting_point = \"downtown transit center\" AND terminus = \"pensacola beach\"" }
### INSTRUCTION Show all male student ids who don't play football. ### INPUT CREATE TABLE Sportsinfo (StuID VARCHAR, sex VARCHAR, sportname VARCHAR); CREATE TABLE Student (StuID VARCHAR, sex VARCHAR, sportname VARCHAR) ### OUTPUT SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = "Football"
{ "input": "CREATE TABLE Sportsinfo (StuID VARCHAR, sex VARCHAR, sportname VARCHAR); CREATE TABLE Student (StuID VARCHAR, sex VARCHAR, sportname VARCHAR)", "instruction": "Show all male student ids who don't play football.", "output": "SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = \"Football\"" }
### INSTRUCTION Show the names of aircrafts that are associated with both an airport named "London Heathrow" and an airport named "London Gatwick" ### INPUT CREATE TABLE airport (Airport_ID VARCHAR, Airport_Name VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR); CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR) ### OUTPUT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Heathrow" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Gatwick"
{ "input": "CREATE TABLE airport (Airport_ID VARCHAR, Airport_Name VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR); CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR)", "instruction": "Show the names of aircrafts that are associated with both an airport named \"London Heathrow\" and an airport named \"London Gatwick\"", "output": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = \"London Heathrow\" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = \"London Gatwick\"" }
### INSTRUCTION How many League Cup Goals have 0 as the total goals, with delroy facey as the name? ### INPUT CREATE TABLE table_name_90 (league_cup_goals VARCHAR, total_goals VARCHAR, name VARCHAR) ### OUTPUT SELECT COUNT(league_cup_goals) FROM table_name_90 WHERE total_goals = 0 AND name = "delroy facey"
{ "input": "CREATE TABLE table_name_90 (league_cup_goals VARCHAR, total_goals VARCHAR, name VARCHAR)", "instruction": "How many League Cup Goals have 0 as the total goals, with delroy facey as the name?", "output": "SELECT COUNT(league_cup_goals) FROM table_name_90 WHERE total_goals = 0 AND name = \"delroy facey\"" }
### INSTRUCTION How many clubs does "Linda Smith" belong to? ### INPUT CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubid VARCHAR) ### OUTPUT SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Linda" AND t3.lname = "Smith"
{ "input": "CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubid VARCHAR)", "instruction": "How many clubs does \"Linda Smith\" belong to?", "output": "SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = \"Linda\" AND t3.lname = \"Smith\"" }
### INSTRUCTION What was the score of the game in which the Toronto Maple Leafs were visitors? ### INPUT CREATE TABLE table_name_97 (score VARCHAR, visitor VARCHAR) ### OUTPUT SELECT score FROM table_name_97 WHERE visitor = "toronto maple leafs"
{ "input": "CREATE TABLE table_name_97 (score VARCHAR, visitor VARCHAR)", "instruction": "What was the score of the game in which the Toronto Maple Leafs were visitors?", "output": "SELECT score FROM table_name_97 WHERE visitor = \"toronto maple leafs\"" }
### INSTRUCTION What event had a tko (punches) method and jason macdonald as the opponent? ### INPUT CREATE TABLE table_name_74 (event VARCHAR, method VARCHAR, opponent VARCHAR) ### OUTPUT SELECT event FROM table_name_74 WHERE method = "tko (punches)" AND opponent = "jason macdonald"
{ "input": "CREATE TABLE table_name_74 (event VARCHAR, method VARCHAR, opponent VARCHAR)", "instruction": "What event had a tko (punches) method and jason macdonald as the opponent?", "output": "SELECT event FROM table_name_74 WHERE method = \"tko (punches)\" AND opponent = \"jason macdonald\"" }
### INSTRUCTION In what League in Round 6 is the Position Right Wing? ### INPUT CREATE TABLE table_name_31 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR) ### OUTPUT SELECT college_junior_club_team__league_ FROM table_name_31 WHERE position = "right wing" AND round = "6"
{ "input": "CREATE TABLE table_name_31 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR)", "instruction": "In what League in Round 6 is the Position Right Wing?", "output": "SELECT college_junior_club_team__league_ FROM table_name_31 WHERE position = \"right wing\" AND round = \"6\"" }
### INSTRUCTION What record medal event has athletics as the sport, with robert garrett as the athlete, and a medal count less than 3? ### INPUT CREATE TABLE table_name_33 (record_medal_event VARCHAR, medal_count VARCHAR, sport VARCHAR, athlete VARCHAR) ### OUTPUT SELECT record_medal_event FROM table_name_33 WHERE sport = "athletics" AND athlete = "robert garrett" AND medal_count < 3
{ "input": "CREATE TABLE table_name_33 (record_medal_event VARCHAR, medal_count VARCHAR, sport VARCHAR, athlete VARCHAR)", "instruction": "What record medal event has athletics as the sport, with robert garrett as the athlete, and a medal count less than 3?", "output": "SELECT record_medal_event FROM table_name_33 WHERE sport = \"athletics\" AND athlete = \"robert garrett\" AND medal_count < 3" }
### INSTRUCTION what is the average dynamo when draw is more than 0, played is less than 15 and spartak is more than 1? ### INPUT CREATE TABLE table_name_25 (dynamo INTEGER, spartak VARCHAR, draw VARCHAR, played VARCHAR) ### OUTPUT SELECT AVG(dynamo) FROM table_name_25 WHERE draw > 0 AND played < 15 AND spartak > 1
{ "input": "CREATE TABLE table_name_25 (dynamo INTEGER, spartak VARCHAR, draw VARCHAR, played VARCHAR)", "instruction": "what is the average dynamo when draw is more than 0, played is less than 15 and spartak is more than 1?", "output": "SELECT AVG(dynamo) FROM table_name_25 WHERE draw > 0 AND played < 15 AND spartak > 1" }
### INSTRUCTION How many different results of the population count in 2001 are there for the census division whose population in 1996 is 880859? ### INPUT CREATE TABLE table_2134521_1 (pop__2001_ VARCHAR, pop__1996_ VARCHAR) ### OUTPUT SELECT COUNT(pop__2001_) FROM table_2134521_1 WHERE pop__1996_ = 880859
{ "input": "CREATE TABLE table_2134521_1 (pop__2001_ VARCHAR, pop__1996_ VARCHAR)", "instruction": "How many different results of the population count in 2001 are there for the census division whose population in 1996 is 880859?", "output": "SELECT COUNT(pop__2001_) FROM table_2134521_1 WHERE pop__1996_ = 880859" }
### INSTRUCTION Which bowl game had a conference matchup of Ohio State vs. Texas? ### INPUT CREATE TABLE table_name_77 (bowl_game VARCHAR, conference_matchups VARCHAR) ### OUTPUT SELECT bowl_game FROM table_name_77 WHERE conference_matchups = "ohio state vs. texas"
{ "input": "CREATE TABLE table_name_77 (bowl_game VARCHAR, conference_matchups VARCHAR)", "instruction": "Which bowl game had a conference matchup of Ohio State vs. Texas?", "output": "SELECT bowl_game FROM table_name_77 WHERE conference_matchups = \"ohio state vs. texas\"" }
### INSTRUCTION Which Opponent has a Venue of h, and a Result of 0–1, and a Date of 29 august 1998? ### INPUT CREATE TABLE table_name_12 (opponent VARCHAR, date VARCHAR, venue VARCHAR, result VARCHAR) ### OUTPUT SELECT opponent FROM table_name_12 WHERE venue = "h" AND result = "0–1" AND date = "29 august 1998"
{ "input": "CREATE TABLE table_name_12 (opponent VARCHAR, date VARCHAR, venue VARCHAR, result VARCHAR)", "instruction": "Which Opponent has a Venue of h, and a Result of 0–1, and a Date of 29 august 1998?", "output": "SELECT opponent FROM table_name_12 WHERE venue = \"h\" AND result = \"0–1\" AND date = \"29 august 1998\"" }
### INSTRUCTION what are the tries where the game was lost by 4? ### INPUT CREATE TABLE table_13564637_3 (tries_against VARCHAR, lost VARCHAR) ### OUTPUT SELECT tries_against FROM table_13564637_3 WHERE lost = "4"
{ "input": "CREATE TABLE table_13564637_3 (tries_against VARCHAR, lost VARCHAR)", "instruction": "what are the tries where the game was lost by 4?", "output": "SELECT tries_against FROM table_13564637_3 WHERE lost = \"4\"" }
### INSTRUCTION Which body tackle has yes for the diving tackle and the sliding tackle classified as a trip? ### INPUT CREATE TABLE table_name_56 (body_tackle VARCHAR, diving_tackle VARCHAR, sliding_tackle VARCHAR) ### OUTPUT SELECT body_tackle FROM table_name_56 WHERE diving_tackle = "yes" AND sliding_tackle = "classified as a trip"
{ "input": "CREATE TABLE table_name_56 (body_tackle VARCHAR, diving_tackle VARCHAR, sliding_tackle VARCHAR)", "instruction": "Which body tackle has yes for the diving tackle and the sliding tackle classified as a trip?", "output": "SELECT body_tackle FROM table_name_56 WHERE diving_tackle = \"yes\" AND sliding_tackle = \"classified as a trip\"" }
### INSTRUCTION Which time/retired had 75 laps and Pedro de la Rosa as a driver? ### INPUT CREATE TABLE table_name_86 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR) ### OUTPUT SELECT time_retired FROM table_name_86 WHERE laps = 75 AND driver = "pedro de la rosa"
{ "input": "CREATE TABLE table_name_86 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)", "instruction": "Which time/retired had 75 laps and Pedro de la Rosa as a driver?", "output": "SELECT time_retired FROM table_name_86 WHERE laps = 75 AND driver = \"pedro de la rosa\"" }
### INSTRUCTION When itogon, benguet is the city/municipality and 1st class is the income classification how many measurements of population in 2010? ### INPUT CREATE TABLE table_29289372_1 (population__2010_ VARCHAR, income_classification VARCHAR, city_municipality VARCHAR) ### OUTPUT SELECT COUNT(population__2010_) FROM table_29289372_1 WHERE income_classification = "1st Class" AND city_municipality = "Itogon, Benguet"
{ "input": "CREATE TABLE table_29289372_1 (population__2010_ VARCHAR, income_classification VARCHAR, city_municipality VARCHAR)", "instruction": "When itogon, benguet is the city/municipality and 1st class is the income classification how many measurements of population in 2010?", "output": "SELECT COUNT(population__2010_) FROM table_29289372_1 WHERE income_classification = \"1st Class\" AND city_municipality = \"Itogon, Benguet\"" }
### INSTRUCTION Find the name of captains whose rank are either Midshipman or Lieutenant. ### INPUT CREATE TABLE captain (name VARCHAR, rank VARCHAR) ### OUTPUT SELECT name FROM captain WHERE rank = 'Midshipman' OR rank = 'Lieutenant'
{ "input": "CREATE TABLE captain (name VARCHAR, rank VARCHAR)", "instruction": "Find the name of captains whose rank are either Midshipman or Lieutenant.", "output": "SELECT name FROM captain WHERE rank = 'Midshipman' OR rank = 'Lieutenant'" }
### INSTRUCTION How many verbs mean to grow, to produce ### INPUT CREATE TABLE table_1745843_10 (part_1 VARCHAR, verb_meaning VARCHAR) ### OUTPUT SELECT COUNT(part_1) FROM table_1745843_10 WHERE verb_meaning = "to grow, to produce"
{ "input": "CREATE TABLE table_1745843_10 (part_1 VARCHAR, verb_meaning VARCHAR)", "instruction": "How many verbs mean to grow, to produce", "output": "SELECT COUNT(part_1) FROM table_1745843_10 WHERE verb_meaning = \"to grow, to produce\"" }
### INSTRUCTION For how many years did the song "Lost Without Your Love" win the gold RIAA Sales Certification, and have a Billboard 200 Peak greater than 26? ### INPUT CREATE TABLE table_name_80 (year INTEGER, billboard_200_peak VARCHAR, riaa_sales_certification VARCHAR, title VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_80 WHERE riaa_sales_certification = "gold" AND title = "lost without your love" AND billboard_200_peak > 26
{ "input": "CREATE TABLE table_name_80 (year INTEGER, billboard_200_peak VARCHAR, riaa_sales_certification VARCHAR, title VARCHAR)", "instruction": "For how many years did the song \"Lost Without Your Love\" win the gold RIAA Sales Certification, and have a Billboard 200 Peak greater than 26?", "output": "SELECT SUM(year) FROM table_name_80 WHERE riaa_sales_certification = \"gold\" AND title = \"lost without your love\" AND billboard_200_peak > 26" }
### INSTRUCTION What is Paul Coward 492cc nourish Weslake's lowest rank? ### INPUT CREATE TABLE table_26986076_3 (rank INTEGER, rider VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_26986076_3 WHERE rider = "Paul Coward 492cc Nourish Weslake"
{ "input": "CREATE TABLE table_26986076_3 (rank INTEGER, rider VARCHAR)", "instruction": "What is Paul Coward 492cc nourish Weslake's lowest rank?", "output": "SELECT MIN(rank) FROM table_26986076_3 WHERE rider = \"Paul Coward 492cc Nourish Weslake\"" }
### INSTRUCTION Which long version was remixed in 1986? ### INPUT CREATE TABLE table_name_51 (remixed_by VARCHAR, year VARCHAR, version VARCHAR) ### OUTPUT SELECT remixed_by FROM table_name_51 WHERE year = 1986 AND version = "long version"
{ "input": "CREATE TABLE table_name_51 (remixed_by VARCHAR, year VARCHAR, version VARCHAR)", "instruction": "Which long version was remixed in 1986?", "output": "SELECT remixed_by FROM table_name_51 WHERE year = 1986 AND version = \"long version\"" }
### INSTRUCTION Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone. ### INPUT CREATE TABLE Treatments (professional_id VARCHAR); CREATE TABLE Professionals (professional_id VARCHAR, last_name VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id VARCHAR, last_name VARCHAR, cell_number VARCHAR, state VARCHAR) ### OUTPUT SELECT professional_id, last_name, cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2
{ "input": "CREATE TABLE Treatments (professional_id VARCHAR); CREATE TABLE Professionals (professional_id VARCHAR, last_name VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id VARCHAR, last_name VARCHAR, cell_number VARCHAR, state VARCHAR)", "instruction": "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.", "output": "SELECT professional_id, last_name, cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2" }
### INSTRUCTION What is the number week with a result of w 40–62? ### INPUT CREATE TABLE table_name_35 (week INTEGER, result VARCHAR) ### OUTPUT SELECT SUM(week) FROM table_name_35 WHERE result = "w 40–62"
{ "input": "CREATE TABLE table_name_35 (week INTEGER, result VARCHAR)", "instruction": "What is the number week with a result of w 40–62?", "output": "SELECT SUM(week) FROM table_name_35 WHERE result = \"w 40–62\"" }
### INSTRUCTION Name the result for ursinus college ### INPUT CREATE TABLE table_21094951_1 (result VARCHAR, opponent VARCHAR) ### OUTPUT SELECT result FROM table_21094951_1 WHERE opponent = "Ursinus College"
{ "input": "CREATE TABLE table_21094951_1 (result VARCHAR, opponent VARCHAR)", "instruction": "Name the result for ursinus college", "output": "SELECT result FROM table_21094951_1 WHERE opponent = \"Ursinus College\"" }
### INSTRUCTION what's the dbeingtribution with grsecurity being optional and compile time buffer checks being yes ### INPUT CREATE TABLE table_1357052_6 (distribution VARCHAR, grsecurity VARCHAR, compile_time_buffer_checks VARCHAR) ### OUTPUT SELECT distribution FROM table_1357052_6 WHERE grsecurity = "Optional" AND compile_time_buffer_checks = "Yes"
{ "input": "CREATE TABLE table_1357052_6 (distribution VARCHAR, grsecurity VARCHAR, compile_time_buffer_checks VARCHAR)", "instruction": "what's the dbeingtribution with grsecurity being optional and compile time buffer checks being yes", "output": "SELECT distribution FROM table_1357052_6 WHERE grsecurity = \"Optional\" AND compile_time_buffer_checks = \"Yes\"" }
### INSTRUCTION What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction? ### INPUT CREATE TABLE enzyme (name VARCHAR, location VARCHAR, product VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR) ### OUTPUT SELECT DISTINCT T1.name, T1.location, T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'
{ "input": "CREATE TABLE enzyme (name VARCHAR, location VARCHAR, product VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR)", "instruction": "What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction?", "output": "SELECT DISTINCT T1.name, T1.location, T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'" }
### INSTRUCTION In 2014, what are the id and rank of the team that has the largest average number of attendance? ### INPUT CREATE TABLE team (team_id VARCHAR, rank VARCHAR); CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance INTEGER) ### OUTPUT SELECT T2.team_id, T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY AVG(T1.attendance) DESC LIMIT 1
{ "input": "CREATE TABLE team (team_id VARCHAR, rank VARCHAR); CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance INTEGER)", "instruction": "In 2014, what are the id and rank of the team that has the largest average number of attendance?", "output": "SELECT T2.team_id, T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY AVG(T1.attendance) DESC LIMIT 1" }
### INSTRUCTION What shows for Marcin Dołęga ( POL )when the world record shows olympic record, and a Snatch of total? ### INPUT CREATE TABLE table_name_76 (marcin_dołęga___pol__ VARCHAR, world_record VARCHAR, snatch VARCHAR) ### OUTPUT SELECT marcin_dołęga___pol__ FROM table_name_76 WHERE world_record = "olympic record" AND snatch = "total"
{ "input": "CREATE TABLE table_name_76 (marcin_dołęga___pol__ VARCHAR, world_record VARCHAR, snatch VARCHAR)", "instruction": "What shows for Marcin Dołęga ( POL )when the world record shows olympic record, and a Snatch of total?", "output": "SELECT marcin_dołęga___pol__ FROM table_name_76 WHERE world_record = \"olympic record\" AND snatch = \"total\"" }
### INSTRUCTION give me names of all compatible browsers and accelerators in the descending order of compatible year ### INPUT CREATE TABLE accelerator_compatible_browser (browser_id VARCHAR, accelerator_id VARCHAR, compatible_since_year VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, id VARCHAR); CREATE TABLE browser (name VARCHAR, id VARCHAR) ### OUTPUT SELECT T2.name, T3.name FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id ORDER BY T1.compatible_since_year DESC
{ "input": "CREATE TABLE accelerator_compatible_browser (browser_id VARCHAR, accelerator_id VARCHAR, compatible_since_year VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, id VARCHAR); CREATE TABLE browser (name VARCHAR, id VARCHAR)", "instruction": "give me names of all compatible browsers and accelerators in the descending order of compatible year", "output": "SELECT T2.name, T3.name FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id ORDER BY T1.compatible_since_year DESC" }
### INSTRUCTION Show the premise type and address type code for all customer addresses. ### INPUT CREATE TABLE premises (premises_type VARCHAR, premise_id VARCHAR); CREATE TABLE customer_addresses (address_type_code VARCHAR, premise_id VARCHAR) ### OUTPUT SELECT T2.premises_type, T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id = T2.premise_id
{ "input": "CREATE TABLE premises (premises_type VARCHAR, premise_id VARCHAR); CREATE TABLE customer_addresses (address_type_code VARCHAR, premise_id VARCHAR)", "instruction": "Show the premise type and address type code for all customer addresses.", "output": "SELECT T2.premises_type, T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id = T2.premise_id" }
### INSTRUCTION What is the international mail with the lowest number to have less than 72 domestic freight, 0 domestic mail later than 2012 with total freight and mail more than 4,695? ### INPUT CREATE TABLE table_name_82 (international_mail INTEGER, total_freight_and_mail VARCHAR, year VARCHAR, domestic_freight VARCHAR, domestic_mail VARCHAR) ### OUTPUT SELECT MIN(international_mail) FROM table_name_82 WHERE domestic_freight < 72 AND domestic_mail = 0 AND year < 2012 AND total_freight_and_mail > 4 OFFSET 695
{ "input": "CREATE TABLE table_name_82 (international_mail INTEGER, total_freight_and_mail VARCHAR, year VARCHAR, domestic_freight VARCHAR, domestic_mail VARCHAR)", "instruction": "What is the international mail with the lowest number to have less than 72 domestic freight, 0 domestic mail later than 2012 with total freight and mail more than 4,695?", "output": "SELECT MIN(international_mail) FROM table_name_82 WHERE domestic_freight < 72 AND domestic_mail = 0 AND year < 2012 AND total_freight_and_mail > 4 OFFSET 695" }
### INSTRUCTION Which Nationality has a Player of keith bogans, and a Years in Orlando of 2006–2009? ### INPUT CREATE TABLE table_name_57 (nationality VARCHAR, player VARCHAR, years_in_orlando VARCHAR) ### OUTPUT SELECT nationality FROM table_name_57 WHERE player = "keith bogans" AND years_in_orlando = "2006–2009"
{ "input": "CREATE TABLE table_name_57 (nationality VARCHAR, player VARCHAR, years_in_orlando VARCHAR)", "instruction": "Which Nationality has a Player of keith bogans, and a Years in Orlando of 2006–2009?", "output": "SELECT nationality FROM table_name_57 WHERE player = \"keith bogans\" AND years_in_orlando = \"2006–2009\"" }
### INSTRUCTION What number of party had a candidate resigned when appointed judge democratic hold? ### INPUT CREATE TABLE table_1342013_31 (party VARCHAR, result VARCHAR) ### OUTPUT SELECT COUNT(party) FROM table_1342013_31 WHERE result = "Resigned when appointed judge Democratic hold"
{ "input": "CREATE TABLE table_1342013_31 (party VARCHAR, result VARCHAR)", "instruction": "What number of party had a candidate resigned when appointed judge democratic hold?", "output": "SELECT COUNT(party) FROM table_1342013_31 WHERE result = \"Resigned when appointed judge Democratic hold\"" }
### INSTRUCTION What is Position, when Round is less than 5, when Nationality is "Canada", and when College/Junior/Club Team (League) is "Saint John Sea Dogs ( QMJHL )"? ### INPUT CREATE TABLE table_name_30 (position VARCHAR, college_junior_club_team__league_ VARCHAR, round VARCHAR, nationality VARCHAR) ### OUTPUT SELECT position FROM table_name_30 WHERE round < 5 AND nationality = "canada" AND college_junior_club_team__league_ = "saint john sea dogs ( qmjhl )"
{ "input": "CREATE TABLE table_name_30 (position VARCHAR, college_junior_club_team__league_ VARCHAR, round VARCHAR, nationality VARCHAR)", "instruction": "What is Position, when Round is less than 5, when Nationality is \"Canada\", and when College/Junior/Club Team (League) is \"Saint John Sea Dogs ( QMJHL )\"?", "output": "SELECT position FROM table_name_30 WHERE round < 5 AND nationality = \"canada\" AND college_junior_club_team__league_ = \"saint john sea dogs ( qmjhl )\"" }
### INSTRUCTION What is the total frequency have a Status of owned by cumulus media, and a Format of news? ### INPUT CREATE TABLE table_name_66 (frequency INTEGER, status VARCHAR, format VARCHAR) ### OUTPUT SELECT SUM(frequency) FROM table_name_66 WHERE status = "owned by cumulus media" AND format = "news"
{ "input": "CREATE TABLE table_name_66 (frequency INTEGER, status VARCHAR, format VARCHAR)", "instruction": "What is the total frequency have a Status of owned by cumulus media, and a Format of news?", "output": "SELECT SUM(frequency) FROM table_name_66 WHERE status = \"owned by cumulus media\" AND format = \"news\"" }
### INSTRUCTION In what year was the NFL team in chicago illinois established? ### INPUT CREATE TABLE table_name_96 (est VARCHAR, league VARCHAR, state_province VARCHAR, city VARCHAR) ### OUTPUT SELECT est FROM table_name_96 WHERE state_province = "illinois" AND city = "chicago" AND league = "nfl"
{ "input": "CREATE TABLE table_name_96 (est VARCHAR, league VARCHAR, state_province VARCHAR, city VARCHAR)", "instruction": "In what year was the NFL team in chicago illinois established?", "output": "SELECT est FROM table_name_96 WHERE state_province = \"illinois\" AND city = \"chicago\" AND league = \"nfl\"" }
### INSTRUCTION Where date is october 7 and game greater than 1, what is the highest attendance? ### INPUT CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR, game VARCHAR) ### OUTPUT SELECT MAX(attendance) FROM table_name_43 WHERE date = "october 7" AND game > 1
{ "input": "CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR, game VARCHAR)", "instruction": "Where date is october 7 and game greater than 1, what is the highest attendance?", "output": "SELECT MAX(attendance) FROM table_name_43 WHERE date = \"october 7\" AND game > 1" }
### INSTRUCTION What is the lowest long with an avg/G more than -2.2 and a total name and a gain of more than 2,488? ### INPUT CREATE TABLE table_name_60 (long INTEGER, gain VARCHAR, avg_g VARCHAR, name VARCHAR) ### OUTPUT SELECT MIN(long) FROM table_name_60 WHERE avg_g > -2.2 AND name = "total" AND gain > 2 OFFSET 488
{ "input": "CREATE TABLE table_name_60 (long INTEGER, gain VARCHAR, avg_g VARCHAR, name VARCHAR)", "instruction": "What is the lowest long with an avg/G more than -2.2 and a total name and a gain of more than 2,488?", "output": "SELECT MIN(long) FROM table_name_60 WHERE avg_g > -2.2 AND name = \"total\" AND gain > 2 OFFSET 488" }
### INSTRUCTION What is Rider, when Grid is less than 16, when Laps is 21, when Manufacturer is Honda, and when Time is +10.583? ### INPUT CREATE TABLE table_name_67 (rider VARCHAR, time VARCHAR, manufacturer VARCHAR, grid VARCHAR, laps VARCHAR) ### OUTPUT SELECT rider FROM table_name_67 WHERE grid < 16 AND laps = 21 AND manufacturer = "honda" AND time = "+10.583"
{ "input": "CREATE TABLE table_name_67 (rider VARCHAR, time VARCHAR, manufacturer VARCHAR, grid VARCHAR, laps VARCHAR)", "instruction": "What is Rider, when Grid is less than 16, when Laps is 21, when Manufacturer is Honda, and when Time is +10.583?", "output": "SELECT rider FROM table_name_67 WHERE grid < 16 AND laps = 21 AND manufacturer = \"honda\" AND time = \"+10.583\"" }
### INSTRUCTION Which NIR number is for the tso (ex-br class 488 unit 488305) type that has a 6082 / 72605 BR number? ### INPUT CREATE TABLE table_name_87 (nir_number VARCHAR, type VARCHAR, br_number_s_ VARCHAR) ### OUTPUT SELECT nir_number FROM table_name_87 WHERE type = "tso (ex-br class 488 unit 488305)" AND br_number_s_ = "6082 / 72605"
{ "input": "CREATE TABLE table_name_87 (nir_number VARCHAR, type VARCHAR, br_number_s_ VARCHAR)", "instruction": "Which NIR number is for the tso (ex-br class 488 unit 488305) type that has a 6082 / 72605 BR number?", "output": "SELECT nir_number FROM table_name_87 WHERE type = \"tso (ex-br class 488 unit 488305)\" AND br_number_s_ = \"6082 / 72605\"" }
### INSTRUCTION What are names of the movies that are either made after 2000 or reviewed by Brittany Harris? ### INPUT CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR, year VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR) ### OUTPUT SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Brittany Harris' OR T2.year > 2000
{ "input": "CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR, year VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)", "instruction": "What are names of the movies that are either made after 2000 or reviewed by Brittany Harris?", "output": "SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Brittany Harris' OR T2.year > 2000" }
### INSTRUCTION What is Fastest Lap, when Winning Team is Team BRM, when Race is 1, when Pole Position is Leanne Tander, and when Circuit is Phillip Island? ### INPUT CREATE TABLE table_name_8 (fastest_lap VARCHAR, circuit VARCHAR, pole_position VARCHAR, winning_team VARCHAR, race VARCHAR) ### OUTPUT SELECT fastest_lap FROM table_name_8 WHERE winning_team = "team brm" AND race = 1 AND pole_position = "leanne tander" AND circuit = "phillip island"
{ "input": "CREATE TABLE table_name_8 (fastest_lap VARCHAR, circuit VARCHAR, pole_position VARCHAR, winning_team VARCHAR, race VARCHAR)", "instruction": "What is Fastest Lap, when Winning Team is Team BRM, when Race is 1, when Pole Position is Leanne Tander, and when Circuit is Phillip Island?", "output": "SELECT fastest_lap FROM table_name_8 WHERE winning_team = \"team brm\" AND race = 1 AND pole_position = \"leanne tander\" AND circuit = \"phillip island\"" }
### INSTRUCTION Name the total number of NGC number for sagittarius and diffuse nebula with declination of °02′ ### INPUT CREATE TABLE table_name_86 (ngc_number VARCHAR, declination___j2000__ VARCHAR, constellation VARCHAR, object_type VARCHAR) ### OUTPUT SELECT COUNT(ngc_number) FROM table_name_86 WHERE constellation = "sagittarius" AND object_type = "diffuse nebula" AND declination___j2000__ = "°02′"
{ "input": "CREATE TABLE table_name_86 (ngc_number VARCHAR, declination___j2000__ VARCHAR, constellation VARCHAR, object_type VARCHAR)", "instruction": "Name the total number of NGC number for sagittarius and diffuse nebula with declination of °02′", "output": "SELECT COUNT(ngc_number) FROM table_name_86 WHERE constellation = \"sagittarius\" AND object_type = \"diffuse nebula\" AND declination___j2000__ = \"°02′\"" }
### INSTRUCTION What is the to par of Philip Parkin? ### INPUT CREATE TABLE table_name_64 (to_par VARCHAR, player VARCHAR) ### OUTPUT SELECT to_par FROM table_name_64 WHERE player = "philip parkin"
{ "input": "CREATE TABLE table_name_64 (to_par VARCHAR, player VARCHAR)", "instruction": "What is the to par of Philip Parkin?", "output": "SELECT to_par FROM table_name_64 WHERE player = \"philip parkin\"" }
### INSTRUCTION What years did Birger Ruud win the FIS Nordic World Ski Championships? ### INPUT CREATE TABLE table_174491_2 (fis_nordic_world_ski_championships VARCHAR, winner VARCHAR) ### OUTPUT SELECT fis_nordic_world_ski_championships FROM table_174491_2 WHERE winner = "Birger Ruud"
{ "input": "CREATE TABLE table_174491_2 (fis_nordic_world_ski_championships VARCHAR, winner VARCHAR)", "instruction": "What years did Birger Ruud win the FIS Nordic World Ski Championships?", "output": "SELECT fis_nordic_world_ski_championships FROM table_174491_2 WHERE winner = \"Birger Ruud\"" }
### INSTRUCTION How many appearances by Meek Mill? ### INPUT CREATE TABLE table_29160596_1 (appearances INTEGER, top_mc VARCHAR) ### OUTPUT SELECT MAX(appearances) FROM table_29160596_1 WHERE top_mc = "Meek Mill"
{ "input": "CREATE TABLE table_29160596_1 (appearances INTEGER, top_mc VARCHAR)", "instruction": "How many appearances by Meek Mill?", "output": "SELECT MAX(appearances) FROM table_29160596_1 WHERE top_mc = \"Meek Mill\"" }