text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which country had a tower destroyed in 1899? ### Context: CREATE TABLE table_name_55 (country VARCHAR, year VARCHAR) [/INST] ### Response: SELECT country FROM table_name_55 WHERE year = "1899" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the opponent at the game when the record was 28–45? ### Context: CREATE TABLE table_name_66 (opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_66 WHERE record = "28–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 entrant has 4 points and BRM p25 for the Chassis? ### Context: CREATE TABLE table_name_33 (entrant VARCHAR, pts VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_33 WHERE pts = "4" AND chassis = "brm p25" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entrant when the year is less than 1953? ### Context: CREATE TABLE table_name_97 (entrant VARCHAR, year INTEGER) [/INST] ### Response: SELECT entrant FROM table_name_97 WHERE year < 1953 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points were scored when the Chassis is BRM p25? ### Context: CREATE TABLE table_name_57 (pts VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT pts FROM table_name_57 WHERE chassis = "brm p25" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episode that aired october 8, 1988 ### Context: CREATE TABLE table_name_81 (episode_title VARCHAR, original_airdate VARCHAR) [/INST] ### Response: SELECT episode_title FROM table_name_81 WHERE original_airdate = "october 8, 1988" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the original airdate for mr. buckston ### Context: CREATE TABLE table_name_23 (original_airdate VARCHAR, identity_ies_ VARCHAR) [/INST] ### Response: SELECT original_airdate FROM table_name_23 WHERE identity_ies_ = "mr. buckston" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player taken in round 23? ### Context: CREATE TABLE table_name_2 (name VARCHAR, round VARCHAR) [/INST] ### Response: SELECT name FROM table_name_2 WHERE round = 23 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What engine was used in 1999? ### Context: CREATE TABLE table_name_76 (engine VARCHAR, year VARCHAR) [/INST] ### Response: SELECT engine FROM table_name_76 WHERE year = "1999" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank did the chassis reynard 94i have in 1996? ### Context: CREATE TABLE table_name_66 (rank VARCHAR, chassis VARCHAR, year VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_66 WHERE chassis = "reynard 94i" AND year = "1996" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank did the dallara chassis finish in 2000? ### Context: CREATE TABLE table_name_93 (rank VARCHAR, year VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_93 WHERE year = "2000" AND chassis = "dallara" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engine finished 7th with the reynard 95i chassis? ### Context: CREATE TABLE table_name_51 (engine VARCHAR, rank VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT engine FROM table_name_51 WHERE rank = "7th" AND chassis = "reynard 95i" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest Year has Wins 15 and Losses less than 5? ### Context: CREATE TABLE table_name_78 (year INTEGER, wins VARCHAR, loses VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_78 WHERE wins = 15 AND loses < 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 average Year has Losses 4, and Wins less than 18, and Draws greater than 1? ### Context: CREATE TABLE table_name_24 (year INTEGER, draws VARCHAR, loses VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_24 WHERE loses = 4 AND wins < 18 AND draws > 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 average Wins has Losses 2, and Draws less than 0? ### Context: CREATE TABLE table_name_92 (wins INTEGER, loses VARCHAR, draws VARCHAR) [/INST] ### Response: SELECT AVG(wins) FROM table_name_92 WHERE loses = 2 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 average Loses has Draws less than 0? ### Context: CREATE TABLE table_name_40 (loses INTEGER, draws INTEGER) [/INST] ### Response: SELECT AVG(loses) FROM table_name_40 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 sum of Losses has Year greater than 1972, and Competition of nswrfl, and Draws 0, and Wins 16? ### Context: CREATE TABLE table_name_18 (loses INTEGER, wins VARCHAR, draws VARCHAR, year VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT SUM(loses) FROM table_name_18 WHERE year > 1972 AND competition = "nswrfl" AND draws = 0 AND wins = 16 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 height of the player who currently plays for Alta Gestión Fuenlabrada? ### Context: CREATE TABLE table_name_59 (height VARCHAR, current_club VARCHAR) [/INST] ### Response: SELECT height FROM table_name_59 WHERE current_club = "alta gestión fuenlabrada" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position does Mario Kasun play? ### Context: CREATE TABLE table_name_94 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_94 WHERE player = "mario kasun" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 largest number Lost to david nalbandian with a Win Rate of 20%? ### Context: CREATE TABLE table_name_91 (lost INTEGER, win__percentage VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT MAX(lost) FROM table_name_91 WHERE win__percentage = "20%" AND opponent = "david nalbandian" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Matches with less than 97 losses and a Win rate of 28.68%? ### Context: CREATE TABLE table_name_59 (matches INTEGER, win__percentage VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT MIN(matches) FROM table_name_59 WHERE win__percentage = "28.68%" AND lost < 97 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of Lost for the Highest Ranking of – –? ### Context: CREATE TABLE table_name_61 (lost VARCHAR, highest_ranking VARCHAR) [/INST] ### Response: SELECT COUNT(lost) FROM table_name_61 WHERE highest_ranking = "– –" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lane did inna nikitina have? ### Context: CREATE TABLE table_name_74 (lane INTEGER, name VARCHAR) [/INST] ### Response: SELECT MAX(lane) FROM table_name_74 WHERE name = "inna nikitina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that saw 4 heats and a lane higher than 7? ### Context: CREATE TABLE table_name_68 (name VARCHAR, heat VARCHAR, lane VARCHAR) [/INST] ### Response: SELECT name FROM table_name_68 WHERE heat = 4 AND lane > 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 highest NBR number that corresponds to the J class and the road number of 1211? ### Context: CREATE TABLE table_name_29 (nbr_number INTEGER, class VARCHAR, road_number VARCHAR) [/INST] ### Response: SELECT MAX(nbr_number) FROM table_name_29 WHERE class = "j" AND road_number = 1211 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 road numbers are before 1922? ### Context: CREATE TABLE table_name_18 (road_number VARCHAR, year INTEGER) [/INST] ### Response: SELECT COUNT(road_number) FROM table_name_18 WHERE year < 1922 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 original operator is in the 25nc class? ### Context: CREATE TABLE table_name_65 (original_operator VARCHAR, class VARCHAR) [/INST] ### Response: SELECT original_operator FROM table_name_65 WHERE class = "25nc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 class starts after 1939 and has a road number smaller than 3508? ### Context: CREATE TABLE table_name_9 (class VARCHAR, year VARCHAR, road_number VARCHAR) [/INST] ### Response: SELECT class FROM table_name_9 WHERE year > 1939 AND road_number < 3508 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 LB&SCR number that has SR number of 8597–8600 ### Context: CREATE TABLE table_name_7 (lb VARCHAR, scr_no VARCHAR, sr_no VARCHAR) [/INST] ### Response: SELECT lb & scr_no FROM table_name_7 WHERE sr_no = "8597–8600" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time of songs that have the writer Aaron Schroeder and Wally Gold? ### Context: CREATE TABLE table_name_55 (time VARCHAR, writer_s_ VARCHAR) [/INST] ### Response: SELECT time FROM table_name_55 WHERE writer_s_ = "aaron schroeder and wally gold" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On songs that have a release date of 6/17/61, a track larger than 20, and a writer of Woody Harris, what is the chart peak? ### Context: CREATE TABLE table_name_46 (chart_peak VARCHAR, writer_s_ VARCHAR, release_date VARCHAR, track VARCHAR) [/INST] ### Response: SELECT chart_peak FROM table_name_46 WHERE release_date = "6/17/61" AND track > 20 AND writer_s_ = "woody harris" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 catalogue is the song It's Now or Never? ### Context: CREATE TABLE table_name_86 (catalogue VARCHAR, song_title VARCHAR) [/INST] ### Response: SELECT catalogue FROM table_name_86 WHERE song_title = "it's now or never" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On songs with track numbers smaller than number 17 and catalogues of LSP 2231, who are the writer(s)? ### Context: CREATE TABLE table_name_27 (writer_s_ VARCHAR, catalogue VARCHAR, track VARCHAR) [/INST] ### Response: SELECT writer_s_ FROM table_name_27 WHERE catalogue = "lsp 2231" AND track < 17 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year did he start at 13? ### Context: CREATE TABLE table_name_6 (year VARCHAR, start VARCHAR) [/INST] ### Response: SELECT year FROM table_name_6 WHERE start = "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: What was the finish place with a qual of 123.660? ### Context: CREATE TABLE table_name_26 (finish VARCHAR, qual VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_26 WHERE qual = "123.660" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the rank with the qual of 115.095? ### Context: CREATE TABLE table_name_86 (rank VARCHAR, qual VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_86 WHERE qual = "115.095" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the runner-up when the margin was 1 stroke? ### Context: CREATE TABLE table_name_1 (runner_s__up VARCHAR, margin VARCHAR) [/INST] ### Response: SELECT runner_s__up FROM table_name_1 WHERE margin = "1 stroke" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the year 2004? ### Context: CREATE TABLE table_name_72 (score VARCHAR, year VARCHAR) [/INST] ### Response: SELECT score FROM table_name_72 WHERE year = "2004" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the runner-up when the year was 2008? ### Context: CREATE TABLE table_name_58 (runner_s__up VARCHAR, year VARCHAR) [/INST] ### Response: SELECT runner_s__up FROM table_name_58 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: In what year was the score 204 (-6)? ### Context: CREATE TABLE table_name_3 (year VARCHAR, score VARCHAR) [/INST] ### Response: SELECT year FROM table_name_3 WHERE score = "204 (-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 was the country when the margin was 2 strokes, and when the score was 276 (-4)? ### Context: CREATE TABLE table_name_45 (country VARCHAR, margin VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_45 WHERE margin = "2 strokes" AND score = "276 (-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 Overall Record for the School in Milford? ### Context: CREATE TABLE table_name_28 (overall_record VARCHAR, school VARCHAR) [/INST] ### Response: SELECT overall_record FROM table_name_28 WHERE school = "milford" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 top first place prize in 1997? ### Context: CREATE TABLE table_name_49 (first_prize___ INTEGER, year VARCHAR) [/INST] ### Response: SELECT MAX(first_prize___) AS $__ FROM table_name_49 WHERE year = 1997 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 purse in the years after 1996 with a score of 272 (-16) when frank nobilo won? ### Context: CREATE TABLE table_name_27 (purse___ INTEGER, year VARCHAR, score VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT SUM(purse___) AS $__ FROM table_name_27 WHERE score = "272 (-16)" AND winner = "frank nobilo" AND year > 1996 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average Rank for a lane smaller than 3 with a nationality of Australia? ### Context: CREATE TABLE table_name_55 (rank INTEGER, lane VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_55 WHERE lane < 3 AND nationality = "australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the number of lane with a rank more than 2 for Louise ørnstedt? ### Context: CREATE TABLE table_name_86 (lane VARCHAR, rank VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(lane) FROM table_name_86 WHERE rank > 2 AND name = "louise ørnstedt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 shows for nationality when there is a rank larger than 6, and a Time of 2:14.95? ### Context: CREATE TABLE table_name_52 (nationality VARCHAR, rank VARCHAR, time VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_52 WHERE rank > 6 AND time = "2:14.95" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Total Region number of hte one that has Eidsvold at 970 and Biggenden larger than 1,570? ### Context: CREATE TABLE table_name_40 (total_region VARCHAR, eidsvold VARCHAR, biggenden VARCHAR) [/INST] ### Response: SELECT COUNT(total_region) FROM table_name_40 WHERE eidsvold = 970 AND biggenden > 1 OFFSET 570 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average year with alfredo salazar fina salazar in mixed doubles? ### Context: CREATE TABLE table_name_41 (year INTEGER, mixed_doubles VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_41 WHERE mixed_doubles = "alfredo salazar fina salazar" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue had an extra of Team Competition and a result of 1st? ### Context: CREATE TABLE table_name_48 (venue VARCHAR, extra VARCHAR, result VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_48 WHERE extra = "team competition" AND result = "1st" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue led to a result of 23rd? ### Context: CREATE TABLE table_name_96 (venue VARCHAR, result VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_96 WHERE result = "23rd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue had an extra of Junior Race? ### Context: CREATE TABLE table_name_68 (venue VARCHAR, extra VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_68 WHERE extra = "junior race" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue led to a result of 13th and had an extra of Long Race? ### Context: CREATE TABLE table_name_51 (venue VARCHAR, extra VARCHAR, result VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_51 WHERE extra = "long race" AND result = "13th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 percentage of Terry McAuliffe that has a Date Administered on May 31 – june 2 ### Context: CREATE TABLE table_name_86 (terry_mcauliffe VARCHAR, dates_administered VARCHAR) [/INST] ### Response: SELECT terry_mcauliffe FROM table_name_86 WHERE dates_administered = "may 31 – june 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: Which Source has Terry McAuliffe of 36% ### Context: CREATE TABLE table_name_80 (source VARCHAR, terry_mcauliffe VARCHAR) [/INST] ### Response: SELECT source FROM table_name_80 WHERE terry_mcauliffe = "36%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Terry McAuliffe is it that has a Dates Administered on June 6–7? ### Context: CREATE TABLE table_name_8 (terry_mcauliffe VARCHAR, dates_administered VARCHAR) [/INST] ### Response: SELECT terry_mcauliffe FROM table_name_8 WHERE dates_administered = "june 6–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 Source has a Brian Moran of 19%? ### Context: CREATE TABLE table_name_64 (source VARCHAR, brian_moran VARCHAR) [/INST] ### Response: SELECT source FROM table_name_64 WHERE brian_moran = "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: What team played on the road against the Buffalo Bills at home ? ### Context: CREATE TABLE table_name_21 (visiting_team VARCHAR, host_team VARCHAR) [/INST] ### Response: SELECT visiting_team FROM table_name_21 WHERE host_team = "buffalo bills" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week did the Baltimore Ravens play at home ? ### Context: CREATE TABLE table_name_79 (week VARCHAR, host_team VARCHAR) [/INST] ### Response: SELECT week FROM table_name_79 WHERE host_team = "baltimore ravens" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the final score on week 14 ? ### Context: CREATE TABLE table_name_53 (final_score VARCHAR, week VARCHAR) [/INST] ### Response: SELECT final_score FROM table_name_53 WHERE week = 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: When did the Baltimore Ravens play at home ? ### Context: CREATE TABLE table_name_79 (date VARCHAR, host_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_79 WHERE host_team = "baltimore ravens" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the final score in week 3 ? ### Context: CREATE TABLE table_name_46 (final_score VARCHAR, week VARCHAR) [/INST] ### Response: SELECT final_score FROM table_name_46 WHERE week = 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: To what party does Ralph Jacobi belong? ### Context: CREATE TABLE table_name_79 (party VARCHAR, member VARCHAR) [/INST] ### Response: SELECT party FROM table_name_79 WHERE member = "ralph jacobi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Hon Les Johnson in office? ### Context: CREATE TABLE table_name_74 (term_in_office VARCHAR, member VARCHAR) [/INST] ### Response: SELECT term_in_office FROM table_name_74 WHERE member = "hon les johnson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 party had a member from the state of Vic and an Electorate called Wannon? ### Context: CREATE TABLE table_name_23 (party VARCHAR, state VARCHAR, electorate VARCHAR) [/INST] ### Response: SELECT party FROM table_name_23 WHERE state = "vic" AND electorate = "wannon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is Mick Young a member of? ### Context: CREATE TABLE table_name_45 (party VARCHAR, member VARCHAR) [/INST] ### Response: SELECT party FROM table_name_45 WHERE member = "mick young" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tires were in Class C in years before 1983? ### Context: CREATE TABLE table_name_70 (tyres VARCHAR, class VARCHAR, year VARCHAR) [/INST] ### Response: SELECT tyres FROM table_name_70 WHERE class = "c" AND year < 1983 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 earliest year that had a co-driver of Roger Enever? ### Context: CREATE TABLE table_name_77 (year INTEGER, co_drivers VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_77 WHERE co_drivers = "roger enever" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date has 3 as the goal? ### Context: CREATE TABLE table_name_55 (date VARCHAR, goal VARCHAR) [/INST] ### Response: SELECT date FROM table_name_55 WHERE goal = 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Label released on October 25, 1984, in the format of Stereo LP? ### Context: CREATE TABLE table_name_79 (label VARCHAR, date VARCHAR, format VARCHAR) [/INST] ### Response: SELECT label FROM table_name_79 WHERE date = "october 25, 1984" AND format = "stereo lp" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 catalogs of releases from Sony Music Direct? ### Context: CREATE TABLE table_name_72 (catalog VARCHAR, label VARCHAR) [/INST] ### Response: SELECT catalog FROM table_name_72 WHERE label = "sony music direct" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 region of the release of a CD with catalog 32xa-119? ### Context: CREATE TABLE table_name_58 (region VARCHAR, format VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT region FROM table_name_58 WHERE format = "cd" AND catalog = "32xa-119" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 catalog of the release from January 23, 2002? ### Context: CREATE TABLE table_name_59 (catalog VARCHAR, date VARCHAR) [/INST] ### Response: SELECT catalog FROM table_name_59 WHERE date = "january 23, 2002" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 region of the release from May 27, 2009? ### Context: CREATE TABLE table_name_55 (region VARCHAR, date VARCHAR) [/INST] ### Response: SELECT region FROM table_name_55 WHERE date = "may 27, 2009" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 region of the Alfa Records release with catalog ALCA-282? ### Context: CREATE TABLE table_name_54 (region VARCHAR, label VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT region FROM table_name_54 WHERE label = "alfa records" AND catalog = "alca-282" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the player from the United States with a 72-67-80-71=290 score? ### Context: CREATE TABLE table_name_14 (to_par VARCHAR, country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_14 WHERE country = "united states" AND score = 72 - 67 - 80 - 71 = 290 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank for laps less than 130 and year of 1951 ### Context: CREATE TABLE table_name_31 (rank VARCHAR, laps VARCHAR, year VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_31 WHERE laps < 130 AND year = "1951" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year for laps of 200 and rank of 24 ### Context: CREATE TABLE table_name_14 (year VARCHAR, laps VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT year FROM table_name_14 WHERE laps = 200 AND rank = "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: Name the rank with finish of 12 and year of 1963 ### Context: CREATE TABLE table_name_29 (rank VARCHAR, finish VARCHAR, year VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_29 WHERE finish = "12" AND year = "1963" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank with laps of 200 and qual of 148.374 ### Context: CREATE TABLE table_name_5 (rank VARCHAR, laps VARCHAR, qual VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_5 WHERE laps = 200 AND qual = "148.374" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 finish with Laps more than 200 ### Context: CREATE TABLE table_name_17 (finish VARCHAR, laps INTEGER) [/INST] ### Response: SELECT finish FROM table_name_17 WHERE laps > 200 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank for 151 Laps ### Context: CREATE TABLE table_name_18 (rank VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_18 WHERE laps = 151 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: The qual of totals took place during what year? ### Context: CREATE TABLE table_name_61 (year VARCHAR, qual VARCHAR) [/INST] ### Response: SELECT year FROM table_name_61 WHERE qual = "totals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the finish of 15 happen in? ### Context: CREATE TABLE table_name_16 (year VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT year FROM table_name_16 WHERE finish = "15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Finish rank of 31? ### Context: CREATE TABLE table_name_71 (finish VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_71 WHERE rank = "31" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year did the rank of 31 happen in? ### Context: CREATE TABLE table_name_75 (year VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT year FROM table_name_75 WHERE rank = "31" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which item resulted in a score of 4-1? ### Context: CREATE TABLE table_name_77 (score VARCHAR, result VARCHAR) [/INST] ### Response: SELECT score FROM table_name_77 WHERE result = "4-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: Which item has a score of 5-1? ### Context: CREATE TABLE table_name_6 (score VARCHAR, result VARCHAR) [/INST] ### Response: SELECT score FROM table_name_6 WHERE result = "5-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: Which competition had a 4-1 result, and a score of 4-1? ### Context: CREATE TABLE table_name_19 (competition VARCHAR, result VARCHAR, score VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_19 WHERE result = "4-1" AND score = "4-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 2009 ffor 2010 of 1r and 2012 of a and 2008 of 2r ### Context: CREATE TABLE table_name_44 (Id VARCHAR) [/INST] ### Response: SELECT 2009 FROM table_name_44 WHERE 2010 = "1r" AND 2012 = "a" AND 2008 = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2011 for 2012 of a and 2010 of 1r with 2008 of 2r ### Context: CREATE TABLE table_name_92 (Id VARCHAR) [/INST] ### Response: SELECT 2011 FROM table_name_92 WHERE 2012 = "a" AND 2010 = "1r" AND 2008 = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2010 for tournament of us open ### Context: CREATE TABLE table_name_95 (tournament VARCHAR) [/INST] ### Response: SELECT 2010 FROM table_name_95 WHERE tournament = "us open" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2010 for 2011 of a and 2008 of 1r ### Context: CREATE TABLE table_name_61 (Id VARCHAR) [/INST] ### Response: SELECT 2010 FROM table_name_61 WHERE 2011 = "a" AND 2008 = "1r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2011 when 2010 is 2r ### Context: CREATE TABLE table_name_94 (Id VARCHAR) [/INST] ### Response: SELECT 2011 FROM table_name_94 WHERE 2010 = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tournament when it has 2011 of 2r ### Context: CREATE TABLE table_name_94 (tournament VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_94 WHERE 2011 = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance for games with a loss of papelbon (0–1)? ### Context: CREATE TABLE table_name_66 (attendance INTEGER, loss VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_66 WHERE loss = "papelbon (0–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: When the team had their record of 16–14, what was the total attendance? ### Context: CREATE TABLE table_name_74 (attendance VARCHAR, record VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_74 WHERE record = "16–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: Who was in a with opponent St. Johnstone? ### Context: CREATE TABLE table_name_8 (scorers VARCHAR, venue VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT scorers FROM table_name_8 WHERE venue = "a" AND opponent = "st. johnstone" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue was on 27 May 2000? ### Context: CREATE TABLE table_name_81 (venue VARCHAR, date VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_81 WHERE date = "27 may 2000" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on 12 March 2000? ### Context: CREATE TABLE table_name_24 (scorers VARCHAR, date VARCHAR) [/INST] ### Response: SELECT scorers FROM table_name_24 WHERE date = "12 march 2000" </s>