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 season had Kanto Gakuin University as the winner, with an attendance of n/a, and a title of 37th? ### Context: CREATE TABLE table_name_62 (season VARCHAR, title VARCHAR, winner VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT season FROM table_name_62 WHERE winner = "kanto gakuin university" AND attendance = "n/a" AND title = "37th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the title for the game with an attendance of n/a with the runner-up being Waseda, and a season of 1995-6 details? ### Context: CREATE TABLE table_name_91 (title VARCHAR, season VARCHAR, attendance VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT title FROM table_name_91 WHERE attendance = "n/a" AND runner_up = "waseda" AND season = "1995-6 details" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season has a runner-up of waseda, and a title of 47th? ### Context: CREATE TABLE table_name_25 (season VARCHAR, runner_up VARCHAR, title VARCHAR) [/INST] ### Response: SELECT season FROM table_name_25 WHERE runner_up = "waseda" AND title = "47th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winner in the game that had Teikyo as the runner-up? ### Context: CREATE TABLE table_name_94 (winner VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_94 WHERE runner_up = "teikyo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winner in the game that had a title of 32nd, and Waseda as the runner-up? ### Context: CREATE TABLE table_name_56 (winner VARCHAR, runner_up VARCHAR, title VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_56 WHERE runner_up = "waseda" AND title = "32nd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the date on week 6 ### Context: CREATE TABLE table_name_97 (date VARCHAR, week VARCHAR) [/INST] ### Response: SELECT date FROM table_name_97 WHERE week = 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: Which City has 600kw 500kw ERP (Analog/ Digital)? ### Context: CREATE TABLE table_name_41 (city VARCHAR, erp__analog__digital_ VARCHAR) [/INST] ### Response: SELECT city FROM table_name_41 WHERE erp__analog__digital_ = "600kw 500kw" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Region served has of 1176 m 1190 m HAAT (Analog/ Digital) 1? ### Context: CREATE TABLE table_name_43 (region_served VARCHAR, haat__analog__digital__1 VARCHAR) [/INST] ### Response: SELECT region_served FROM table_name_43 WHERE haat__analog__digital__1 = "1176 m 1190 m" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 City has 600kw 500kw ERP ? ### Context: CREATE TABLE table_name_86 (city VARCHAR, erp__analog__digital_ VARCHAR) [/INST] ### Response: SELECT city FROM table_name_86 WHERE erp__analog__digital_ = "600kw 500kw" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 City has a 360kw 90kw ERP? ### Context: CREATE TABLE table_name_32 (city VARCHAR, erp__analog__digital_ VARCHAR) [/INST] ### Response: SELECT city FROM table_name_32 WHERE erp__analog__digital_ = "360kw 90kw" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 series standing for games over 4? ### Context: CREATE TABLE table_name_2 (series VARCHAR, game INTEGER) [/INST] ### Response: SELECT series FROM table_name_2 WHERE game > 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 game number held on May 20? ### Context: CREATE TABLE table_name_52 (game INTEGER, date VARCHAR) [/INST] ### Response: SELECT AVG(game) FROM table_name_52 WHERE date = "may 20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the game when the Indians ended up with a record of 55-51? ### Context: CREATE TABLE table_name_33 (score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_33 WHERE record = "55-51" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which date did the Indians have a record of 67-58 ### Context: CREATE TABLE table_name_92 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_92 WHERE record = "67-58" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Work has a Result of nominated, and an Award of contigo award, and a Year smaller than 2002? ### Context: CREATE TABLE table_name_36 (work VARCHAR, year VARCHAR, result VARCHAR, award VARCHAR) [/INST] ### Response: SELECT work FROM table_name_36 WHERE result = "nominated" AND award = "contigo award" AND year < 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: How many years have an Award of press award? ### Context: CREATE TABLE table_name_47 (year VARCHAR, award VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_47 WHERE award = "press award" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Award has a Year smaller than 2004, and a Work of the clone, and a Result of won, and a Category of favourite actress? ### Context: CREATE TABLE table_name_45 (award VARCHAR, category VARCHAR, result VARCHAR, year VARCHAR, work VARCHAR) [/INST] ### Response: SELECT award FROM table_name_45 WHERE year < 2004 AND work = "the clone" AND result = "won" AND category = "favourite actress" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Year is the highest one that has a Work of the clone, and an Award of contigo award? ### Context: CREATE TABLE table_name_8 (year INTEGER, work VARCHAR, award VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_8 WHERE work = "the clone" AND award = "contigo award" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: With the Destination of Jupiter and the Closest approach of 4 February 2004, what is the Time elapsed? ### Context: CREATE TABLE table_name_11 (time_elapsed VARCHAR, destination VARCHAR, closest_approach VARCHAR) [/INST] ### Response: SELECT time_elapsed FROM table_name_11 WHERE destination = "jupiter" AND closest_approach = "4 february 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: What Time elapsed has both the Launched of 15 October 1997 and the Closest approach of 24 June 1999? ### Context: CREATE TABLE table_name_52 (time_elapsed VARCHAR, launched VARCHAR, closest_approach VARCHAR) [/INST] ### Response: SELECT time_elapsed FROM table_name_52 WHERE launched = "15 october 1997" AND closest_approach = "24 june 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 Time elapsed has 14 February 2011 as the Closest approach? ### Context: CREATE TABLE table_name_11 (time_elapsed VARCHAR, closest_approach VARCHAR) [/INST] ### Response: SELECT time_elapsed FROM table_name_11 WHERE closest_approach = "14 february 2011" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Launched has Time elapsed of 1991 days (5 yr, 5 mo, 12 d)? ### Context: CREATE TABLE table_name_31 (launched VARCHAR, time_elapsed VARCHAR) [/INST] ### Response: SELECT launched FROM table_name_31 WHERE time_elapsed = "1991 days (5 yr, 5 mo, 12 d)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: With a Launched of 3 July 1998 what is the Closest approach? ### Context: CREATE TABLE table_name_54 (closest_approach VARCHAR, launched VARCHAR) [/INST] ### Response: SELECT closest_approach FROM table_name_54 WHERE launched = "3 july 1998" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Launched has both a Spacecraft of Ulysses and 491 days (1 yr, 4 mo, 3 d) as Time elapsed? ### Context: CREATE TABLE table_name_56 (launched VARCHAR, spacecraft VARCHAR, time_elapsed VARCHAR) [/INST] ### Response: SELECT launched FROM table_name_56 WHERE spacecraft = "ulysses" AND time_elapsed = "491 days (1 yr, 4 mo, 3 d)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%? ### Context: CREATE TABLE table_name_45 (karen_handel VARCHAR, eric_johnson VARCHAR, undecided VARCHAR) [/INST] ### Response: SELECT karen_handel FROM table_name_45 WHERE eric_johnson = "13%" AND undecided = "22%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what poll is Nathan Deal at 13% and John Oxendine at 28%? ### Context: CREATE TABLE table_name_49 (poll_source VARCHAR, nathan_deal VARCHAR, john_oxendine VARCHAR) [/INST] ### Response: SELECT poll_source FROM table_name_49 WHERE nathan_deal = "13%" AND john_oxendine = "28%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Eric Johnson at in the poll where Karen Handel is at 12%? ### Context: CREATE TABLE table_name_38 (eric_johnson VARCHAR, karen_handel VARCHAR) [/INST] ### Response: SELECT eric_johnson FROM table_name_38 WHERE karen_handel = "12%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what poll is John Oxendine at 32%? ### Context: CREATE TABLE table_name_67 (poll_source VARCHAR, john_oxendine VARCHAR) [/INST] ### Response: SELECT poll_source FROM table_name_67 WHERE john_oxendine = "32%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is John Oxendine at in the poll where Karen Handel is at 38%? ### Context: CREATE TABLE table_name_75 (john_oxendine VARCHAR, karen_handel VARCHAR) [/INST] ### Response: SELECT john_oxendine FROM table_name_75 WHERE karen_handel = "38%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%? ### Context: CREATE TABLE table_name_78 (karen_handel VARCHAR, poll_source VARCHAR, john_oxendine VARCHAR) [/INST] ### Response: SELECT karen_handel FROM table_name_78 WHERE poll_source = "insideradvantage" AND john_oxendine = "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 was the 1991 score? ### Context: CREATE TABLE table_name_6 (score VARCHAR, year VARCHAR) [/INST] ### Response: SELECT score FROM table_name_6 WHERE year = "1991" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where was the 1966 competition with a winner of Gary Cowan held? ### Context: CREATE TABLE table_name_18 (venue VARCHAR, winner VARCHAR, year VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_18 WHERE winner = "gary cowan" AND year = "1966" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the competition played at Minikahda Club? ### Context: CREATE TABLE table_name_55 (runner_up VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT runner_up FROM table_name_55 WHERE venue = "minikahda club" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Year is the highest one that has a Next Highest Spender of aarp, and a US Cham Spending of $39,805,000, and a US Cham Rank larger than 1? ### Context: CREATE TABLE table_name_16 (year INTEGER, us_cham_rank VARCHAR, next_highest_spender VARCHAR, us_cham_spending VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_16 WHERE next_highest_spender = "aarp" AND us_cham_spending = "$39,805,000" AND us_cham_rank > 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 US Cham Rank is the lowest one that has a Next Highest Spender of national assn of realtors, and a Year smaller than 2012? ### Context: CREATE TABLE table_name_94 (us_cham_rank INTEGER, next_highest_spender VARCHAR, year VARCHAR) [/INST] ### Response: SELECT MIN(us_cham_rank) FROM table_name_94 WHERE next_highest_spender = "national assn of realtors" AND year < 2012 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Year is the lowest one that has a US Cham Rank smaller than 1? ### Context: CREATE TABLE table_name_16 (year INTEGER, us_cham_rank INTEGER) [/INST] ### Response: SELECT MIN(year) FROM table_name_16 WHERE us_cham_rank < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the Score in Final of the Eckerd Open Tournament? ### Context: CREATE TABLE table_name_21 (score_in_final VARCHAR, tournament_name VARCHAR) [/INST] ### Response: SELECT score_in_final FROM table_name_21 WHERE tournament_name = "eckerd 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: Who was the Partner in the United Airlines Tournament (1)? ### Context: CREATE TABLE table_name_62 (partner VARCHAR, tournament_name VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_62 WHERE tournament_name = "united airlines tournament (1)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the Score in Final on February 19, 1989? ### Context: CREATE TABLE table_name_59 (score_in_final VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score_in_final FROM table_name_59 WHERE date = "february 19, 1989" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the Points when the Place is 9? ### Context: CREATE TABLE table_name_91 (points VARCHAR, place VARCHAR) [/INST] ### Response: SELECT points FROM table_name_91 WHERE place = 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 total for the place when the singer is Mariza Ikonomi when points are larger than 20? ### Context: CREATE TABLE table_name_88 (place VARCHAR, singer VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(place) FROM table_name_88 WHERE singer = "mariza ikonomi" AND points > 20 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: With a Suited Match of 13:1, what is the Double Non-Suited Match? ### Context: CREATE TABLE table_name_74 (Double VARCHAR, suited_match VARCHAR) [/INST] ### Response: SELECT Double AS non_suited_match FROM table_name_74 WHERE suited_match = "13: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's the Suited Match with a 2.99% House Edge? ### Context: CREATE TABLE table_name_44 (suited_match VARCHAR, house_edge VARCHAR) [/INST] ### Response: SELECT suited_match FROM table_name_44 WHERE house_edge = "2.99%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: With a house edge of 3.53% and a Non-Suited Matched of 3:1, name the Double Non-Suited Match. ### Context: CREATE TABLE table_name_99 (Double VARCHAR, non_suited_match VARCHAR, house_edge VARCHAR) [/INST] ### Response: SELECT Double AS non_suited_match FROM table_name_99 WHERE non_suited_match = "3:1" AND house_edge = "3.53%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Non-Suited Match that has greater than 6 Number of Decks. ### Context: CREATE TABLE table_name_60 (non_suited_match VARCHAR, number_of_decks INTEGER) [/INST] ### Response: SELECT non_suited_match FROM table_name_60 WHERE number_of_decks > 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 Suited & Non-Suited Match with a 2.99% for House Edge. ### Context: CREATE TABLE table_name_80 (Suited VARCHAR, non_suited_match VARCHAR, house_edge VARCHAR) [/INST] ### Response: SELECT Suited + non_suited_match FROM table_name_80 WHERE house_edge = "2.99%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: With a House Edge of 3.63% and a Non-Suited Match of 4:1, what is the Double Non-Suited Match? ### Context: CREATE TABLE table_name_1 (Double VARCHAR, non_suited_match VARCHAR, house_edge VARCHAR) [/INST] ### Response: SELECT Double AS non_suited_match FROM table_name_1 WHERE non_suited_match = "4:1" AND house_edge = "3.63%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Wins smaller than 0 had what sum of year? ### Context: CREATE TABLE table_name_16 (year INTEGER, wins INTEGER) [/INST] ### Response: SELECT SUM(year) FROM table_name_16 WHERE wins < 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: Class of 125cc, and a Year smaller than 1966 had what lowest wins? ### Context: CREATE TABLE table_name_95 (wins INTEGER, class VARCHAR, year VARCHAR) [/INST] ### Response: SELECT MIN(wins) FROM table_name_95 WHERE class = "125cc" AND year < 1966 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Class of 500cc, and a Wins smaller than 0 had what average year? ### Context: CREATE TABLE table_name_75 (year INTEGER, class VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_75 WHERE class = "500cc" AND wins < 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 laps Kazuki Nakajima did with a Grid larger than 19? ### Context: CREATE TABLE table_name_58 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_58 WHERE driver = "kazuki nakajima" AND grid > 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: Which Constructor has a Grid of 17? ### Context: CREATE TABLE table_name_87 (constructor VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_87 WHERE grid = 17 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who drives a BMW Sauber with a Grid larger than 2 and a Time/Retired of +15.037? ### Context: CREATE TABLE table_name_37 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_37 WHERE grid > 2 AND constructor = "bmw sauber" AND time_retired = "+15.037" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Participation as of actor, film editor has what average year? ### Context: CREATE TABLE table_name_11 (year INTEGER, participation_as VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_11 WHERE participation_as = "actor, film editor" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 odds for the finish of 1/4h? ### Context: CREATE TABLE table_name_14 (odds VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT odds FROM table_name_14 WHERE finish = "1/4h" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 last quarter with a time of 1:53.2 and odds of *1.30? ### Context: CREATE TABLE table_name_30 (last_1_4 INTEGER, time VARCHAR, odds VARCHAR) [/INST] ### Response: SELECT MIN(last_1_4) FROM table_name_30 WHERE time = "1:53.2" AND odds = "*1.30" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number of Gold when the total is 11 with more than 2 silver? ### Context: CREATE TABLE table_name_3 (gold INTEGER, total VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT AVG(gold) FROM table_name_3 WHERE total = 11 AND silver > 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 rank with more than 0 silver and less than 2 medals total? ### Context: CREATE TABLE table_name_88 (rank VARCHAR, total VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_88 WHERE total < 2 AND silver > 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 value of bronze with less than 2 in total? ### Context: CREATE TABLE table_name_91 (bronze VARCHAR, total INTEGER) [/INST] ### Response: SELECT bronze FROM table_name_91 WHERE total < 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 number of rank has more than 2 medals in total with less than 4 bronze? ### Context: CREATE TABLE table_name_26 (rank VARCHAR, total VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_26 WHERE total > 2 AND bronze < 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 a building that is proposed and will have 32 floors? ### Context: CREATE TABLE table_name_22 (building VARCHAR, status VARCHAR, floors VARCHAR) [/INST] ### Response: SELECT building FROM table_name_22 WHERE status = "proposed" AND floors = 32 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the best time for marcus marshall? ### Context: CREATE TABLE table_name_21 (best INTEGER, name VARCHAR) [/INST] ### Response: SELECT AVG(best) FROM table_name_21 WHERE name = "marcus marshall" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 best time for a rusport driver with a qual 2 time of 1:10.166? ### Context: CREATE TABLE table_name_58 (best INTEGER, team VARCHAR, qual_2 VARCHAR) [/INST] ### Response: SELECT MAX(best) FROM table_name_58 WHERE team = "rusport" AND qual_2 = "1:10.166" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a qual 2 time of 58.385? ### Context: CREATE TABLE table_name_92 (team VARCHAR, qual_2 VARCHAR) [/INST] ### Response: SELECT team FROM table_name_92 WHERE qual_2 = "58.385" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 University of Dublin, having a panel of 0 for agricultural, was nominated by Taoiseach more than 0, and an industrial and commercial panel less than 0? ### Context: CREATE TABLE table_name_94 (university_of_dublin VARCHAR, industrial_and_commercial_panel VARCHAR, agricultural_panel VARCHAR, nominated_by_the_taoiseach VARCHAR) [/INST] ### Response: SELECT COUNT(university_of_dublin) FROM table_name_94 WHERE agricultural_panel = 0 AND nominated_by_the_taoiseach > 0 AND industrial_and_commercial_panel < 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 average for the agricultural panel that has a National University of Ireland less than 0? ### Context: CREATE TABLE table_name_16 (agricultural_panel INTEGER, national_university_of_ireland INTEGER) [/INST] ### Response: SELECT AVG(agricultural_panel) FROM table_name_16 WHERE national_university_of_ireland < 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 lowest number for the University of Dublin, having and administrative panel of 3, and a Cultural and Educational panel less than 2? ### Context: CREATE TABLE table_name_93 (university_of_dublin INTEGER, administrative_panel VARCHAR, cultural_and_educational_panel VARCHAR) [/INST] ### Response: SELECT MIN(university_of_dublin) FROM table_name_93 WHERE administrative_panel = 3 AND cultural_and_educational_panel < 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 was the record at Memorial Stadium on September 19, 1965? ### Context: CREATE TABLE table_name_59 (record VARCHAR, game_site VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_59 WHERE game_site = "memorial stadium" AND date = "september 19, 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 is the largest attendance at Memorial Stadium on December 12, 1965? ### Context: CREATE TABLE table_name_51 (attendance INTEGER, game_site VARCHAR, date VARCHAR) [/INST] ### Response: SELECT MAX(attendance) FROM table_name_51 WHERE game_site = "memorial stadium" AND date = "december 12, 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: Which Extra points is the highest one that has a Player of herman everhardus, and a Field goals larger than 0? ### Context: CREATE TABLE table_name_97 (extra_points INTEGER, player VARCHAR, field_goals VARCHAR) [/INST] ### Response: SELECT MAX(extra_points) FROM table_name_97 WHERE player = "herman everhardus" AND field_goals > 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 Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1? ### Context: CREATE TABLE table_name_45 (extra_points INTEGER, touchdowns VARCHAR, points VARCHAR, player VARCHAR) [/INST] ### Response: SELECT SUM(extra_points) FROM table_name_45 WHERE points < 12 AND player = "chuck bernard" AND touchdowns > 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 Field goals have Touchdowns smaller than 3, and a Player of willis ward, and an Extra points smaller than 0? ### Context: CREATE TABLE table_name_45 (field_goals INTEGER, extra_points VARCHAR, touchdowns VARCHAR, player VARCHAR) [/INST] ### Response: SELECT SUM(field_goals) FROM table_name_45 WHERE touchdowns < 3 AND player = "willis ward" AND extra_points < 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: Whicih Extra points are the average ones that have Points smaller than 6? ### Context: CREATE TABLE table_name_35 (extra_points INTEGER, points INTEGER) [/INST] ### Response: SELECT AVG(extra_points) FROM table_name_35 WHERE points < 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: Which position is round 7? ### Context: CREATE TABLE table_name_27 (position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT position FROM table_name_27 WHERE round = 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 college has a position of goaltender? ### Context: CREATE TABLE table_name_92 (college_junior_club_team__league_ VARCHAR, position VARCHAR) [/INST] ### Response: SELECT college_junior_club_team__league_ FROM table_name_92 WHERE position = "goaltender" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Darryl Fedorak's highest round? ### Context: CREATE TABLE table_name_91 (round INTEGER, player VARCHAR) [/INST] ### Response: SELECT MAX(round) FROM table_name_91 WHERE player = "darryl fedorak" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nationality has a higher round than 8? ### Context: CREATE TABLE table_name_86 (nationality VARCHAR, round INTEGER) [/INST] ### Response: SELECT nationality FROM table_name_86 WHERE round > 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the connection with Australia when the connection with America shows born in the u.s.; mother is u.s. citizen? ### Context: CREATE TABLE table_name_74 (connection_with_australia VARCHAR, connection_with_america VARCHAR) [/INST] ### Response: SELECT connection_with_australia FROM table_name_74 WHERE connection_with_america = "born in the u.s.; mother is u.s. citizen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 person born in Australia, rick springfield notable for? ### Context: CREATE TABLE table_name_23 (notable_for VARCHAR, connection_with_australia VARCHAR, name VARCHAR) [/INST] ### Response: SELECT notable_for FROM table_name_23 WHERE connection_with_australia = "born in australia" AND name = "rick springfield" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Born–Died for the person whose family moved to Australia at age 6? ### Context: CREATE TABLE table_name_93 (born___died VARCHAR, connection_with_australia VARCHAR) [/INST] ### Response: SELECT born___died FROM table_name_93 WHERE connection_with_australia = "family moved to australia at age 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 latest date with Cores per die / Dies per module of 2 / 1, and a Clock of 1.4-1.6ghz? ### Context: CREATE TABLE table_name_64 (date INTEGER, cores_per_die___dies_per_module VARCHAR, clock VARCHAR) [/INST] ### Response: SELECT MAX(date) FROM table_name_64 WHERE cores_per_die___dies_per_module = "2 / 1" AND clock = "1.4-1.6ghz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 process has a date later than 2000 and a Clock of 1.4-1.6ghz? ### Context: CREATE TABLE table_name_61 (process VARCHAR, date VARCHAR, clock VARCHAR) [/INST] ### Response: SELECT process FROM table_name_61 WHERE date > 2000 AND clock = "1.4-1.6ghz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a Clock of 0.8-1.6ghz? ### Context: CREATE TABLE table_name_61 (date VARCHAR, clock VARCHAR) [/INST] ### Response: SELECT date FROM table_name_61 WHERE clock = "0.8-1.6ghz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record on May 21? ### Context: CREATE TABLE table_name_15 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_15 WHERE date = "may 21" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what date was the attendance 24,976? ### Context: CREATE TABLE table_name_98 (date VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT date FROM table_name_98 WHERE attendance = "24,976" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 what date was the record 21-26? ### Context: CREATE TABLE table_name_79 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_79 WHERE record = "21-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: How many were in attendance with a loss of Prokopec (2-7)? ### Context: CREATE TABLE table_name_21 (attendance VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_21 WHERE loss = "prokopec (2-7)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the opponent on May 20? ### Context: CREATE TABLE table_name_74 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_74 WHERE date = "may 20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tournament on Apr 6? ### Context: CREATE TABLE table_name_13 (tournament VARCHAR, date VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_13 WHERE date = "apr 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 1st prize of the tournament in Scotland? ### Context: CREATE TABLE table_name_95 (location VARCHAR) [/INST] ### Response: SELECT 1 AS st_prize___$__ FROM table_name_95 WHERE location = "scotland" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location of the Sea Pines Heritage Classic tournament? ### Context: CREATE TABLE table_name_68 (location VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT location FROM table_name_68 WHERE tournament = "sea pines heritage classic" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tournament Players Championship? ### Context: CREATE TABLE table_name_16 (score VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT score FROM table_name_16 WHERE tournament = "tournament players championship" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1st prize at the U.S. Open? ### Context: CREATE TABLE table_name_69 (tournament VARCHAR) [/INST] ### Response: SELECT 1 AS st_prize___$__ FROM table_name_69 WHERE tournament = "u.s. 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: What is the average first prize of the tournament with a score of 279 (–9)? ### Context: CREATE TABLE table_name_47 (score VARCHAR) [/INST] ### Response: SELECT AVG(1 AS st_prize___) AS $__ FROM table_name_47 WHERE score = "279 (–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 lowest first prize of the Mercedes Championships tournament in California? ### Context: CREATE TABLE table_name_18 (location VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT MIN(1 AS st_prize___) AS $__ FROM table_name_18 WHERE location = "california" AND tournament = "mercedes championships" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 capacity for the venue where the team kommunalnik played? ### Context: CREATE TABLE table_name_29 (capacity INTEGER, team VARCHAR) [/INST] ### Response: SELECT AVG(capacity) FROM table_name_29 WHERE team = "kommunalnik" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position of the team that played at the venue, Central, Gomel? ### Context: CREATE TABLE table_name_71 (position_in_1999 VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT position_in_1999 FROM table_name_71 WHERE venue = "central, gomel" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position of the team that played at the venue with more than 6,500 capacity? ### Context: CREATE TABLE table_name_70 (position_in_1999 VARCHAR, capacity INTEGER) [/INST] ### Response: SELECT position_in_1999 FROM table_name_70 WHERE capacity > 6 OFFSET 500 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 assists with 70 Pims and less than 19 goals? ### Context: CREATE TABLE table_name_71 (assists INTEGER, pims VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT MIN(assists) FROM table_name_71 WHERE pims = 70 AND goals < 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 is the smallest number of assists for Ben Duggan with less than 7 points? ### Context: CREATE TABLE table_name_17 (assists INTEGER, name VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MIN(assists) FROM table_name_17 WHERE name = "ben duggan" AND points < 7 </s>