text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which country has doosan infracore as then company name? ### Context: CREATE TABLE table_237199_1 (country VARCHAR, company_name VARCHAR) [/INST] ### Response: SELECT country FROM table_237199_1 WHERE company_name = "Doosan Infracore" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many north american brands have world headquarters in sagamihara? ### Context: CREATE TABLE table_237199_1 (north_american_brands VARCHAR, world_headquarters VARCHAR) [/INST] ### Response: SELECT COUNT(north_american_brands) FROM table_237199_1 WHERE world_headquarters = "Sagamihara" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which company name has headquarters in nagaokakyo, kyoto? ### Context: CREATE TABLE table_237199_1 (company_name VARCHAR, world_headquarters VARCHAR) [/INST] ### Response: SELECT company_name FROM table_237199_1 WHERE world_headquarters = "Nagaokakyo, Kyoto" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the bore where the vehicle code is t214? ### Context: CREATE TABLE table_23722304_2 (bore__mm_ VARCHAR, vehicle_code VARCHAR) [/INST] ### Response: SELECT bore__mm_ FROM table_23722304_2 WHERE vehicle_code = "T214" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the compression ratio whre the torque is 208? ### Context: CREATE TABLE table_23722304_2 (compression_ratio VARCHAR, torque__n_m_ VARCHAR) [/INST] ### Response: SELECT compression_ratio FROM table_23722304_2 WHERE torque__n_m_ = 208 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the vehicle code where the bore is 79.4? ### Context: CREATE TABLE table_23722304_2 (vehicle_code VARCHAR, bore__mm_ VARCHAR) [/INST] ### Response: SELECT vehicle_code FROM table_23722304_2 WHERE bore__mm_ = "79.4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the stroke where the vehicle code is t211? ### Context: CREATE TABLE table_23722304_2 (stroke__mm_ VARCHAR, vehicle_code VARCHAR) [/INST] ### Response: SELECT stroke__mm_ FROM table_23722304_2 WHERE vehicle_code = "T211" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the rating/share for 18-49 for the episode that had 5.90 million viewers? ### Context: CREATE TABLE table_23730973_5 (rating VARCHAR, viewers__millions_ VARCHAR) [/INST] ### Response: SELECT rating / SHARE(18 - 49) FROM table_23730973_5 WHERE viewers__millions_ = "5.90" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the title of episode 3? ### Context: CREATE TABLE table_23730973_5 (episode VARCHAR, no VARCHAR) [/INST] ### Response: SELECT episode FROM table_23730973_5 WHERE no = 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What number episode had a rating of 4.7? ### Context: CREATE TABLE table_23730973_5 (no INTEGER, rating VARCHAR) [/INST] ### Response: SELECT MIN(no) FROM table_23730973_5 WHERE rating = "4.7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the rating for the episode that had 5.90 million viewers? ### Context: CREATE TABLE table_23730973_5 (rating VARCHAR, viewers__millions_ VARCHAR) [/INST] ### Response: SELECT rating FROM table_23730973_5 WHERE viewers__millions_ = "5.90" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What number episode had a 4.2 rating? ### Context: CREATE TABLE table_23730973_5 (no INTEGER, rating VARCHAR) [/INST] ### Response: SELECT MIN(no) FROM table_23730973_5 WHERE rating = "4.2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the winning coach total number if the top team in regular season (points) is the Kansas City Spurs (110 points)? ### Context: CREATE TABLE table_237757_3 (winning_coach VARCHAR, top_team_in_regular_season__points_ VARCHAR) [/INST] ### Response: SELECT COUNT(winning_coach) FROM table_237757_3 WHERE top_team_in_regular_season__points_ = "Kansas City Spurs (110 points)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: If the top team in regular season (points) is the New York Cosmos (200 points), what is the winner (number of titles)? ### Context: CREATE TABLE table_237757_3 (winner__number_of_titles_ VARCHAR, top_team_in_regular_season__points_ VARCHAR) [/INST] ### Response: SELECT winner__number_of_titles_ FROM table_237757_3 WHERE top_team_in_regular_season__points_ = "New York Cosmos (200 points)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: If the runner-up is the Fort Lauderdale Strikers, what is the winner (number of titles)? ### Context: CREATE TABLE table_237757_3 (winner__number_of_titles_ VARCHAR, runners_up VARCHAR) [/INST] ### Response: SELECT winner__number_of_titles_ FROM table_237757_3 WHERE runners_up = "Fort Lauderdale Strikers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many figures for Other in the district where the GN division is 95? ### Context: CREATE TABLE table_23777640_1 (other VARCHAR, gn_divisions VARCHAR) [/INST] ### Response: SELECT COUNT(other) FROM table_23777640_1 WHERE gn_divisions = 95 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the market share of the operator whose technology is CDMA EVDO GSM EDGE HSPA+? ### Context: CREATE TABLE table_23801721_1 (market_share VARCHAR, technology VARCHAR) [/INST] ### Response: SELECT market_share FROM table_23801721_1 WHERE technology = "CDMA EVDO GSM EDGE HSPA+" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the rank of operator whose technology is CDMA EVDO? ### Context: CREATE TABLE table_23801721_1 (rank INTEGER, technology VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_23801721_1 WHERE technology = "CDMA EVDO" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the production code for the episode directed by Michael Morris? ### Context: CREATE TABLE table_23793770_1 (production_code INTEGER, directed_by VARCHAR) [/INST] ### Response: SELECT MIN(production_code) FROM table_23793770_1 WHERE directed_by = "Michael Morris" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the title the episode directed by Allison Liddi-Brown? ### Context: CREATE TABLE table_23793770_1 (title VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT title FROM table_23793770_1 WHERE directed_by = "Allison Liddi-Brown" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What the production code for the episode with 16.10 U.S. viewers? ### Context: CREATE TABLE table_23793770_1 (production_code INTEGER, us_viewers__millions_ VARCHAR) [/INST] ### Response: SELECT MAX(production_code) FROM table_23793770_1 WHERE us_viewers__millions_ = "16.10" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the episode title on original air date of September 30, 2007? ### Context: CREATE TABLE table_23799417_2 (title VARCHAR, original_airing VARCHAR) [/INST] ### Response: SELECT title FROM table_23799417_2 WHERE original_airing = "September 30, 2007" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the rating if the rating/share (18-49) is 3.6? ### Context: CREATE TABLE table_23799417_2 (rating VARCHAR) [/INST] ### Response: SELECT rating FROM table_23799417_2 WHERE rating / SHARE(18 AS –49) = 3.6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the rating/share total number if the total viewers is 12.75 million? ### Context: CREATE TABLE table_23799417_2 (rating VARCHAR, total_viewers__in_millions_ VARCHAR) [/INST] ### Response: SELECT COUNT(rating) / SHARE(18 AS –49) FROM table_23799417_2 WHERE total_viewers__in_millions_ = "12.75" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: If the rating is 9.1, what was the total viewers? ### Context: CREATE TABLE table_23799417_2 (total_viewers__in_millions_ VARCHAR, rating VARCHAR) [/INST] ### Response: SELECT total_viewers__in_millions_ FROM table_23799417_2 WHERE rating = "9.1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the reating share when the total viewers was 11.49 million? ### Context: CREATE TABLE table_23793770_2 (rating VARCHAR, total_viewers__in_millions_ VARCHAR) [/INST] ### Response: SELECT rating / SHARE(18 AS –49) FROM table_23793770_2 WHERE total_viewers__in_millions_ = "11.49" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the name of the show that had 10.47 million total viewers? ### Context: CREATE TABLE table_23793770_2 (title VARCHAR, total_viewers__in_millions_ VARCHAR) [/INST] ### Response: SELECT title FROM table_23793770_2 WHERE total_viewers__in_millions_ = "10.47" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many shows had 12.46 total viewers? ### Context: CREATE TABLE table_23793770_2 (title VARCHAR, total_viewers__in_millions_ VARCHAR) [/INST] ### Response: SELECT COUNT(title) FROM table_23793770_2 WHERE total_viewers__in_millions_ = "12.46" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: If the establishment is 49319, what is the sales, receipts or shipments maximum amount? ### Context: CREATE TABLE table_23802822_1 (_receipts VARCHAR, _or_shipments__$1 VARCHAR, sales INTEGER, establishments VARCHAR) [/INST] ### Response: SELECT MAX(sales), _receipts, _or_shipments__$1, 000 AS _ FROM table_23802822_1 WHERE establishments = 49319 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sector is the establishment is 110313? ### Context: CREATE TABLE table_23802822_1 (sector VARCHAR, establishments VARCHAR) [/INST] ### Response: SELECT sector FROM table_23802822_1 WHERE establishments = 110313 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many different Leagues had average attendance of 3589? ### Context: CREATE TABLE table_2380212_1 (league VARCHAR, avg_attendance VARCHAR) [/INST] ### Response: SELECT COUNT(league) FROM table_2380212_1 WHERE avg_attendance = 3589 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many people saw the 3rd, Central regular season on average? ### Context: CREATE TABLE table_2380212_1 (avg_attendance INTEGER, regular_season VARCHAR) [/INST] ### Response: SELECT MIN(avg_attendance) FROM table_2380212_1 WHERE regular_season = "3rd, Central" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What League was played in 2007? ### Context: CREATE TABLE table_2380212_1 (league VARCHAR, year VARCHAR) [/INST] ### Response: SELECT league FROM table_2380212_1 WHERE year = 2007 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was the average attendance 789? ### Context: CREATE TABLE table_2380212_1 (year INTEGER, avg_attendance VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_2380212_1 WHERE avg_attendance = 789 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the score in fg-fga if in ft-fta is 16-21 ### Context: CREATE TABLE table_23817012_6 (fg_fga VARCHAR, ft_fta VARCHAR) [/INST] ### Response: SELECT fg_fga FROM table_23817012_6 WHERE ft_fta = "16-21" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: in the ft pct .667 what is the number of gp-gs ### Context: CREATE TABLE table_23817012_6 (gp_gs VARCHAR, ft_pct VARCHAR) [/INST] ### Response: SELECT COUNT(gp_gs) FROM table_23817012_6 WHERE ft_pct = ".667" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the team number 1 for san lorenzo ### Context: CREATE TABLE table_23812628_1 (team__number1 VARCHAR, team__number2 VARCHAR) [/INST] ### Response: SELECT team__number1 FROM table_23812628_1 WHERE team__number2 = "San Lorenzo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the team #2 for river plate ### Context: CREATE TABLE table_23812628_1 (team__number2 VARCHAR, team__number1 VARCHAR) [/INST] ### Response: SELECT team__number2 FROM table_23812628_1 WHERE team__number1 = "River Plate" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the points for zamora ### Context: CREATE TABLE table_23812628_1 (points VARCHAR, team__number1 VARCHAR) [/INST] ### Response: SELECT points FROM table_23812628_1 WHERE team__number1 = "Zamora" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the 2nd leg for boca juniors ### Context: CREATE TABLE table_23812628_1 (team__number1 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_23812628_1 WHERE team__number1 = "Boca Juniors" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every media type for the Psychedelic Trance genre? ### Context: CREATE TABLE table_23829490_1 (media_type VARCHAR, genre VARCHAR) [/INST] ### Response: SELECT media_type FROM table_23829490_1 WHERE genre = "Psychedelic Trance" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is every composer for the media named Hall of Dreams? ### Context: CREATE TABLE table_23829490_1 (composer VARCHAR, name_of_the_media VARCHAR) [/INST] ### Response: SELECT composer FROM table_23829490_1 WHERE name_of_the_media = "Hall Of Dreams" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every media type for the Dub genre? ### Context: CREATE TABLE table_23829490_1 (media_type VARCHAR, genre VARCHAR) [/INST] ### Response: SELECT media_type FROM table_23829490_1 WHERE genre = "Dub" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every media type for the World genre? ### Context: CREATE TABLE table_23829490_1 (media_type VARCHAR, genre VARCHAR) [/INST] ### Response: SELECT media_type FROM table_23829490_1 WHERE genre = "World" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every composition name when the music library is Heart of Asia and media type is album with the Trance genre? ### Context: CREATE TABLE table_23829490_1 (composition_name VARCHAR, genre VARCHAR, music_library VARCHAR, media_type VARCHAR) [/INST] ### Response: SELECT composition_name FROM table_23829490_1 WHERE music_library = "Heart of Asia" AND media_type = "Album" AND genre = "Trance" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what percentage is brooklyn when manhattan is 15.5%? ### Context: CREATE TABLE table_23837321_4 (brooklyn VARCHAR, manhattan VARCHAR) [/INST] ### Response: SELECT brooklyn FROM table_23837321_4 WHERE manhattan = "15.5_percentage" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every entry in the QLD Cup Premierships when home ground is Dairy Farmers Stadium? ### Context: CREATE TABLE table_2383498_4 (qld_cup_premierships VARCHAR, home_ground VARCHAR) [/INST] ### Response: SELECT qld_cup_premierships FROM table_2383498_4 WHERE home_ground = "Dairy Farmers Stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every value for first year in QLD Cup if home ground is Corbett Park, Crosby Park, Lang Park, ANZ Stadium? ### Context: CREATE TABLE table_2383498_4 (first_year_in_qld_cup VARCHAR, home_ground VARCHAR) [/INST] ### Response: SELECT first_year_in_qld_cup FROM table_2383498_4 WHERE home_ground = "Corbett Park, Crosby Park, Lang Park, ANZ Stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the home ground if team is Sunshine Coast Falcons? ### Context: CREATE TABLE table_2383498_4 (home_ground VARCHAR, team VARCHAR) [/INST] ### Response: SELECT home_ground FROM table_2383498_4 WHERE team = "Sunshine Coast Falcons" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the QLD Cup Premierships if team is Gold Coast Vikings? ### Context: CREATE TABLE table_2383498_4 (qld_cup_premierships VARCHAR, team VARCHAR) [/INST] ### Response: SELECT qld_cup_premierships FROM table_2383498_4 WHERE team = "Gold Coast Vikings" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is every team in the location of Port Moresby? ### Context: CREATE TABLE table_2383498_4 (team VARCHAR, location VARCHAR) [/INST] ### Response: SELECT team FROM table_2383498_4 WHERE location = "Port Moresby" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many values of last year in QLD Cup if QLD Cup Premierships is 1996, 2001? ### Context: CREATE TABLE table_2383498_4 (last_year_in_qld_cup VARCHAR, qld_cup_premierships VARCHAR) [/INST] ### Response: SELECT COUNT(last_year_in_qld_cup) FROM table_2383498_4 WHERE qld_cup_premierships = "1996, 2001" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the undisclosed when Adam Hinshelwood is Ricky Newman? ### Context: CREATE TABLE table_23835213_2 (undisclosed VARCHAR, adam_hinshelwood VARCHAR) [/INST] ### Response: SELECT undisclosed FROM table_23835213_2 WHERE adam_hinshelwood = "Ricky Newman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the df when Adam Hinshelwood is Junior Mendes? ### Context: CREATE TABLE table_23835213_2 (df VARCHAR, adam_hinshelwood VARCHAR) [/INST] ### Response: SELECT df FROM table_23835213_2 WHERE adam_hinshelwood = "Junior Mendes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the undisclosed when Aldertown is Aldershot Town and Wycombe Wanderers is Oxford United? ### Context: CREATE TABLE table_23835213_2 (undisclosed VARCHAR, wycombe_wanderers VARCHAR) [/INST] ### Response: SELECT undisclosed FROM table_23835213_2 WHERE "aldershot_town" = "aldershot_town" AND wycombe_wanderers = "Oxford United" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the undisclosed when Wycombe Wanderers is unattached? ### Context: CREATE TABLE table_23835213_2 (undisclosed VARCHAR, wycombe_wanderers VARCHAR) [/INST] ### Response: SELECT undisclosed FROM table_23835213_2 WHERE wycombe_wanderers = "Unattached" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the head coach for the team that plays at Altrincham Ice Dome? ### Context: CREATE TABLE table_2384331_1 (head_coach VARCHAR, arena VARCHAR) [/INST] ### Response: SELECT head_coach FROM table_2384331_1 WHERE arena = "Altrincham Ice Dome" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What arena does the team play at that has Michael Wales as the captain? ### Context: CREATE TABLE table_2384331_1 (arena VARCHAR, captain VARCHAR) [/INST] ### Response: SELECT arena FROM table_2384331_1 WHERE captain = "Michael Wales" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: List all themes from the top 9. ### Context: CREATE TABLE table_23871828_1 (theme VARCHAR, week__number VARCHAR) [/INST] ### Response: SELECT theme FROM table_23871828_1 WHERE week__number = "Top 9" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what week was the original singer Whitney Houston. ### Context: CREATE TABLE table_23871828_1 (week__number VARCHAR, original_artist VARCHAR) [/INST] ### Response: SELECT week__number FROM table_23871828_1 WHERE original_artist = "Whitney Houston" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the song for safe result #8. ### Context: CREATE TABLE table_23871828_1 (song_choice VARCHAR, result VARCHAR, order__number VARCHAR) [/INST] ### Response: SELECT song_choice FROM table_23871828_1 WHERE result = "Safe" AND order__number = 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: List the song chose for the British Invasion. ### Context: CREATE TABLE table_23871828_1 (song_choice VARCHAR, theme VARCHAR) [/INST] ### Response: SELECT song_choice FROM table_23871828_1 WHERE theme = "British Invasion" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the stops for stations 36 ### Context: CREATE TABLE table_2385460_1 (stops VARCHAR, stations VARCHAR) [/INST] ### Response: SELECT stops FROM table_2385460_1 WHERE stations = 36 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the number of lines for porta nolana - ottaviano- sarno ### Context: CREATE TABLE table_2385460_1 (lines VARCHAR, route VARCHAR) [/INST] ### Response: SELECT COUNT(lines) FROM table_2385460_1 WHERE route = "Porta Nolana - Ottaviano- Sarno" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the travel time for porta nolana - nola - baiano ### Context: CREATE TABLE table_2385460_1 (travel_time VARCHAR, route VARCHAR) [/INST] ### Response: SELECT travel_time FROM table_2385460_1 WHERE route = "Porta Nolana - Nola - Baiano" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the number of stations for 15 minutes travel time ### Context: CREATE TABLE table_2385460_1 (stations VARCHAR, travel_time VARCHAR) [/INST] ### Response: SELECT COUNT(stations) FROM table_2385460_1 WHERE travel_time = "15 minutes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How big (in km2) is Persarmenia? ### Context: CREATE TABLE table_23887174_1 (area__km²_ VARCHAR, province__ashkharh_ VARCHAR) [/INST] ### Response: SELECT area__km²_ FROM table_23887174_1 WHERE province__ashkharh_ = "Persarmenia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the center of the Artsakh province? ### Context: CREATE TABLE table_23887174_1 (center VARCHAR, province__ashkharh_ VARCHAR) [/INST] ### Response: SELECT center FROM table_23887174_1 WHERE province__ashkharh_ = "Artsakh" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many different provinces is Baghaberd the center of? ### Context: CREATE TABLE table_23887174_1 (province__ashkharh_ VARCHAR, center VARCHAR) [/INST] ### Response: SELECT COUNT(province__ashkharh_) FROM table_23887174_1 WHERE center = "Baghaberd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How big is the province with the Armenian name of փայտակարան? ### Context: CREATE TABLE table_23887174_1 (area__km²_ INTEGER, armenian_name VARCHAR) [/INST] ### Response: SELECT MIN(area__km²_) FROM table_23887174_1 WHERE armenian_name = "Փայտակարան" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the center of the province that spreads out on 23860 km2? ### Context: CREATE TABLE table_23887174_1 (center VARCHAR, area__km²_ VARCHAR) [/INST] ### Response: SELECT center FROM table_23887174_1 WHERE area__km²_ = 23860 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many different numbers of cantons does the province with the Armenian name վասպուրական have? ### Context: CREATE TABLE table_23887174_1 (number_of_cantons__gavars_ VARCHAR, armenian_name VARCHAR) [/INST] ### Response: SELECT COUNT(number_of_cantons__gavars_) FROM table_23887174_1 WHERE armenian_name = "Վասպուրական" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what are the seasons for no 3? ### Context: CREATE TABLE table_23886181_1 (seasons VARCHAR, no VARCHAR) [/INST] ### Response: SELECT seasons FROM table_23886181_1 WHERE no = "3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what are the maximum wins where the poles are 2? ### Context: CREATE TABLE table_2387790_1 (wins INTEGER, poles VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_2387790_1 WHERE poles = 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the original of the ipa ( rio de janeiro )translation ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə? ### Context: CREATE TABLE table_23915_4 (translation VARCHAR, ipa___rio_de_janeiro__ VARCHAR) [/INST] ### Response: SELECT translation FROM table_23915_4 WHERE ipa___rio_de_janeiro__ = "ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the original of the ipa ( são paulo ) translation dɐ̃ːˈtɕiɣɐ ˈtɐ̃ʊ̯̃ ɐ̃ˈmadɐ ˈsuɐ ɦõ̞ˈmənə? ### Context: CREATE TABLE table_23915_4 (translation VARCHAR, ipa___são_paulo__ VARCHAR) [/INST] ### Response: SELECT translation FROM table_23915_4 WHERE ipa___são_paulo__ = "dɐ̃ːˈtɕiɣɐ ˈtɐ̃ʊ̯̃ ɐ̃ˈmadɐ ˈsuɐ ɦõ̞ˈmənə" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which frequency is DYMY? ### Context: CREATE TABLE table_23910822_1 (frequency VARCHAR, callsign VARCHAR) [/INST] ### Response: SELECT frequency FROM table_23910822_1 WHERE callsign = "DYMY" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the frequency when radio station branding is 106.3 energy fm naga? ### Context: CREATE TABLE table_23915973_1 (frequency VARCHAR, branding VARCHAR) [/INST] ### Response: SELECT frequency FROM table_23915973_1 WHERE branding = "106.3 Energy FM Naga" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the callsign when power kw is 25kw? ### Context: CREATE TABLE table_23915973_1 (callsign VARCHAR, power_kw VARCHAR) [/INST] ### Response: SELECT callsign FROM table_23915973_1 WHERE power_kw = "25kW" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the frequency when callsign is dxru-fm? ### Context: CREATE TABLE table_23915973_1 (frequency VARCHAR, callsign VARCHAR) [/INST] ### Response: SELECT frequency FROM table_23915973_1 WHERE callsign = "DXRU-FM" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the radio station branding when the power km is 5kw? ### Context: CREATE TABLE table_23915973_1 (branding VARCHAR, power_kw VARCHAR) [/INST] ### Response: SELECT branding FROM table_23915973_1 WHERE power_kw = "5kW" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the coverage when power kw is 25kw? ### Context: CREATE TABLE table_23915973_1 (coverage VARCHAR, power_kw VARCHAR) [/INST] ### Response: SELECT coverage FROM table_23915973_1 WHERE power_kw = "25kW" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many power kw have a frequency of 93.7 mhz? ### Context: CREATE TABLE table_23915973_1 (power_kw VARCHAR, frequency VARCHAR) [/INST] ### Response: SELECT COUNT(power_kw) FROM table_23915973_1 WHERE frequency = "93.7 MHz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who were all the writers whose episodes had 0.97 million viewers? ### Context: CREATE TABLE table_23918997_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) [/INST] ### Response: SELECT written_by FROM table_23918997_1 WHERE us_viewers__million_ = "0.97" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many directors worked on the episode written by Brent Fletcher & Miranda Kwok? ### Context: CREATE TABLE table_23918997_1 (directed_by VARCHAR, written_by VARCHAR) [/INST] ### Response: SELECT COUNT(directed_by) FROM table_23918997_1 WHERE written_by = "Brent Fletcher & Miranda Kwok" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the title of the episode directed by Rowan Woods? ### Context: CREATE TABLE table_23918997_1 (title VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT title FROM table_23918997_1 WHERE directed_by = "Rowan Woods" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many episodes were viewed by 1.29 million people? ### Context: CREATE TABLE table_23918997_1 (no VARCHAR, us_viewers__million_ VARCHAR) [/INST] ### Response: SELECT COUNT(no) FROM table_23918997_1 WHERE us_viewers__million_ = "1.29" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the writer for the episode originally airing on March 1, 2004? ### Context: CREATE TABLE table_23916272_6 (written_by VARCHAR, original_air_date VARCHAR) [/INST] ### Response: SELECT written_by FROM table_23916272_6 WHERE original_air_date = "March 1, 2004" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: List the title for the season episode number of 8. ### Context: CREATE TABLE table_23916272_6 (title VARCHAR, season__number VARCHAR) [/INST] ### Response: SELECT title FROM table_23916272_6 WHERE season__number = 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the director for the episode originally airing September 29, 2003? ### Context: CREATE TABLE table_23916272_6 (directed_by VARCHAR, original_air_date VARCHAR) [/INST] ### Response: SELECT directed_by FROM table_23916272_6 WHERE original_air_date = "September 29, 2003" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the original air date for harry hannigan directed by adam weissman ### Context: CREATE TABLE table_23937219_2 (original_air_date VARCHAR, written_by VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT original_air_date FROM table_23937219_2 WHERE written_by = "Harry Hannigan" AND directed_by = "Adam Weissman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many people directed episode 7 In the season? ### Context: CREATE TABLE table_23937219_3 (directed_by VARCHAR, season__number VARCHAR) [/INST] ### Response: SELECT COUNT(directed_by) FROM table_23937219_3 WHERE season__number = 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many original air dates were there for the episode with production code 212? ### Context: CREATE TABLE table_23937219_3 (original_air_date VARCHAR, prod_code VARCHAR) [/INST] ### Response: SELECT COUNT(original_air_date) FROM table_23937219_3 WHERE prod_code = 212 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the production code for episode 31 in the series? ### Context: CREATE TABLE table_23937219_3 (prod_code INTEGER, series__number VARCHAR) [/INST] ### Response: SELECT MIN(prod_code) FROM table_23937219_3 WHERE series__number = 31 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many seasons did Barking Birmingham & Solihull Stourbridge were relegated from league? ### Context: CREATE TABLE table_23927423_4 (season VARCHAR, relegated_from_league VARCHAR) [/INST] ### Response: SELECT COUNT(season) FROM table_23927423_4 WHERE relegated_from_league = "Barking Birmingham & Solihull Stourbridge" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was relegated to league if Barking Birmingham & Solihull Stourbridge were relegated from league? ### Context: CREATE TABLE table_23927423_4 (relegated_to_league VARCHAR, relegated_from_league VARCHAR) [/INST] ### Response: SELECT relegated_to_league FROM table_23927423_4 WHERE relegated_from_league = "Barking Birmingham & Solihull Stourbridge" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many were the minimum team that participated in the league? ### Context: CREATE TABLE table_23927423_4 (teams INTEGER) [/INST] ### Response: SELECT MIN(teams) FROM table_23927423_4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many teams participated (maximum) when Cornish All Blacks Pertemps Bees were relegated to the league? ### Context: CREATE TABLE table_23927423_4 (teams INTEGER, relegated_to_league VARCHAR) [/INST] ### Response: SELECT MAX(teams) FROM table_23927423_4 WHERE relegated_to_league = "Cornish All Blacks Pertemps Bees" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was promoted to the league when Coventry was relegated to the league? ### Context: CREATE TABLE table_23927423_4 (promoted_to_league VARCHAR, relegated_to_league VARCHAR) [/INST] ### Response: SELECT promoted_to_league FROM table_23927423_4 WHERE relegated_to_league = "Coventry" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many were promoted from the league when Esher was relegated to the league? ### Context: CREATE TABLE table_23927423_4 (promoted_from_league VARCHAR, relegated_to_league VARCHAR) [/INST] ### Response: SELECT COUNT(promoted_from_league) FROM table_23927423_4 WHERE relegated_to_league = "Esher" </s>