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's the Bible Gothic for the word hand? ### Context: CREATE TABLE table_name_7 (bible_gothic VARCHAR, english VARCHAR) [/INST] ### Response: SELECT bible_gothic FROM table_name_7 WHERE english = "hand" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Icelandic word for rain? ### Context: CREATE TABLE table_name_12 (icelandic VARCHAR, english VARCHAR) [/INST] ### Response: SELECT icelandic FROM table_name_12 WHERE english = "rain" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Icelandic word for the German word for hand? ### Context: CREATE TABLE table_name_85 (icelandic VARCHAR, german VARCHAR) [/INST] ### Response: SELECT icelandic FROM table_name_85 WHERE german = "hand" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score for Nick Faldo? ### Context: CREATE TABLE table_name_76 (score INTEGER, player VARCHAR) [/INST] ### Response: SELECT AVG(score) FROM table_name_76 WHERE player = "nick faldo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score when the to par was –5, for Peter Jacobsen? ### Context: CREATE TABLE table_name_9 (score INTEGER, to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT SUM(score) FROM table_name_9 WHERE to_par = "–5" AND player = "peter jacobsen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Run 4 has a Country of united states, and an Athlete of bree schaaf emily azevedo, and a Run 3 smaller than 58.04? ### Context: CREATE TABLE table_name_78 (run_4 INTEGER, run_3 VARCHAR, country VARCHAR, athlete VARCHAR) [/INST] ### Response: SELECT SUM(run_4) FROM table_name_78 WHERE country = "united states" AND athlete = "bree schaaf emily azevedo" AND run_3 < 58.04 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Run 2 has a Run 4 of 57.68, and a Run 3 smaller than 57.9? ### Context: CREATE TABLE table_name_53 (run_2 VARCHAR, run_4 VARCHAR, run_3 VARCHAR) [/INST] ### Response: SELECT COUNT(run_2) FROM table_name_53 WHERE run_4 = 57.68 AND run_3 < 57.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: Which Run 4 has a Run 1 of 57.37, and a Run 3 smaller than 57.45? ### Context: CREATE TABLE table_name_32 (run_4 INTEGER, run_1 VARCHAR, run_3 VARCHAR) [/INST] ### Response: SELECT SUM(run_4) FROM table_name_32 WHERE run_1 = 57.37 AND run_3 < 57.45 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Athlete has a Run 1 larger than 57.37, and a Run 4 smaller than 59.05, and a Run 3 of 58.08? ### Context: CREATE TABLE table_name_15 (athlete VARCHAR, run_3 VARCHAR, run_1 VARCHAR, run_4 VARCHAR) [/INST] ### Response: SELECT athlete FROM table_name_15 WHERE run_1 > 57.37 AND run_4 < 59.05 AND run_3 = 58.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: What is the total for the first exercise and has 18 as the second exercise? ### Context: CREATE TABLE table_name_2 (first_exercise INTEGER, second_exercise VARCHAR) [/INST] ### Response: SELECT SUM(first_exercise) FROM table_name_2 WHERE second_exercise = 18 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 to par of the player with a 68-67-75=210? ### Context: CREATE TABLE table_name_99 (to_par VARCHAR, score VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_99 WHERE score = 68 - 67 - 75 = 210 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player with a 68-67-75=210 score? ### Context: CREATE TABLE table_name_29 (player VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_29 WHERE score = 68 - 67 - 75 = 210 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player with a 70-68-74=212 score? ### Context: CREATE TABLE table_name_73 (player VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_73 WHERE score = 70 - 68 - 74 = 212 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest Byes by Anakie who has an Against smaller than 2275? ### Context: CREATE TABLE table_name_14 (byes INTEGER, geelong_dfl VARCHAR, against VARCHAR) [/INST] ### Response: SELECT MAX(byes) FROM table_name_14 WHERE geelong_dfl = "anakie" AND against < 2275 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For entries with a lost of 5, what is the sum of the draw entry? ### Context: CREATE TABLE table_name_23 (draw INTEGER, lost VARCHAR) [/INST] ### Response: SELECT SUM(draw) FROM table_name_23 WHERE lost = 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: What is the lowest place with more than 26 goals scored, 18 goals conceded, and a draw entry of 6? ### Context: CREATE TABLE table_name_10 (place INTEGER, goals_scored VARCHAR, draw VARCHAR, goals_conceded VARCHAR) [/INST] ### Response: SELECT MIN(place) FROM table_name_10 WHERE draw = 6 AND goals_conceded = 18 AND goals_scored > 26 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place that has a draw entry smaller than 6 and goal score of 28? ### Context: CREATE TABLE table_name_99 (place INTEGER, goals_scored VARCHAR, draw VARCHAR) [/INST] ### Response: SELECT MAX(place) FROM table_name_99 WHERE goals_scored = 28 AND draw < 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest number of goals scored for the entry with goals conceded larger than 30, lost larger than 3, and fewer than 6 draws? ### Context: CREATE TABLE table_name_94 (goals_scored INTEGER, goals_conceded VARCHAR, draw VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT MIN(goals_scored) FROM table_name_94 WHERE draw < 6 AND lost > 3 AND goals_conceded > 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 was the shooter when the rank points was olympic bronze medalist? ### Context: CREATE TABLE table_name_36 (shooter VARCHAR, rank_points VARCHAR) [/INST] ### Response: SELECT shooter FROM table_name_36 WHERE rank_points = "olympic bronze medalist" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank points when the score was 7 and the total was 15? ### Context: CREATE TABLE table_name_59 (rank_points VARCHAR, total VARCHAR, score_points VARCHAR) [/INST] ### Response: SELECT rank_points FROM table_name_59 WHERE total = "15" AND score_points = "7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What were the rank points when the total was 11? ### Context: CREATE TABLE table_name_72 (rank_points VARCHAR, total VARCHAR) [/INST] ### Response: SELECT rank_points FROM table_name_72 WHERE total = "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 smallest number of silver medals for a nation with fewer than 1 bronze? ### Context: CREATE TABLE table_name_51 (silver INTEGER, bronze INTEGER) [/INST] ### Response: SELECT MIN(silver) FROM table_name_51 WHERE bronze < 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 gold medals for the nation ranked 6? ### Context: CREATE TABLE table_name_19 (gold VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT gold FROM table_name_19 WHERE rank = "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: Name the District which has a Reserved for ( SC / ST /None) of sc? ### Context: CREATE TABLE table_name_94 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR) [/INST] ### Response: SELECT district FROM table_name_94 WHERE reserved_for___sc___st__none_ = "sc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that has a Reserved for ( SC / ST /None) of none and a Constituency number of 242? ### Context: CREATE TABLE table_name_19 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) [/INST] ### Response: SELECT district FROM table_name_19 WHERE reserved_for___sc___st__none_ = "none" AND constituency_number = "242" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 electorates (2009 which has a Reserved for ( SC / ST /None) of none, and a Name of jahanabad? ### Context: CREATE TABLE table_name_40 (number_of_electorates__2009_ INTEGER, reserved_for___sc___st__none_ VARCHAR, name VARCHAR) [/INST] ### Response: SELECT MIN(number_of_electorates__2009_) FROM table_name_40 WHERE reserved_for___sc___st__none_ = "none" AND name = "jahanabad" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Count the Number of electorates (2009) that has a District of fatehpur and jahanabad? ### Context: CREATE TABLE table_name_11 (number_of_electorates__2009_ INTEGER, district VARCHAR, name VARCHAR) [/INST] ### Response: SELECT SUM(number_of_electorates__2009_) FROM table_name_11 WHERE district = "fatehpur" AND name = "jahanabad" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Score has a Date of 11 september 2010? ### Context: CREATE TABLE table_name_25 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_25 WHERE date = "11 september 2010" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Date has an Outcome of runner up, and a Partner of tyra calderwood? ### Context: CREATE TABLE table_name_30 (date VARCHAR, outcome VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT date FROM table_name_30 WHERE outcome = "runner up" AND partner = "tyra calderwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Score has a Tournament of tanjung selor, indonesia? ### Context: CREATE TABLE table_name_76 (score VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT score FROM table_name_76 WHERE tournament = "tanjung selor, indonesia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Date has Opponents of sun shengnan han xinyun? ### Context: CREATE TABLE table_name_2 (date VARCHAR, opponents VARCHAR) [/INST] ### Response: SELECT date FROM table_name_2 WHERE opponents = "sun shengnan han xinyun" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position of club lietava-2 jonava, which has more than 12 points and more than 7 wins? ### Context: CREATE TABLE table_name_75 (position INTEGER, wins VARCHAR, points VARCHAR, club VARCHAR) [/INST] ### Response: SELECT MAX(position) FROM table_name_75 WHERE points > 12 AND club = "lietava-2 jonava" AND wins > 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of goals of the club with 4 wins and less than 0 draws? ### Context: CREATE TABLE table_name_45 (goals_conceded VARCHAR, wins VARCHAR, draws VARCHAR) [/INST] ### Response: SELECT COUNT(goals_conceded) FROM table_name_45 WHERE wins = 4 AND draws < 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 total number of games played of the club with less than 40 goals scored, 9 losses, 39 goals conceded, and more than 2 draws? ### Context: CREATE TABLE table_name_33 (games_played VARCHAR, draws VARCHAR, goals_conceded VARCHAR, goals_scored VARCHAR, loses VARCHAR) [/INST] ### Response: SELECT COUNT(games_played) FROM table_name_33 WHERE goals_scored < 40 AND loses = 9 AND goals_conceded = 39 AND draws > 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of goals scored of the club with more than 3 draws, more than 1 loses, and less than 26 points? ### Context: CREATE TABLE table_name_15 (goals_scored VARCHAR, points VARCHAR, draws VARCHAR, loses VARCHAR) [/INST] ### Response: SELECT COUNT(goals_scored) FROM table_name_15 WHERE draws > 3 AND loses > 1 AND points < 26 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sum of the position with less than 0 draws? ### Context: CREATE TABLE table_name_39 (position INTEGER, draws INTEGER) [/INST] ### Response: SELECT SUM(position) FROM table_name_39 WHERE draws < 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 Home Team, when Tie No is "7"? ### Context: CREATE TABLE table_name_5 (home_team VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_5 WHERE tie_no = "7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Home Team, when Away Team is "Brentford"? ### Context: CREATE TABLE table_name_67 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_67 WHERE away_team = "brentford" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home Team, when Date is "6 December 1986", and when Tie No is "4"? ### Context: CREATE TABLE table_name_49 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_49 WHERE date = "6 december 1986" AND tie_no = "4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Date, when Home Team is "Chester City"? ### Context: CREATE TABLE table_name_18 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_18 WHERE home_team = "chester city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tie no, when Home Team is "Gillingham"? ### Context: CREATE TABLE table_name_96 (tie_no VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_96 WHERE home_team = "gillingham" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: From what Country is T2 Finish Player Gary Player? ### Context: CREATE TABLE table_name_60 (country VARCHAR, finish VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_60 WHERE finish = "t2" AND player = "gary player" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the player with a Finish of T39? ### Context: CREATE TABLE table_name_96 (total VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT total FROM table_name_96 WHERE finish = "t39" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Finish of the Player with a Total of 273? ### Context: CREATE TABLE table_name_20 (finish VARCHAR, total VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_20 WHERE total = 273 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 To par of the player with a Finish of T20? ### Context: CREATE TABLE table_name_67 (to_par VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_67 WHERE finish = "t20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 byes are high when losses are larger than 7, wins smaller than 6, and draws are smaller than 0? ### Context: CREATE TABLE table_name_88 (byes INTEGER, draws VARCHAR, losses VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MAX(byes) FROM table_name_88 WHERE losses > 7 AND wins < 6 AND draws < 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 sum of losses when draws are larger than 0? ### Context: CREATE TABLE table_name_11 (losses VARCHAR, draws INTEGER) [/INST] ### Response: SELECT COUNT(losses) FROM table_name_11 WHERE draws > 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 draws are the lowest when wins are larger than 18? ### Context: CREATE TABLE table_name_44 (draws INTEGER, wins INTEGER) [/INST] ### Response: SELECT MIN(draws) FROM table_name_44 WHERE wins > 18 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sum of byes when wins are 8, and losses are larger than 10? ### Context: CREATE TABLE table_name_96 (byes VARCHAR, wins VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT COUNT(byes) FROM table_name_96 WHERE wins = 8 AND losses > 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: Which against has the lowest when byes are larger than 0? ### Context: CREATE TABLE table_name_99 (against INTEGER, byes INTEGER) [/INST] ### Response: SELECT MIN(against) FROM table_name_99 WHERE byes > 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 are the highest losses when byes are larger than 0? ### Context: CREATE TABLE table_name_95 (losses INTEGER, byes INTEGER) [/INST] ### Response: SELECT MAX(losses) FROM table_name_95 WHERE byes > 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: Which player was previously on the New York Knicks? ### Context: CREATE TABLE table_name_24 (player VARCHAR, previous_team VARCHAR) [/INST] ### Response: SELECT player FROM table_name_24 WHERE previous_team = "new york knicks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nationality of the player with 2 years of NBA experience for the previously played for the Los Angeles Lakers? ### Context: CREATE TABLE table_name_23 (nationality VARCHAR, previous_team VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_23 WHERE years_of_nba_experience_[a_] = 2 AND previous_team = "los angeles lakers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in a week later than 7 against the San Diego Chargers? ### Context: CREATE TABLE table_name_25 (record VARCHAR, week VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT record FROM table_name_25 WHERE week > 7 AND opponent = "san diego chargers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week 1? ### Context: CREATE TABLE table_name_2 (result VARCHAR, week VARCHAR) [/INST] ### Response: SELECT result FROM table_name_2 WHERE week = 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 lowest attendance on October 3, 1965? ### Context: CREATE TABLE table_name_17 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_17 WHERE date = "october 3, 1965" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manuals with a kind of r, and an opus of 144? ### Context: CREATE TABLE table_name_89 (manuals VARCHAR, kind VARCHAR, opus VARCHAR) [/INST] ### Response: SELECT manuals FROM table_name_89 WHERE kind = "r" AND opus = "144" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manuals with an opus of 147? ### Context: CREATE TABLE table_name_2 (manuals VARCHAR, opus VARCHAR) [/INST] ### Response: SELECT manuals FROM table_name_2 WHERE opus = "147" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 kind is in the year 1978 and a manual of ii/p? ### Context: CREATE TABLE table_name_79 (kind VARCHAR, year VARCHAR, manuals VARCHAR) [/INST] ### Response: SELECT kind FROM table_name_79 WHERE year = "1978" AND manuals = "ii/p" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manuals have the opus of 135? ### Context: CREATE TABLE table_name_31 (manuals VARCHAR, opus VARCHAR) [/INST] ### Response: SELECT manuals FROM table_name_31 WHERE opus = "135" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 it the town of Eugene? ### Context: CREATE TABLE table_name_30 (year VARCHAR, town VARCHAR) [/INST] ### Response: SELECT year FROM table_name_30 WHERE town = "eugene" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 town has 15 stops and a NB kind? ### Context: CREATE TABLE table_name_82 (town VARCHAR, stops VARCHAR, kind VARCHAR) [/INST] ### Response: SELECT town FROM table_name_82 WHERE stops = "15" AND kind = "nb" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 district is anna university - tiruchirappalli campus, whose website is http://www.annauniv.edu, located? ### Context: CREATE TABLE table_name_3 (district VARCHAR, weblink VARCHAR, college_or_campus_name VARCHAR) [/INST] ### Response: SELECT district FROM table_name_3 WHERE weblink = "http://www.annauniv.edu" AND college_or_campus_name = "anna university - tiruchirappalli campus" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 anna university - panruti campus established? ### Context: CREATE TABLE table_name_14 (estd INTEGER, college_or_campus_name VARCHAR) [/INST] ### Response: SELECT SUM(estd) FROM table_name_14 WHERE college_or_campus_name = "anna university - panruti campus" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 district was established in 1942? ### Context: CREATE TABLE table_name_82 (district VARCHAR, estd VARCHAR) [/INST] ### Response: SELECT district FROM table_name_82 WHERE estd = 1942 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 affiliation for the Cuddalore District? ### Context: CREATE TABLE table_name_18 (affiliation VARCHAR, district VARCHAR) [/INST] ### Response: SELECT affiliation FROM table_name_18 WHERE district = "cuddalore 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: Which College or campus has a website of http://www.aucev.edu.in/? ### Context: CREATE TABLE table_name_79 (college_or_campus_name VARCHAR, weblink VARCHAR) [/INST] ### Response: SELECT college_or_campus_name FROM table_name_79 WHERE weblink = "http://www.aucev.edu.in/" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 available rock single/pack by REO Speedwagon? ### Context: CREATE TABLE table_name_30 (single___pack_name VARCHAR, genre VARCHAR, artist VARCHAR) [/INST] ### Response: SELECT single___pack_name FROM table_name_30 WHERE genre = "rock" AND artist = "reo speedwagon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gold with 1 silver, and more than 1 altogether? ### Context: CREATE TABLE table_name_40 (gold INTEGER, silver VARCHAR, total VARCHAR) [/INST] ### Response: SELECT MAX(gold) FROM table_name_40 WHERE silver = 1 AND total > 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 latest year when the best finish is 2 and the scoring average is less than 71.24? ### Context: CREATE TABLE table_name_51 (year INTEGER, best_finish VARCHAR, scoring_average VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_51 WHERE best_finish = "2" AND scoring_average < 71.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 was the average scoring the the top 10s is 4? ### Context: CREATE TABLE table_name_51 (scoring_average INTEGER, top_10s VARCHAR) [/INST] ### Response: SELECT AVG(scoring_average) FROM table_name_51 WHERE top_10s = 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the country of the player with a score less than 68? ### Context: CREATE TABLE table_name_40 (country VARCHAR, score INTEGER) [/INST] ### Response: SELECT country FROM table_name_40 WHERE score < 68 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is Ding and has a royal house of Ji? ### Context: CREATE TABLE table_name_87 (state VARCHAR, royal_house VARCHAR, name VARCHAR) [/INST] ### Response: SELECT state FROM table_name_87 WHERE royal_house = "ji" AND name = "ding" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name has a state of Yan? ### Context: CREATE TABLE table_name_44 (name VARCHAR, state VARCHAR) [/INST] ### Response: SELECT name FROM table_name_44 WHERE state = "yan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 state has a royal house of Ying? ### Context: CREATE TABLE table_name_66 (state VARCHAR, royal_house VARCHAR) [/INST] ### Response: SELECT state FROM table_name_66 WHERE royal_house = "ying" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 state has a royal house of Jiang? ### Context: CREATE TABLE table_name_5 (state VARCHAR, royal_house VARCHAR) [/INST] ### Response: SELECT state FROM table_name_5 WHERE royal_house = "jiang" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tall is the person born on 1976-12-27? ### Context: CREATE TABLE table_name_2 (height VARCHAR, date_of_birth VARCHAR) [/INST] ### Response: SELECT height FROM table_name_2 WHERE date_of_birth = "1976-12-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: What is the birth date of a member of the Club of bvsc vízilabda? ### Context: CREATE TABLE table_name_39 (date_of_birth VARCHAR, club VARCHAR) [/INST] ### Response: SELECT date_of_birth FROM table_name_39 WHERE club = "bvsc vízilabda" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has the height of m (ft 9in) and was born on 1980-03-05? ### Context: CREATE TABLE table_name_57 (name VARCHAR, height VARCHAR, date_of_birth VARCHAR) [/INST] ### Response: SELECT name FROM table_name_57 WHERE height = "m (ft 9in)" AND date_of_birth = "1980-03-05" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Height of head coach: tamás faragó? ### Context: CREATE TABLE table_name_65 (name VARCHAR, height VARCHAR) [/INST] ### Response: SELECT name FROM table_name_65 WHERE height = "head coach: tamás faragó" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pick, when Nationality is "France", and when Draft is less than 1979? ### Context: CREATE TABLE table_name_27 (pick INTEGER, nationality VARCHAR, draft VARCHAR) [/INST] ### Response: SELECT MAX(pick) FROM table_name_27 WHERE nationality = "france" AND draft < 1979 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sum of Draft, when Round is greater than 9? ### Context: CREATE TABLE table_name_56 (draft INTEGER, round INTEGER) [/INST] ### Response: SELECT SUM(draft) FROM table_name_56 WHERE round > 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 is the highest Round, when Draft is greater than 1980, and when Player is "Shane Doan Category:Articles with hCards"? ### Context: CREATE TABLE table_name_46 (round INTEGER, draft VARCHAR, player VARCHAR) [/INST] ### Response: SELECT MAX(round) FROM table_name_46 WHERE draft > 1980 AND player = "shane doan category:articles with hcards" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lowest Draft, when Nationality is "Canada", when Player is "Shane Doan Category:Articles with hCards", and when Round is less than 1? ### Context: CREATE TABLE table_name_7 (draft INTEGER, round VARCHAR, nationality VARCHAR, player VARCHAR) [/INST] ### Response: SELECT MIN(draft) FROM table_name_7 WHERE nationality = "canada" AND player = "shane doan category:articles with hcards" AND round < 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 lowest Draft, when Player is "Dave Christian Category:Articles with hCards"? ### Context: CREATE TABLE table_name_74 (draft INTEGER, player VARCHAR) [/INST] ### Response: SELECT MIN(draft) FROM table_name_74 WHERE player = "dave christian category:articles with hcards" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 party has the district Georgia 7? ### Context: CREATE TABLE table_name_46 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_name_46 WHERE district = "georgia 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: Which district has an incumbent of Sanford Bishop? ### Context: CREATE TABLE table_name_92 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_name_92 WHERE incumbent = "sanford bishop" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Score of the Hereford United Away game? ### Context: CREATE TABLE table_name_88 (score VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_88 WHERE away_team = "hereford united" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Home team of the Lincoln City Away game? ### Context: CREATE TABLE table_name_5 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_5 WHERE away_team = "lincoln city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Away team at Bristol Rovers' Home game? ### Context: CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_33 WHERE home_team = "bristol rovers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Away team at Mansfield Town's Home game? ### Context: CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_53 WHERE home_team = "mansfield town" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tie no at the Hull City Home game with a Score of 1–1? ### Context: CREATE TABLE table_name_80 (tie_no VARCHAR, score VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_80 WHERE score = "1–1" AND home_team = "hull city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Byes have an Against larger than 1235, and Losses smaller than 10, and Wins larger than 7? ### Context: CREATE TABLE table_name_87 (byes INTEGER, wins VARCHAR, against VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT MAX(byes) FROM table_name_87 WHERE against > 1235 AND losses < 10 AND wins > 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: Which Losses have an Against smaller than 1464, and Draws smaller than 1, and Wins larger than 7? ### Context: CREATE TABLE table_name_58 (losses INTEGER, wins VARCHAR, against VARCHAR, draws VARCHAR) [/INST] ### Response: SELECT MIN(losses) FROM table_name_58 WHERE against < 1464 AND draws < 1 AND wins > 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: Which Draws have a Lexton Plains of skipton, and an Against larger than 1212? ### Context: CREATE TABLE table_name_85 (draws INTEGER, lexton_plains VARCHAR, against VARCHAR) [/INST] ### Response: SELECT MAX(draws) FROM table_name_85 WHERE lexton_plains = "skipton" AND against > 1212 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 against has 14 losses? ### Context: CREATE TABLE table_name_24 (against VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT against FROM table_name_24 WHERE losses = 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 is S.K. Ho's Country? ### Context: CREATE TABLE table_name_58 (country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_58 WHERE player = "s.k. ho" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Player has a Place of 2? ### Context: CREATE TABLE table_name_78 (player VARCHAR, place VARCHAR) [/INST] ### Response: SELECT player FROM table_name_78 WHERE place = "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: From what Country is Gary Evans? ### Context: CREATE TABLE table_name_81 (country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_81 WHERE player = "gary evans" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Country of the Player with a To par of +1 and a Score of 74-70-70=214? ### Context: CREATE TABLE table_name_12 (country VARCHAR, to_par VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_12 WHERE to_par = "+1" AND score = 74 - 70 - 70 = 214 </s>