inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which date is the team @ la clippers? ### Context: CREATE TABLE table_23284271_10 (date VARCHAR, team VARCHAR) ### Response: ### Response: SELECT date FROM table_23284271_10 WHERE team = "@ LA Clippers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the director of Clean Pastures? ### Context: CREATE TABLE table_name_12 (director VARCHAR, title VARCHAR) ### Response: ### Response: SELECT director FROM table_name_12 WHERE title = "clean pastures"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest Pick #, when Position is REC, and when CFL Team is Hamilton Tiger-Cats? ### Context: CREATE TABLE table_name_62 (pick__number INTEGER, position VARCHAR, cfl_team VARCHAR) ### Response: ### Response: SELECT MIN(pick__number) FROM table_name_62 WHERE position = "rec" AND cfl_team = "hamilton tiger-cats"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is TV Time, when Opponent is At Cincinnati Bengals? ### Context: CREATE TABLE table_name_89 (tv_time VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT tv_time FROM table_name_89 WHERE opponent = "at cincinnati bengals"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How did the match end when she played with caroline wozniacki? ### Context: CREATE TABLE table_25505246_8 (outcome VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT outcome FROM table_25505246_8 WHERE partner = "Caroline Wozniacki"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average first elected year that has a district of 11 and a committee of environmental matters? ### Context: CREATE TABLE table_name_18 (first_elected INTEGER, district VARCHAR, committee VARCHAR) ### Response: ### Response: SELECT AVG(first_elected) FROM table_name_18 WHERE district = "11" AND committee = "environmental matters"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the largest laps led with the lotus-ford 34/3 chassis? ### Context: CREATE TABLE table_181892_4 (laps_led INTEGER, chassis VARCHAR) ### Response: ### Response: SELECT MAX(laps_led) FROM table_181892_4 WHERE chassis = "Lotus-Ford 34/3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result of the game that had 56,500 in attendance? ### Context: CREATE TABLE table_name_15 (result VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT result FROM table_name_15 WHERE attendance = "56,500"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the link for january 31 – february 3, 2011? ### Context: CREATE TABLE table_name_64 (link VARCHAR, date_of_polling VARCHAR) ### Response: ### Response: SELECT link FROM table_name_64 WHERE date_of_polling = "january 31 – february 3, 2011"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which tournament has a value of 2R in 2008? ### Context: CREATE TABLE table_name_54 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_54 WHERE 2008 = "2r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In week 9 who were the opponent? ### Context: CREATE TABLE table_14608759_1 (opponent VARCHAR, week VARCHAR) ### Response: ### Response: SELECT opponent FROM table_14608759_1 WHERE week = 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the least amount of losses for 23 points ### Context: CREATE TABLE table_18703133_1 (losses INTEGER, points VARCHAR) ### Response: ### Response: SELECT MIN(losses) FROM table_18703133_1 WHERE points = 23</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score of the game with tie number 65? ### Context: CREATE TABLE table_name_23 (score VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT score FROM table_name_23 WHERE tie_no = "65"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the finish for the golfer with a To par of +2? ### Context: CREATE TABLE table_name_91 (finish VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_91 WHERE to_par = "+2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the total against in uefa champions league/european cup with more than 1 draw? ### Context: CREATE TABLE table_name_75 (against INTEGER, competition VARCHAR, draw VARCHAR) ### Response: ### Response: SELECT SUM(against) FROM table_name_75 WHERE competition = "uefa champions league/european cup" AND draw > 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which team picked a player(s) from South Carolina? ### Context: CREATE TABLE table_name_73 (cfl_team VARCHAR, college VARCHAR) ### Response: ### Response: SELECT cfl_team FROM table_name_73 WHERE college = "south carolina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the results for years after 2007? ### Context: CREATE TABLE table_name_17 (result VARCHAR, year INTEGER) ### Response: ### Response: SELECT result FROM table_name_17 WHERE year > 2007</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lost when the club was Barry RFC? ### Context: CREATE TABLE table_name_60 (lost VARCHAR, club VARCHAR) ### Response: ### Response: SELECT lost FROM table_name_60 WHERE club = "barry rfc"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest grid for Roberto Rolfo with more than 26 laps? ### Context: CREATE TABLE table_name_87 (grid INTEGER, rider VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT MIN(grid) FROM table_name_87 WHERE rider = "roberto rolfo" AND laps > 26</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the Attendance on 31 January 1987? ### Context: CREATE TABLE table_name_44 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(attendance) FROM table_name_44 WHERE date = "31 january 1987"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: During what years was Christine Kehoe in Assembly? ### Context: CREATE TABLE table_name_71 (years_in_assembly VARCHAR, name VARCHAR) ### Response: ### Response: SELECT years_in_assembly FROM table_name_71 WHERE name = "christine kehoe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average number of goals against with more than 12 wins, 12 losses, and a position greater than 3? ### Context: CREATE TABLE table_name_98 (goals_against INTEGER, position VARCHAR, wins VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT AVG(goals_against) FROM table_name_98 WHERE wins > 12 AND losses = 12 AND position > 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the density (hab/ km²) when the altitude m is 1300? ### Context: CREATE TABLE table_name_61 (density__hab__km²__ VARCHAR, altitude_m VARCHAR) ### Response: ### Response: SELECT density__hab__km²__ FROM table_name_61 WHERE altitude_m = "1300"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which name has Years of 1–8, a Decile of 9, and a Roll smaller than 141? ### Context: CREATE TABLE table_name_20 (name VARCHAR, roll VARCHAR, years VARCHAR, decile VARCHAR) ### Response: ### Response: SELECT name FROM table_name_20 WHERE years = "1–8" AND decile = 9 AND roll < 141</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What song had an index of m6? ### Context: CREATE TABLE table_name_68 (song VARCHAR, index VARCHAR) ### Response: ### Response: SELECT song FROM table_name_68 WHERE index = "m6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the set 5 of the match with a set 2 of 26-24 and a set 1 of 27-25? ### Context: CREATE TABLE table_name_25 (set_5 VARCHAR, set_2 VARCHAR, set_1 VARCHAR) ### Response: ### Response: SELECT set_5 FROM table_name_25 WHERE set_2 = "26-24" AND set_1 = "27-25"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the pick of player ian schultz from Canada? ### Context: CREATE TABLE table_name_8 (pick VARCHAR, nationality VARCHAR, player VARCHAR) ### Response: ### Response: SELECT pick FROM table_name_8 WHERE nationality = "canada" AND player = "ian schultz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What band is the highest and has a System of gsm-450? ### Context: CREATE TABLE table_name_22 (band INTEGER, system VARCHAR) ### Response: ### Response: SELECT MAX(band) FROM table_name_22 WHERE system = "gsm-450"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the speed for the rider with a time of 1:14.15.64? ### Context: CREATE TABLE table_name_52 (speed VARCHAR, time VARCHAR) ### Response: ### Response: SELECT speed FROM table_name_52 WHERE time = "1:14.15.64"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the tie number that has Portsmouth Home team ### Context: CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_52 WHERE home_team = "portsmouth"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Project Name with a Country that is kazakhstan and a Peak that is 150? ### Context: CREATE TABLE table_name_90 (project_name VARCHAR, country VARCHAR, peak VARCHAR) ### Response: ### Response: SELECT project_name FROM table_name_90 WHERE country = "kazakhstan" AND peak = "150"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which artist has the most albums? ### Context: CREATE TABLE ALBUM (ArtistId VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR) ### Response: ### Response: SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the terps points for the nov. 25/05 game? ### Context: CREATE TABLE table_22862203_2 (terps_points VARCHAR, date VARCHAR) ### Response: ### Response: SELECT terps_points FROM table_22862203_2 WHERE date = "Nov. 25/05"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the collegiate institution in queens ### Context: CREATE TABLE table_18159601_1 (collegiate_institution VARCHAR, city VARCHAR) ### Response: ### Response: SELECT collegiate_institution FROM table_18159601_1 WHERE city = "Queens"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many people saw the game won by G. Claypool (4-1)? ### Context: CREATE TABLE table_27862483_3 (attendance INTEGER, win VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_27862483_3 WHERE win = "G. Claypool (4-1)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was the livery of Kinneil Sandy Red? ### Context: CREATE TABLE table_name_32 (date VARCHAR, livery VARCHAR) ### Response: ### Response: SELECT date FROM table_name_32 WHERE livery = "kinneil sandy red"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many byes when the draws are fewer than 0? ### Context: CREATE TABLE table_name_84 (byes INTEGER, draws INTEGER) ### Response: ### Response: SELECT AVG(byes) FROM table_name_84 WHERE draws < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many awards did milagros gutierrez win? ### Context: CREATE TABLE table_1825751_14 (other_awards VARCHAR, delegate VARCHAR) ### Response: ### Response: SELECT other_awards FROM table_1825751_14 WHERE delegate = "Milagros Gutierrez"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What assists has the Team SMU and the total points of 85? ### Context: CREATE TABLE table_name_14 (assists VARCHAR, team VARCHAR, total_points VARCHAR) ### Response: ### Response: SELECT assists FROM table_name_14 WHERE team = "smu" AND total_points = "85"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the sum of Grid for giancarlo fisichella ### Context: CREATE TABLE table_name_84 (grid INTEGER, driver VARCHAR) ### Response: ### Response: SELECT SUM(grid) FROM table_name_84 WHERE driver = "giancarlo fisichella"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Week 7 Oct 12 has a Week 6 Oct 5 of boise state (4-0)? ### Context: CREATE TABLE table_name_23 (week_7_oct_12 VARCHAR, week_6_oct_5 VARCHAR) ### Response: ### Response: SELECT week_7_oct_12 FROM table_name_23 WHERE week_6_oct_5 = "boise state (4-0)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the most common hometown of teachers. ### Context: CREATE TABLE teacher (Hometown VARCHAR) ### Response: ### Response: SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the rank for Mar 17 when the April 21 rank is 10? ### Context: CREATE TABLE table_name_96 (mar_17 VARCHAR, april_21 VARCHAR) ### Response: ### Response: SELECT mar_17 FROM table_name_96 WHERE april_21 = "10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest lane for Christine Mailliet ranked less than 39? ### Context: CREATE TABLE table_name_31 (lane INTEGER, name VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MAX(lane) FROM table_name_31 WHERE name = "christine mailliet" AND rank < 39</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the mInister who left office during 1960? ### Context: CREATE TABLE table_name_58 (minister VARCHAR, left_office VARCHAR) ### Response: ### Response: SELECT minister FROM table_name_58 WHERE left_office = "1960"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the number of students in total. ### Context: CREATE TABLE STUDENT (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM STUDENT</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many Points have an Against smaller than 43, and a Position smaller than 1? ### Context: CREATE TABLE table_name_49 (points INTEGER, against VARCHAR, position VARCHAR) ### Response: ### Response: SELECT SUM(points) FROM table_name_49 WHERE against < 43 AND position < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the most current year where the women's doubles champions are astrid eidenbenz claudia jehle ### Context: CREATE TABLE table_15001681_1 (year INTEGER, womens_doubles VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_15001681_1 WHERE womens_doubles = "Astrid Eidenbenz Claudia Jehle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what's the total number of race winner with rnd being 10 ### Context: CREATE TABLE table_1140074_2 (race VARCHAR, rnd VARCHAR) ### Response: ### Response: SELECT COUNT(race) AS Winner FROM table_1140074_2 WHERE rnd = 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the year for clay for boston and guillermo vilas ### Context: CREATE TABLE table_23235767_4 (year VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR, championship VARCHAR) ### Response: ### Response: SELECT year FROM table_23235767_4 WHERE surface = "Clay" AND championship = "Boston" AND opponent_in_the_final = "Guillermo Vilas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games was Damien Wilkins (27) the high scorer? ### Context: CREATE TABLE table_11964154_2 (game INTEGER, high_points VARCHAR) ### Response: ### Response: SELECT MIN(game) FROM table_11964154_2 WHERE high_points = "Damien Wilkins (27)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many millions of U.S. viewers watched the show with a production code of 3T5769? ### Context: CREATE TABLE table_11694832_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT us_viewers__millions_ FROM table_11694832_1 WHERE production_code = "3T5769"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score on January 26? ### Context: CREATE TABLE table_name_79 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_79 WHERE date = "january 26"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Ivan Ciernik's average points with less than 11 goals? ### Context: CREATE TABLE table_name_29 (points INTEGER, player VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT AVG(points) FROM table_name_29 WHERE player = "ivan ciernik" AND goals < 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of failure for the country of Russia, and a Family of r14 r-14, and a Partial failures smaller than 0? ### Context: CREATE TABLE table_name_76 (failures VARCHAR, partial_failures VARCHAR, country VARCHAR, family VARCHAR) ### Response: ### Response: SELECT COUNT(failures) FROM table_name_76 WHERE country = "russia" AND family = "r14 r-14" AND partial_failures < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: The Europe listing of 117 0 (8) belongs to what league? ### Context: CREATE TABLE table_name_5 (league VARCHAR, europe VARCHAR) ### Response: ### Response: SELECT league FROM table_name_5 WHERE europe = "117 0 (8)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what's the date with tournament value of ford senior players championship ### Context: CREATE TABLE table_11621915_1 (date VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT date FROM table_11621915_1 WHERE tournament = "Ford Senior Players Championship"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player has 1299 goals? ### Context: CREATE TABLE table_name_6 (player VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT player FROM table_name_6 WHERE goals = "1299"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the name of ships whose nationality is either United States or United Kingdom. ### Context: CREATE TABLE ship (Name VARCHAR, Nationality VARCHAR) ### Response: ### Response: SELECT Name FROM ship WHERE Nationality = "United States" OR Nationality = "United Kingdom"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In 2004 who was favourite maa? ### Context: CREATE TABLE table_name_6 (character VARCHAR, category VARCHAR, year VARCHAR) ### Response: ### Response: SELECT character FROM table_name_6 WHERE category = "favourite maa" AND year = 2004</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average Position with less than 57 against and the team is Juventus? ### Context: CREATE TABLE table_name_19 (position INTEGER, against VARCHAR, team VARCHAR) ### Response: ### Response: SELECT AVG(position) FROM table_name_19 WHERE against < 57 AND team = "juventus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the episode for run time 25:05 ### Context: CREATE TABLE table_2102782_1 (episode VARCHAR, run_time VARCHAR) ### Response: ### Response: SELECT episode FROM table_2102782_1 WHERE run_time = "25:05"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most october for game less than 1 ### Context: CREATE TABLE table_name_19 (october INTEGER, game INTEGER) ### Response: ### Response: SELECT MAX(october) FROM table_name_19 WHERE game < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the last round the team drafted? ### Context: CREATE TABLE table_14999879_2 (round INTEGER) ### Response: ### Response: SELECT MAX(round) FROM table_14999879_2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many players with a position are listed for the 2009 season? ### Context: CREATE TABLE table_15463188_17 (position VARCHAR, season VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_15463188_17 WHERE season = "2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the team with the date of vacancy 8 dec 2010? ### Context: CREATE TABLE table_27383390_4 (team VARCHAR, date_of_vacancy VARCHAR) ### Response: ### Response: SELECT team FROM table_27383390_4 WHERE date_of_vacancy = "8 Dec 2010"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many champions were there in 2009? ### Context: CREATE TABLE table_1167698_1 (champion VARCHAR, season VARCHAR) ### Response: ### Response: SELECT COUNT(champion) FROM table_1167698_1 WHERE season = "2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the end address for the Class E (Reserved)? ### Context: CREATE TABLE table_name_61 (end_address VARCHAR, class VARCHAR) ### Response: ### Response: SELECT end_address FROM table_name_61 WHERE class = "class e (reserved)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which home team was playing on January 13? ### Context: CREATE TABLE table_name_87 (home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home FROM table_name_87 WHERE date = "january 13"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the game against away team crewe alexandra? ### Context: CREATE TABLE table_name_3 (score VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_3 WHERE away_team = "crewe alexandra"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When did the Texans play BYE? ### Context: CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_8 WHERE opponent = "bye"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date when the opponent was Sheffield Scimitars and the venue was Home? ### Context: CREATE TABLE table_name_4 (date VARCHAR, opponent VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_4 WHERE opponent = "sheffield scimitars" AND venue = "home"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the population 2000 census for 77 area ### Context: CREATE TABLE table_14986292_1 (population_2000_census VARCHAR, area__km²_ VARCHAR) ### Response: ### Response: SELECT population_2000_census FROM table_14986292_1 WHERE area__km²_ = "77"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Date has a Location Attendance of reunion arena? ### Context: CREATE TABLE table_name_44 (date VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_44 WHERE location_attendance = "reunion arena"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What contestant is from santo domingo este and has height smaller than 1.79? ### Context: CREATE TABLE table_name_7 (contestant VARCHAR, height VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT contestant FROM table_name_7 WHERE height < 1.79 AND hometown = "santo domingo este"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the number of web accelerators used for each Operating system. ### Context: CREATE TABLE web_client_accelerator (Operating_system VARCHAR) ### Response: ### Response: SELECT Operating_system, COUNT(*) FROM web_client_accelerator GROUP BY Operating_system</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Please show the most common status of roller coasters. ### Context: CREATE TABLE roller_coaster (Status VARCHAR) ### Response: ### Response: SELECT Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the finish value for a start of 19? ### Context: CREATE TABLE table_name_67 (finish VARCHAR, start VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_67 WHERE start = "19"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Place, when Player is "Justin Leonard"? ### Context: CREATE TABLE table_name_46 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_46 WHERE player = "justin leonard"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Main use of transmitter solt in Hungary? ### Context: CREATE TABLE table_name_75 (main_use VARCHAR, country VARCHAR, name VARCHAR) ### Response: ### Response: SELECT main_use FROM table_name_75 WHERE country = "hungary" AND name = "transmitter solt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the earliest year with a label-Nr of st-43? ### Context: CREATE TABLE table_name_37 (year INTEGER, label VARCHAR, Nr VARCHAR, st VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_37 WHERE label - Nr = st - 43</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is every prefix class for the equivalent of NTE160? ### Context: CREATE TABLE table_30011_2 (prefix_class VARCHAR, equivalent VARCHAR) ### Response: ### Response: SELECT prefix_class FROM table_30011_2 WHERE equivalent = "NTE160"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the total number of places which has played more than 18 ### Context: CREATE TABLE table_name_59 (place VARCHAR, played INTEGER) ### Response: ### Response: SELECT COUNT(place) FROM table_name_59 WHERE played > 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Bronze has a Silver larger than 1, a Total larger than 3, a Nation of turkey, and a Gold smaller than 2? ### Context: CREATE TABLE table_name_53 (bronze INTEGER, gold VARCHAR, nation VARCHAR, silver VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(bronze) FROM table_name_53 WHERE silver > 1 AND total > 3 AND nation = "turkey" AND gold < 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the numbers of the nba draft where the player went to kentucky ### Context: CREATE TABLE table_11677760_31 (nba_draft VARCHAR, college VARCHAR) ### Response: ### Response: SELECT nba_draft FROM table_11677760_31 WHERE college = "Kentucky"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the record of Game 56? ### Context: CREATE TABLE table_name_37 (record VARCHAR, game VARCHAR) ### Response: ### Response: SELECT record FROM table_name_37 WHERE game = 56</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest Shooting Total with a Bronze less than 0? ### Context: CREATE TABLE table_name_40 (total INTEGER, sport VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT MAX(total) FROM table_name_40 WHERE sport = "shooting" AND bronze < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What round was the opponent Manny Gamburyan? ### Context: CREATE TABLE table_name_92 (round VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT round FROM table_name_92 WHERE opponent = "manny gamburyan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the 2013 result for the grand slam tournaments? ### Context: CREATE TABLE table_name_76 (tournament VARCHAR) ### Response: ### Response: SELECT 2013 FROM table_name_76 WHERE tournament = "grand slam tournaments"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest total medals won by a nation that had 7 bronze but more than 12 silver medals? ### Context: CREATE TABLE table_name_43 (total INTEGER, bronze VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT MAX(total) FROM table_name_43 WHERE bronze = 7 AND silver > 12</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When losses is 6 and draws is more than 0, what is the greatest byes? ### Context: CREATE TABLE table_name_24 (byes INTEGER, losses VARCHAR, draws VARCHAR) ### Response: ### Response: SELECT MAX(byes) FROM table_name_24 WHERE losses = 6 AND draws > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In which tournament was Silke Meier the opponent in the final? ### Context: CREATE TABLE table_name_8 (tournament VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_8 WHERE opponent_in_the_final = "silke meier"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the reidsville for enrollment ### Context: CREATE TABLE table_25330991_3 (reidsville VARCHAR, information VARCHAR) ### Response: ### Response: SELECT reidsville FROM table_25330991_3 WHERE information = "Enrollment"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the high points that have 42 as the game? ### Context: CREATE TABLE table_name_65 (high_points VARCHAR, game VARCHAR) ### Response: ### Response: SELECT high_points FROM table_name_65 WHERE game = 42</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the weight of the bullet used in a Remington? ### Context: CREATE TABLE table_16010376_1 (bullet_weight VARCHAR, source VARCHAR) ### Response: ### Response: SELECT bullet_weight FROM table_16010376_1 WHERE source = "Remington"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: display the employee id and salary of all employees who report to Payam (first name). ### Context: CREATE TABLE employees (employee_id VARCHAR, salary VARCHAR, manager_id VARCHAR, first_name VARCHAR) ### Response: ### Response: SELECT employee_id, salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam')</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What series number is the episode with production code bdf101? ### Context: CREATE TABLE table_28019988_2 (series__number INTEGER, production_code VARCHAR) ### Response: ### Response: SELECT MAX(series__number) FROM table_28019988_2 WHERE production_code = "BDF101"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Return reviewer name, movie title, stars, and ratingDate. And sort the data first by reviewer name, then by movie title, and lastly by number of stars. ### Context: CREATE TABLE Rating (stars VARCHAR, ratingDate VARCHAR, mID VARCHAR, rID VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR) ### Response: ### Response: SELECT T3.name, T2.title, T1.stars, T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name, T2.title, T1.stars</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the ranking of episode #19? ### Context: CREATE TABLE table_26200084_1 (rank__week_ VARCHAR, _number VARCHAR) ### Response: ### Response: SELECT rank__week_ FROM table_26200084_1 WHERE _number = 19</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the host for midwest thomas assembly center ### Context: CREATE TABLE table_name_85 (host VARCHAR, region VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT host FROM table_name_85 WHERE region = "midwest" AND venue = "thomas assembly center"</s>