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: In the championship Miami , United States, what is the score in the final? ### Context: CREATE TABLE table_26202788_7 (score_in_the_final VARCHAR, championship VARCHAR) [/INST] ### Response: SELECT score_in_the_final FROM table_26202788_7 WHERE championship = "Miami , United States" </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: Andy Roddick is the opponent in the final on what surface? ### Context: CREATE TABLE table_26202788_7 (surface VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT surface FROM table_26202788_7 WHERE opponent_in_the_final = "Andy Roddick" </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 championship Indian Wells, United States (2), who are the opponents in the final? ### Context: CREATE TABLE table_26202788_7 (opponent_in_the_final VARCHAR, championship VARCHAR) [/INST] ### Response: SELECT opponent_in_the_final FROM table_26202788_7 WHERE championship = "Indian Wells, United States (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: Marat Safin is the opponent in the final in what championship? ### Context: CREATE TABLE table_26202788_7 (championship VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT championship FROM table_26202788_7 WHERE opponent_in_the_final = "Marat Safin" </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 championships are there on the date January 9, 2005? ### Context: CREATE TABLE table_26202788_7 (championship VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(championship) FROM table_26202788_7 WHERE date = "January 9, 2005" </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: Where the outcome is Winner and surface is Hard (i), what is the No.? ### Context: CREATE TABLE table_26202847_6 (no VARCHAR, outcome VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT no FROM table_26202847_6 WHERE outcome = "Winner" AND surface = "Hard (i)" </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: On the date October 21, 2007, what is the No.? ### Context: CREATE TABLE table_26202847_6 (no VARCHAR, date VARCHAR) [/INST] ### Response: SELECT no FROM table_26202847_6 WHERE date = "October 21, 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: Where is the championship where 6–1, 3–6, 3–6 is the score in the final? ### Context: CREATE TABLE table_26202847_6 (championship VARCHAR, score_in_the_final VARCHAR) [/INST] ### Response: SELECT championship FROM table_26202847_6 WHERE score_in_the_final = "6–1, 3–6, 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: When the score in the final is 3–6, 6–4, 3–6, 4–6, who are all the opponents in the final? ### Context: CREATE TABLE table_26202847_6 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR) [/INST] ### Response: SELECT opponent_in_the_final FROM table_26202847_6 WHERE score_in_the_final = "3–6, 6–4, 3–6, 4–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: The score in the final is 2–6, 6–2, 6–0, on what surface? ### Context: CREATE TABLE table_26202847_6 (surface VARCHAR, score_in_the_final VARCHAR) [/INST] ### Response: SELECT surface FROM table_26202847_6 WHERE score_in_the_final = "2–6, 6–2, 6–0" </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: The original artist Joan Osborne has what result? ### Context: CREATE TABLE table_26250199_1 (result VARCHAR, original_artist VARCHAR) [/INST] ### Response: SELECT result FROM table_26250199_1 WHERE original_artist = "Joan Osborne" </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 which episode is the order number 10? ### Context: CREATE TABLE table_26250199_1 (episode VARCHAR, order__number VARCHAR) [/INST] ### Response: SELECT episode FROM table_26250199_1 WHERE order__number = "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: In episode Top 16 (8 Men), what are the themes? ### Context: CREATE TABLE table_26250199_1 (theme VARCHAR, episode VARCHAR) [/INST] ### Response: SELECT theme FROM table_26250199_1 WHERE episode = "Top 16 (8 Men)" </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: The theme Auditioner's Choice has what song choice? ### Context: CREATE TABLE table_26250199_1 (song_choice VARCHAR, theme VARCHAR) [/INST] ### Response: SELECT song_choice FROM table_26250199_1 WHERE theme = "Auditioner's Choice" </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 all the week # where subject matter is auditioner's choice ### Context: CREATE TABLE table_26250227_1 (week__number VARCHAR, theme VARCHAR) [/INST] ### Response: SELECT week__number FROM table_26250227_1 WHERE theme = "Auditioner's Choice" </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 all of the order # where authentic artist is maroon 5 ### Context: CREATE TABLE table_26250227_1 (order__number VARCHAR, original_artist VARCHAR) [/INST] ### Response: SELECT order__number FROM table_26250227_1 WHERE original_artist = "Maroon 5" </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 represents for los alcarrizos ### Context: CREATE TABLE table_26301697_2 (represents VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT represents FROM table_26301697_2 WHERE hometown = "Los Alcarrizos" </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 most age ### Context: CREATE TABLE table_26301697_2 (age INTEGER) [/INST] ### Response: SELECT MAX(age) FROM table_26301697_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: Name the total number of represents for clary sermina delgado cid ### Context: CREATE TABLE table_26301697_2 (represents VARCHAR, contestant VARCHAR) [/INST] ### Response: SELECT COUNT(represents) FROM table_26301697_2 WHERE contestant = "Clary Sermina Delgado Cid" </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 least age for distrito nacional ### Context: CREATE TABLE table_26301697_2 (age INTEGER, represents VARCHAR) [/INST] ### Response: SELECT MIN(age) FROM table_26301697_2 WHERE represents = "Distrito Nacional" </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 represents for 1.76 cm ### Context: CREATE TABLE table_26301697_2 (represents VARCHAR, height__cm_ VARCHAR) [/INST] ### Response: SELECT represents FROM table_26301697_2 WHERE height__cm_ = "1.76" </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 how many rounds was Race 17? ### Context: CREATE TABLE table_26334740_3 (round VARCHAR, race VARCHAR) [/INST] ### Response: SELECT COUNT(round) FROM table_26334740_3 WHERE race = 17 </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 team won Race 17? ### Context: CREATE TABLE table_26334740_3 (winning_team VARCHAR, race VARCHAR) [/INST] ### Response: SELECT winning_team FROM table_26334740_3 WHERE race = 17 </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 his partner in 1989? ### Context: CREATE TABLE table_26309085_1 (partner VARCHAR, year VARCHAR) [/INST] ### Response: SELECT partner FROM table_26309085_1 WHERE year = 1989 </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 surface when he played with John Alexander? ### Context: CREATE TABLE table_26309085_1 (surface VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT surface FROM table_26309085_1 WHERE partner = "John Alexander" </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 final score in 1986? ### Context: CREATE TABLE table_26309085_1 (score_in_final VARCHAR, year VARCHAR) [/INST] ### Response: SELECT score_in_final FROM table_26309085_1 WHERE year = 1986 </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 nickname of the University of Alabama? ### Context: CREATE TABLE table_26355116_1 (nickname VARCHAR, school VARCHAR) [/INST] ### Response: SELECT nickname FROM table_26355116_1 WHERE school = "University of Alabama" </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 maximum enrollment of the schools? ### Context: CREATE TABLE table_26355116_1 (enrollment INTEGER) [/INST] ### Response: SELECT MAX(enrollment) FROM table_26355116_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: How many public is there for the couple that got eliminated? ### Context: CREATE TABLE table_26375386_23 (public INTEGER, result VARCHAR) [/INST] ### Response: SELECT MAX(public) FROM table_26375386_23 WHERE result = "Eliminated" </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 result for the total of 12? ### Context: CREATE TABLE table_26375386_23 (result VARCHAR, total VARCHAR) [/INST] ### Response: SELECT result FROM table_26375386_23 WHERE total = 12 </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 maximum rank for the vote percentage of 5.6% ### Context: CREATE TABLE table_26375386_23 (rank INTEGER, vote_percentage VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_26375386_23 WHERE vote_percentage = "5.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: How many judges were there for the eliminated couple? ### Context: CREATE TABLE table_26375386_23 (judges VARCHAR, result VARCHAR) [/INST] ### Response: SELECT judges FROM table_26375386_23 WHERE result = "Eliminated" </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 number of public that was there when the vote percentage was 22.9%? ### Context: CREATE TABLE table_26375386_23 (public VARCHAR, vote_percentage VARCHAR) [/INST] ### Response: SELECT COUNT(public) FROM table_26375386_23 WHERE vote_percentage = "22.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: What was the total number when the vote percentage was 44.8%? ### Context: CREATE TABLE table_26375386_23 (total VARCHAR, vote_percentage VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_26375386_23 WHERE vote_percentage = "44.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: What year was Fayette operational at 46? ### Context: CREATE TABLE table_26387382_1 (year_operational INTEGER, location__county_ VARCHAR, capacity__mw_ VARCHAR) [/INST] ### Response: SELECT MIN(year_operational) FROM table_26387382_1 WHERE location__county_ = "Fayette" AND capacity__mw_ = "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: What farm has a capacity of 70 and is operational? ### Context: CREATE TABLE table_26387382_1 (name VARCHAR, capacity__mw_ VARCHAR, status VARCHAR) [/INST] ### Response: SELECT name FROM table_26387382_1 WHERE capacity__mw_ = "70" AND status = "Operational" </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 locations are considered centre? ### Context: CREATE TABLE table_26387382_1 (power__mw·hr_yr_ VARCHAR, location__county_ VARCHAR) [/INST] ### Response: SELECT power__mw·hr_yr_ FROM table_26387382_1 WHERE location__county_ = "Centre" </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 all capacities have turbines between 50-60? ### Context: CREATE TABLE table_26387382_1 (capacity__mw_ VARCHAR, turbines VARCHAR) [/INST] ### Response: SELECT capacity__mw_ FROM table_26387382_1 WHERE turbines = "50-60" </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 all turbines have a capacity of 30 and have a Somerset location? ### Context: CREATE TABLE table_26387382_1 (turbines VARCHAR, location__county_ VARCHAR, capacity__mw_ VARCHAR) [/INST] ### Response: SELECT turbines FROM table_26387382_1 WHERE location__county_ = "Somerset" AND capacity__mw_ = "30" </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 peak is 9, how many weeks was it in the top 10? ### Context: CREATE TABLE table_26400041_2 (weeks_in_top_10 INTEGER, peak VARCHAR) [/INST] ### Response: SELECT MAX(weeks_in_top_10) FROM table_26400041_2 WHERE peak = 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: How many games had red star as the runner up? ### Context: CREATE TABLE table_26455614_1 (attendance VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_26455614_1 WHERE runner_up = "Red Star" </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 fewest recorded entrants against paris saint-germain? ### Context: CREATE TABLE table_26455614_1 (entries INTEGER, winner VARCHAR) [/INST] ### Response: SELECT MIN(entries) FROM table_26455614_1 WHERE winner = "Paris Saint-Germain" </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 member countries for finnish swedish ### Context: CREATE TABLE table_26519486_1 (member_countries VARCHAR, languages VARCHAR) [/INST] ### Response: SELECT member_countries FROM table_26519486_1 WHERE languages = "Finnish Swedish" </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 area for german ### Context: CREATE TABLE table_26519486_1 (area__km²_ VARCHAR, languages VARCHAR) [/INST] ### Response: SELECT area__km²_ FROM table_26519486_1 WHERE languages = "German" </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 population for 11 languages ### Context: CREATE TABLE table_26519486_1 (population VARCHAR, languages VARCHAR) [/INST] ### Response: SELECT population FROM table_26519486_1 WHERE languages = "11" </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 the episode where the patient portrayer is Kathy Lamkin? ### Context: CREATE TABLE table_26561508_1 (production_code VARCHAR, patient_portrayer VARCHAR) [/INST] ### Response: SELECT production_code FROM table_26561508_1 WHERE patient_portrayer = "Kathy Lamkin" </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 writter for the episode identified by the production code 2t5954? ### Context: CREATE TABLE table_26561508_1 (written_by VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT written_by FROM table_26561508_1 WHERE production_code = "2T5954" </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 total number of patient portayers for the episode directed by Craig Zisk and written by Brad Falchuk? ### Context: CREATE TABLE table_26561508_1 (patient_portrayer VARCHAR, directed_by VARCHAR, written_by VARCHAR) [/INST] ### Response: SELECT COUNT(patient_portrayer) FROM table_26561508_1 WHERE directed_by = "Craig Zisk" AND written_by = "Brad Falchuk" </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 directed the episode with production code 177605? ### Context: CREATE TABLE table_26561506_1 (directed_by VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT directed_by FROM table_26561506_1 WHERE production_code = 177605 </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 are numbered 4 in the season? ### Context: CREATE TABLE table_26561506_1 (patient_portrayer VARCHAR, _number VARCHAR) [/INST] ### Response: SELECT COUNT(patient_portrayer) FROM table_26561506_1 WHERE _number = 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: Who wrote episode number 28? ### Context: CREATE TABLE table_26561506_1 (written_by VARCHAR, no VARCHAR) [/INST] ### Response: SELECT written_by FROM table_26561506_1 WHERE no = 28 </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 highest numbered episode with patient portrayer doug savant? ### Context: CREATE TABLE table_26561506_1 (_number INTEGER, patient_portrayer VARCHAR) [/INST] ### Response: SELECT MAX(_number) FROM table_26561506_1 WHERE patient_portrayer = "Doug Savant" </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(s) in the series was written by bo crese? ### Context: CREATE TABLE table_26565936_2 (no_in_series VARCHAR, written_by VARCHAR) [/INST] ### Response: SELECT no_in_series FROM table_26565936_2 WHERE written_by = "Bo Crese" </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 wrote episode number 109 in the series? ### Context: CREATE TABLE table_26565936_2 (written_by VARCHAR, no_in_series VARCHAR) [/INST] ### Response: SELECT written_by FROM table_26565936_2 WHERE no_in_series = 109 </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 first episode in the season directed by nelson mccormick? ### Context: CREATE TABLE table_26565936_2 (no_in_season INTEGER, directed_by VARCHAR) [/INST] ### Response: SELECT MIN(no_in_season) FROM table_26565936_2 WHERE directed_by = "Nelson McCormick" </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 original air date for the episode with 13.92 million us viewers? ### Context: CREATE TABLE table_26565936_2 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) [/INST] ### Response: SELECT original_air_date FROM table_26565936_2 WHERE us_viewers__millions_ = "13.92" </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 episode with a 999,000 BARB rating first aired in Denmark? ### Context: CREATE TABLE table_26591309_3 (first_broadcast_denmark___dr1__ VARCHAR, official_barb_ratings VARCHAR) [/INST] ### Response: SELECT first_broadcast_denmark___dr1__ FROM table_26591309_3 WHERE official_barb_ratings = "999,000" </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 BARB ratings of episode 6? ### Context: CREATE TABLE table_26591309_3 (official_barb_ratings VARCHAR, episode VARCHAR) [/INST] ### Response: SELECT official_barb_ratings FROM table_26591309_3 WHERE episode = 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: When was the episode with a 1,036,000 BARB rating first aired in Denmark? ### Context: CREATE TABLE table_26591309_3 (first_broadcast_denmark___dr1__ VARCHAR, official_barb_ratings VARCHAR) [/INST] ### Response: SELECT first_broadcast_denmark___dr1__ FROM table_26591309_3 WHERE official_barb_ratings = "1,036,000" </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 parks are called mt. olympus ### Context: CREATE TABLE table_2665085_1 (name VARCHAR, park VARCHAR) [/INST] ### Response: SELECT COUNT(name) FROM table_2665085_1 WHERE park = "Mt. Olympus" </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 fast is the coaster that is 163 feet tall ### Context: CREATE TABLE table_2665085_1 (speed__mph_ VARCHAR, height__ft_ VARCHAR) [/INST] ### Response: SELECT speed__mph_ FROM table_2665085_1 WHERE height__ft_ = 163 </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 length of the coaster with the unknown speed ### Context: CREATE TABLE table_2665085_1 (length__ft_ VARCHAR, speed__mph_ VARCHAR) [/INST] ### Response: SELECT length__ft_ FROM table_2665085_1 WHERE speed__mph_ = "unknown" </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 long is the rollar coaster on Kemah Boardwalk ### Context: CREATE TABLE table_2665085_1 (length__ft_ VARCHAR, park VARCHAR) [/INST] ### Response: SELECT length__ft_ FROM table_2665085_1 WHERE park = "Kemah Boardwalk" </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 park is Boardwalk Bullet located in? ### Context: CREATE TABLE table_2665085_1 (park VARCHAR, name VARCHAR) [/INST] ### Response: SELECT park FROM table_2665085_1 WHERE name = "Boardwalk Bullet" </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 parks is Zippin Pippin located in ### Context: CREATE TABLE table_2665085_1 (park VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(park) FROM table_2665085_1 WHERE name = "Zippin Pippin" </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 year was Montenegro the host country? ### Context: CREATE TABLE table_26669939_1 (year VARCHAR, host_country VARCHAR) [/INST] ### Response: SELECT year FROM table_26669939_1 WHERE host_country = "Montenegro" </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 number of athletes in the host city of Nice? ### Context: CREATE TABLE table_26669939_1 (no_of_athletes VARCHAR, host_city VARCHAR) [/INST] ### Response: SELECT no_of_athletes FROM table_26669939_1 WHERE host_city = "Nice" </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 host country when Bar was the host city? ### Context: CREATE TABLE table_26669939_1 (host_country VARCHAR, host_city VARCHAR) [/INST] ### Response: SELECT host_country FROM table_26669939_1 WHERE host_city = "Bar" </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 number of athletes for the 7th edition? ### Context: CREATE TABLE table_26669939_1 (no_of_athletes VARCHAR, edition VARCHAR) [/INST] ### Response: SELECT no_of_athletes FROM table_26669939_1 WHERE edition = "7th" </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 most recent year? ### Context: CREATE TABLE table_26669939_1 (year INTEGER) [/INST] ### Response: SELECT MAX(year) FROM table_26669939_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 host city of the 8th edition in the the host country of Croatia? ### Context: CREATE TABLE table_26669939_1 (host_city VARCHAR, host_country VARCHAR, edition VARCHAR) [/INST] ### Response: SELECT host_city FROM table_26669939_1 WHERE host_country = "Croatia" AND edition = "8th" </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 result for first elected being 1798 1825 ### Context: CREATE TABLE table_2668243_18 (result VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT result FROM table_2668243_18 WHERE first_elected = "1798 1825" </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 total number of party for willis alston ### Context: CREATE TABLE table_2668243_18 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_2668243_18 WHERE incumbent = "Willis Alston" </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 result for augustine h. shepperd (j) 100% ### Context: CREATE TABLE table_2668243_18 (result VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT result FROM table_2668243_18 WHERE candidates = "Augustine H. Shepperd (J) 100%" </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 result for willis alston ### Context: CREATE TABLE table_2668243_18 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_2668243_18 WHERE incumbent = "Willis Alston" </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 total number of party for willis alston (j) 93.9% george e. spruill 6.1% ### Context: CREATE TABLE table_2668243_18 (party VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_2668243_18 WHERE candidates = "Willis Alston (J) 93.9% George E. Spruill 6.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: Name the district for anti-jacksonian ### Context: CREATE TABLE table_2668243_18 (district VARCHAR, party VARCHAR) [/INST] ### Response: SELECT district FROM table_2668243_18 WHERE party = "Anti-Jacksonian" </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 result for the candidate first elected in 1820? ### Context: CREATE TABLE table_2668243_19 (result VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT result FROM table_2668243_19 WHERE first_elected = "1820" </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 party of Joseph Vance? ### Context: CREATE TABLE table_2668243_19 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_2668243_19 WHERE incumbent = "Joseph Vance" </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 first elected for hosea moffitt (f) 57.9% josiah masters (dr) 42.1% ### Context: CREATE TABLE table_2668352_11 (first_elected VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_2668352_11 WHERE candidates = "Hosea Moffitt (F) 57.9% Josiah Masters (DR) 42.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: Name the first elected for jacob markell ### Context: CREATE TABLE table_2668352_11 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_2668352_11 WHERE incumbent = "Jacob Markell" </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 least first elected ### Context: CREATE TABLE table_2668352_11 (first_elected INTEGER) [/INST] ### Response: SELECT MIN(first_elected) FROM table_2668352_11 </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 most first elected ### Context: CREATE TABLE table_2668352_11 (first_elected INTEGER) [/INST] ### Response: SELECT MAX(first_elected) FROM table_2668352_11 </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 incumbent for new york 10 ### Context: CREATE TABLE table_2668352_11 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_2668352_11 WHERE district = "New York 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: Name the distrct for thomas wilson ### Context: CREATE TABLE table_2668367_21 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_2668367_21 WHERE incumbent = "Thomas Wilson" </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 party for john randolph redistricted from the 15th district ### Context: CREATE TABLE table_2668367_21 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_2668367_21 WHERE incumbent = "John Randolph Redistricted from the 15th district" </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 party for virginia 12 ### Context: CREATE TABLE table_2668367_21 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_2668367_21 WHERE district = "Virginia 12" </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 candidates for john boyle ### Context: CREATE TABLE table_2668378_5 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_2668378_5 WHERE incumbent = "John Boyle" </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 first elected for kentucky 3 ### Context: CREATE TABLE table_2668378_5 (first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_2668378_5 WHERE district = "Kentucky 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: Name the incumbent for matthew lyon (dr) anthony new (dr) ### Context: CREATE TABLE table_2668378_5 (incumbent VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_2668378_5 WHERE candidates = "Matthew Lyon (DR) Anthony New (DR)" </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 first elected for kentucky 3 ### Context: CREATE TABLE table_2668378_5 (first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(first_elected) FROM table_2668378_5 WHERE district = "Kentucky 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: Name the number of party for kentucky 1 ### Context: CREATE TABLE table_2668378_5 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_2668378_5 WHERE district = "Kentucky 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: Name the first elected for kentucky 1 ### Context: CREATE TABLE table_2668378_5 (first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_2668378_5 WHERE district = "Kentucky 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 is the district for the party federalist and the candidates are william craik (f) 51.0% benjamin edwards 49.0%? ### Context: CREATE TABLE table_2668416_7 (district VARCHAR, party VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT district FROM table_2668416_7 WHERE party = "Federalist" AND candidates = "William Craik (F) 51.0% Benjamin Edwards 49.0%" </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 party when the incumbent is samuel smith? ### Context: CREATE TABLE table_2668416_7 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_2668416_7 WHERE incumbent = "Samuel Smith" </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 result for the district Maryland 7? ### Context: CREATE TABLE table_2668416_7 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_2668416_7 WHERE district = "Maryland 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: Who is the candidates for district maryland 1? ### Context: CREATE TABLE table_2668416_7 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_2668416_7 WHERE district = "Maryland 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: Who was the candidate in 1791? ### Context: CREATE TABLE table_2668420_12 (candidates VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT candidates FROM table_2668420_12 WHERE first_elected = 1791 </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 tv season was episode 23 broadcast? ### Context: CREATE TABLE table_2669287_1 (tv_season VARCHAR, episodes VARCHAR) [/INST] ### Response: SELECT tv_season FROM table_2669287_1 WHERE episodes = 23 </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 was the rank equal to #50? ### Context: CREATE TABLE table_2669287_1 (season VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT COUNT(season) FROM table_2669287_1 WHERE rank = "#50" </s>