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 ARE THE LAPS WITH POINTS LARGER THAN 5, WITH FORSYTHE RACING, AND GRID 5? ### Context: CREATE TABLE table_name_22 (laps INTEGER, grid VARCHAR, points VARCHAR, team VARCHAR) [/INST] ### Response: SELECT MIN(laps) FROM table_name_22 WHERE points > 5 AND team = "forsythe racing" AND grid = 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 SCORE WHEN THE COMPETITION WAS 1978 world cup qualification? ### Context: CREATE TABLE table_name_2 (score VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT score FROM table_name_2 WHERE competition = "1978 world cup qualification" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pick number for jerry hackenbruck who was overall pick less than 282? ### Context: CREATE TABLE table_name_78 (pick INTEGER, name VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT AVG(pick) FROM table_name_78 WHERE name = "jerry hackenbruck" AND overall < 282 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest draft pick number for mark doak who had an overall pick smaller than 147? ### Context: CREATE TABLE table_name_30 (pick INTEGER, name VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT MIN(pick) FROM table_name_30 WHERE name = "mark doak" AND overall < 147 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What position did the player have who was from the college of california? ### Context: CREATE TABLE table_name_55 (position VARCHAR, college VARCHAR) [/INST] ### Response: SELECT position FROM table_name_55 WHERE college = "california" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college did jerry hackenbruck come from who had an overall pick less than 344? ### Context: CREATE TABLE table_name_60 (college VARCHAR, overall VARCHAR, name VARCHAR) [/INST] ### Response: SELECT college FROM table_name_60 WHERE overall < 344 AND name = "jerry hackenbruck" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent on 03/18/08? ### Context: CREATE TABLE table_name_41 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_41 WHERE date = "03/18/08" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the site where the game was held in the city of Delaware? ### Context: CREATE TABLE table_name_39 (site VARCHAR, city VARCHAR) [/INST] ### Response: SELECT site FROM table_name_39 WHERE city = "delaware" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city was the game held in when the opponent was Towson? ### Context: CREATE TABLE table_name_93 (city VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT city FROM table_name_93 WHERE opponent = "towson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponen in baltimore, at 2:00pm, on 4/06/08? ### Context: CREATE TABLE table_name_11 (opponent VARCHAR, date VARCHAR, city VARCHAR, time VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_11 WHERE city = "baltimore" AND time = "2:00pm" AND date = "4/06/08" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the game held at UMBC Field? ### Context: CREATE TABLE table_name_47 (date VARCHAR, site VARCHAR) [/INST] ### Response: SELECT date FROM table_name_47 WHERE site = "umbc field" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the game held in Towson? ### Context: CREATE TABLE table_name_76 (date VARCHAR, city VARCHAR) [/INST] ### Response: SELECT date FROM table_name_76 WHERE city = "towson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season premiered on 29 October 1990 and had more than 6 episodes? ### Context: CREATE TABLE table_name_94 (series INTEGER, premiere VARCHAR, episodes VARCHAR) [/INST] ### Response: SELECT MAX(series) FROM table_name_94 WHERE premiere = "29 october 1990" AND episodes > 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 DATE HAD A SCORE OF 71-64? ### Context: CREATE TABLE table_name_46 (date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_46 WHERE score = "71-64" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT SCORE WAS ON SEPTEMBER 21? ### Context: CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_50 WHERE date = "september 21" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT SCORE HAD A RECORD OF 1-1? ### Context: CREATE TABLE table_name_42 (score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_42 WHERE record = "1-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 OPPONENT HAD A DATE OF SEPTEMBER 28? ### Context: CREATE TABLE table_name_17 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_17 WHERE date = "september 28" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT SCORE HAD A LOSS AND RECORD OF 1-1? ### Context: CREATE TABLE table_name_75 (score VARCHAR, result VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_75 WHERE result = "loss" AND record = "1-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: Who is the alternate for Andy Brown, and Nick Grady? ### Context: CREATE TABLE table_name_7 (alternate__2_ VARCHAR, coach VARCHAR, captain VARCHAR) [/INST] ### Response: SELECT alternate__2_ FROM table_name_7 WHERE coach = "andy brown" AND captain = "nick grady" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 captain has Gintare Karpaviciute as an alternate? ### Context: CREATE TABLE table_name_33 (captain VARCHAR, alternate__1_ VARCHAR) [/INST] ### Response: SELECT captain FROM table_name_33 WHERE alternate__1_ = "gintare karpaviciute" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 coach works with Robert Harvey? ### Context: CREATE TABLE table_name_1 (coach VARCHAR, captain VARCHAR) [/INST] ### Response: SELECT coach FROM table_name_1 WHERE captain = "robert harvey" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nickname has Founded of 1954? ### Context: CREATE TABLE table_name_66 (nickname VARCHAR, founded VARCHAR) [/INST] ### Response: SELECT nickname FROM table_name_66 WHERE founded = 1954 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team played in the Boston Garden when the final score was L 118-130? ### Context: CREATE TABLE table_name_18 (team VARCHAR, location_attendance VARCHAR, score VARCHAR) [/INST] ### Response: SELECT team FROM table_name_18 WHERE location_attendance = "boston garden" AND score = "l 118-130" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team played at the Boston Garden when the series was 1-0? ### Context: CREATE TABLE table_name_55 (team VARCHAR, location_attendance VARCHAR, series VARCHAR) [/INST] ### Response: SELECT team FROM table_name_55 WHERE location_attendance = "boston garden" AND series = "1-0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which driver had a grid of 2? ### Context: CREATE TABLE table_name_63 (driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_63 WHERE grid = 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest grid value that had 16 points and a team of Mi-Jack Conquest Racing? ### Context: CREATE TABLE table_name_79 (grid INTEGER, team VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MIN(grid) FROM table_name_79 WHERE team = "mi-jack conquest racing" AND points = "16" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of points associated with 165 laps? ### Context: CREATE TABLE table_name_12 (points VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT points FROM table_name_12 WHERE laps = 165 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of laps associated with 8 points and a grid under 8? ### Context: CREATE TABLE table_name_9 (laps VARCHAR, points VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT COUNT(laps) FROM table_name_9 WHERE points = "8" AND grid < 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 lowest height in feet for the building located in platz der einheit 1, gallus, that was built after 1961 with a height less than 130 meters? ### Context: CREATE TABLE table_name_62 (height__ft_ INTEGER, height__m_ VARCHAR, year_built VARCHAR, location VARCHAR) [/INST] ### Response: SELECT MIN(height__ft_) FROM table_name_62 WHERE year_built > 1961 AND location = "platz der einheit 1, gallus" AND height__m_ < 130 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of the heights in meters for the commerzbank tower built after 1984? ### Context: CREATE TABLE table_name_70 (height__m_ INTEGER, year_built VARCHAR, name VARCHAR) [/INST] ### Response: SELECT SUM(height__m_) FROM table_name_70 WHERE year_built > 1984 AND name = "commerzbank tower" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the earliest year that the building in sonnemannstraße/rückertstraße, ostend was built with a height larger than 185 meters? ### Context: CREATE TABLE table_name_26 (year_built INTEGER, location VARCHAR, height__m_ VARCHAR) [/INST] ### Response: SELECT MIN(year_built) FROM table_name_26 WHERE location = "sonnemannstraße/rückertstraße, ostend" AND height__m_ > 185 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 height in meters for the building located in mailänder straße 1, sachsenhausen-süd, with a height shorter than 328.1 ft? ### Context: CREATE TABLE table_name_70 (height__m_ INTEGER, location VARCHAR, height__ft_ VARCHAR) [/INST] ### Response: SELECT MIN(height__m_) FROM table_name_70 WHERE location = "mailänder straße 1, sachsenhausen-süd" AND height__ft_ < 328.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 average population vlue for an area smaller than 26.69 square km and has an official name of Rogersville? ### Context: CREATE TABLE table_name_71 (population INTEGER, area_km_2 VARCHAR, official_name VARCHAR) [/INST] ### Response: SELECT AVG(population) FROM table_name_71 WHERE area_km_2 < 26.69 AND official_name = "rogersville" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the name of the album from 2012 with a Hammer Music / Nail Records label? ### Context: CREATE TABLE table_name_50 (album VARCHAR, label VARCHAR, year VARCHAR) [/INST] ### Response: SELECT album FROM table_name_50 WHERE label = "hammer music / nail records" AND year = 2012 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year had the Hungarian top 40 album charts of 3? ### Context: CREATE TABLE table_name_69 (year VARCHAR, hungarian_top_40_album_charts VARCHAR) [/INST] ### Response: SELECT year FROM table_name_69 WHERE hungarian_top_40_album_charts = "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 type of release was Napisten Hava? ### Context: CREATE TABLE table_name_81 (release_type VARCHAR, album VARCHAR) [/INST] ### Response: SELECT release_type FROM table_name_81 WHERE album = "napisten hava" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name of the album that was a demo release? ### Context: CREATE TABLE table_name_44 (album VARCHAR, release_type VARCHAR) [/INST] ### Response: SELECT album FROM table_name_44 WHERE release_type = "demo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 serials issued in 1982 with a format of ABC-123? ### Context: CREATE TABLE table_name_60 (serials_issued VARCHAR, serial_format VARCHAR, issued VARCHAR) [/INST] ### Response: SELECT serials_issued FROM table_name_60 WHERE serial_format = "abc-123" AND issued = "1982" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 design has a serial format of AB-12-34? ### Context: CREATE TABLE table_name_46 (design VARCHAR, serial_format VARCHAR) [/INST] ### Response: SELECT design FROM table_name_46 WHERE serial_format = "ab-12-34" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 serials were issued with a design of black on yellow? ### Context: CREATE TABLE table_name_78 (serials_issued VARCHAR, design VARCHAR) [/INST] ### Response: SELECT serials_issued FROM table_name_78 WHERE design = "black on yellow" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 outgoing manager for the team of fc carl zeiss jena? ### Context: CREATE TABLE table_name_36 (outgoing_manager VARCHAR, team VARCHAR) [/INST] ### Response: SELECT outgoing_manager FROM table_name_36 WHERE team = "fc carl zeiss jena" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the manager come from who departed due to an end of tenure as caretaker? ### Context: CREATE TABLE table_name_56 (team VARCHAR, manner_of_departure VARCHAR) [/INST] ### Response: SELECT team FROM table_name_56 WHERE manner_of_departure = "end of tenure as caretaker" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date of appointment for the replaced manager, reiner geyer? ### Context: CREATE TABLE table_name_73 (date_of_appointment VARCHAR, replaced_by VARCHAR) [/INST] ### Response: SELECT date_of_appointment FROM table_name_73 WHERE replaced_by = "reiner geyer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date of vacancy after the outgoing manager, ralf santelli departed? ### Context: CREATE TABLE table_name_2 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR) [/INST] ### Response: SELECT date_of_vacancy FROM table_name_2 WHERE outgoing_manager = "ralf santelli" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 outgoing manager who departed due to fc energie cottbus purchased rights? ### Context: CREATE TABLE table_name_80 (outgoing_manager VARCHAR, manner_of_departure VARCHAR) [/INST] ### Response: SELECT outgoing_manager FROM table_name_80 WHERE manner_of_departure = "fc energie cottbus purchased rights" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 times is the position lb and the overall is less than 46? ### Context: CREATE TABLE table_name_25 (pick VARCHAR, position VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT COUNT(pick) FROM table_name_25 WHERE position = "lb" AND overall < 46 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college when the overall is more than 76 for brian mitchell? ### Context: CREATE TABLE table_name_98 (college VARCHAR, overall VARCHAR, name VARCHAR) [/INST] ### Response: SELECT college FROM table_name_98 WHERE overall > 76 AND name = "brian mitchell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pick when the overall is less than 297 and the college is alabama? ### Context: CREATE TABLE table_name_16 (pick VARCHAR, overall VARCHAR, college VARCHAR) [/INST] ### Response: SELECT pick FROM table_name_16 WHERE overall < 297 AND college = "alabama" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the highest round when the college is penn state? ### Context: CREATE TABLE table_name_72 (round INTEGER, college VARCHAR) [/INST] ### Response: SELECT MAX(round) FROM table_name_72 WHERE college = "penn state" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1989 number when the 200 number is less than 52.8 in Arizona, New Mexico, and Utah ### Context: CREATE TABLE table_name_41 (location VARCHAR) [/INST] ### Response: SELECT SUM(1989) FROM table_name_41 WHERE 2000 < 52.8 AND location = "arizona, new mexico, and utah" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2000 at the Fort Peck Indian Reservation, Montana, when the 1979 is less than 26.8? ### Context: CREATE TABLE table_name_97 (location VARCHAR, reservation VARCHAR) [/INST] ### Response: SELECT AVG(2000) FROM table_name_97 WHERE location = "montana" AND reservation = "fort peck indian reservation" AND 1979 < 26.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 2000 number when the 1969 is 54.3, and the 1979 is less than 48.4? ### Context: CREATE TABLE table_name_88 (Id VARCHAR) [/INST] ### Response: SELECT SUM(2000) FROM table_name_88 WHERE 1969 = 54.3 AND 1979 < 48.4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 2000 number when the 1989 is less than 54.9 in Arizona, New Mexico, and Utah? ### Context: CREATE TABLE table_name_94 (location VARCHAR) [/INST] ### Response: SELECT SUM(2000) FROM table_name_94 WHERE 1989 < 54.9 AND location = "arizona, new mexico, and utah" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1979 number for Standing Rock Indian Reservation when the 1989 is less than 54.9? ### Context: CREATE TABLE table_name_51 (reservation VARCHAR) [/INST] ### Response: SELECT SUM(1979) FROM table_name_51 WHERE reservation = "standing rock indian reservation" AND 1989 < 54.9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Kerry's percentage where 66 people voted for another candidate? ### Context: CREATE TABLE table_name_71 (kerry_percentage VARCHAR, others_number VARCHAR) [/INST] ### Response: SELECT kerry_percentage FROM table_name_71 WHERE others_number = 66 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Can you tell me the average Laps that has the Time of +17.485, and the Grid smaller than 7? ### Context: CREATE TABLE table_name_16 (laps INTEGER, time VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT AVG(laps) FROM table_name_16 WHERE time = "+17.485" AND grid < 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: Can you tell me the sum of Grid that has the Manufacturer of aprilia, and the sandro cortese? ### Context: CREATE TABLE table_name_96 (grid INTEGER, manufacturer VARCHAR, rider VARCHAR) [/INST] ### Response: SELECT SUM(grid) FROM table_name_96 WHERE manufacturer = "aprilia" AND rider = "sandro cortese" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date of game 21? ### Context: CREATE TABLE table_name_85 (date VARCHAR, game VARCHAR) [/INST] ### Response: SELECT date FROM table_name_85 WHERE game = 21 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score of the game on June 10? ### Context: CREATE TABLE table_name_10 (score_time VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score_time FROM table_name_10 WHERE date = "june 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 Sum of Round, when College/Junior/Club Team is Brandon Wheat Kings ( WHL ), when Player is Mike Perovich (D), and when Pick is less than 23? ### Context: CREATE TABLE table_name_40 (round INTEGER, pick VARCHAR, college_junior_club_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_40 WHERE college_junior_club_team = "brandon wheat kings ( whl )" AND player = "mike perovich (d)" AND pick < 23 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of Round, when Player is Tim Hunter (RW), and when Pick is less than 54? ### Context: CREATE TABLE table_name_32 (round INTEGER, player VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_32 WHERE player = "tim hunter (rw)" AND pick < 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: Who is the outgoing manager who was replaced by jürgen klopp? ### Context: CREATE TABLE table_name_64 (outgoing_manager VARCHAR, replaced_by VARCHAR) [/INST] ### Response: SELECT outgoing_manager FROM table_name_64 WHERE replaced_by = "jürgen klopp" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 appointment of the manager who was replaced by markus babbel? ### Context: CREATE TABLE table_name_94 (date_of_appointment VARCHAR, replaced_by VARCHAR) [/INST] ### Response: SELECT date_of_appointment FROM table_name_94 WHERE replaced_by = "markus babbel" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manner of depature of the manager with a date of appointment on 23 November 2008? ### Context: CREATE TABLE table_name_9 (manner_of_departure VARCHAR, date_of_appointment VARCHAR) [/INST] ### Response: SELECT manner_of_departure FROM table_name_9 WHERE date_of_appointment = "23 november 2008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who replaced the manager of team arminia bielefeld? ### Context: CREATE TABLE table_name_44 (replaced_by VARCHAR, team VARCHAR) [/INST] ### Response: SELECT replaced_by FROM table_name_44 WHERE team = "arminia bielefeld" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 vacancy of team fc bayern munich, which had a date of appointment on 27 April 2009? ### Context: CREATE TABLE table_name_24 (date_of_vacancy VARCHAR, team VARCHAR, date_of_appointment VARCHAR) [/INST] ### Response: SELECT date_of_vacancy FROM table_name_24 WHERE team = "fc bayern munich" AND date_of_appointment = "27 april 2009" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of appointment of outgoing manager fred rutten, who had a sacked manner of departure? ### Context: CREATE TABLE table_name_26 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR) [/INST] ### Response: SELECT date_of_appointment FROM table_name_26 WHERE manner_of_departure = "sacked" AND outgoing_manager = "fred rutten" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 length when James Swallow had a release longer than 2.1? ### Context: CREATE TABLE table_name_36 (length VARCHAR, writer VARCHAR, release VARCHAR) [/INST] ### Response: SELECT length FROM table_name_36 WHERE writer = "james swallow" AND release > 2.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: Who wrote Infiltration? ### Context: CREATE TABLE table_name_86 (writer VARCHAR, title VARCHAR) [/INST] ### Response: SELECT writer FROM table_name_86 WHERE title = "infiltration" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 earliest release for Pathogen directed by Sharon Gosling? ### Context: CREATE TABLE table_name_81 (release INTEGER, director VARCHAR, title VARCHAR) [/INST] ### Response: SELECT MIN(release) FROM table_name_81 WHERE director = "sharon gosling" AND title = "pathogen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 length of release 3.6? ### Context: CREATE TABLE table_name_54 (length VARCHAR, release VARCHAR) [/INST] ### Response: SELECT length FROM table_name_54 WHERE release = 3.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 day was the score for tournament of alcobaça 6–3, 2–6, 7–5? ### Context: CREATE TABLE table_name_21 (date VARCHAR, tournament VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_21 WHERE tournament = "alcobaça" AND score = "6–3, 2–6, 7–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 was the score for alcobaça when the opponent was in the final of xinyun han? ### Context: CREATE TABLE table_name_27 (score VARCHAR, tournament VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT score FROM table_name_27 WHERE tournament = "alcobaça" AND opponent_in_the_final = "xinyun han" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score when the opponent was irena pavlovic and the surface was hard? ### Context: CREATE TABLE table_name_94 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT score FROM table_name_94 WHERE surface = "hard" AND opponent_in_the_final = "irena pavlovic" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent in the final when the score was 6–3, 2–6, 7–5? ### Context: CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opponent_in_the_final FROM table_name_69 WHERE score = "6–3, 2–6, 7–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 day was the surface clay and the score 6–1, 6–4? ### Context: CREATE TABLE table_name_23 (date VARCHAR, surface VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_23 WHERE surface = "clay" AND score = "6–1, 6–4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Phoenician letter for the Hangul of ㄹ? ### Context: CREATE TABLE table_name_77 (phoenician VARCHAR, hangul VARCHAR) [/INST] ### Response: SELECT phoenician FROM table_name_77 WHERE hangul = "ㄹ" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Latin letter for the Tibetan of ས? ### Context: CREATE TABLE table_name_13 (latin VARCHAR, tibetan VARCHAR) [/INST] ### Response: SELECT latin FROM table_name_13 WHERE tibetan = "ས" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: to the Latin of f, y, u/v/w? ### Context: CREATE TABLE table_name_63 (greek VARCHAR, latin VARCHAR) [/INST] ### Response: SELECT greek FROM table_name_63 WHERE latin = "f, y, u/v/w" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Hangul equivalent of the Greek ϝ, υ? ### Context: CREATE TABLE table_name_96 (hangul VARCHAR, greek VARCHAR) [/INST] ### Response: SELECT hangul FROM table_name_96 WHERE greek = "ϝ, υ" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Latin equivalent for the Phagspa of ꡙ? ### Context: CREATE TABLE table_name_72 (latin VARCHAR, ’phagspa VARCHAR) [/INST] ### Response: SELECT latin FROM table_name_72 WHERE ’phagspa = "ꡙ" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface played on for the match than began before 1897? ### Context: CREATE TABLE table_name_93 (court_surface VARCHAR, began INTEGER) [/INST] ### Response: SELECT court_surface FROM table_name_93 WHERE began < 1897 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Indian Wells Masters tournament, what was the country? ### Context: CREATE TABLE table_name_96 (country VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT country FROM table_name_96 WHERE tournament = "indian wells masters" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location was in China, and played on a hard court? ### Context: CREATE TABLE table_name_69 (location VARCHAR, court_surface VARCHAR, country VARCHAR) [/INST] ### Response: SELECT location FROM table_name_69 WHERE court_surface = "hard" AND country = "china" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the Paris Masters tournament played in? ### Context: CREATE TABLE table_name_83 (country VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT country FROM table_name_83 WHERE tournament = "paris masters" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the opponent when the H/A was H and the scorer was Ferguson? ### Context: CREATE TABLE table_name_14 (opponents VARCHAR, h___a VARCHAR, scorers VARCHAR) [/INST] ### Response: SELECT opponents FROM table_name_14 WHERE h___a = "h" AND scorers = "ferguson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the opponent on 11 August 1991 when the H/A was H? ### Context: CREATE TABLE table_name_96 (opponents VARCHAR, h___a VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponents FROM table_name_96 WHERE h___a = "h" AND date = "11 august 1991" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the H/A when the scorer was Hughes? ### Context: CREATE TABLE table_name_50 (h___a VARCHAR, scorers VARCHAR) [/INST] ### Response: SELECT h___a FROM table_name_50 WHERE scorers = "hughes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film that grossed $26,010,864 ranked? ### Context: CREATE TABLE table_name_76 (rank INTEGER, gross VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_name_76 WHERE gross = "$26,010,864" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much did Universal Studio's film Xanadu gross? ### Context: CREATE TABLE table_name_79 (gross VARCHAR, studio VARCHAR, title VARCHAR) [/INST] ### Response: SELECT gross FROM table_name_79 WHERE studio = "universal" AND title = "xanadu" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank of Bronco Billy? ### Context: CREATE TABLE table_name_21 (rank INTEGER, title VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_21 WHERE title = "bronco billy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the lowest Founded with the Name cougars? ### Context: CREATE TABLE table_name_42 (founded INTEGER, nickname VARCHAR) [/INST] ### Response: SELECT MIN(founded) FROM table_name_42 WHERE nickname = "cougars" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Affiliation has a Nickname of cougars? ### Context: CREATE TABLE table_name_47 (affiliation VARCHAR, nickname VARCHAR) [/INST] ### Response: SELECT affiliation FROM table_name_47 WHERE nickname = "cougars" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the Founded which has a Affiliation of private/methodist? ### Context: CREATE TABLE table_name_6 (founded INTEGER, affiliation VARCHAR) [/INST] ### Response: SELECT MAX(founded) FROM table_name_6 WHERE affiliation = "private/methodist" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Label, when Date is 1987? ### Context: CREATE TABLE table_name_57 (label VARCHAR, date VARCHAR) [/INST] ### Response: SELECT label FROM table_name_57 WHERE date = "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 Date, when Format is Vinyl, and when Label is Mercury? ### Context: CREATE TABLE table_name_65 (date VARCHAR, format VARCHAR, label VARCHAR) [/INST] ### Response: SELECT date FROM table_name_65 WHERE format = "vinyl" AND label = "mercury" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Date, when Region is Yugoslavia? ### Context: CREATE TABLE table_name_33 (date VARCHAR, region VARCHAR) [/INST] ### Response: SELECT date FROM table_name_33 WHERE region = "yugoslavia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Format, when Label is Bronze, when Date is 1982, and when Catalogue is 204 636? ### Context: CREATE TABLE table_name_12 (format VARCHAR, catalogue VARCHAR, label VARCHAR, date VARCHAR) [/INST] ### Response: SELECT format FROM table_name_12 WHERE label = "bronze" AND date = "1982" AND catalogue = "204 636" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Date, when Label is Jugoton? ### Context: CREATE TABLE table_name_48 (date VARCHAR, label VARCHAR) [/INST] ### Response: SELECT date FROM table_name_48 WHERE label = "jugoton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Premier Date, when Cycle is less than 2? ### Context: CREATE TABLE table_name_53 (premiere_date VARCHAR, cycle INTEGER) [/INST] ### Response: SELECT premiere_date FROM table_name_53 WHERE cycle < 2 </s>