text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest Cycle, when Number Of Contestants is 11, and when International Destinations is Paris Gran Canaria? ### Context: CREATE TABLE table_name_57 (cycle INTEGER, number_of_contestants VARCHAR, international_destinations VARCHAR) [/INST] ### Response: SELECT MIN(cycle) FROM table_name_57 WHERE number_of_contestants = "11" AND international_destinations = "paris gran canaria" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Cycle, when the Number of Constestants is 11, and when Premiere Date is September 3, 2012? ### Context: CREATE TABLE table_name_57 (cycle INTEGER, number_of_contestants VARCHAR, premiere_date VARCHAR) [/INST] ### Response: SELECT MAX(cycle) FROM table_name_57 WHERE number_of_contestants = "11" AND premiere_date = "september 3, 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 is Number of Contestants, when Cycle is 4? ### Context: CREATE TABLE table_name_81 (number_of_contestants VARCHAR, cycle VARCHAR) [/INST] ### Response: SELECT number_of_contestants FROM table_name_81 WHERE cycle = 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 Number of Contestants, when International Destinations is London Lisbon? ### Context: CREATE TABLE table_name_55 (number_of_contestants VARCHAR, international_destinations VARCHAR) [/INST] ### Response: SELECT number_of_contestants FROM table_name_55 WHERE international_destinations = "london lisbon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick with fewer than 3 rounds and more than 4 overall? ### Context: CREATE TABLE table_name_15 (pick INTEGER, round VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT MIN(pick) FROM table_name_15 WHERE round < 3 AND overall > 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: Which round has more than 79 overall and a position of QB? ### Context: CREATE TABLE table_name_60 (round VARCHAR, position VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT round FROM table_name_60 WHERE position = "qb" AND overall > 79 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Notre Dame position has a pick lower than 5 and round 7? ### Context: CREATE TABLE table_name_88 (position VARCHAR, round VARCHAR, pick VARCHAR, college VARCHAR) [/INST] ### Response: SELECT position FROM table_name_88 WHERE pick < 5 AND college = "notre dame" AND round = 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was week 17's date? ### Context: CREATE TABLE table_name_21 (date VARCHAR, week VARCHAR) [/INST] ### Response: SELECT date FROM table_name_21 WHERE week = 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 Opponent has a Result of l 24–3? ### Context: CREATE TABLE table_name_16 (opponent VARCHAR, result VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_16 WHERE result = "l 24–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 was week 5's result? ### Context: CREATE TABLE table_name_81 (result VARCHAR, week VARCHAR) [/INST] ### Response: SELECT result FROM table_name_81 WHERE 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 was the score for Groves High School when the high assist was Giovanni Riley (9)? ### Context: CREATE TABLE table_name_21 (score VARCHAR, location_attendance VARCHAR, high_assists VARCHAR) [/INST] ### Response: SELECT score FROM table_name_21 WHERE location_attendance = "groves high school" AND high_assists = "giovanni riley (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 was the high points for opponent Mid-Michigan destroyers on January 3? ### Context: CREATE TABLE table_name_22 (high_points VARCHAR, opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT high_points FROM table_name_22 WHERE opponent = "mid-michigan destroyers" AND date = "january 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 opponent is at Richmond Academy? ### Context: CREATE TABLE table_name_38 (opponent VARCHAR, location_attendance VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_38 WHERE location_attendance = "richmond academy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points on March 29? ### Context: CREATE TABLE table_name_88 (high_points VARCHAR, date VARCHAR) [/INST] ### Response: SELECT high_points FROM table_name_88 WHERE date = "march 29" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which opponent scored 95-101? ### Context: CREATE TABLE table_name_34 (opponent VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_34 WHERE score = "95-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: Who was the (M) Best & Fairest when ray kaduck was president and richard keane was coach? ### Context: CREATE TABLE table_name_2 (_m__best_ VARCHAR, _fairest VARCHAR, president VARCHAR, _m__coach VARCHAR) [/INST] ### Response: SELECT _m__best_ & _fairest FROM table_name_2 WHERE president = "ray kaduck" AND _m__coach = "richard keane" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 (M) Finishe position when ray kaduck was president and corey bowen was coach? ### Context: CREATE TABLE table_name_44 (_m__finishing_position VARCHAR, president VARCHAR, _m__coach VARCHAR) [/INST] ### Response: SELECT _m__finishing_position FROM table_name_44 WHERE president = "ray kaduck" AND _m__coach = "corey bowen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Score of l 102–114 (ot)? ### Context: CREATE TABLE table_name_90 (game INTEGER, score VARCHAR) [/INST] ### Response: SELECT AVG(game) FROM table_name_90 WHERE score = "l 102–114 (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 Record has a Date of january 31? ### Context: CREATE TABLE table_name_18 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_18 WHERE date = "january 31" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Record has a Game larger than 34, and a Date of january 9? ### Context: CREATE TABLE table_name_34 (record VARCHAR, game VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_34 WHERE game > 34 AND date = "january 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: Which Location Attendance has a Record of 11–34? ### Context: CREATE TABLE table_name_27 (location_attendance VARCHAR, record VARCHAR) [/INST] ### Response: SELECT location_attendance FROM table_name_27 WHERE record = "11–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 for the w 100-99 score? ### Context: CREATE TABLE table_name_95 (record VARCHAR, score VARCHAR) [/INST] ### Response: SELECT record FROM table_name_95 WHERE score = "w 100-99" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the location for the 23-17 record? ### Context: CREATE TABLE table_name_67 (location VARCHAR, record VARCHAR) [/INST] ### Response: SELECT location FROM table_name_67 WHERE record = "23-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: What is the location before game 44, and a 20-16 record? ### Context: CREATE TABLE table_name_10 (location VARCHAR, game VARCHAR, record VARCHAR) [/INST] ### Response: SELECT location FROM table_name_10 WHERE game < 44 AND record = "20-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 was the result for the match with entry Match Reports? ### Context: CREATE TABLE table_name_69 (result VARCHAR, match VARCHAR) [/INST] ### Response: SELECT result FROM table_name_69 WHERE match = "match reports" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the match that had a result of 3-3? ### Context: CREATE TABLE table_name_13 (location VARCHAR, result VARCHAR) [/INST] ### Response: SELECT location FROM table_name_13 WHERE result = "3-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 was the lineup for match 12 that had a competition of Group Stage? ### Context: CREATE TABLE table_name_65 (lineup VARCHAR, competition VARCHAR, match VARCHAR) [/INST] ### Response: SELECT lineup FROM table_name_65 WHERE competition = "group stage" AND match = "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: What was the result for the match held in Boston? ### Context: CREATE TABLE table_name_97 (result VARCHAR, location VARCHAR) [/INST] ### Response: SELECT result FROM table_name_97 WHERE location = "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: How many total games were played against @ St. Louis Hawks this season? ### Context: CREATE TABLE table_name_42 (game INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT SUM(game) FROM table_name_42 WHERE opponent = "@ st. louis hawks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what day was Game 48 played? ### Context: CREATE TABLE table_name_39 (date VARCHAR, game VARCHAR) [/INST] ### Response: SELECT date FROM table_name_39 WHERE game = 48 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number later than round 1, for Reyshawn Terry? ### Context: CREATE TABLE table_name_17 (pick INTEGER, round VARCHAR, player VARCHAR) [/INST] ### Response: SELECT AVG(pick) FROM table_name_17 WHERE round > 1 AND player = "reyshawn terry" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What round was the player Ty Lawson with a pick earlier than 18? ### Context: CREATE TABLE table_name_90 (round INTEGER, player VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT AVG(round) FROM table_name_90 WHERE player = "ty lawson" AND pick < 18 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the pick number for Danny Green in a round less than 2? ### Context: CREATE TABLE table_name_21 (pick VARCHAR, player VARCHAR, round VARCHAR) [/INST] ### Response: SELECT COUNT(pick) FROM table_name_21 WHERE player = "danny green" AND round < 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 pick number in a year earlier than 2009, with a round higher than 1? ### Context: CREATE TABLE table_name_60 (pick VARCHAR, year VARCHAR, round VARCHAR) [/INST] ### Response: SELECT COUNT(pick) FROM table_name_60 WHERE year < 2009 AND round > 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 are the notes for the Mandarin Chinese program on CTV earlier than 2013? ### Context: CREATE TABLE table_name_40 (notes VARCHAR, network VARCHAR, year VARCHAR, language VARCHAR) [/INST] ### Response: SELECT notes FROM table_name_40 WHERE year < 2013 AND language = "mandarin chinese" AND network = "ctv" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 language for Strong Heart? ### Context: CREATE TABLE table_name_64 (language VARCHAR, title VARCHAR) [/INST] ### Response: SELECT language FROM table_name_64 WHERE title = "strong heart" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title for the Korean progran on KBS2? ### Context: CREATE TABLE table_name_96 (title VARCHAR, language VARCHAR, network VARCHAR) [/INST] ### Response: SELECT title FROM table_name_96 WHERE language = "korean" AND network = "kbs2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 network that aired Star King prior to 2011? ### Context: CREATE TABLE table_name_70 (network VARCHAR, year VARCHAR, title VARCHAR) [/INST] ### Response: SELECT network FROM table_name_70 WHERE year < 2011 AND title = "star king" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 notes for Happy Camp? ### Context: CREATE TABLE table_name_79 (notes VARCHAR, title VARCHAR) [/INST] ### Response: SELECT notes FROM table_name_79 WHERE title = "happy camp" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pick has a College of ohio state? ### Context: CREATE TABLE table_name_22 (pick INTEGER, college VARCHAR) [/INST] ### Response: SELECT MIN(pick) FROM table_name_22 WHERE college = "ohio 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: Which Round has a Position of lb, and a Pick smaller than 25? ### Context: CREATE TABLE table_name_3 (round VARCHAR, position VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT COUNT(round) FROM table_name_3 WHERE position = "lb" AND pick < 25 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week has a result L 56-3? ### Context: CREATE TABLE table_name_93 (week INTEGER, result VARCHAR) [/INST] ### Response: SELECT AVG(week) FROM table_name_93 WHERE result = "l 56-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: Where is the player Raymond Floyd? ### Context: CREATE TABLE table_name_47 (place VARCHAR, player VARCHAR) [/INST] ### Response: SELECT place FROM table_name_47 WHERE player = "raymond floyd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country has a score of 71-72-73-69=285? ### Context: CREATE TABLE table_name_44 (country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_44 WHERE score = 71 - 72 - 73 - 69 = 285 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Money ( $ ), when Score is "69-71-70-74=284"? ### Context: CREATE TABLE table_name_65 (money___ INTEGER, score VARCHAR) [/INST] ### Response: SELECT MAX(money___) AS $__ FROM table_name_65 WHERE score = 69 - 71 - 70 - 74 = 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 Place, when Score is "71-71-69-71=282"? ### Context: CREATE TABLE table_name_3 (place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_3 WHERE score = 71 - 71 - 69 - 71 = 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 Score, when Player is "Dow Finsterwald"? ### Context: CREATE TABLE table_name_76 (score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_76 WHERE player = "dow finsterwald" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue did the runner have a note of 1:23:07? ### Context: CREATE TABLE table_name_58 (venue VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_58 WHERE notes = "1:23:07" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 note result when the runner finished 19th in 2008? ### Context: CREATE TABLE table_name_94 (notes VARCHAR, year VARCHAR, position VARCHAR) [/INST] ### Response: SELECT notes FROM table_name_94 WHERE year = 2008 AND position = "19th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the points 1 for the team with position less than 13 and goal difference of +16? ### Context: CREATE TABLE table_name_93 (points_1 VARCHAR, position VARCHAR, goal_difference VARCHAR) [/INST] ### Response: SELECT points_1 FROM table_name_93 WHERE position < 13 AND goal_difference = "+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 goal difference where the goals against is less than 54, goals for is greater than 51 and points 1 is 63? ### Context: CREATE TABLE table_name_29 (goal_difference VARCHAR, points_1 VARCHAR, goals_against VARCHAR, goals_for VARCHAR) [/INST] ### Response: SELECT goal_difference FROM table_name_29 WHERE goals_against < 54 AND goals_for > 51 AND points_1 = "63" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of games lost when goal difference is +13 and draws are more than 12? ### Context: CREATE TABLE table_name_65 (lost VARCHAR, goal_difference VARCHAR, drawn VARCHAR) [/INST] ### Response: SELECT COUNT(lost) FROM table_name_65 WHERE goal_difference = "+13" AND drawn > 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: What was the finishing position for the car that started in grid 6? ### Context: CREATE TABLE table_name_21 (fin_pos VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT fin_pos FROM table_name_21 WHERE grid = "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 team started in grid 11? ### Context: CREATE TABLE table_name_2 (team VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT team FROM table_name_2 WHERE grid = "11" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the time/retired of car number 6. ### Context: CREATE TABLE table_name_93 (time_retired VARCHAR, car_no VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_93 WHERE car_no = "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 was the grid number of the team and driver with 14 points? ### Context: CREATE TABLE table_name_9 (grid VARCHAR, points VARCHAR) [/INST] ### Response: SELECT grid FROM table_name_9 WHERE points = "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: Who did Thomaz Bellucci play against when he became runner-up on a clay surface? ### Context: CREATE TABLE table_name_73 (opponent VARCHAR, outcome VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_73 WHERE outcome = "runner-up" AND surface = "clay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What tournament did Thomaz Bellucci become runner-up on a clay surface? ### Context: CREATE TABLE table_name_82 (tournament VARCHAR, outcome VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_82 WHERE outcome = "runner-up" AND surface = "clay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 surface did Thomaz Bellucci play against tommy robredo? ### Context: CREATE TABLE table_name_66 (surface VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_66 WHERE opponent = "tommy robredo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the match against Ryan Schultz? ### Context: CREATE TABLE table_name_12 (res VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT res FROM table_name_12 WHERE opponent = "ryan schultz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What round was the game against Cedric Marks? ### Context: CREATE TABLE table_name_39 (round VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT round FROM table_name_39 WHERE opponent = "cedric marks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the record of the match against Chris Mounce? ### Context: CREATE TABLE table_name_96 (record VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT record FROM table_name_96 WHERE opponent = "chris mounce" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 method in the round 2 win over Nick Gilardi? ### Context: CREATE TABLE table_name_75 (method VARCHAR, opponent VARCHAR, round VARCHAR, res VARCHAR) [/INST] ### Response: SELECT method FROM table_name_75 WHERE round = "2" AND res = "win" AND opponent = "nick gilardi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number 7 when Sophia is number 3 and Abigail is number 10? ### Context: CREATE TABLE table_name_70 (no_7 VARCHAR, no_3 VARCHAR, no_10 VARCHAR) [/INST] ### Response: SELECT no_7 FROM table_name_70 WHERE no_3 = "sophia" AND no_10 = "abigail" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which region (year) has Abigail at number 7, Sophia at number 1 and Aaliyah at number 5? ### Context: CREATE TABLE table_name_12 (region__year_ VARCHAR, no_5 VARCHAR, no_7 VARCHAR, no_1 VARCHAR) [/INST] ### Response: SELECT region__year_ FROM table_name_12 WHERE no_7 = "abigail" AND no_1 = "sophia" AND no_5 = "aaliyah" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number 4 when Harper is number 10 and Abigail is number 5? ### Context: CREATE TABLE table_name_24 (no_4 VARCHAR, no_10 VARCHAR, no_5 VARCHAR) [/INST] ### Response: SELECT no_4 FROM table_name_24 WHERE no_10 = "harper" AND no_5 = "abigail" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To Par is "+1", and when Score is "75-68=143"? ### Context: CREATE TABLE table_name_32 (player VARCHAR, to_par VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_32 WHERE to_par = "+1" AND score = 75 - 68 = 143 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Score, when Player is "Andy North"? ### Context: CREATE TABLE table_name_12 (score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_12 WHERE player = "andy north" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 "69-72=141" ### Context: CREATE TABLE table_name_31 (to_par VARCHAR, score VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_31 WHERE score = 69 - 72 = 141 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Place, when Score is "73-71=144", and when Player is "Scott Simpson"? ### Context: CREATE TABLE table_name_66 (place VARCHAR, player VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_66 WHERE score = 73 - 71 = 144 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 Score, when Country is "United States", and when Player is "John Mahaffey"? ### Context: CREATE TABLE table_name_13 (score VARCHAR, country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_13 WHERE country = "united states" AND player = "john mahaffey" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Place is "T1", and when Player is "Joey Rassett"? ### Context: CREATE TABLE table_name_6 (to_par VARCHAR, place VARCHAR, player VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_6 WHERE place = "t1" AND player = "joey rassett" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team was brighton & hove albion? ### Context: CREATE TABLE table_name_21 (score VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_21 WHERE away_team = "brighton & hove albion" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the away team burnley? ### Context: CREATE TABLE table_name_31 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_31 WHERE away_team = "burnley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which home team had an away team of Reading? ### Context: CREATE TABLE table_name_37 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_37 WHERE away_team = "reading" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the accolade for Scottish albums of the decade? ### Context: CREATE TABLE table_name_83 (year VARCHAR, accolade VARCHAR) [/INST] ### Response: SELECT year FROM table_name_83 WHERE accolade = "scottish albums of the decade" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had the publication, Drowned in Sound? ### Context: CREATE TABLE table_name_22 (country VARCHAR, publication VARCHAR) [/INST] ### Response: SELECT country FROM table_name_22 WHERE publication = "drowned in sound" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home stadium of Brisbane Lions? ### Context: CREATE TABLE table_name_93 (ground VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT ground FROM table_name_93 WHERE home_team = "brisbane lions" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the crowd attending at colonial stadium where Hawthorn plays? ### Context: CREATE TABLE table_name_9 (crowd VARCHAR, ground VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT crowd FROM table_name_9 WHERE ground = "colonial stadium" AND home_team = "hawthorn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd leg when team #2 is žalgiris kaunas? ### Context: CREATE TABLE table_name_47 (team__number2 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_47 WHERE team__number2 = "žalgiris kaunas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd leg when team #2 is žalgiris kaunas? ### Context: CREATE TABLE table_name_67 (team__number2 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_67 WHERE team__number2 = "žalgiris kaunas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in week 6? ### Context: CREATE TABLE table_name_30 (opponent VARCHAR, week VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_30 WHERE week = 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which week had an attendance of 55,158? ### Context: CREATE TABLE table_name_42 (week INTEGER, attendance VARCHAR) [/INST] ### Response: SELECT SUM(week) FROM table_name_42 WHERE attendance = "55,158" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game on February 10? ### Context: CREATE TABLE table_name_66 (game INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(game) FROM table_name_66 WHERE date = "february 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: Which Player has a Round larger than 5, and a Position of (g)? ### Context: CREATE TABLE table_name_1 (player VARCHAR, round VARCHAR, position VARCHAR) [/INST] ### Response: SELECT player FROM table_name_1 WHERE round > 5 AND position = "(g)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round has a Nationality of united states, and a Player of jimmy hayes? ### Context: CREATE TABLE table_name_34 (round INTEGER, nationality VARCHAR, player VARCHAR) [/INST] ### Response: SELECT MAX(round) FROM table_name_34 WHERE nationality = "united states" AND player = "jimmy hayes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pick has a Nationality of canada, and a Round of 5? ### Context: CREATE TABLE table_name_98 (pick VARCHAR, nationality VARCHAR, round VARCHAR) [/INST] ### Response: SELECT pick FROM table_name_98 WHERE nationality = "canada" AND round = 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: Which Club Team has a Position of (d), a Nationality of canada, and a Player of andrew macwilliam? ### Context: CREATE TABLE table_name_7 (club_team VARCHAR, player VARCHAR, position VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT club_team FROM table_name_7 WHERE position = "(d)" AND nationality = "canada" AND player = "andrew macwilliam" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 money did jodie mudd get? ### Context: CREATE TABLE table_name_1 (money___$__ VARCHAR, player VARCHAR) [/INST] ### Response: SELECT money___$__ FROM table_name_1 WHERE player = "jodie mudd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Australia get? ### Context: CREATE TABLE table_name_85 (score VARCHAR, country VARCHAR) [/INST] ### Response: SELECT score FROM table_name_85 WHERE country = "australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sort value that had deaths of 71? ### Context: CREATE TABLE table_name_64 (sort_restore VARCHAR, deaths VARCHAR) [/INST] ### Response: SELECT sort_restore FROM table_name_64 WHERE deaths = "71" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 month had a sort value under 39 and 2 deaths? ### Context: CREATE TABLE table_name_73 (month VARCHAR, sort_restore VARCHAR, deaths VARCHAR) [/INST] ### Response: SELECT month FROM table_name_73 WHERE sort_restore < 39 AND deaths = "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 number of sort values associated with 389 births? ### Context: CREATE TABLE table_name_27 (sort_restore VARCHAR, births VARCHAR) [/INST] ### Response: SELECT COUNT(sort_restore) FROM table_name_27 WHERE births = "389" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Manufacturer for the Rider Colin Edwards? ### Context: CREATE TABLE table_name_1 (manufacturer VARCHAR, rider VARCHAR) [/INST] ### Response: SELECT manufacturer FROM table_name_1 WHERE rider = "colin edwards" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: With a Grid less than 15, and a Time of +52.833, what is the highest number of Laps? ### Context: CREATE TABLE table_name_86 (laps INTEGER, grid VARCHAR, time VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_86 WHERE grid < 15 AND time = "+52.833" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Grid for the Rider Toni Elias with Laps more than 30? ### Context: CREATE TABLE table_name_62 (grid INTEGER, rider VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT AVG(grid) FROM table_name_62 WHERE rider = "toni elias" AND laps > 30 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: With a Time of +1:37.055, which has the lowest Grid? ### Context: CREATE TABLE table_name_84 (grid INTEGER, time VARCHAR) [/INST] ### Response: SELECT MIN(grid) FROM table_name_84 WHERE time = "+1:37.055" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Silver is the highest one that has a Rank of 19, and a Gold larger than 0? ### Context: CREATE TABLE table_name_71 (silver INTEGER, rank VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT MAX(silver) FROM table_name_71 WHERE rank = "19" AND gold > 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 Bronze is the highest one that has a Rank of 26, and a Total larger than 1? ### Context: CREATE TABLE table_name_48 (bronze INTEGER, rank VARCHAR, total VARCHAR) [/INST] ### Response: SELECT MAX(bronze) FROM table_name_48 WHERE rank = "26" AND total > 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 Gold has a Nation of india, and a Bronze smaller than 0? ### Context: CREATE TABLE table_name_84 (gold INTEGER, nation VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT AVG(gold) FROM table_name_84 WHERE nation = "india" AND bronze < 0 </s>