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 percentage of Judaism associated with Christianity at 2.51%? ### Context: CREATE TABLE table_name_2 (judaism VARCHAR, christianity VARCHAR) [/INST] ### Response: SELECT judaism FROM table_name_2 WHERE christianity = "2.51%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of other religions associated with atheism at 1.86%? ### Context: CREATE TABLE table_name_80 (other VARCHAR, atheism VARCHAR) [/INST] ### Response: SELECT other FROM table_name_80 WHERE atheism = "1.86%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 No. 2, when No. 9 is Mia? ### Context: CREATE TABLE table_name_56 (no_2 VARCHAR, no_9 VARCHAR) [/INST] ### Response: SELECT no_2 FROM table_name_56 WHERE no_9 = "mia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 No. 7, when No. 4 is Madison, and when No. 10 is Amelia? ### Context: CREATE TABLE table_name_15 (no_7 VARCHAR, no_4 VARCHAR, no_10 VARCHAR) [/INST] ### Response: SELECT no_7 FROM table_name_15 WHERE no_4 = "madison" AND no_10 = "amelia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 No.1, when No. 2 is Emma, and when No. 7 is Olivia? ### Context: CREATE TABLE table_name_28 (no_1 VARCHAR, no_2 VARCHAR, no_7 VARCHAR) [/INST] ### Response: SELECT no_1 FROM table_name_28 WHERE no_2 = "emma" AND no_7 = "olivia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 No. 5, when No. 2 is Olivia, when No. 4 is Ava, and when No. 6 is Abigail? ### Context: CREATE TABLE table_name_39 (no_5 VARCHAR, no_6 VARCHAR, no_2 VARCHAR, no_4 VARCHAR) [/INST] ### Response: SELECT no_5 FROM table_name_39 WHERE no_2 = "olivia" AND no_4 = "ava" AND no_6 = "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 No. 3, when No. 7 is Abigail, and when No. 2 is Olivia? ### Context: CREATE TABLE table_name_24 (no_3 VARCHAR, no_7 VARCHAR, no_2 VARCHAR) [/INST] ### Response: SELECT no_3 FROM table_name_24 WHERE no_7 = "abigail" AND no_2 = "olivia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 No. 3, when No. 7 is Abigail, and when No. 4 is Ava? ### Context: CREATE TABLE table_name_79 (no_3 VARCHAR, no_7 VARCHAR, no_4 VARCHAR) [/INST] ### Response: SELECT no_3 FROM table_name_79 WHERE no_7 = "abigail" AND no_4 = "ava" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Laps have Grid larger than 14, and a Rider of sylvain guintoli? ### Context: CREATE TABLE table_name_51 (laps VARCHAR, grid VARCHAR, rider VARCHAR) [/INST] ### Response: SELECT COUNT(laps) FROM table_name_51 WHERE grid > 14 AND rider = "sylvain guintoli" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Grid has Laps of 24, and a Rider of marco melandri? ### Context: CREATE TABLE table_name_22 (grid INTEGER, laps VARCHAR, rider VARCHAR) [/INST] ### Response: SELECT SUM(grid) FROM table_name_22 WHERE laps = 24 AND rider = "marco melandri" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Grid has Laps smaller than 24, and a Time of retirement? ### Context: CREATE TABLE table_name_64 (grid INTEGER, laps VARCHAR, time VARCHAR) [/INST] ### Response: SELECT MIN(grid) FROM table_name_64 WHERE laps < 24 AND time = "retirement" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Grid has a Rider of randy de puniet, and Laps smaller than 24? ### Context: CREATE TABLE table_name_11 (grid INTEGER, rider VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT MAX(grid) FROM table_name_11 WHERE rider = "randy de puniet" AND laps < 24 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the type of surface played on for the week of March 17? ### Context: CREATE TABLE table_name_23 (surface VARCHAR, week VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_23 WHERE week = "march 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 was the tournament for the week of August 4? ### Context: CREATE TABLE table_name_14 (tournament VARCHAR, week VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_14 WHERE week = "august 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 tournament had Richard Krajicek as a finalist? ### Context: CREATE TABLE table_name_85 (tournament VARCHAR, finalist VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_85 WHERE finalist = "richard krajicek" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date did Detroit play at home? ### Context: CREATE TABLE table_name_25 (date VARCHAR, home VARCHAR) [/INST] ### Response: SELECT date FROM table_name_25 WHERE home = "detroit" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the home team on June 9? ### Context: CREATE TABLE table_name_81 (home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_81 WHERE date = "june 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 money value that went along with the score of 68-67-69-76=280? ### Context: CREATE TABLE table_name_42 (money___$__ VARCHAR, score VARCHAR) [/INST] ### Response: SELECT money___$__ FROM table_name_42 WHERE score = 68 - 67 - 69 - 76 = 280 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Leonard Thompson have when he won $9,000? ### Context: CREATE TABLE table_name_74 (score VARCHAR, money___$__ VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_74 WHERE money___$__ = "9,000" AND player = "leonard thompson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date had a record of 15-14-4? ### Context: CREATE TABLE table_name_79 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_79 WHERE record = "15-14-4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the fame number when the Montreal Canadiens were the opponent? ### Context: CREATE TABLE table_name_56 (game VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT COUNT(game) FROM table_name_56 WHERE opponent = "montreal canadiens" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 35? ### Context: CREATE TABLE table_name_43 (score VARCHAR, game VARCHAR) [/INST] ### Response: SELECT score FROM table_name_43 WHERE game = 35 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 oveall pick for players from the college of Miami (FL)? ### Context: CREATE TABLE table_name_69 (overall INTEGER, college VARCHAR) [/INST] ### Response: SELECT AVG(overall) FROM table_name_69 WHERE college = "miami (fl)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was drafted overall from the college of Nebraska in a round under 6, pick of 15, and overall under 224? ### Context: CREATE TABLE table_name_19 (name VARCHAR, college VARCHAR, pick VARCHAR, overall VARCHAR, round VARCHAR) [/INST] ### Response: SELECT name FROM table_name_19 WHERE overall < 224 AND round < 6 AND pick = 15 AND college = "nebraska" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall draft pick number for terry daniels who was picked in round 10? ### Context: CREATE TABLE table_name_17 (overall INTEGER, round VARCHAR, name VARCHAR) [/INST] ### Response: SELECT MIN(overall) FROM table_name_17 WHERE round = 10 AND name = "terry daniels" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of the rounds where the draft pick came from the college of tennessee and had an overall pick number bigger than 153 and a pick less than 14? ### Context: CREATE TABLE table_name_11 (round INTEGER, pick VARCHAR, college VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_11 WHERE college = "tennessee" AND overall > 153 AND pick < 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What position did the draft pick number play that was overall pick number 133? ### Context: CREATE TABLE table_name_20 (position VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT position FROM table_name_20 WHERE overall = 133 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall pick number for the player who was picked on round 8? ### Context: CREATE TABLE table_name_91 (overall INTEGER, round VARCHAR) [/INST] ### Response: SELECT MIN(overall) FROM table_name_91 WHERE round = 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What college did the player who had the position of OT come from who was pick number less than 12 and a overall pick number bigger than 226? ### Context: CREATE TABLE table_name_87 (college VARCHAR, position VARCHAR, overall VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT college FROM table_name_87 WHERE overall > 226 AND pick < 12 AND position = "ot" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT IS THE APPOINTMENT DATE WITH A PRE-SEASON POSITION, AND REPLACED BY THOMAS THOMASBERG? ### Context: CREATE TABLE table_name_3 (date_of_appointment VARCHAR, position_in_table VARCHAR, replaced_by VARCHAR) [/INST] ### Response: SELECT date_of_appointment FROM table_name_3 WHERE position_in_table = "pre-season" AND replaced_by = "thomas thomasberg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 APPOINTMENT DATE FOR AC HORSENS? ### Context: CREATE TABLE table_name_33 (date_of_appointment VARCHAR, team VARCHAR) [/INST] ### Response: SELECT date_of_appointment FROM table_name_33 WHERE team = "ac horsens" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 HAS 12TH TABLE POSITION AND REPLACED BY OVE PEDERSEN? ### Context: CREATE TABLE table_name_98 (team VARCHAR, position_in_table VARCHAR, replaced_by VARCHAR) [/INST] ### Response: SELECT team FROM table_name_98 WHERE position_in_table = "12th" AND replaced_by = "ove pedersen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Calgary was visiting team and Niittymaki had the decision? ### Context: CREATE TABLE table_name_78 (score VARCHAR, decision VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT score FROM table_name_78 WHERE decision = "niittymaki" AND visitor = "calgary" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score when Biron got the decision and Philadelphia was the visitor on March 1? ### Context: CREATE TABLE table_name_38 (score VARCHAR, date VARCHAR, decision VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT score FROM table_name_38 WHERE decision = "biron" AND visitor = "philadelphia" AND date = "march 1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the attendance when Pittsburgh is the home team? ### Context: CREATE TABLE table_name_78 (attendance INTEGER, home VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_78 WHERE home = "pittsburgh" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance after Week 4 on October 10, 1971? ### Context: CREATE TABLE table_name_35 (attendance INTEGER, date VARCHAR, week VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_35 WHERE date = "october 10, 1971" AND week > 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 was the Attendance in the game against the New Orleans Saints? ### Context: CREATE TABLE table_name_29 (attendance VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_29 WHERE opponent = "new orleans saints" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Eagle Riders character voiced by Japanese voice actor Katsuji Mori? ### Context: CREATE TABLE table_name_27 (eagle_riders VARCHAR, japanese_voice_actor VARCHAR) [/INST] ### Response: SELECT eagle_riders FROM table_name_27 WHERE japanese_voice_actor = "katsuji mori" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 weapon was used when the Battle of the Planets was Jason? ### Context: CREATE TABLE table_name_48 (weapon VARCHAR, battle_of_the_planets VARCHAR) [/INST] ### Response: SELECT weapon FROM table_name_48 WHERE battle_of_the_planets = "jason" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 voice actor (ADV TV/Sentai OVA dub) for the Gatchaman, jun? ### Context: CREATE TABLE table_name_22 (voice_actor__adv_tv_sentai_ova_dub_ VARCHAR, gatchaman VARCHAR) [/INST] ### Response: SELECT voice_actor__adv_tv_sentai_ova_dub_ FROM table_name_22 WHERE gatchaman = "jun" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Japanese voice actor had the Mecha of airplane? ### Context: CREATE TABLE table_name_28 (japanese_voice_actor VARCHAR, mecha VARCHAR) [/INST] ### Response: SELECT japanese_voice_actor FROM table_name_28 WHERE mecha = "airplane" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1st leg has a Team 1 of drita? ### Context: CREATE TABLE table_name_3 (team_1 VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_3 WHERE team_1 = "drita" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2 has a Team 1 of vardar? ### Context: CREATE TABLE table_name_76 (team_2 VARCHAR, team_1 VARCHAR) [/INST] ### Response: SELECT team_2 FROM table_name_76 WHERE team_1 = "vardar" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What years was the jersey number(s) smaller than 3? ### Context: CREATE TABLE table_name_1 (years VARCHAR, jersey_number_s_ INTEGER) [/INST] ### Response: SELECT years FROM table_name_1 WHERE jersey_number_s_ < 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: Which position was played by the player wearing jersey number 40? ### Context: CREATE TABLE table_name_23 (position VARCHAR, jersey_number_s_ VARCHAR) [/INST] ### Response: SELECT position FROM table_name_23 WHERE jersey_number_s_ = 40 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What pick number was the rhp with a hometown/school of university of hawaii? ### Context: CREATE TABLE table_name_42 (pick INTEGER, position VARCHAR, hometown_school VARCHAR) [/INST] ### Response: SELECT MIN(pick) FROM table_name_42 WHERE position = "rhp" AND hometown_school = "university of hawaii" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What player was drafted number 10? ### Context: CREATE TABLE table_name_75 (player VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT player FROM table_name_75 WHERE pick = 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What number pick was the player with the hometown school of concordia college? ### Context: CREATE TABLE table_name_96 (pick VARCHAR, hometown_school VARCHAR) [/INST] ### Response: SELECT pick FROM table_name_96 WHERE hometown_school = "concordia college" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of game 66? ### Context: CREATE TABLE table_name_34 (date VARCHAR, game VARCHAR) [/INST] ### Response: SELECT date FROM table_name_34 WHERE game = 66 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the game on February 21? ### Context: CREATE TABLE table_name_34 (game VARCHAR, date VARCHAR) [/INST] ### Response: SELECT game FROM table_name_34 WHERE date = "february 21" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number of draws that has a played entry of less than 30 and a goal difference greater than 2? ### Context: CREATE TABLE table_name_9 (draws INTEGER, goal_difference VARCHAR, played VARCHAR) [/INST] ### Response: SELECT AVG(draws) FROM table_name_9 WHERE goal_difference > 2 AND played < 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: What is the average number played that has fewer than 11 wins, more than 42 goals, more than 22 points, and 11 losses? ### Context: CREATE TABLE table_name_91 (played INTEGER, losses VARCHAR, points VARCHAR, wins VARCHAR, goals_for VARCHAR) [/INST] ### Response: SELECT AVG(played) FROM table_name_91 WHERE wins < 11 AND goals_for > 42 AND points > 22 AND losses = 11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total of the goal difference entries for entries with fewer than 49 goals and position smaller than 8? ### Context: CREATE TABLE table_name_9 (goal_difference VARCHAR, goals_for VARCHAR, position VARCHAR) [/INST] ### Response: SELECT COUNT(goal_difference) FROM table_name_9 WHERE goals_for < 49 AND position < 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest played for the entry with position of 2 and fewer than 9 losses? ### Context: CREATE TABLE table_name_61 (played INTEGER, position VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT MIN(played) FROM table_name_61 WHERE position = 2 AND losses < 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 is the total number of losses for entries that have 12 wins and a goal difference smaller than -14? ### Context: CREATE TABLE table_name_37 (losses VARCHAR, wins VARCHAR, goal_difference VARCHAR) [/INST] ### Response: SELECT COUNT(losses) FROM table_name_37 WHERE wins = 12 AND goal_difference < -14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the goals for Pelletieri in ARG? ### Context: CREATE TABLE table_name_18 (goals_l_c_e_ VARCHAR, nat VARCHAR, name VARCHAR) [/INST] ### Response: SELECT goals_l_c_e_ FROM table_name_18 WHERE nat = "arg" AND name = "pelletieri" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fewest ends with an App(L/C/E) of 51 (44/6/1)? ### Context: CREATE TABLE table_name_3 (ends INTEGER, app_l_c_e_ VARCHAR) [/INST] ### Response: SELECT MIN(ends) FROM table_name_3 WHERE app_l_c_e_ = "51 (44/6/1)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who has a nationality of GRE and an App(L/C/E) of 49 (40/8/1)? ### Context: CREATE TABLE table_name_98 (name VARCHAR, nat VARCHAR, app_l_c_e_ VARCHAR) [/INST] ### Response: SELECT name FROM table_name_98 WHERE nat = "gre" AND app_l_c_e_ = "49 (40/8/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 gaols(L/C/E) with an App(L/C/E) of 55 (47/5/3)? ### Context: CREATE TABLE table_name_50 (goals_l_c_e_ VARCHAR, app_l_c_e_ VARCHAR) [/INST] ### Response: SELECT goals_l_c_e_ FROM table_name_50 WHERE app_l_c_e_ = "55 (47/5/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: who won the lifetime achievement in the year 1998? ### Context: CREATE TABLE table_name_39 (lifetime_achievement VARCHAR, year VARCHAR) [/INST] ### Response: SELECT lifetime_achievement FROM table_name_39 WHERE year = 1998 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Constructor with total time of 2:45.416 ### Context: CREATE TABLE table_name_72 (constructor VARCHAR, q1 VARCHAR, q2_time VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_72 WHERE q1 + q2_time = "2:45.416" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Driver at larger than 10 with a Q1 of 18. ### Context: CREATE TABLE table_name_28 (driver VARCHAR, q1_order VARCHAR, q1_pos VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_28 WHERE q1_order > 10 AND q1_pos = 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: Who was the opponent when the record was 55-14? ### Context: CREATE TABLE table_name_52 (opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_52 WHERE record = "55-14" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the game number when record is 59-15? ### Context: CREATE TABLE table_name_71 (game INTEGER, record VARCHAR) [/INST] ### Response: SELECT MIN(game) FROM table_name_71 WHERE record = "59-15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date that the record was 51-14? ### Context: CREATE TABLE table_name_62 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_62 WHERE record = "51-14" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of Pick #, when College is Laurier? ### Context: CREATE TABLE table_name_79 (pick__number INTEGER, college VARCHAR) [/INST] ### Response: SELECT SUM(pick__number) FROM table_name_79 WHERE college = "laurier" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 CFL Team, when Pick # is greater than 34, and when College is Boise State? ### Context: CREATE TABLE table_name_86 (cfl_team VARCHAR, pick__number VARCHAR, college VARCHAR) [/INST] ### Response: SELECT cfl_team FROM table_name_86 WHERE pick__number > 34 AND college = "boise state" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest Pick #, when Position is REC, and when CFL Team is Hamilton Tiger-Cats? ### Context: CREATE TABLE table_name_62 (pick__number INTEGER, position VARCHAR, cfl_team VARCHAR) [/INST] ### Response: SELECT MIN(pick__number) FROM table_name_62 WHERE position = "rec" AND cfl_team = "hamilton tiger-cats" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position is DB, and when College is Saint Mary's? ### Context: CREATE TABLE table_name_71 (player VARCHAR, position VARCHAR, college VARCHAR) [/INST] ### Response: SELECT player FROM table_name_71 WHERE position = "db" AND college = "saint mary's" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position, when Pick # is less than 40, and when College is Western? ### Context: CREATE TABLE table_name_40 (position VARCHAR, pick__number VARCHAR, college VARCHAR) [/INST] ### Response: SELECT position FROM table_name_40 WHERE pick__number < 40 AND college = "western" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Time of 12:00? ### Context: CREATE TABLE table_name_80 (date VARCHAR, time VARCHAR) [/INST] ### Response: SELECT date FROM table_name_80 WHERE time = "12:00" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Set 1 of 25–20, what was Set 2? ### Context: CREATE TABLE table_name_38 (set_2 VARCHAR, set_1 VARCHAR) [/INST] ### Response: SELECT set_2 FROM table_name_38 WHERE set_1 = "25–20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What royal house did Shaokang belong to? ### Context: CREATE TABLE table_name_94 (royal_house VARCHAR, name VARCHAR) [/INST] ### Response: SELECT royal_house FROM table_name_94 WHERE name = "shaokang" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank of a building erected in 1976 with fewer than 21 floors? ### Context: CREATE TABLE table_name_60 (rank INTEGER, year VARCHAR, floors VARCHAR) [/INST] ### Response: SELECT MAX(rank) FROM table_name_60 WHERE year = 1976 AND floors < 21 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team was the opponent when February shows more than 2, with a game number less than 55? ### Context: CREATE TABLE table_name_92 (opponent VARCHAR, february VARCHAR, game VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_92 WHERE february > 2 AND game < 55 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game number when the Toronto Maple Leafs were the opponent, and the February was less than 17? ### Context: CREATE TABLE table_name_49 (game INTEGER, opponent VARCHAR, february VARCHAR) [/INST] ### Response: SELECT AVG(game) FROM table_name_49 WHERE opponent = "toronto maple leafs" AND february < 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 number of the game when the opponent was the New York Islanders, and a February less than 24? ### Context: CREATE TABLE table_name_62 (game INTEGER, opponent VARCHAR, february VARCHAR) [/INST] ### Response: SELECT SUM(game) FROM table_name_62 WHERE opponent = "new york islanders" AND february < 24 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest game number when the record was 26-24-9? ### Context: CREATE TABLE table_name_58 (game INTEGER, record VARCHAR) [/INST] ### Response: SELECT MIN(game) FROM table_name_58 WHERE record = "26-24-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 rank has less than 16 gold, more than 2 bronze and silver, and a total of 14? ### Context: CREATE TABLE table_name_44 (rank VARCHAR, total VARCHAR, silver VARCHAR, gold VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_44 WHERE gold < 16 AND bronze > 2 AND silver > 2 AND total = 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the silver for rank 1 with less than 2 bronze? ### Context: CREATE TABLE table_name_92 (silver INTEGER, rank VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT MIN(silver) FROM table_name_92 WHERE rank = "1" AND bronze < 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's the lowest total when there's less than 16 bronze and more than 6 silver? ### Context: CREATE TABLE table_name_13 (total INTEGER, bronze VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_13 WHERE bronze < 16 AND silver > 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's the lowest gold with a total over 15 and less than 16 silver? ### Context: CREATE TABLE table_name_98 (gold INTEGER, total VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MIN(gold) FROM table_name_98 WHERE total > 15 AND silver < 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 Gold has a Rank of 7, a Nation of italy, and a Silver smaller than 0? ### Context: CREATE TABLE table_name_40 (gold VARCHAR, silver VARCHAR, rank VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT COUNT(gold) FROM table_name_40 WHERE rank = "7" AND nation = "italy" AND silver < 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 Gold has a Total larger than 3, a Rank of total, and a Silver larger than 8? ### Context: CREATE TABLE table_name_60 (gold INTEGER, silver VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT AVG(gold) FROM table_name_60 WHERE "total" > 3 AND rank = "total" AND silver > 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 Club team has a Pick larger than 139? ### Context: CREATE TABLE table_name_55 (club_team VARCHAR, pick INTEGER) [/INST] ### Response: SELECT club_team FROM table_name_55 WHERE pick > 139 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nationality has a Pick larger than 109, and a Round smaller than 5? ### Context: CREATE TABLE table_name_9 (nationality VARCHAR, pick VARCHAR, round VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_9 WHERE pick > 109 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 school was Lawrence Roberts from ? ### Context: CREATE TABLE table_name_13 (school_club_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_13 WHERE player = "lawrence roberts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 school was Chris Robinson from? ### Context: CREATE TABLE table_name_60 (school_club_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_60 WHERE player = "chris robinson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position that Chris Robinson played? ### Context: CREATE TABLE table_name_79 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_79 WHERE player = "chris robinson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In which years did Zach Randolph play for the Grizzlies? ### Context: CREATE TABLE table_name_27 (years_for_grizzlies VARCHAR, player VARCHAR) [/INST] ### Response: SELECT years_for_grizzlies FROM table_name_27 WHERE player = "zach randolph" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played for Western Kentucky? ### Context: CREATE TABLE table_name_61 (player VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT player FROM table_name_61 WHERE school_club_team = "western kentucky" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on January 14 when the Chicago Black Hawks were home against the New York Rangers? ### Context: CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT score FROM table_name_18 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND date = "january 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 was the home team on February 18 that had a visitor of the Chicago Black Hawks? ### Context: CREATE TABLE table_name_56 (home VARCHAR, visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_56 WHERE visitor = "chicago black hawks" AND date = "february 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 points diff when points against is 123? ### Context: CREATE TABLE table_name_73 (points_diff VARCHAR, points_against VARCHAR) [/INST] ### Response: SELECT points_diff FROM table_name_73 WHERE points_against = "123" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 123 points agaibst the other team? ### Context: CREATE TABLE table_name_83 (team VARCHAR, points_against VARCHAR) [/INST] ### Response: SELECT team FROM table_name_83 WHERE points_against = "123" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points against when try diff is +23? ### Context: CREATE TABLE table_name_67 (points_against VARCHAR, try_diff VARCHAR) [/INST] ### Response: SELECT points_against FROM table_name_67 WHERE try_diff = "+23" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is points when try diff is +23? ### Context: CREATE TABLE table_name_7 (points_for VARCHAR, try_diff VARCHAR) [/INST] ### Response: SELECT points_for FROM table_name_7 WHERE try_diff = "+23" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is points sgsinst when points diff is +96? ### Context: CREATE TABLE table_name_70 (points_against VARCHAR, points_diff VARCHAR) [/INST] ### Response: SELECT points_against FROM table_name_70 WHERE points_diff = "+96" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps led when the Grid was 15? ### Context: CREATE TABLE table_name_29 (laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT laps AS Led FROM table_name_29 WHERE grid = "15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the Time/Retired when the points were 32. ### Context: CREATE TABLE table_name_84 (time_retired VARCHAR, points VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_84 WHERE points = "32" </s>