text
stringlengths
371
1.02k
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: On April 28, what was the average number of people attending? ### Input: CREATE TABLE table_name_6 (attendance INTEGER, date VARCHAR) ### Response:[/INST]SELECT AVG(attendance) FROM table_name_6 WHERE date = "april 28"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Name the most stage for alejandro valverde and astana greg henderson ### Input: CREATE TABLE table_22713796_14 (stage INTEGER, winner VARCHAR, general_classification VARCHAR, team_classification VARCHAR) ### Response:[/INST]SELECT MAX(stage) FROM table_22713796_14 WHERE general_classification = "Alejandro Valverde" AND team_classification = "Astana" AND winner = "Greg Henderson"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Name the language for el villar 1264 ### Input: CREATE TABLE table_2509350_3 (language VARCHAR, el_villar_municipality VARCHAR) ### Response:[/INST]SELECT language FROM table_2509350_3 WHERE el_villar_municipality = 1264</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Name the score for december 27 ### Input: CREATE TABLE table_23284271_6 (score VARCHAR, date VARCHAR) ### Response:[/INST]SELECT COUNT(score) FROM table_23284271_6 WHERE date = "December 27"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the Opponents in the game with a Date of nov. 25? ### Input: CREATE TABLE table_name_80 (opponents INTEGER, date VARCHAR) ### Response:[/INST]SELECT MIN(opponents) FROM table_name_80 WHERE date = "nov. 25"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What original air date was for the episode with production code of 108? ### Input: CREATE TABLE table_24425976_2 (original_air_date VARCHAR, production_code VARCHAR) ### Response:[/INST]SELECT original_air_date FROM table_24425976_2 WHERE production_code = "108"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Which Time has Laps smaller than 28, and a Rider of nicky hayden? ### Input: CREATE TABLE table_name_40 (time VARCHAR, laps VARCHAR, rider VARCHAR) ### Response:[/INST]SELECT time FROM table_name_40 WHERE laps < 28 AND rider = "nicky hayden"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What university was founded in 1898? ### Input: CREATE TABLE table_24697604_1 (university VARCHAR, year_founded VARCHAR) ### Response:[/INST]SELECT university FROM table_24697604_1 WHERE year_founded = 1898</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What language is the moviein that is on UMP movies network through Sky service? ### Input: CREATE TABLE table_name_87 (language VARCHAR, network VARCHAR, genre VARCHAR, service VARCHAR) ### Response:[/INST]SELECT language FROM table_name_87 WHERE genre = "movies" AND service = "sky" AND network = "ump movies"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the topic of the episode that runs 6:07? ### Input: CREATE TABLE table_name_7 (historical_references VARCHAR, run_time VARCHAR) ### Response:[/INST]SELECT historical_references FROM table_name_7 WHERE run_time = "6:07"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: How many gb's have an iso number of cn-65? ### Input: CREATE TABLE table_254234_1 (gb VARCHAR, iso_№ VARCHAR) ### Response:[/INST]SELECT COUNT(gb) FROM table_254234_1 WHERE iso_№ = "CN-65"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: How many races were for a distance of 2020 m? ### Input: CREATE TABLE table_1358608_4 (group VARCHAR, distance VARCHAR) ### Response:[/INST]SELECT COUNT(group) FROM table_1358608_4 WHERE distance = "2020 m"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: How many games are held after season 2007? ### Input: CREATE TABLE game (season INTEGER) ### Response:[/INST]SELECT COUNT(*) FROM game WHERE season > 2007</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Which Couple has a Rank by average larger than 3, and an Average larger than 16.5, and a Total smaller than 195, and a Number of dances larger than 3? ### Input: CREATE TABLE table_name_20 (couple VARCHAR, number_of_dances VARCHAR, total VARCHAR, rank_by_average VARCHAR, average VARCHAR) ### Response:[/INST]SELECT couple FROM table_name_20 WHERE rank_by_average > 3 AND average > 16.5 AND total < 195 AND number_of_dances > 3</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: How scored the most points where the record is 3-0 for the season? ### Input: CREATE TABLE table_23285849_5 (high_points VARCHAR, record VARCHAR) ### Response:[/INST]SELECT high_points FROM table_23285849_5 WHERE record = "3-0"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: If the special weapon is the Grenado, what is the armor? ### Input: CREATE TABLE table_27704991_1 (armor VARCHAR, special_weapon VARCHAR) ### Response:[/INST]SELECT armor FROM table_27704991_1 WHERE special_weapon = "Grenado"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Tell me the sum of year for 5th result ### Input: CREATE TABLE table_name_12 (year INTEGER, result VARCHAR) ### Response:[/INST]SELECT SUM(year) FROM table_name_12 WHERE result = "5th"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the kickoff for the game on october 22, 2000? ### Input: CREATE TABLE table_name_30 (kickoff VARCHAR, date VARCHAR) ### Response:[/INST]SELECT kickoff FROM table_name_30 WHERE date = "october 22, 2000"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What genre is the song recorded in 1926? ### Input: CREATE TABLE table_name_56 (genre VARCHAR, year_recorded VARCHAR) ### Response:[/INST]SELECT genre FROM table_name_56 WHERE year_recorded = "1926"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the vacancy date for the manager appointed on 2 November 2009 who left due to mutual consent? ### Input: CREATE TABLE table_name_75 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR) ### Response:[/INST]SELECT date_of_vacancy FROM table_name_75 WHERE manner_of_departure = "mutual consent" AND date_of_appointment = "2 november 2009"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: On what date was the score 1-2 at Athens Olympic Stadium? ### Input: CREATE TABLE table_name_37 (date VARCHAR, score VARCHAR, venue VARCHAR) ### Response:[/INST]SELECT date FROM table_name_37 WHERE score = "1-2" AND venue = "athens olympic stadium"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: how many times is lost less than 7 and the position 2? ### Input: CREATE TABLE table_name_10 (goals_for VARCHAR, lost VARCHAR, position VARCHAR) ### Response:[/INST]SELECT COUNT(goals_for) FROM table_name_10 WHERE lost < 7 AND position = 2</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Who was the driver in grid 01 1? ### Input: CREATE TABLE table_20159025_1 (driver VARCHAR, grid VARCHAR) ### Response:[/INST]SELECT driver FROM table_20159025_1 WHERE grid = "01 1"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: How many 3rd ru does Canada have? ### Input: CREATE TABLE table_17522854_6 (country VARCHAR) ### Response:[/INST]SELECT COUNT(3 AS rd_ru) FROM table_17522854_6 WHERE country = "Canada"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What are all role codes? ### Input: CREATE TABLE ROLES (role_code VARCHAR) ### Response:[/INST]SELECT role_code FROM ROLES</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Find the id and name of customers whose address contains WY state and do not use credit card for payment. ### Input: CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR, customer_address VARCHAR, payment_method_code VARCHAR) ### Response:[/INST]SELECT customer_id, customer_name FROM customers WHERE customer_address LIKE "%WY%" AND payment_method_code <> "Credit Card"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the gender of the junior high school is 24mm? ### Input: CREATE TABLE table_13555999_1 (gender VARCHAR, junior_high_school__12_15_yrs_ VARCHAR) ### Response:[/INST]SELECT gender FROM table_13555999_1 WHERE junior_high_school__12_15_yrs_ = "24mm"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Who directed the episode that originally aired on February 16, 1999? ### Input: CREATE TABLE table_228973_5 (directed_by VARCHAR, original_air_date VARCHAR) ### Response:[/INST]SELECT directed_by FROM table_228973_5 WHERE original_air_date = "February 16, 1999"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: How many points have a series of british formula renault 2.0 winter cup and f/laps of 0? ### Input: CREATE TABLE table_23338693_1 (points VARCHAR, series VARCHAR, f_laps VARCHAR) ### Response:[/INST]SELECT points FROM table_23338693_1 WHERE series = "British Formula Renault 2.0 Winter Cup" AND f_laps = 0</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the stadium of the zooveti tbilisi club? ### Input: CREATE TABLE table_name_27 (stadium VARCHAR, clubs VARCHAR) ### Response:[/INST]SELECT stadium FROM table_name_27 WHERE clubs = "zooveti tbilisi"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the Lead in the 2004-05 Season? ### Input: CREATE TABLE table_name_19 (lead VARCHAR, season VARCHAR) ### Response:[/INST]SELECT lead FROM table_name_19 WHERE season = "2004-05"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What season had more than 12 contestants in which greydis gil won? ### Input: CREATE TABLE table_name_98 (season VARCHAR, number_of_contestants VARCHAR, winner VARCHAR) ### Response:[/INST]SELECT season FROM table_name_98 WHERE number_of_contestants > 12 AND winner = "greydis gil"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Find the total amount of loans offered by each bank branch. ### Input: CREATE TABLE loan (branch_id VARCHAR); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR) ### Response:[/INST]SELECT SUM(amount), T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Which of the clubs had 556 points against? ### Input: CREATE TABLE table_name_75 (club VARCHAR, points_against VARCHAR) ### Response:[/INST]SELECT club FROM table_name_75 WHERE points_against = "556"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Name the broadcast for 7:00pm and mississippi state ### Input: CREATE TABLE table_26842217_18 (broadcast VARCHAR, time VARCHAR, home_team VARCHAR) ### Response:[/INST]SELECT broadcast FROM table_26842217_18 WHERE time = "7:00pm" AND home_team = "Mississippi State"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What was the score when the partner was arnaud clément? ### Input: CREATE TABLE table_name_60 (score VARCHAR, partner VARCHAR) ### Response:[/INST]SELECT score FROM table_name_60 WHERE partner = "arnaud clément"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the largest attendance number when the Chicago Cardinals were the opponent and the week was less than 4? ### Input: CREATE TABLE table_name_48 (attendance INTEGER, opponent VARCHAR, week VARCHAR) ### Response:[/INST]SELECT MAX(attendance) FROM table_name_48 WHERE opponent = "chicago cardinals" AND week < 4</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the average score for the player who is T5 in the United States? ### Input: CREATE TABLE table_name_60 (score INTEGER, place VARCHAR, country VARCHAR) ### Response:[/INST]SELECT AVG(score) FROM table_name_60 WHERE place = "t5" AND country = "united states"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: who is batting 1st in game 8? ### Input: CREATE TABLE table_name_20 (batting_1st VARCHAR, game VARCHAR) ### Response:[/INST]SELECT batting_1st FROM table_name_20 WHERE game = 8</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What are the losses when there are 9 wins and more than 1326 against? ### Input: CREATE TABLE table_name_47 (losses INTEGER, wins VARCHAR, against VARCHAR) ### Response:[/INST]SELECT SUM(losses) FROM table_name_47 WHERE wins = 9 AND against > 1326</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Who was the opponent in the match that lasted 4:17? ### Input: CREATE TABLE table_name_58 (opponent VARCHAR, time VARCHAR) ### Response:[/INST]SELECT opponent FROM table_name_58 WHERE time = "4:17"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the date of the game later than week 13 and 41,862 people attended? ### Input: CREATE TABLE table_name_62 (date VARCHAR, week VARCHAR, attendance VARCHAR) ### Response:[/INST]SELECT date FROM table_name_62 WHERE week > 13 AND attendance = "41,862"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: How many times does ROY SWEAZY has reserved a room. ### Input: CREATE TABLE Reservations (FirstName VARCHAR, LastName VARCHAR) ### Response:[/INST]SELECT COUNT(*) FROM Reservations WHERE FirstName = "ROY" AND LastName = "SWEAZY"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What set 2 has a set 4 of 21-25? ### Input: CREATE TABLE table_name_74 (set_2 VARCHAR, set_4 VARCHAR) ### Response:[/INST]SELECT set_2 FROM table_name_74 WHERE set_4 = "21-25"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is Michael Del Zotto's nationality? ### Input: CREATE TABLE table_name_54 (nationality VARCHAR, player VARCHAR) ### Response:[/INST]SELECT nationality FROM table_name_54 WHERE player = "michael del zotto"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: How much does the player from Southern California weight? ### Input: CREATE TABLE table_20861261_4 (weight VARCHAR, college VARCHAR) ### Response:[/INST]SELECT weight FROM table_20861261_4 WHERE college = "Southern California"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What was the latitude for van meter who had a land(sqmi) larger than 35.747, Water(sqmi) of 0 and a GEO ID smaller than 3809981860? ### Input: CREATE TABLE table_name_51 (latitude VARCHAR, township VARCHAR, geo_id VARCHAR, land___sqmi__ VARCHAR, water__sqmi_ VARCHAR) ### Response:[/INST]SELECT COUNT(latitude) FROM table_name_51 WHERE land___sqmi__ > 35.747 AND water__sqmi_ = 0 AND geo_id < 3809981860 AND township = "van meter"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Where was the game held where Hawthorn was the away team? ### Input: CREATE TABLE table_name_46 (venue VARCHAR, away_team VARCHAR) ### Response:[/INST]SELECT venue FROM table_name_46 WHERE away_team = "hawthorn"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: find the ids of reviewers who did not give 4 star. ### Input: CREATE TABLE Rating (rID VARCHAR, stars VARCHAR) ### Response:[/INST]SELECT rID FROM Rating EXCEPT SELECT rID FROM Rating WHERE stars = 4</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: If the third name is Bruno Bonifacio, what is the champion? ### Input: CREATE TABLE table_25563779_4 (champion VARCHAR, third VARCHAR) ### Response:[/INST]SELECT champion FROM table_25563779_4 WHERE third = "Bruno Bonifacio"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Which positions are the poles 2? ### Input: CREATE TABLE table_22056184_1 (position VARCHAR, poles VARCHAR) ### Response:[/INST]SELECT position FROM table_22056184_1 WHERE poles = 2</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Who placed t5 and had a score of 70-72=142? ### Input: CREATE TABLE table_name_45 (player VARCHAR, place VARCHAR, score VARCHAR) ### Response:[/INST]SELECT player FROM table_name_45 WHERE place = "t5" AND score = 70 - 72 = 142</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Who directed when the production code is 1.02? ### Input: CREATE TABLE table_2226817_2 (directed_by VARCHAR, production_code VARCHAR) ### Response:[/INST]SELECT directed_by FROM table_2226817_2 WHERE production_code = "1.02"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Which points classification was used in stage 15? ### Input: CREATE TABLE table_name_54 (points_classification VARCHAR, stage VARCHAR) ### Response:[/INST]SELECT points_classification FROM table_name_54 WHERE stage = "15"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the total Founded with a Main Campus Location of liberal? ### Input: CREATE TABLE table_name_29 (founded VARCHAR, main_campus_location VARCHAR) ### Response:[/INST]SELECT COUNT(founded) FROM table_name_29 WHERE main_campus_location = "liberal"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: List the number of assists against illinois-chicago. ### Input: CREATE TABLE table_26360571_2 (assists VARCHAR, opponent VARCHAR) ### Response:[/INST]SELECT assists FROM table_26360571_2 WHERE opponent = "Illinois-Chicago"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: what is the swimsuit score when evening gown score is 9.165 (3)? ### Input: CREATE TABLE table_name_13 (swimsuit VARCHAR, evening_gown VARCHAR) ### Response:[/INST]SELECT swimsuit FROM table_name_13 WHERE evening_gown = "9.165 (3)"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Name the number of location attendance for 36-29 record ### Input: CREATE TABLE table_27902171_8 (location_attendance VARCHAR, record VARCHAR) ### Response:[/INST]SELECT COUNT(location_attendance) FROM table_27902171_8 WHERE record = "36-29"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is Date, when Surface is "Carpet"? ### Input: CREATE TABLE table_name_24 (date VARCHAR, surface VARCHAR) ### Response:[/INST]SELECT date FROM table_name_24 WHERE surface = "carpet"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is Poles, when Races is less than 16? ### Input: CREATE TABLE table_name_99 (poles VARCHAR, races INTEGER) ### Response:[/INST]SELECT poles FROM table_name_99 WHERE races < 16</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: How many million U.s. Viewers watched episode 12 in the season? ### Input: CREATE TABLE table_22265225_1 (us_viewers__millions_ VARCHAR, no_in_season VARCHAR) ### Response:[/INST]SELECT us_viewers__millions_ FROM table_22265225_1 WHERE no_in_season = "12"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: how many arabic in colobians is finnish ### Input: CREATE TABLE table_24807774_1 (arabic VARCHAR, colombian VARCHAR) ### Response:[/INST]SELECT arabic FROM table_24807774_1 WHERE colombian = "Finnish"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What are all of the townlands that have exactly 131 acres. ### Input: CREATE TABLE table_30120761_1 (townland VARCHAR, area__acres__ VARCHAR) ### Response:[/INST]SELECT townland FROM table_30120761_1 WHERE area__acres__ = 131</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Who is the BSU head coach of the tournament after 1994 with louisville as the opponent? ### Input: CREATE TABLE table_name_76 (bsu_head_coach VARCHAR, opponent VARCHAR, year VARCHAR) ### Response:[/INST]SELECT bsu_head_coach FROM table_name_76 WHERE opponent = "louisville" AND year > 1994</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: what is the total number of player where years for rockets is 1975-79 ### Input: CREATE TABLE table_11734041_20 (player VARCHAR, years_for_rockets VARCHAR) ### Response:[/INST]SELECT COUNT(player) FROM table_11734041_20 WHERE years_for_rockets = "1975-79"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Which Height Metres / feet has a Rank of 8, and Floors of 3x17? ### Input: CREATE TABLE table_name_18 (height_metres___feet VARCHAR, rank VARCHAR, floors VARCHAR) ### Response:[/INST]SELECT height_metres___feet FROM table_name_18 WHERE rank = 8 AND floors = "3x17"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Who was the swimmer from Dominica who had a time of 21.2 and swam in lane 7? ### Input: CREATE TABLE table_name_49 (athlete VARCHAR, nationality VARCHAR, time VARCHAR, lane VARCHAR) ### Response:[/INST]SELECT athlete FROM table_name_49 WHERE time < 21.2 AND lane < 7 AND nationality = "dominica"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Which Attendance has a Result of 1-0, and a Venue of A, and an Opponent of newcastle united? ### Input: CREATE TABLE table_name_77 (attendance INTEGER, opponent VARCHAR, result VARCHAR, venue VARCHAR) ### Response:[/INST]SELECT MIN(attendance) FROM table_name_77 WHERE result = "1-0" AND venue = "a" AND opponent = "newcastle united"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the season for no award given for rookie of the year? ### Input: CREATE TABLE table_13082900_1 (season VARCHAR, rookie_of_the_year VARCHAR) ### Response:[/INST]SELECT season FROM table_13082900_1 WHERE rookie_of_the_year = "No award given"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Name the total number for number in series that got 3.62 viewers ### Input: CREATE TABLE table_18569389_1 (no_in_series VARCHAR, us_viewers__million_ VARCHAR) ### Response:[/INST]SELECT COUNT(no_in_series) FROM table_18569389_1 WHERE us_viewers__million_ = "3.62"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: How many years have a Record of 73-65? ### Input: CREATE TABLE table_name_74 (year VARCHAR, record VARCHAR) ### Response:[/INST]SELECT COUNT(year) FROM table_name_74 WHERE record = "73-65"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Which Method has a Round of 1, and a Record of 4–2? ### Input: CREATE TABLE table_name_37 (method VARCHAR, round VARCHAR, record VARCHAR) ### Response:[/INST]SELECT method FROM table_name_37 WHERE round = 1 AND record = "4–2"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Name the total number of points for the right end ### Input: CREATE TABLE table_14342592_4 (points VARCHAR, position VARCHAR) ### Response:[/INST]SELECT COUNT(points) FROM table_14342592_4 WHERE position = "Right end"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What game did the Bruins have 56 points? ### Input: CREATE TABLE table_20760407_1 (game INTEGER, bruins_points VARCHAR) ### Response:[/INST]SELECT MAX(game) FROM table_20760407_1 WHERE bruins_points = 56</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: what kind of 2007 has a 1999 of —, and a Model of seat mii? ### Input: CREATE TABLE table_name_16 (model VARCHAR) ### Response:[/INST]SELECT 2007 FROM table_name_16 WHERE 1999 = "—" AND model = "seat mii"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Part Number of tsop48? ### Input: CREATE TABLE table_name_63 (body_width_mm INTEGER, lead_pitch_mm VARCHAR, part_number VARCHAR) ### Response:[/INST]SELECT MIN(body_width_mm) FROM table_name_63 WHERE lead_pitch_mm < 0.55 AND part_number = "tsop48"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Which result has a Record of 16-6? ### Input: CREATE TABLE table_name_20 (res VARCHAR, record VARCHAR) ### Response:[/INST]SELECT res FROM table_name_20 WHERE record = "16-6"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the 1990–1991 Team that had Joel Otto? ### Input: CREATE TABLE table_name_41 (name VARCHAR) ### Response:[/INST]SELECT 1990 AS _1991_team FROM table_name_41 WHERE name = "joel otto"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: How many laps for robin montgomerie-charrington, and a Grid smaller than 15? ### Input: CREATE TABLE table_name_18 (laps VARCHAR, driver VARCHAR, grid VARCHAR) ### Response:[/INST]SELECT COUNT(laps) FROM table_name_18 WHERE driver = "robin montgomerie-charrington" AND grid < 15</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What are the details of all sales and purchases? ### Input: CREATE TABLE purchases (sales_details VARCHAR, purchase_details VARCHAR); CREATE TABLE sales (sales_details VARCHAR, purchase_details VARCHAR) ### Response:[/INST]SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: If the Venue was princes park, which Date did the game take place on? ### Input: CREATE TABLE table_name_58 (date VARCHAR, venue VARCHAR) ### Response:[/INST]SELECT date FROM table_name_58 WHERE venue = "princes park"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: WHAT IS THE LOWEST MONEY WITH 74-74-76-74=298 SCORE? ### Input: CREATE TABLE table_name_2 (money___ INTEGER, score VARCHAR) ### Response:[/INST]SELECT MIN(money___) AS $__ FROM table_name_2 WHERE score = 74 - 74 - 76 - 74 = 298</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Who is the Winner for the City of Loutraki? ### Input: CREATE TABLE table_name_65 (winner VARCHAR, city VARCHAR) ### Response:[/INST]SELECT winner FROM table_name_65 WHERE city = "loutraki"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: what is the position of the player of height ft0in (m) ### Input: CREATE TABLE table_20898602_1 (position VARCHAR, height VARCHAR) ### Response:[/INST]SELECT position FROM table_20898602_1 WHERE height = "ft0in (m)"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: How many discs for the complete 4th series? ### Input: CREATE TABLE table_17798548_4 (_number_of_discs INTEGER, season VARCHAR) ### Response:[/INST]SELECT MAX(_number_of_discs) FROM table_17798548_4 WHERE season = "The Complete 4th Series"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: How many field goals did Carter get when he had 0 extra points? ### Input: CREATE TABLE table_name_14 (field_goals INTEGER, player VARCHAR, extra_points VARCHAR) ### Response:[/INST]SELECT SUM(field_goals) FROM table_name_14 WHERE player = "carter" AND extra_points < 0</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: what is the decision when the record is 13–10–4? ### Input: CREATE TABLE table_name_84 (decision VARCHAR, record VARCHAR) ### Response:[/INST]SELECT decision FROM table_name_84 WHERE record = "13–10–4"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the italian word for Glarus? ### Input: CREATE TABLE table_name_44 (italian VARCHAR, common_english VARCHAR) ### Response:[/INST]SELECT italian FROM table_name_44 WHERE common_english = "glarus"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the Class when Wessex Trains Pink is the Livery? ### Input: CREATE TABLE table_name_90 (class VARCHAR, livery VARCHAR) ### Response:[/INST]SELECT class FROM table_name_90 WHERE livery = "wessex trains pink"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Which Heat has a Nation of australia, and a Rank larger than 7? ### Input: CREATE TABLE table_name_36 (heat INTEGER, nation VARCHAR, rank VARCHAR) ### Response:[/INST]SELECT MAX(heat) FROM table_name_36 WHERE nation = "australia" AND rank > 7</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Which position is round 7? ### Input: CREATE TABLE table_name_27 (position VARCHAR, round VARCHAR) ### Response:[/INST]SELECT position FROM table_name_27 WHERE round = 7</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Who is every vacator with reason for change as resigned December 31, 1959? ### Input: CREATE TABLE table_2159571_2 (vacator VARCHAR, reason_for_change VARCHAR) ### Response:[/INST]SELECT vacator FROM table_2159571_2 WHERE reason_for_change = "Resigned December 31, 1959"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the Finalists that has 2008, 2012, 2013 as Not winning editions ### Input: CREATE TABLE table_name_88 (finalists VARCHAR, not_winning_editions VARCHAR) ### Response:[/INST]SELECT finalists FROM table_name_88 WHERE not_winning_editions = "2008, 2012, 2013"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What venue held the 1966 fifa world cup qualification on may 7, 1965? ### Input: CREATE TABLE table_name_95 (venue VARCHAR, competition VARCHAR, date VARCHAR) ### Response:[/INST]SELECT venue FROM table_name_95 WHERE competition = "1966 fifa world cup qualification" AND date = "may 7, 1965"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the Label of the release on Stereo vinyl LP with Catalog number SF-7635? ### Input: CREATE TABLE table_name_75 (label VARCHAR, format VARCHAR, catalog VARCHAR) ### Response:[/INST]SELECT label FROM table_name_75 WHERE format = "stereo vinyl lp" AND catalog = "sf-7635"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: what is the owner of the c501 ### Input: CREATE TABLE table_name_2 (owner VARCHAR, locomotive VARCHAR) ### Response:[/INST]SELECT owner FROM table_name_2 WHERE locomotive = "c501"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: List all results from the 3-3 scoring game. ### Input: CREATE TABLE table_24561550_1 (result VARCHAR, record VARCHAR) ### Response:[/INST]SELECT result FROM table_24561550_1 WHERE record = "3-3"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: What is the name of the car manufactured by Letecke Zavody N.P., Jinonice? ### Input: CREATE TABLE table_name_11 (automobile_name VARCHAR, manufacturer VARCHAR) ### Response:[/INST]SELECT automobile_name FROM table_name_11 WHERE manufacturer = "letecke zavody n.p., jinonice"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: When was the result l 14–24? ### Input: CREATE TABLE table_name_71 (date VARCHAR, result VARCHAR) ### Response:[/INST]SELECT date FROM table_name_71 WHERE result = "l 14–24"</s>
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction: Which venue has 1st as the result? ### Input: CREATE TABLE table_name_45 (venue VARCHAR, result VARCHAR) ### Response:[/INST]SELECT venue FROM table_name_45 WHERE result = "1st"</s>