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: What is the record when the game was at the San Diego Stadium? ### Context: CREATE TABLE table_17848578_1 (record VARCHAR, game_site VARCHAR) [/INST] ### Response: SELECT record FROM table_17848578_1 WHERE game_site = "San Diego 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: How many results are there when the game was at the Atlanta-Fulton county stadium? ### Context: CREATE TABLE table_17848578_1 (result VARCHAR, game_site VARCHAR) [/INST] ### Response: SELECT COUNT(result) FROM table_17848578_1 WHERE game_site = "Atlanta-Fulton County 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 date of the game at Arrowhead Stadium? ### Context: CREATE TABLE table_17848578_1 (date VARCHAR, game_site VARCHAR) [/INST] ### Response: SELECT date FROM table_17848578_1 WHERE game_site = "Arrowhead 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: Where was the game where attendance was 51478? ### Context: CREATE TABLE table_17848578_1 (game_site VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT game_site FROM table_17848578_1 WHERE attendance = 51478 </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 military expenditures for 2011 for romania ### Context: CREATE TABLE table_17971449_2 (military_expenditures__2011 VARCHAR, _us$_millions_ VARCHAR, country VARCHAR) [/INST] ### Response: SELECT military_expenditures__2011, _us$_millions_ FROM table_17971449_2 WHERE country = "Romania" </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 2011 for luxembourg ### Context: CREATE TABLE table_17971449_2 (population__2011_ VARCHAR, country VARCHAR) [/INST] ### Response: SELECT population__2011_ FROM table_17971449_2 WHERE country = "Luxembourg" </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 deployable military 2011 for denmark ### Context: CREATE TABLE table_17971449_2 (deployable_military__2011 VARCHAR, _thousands_ VARCHAR, country VARCHAR) [/INST] ### Response: SELECT deployable_military__2011, _thousands_ FROM table_17971449_2 WHERE country = "Denmark" </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 total loses forh the tauras tauragė team. ### Context: CREATE TABLE table_18018214_2 (loses VARCHAR, club VARCHAR) [/INST] ### Response: SELECT COUNT(loses) FROM table_18018214_2 WHERE club = "Tauras Tauragė" </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 number of goals scored to equal 58. ### Context: CREATE TABLE table_18018214_2 (goals_conceded INTEGER, points VARCHAR) [/INST] ### Response: SELECT MIN(goals_conceded) FROM table_18018214_2 WHERE points = 58 </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 total reason for change are listed corresponding to the successor Leonard B. Jordan (r)? ### Context: CREATE TABLE table_1802522_3 (reason_for_change VARCHAR, successor VARCHAR) [/INST] ### Response: SELECT COUNT(reason_for_change) FROM table_1802522_3 WHERE successor = "Leonard B. Jordan (R)" </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 state had November 30, 1962 as the date of the successors formal installation? ### Context: CREATE TABLE table_1802522_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR) [/INST] ### Response: SELECT state__class_ FROM table_1802522_3 WHERE date_of_successors_formal_installation = "November 30, 1962" </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 vacant seats were filled by newcomer Joseph H. Bottum (r)? ### Context: CREATE TABLE table_1802522_3 (vacator VARCHAR, successor VARCHAR) [/INST] ### Response: SELECT COUNT(vacator) FROM table_1802522_3 WHERE successor = "Joseph H. Bottum (R)" </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 results of those elections for which Marcy Kaptur is the incumbent? ### Context: CREATE TABLE table_1805191_36 (results VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT results FROM table_1805191_36 WHERE incumbent = "Marcy Kaptur" </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 results of the elections in which Ted Strickland is seeking re-election? ### Context: CREATE TABLE table_1805191_36 (results VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT results FROM table_1805191_36 WHERE incumbent = "Ted Strickland" </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 are all of the candidates in elections where Dennis Kucinich was a candidate? ### Context: CREATE TABLE table_1805191_36 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1805191_36 WHERE incumbent = "Dennis Kucinich" </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 candidates in elections in which Steve Chabot was a candidate? ### Context: CREATE TABLE table_1805191_36 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1805191_36 WHERE incumbent = "Steve Chabot" </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 treasurer in 2008? ### Context: CREATE TABLE table_18052353_4 (treasurer VARCHAR, year VARCHAR) [/INST] ### Response: SELECT treasurer FROM table_18052353_4 WHERE year = "2008" </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 composition of the state assembly in 2008? ### Context: CREATE TABLE table_18052353_4 (state_assembly VARCHAR, year VARCHAR) [/INST] ### Response: SELECT state_assembly FROM table_18052353_4 WHERE year = "2008" </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 series number of the episode with production code 329? ### Context: CREATE TABLE table_18055005_1 (no_in_series VARCHAR, prod_code VARCHAR) [/INST] ### Response: SELECT no_in_series FROM table_18055005_1 WHERE prod_code = "329" </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 series number of the episode originally viewed by 4.1 million people and written by Douglas Lieblein? ### Context: CREATE TABLE table_18055005_1 (no_in_series VARCHAR, viewers__millions_ VARCHAR, written_by VARCHAR) [/INST] ### Response: SELECT no_in_series FROM table_18055005_1 WHERE viewers__millions_ = "4.1" AND written_by = "Douglas Lieblein" </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 the winners vote 55.99%? ### Context: CREATE TABLE table_18106841_1 (year INTEGER, winners__percentage_votes VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_18106841_1 WHERE winners__percentage_votes = "55.99%" </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 winners votes were 50.54% who were the members of parliment? ### Context: CREATE TABLE table_18106841_1 (members_of_parliament VARCHAR, winners__percentage_votes VARCHAR) [/INST] ### Response: SELECT members_of_parliament FROM table_18106841_1 WHERE winners__percentage_votes = "50.54%" </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 millions of U.S. viewers watched the episode directed by Allison Liddi-Brown? ### Context: CREATE TABLE table_18102421_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT us_viewers__millions_ FROM table_18102421_2 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 was the title of the episode that had 13.82 million U.S. viewers? ### Context: CREATE TABLE table_18102421_2 (title VARCHAR, us_viewers__millions_ VARCHAR) [/INST] ### Response: SELECT title FROM table_18102421_2 WHERE us_viewers__millions_ = "13.82" </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 club that won 10 top division titles? ### Context: CREATE TABLE table_18143210_2 (club VARCHAR, top_division_titles VARCHAR) [/INST] ### Response: SELECT club FROM table_18143210_2 WHERE top_division_titles = 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: When did the club UNAM played the first season in top division? ### Context: CREATE TABLE table_18143210_2 (first_season_in_top_division VARCHAR, club VARCHAR) [/INST] ### Response: SELECT first_season_in_top_division FROM table_18143210_2 WHERE club = "UNAM" </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 'first season of current spell in top division' if the first season in top division is in 1964-65? ### Context: CREATE TABLE table_18143210_2 (first_season_of_current_spell_in_top_division VARCHAR, first_season_in_top_division VARCHAR) [/INST] ### Response: SELECT first_season_of_current_spell_in_top_division FROM table_18143210_2 WHERE first_season_in_top_division = "1964-65" </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 top division titles were won during the 'first season of current spell in top division' in 1979-80? ### Context: CREATE TABLE table_18143210_2 (top_division_titles VARCHAR, first_season_of_current_spell_in_top_division VARCHAR) [/INST] ### Response: SELECT top_division_titles FROM table_18143210_2 WHERE first_season_of_current_spell_in_top_division = "1979-80" </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 'number of seasons in top division' were played if the 'first season in top division' games is in 1990-91? ### Context: CREATE TABLE table_18143210_2 (number_of_seasons_in_top_division INTEGER, first_season_in_top_division VARCHAR) [/INST] ### Response: SELECT MAX(number_of_seasons_in_top_division) FROM table_18143210_2 WHERE first_season_in_top_division = "1990-91" </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 'number of season in Liga MX' were played if the 'first season of current spell in top division' is in 1962-63? ### Context: CREATE TABLE table_18143210_2 (number_of_seasons_in_liga_mx VARCHAR, first_season_of_current_spell_in_top_division VARCHAR) [/INST] ### Response: SELECT number_of_seasons_in_liga_mx FROM table_18143210_2 WHERE first_season_of_current_spell_in_top_division = "1962-63" </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 chapter was Transmitted on wednesday if the episode of "363 the hangover part ii" was transmitted on monday? ### Context: CREATE TABLE table_18173916_8 (wednesday VARCHAR, monday VARCHAR) [/INST] ### Response: SELECT wednesday FROM table_18173916_8 WHERE monday = "363 The Hangover Part II" </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 episode was Transmitted on wednesday if the episode of "438 magic: the gathering mini masters tournament" was transmitted on thursday? ### Context: CREATE TABLE table_18173916_8 (wednesday VARCHAR, thursday VARCHAR) [/INST] ### Response: SELECT wednesday FROM table_18173916_8 WHERE thursday = "438 Magic: The Gathering Mini Masters Tournament" </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 episode was Transmitted on friday if the episode of "414 insanely twisted shadow planet" was transmitted on tuesday? ### Context: CREATE TABLE table_18173916_8 (friday VARCHAR, tuesday VARCHAR) [/INST] ### Response: SELECT friday FROM table_18173916_8 WHERE tuesday = "414 Insanely Twisted Shadow Planet" </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 episode was Transmitted on friday if the episode of "515 the adventures of tintin" was transmitted on monday? ### Context: CREATE TABLE table_18173916_8 (friday VARCHAR, monday VARCHAR) [/INST] ### Response: SELECT friday FROM table_18173916_8 WHERE monday = "515 The Adventures of Tintin" </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 episode was Transmitted on wednesday if the episode of "319 sucker punch" was transmitted on tuesday? ### Context: CREATE TABLE table_18173916_8 (wednesday VARCHAR, tuesday VARCHAR) [/INST] ### Response: SELECT COUNT(wednesday) FROM table_18173916_8 WHERE tuesday = "319 Sucker Punch" </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 episode was Transmitted on wednesday if the episode of "307 vs." was transmitted on friday? ### Context: CREATE TABLE table_18173916_8 (wednesday VARCHAR, friday VARCHAR) [/INST] ### Response: SELECT wednesday FROM table_18173916_8 WHERE friday = "307 VS." </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 scoring average for best finsih being t35 ### Context: CREATE TABLE table_18198579_6 (scoring_average VARCHAR, best_finish VARCHAR) [/INST] ### Response: SELECT scoring_average FROM table_18198579_6 WHERE best_finish = "T35" </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 top 10s for scoring rank of 9 ### Context: CREATE TABLE table_18198579_6 (top_10s VARCHAR, scoring_rank VARCHAR) [/INST] ### Response: SELECT COUNT(top_10s) FROM table_18198579_6 WHERE scoring_rank = "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 are the total winners if 7 won the Men's Open? ### Context: CREATE TABLE table_182298_5 (total VARCHAR, mens_open VARCHAR) [/INST] ### Response: SELECT total FROM table_182298_5 WHERE mens_open = 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 won the Men's Open if the players are from Sweden? ### Context: CREATE TABLE table_182298_5 (mens_open VARCHAR, country VARCHAR) [/INST] ### Response: SELECT COUNT(mens_open) FROM table_182298_5 WHERE country = "Sweden" </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 are the total winners from South Korea? ### Context: CREATE TABLE table_182298_5 (total VARCHAR, country VARCHAR) [/INST] ### Response: SELECT total FROM table_182298_5 WHERE country = "South Korea" </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 shaun maloney is the player what is the lowest p? ### Context: CREATE TABLE table_18254488_2 (p INTEGER, player VARCHAR) [/INST] ### Response: SELECT MIN(p) FROM table_18254488_2 WHERE player = "Shaun Maloney" </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 amount of uefa champion leagues? ### Context: CREATE TABLE table_18254488_2 (uefa_champions_league INTEGER) [/INST] ### Response: SELECT MAX(uefa_champions_league) FROM table_18254488_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: When koki mizuno is the player what is the lowest league cup? ### Context: CREATE TABLE table_18254488_2 (league_cup INTEGER, player VARCHAR) [/INST] ### Response: SELECT MIN(league_cup) FROM table_18254488_2 WHERE player = "Koki Mizuno" </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 koki mizuno is the player how man positions are there? ### Context: CREATE TABLE table_18254488_2 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(position) FROM table_18254488_2 WHERE player = "Koki Mizuno" </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 by different writers were seen by 3.24 million people in the US? ### Context: CREATE TABLE table_18268826_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) [/INST] ### Response: SELECT COUNT(written_by) FROM table_18268826_1 WHERE us_viewers__million_ = "3.24" </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 season number of the episode viewed by 3.19 million people in the US? ### Context: CREATE TABLE table_18268826_1 (no_in_season INTEGER, us_viewers__million_ VARCHAR) [/INST] ### Response: SELECT MAX(no_in_season) FROM table_18268826_1 WHERE us_viewers__million_ = "3.19" </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's the writer of the episode seen by 3.25 million people in the US? ### Context: CREATE TABLE table_18268826_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) [/INST] ### Response: SELECT written_by FROM table_18268826_1 WHERE us_viewers__million_ = "3.25" </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 seen by 3.93 million people in the US? ### Context: CREATE TABLE table_18268826_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR) [/INST] ### Response: SELECT directed_by FROM table_18268826_1 WHERE us_viewers__million_ = "3.93" </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 much do the tickets cost for August 7, 1987? ### Context: CREATE TABLE table_18277458_2 (ticket_price_s_ VARCHAR, date_s_ VARCHAR) [/INST] ### Response: SELECT ticket_price_s_ FROM table_18277458_2 WHERE date_s_ = "August 7, 1987" </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 tickets are sold for the Carver-Hawkeye Arena? ### Context: CREATE TABLE table_18277458_2 (ticket_sold___available VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT ticket_sold___available FROM table_18277458_2 WHERE venue = "Carver-Hawkeye Arena" </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 1462/63 was the elected what was the no.? ### Context: CREATE TABLE table_1827690_4 (no VARCHAR, elected VARCHAR) [/INST] ### Response: SELECT no FROM table_1827690_4 WHERE elected = "1462/63" </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 1472 was the elected when was the assembled? ### Context: CREATE TABLE table_1827690_4 (assembled VARCHAR, elected VARCHAR) [/INST] ### Response: SELECT assembled FROM table_1827690_4 WHERE elected = "1472" </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 combinations of scores by individual judges were given to the contestant competing against Mukul Dev? ### Context: CREATE TABLE table_18278508_6 (scores_by_each_individual_judge VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR) [/INST] ### Response: SELECT COUNT(scores_by_each_individual_judge) FROM table_18278508_6 WHERE co_contestant__yaar_vs_pyaar_ = "Mukul Dev" </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 Kashmira Shah's position on August 14? ### Context: CREATE TABLE table_18278508_6 (position VARCHAR, main_contestant VARCHAR, date_performed VARCHAR) [/INST] ### Response: SELECT position FROM table_18278508_6 WHERE main_contestant = "Kashmira Shah" AND date_performed = "August 14" </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 score / week of the contestant who placed in the bottom 2 on august 14? ### Context: CREATE TABLE table_18278508_6 (total_score_week VARCHAR, date_performed VARCHAR, position VARCHAR) [/INST] ### Response: SELECT total_score_week FROM table_18278508_6 WHERE date_performed = "August 14" AND position = "Bottom 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 were the scores by the individual judges for Karanvir Bohra on August 13? ### Context: CREATE TABLE table_18278508_6 (scores_by_each_individual_judge VARCHAR, main_contestant VARCHAR, date_performed VARCHAR) [/INST] ### Response: SELECT scores_by_each_individual_judge FROM table_18278508_6 WHERE main_contestant = "Karanvir Bohra" AND date_performed = "August 13" </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 main contestants for safe position for tina parekh ### Context: CREATE TABLE table_18278508_4 (main_contestant VARCHAR, position VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR) [/INST] ### Response: SELECT COUNT(main_contestant) FROM table_18278508_4 WHERE position = "Safe" AND co_contestant__yaar_vs_pyaar_ = "Tina Parekh" </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 status for karanvir bohra and date performed being july 30 ### Context: CREATE TABLE table_18278508_4 (status VARCHAR, main_contestant VARCHAR, date_performed VARCHAR) [/INST] ### Response: SELECT status FROM table_18278508_4 WHERE main_contestant = "Karanvir Bohra" AND date_performed = "July 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: What is the province where the age of the contestant is 27? ### Context: CREATE TABLE table_18349697_1 (province VARCHAR, _community VARCHAR, age VARCHAR) [/INST] ### Response: SELECT province, _community FROM table_18349697_1 WHERE age = 27 </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 joan tewkesbury is the director what is the number in seasons? ### Context: CREATE TABLE table_18367694_3 (no_in_season VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT no_in_season FROM table_18367694_3 WHERE directed_by = "Joan Tewkesbury" </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 series did John Banas direct? ### Context: CREATE TABLE table_18428024_3 (no_in_series VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT no_in_series FROM table_18428024_3 WHERE directed_by = "John Banas" </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 air date in series 360? ### Context: CREATE TABLE table_18428024_3 (original_air_date VARCHAR, no_in_series VARCHAR) [/INST] ### Response: SELECT COUNT(original_air_date) FROM table_18428024_3 WHERE no_in_series = 360 </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 coach of the team in Leicester? ### Context: CREATE TABLE table_18461635_1 (coach VARCHAR, location VARCHAR) [/INST] ### Response: SELECT coach FROM table_18461635_1 WHERE location = "Leicester" </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 name of the team from Derbyshire county? ### Context: CREATE TABLE table_18461635_1 (team VARCHAR, county VARCHAR) [/INST] ### Response: SELECT team FROM table_18461635_1 WHERE county = "Derbyshire" </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 captain of the Gloucestershire Gladiators? ### Context: CREATE TABLE table_18461635_1 (captain VARCHAR, team VARCHAR) [/INST] ### Response: SELECT captain FROM table_18461635_1 WHERE team = "Gloucestershire Gladiators" </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 captain of the team in Southampton? ### Context: CREATE TABLE table_18461635_1 (captain VARCHAR, location VARCHAR) [/INST] ### Response: SELECT captain FROM table_18461635_1 WHERE location = "Southampton" </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 team in Sussex county located? ### Context: CREATE TABLE table_18461635_1 (location VARCHAR, county VARCHAR) [/INST] ### Response: SELECT location FROM table_18461635_1 WHERE county = "Sussex" </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 captain of the team in Essex county? ### Context: CREATE TABLE table_18461635_1 (captain VARCHAR, county VARCHAR) [/INST] ### Response: SELECT captain FROM table_18461635_1 WHERE county = "Essex" </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: there are in tobago species name helicops angulatus ### Context: CREATE TABLE table_1850282_5 (tobago VARCHAR, species VARCHAR) [/INST] ### Response: SELECT tobago FROM table_1850282_5 WHERE species = "Helicops angulatus" </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: are in tobago species liophis cobellus cobellus? ### Context: CREATE TABLE table_1850282_5 (tobago VARCHAR, species VARCHAR) [/INST] ### Response: SELECT tobago FROM table_1850282_5 WHERE species = "Liophis cobellus cobellus" </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 ending with ### Context: CREATE TABLE table_1852650_1 (ending_with INTEGER) [/INST] ### Response: SELECT MAX(ending_with) FROM table_1852650_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 most ending with for peyalvar ### Context: CREATE TABLE table_1852650_1 (ending_with INTEGER, sung_by VARCHAR) [/INST] ### Response: SELECT MAX(ending_with) FROM table_1852650_1 WHERE sung_by = "Peyalvar" </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 starting from thiruvezhukkurrirukkai ### Context: CREATE TABLE table_1852650_1 (starting_from INTEGER, name_of_the_prabandham VARCHAR) [/INST] ### Response: SELECT MIN(starting_from) FROM table_1852650_1 WHERE name_of_the_prabandham = "Thiruvezhukkurrirukkai" </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 starting from amalanadhi piran ### Context: CREATE TABLE table_1852650_1 (starting_from VARCHAR, name_of_the_prabandham VARCHAR) [/INST] ### Response: SELECT starting_from FROM table_1852650_1 WHERE name_of_the_prabandham = "Amalanadhi piran" </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: Why did the change happened in Massachusetts (2)? ### Context: CREATE TABLE table_18563954_3 (reason_for_change VARCHAR, state__class_ VARCHAR) [/INST] ### Response: SELECT reason_for_change FROM table_18563954_3 WHERE state__class_ = "Massachusetts (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: How many different reasons are there for the change in Connecticut (3)? ### Context: CREATE TABLE table_18563954_3 (reason_for_change VARCHAR, state__class_ VARCHAR) [/INST] ### Response: SELECT COUNT(reason_for_change) FROM table_18563954_3 WHERE state__class_ = "Connecticut (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: When the ability to compromise is 13, what is background? ### Context: CREATE TABLE table_1855342_5 (background INTEGER, ability_to_compromise VARCHAR) [/INST] ### Response: SELECT MAX(background) FROM table_1855342_5 WHERE ability_to_compromise = 13 </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 seq is 41, what is the ability to compromise? ### Context: CREATE TABLE table_1855342_5 (ability_to_compromise INTEGER, seq VARCHAR) [/INST] ### Response: SELECT MAX(ability_to_compromise) FROM table_1855342_5 WHERE seq = "41" </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 ability is 32, what is the leadership ability? ### Context: CREATE TABLE table_1855342_5 (leadership_ability INTEGER, overall_ability VARCHAR) [/INST] ### Response: SELECT MAX(leadership_ability) FROM table_1855342_5 WHERE overall_ability = 32 </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 25 are willing to take risks, what is the experts view? ### Context: CREATE TABLE table_1855342_5 (experts_view INTEGER, willing_to_take_risks VARCHAR) [/INST] ### Response: SELECT MIN(experts_view) FROM table_1855342_5 WHERE willing_to_take_risks = 25 </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 who directed the episode that was viewed by 4.22 million ### Context: CREATE TABLE table_18569389_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR) [/INST] ### Response: SELECT directed_by FROM table_18569389_1 WHERE us_viewers__million_ = "4.22" </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 title for production code 2t6908 ### Context: CREATE TABLE table_18569389_1 (title VARCHAR, production_code VARCHAR) [/INST] ### Response: SELECT title FROM table_18569389_1 WHERE production_code = "2T6908" </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 for number in series that got 3.62 viewers ### Context: CREATE TABLE table_18569389_1 (no_in_series VARCHAR, us_viewers__million_ VARCHAR) [/INST] ### Response: SELECT COUNT(no_in_series) FROM table_18569389_1 WHERE us_viewers__million_ = "3.62" </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 air date that chris long directed ### Context: CREATE TABLE table_18569389_1 (original_air_date VARCHAR, directed_by VARCHAR) [/INST] ### Response: SELECT original_air_date FROM table_18569389_1 WHERE directed_by = "Chris Long" </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 production code for 5.08 ### Context: CREATE TABLE table_18569389_1 (production_code VARCHAR, us_viewers__million_ VARCHAR) [/INST] ### Response: SELECT COUNT(production_code) FROM table_18569389_1 WHERE us_viewers__million_ = "5.08" </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 17.07 is the loa (metres) what is the type of yacht? ### Context: CREATE TABLE table_1858574_2 (yacht VARCHAR, loa__metres_ VARCHAR) [/INST] ### Response: SELECT yacht AS Type FROM table_1858574_2 WHERE loa__metres_ = "17.07" </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 3 is the position what is the sail number? ### Context: CREATE TABLE table_1858574_2 (sail_number VARCHAR, position VARCHAR) [/INST] ### Response: SELECT sail_number FROM table_1858574_2 WHERE position = 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: When aspect computing is the yacht what is the sail number? ### Context: CREATE TABLE table_1858574_2 (sail_number VARCHAR, yacht VARCHAR) [/INST] ### Response: SELECT sail_number FROM table_1858574_2 WHERE yacht = "Aspect Computing" </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 6606 is the sail number what is the type of yacht? ### Context: CREATE TABLE table_1858574_2 (yacht VARCHAR, sail_number VARCHAR) [/INST] ### Response: SELECT yacht AS Type FROM table_1858574_2 WHERE sail_number = "6606" </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 5 is the position what is the state or country? ### Context: CREATE TABLE table_1858574_2 (state_country VARCHAR, position VARCHAR) [/INST] ### Response: SELECT state_country FROM table_1858574_2 WHERE position = 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 least ansi code for 609 population 2010 ### Context: CREATE TABLE table_18600760_1 (ansi_code INTEGER, pop__2010_ VARCHAR) [/INST] ### Response: SELECT MIN(ansi_code) FROM table_18600760_1 WHERE pop__2010_ = 609 </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 ansi code fore ashtabula ### Context: CREATE TABLE table_18600760_1 (ansi_code INTEGER, township VARCHAR) [/INST] ### Response: SELECT MIN(ansi_code) FROM table_18600760_1 WHERE township = "Ashtabula" </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 land for ada ### Context: CREATE TABLE table_18600760_1 (land___sqmi__ VARCHAR, township VARCHAR) [/INST] ### Response: SELECT COUNT(land___sqmi__) FROM table_18600760_1 WHERE township = "Ada" </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 position of the Atl. Colegiales team? ### Context: CREATE TABLE table_18597302_1 (position INTEGER, team VARCHAR) [/INST] ### Response: SELECT MAX(position) FROM table_18597302_1 WHERE team = "Atl. Colegiales" </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 position where the team scored 9 points? ### Context: CREATE TABLE table_18597302_1 (position VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(position) FROM table_18597302_1 WHERE points = 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 player eliminated an opponent within the time frame of 32:32? ### Context: CREATE TABLE table_18598175_2 (eliminated_by VARCHAR, time VARCHAR) [/INST] ### Response: SELECT COUNT(eliminated_by) FROM table_18598175_2 WHERE time = "32:32" </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 styled used to defeat the opponent within the time frame of 32:32? ### Context: CREATE TABLE table_18598175_2 (method_of_elimination VARCHAR, time VARCHAR) [/INST] ### Response: SELECT method_of_elimination FROM table_18598175_2 WHERE time = "32:32" </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 won the match when the winner used the Pedigree attack? ### Context: CREATE TABLE table_18598175_2 (eliminated_by VARCHAR, method_of_elimination VARCHAR) [/INST] ### Response: SELECT eliminated_by FROM table_18598175_2 WHERE method_of_elimination = "Pedigree" </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 elimination number of the fighter who fought within 27:27? ### Context: CREATE TABLE table_18598175_2 (elimination_number INTEGER, time VARCHAR) [/INST] ### Response: SELECT MIN(elimination_number) FROM table_18598175_2 WHERE time = "27:27" </s>