text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the longest weeks on top when the Artist was Bruce Hornsby and the Range? ### Context: CREATE TABLE table_name_74 (weeks_on_top INTEGER, artist VARCHAR) [/INST] ### Response: SELECT MAX(weeks_on_top) FROM table_name_74 WHERE artist = "bruce hornsby and the range" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game with arsenal win 4-2 on penalties in the attendance field? ### Context: CREATE TABLE table_name_85 (score VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT score FROM table_name_85 WHERE attendance = "arsenal win 4-2 on penalties" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the Away team when the Tie no was 3? ### Context: CREATE TABLE table_name_55 (away_team VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_55 WHERE tie_no = "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 is the Tie no when the away team was Burnley? ### Context: CREATE TABLE table_name_30 (tie_no VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_30 WHERE away_team = "burnley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tie no when Sheffield United was the Away team? ### Context: CREATE TABLE table_name_10 (tie_no VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_10 WHERE away_team = "sheffield united" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What rank is the team with 1 silver, 3 bronze and a total of less than 8 medals? ### Context: CREATE TABLE table_name_32 (rank VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_32 WHERE silver = 1 AND bronze = 3 AND total < 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: Which Balls Faced has a Average of 39.13 and Runs Scored larger than 313? ### Context: CREATE TABLE table_name_4 (balls_faced INTEGER, average VARCHAR, runs_scored VARCHAR) [/INST] ### Response: SELECT SUM(balls_faced) FROM table_name_4 WHERE average = 39.13 AND runs_scored > 313 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Name has an Average of 48.83? ### Context: CREATE TABLE table_name_47 (name VARCHAR, average VARCHAR) [/INST] ### Response: SELECT name FROM table_name_47 WHERE average = 48.83 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average S.R. has an Average of 39.13 and Balls Faced larger than 318? ### Context: CREATE TABLE table_name_48 (sr INTEGER, average VARCHAR, balls_faced VARCHAR) [/INST] ### Response: SELECT AVG(sr) FROM table_name_48 WHERE average = 39.13 AND balls_faced > 318 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 S.R. that has Runs Scored of 161 and an Average larger than 26.83? ### Context: CREATE TABLE table_name_35 (sr INTEGER, runs_scored VARCHAR, average VARCHAR) [/INST] ### Response: SELECT SUM(sr) FROM table_name_35 WHERE runs_scored = 161 AND average > 26.83 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What kind of Average has a S.R. of 70.43 and Runs Scored smaller than 293? ### Context: CREATE TABLE table_name_74 (average INTEGER, sr VARCHAR, runs_scored VARCHAR) [/INST] ### Response: SELECT MIN(average) FROM table_name_74 WHERE sr = 70.43 AND runs_scored < 293 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 S.R. has a Average smaller than 23.63 Runs Scored of 49? ### Context: CREATE TABLE table_name_46 (sr VARCHAR, average VARCHAR, runs_scored VARCHAR) [/INST] ### Response: SELECT sr FROM table_name_46 WHERE average < 23.63 AND runs_scored = 49 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Acquisition that has less than 22, in the 2002 season? ### Context: CREATE TABLE table_name_41 (acquisition_via VARCHAR, number VARCHAR, season VARCHAR) [/INST] ### Response: SELECT acquisition_via FROM table_name_41 WHERE number < 22 AND season = "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 is the number of the acquisition of import in the 2002 season? ### Context: CREATE TABLE table_name_19 (number VARCHAR, acquisition_via VARCHAR, season VARCHAR) [/INST] ### Response: SELECT number FROM table_name_19 WHERE acquisition_via = "import" AND season = "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 is the name from the 2002 season, and acquired via free agency? ### Context: CREATE TABLE table_name_80 (name VARCHAR, season VARCHAR, acquisition_via VARCHAR) [/INST] ### Response: SELECT name FROM table_name_80 WHERE season = "2002" AND acquisition_via = "free agency" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 acquired via import and larger than 22? ### Context: CREATE TABLE table_name_55 (name VARCHAR, acquisition_via VARCHAR, number VARCHAR) [/INST] ### Response: SELECT name FROM table_name_55 WHERE acquisition_via = "import" AND number > 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: Who was on the prohibition ticket when Abraham J. Cuddeback was on the Greenback ticket? ### Context: CREATE TABLE table_name_39 (prohibition_ticket VARCHAR, greenback_ticket VARCHAR) [/INST] ### Response: SELECT prohibition_ticket FROM table_name_39 WHERE greenback_ticket = "abraham j. cuddeback" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 office was Richard M. Griffin vying for on the Greenback ticket? ### Context: CREATE TABLE table_name_97 (office VARCHAR, greenback_ticket VARCHAR) [/INST] ### Response: SELECT office FROM table_name_97 WHERE greenback_ticket = "richard m. griffin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Prohibition ticket when Thomas Armstrong ran on the Greenback ticket? ### Context: CREATE TABLE table_name_73 (prohibition_ticket VARCHAR, greenback_ticket VARCHAR) [/INST] ### Response: SELECT prohibition_ticket FROM table_name_73 WHERE greenback_ticket = "thomas armstrong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the prohibition ticket when the Greenback ticket had Thomas Armstrong? ### Context: CREATE TABLE table_name_76 (prohibition_ticket VARCHAR, greenback_ticket VARCHAR) [/INST] ### Response: SELECT prohibition_ticket FROM table_name_76 WHERE greenback_ticket = "thomas armstrong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Republican ticket for the office of Inspector of state prisons? ### Context: CREATE TABLE table_name_8 (republican_ticket VARCHAR, office VARCHAR) [/INST] ### Response: SELECT republican_ticket FROM table_name_8 WHERE office = "inspector of state prisons" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 office did Henry Hagner run for on the prohibition ticket? ### Context: CREATE TABLE table_name_31 (office VARCHAR, prohibition_ticket VARCHAR) [/INST] ### Response: SELECT office FROM table_name_31 WHERE prohibition_ticket = "henry hagner" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the home of the team with a 16-8 record? ### Context: CREATE TABLE table_name_81 (home VARCHAR, record VARCHAR) [/INST] ### Response: SELECT home FROM table_name_81 WHERE record = "16-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 date of the game that ended with a score of 96-89? ### Context: CREATE TABLE table_name_92 (date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_92 WHERE score = "96-89" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 people went to the game with Indiana visiting? ### Context: CREATE TABLE table_name_68 (attendance VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_68 WHERE visitor = "indiana" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the Cleveland home game with a 20-8 record? ### Context: CREATE TABLE table_name_74 (date VARCHAR, home VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_74 WHERE home = "cleveland" AND record = "20-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 score of the New Jersey home game? ### Context: CREATE TABLE table_name_42 (score VARCHAR, home VARCHAR) [/INST] ### Response: SELECT score FROM table_name_42 WHERE home = "new jersey" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 people attended the game with a final score of 75-90? ### Context: CREATE TABLE table_name_29 (attendance VARCHAR, score VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_29 WHERE score = "75-90" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Mike Weir's To par? ### Context: CREATE TABLE table_name_79 (to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_79 WHERE player = "mike weir" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: From Country is Vijay Singh? ### Context: CREATE TABLE table_name_48 (country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_48 WHERE player = "vijay singh" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Player in T5 Place? ### Context: CREATE TABLE table_name_71 (player VARCHAR, place VARCHAR) [/INST] ### Response: SELECT player FROM table_name_71 WHERE place = "t5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Place of the Player with a Score of 73-73-65-73=284? ### Context: CREATE TABLE table_name_32 (place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_32 WHERE score = 73 - 73 - 65 - 73 = 284 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home captain that played at the venue Oval? ### Context: CREATE TABLE table_name_13 (home_captain VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_captain FROM table_name_13 WHERE venue = "oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Away captain that played on 12,13,14 Jun 1902 which resulted in a draw? ### Context: CREATE TABLE table_name_83 (away_captain VARCHAR, result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT away_captain FROM table_name_83 WHERE result = "draw" AND date = "12,13,14 jun 1902" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Away captain that played on 11,12,13 Aug 1902? ### Context: CREATE TABLE table_name_95 (away_captain VARCHAR, date VARCHAR) [/INST] ### Response: SELECT away_captain FROM table_name_95 WHERE date = "11,12,13 aug 1902" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result of the game that was played on 29,30–31 May 1902? ### Context: CREATE TABLE table_name_31 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_31 WHERE date = "29,30–31 may 1902" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result of the game that was played on 3,4,5 Jul 1902? ### Context: CREATE TABLE table_name_61 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_61 WHERE date = "3,4,5 jul 1902" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ends lost when there are 15 blank ends, less than 14 stolen ends? ### Context: CREATE TABLE table_name_67 (ends_lost VARCHAR, blank_ends VARCHAR, stolen_ends VARCHAR) [/INST] ### Response: SELECT COUNT(ends_lost) FROM table_name_67 WHERE blank_ends = 15 AND stolen_ends < 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of blank ends when the stolen ends were 17 and Jennifer Jones was skipped with a more than 83 shot pct? ### Context: CREATE TABLE table_name_57 (blank_ends VARCHAR, shot_pct VARCHAR, stolen_ends VARCHAR, skip VARCHAR) [/INST] ### Response: SELECT COUNT(blank_ends) FROM table_name_57 WHERE stolen_ends = 17 AND skip = "jennifer jones" AND shot_pct > 83 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Wins, when F/Laps is greater than 1, and when Points is 80? ### Context: CREATE TABLE table_name_18 (wins INTEGER, f_laps VARCHAR, points VARCHAR) [/INST] ### Response: SELECT AVG(wins) FROM table_name_18 WHERE f_laps > 1 AND points = "80" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of Races, when Podiums is less than 3, when Wins is 0, when Season is after 2001, and when Points is 32? ### Context: CREATE TABLE table_name_82 (races INTEGER, points VARCHAR, season VARCHAR, podiums VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT SUM(races) FROM table_name_82 WHERE podiums < 3 AND wins = 0 AND season > 2001 AND points = "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 average Season, when F/Laps is 1, and when Poles is less than 0? ### Context: CREATE TABLE table_name_14 (season INTEGER, f_laps VARCHAR, poles VARCHAR) [/INST] ### Response: SELECT AVG(season) FROM table_name_14 WHERE f_laps = 1 AND poles < 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 highest Poles, when Series is Ginetta Championship, and when Season is before 2007? ### Context: CREATE TABLE table_name_56 (poles INTEGER, series VARCHAR, season VARCHAR) [/INST] ### Response: SELECT MAX(poles) FROM table_name_56 WHERE series = "ginetta championship" AND season < 2007 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest wk 7 with a wk 3 value of 12, a wk 4 less than 9, and a wk 2 greater than 11? ### Context: CREATE TABLE table_name_1 (wk_7 INTEGER, wk_2 VARCHAR, wk_3 VARCHAR, wk_4 VARCHAR) [/INST] ### Response: SELECT MIN(wk_7) FROM table_name_1 WHERE wk_3 = 12 AND wk_4 < 9 AND wk_2 > 11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest wk 3 value with an n/r in wk 14, a wk 2 value of 7, and a wk 11 value greater than 18? ### Context: CREATE TABLE table_name_11 (wk_3 INTEGER, wk_11 VARCHAR, wk_14 VARCHAR, wk_2 VARCHAR) [/INST] ### Response: SELECT MIN(wk_3) FROM table_name_11 WHERE wk_14 = "n/r" AND wk_2 = 7 AND wk_11 > 18 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Date for the actual title archie bunker's place? ### Context: CREATE TABLE table_name_42 (date VARCHAR, actual_title VARCHAR) [/INST] ### Response: SELECT date FROM table_name_42 WHERE actual_title = "archie bunker's place" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Artist for the Spoofed Title of the moron downer jr. show? ### Context: CREATE TABLE table_name_13 (artist VARCHAR, spoofed_title VARCHAR) [/INST] ### Response: SELECT artist FROM table_name_13 WHERE spoofed_title = "the moron downer jr. show" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 issue was the Spoofed Title of the crockford files in? ### Context: CREATE TABLE table_name_50 (issue VARCHAR, spoofed_title VARCHAR) [/INST] ### Response: SELECT issue FROM table_name_50 WHERE spoofed_title = "the crockford files" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 writer for issue 224? ### Context: CREATE TABLE table_name_21 (writer VARCHAR, issue VARCHAR) [/INST] ### Response: SELECT writer FROM table_name_21 WHERE issue = 224 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 amount of points had a lost number of 2 when the position was less than 1? ### Context: CREATE TABLE table_name_67 (points INTEGER, lost VARCHAR, position VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_67 WHERE lost = 2 AND position < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the mean number of against when the position is less than 1? ### Context: CREATE TABLE table_name_92 (against INTEGER, position INTEGER) [/INST] ### Response: SELECT AVG(against) FROM table_name_92 WHERE position < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the mean number of played when there are less than 18 points and the position is less than 8? ### Context: CREATE TABLE table_name_45 (played INTEGER, points VARCHAR, position VARCHAR) [/INST] ### Response: SELECT AVG(played) FROM table_name_45 WHERE points < 18 AND position < 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 sum of lost when against is less than 37, drawn is more than 2, and played is more than 20? ### Context: CREATE TABLE table_name_93 (lost VARCHAR, played VARCHAR, against VARCHAR, drawn VARCHAR) [/INST] ### Response: SELECT COUNT(lost) FROM table_name_93 WHERE against < 37 AND drawn > 2 AND played > 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 total area of drakenstein and a population less than 251,262? ### Context: CREATE TABLE table_name_32 (area__km_2__ VARCHAR, name VARCHAR, population__2011_ VARCHAR) [/INST] ### Response: SELECT COUNT(area__km_2__) FROM table_name_32 WHERE name = "drakenstein" AND population__2011_ < 251 OFFSET 262 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For Stellenbosch, which has a population larger than 155,733, what is the average area? ### Context: CREATE TABLE table_name_38 (area__km_2__ INTEGER, name VARCHAR, population__2011_ VARCHAR) [/INST] ### Response: SELECT AVG(area__km_2__) FROM table_name_38 WHERE name = "stellenbosch" AND population__2011_ > 155 OFFSET 733 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 population for the area that has a density of 36.7? ### Context: CREATE TABLE table_name_89 (population__2011_ INTEGER, density__inhabitants_km_2__ VARCHAR) [/INST] ### Response: SELECT MIN(population__2011_) FROM table_name_89 WHERE density__inhabitants_km_2__ = 36.7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many points against has team Cardiff had when there were less than 7 tries? ### Context: CREATE TABLE table_name_97 (points_against VARCHAR, team VARCHAR, tries_against VARCHAR) [/INST] ### Response: SELECT COUNT(points_against) FROM table_name_97 WHERE team = "cardiff" AND tries_against < 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 amount of fog where the rain is 1 109? ### Context: CREATE TABLE table_name_50 (fog__days_year_ INTEGER, rain__mm_year_ VARCHAR) [/INST] ### Response: SELECT SUM(fog__days_year_) FROM table_name_50 WHERE rain__mm_year_ = "1 109" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the amount of snow where the days for storms are 31? ### Context: CREATE TABLE table_name_61 (snow__days_year_ INTEGER, storms__days_year_ VARCHAR) [/INST] ### Response: SELECT SUM(snow__days_year_) FROM table_name_61 WHERE storms__days_year_ = 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 is the amount of snow where the sunshine is 1 633, and storms are lower than 29? ### Context: CREATE TABLE table_name_23 (snow__days_year_ INTEGER, sunshine__hrs_year_ VARCHAR, storms__days_year_ VARCHAR) [/INST] ### Response: SELECT AVG(snow__days_year_) FROM table_name_23 WHERE sunshine__hrs_year_ = "1 633" AND storms__days_year_ < 29 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of storms where fog is lower than 74, and sunshine is 2 668? ### Context: CREATE TABLE table_name_74 (storms__days_year_ VARCHAR, fog__days_year_ VARCHAR, sunshine__hrs_year_ VARCHAR) [/INST] ### Response: SELECT COUNT(storms__days_year_) FROM table_name_74 WHERE fog__days_year_ < 74 AND sunshine__hrs_year_ = "2 668" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team for the tome team Leeds United, at the League Cup Competition? ### Context: CREATE TABLE table_name_12 (away_team VARCHAR, home_team VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_12 WHERE home_team = "leeds united" AND competition = "league cup" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chassis has patrick racing as an entrant, with a start greater than 6? ### Context: CREATE TABLE table_name_69 (chassis VARCHAR, entrant VARCHAR, start VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_69 WHERE entrant = "patrick racing" AND start > 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 average finish that has 24 as the start, with a year after 1987? ### Context: CREATE TABLE table_name_89 (finish INTEGER, start VARCHAR, year VARCHAR) [/INST] ### Response: SELECT AVG(finish) FROM table_name_89 WHERE start = 24 AND year > 1987 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest year that has lola t93/00 as the chassis with a start leas than 14? ### Context: CREATE TABLE table_name_59 (year INTEGER, chassis VARCHAR, start VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_59 WHERE chassis = "lola t93/00" AND start < 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest finish that has a start greater than 27, with a year after 1985? ### Context: CREATE TABLE table_name_62 (finish INTEGER, start VARCHAR, year VARCHAR) [/INST] ### Response: SELECT MIN(finish) FROM table_name_62 WHERE start > 27 AND year > 1985 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 start has a ford cosworth dfx as the engine, a year later than 1981, and kraco enterprises as the entrant? ### Context: CREATE TABLE table_name_22 (start VARCHAR, entrant VARCHAR, engine VARCHAR, year VARCHAR) [/INST] ### Response: SELECT start FROM table_name_22 WHERE engine = "ford cosworth dfx" AND year > 1981 AND entrant = "kraco enterprises" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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, when the Team Record is 2-0? ### Context: CREATE TABLE table_name_3 (date VARCHAR, team_record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_3 WHERE team_record = "2-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 Team Record, when the Result is l 0–24? ### Context: CREATE TABLE table_name_52 (team_record VARCHAR, result VARCHAR) [/INST] ### Response: SELECT team_record FROM table_name_52 WHERE result = "l 0–24" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Team Record, when Attendance is 16,151? ### Context: CREATE TABLE table_name_34 (team_record VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT team_record FROM table_name_34 WHERE attendance = "16,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: What is the highest draw that has points greater than 4, with a match greater than 5? ### Context: CREATE TABLE table_name_92 (draw INTEGER, points VARCHAR, match VARCHAR) [/INST] ### Response: SELECT MAX(draw) FROM table_name_92 WHERE points > 4 AND match > 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average draw that has a lost less than 4, gwardia bydgoszcz as the team, with a match greater than 5? ### Context: CREATE TABLE table_name_14 (draw INTEGER, match VARCHAR, lost VARCHAR, team VARCHAR) [/INST] ### Response: SELECT AVG(draw) FROM table_name_14 WHERE lost < 4 AND team = "gwardia bydgoszcz" AND match > 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest match that has a lost greater than 3, and kolejarz rawicz as the team? ### Context: CREATE TABLE table_name_99 (match INTEGER, lost VARCHAR, team VARCHAR) [/INST] ### Response: SELECT MIN(match) FROM table_name_99 WHERE lost > 3 AND team = "kolejarz rawicz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 matches have 0 as the lost? ### Context: CREATE TABLE table_name_32 (match VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT COUNT(match) FROM table_name_32 WHERE lost = 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of Game with a Score that is w 104–90 (ot)? ### Context: CREATE TABLE table_name_44 (game INTEGER, score VARCHAR) [/INST] ### Response: SELECT SUM(game) FROM table_name_44 WHERE score = "w 104–90 (ot)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 High rebounds of a Game with 56? ### Context: CREATE TABLE table_name_70 (high_rebounds VARCHAR, game VARCHAR) [/INST] ### Response: SELECT high_rebounds FROM table_name_70 WHERE game = 56 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 option from Italy with general television content, and the Cielo television service? ### Context: CREATE TABLE table_name_84 (package_option VARCHAR, television_service VARCHAR, country VARCHAR, content VARCHAR) [/INST] ### Response: SELECT package_option FROM table_name_84 WHERE country = "italy" AND content = "general television" AND television_service = "cielo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country has Tematico Content, and a package with sky TV and the Lei television service? ### Context: CREATE TABLE table_name_91 (country VARCHAR, television_service VARCHAR, content VARCHAR, package_option VARCHAR) [/INST] ### Response: SELECT country FROM table_name_91 WHERE content = "tematico" AND package_option = "sky tv" AND television_service = "lei" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 television service that has package with sky tv, and it in Italian English? ### Context: CREATE TABLE table_name_30 (television_service VARCHAR, package_option VARCHAR, language VARCHAR) [/INST] ### Response: SELECT television_service FROM table_name_30 WHERE package_option = "sky tv" AND language = "italian english" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 language is the Tematico content with a sky tv package, and Fox Crime television service? ### Context: CREATE TABLE table_name_55 (language VARCHAR, television_service VARCHAR, content VARCHAR, package_option VARCHAR) [/INST] ### Response: SELECT language FROM table_name_55 WHERE content = "tematico" AND package_option = "sky tv" AND television_service = "fox crime" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country has a television service with Cartello Promozionale sky hd? ### Context: CREATE TABLE table_name_95 (country VARCHAR, television_service VARCHAR) [/INST] ### Response: SELECT country FROM table_name_95 WHERE television_service = "cartello promozionale sky hd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country has a Fox television service? ### Context: CREATE TABLE table_name_7 (country VARCHAR, television_service VARCHAR) [/INST] ### Response: SELECT country FROM table_name_7 WHERE television_service = "fox" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 drove for Mathiasen Motorsports with dane cameron as pole position? ### Context: CREATE TABLE table_name_62 (winning_driver VARCHAR, winning_team VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_62 WHERE winning_team = "mathiasen motorsports" AND pole_position = "dane cameron" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning team did Jonathan bomarito drive for when jonathan summerton had the fastest lap? ### Context: CREATE TABLE table_name_84 (winning_team VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT winning_team FROM table_name_84 WHERE winning_driver = "jonathan bomarito" AND fastest_lap = "jonathan summerton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Douglas Soares had the fastest lap, what was the report? ### Context: CREATE TABLE table_name_39 (report VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT report FROM table_name_39 WHERE fastest_lap = "douglas soares" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning team of mathiasen motorsports has a pole position of jonathan bomarito, who has the fastest lap? ### Context: CREATE TABLE table_name_97 (fastest_lap VARCHAR, winning_team VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_name_97 WHERE winning_team = "mathiasen motorsports" AND pole_position = "jonathan bomarito" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver jonathan summerton won and dane cameron had the fastest lap, what was the report? ### Context: CREATE TABLE table_name_42 (report VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT report FROM table_name_42 WHERE winning_driver = "jonathan summerton" AND fastest_lap = "dane cameron" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Competition of olympic games, and a Venue of atlanta, united states? ### Context: CREATE TABLE table_name_93 (year INTEGER, competition VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_93 WHERE competition = "olympic games" AND venue = "atlanta, united states" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Competition has a Year of 1993? ### Context: CREATE TABLE table_name_30 (competition VARCHAR, year VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_30 WHERE year = 1993 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Notes has a Competition of venice marathon? ### Context: CREATE TABLE table_name_78 (notes VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT notes FROM table_name_78 WHERE competition = "venice marathon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Venue of atlanta, united states? ### Context: CREATE TABLE table_name_13 (year VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT year FROM table_name_13 WHERE venue = "atlanta, united states" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Notes has a Venue of barcelona, spain? ### Context: CREATE TABLE table_name_89 (notes VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT notes FROM table_name_89 WHERE venue = "barcelona, spain" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Event has a Year of 1986? ### Context: CREATE TABLE table_name_36 (event VARCHAR, year VARCHAR) [/INST] ### Response: SELECT event FROM table_name_36 WHERE year = 1986 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average share for episodes with over 7.82 viewers, ranks of 3 and a weekly rank of 54? ### Context: CREATE TABLE table_name_56 (share INTEGER, rank__week_ VARCHAR, viewers__millions_ VARCHAR, rank__timeslot_ VARCHAR) [/INST] ### Response: SELECT AVG(share) FROM table_name_56 WHERE viewers__millions_ > 7.82 AND rank__timeslot_ = "3" AND rank__week_ = "54" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the weekly rank for the episode with a share over 7 and a rating/share of 2.3/7? ### Context: CREATE TABLE table_name_77 (rank__week_ VARCHAR, share VARCHAR, rating VARCHAR) [/INST] ### Response: SELECT rank__week_ FROM table_name_77 WHERE share > 7 AND rating / SHARE(18 - 49) = 2.3 / 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 weekly rank of the episode with more than 7.14mil viewers, a nightly rank of 5, and a rating/share of 2.9/10? ### Context: CREATE TABLE table_name_73 (rank__week_ VARCHAR, viewers__millions_ VARCHAR, rank__night_ VARCHAR, rating VARCHAR) [/INST] ### Response: SELECT rank__week_ FROM table_name_73 WHERE viewers__millions_ > 7.14 AND rank__night_ = "5" AND rating / SHARE(18 - 49) = 2.9 / 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total gain for Brandon Mcrae with a loss less than 4, and an Avg/g less than -0.1? ### Context: CREATE TABLE table_name_90 (gain VARCHAR, avg_g VARCHAR, long VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(gain) FROM table_name_90 WHERE long < 4 AND name = "brandon mcrae" AND avg_g < -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: What is the lowest long with a Gp-GS of 11-8, and a gain less than 228? ### Context: CREATE TABLE table_name_16 (long INTEGER, gp_gs VARCHAR, gain VARCHAR) [/INST] ### Response: SELECT MIN(long) FROM table_name_16 WHERE gp_gs = "11-8" AND gain < 228 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gain with an 18 long, and a loss less than 191? ### Context: CREATE TABLE table_name_40 (gain INTEGER, long VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT MIN(gain) FROM table_name_40 WHERE long = 18 AND loss < 191 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of 1938 values where 1933 values are under 68.3 and 1940 valures are under 4.02? ### Context: CREATE TABLE table_name_8 (Id VARCHAR) [/INST] ### Response: SELECT SUM(1938) FROM table_name_8 WHERE 1933 < 68.3 AND 1940 < 4.02 </s>