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 week had a game that was played on November 11, 1962? ### Context: CREATE TABLE table_name_86 (week INTEGER, date VARCHAR) [/INST] ### Response: SELECT AVG(week) FROM table_name_86 WHERE date = "november 11, 1962" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 author of Bludgeoning Angel Dokuro-Chan? ### Context: CREATE TABLE table_name_49 (author VARCHAR, title VARCHAR) [/INST] ### Response: SELECT author FROM table_name_49 WHERE title = "bludgeoning angel dokuro-chan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 departure for the outgoing manager, miguel brindisi? ### Context: CREATE TABLE table_name_24 (manner_of_departure VARCHAR, outgoing_manager VARCHAR) [/INST] ### Response: SELECT manner_of_departure FROM table_name_24 WHERE outgoing_manager = "miguel brindisi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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, necaxa? ### Context: CREATE TABLE table_name_28 (outgoing_manager VARCHAR, team VARCHAR) [/INST] ### Response: SELECT outgoing_manager FROM table_name_28 WHERE team = "necaxa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the winner when the finalist was fsv frankfurt? ### Context: CREATE TABLE table_name_31 (winner VARCHAR, finalist VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_31 WHERE finalist = "fsv frankfurt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 finalist when the winner was First Vienna FC? ### Context: CREATE TABLE table_name_83 (finalist VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT finalist FROM table_name_83 WHERE winner = "first vienna fc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the manager replaced by Wolfgang Frank depart? ### Context: CREATE TABLE table_name_93 (manner_of_departure VARCHAR, replaced_by VARCHAR) [/INST] ### Response: SELECT manner_of_departure FROM table_name_93 WHERE replaced_by = "wolfgang frank" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 hired to fill the spot that became vacant on 3 March 2009? ### Context: CREATE TABLE table_name_11 (replaced_by VARCHAR, date_of_vacancy VARCHAR) [/INST] ### Response: SELECT replaced_by FROM table_name_11 WHERE date_of_vacancy = "3 march 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 name of the person that was appointed on 13 May 2009? ### Context: CREATE TABLE table_name_74 (replaced_by VARCHAR, date_of_appointment VARCHAR) [/INST] ### Response: SELECT replaced_by FROM table_name_74 WHERE date_of_appointment = "13 may 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: How did the manager replaced by Michael Oenning depart? ### Context: CREATE TABLE table_name_56 (manner_of_departure VARCHAR, replaced_by VARCHAR) [/INST] ### Response: SELECT manner_of_departure FROM table_name_56 WHERE replaced_by = "michael oenning" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the manager that was replaced by Michael Oenning? ### Context: CREATE TABLE table_name_62 (outgoing_manager VARCHAR, replaced_by VARCHAR) [/INST] ### Response: SELECT outgoing_manager FROM table_name_62 WHERE replaced_by = "michael oenning" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home Team has a Game of game 1? ### Context: CREATE TABLE table_name_24 (home_team VARCHAR, game VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_24 WHERE game = "game 1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Game has a Home Team of san francisco, and a Date of april 22? ### Context: CREATE TABLE table_name_80 (game VARCHAR, home_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT game FROM table_name_80 WHERE home_team = "san francisco" AND date = "april 22" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Road Team has a Home Team of boston, and a Result of 124-101? ### Context: CREATE TABLE table_name_91 (road_team VARCHAR, home_team VARCHAR, result VARCHAR) [/INST] ### Response: SELECT road_team FROM table_name_91 WHERE home_team = "boston" AND result = "124-101" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Game has a Home Team of san francisco, and a Date of april 22? ### Context: CREATE TABLE table_name_22 (game VARCHAR, home_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT game FROM table_name_22 WHERE home_team = "san francisco" AND date = "april 22" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Result has a Road Team of san francisco, and a Game of game 2? ### Context: CREATE TABLE table_name_77 (result VARCHAR, road_team VARCHAR, game VARCHAR) [/INST] ### Response: SELECT result FROM table_name_77 WHERE road_team = "san francisco" AND game = "game 2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Home Team has a Result of 124-101? ### Context: CREATE TABLE table_name_10 (home_team VARCHAR, result VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_10 WHERE result = "124-101" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance in a week less than 5 when the result was l 24-20? ### Context: CREATE TABLE table_name_16 (attendance VARCHAR, result VARCHAR, week VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_16 WHERE result = "l 24-20" AND week < 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 largest week with the Atlanta Falcons as the opponent? ### Context: CREATE TABLE table_name_90 (week INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT MAX(week) FROM table_name_90 WHERE opponent = "atlanta falcons" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance in a week greater than 1 with an opponent of Philadelphia Eagles? ### Context: CREATE TABLE table_name_92 (attendance VARCHAR, week VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_92 WHERE week > 1 AND opponent = "philadelphia eagles" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Score has an Opponent of washington capitals, and a Record of 24-34-17? ### Context: CREATE TABLE table_name_7 (score VARCHAR, opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_7 WHERE opponent = "washington capitals" AND record = "24-34-17" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Joined has a Nickname of knights, and an Enrollment larger than 2,960? ### Context: CREATE TABLE table_name_61 (joined INTEGER, nickname VARCHAR, enrollment VARCHAR) [/INST] ### Response: SELECT SUM(joined) FROM table_name_61 WHERE nickname = "knights" AND enrollment > 2 OFFSET 960 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 an Enrollment smaller than 501, and a Location of clarkesville? ### Context: CREATE TABLE table_name_37 (nickname VARCHAR, enrollment VARCHAR, location VARCHAR) [/INST] ### Response: SELECT nickname FROM table_name_37 WHERE enrollment < 501 AND location = "clarkesville" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Joined has an Institution of abraham baldwin agricultural college, and an Enrollment smaller than 3,284? ### Context: CREATE TABLE table_name_96 (joined INTEGER, institution VARCHAR, enrollment VARCHAR) [/INST] ### Response: SELECT MAX(joined) FROM table_name_96 WHERE institution = "abraham baldwin agricultural college" AND enrollment < 3 OFFSET 284 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Away Team Score, when Ground is Optus Oval, and when Away Team is Fremantle? ### Context: CREATE TABLE table_name_65 (away_team VARCHAR, ground VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_65 WHERE ground = "optus oval" AND away_team = "fremantle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Away Team, when Ground is Colonial Stadium? ### Context: CREATE TABLE table_name_19 (away_team VARCHAR, ground VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_19 WHERE ground = "colonial stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: A score of 71-71=142 earned what place? ### Context: CREATE TABLE table_name_11 (place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_11 WHERE score = 71 - 71 = 142 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 José María Olazábal's score? ### Context: CREATE TABLE table_name_68 (to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_68 WHERE player = "josé maría olazábal" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 October 15, 1967? ### Context: CREATE TABLE table_name_66 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_66 WHERE date = "october 15, 1967" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lowest attendance when the Green Bay Packers played? ### Context: CREATE TABLE table_name_31 (attendance INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_31 WHERE opponent = "green bay packers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week number when a game was played on November 19, 1967? ### Context: CREATE TABLE table_name_15 (week INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(week) FROM table_name_15 WHERE date = "november 19, 1967" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: If a team has a grid of over 8 with less than 4 points, what's the team name? ### Context: CREATE TABLE table_name_31 (team VARCHAR, grid VARCHAR, points VARCHAR) [/INST] ### Response: SELECT team FROM table_name_31 WHERE grid > 8 AND points < 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: When Patrick Carpentier is driving and has less than 19 points with 90 laps, what team is racing? ### Context: CREATE TABLE table_name_43 (team VARCHAR, driver VARCHAR, laps VARCHAR, points VARCHAR) [/INST] ### Response: SELECT team FROM table_name_43 WHERE laps = 90 AND points < 19 AND driver = "patrick carpentier" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 where the total points was 50? ### Context: CREATE TABLE table_name_34 (score VARCHAR, total_points VARCHAR) [/INST] ### Response: SELECT score FROM table_name_34 WHERE total_points = 50 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 match that had detail of 2001 nrl grand final, what was the lowest total points? ### Context: CREATE TABLE table_name_73 (total_points INTEGER, details VARCHAR) [/INST] ### Response: SELECT MIN(total_points) FROM table_name_73 WHERE details = "2001 nrl grand final" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which average Game has a High points of wilson chandler (16)? ### Context: CREATE TABLE table_name_7 (game INTEGER, high_points VARCHAR) [/INST] ### Response: SELECT AVG(game) FROM table_name_7 WHERE high_points = "wilson chandler (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: Which Score has a Game larger than 76, a Location Attendance of madison square garden 19,763, and a High rebounds of wilson chandler (8)? ### Context: CREATE TABLE table_name_71 (score VARCHAR, high_rebounds VARCHAR, game VARCHAR, location_attendance VARCHAR) [/INST] ### Response: SELECT score FROM table_name_71 WHERE game > 76 AND location_attendance = "madison square garden 19,763" AND high_rebounds = "wilson chandler (8)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Team has a Record of 32–50? ### Context: CREATE TABLE table_name_24 (team VARCHAR, record VARCHAR) [/INST] ### Response: SELECT team FROM table_name_24 WHERE record = "32–50" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Date has a Record of 29–47? ### Context: CREATE TABLE table_name_4 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_4 WHERE record = "29–47" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Date has a Location Attendance of madison square garden 19,763, and a High rebounds of david lee (12)? ### Context: CREATE TABLE table_name_99 (date VARCHAR, location_attendance VARCHAR, high_rebounds VARCHAR) [/INST] ### Response: SELECT date FROM table_name_99 WHERE location_attendance = "madison square garden 19,763" AND high_rebounds = "david lee (12)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Record has a Score of w 107–102 (ot)? ### Context: CREATE TABLE table_name_3 (record VARCHAR, score VARCHAR) [/INST] ### Response: SELECT record FROM table_name_3 WHERE score = "w 107–102 (ot)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Team has a Location Attendance of fedexforum 11,731? ### Context: CREATE TABLE table_name_4 (team VARCHAR, location_attendance VARCHAR) [/INST] ### Response: SELECT team FROM table_name_4 WHERE location_attendance = "fedexforum 11,731" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Record has a Score of l 97–99 (ot)? ### Context: CREATE TABLE table_name_88 (record VARCHAR, score VARCHAR) [/INST] ### Response: SELECT record FROM table_name_88 WHERE score = "l 97–99 (ot)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is game 34's record? ### Context: CREATE TABLE table_name_11 (record VARCHAR, game VARCHAR) [/INST] ### Response: SELECT record FROM table_name_11 WHERE game = 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: What were the high assist on january 2? ### Context: CREATE TABLE table_name_61 (high_assists VARCHAR, date VARCHAR) [/INST] ### Response: SELECT high_assists FROM table_name_61 WHERE date = "january 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: Who was the director that had a film titled "Floating Life"? ### Context: CREATE TABLE table_name_5 (director VARCHAR, film_title_used_in_nomination VARCHAR) [/INST] ### Response: SELECT director FROM table_name_5 WHERE film_title_used_in_nomination = "floating life" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total number of Played that has the Position larger than 5, and the Points of 11, and the Drawn smaller than 1? ### Context: CREATE TABLE table_name_60 (played VARCHAR, drawn VARCHAR, position VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(played) FROM table_name_60 WHERE position > 5 AND points = 11 AND drawn < 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: Can you tell me the highest Played that has the Points larger than 11, and the Lost larger than 7? ### Context: CREATE TABLE table_name_36 (played INTEGER, points VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT MAX(played) FROM table_name_36 WHERE points > 11 AND lost > 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was Dave Hill's score? ### Context: CREATE TABLE table_name_85 (score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_85 WHERE player = "dave hill" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the to par of Al Mengert of the United States? ### Context: CREATE TABLE table_name_73 (to_par VARCHAR, country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_73 WHERE country = "united states" AND player = "al mengert" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score of T5 place in the United States? ### Context: CREATE TABLE table_name_67 (score VARCHAR, country VARCHAR, place VARCHAR) [/INST] ### Response: SELECT score FROM table_name_67 WHERE country = "united states" AND place = "t5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the player from the United States in T10 place with a score of 67-77=144? ### Context: CREATE TABLE table_name_1 (player VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_1 WHERE country = "united states" AND place = "t10" AND score = 67 - 77 = 144 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Billy Casper's to par? ### Context: CREATE TABLE table_name_51 (to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_51 WHERE player = "billy casper" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Wins, when Played is less than 5? ### Context: CREATE TABLE table_name_42 (wins INTEGER, played INTEGER) [/INST] ### Response: SELECT SUM(wins) FROM table_name_42 WHERE played < 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 highest Wins, when Rank is greater than 2, and when Played is less than 5? ### Context: CREATE TABLE table_name_75 (wins INTEGER, rank VARCHAR, played VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_name_75 WHERE rank > 2 AND played < 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 sum of Wins, when Team is Sweden, and when Played is less than 5? ### Context: CREATE TABLE table_name_79 (wins INTEGER, team VARCHAR, played VARCHAR) [/INST] ### Response: SELECT SUM(wins) FROM table_name_79 WHERE team = "sweden" AND played < 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 highest Points, when Played is greater than 5? ### Context: CREATE TABLE table_name_30 (points INTEGER, played INTEGER) [/INST] ### Response: SELECT MAX(points) FROM table_name_30 WHERE played > 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average Ties, when Played is greater than 5? ### Context: CREATE TABLE table_name_68 (ties INTEGER, played INTEGER) [/INST] ### Response: SELECT AVG(ties) FROM table_name_68 WHERE played > 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 Date, when Runner(s)-Up is Oliver Wilson? ### Context: CREATE TABLE table_name_71 (date VARCHAR, runner_s__up VARCHAR) [/INST] ### Response: SELECT date FROM table_name_71 WHERE runner_s__up = "oliver wilson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Margin Of Victory is 4 Strokes? ### Context: CREATE TABLE table_name_1 (date VARCHAR, margin_of_victory VARCHAR) [/INST] ### Response: SELECT date FROM table_name_1 WHERE margin_of_victory = "4 strokes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Runner(s)-up, when Date is 21 Jan 2007? ### Context: CREATE TABLE table_name_47 (runner_s__up VARCHAR, date VARCHAR) [/INST] ### Response: SELECT runner_s__up FROM table_name_47 WHERE date = "21 jan 2007" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Tournament, when Margin Of Victory is 1 Stroke, and when Date is 18 Jan 2009? ### Context: CREATE TABLE table_name_5 (tournament VARCHAR, margin_of_victory VARCHAR, date VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_5 WHERE margin_of_victory = "1 stroke" AND date = "18 jan 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 U.S. senate when the year is after 2002 and the party is working families? ### Context: CREATE TABLE table_name_80 (us_senate VARCHAR, year VARCHAR, party VARCHAR) [/INST] ### Response: SELECT us_senate FROM table_name_80 WHERE year > 2002 AND party = "working families" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 what the comptroller alan hevesi and the party working families? ### Context: CREATE TABLE table_name_78 (year VARCHAR, comptroller VARCHAR, party VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_78 WHERE comptroller = "alan hevesi" AND party = "working families" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of points of the game in Conseco fieldhouse 7,134? ### Context: CREATE TABLE table_name_79 (high_points VARCHAR, location_attendance VARCHAR) [/INST] ### Response: SELECT high_points FROM table_name_79 WHERE location_attendance = "conseco fieldhouse 7,134" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of rebounds of the game with a 6-14 record? ### Context: CREATE TABLE table_name_53 (high_rebounds VARCHAR, record VARCHAR) [/INST] ### Response: SELECT high_rebounds FROM table_name_53 WHERE record = "6-14" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Can you tell me the Record that has the Visitor of pittsburgh, and the Points smaller than 27, and the Home of boston? ### Context: CREATE TABLE table_name_21 (record VARCHAR, home VARCHAR, visitor VARCHAR, points VARCHAR) [/INST] ### Response: SELECT record FROM table_name_21 WHERE visitor = "pittsburgh" AND points < 27 AND home = "boston" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points that has the Attendance of 3,806? ### Context: CREATE TABLE table_name_42 (points INTEGER, attendance VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_42 WHERE attendance = 3 OFFSET 806 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent had 38,642 attendance? ### Context: CREATE TABLE table_name_69 (opponent VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_69 WHERE attendance = "38,642" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 51,265 attendance? ### Context: CREATE TABLE table_name_84 (date VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT date FROM table_name_84 WHERE attendance = "51,265" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When 7th place, what is the date? ### Context: CREATE TABLE table_name_45 (date VARCHAR, place VARCHAR) [/INST] ### Response: SELECT date FROM table_name_45 WHERE place = "7th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score of game 34? ### Context: CREATE TABLE table_name_3 (score VARCHAR, game VARCHAR) [/INST] ### Response: SELECT score FROM table_name_3 WHERE game = 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: What is the record of game 33? ### Context: CREATE TABLE table_name_97 (record VARCHAR, game VARCHAR) [/INST] ### Response: SELECT record FROM table_name_97 WHERE game = 33 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Country, when Place is "T4", and when Player is "Scott Simpson"? ### Context: CREATE TABLE table_name_64 (country VARCHAR, place VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_64 WHERE place = "t4" AND player = "scott simpson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 To Par, when Score is 70, and when Player is "Craig Stadler"? ### Context: CREATE TABLE table_name_98 (to_par VARCHAR, score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_98 WHERE score = 70 AND player = "craig stadler" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Player, when Score is less than 69, and when Country is "United States"? ### Context: CREATE TABLE table_name_70 (player VARCHAR, score VARCHAR, country VARCHAR) [/INST] ### Response: SELECT player FROM table_name_70 WHERE score < 69 AND country = "united states" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the writer that the director was Alice Troughton and the producer was Phil Collinson? ### Context: CREATE TABLE table_name_89 (writer VARCHAR, producer VARCHAR, director VARCHAR) [/INST] ### Response: SELECT writer FROM table_name_89 WHERE producer = "phil collinson" AND director = "alice troughton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the location and attendance after game 2, and the team New Orleans? ### Context: CREATE TABLE table_name_99 (location_attendance VARCHAR, game VARCHAR, team VARCHAR) [/INST] ### Response: SELECT location_attendance FROM table_name_99 WHERE game > 2 AND team = "new orleans" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Teleplay, when Season is greater than 1.1, and when First Broadcast is "February 20, 1981"? ### Context: CREATE TABLE table_name_37 (teleplay VARCHAR, season VARCHAR, first_broadcast VARCHAR) [/INST] ### Response: SELECT teleplay FROM table_name_37 WHERE season > 1.1 AND first_broadcast = "february 20, 1981" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Title, when Season is less than 1.8, and when First Broadcast is March 6, 1981? ### Context: CREATE TABLE table_name_2 (title VARCHAR, season VARCHAR, first_broadcast VARCHAR) [/INST] ### Response: SELECT title FROM table_name_2 WHERE season < 1.8 AND first_broadcast = "march 6, 1981" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Director, when Season is 1.4? ### Context: CREATE TABLE table_name_11 (director VARCHAR, season VARCHAR) [/INST] ### Response: SELECT director FROM table_name_11 WHERE season = 1.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 Teleplay, when Director is "George McCowan", when Season is less than 1.1400000000000001, and when First Broadcast is April 3, 1981? ### Context: CREATE TABLE table_name_24 (teleplay VARCHAR, first_broadcast VARCHAR, director VARCHAR, season VARCHAR) [/INST] ### Response: SELECT teleplay FROM table_name_24 WHERE director = "george mccowan" AND season < 1.1400000000000001 AND first_broadcast = "april 3, 1981" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average Season, when First Broadcast is January 23, 1981? ### Context: CREATE TABLE table_name_14 (season INTEGER, first_broadcast VARCHAR) [/INST] ### Response: SELECT AVG(season) FROM table_name_14 WHERE first_broadcast = "january 23, 1981" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Teleplay, when First Broadcast is April 10, 1981? ### Context: CREATE TABLE table_name_57 (teleplay VARCHAR, first_broadcast VARCHAR) [/INST] ### Response: SELECT teleplay FROM table_name_57 WHERE first_broadcast = "april 10, 1981" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the H/A when the opponent is the Bohemians? ### Context: CREATE TABLE table_name_25 (h___a VARCHAR, opponents VARCHAR) [/INST] ### Response: SELECT h___a FROM table_name_25 WHERE opponents = "bohemians" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance when Cork City is the opponent? ### Context: CREATE TABLE table_name_7 (attendance INTEGER, opponents VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_7 WHERE opponents = "cork city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 H/A when Cork City is the opponent? ### Context: CREATE TABLE table_name_53 (h___a VARCHAR, opponents VARCHAR) [/INST] ### Response: SELECT h___a FROM table_name_53 WHERE opponents = "cork city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 H/A on 5 August 1990? ### Context: CREATE TABLE table_name_46 (h___a VARCHAR, date VARCHAR) [/INST] ### Response: SELECT h___a FROM table_name_46 WHERE date = "5 august 1990" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result F-A on 5 August 1990? ### Context: CREATE TABLE table_name_70 (result_f___a VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result_f___a FROM table_name_70 WHERE date = "5 august 1990" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the value for internal floppy disk with s-100 slots greater than 8 introduced earlier than 1978? ### Context: CREATE TABLE table_name_19 (internal_floppy_disk VARCHAR, s_100_slots VARCHAR, year_introduced VARCHAR) [/INST] ### Response: SELECT internal_floppy_disk FROM table_name_19 WHERE s_100_slots > 8 AND year_introduced < 1978 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 system introduced earlier than 1981 has an internal hard disk of 11 megabytes and less than 21 s-100 slots? ### Context: CREATE TABLE table_name_47 (system VARCHAR, internal_hard_disk VARCHAR, s_100_slots VARCHAR, year_introduced VARCHAR) [/INST] ### Response: SELECT system FROM table_name_47 WHERE s_100_slots < 21 AND year_introduced < 1981 AND internal_hard_disk = "11 megabytes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Marcus Wilson attend? ### Context: CREATE TABLE table_name_45 (college VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college FROM table_name_45 WHERE player = "marcus wilson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player that attended Notre Dame with a pick smaller than 304? ### Context: CREATE TABLE table_name_76 (player VARCHAR, pick__number VARCHAR, college VARCHAR) [/INST] ### Response: SELECT player FROM table_name_76 WHERE pick__number < 304 AND college = "notre dame" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Leon Perry attend? ### Context: CREATE TABLE table_name_93 (college VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college FROM table_name_93 WHERE player = "leon perry" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 NFL team did the Tight End position belong to? ### Context: CREATE TABLE table_name_62 (nfl_team VARCHAR, position VARCHAR) [/INST] ### Response: SELECT nfl_team FROM table_name_62 WHERE position = "tight end" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 weeks that the buffalo bills played against the San Diego Chargers? ### Context: CREATE TABLE table_name_49 (week INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT SUM(week) FROM table_name_49 WHERE opponent = "san diego chargers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance of the game that had a date listed as Bye? ### Context: CREATE TABLE table_name_76 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_76 WHERE date = "bye" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 weeks were there games with 41,384 fans in attendance? ### Context: CREATE TABLE table_name_48 (week INTEGER, attendance VARCHAR) [/INST] ### Response: SELECT SUM(week) FROM table_name_48 WHERE attendance = "41,384" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week number that had a game on December 3, 1967? ### Context: CREATE TABLE table_name_97 (week INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(week) FROM table_name_97 WHERE date = "december 3, 1967" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result of the game that had 20,627 fans in attendance? ### Context: CREATE TABLE table_name_79 (result VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT result FROM table_name_79 WHERE attendance = "20,627" </s>