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 point classification with chris anker sørensen as the young rider classification and Christian vande velde as the general classification? ### Context: CREATE TABLE table_name_93 (points_classification VARCHAR, young_rider_classification VARCHAR, general_classification VARCHAR) [/INST] ### Response: SELECT points_classification FROM table_name_93 WHERE young_rider_classification = "chris anker sørensen" AND general_classification = "christian vande velde" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 point classification of stage 15? ### Context: CREATE TABLE table_name_92 (points_classification VARCHAR, stage VARCHAR) [/INST] ### Response: SELECT points_classification FROM table_name_92 WHERE stage = "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 week number was at memorial stadium? ### Context: CREATE TABLE table_name_53 (week INTEGER, game_site VARCHAR) [/INST] ### Response: SELECT AVG(week) FROM table_name_53 WHERE game_site = "memorial stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: before week 12 what was the attendance on 1983-11-21? ### Context: CREATE TABLE table_name_22 (attendance INTEGER, date VARCHAR, week VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_22 WHERE date = "1983-11-21" AND week < 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: on week 16, what was the lowest attendance? ### Context: CREATE TABLE table_name_34 (attendance INTEGER, week VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_34 WHERE week = 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: At what venue is the margin of victory 7 strokes? ### Context: CREATE TABLE table_name_82 (venue VARCHAR, margin_of_victory VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_82 WHERE margin_of_victory = "7 strokes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the purse when Sherri Steinhauer was champion at Woburn Golf and Country Club? ### Context: CREATE TABLE table_name_41 (purse___ VARCHAR, champion VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT COUNT(purse___) AS $__ FROM table_name_41 WHERE champion = "sherri steinhauer" AND venue = "woburn golf and country club" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 exit date of the player who transferred to Cardiff City? ### Context: CREATE TABLE table_name_9 (exit_date VARCHAR, to_club VARCHAR) [/INST] ### Response: SELECT exit_date FROM table_name_9 WHERE to_club = "cardiff city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the exit date of the player who transferred to Portsmouth? ### Context: CREATE TABLE table_name_58 (exit_date VARCHAR, to_club VARCHAR) [/INST] ### Response: SELECT exit_date FROM table_name_58 WHERE to_club = "portsmouth" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position of FW? ### Context: CREATE TABLE table_name_25 (player VARCHAR, pos VARCHAR) [/INST] ### Response: SELECT player FROM table_name_25 WHERE pos = "fw" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Frequency MHz has an ERP W larger than 4, and a Call sign of w218ap? ### Context: CREATE TABLE table_name_92 (frequency_mhz VARCHAR, erp_w VARCHAR, call_sign VARCHAR) [/INST] ### Response: SELECT frequency_mhz FROM table_name_92 WHERE erp_w > 4 AND call_sign = "w218ap" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 City of license has a Frequency MHz of 91.5 fm? ### Context: CREATE TABLE table_name_42 (city_of_license VARCHAR, frequency_mhz VARCHAR) [/INST] ### Response: SELECT city_of_license FROM table_name_42 WHERE frequency_mhz = "91.5 fm" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 City of license has a Call sign of w220ba? ### Context: CREATE TABLE table_name_64 (city_of_license VARCHAR, call_sign VARCHAR) [/INST] ### Response: SELECT city_of_license FROM table_name_64 WHERE call_sign = "w220ba" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ERP W has a Frequency MHz of 89.3 fm? ### Context: CREATE TABLE table_name_98 (erp_w INTEGER, frequency_mhz VARCHAR) [/INST] ### Response: SELECT MAX(erp_w) FROM table_name_98 WHERE frequency_mhz = "89.3 fm" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wins does Greg Norman have? ### Context: CREATE TABLE table_name_15 (wins INTEGER, player VARCHAR) [/INST] ### Response: SELECT SUM(wins) FROM table_name_15 WHERE player = "greg norman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number played with a position of 6 and less than 1 draw? ### Context: CREATE TABLE table_name_89 (played INTEGER, position VARCHAR, drawn VARCHAR) [/INST] ### Response: SELECT MIN(played) FROM table_name_89 WHERE position = 6 AND drawn < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest against value for Palmeiras and position less than 4? ### Context: CREATE TABLE table_name_86 (against INTEGER, team VARCHAR, position VARCHAR) [/INST] ### Response: SELECT MAX(against) FROM table_name_86 WHERE team = "palmeiras" AND position < 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 highest number played with more than 2 lost for Palmeiras and less than 1 draw? ### Context: CREATE TABLE table_name_69 (played INTEGER, drawn VARCHAR, lost VARCHAR, team VARCHAR) [/INST] ### Response: SELECT MAX(played) FROM table_name_69 WHERE lost > 2 AND team = "palmeiras" AND drawn < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number lost when the against value is less than 5? ### Context: CREATE TABLE table_name_86 (lost INTEGER, against INTEGER) [/INST] ### Response: SELECT AVG(lost) FROM table_name_86 WHERE against < 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: How many values for a win by 2 or more goals correspond to a difference of 2, more than 9 points, and the America-RJ team when more than 7 are played? ### Context: CREATE TABLE table_name_3 (won_by_2_or_more_goals_difference VARCHAR, played VARCHAR, team VARCHAR, difference VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(won_by_2_or_more_goals_difference) FROM table_name_3 WHERE difference = "2" AND points > 9 AND team = "america-rj" AND played > 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 is the average total of the census after 1971 with 10,412 (32.88%) Serbs? ### Context: CREATE TABLE table_name_90 (total INTEGER, year_of_census VARCHAR, serbs VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_90 WHERE year_of_census > 1971 AND serbs = "10,412 (32.88%)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 school that hosts jim goodman ### Context: CREATE TABLE table_name_57 (school_club_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_57 WHERE player = "jim goodman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Surface has a Date of january 2, 2006? ### Context: CREATE TABLE table_name_68 (surface VARCHAR, date VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_68 WHERE date = "january 2, 2006" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 happened on september 25, 2006? ### Context: CREATE TABLE table_name_78 (tournament VARCHAR, date VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_78 WHERE date = "september 25, 2006" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did joão souza play? ### Context: CREATE TABLE table_name_11 (date VARCHAR, opponen VARCHAR) [/INST] ### Response: SELECT date FROM table_name_11 WHERE opponen = "joão souza" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Surface has a Score of 7–5, 6–4? ### Context: CREATE TABLE table_name_17 (surface VARCHAR, score VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_17 WHERE score = "7–5, 6–4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest NFL Draft that has jeff robinson as the player, with an overall pick less than 98? ### Context: CREATE TABLE table_name_47 (nfl_draft INTEGER, player VARCHAR, overall_pick VARCHAR) [/INST] ### Response: SELECT MAX(nfl_draft) FROM table_name_47 WHERE player = "jeff robinson" AND overall_pick < 98 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has 1958 as the NFL Draft, and jerry kramer as the player? ### Context: CREATE TABLE table_name_55 (position VARCHAR, nfl_draft VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_55 WHERE nfl_draft = 1958 AND player = "jerry kramer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall pick that has c as the position, with an NFL Draft greater than 1977? ### Context: CREATE TABLE table_name_27 (overall_pick INTEGER, position VARCHAR, nfl_draft VARCHAR) [/INST] ### Response: SELECT MAX(overall_pick) FROM table_name_27 WHERE position = "c" AND nfl_draft > 1977 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at Spartan Stadium when San Jose was the Home team? ### Context: CREATE TABLE table_name_18 (score VARCHAR, home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT score FROM table_name_18 WHERE home_team = "san jose" AND venue = "spartan stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where was the game on September 11, 2004? ### Context: CREATE TABLE table_name_95 (venue VARCHAR, date VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_95 WHERE date = "september 11, 2004" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 September 20, 1998 at Spartan Stadium? ### Context: CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_39 WHERE venue = "spartan stadium" AND date = "september 20, 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: What method has a round less than 3, and 3:36 as the time? ### Context: CREATE TABLE table_name_5 (method VARCHAR, round VARCHAR, time VARCHAR) [/INST] ### Response: SELECT method FROM table_name_5 WHERE round < 3 AND time = "3:36" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What method has randy couture as the opponent? ### Context: CREATE TABLE table_name_15 (method VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT method FROM table_name_15 WHERE opponent = "randy couture" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 median household income where the per capita is $28,789? ### Context: CREATE TABLE table_name_27 (median_household_income VARCHAR, per_capita_income VARCHAR) [/INST] ### Response: SELECT median_household_income FROM table_name_27 WHERE per_capita_income = "$28,789" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 median income for a family whose per capita income is $18,296? ### Context: CREATE TABLE table_name_14 (median_family_income VARCHAR, per_capita_income VARCHAR) [/INST] ### Response: SELECT median_family_income FROM table_name_14 WHERE per_capita_income = "$18,296" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 resolution of the network Canal de las Estrellas? ### Context: CREATE TABLE table_name_96 (resolution VARCHAR, network VARCHAR) [/INST] ### Response: SELECT resolution FROM table_name_96 WHERE network = "canal de las estrellas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 resolution of the network Carismatv? ### Context: CREATE TABLE table_name_47 (resolution VARCHAR, network VARCHAR) [/INST] ### Response: SELECT resolution FROM table_name_47 WHERE network = "carismatv" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dish belongs to the network that has the official website of ksat.com? ### Context: CREATE TABLE table_name_46 (dish VARCHAR, official_website VARCHAR) [/INST] ### Response: SELECT dish FROM table_name_46 WHERE official_website = "ksat.com" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city is the network latv licensed? ### Context: CREATE TABLE table_name_93 (city_of_license VARCHAR, network VARCHAR) [/INST] ### Response: SELECT city_of_license FROM table_name_93 WHERE network = "latv" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city is the network with the callsign kgns-dt3 licensed? ### Context: CREATE TABLE table_name_71 (city_of_license VARCHAR, callsign VARCHAR) [/INST] ### Response: SELECT city_of_license FROM table_name_71 WHERE callsign = "kgns-dt3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the introduced section had Fokker as a manufacturer, a quantity of 5, and retired later than 1999? ### Context: CREATE TABLE table_name_94 (introduced INTEGER, retired VARCHAR, manufacturer VARCHAR, quantity VARCHAR) [/INST] ### Response: SELECT SUM(introduced) FROM table_name_94 WHERE manufacturer = "fokker" AND quantity = 5 AND retired > 1999 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 quantity when the introductory year was 1984? ### Context: CREATE TABLE table_name_30 (quantity INTEGER, introduced VARCHAR) [/INST] ### Response: SELECT SUM(quantity) FROM table_name_30 WHERE introduced = 1984 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the introduced segment retired later than 1994 and had Fokker as a manufacturer? ### Context: CREATE TABLE table_name_80 (introduced VARCHAR, retired VARCHAR, manufacturer VARCHAR) [/INST] ### Response: SELECT COUNT(introduced) FROM table_name_80 WHERE retired > 1994 AND manufacturer = "fokker" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the quantity section had Fokker as a manufacturer and retired later than 1999? ### Context: CREATE TABLE table_name_68 (quantity VARCHAR, manufacturer VARCHAR, retired VARCHAR) [/INST] ### Response: SELECT COUNT(quantity) FROM table_name_68 WHERE manufacturer = "fokker" AND retired > 1999 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Championship has a Scoreboard that is 22-14? ### Context: CREATE TABLE table_name_74 (champion VARCHAR, scoreboard VARCHAR) [/INST] ### Response: SELECT champion FROM table_name_74 WHERE scoreboard = "22-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 year was the building with a top 3 rank and a height of 274 (84) ft (m) completed? ### Context: CREATE TABLE table_name_81 (year_completed INTEGER, rank VARCHAR, height_ft__m_ VARCHAR) [/INST] ### Response: SELECT MAX(year_completed) FROM table_name_81 WHERE rank < 3 AND height_ft__m_ = "274 (84)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 floors are in the 274 (84) ft (m) building that is ranked number 1? ### Context: CREATE TABLE table_name_99 (floors__stories_ INTEGER, height_ft__m_ VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT AVG(floors__stories_) FROM table_name_99 WHERE height_ft__m_ = "274 (84)" AND rank > 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 is the highest ranked building with more than 15 floors? ### Context: CREATE TABLE table_name_45 (rank INTEGER, floors__stories_ INTEGER) [/INST] ### Response: SELECT MAX(rank) FROM table_name_45 WHERE floors__stories_ > 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 highest points scored for the team with a position larger than 5, who had less than 4 wins and more than 8 draws? ### Context: CREATE TABLE table_name_99 (scored INTEGER, draws VARCHAR, position VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MAX(scored) FROM table_name_99 WHERE position > 5 AND wins < 4 AND draws > 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 average number conceded for hte team that had less than 19 points, played more than 18 games and had a position less than 10? ### Context: CREATE TABLE table_name_65 (conceded INTEGER, played VARCHAR, points VARCHAR, position VARCHAR) [/INST] ### Response: SELECT AVG(conceded) FROM table_name_65 WHERE points < 19 AND position < 10 AND played > 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 was the sum of the draws for the team that had 11 wins, less than 38 points, and a position smaller than 4? ### Context: CREATE TABLE table_name_19 (draws INTEGER, points VARCHAR, position VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT SUM(draws) FROM table_name_19 WHERE position < 4 AND wins = 11 AND points < 38 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the lowest number of wins for the team that scored more than 14 points and had a position of 7? ### Context: CREATE TABLE table_name_78 (wins INTEGER, position VARCHAR, scored VARCHAR) [/INST] ### Response: SELECT MIN(wins) FROM table_name_78 WHERE position = 7 AND scored > 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 total number scored for the team that had 19 points and a position larger than 4? ### Context: CREATE TABLE table_name_48 (scored VARCHAR, position VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(scored) FROM table_name_48 WHERE position > 4 AND points = 19 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number conceded for the team that had less than 8 wins, scored 21, and had less than 23 points? ### Context: CREATE TABLE table_name_77 (conceded INTEGER, points VARCHAR, wins VARCHAR, scored VARCHAR) [/INST] ### Response: SELECT MIN(conceded) FROM table_name_77 WHERE wins < 8 AND scored = 21 AND points < 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: Which Date has a Result of l 14–13? ### Context: CREATE TABLE table_name_88 (date VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_88 WHERE result = "l 14–13" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result of w 13–6? ### Context: CREATE TABLE table_name_84 (date VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_84 WHERE result = "w 13–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 is the Result of Week larger than 3 on 1971-11-07? ### Context: CREATE TABLE table_name_94 (result VARCHAR, week VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_94 WHERE week > 3 AND date = "1971-11-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 pos with more than 1 tier during Pokal Slovenije 1. round? ### Context: CREATE TABLE table_name_20 (pos VARCHAR, tier VARCHAR, cup_competitions VARCHAR) [/INST] ### Response: SELECT pos FROM table_name_20 WHERE tier > 1 AND cup_competitions = "pokal slovenije 1. round" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 exact Cubic inches of the Metric value of 104.955 L? ### Context: CREATE TABLE table_name_9 (cubic_inches__exact_ VARCHAR, metric_value VARCHAR) [/INST] ### Response: SELECT cubic_inches__exact_ FROM table_name_9 WHERE metric_value = "104.955 l" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Translation of the US Customary value 0.263 pt? ### Context: CREATE TABLE table_name_47 (translation VARCHAR, us_customary VARCHAR) [/INST] ### Response: SELECT translation FROM table_name_47 WHERE us_customary = "0.263 pt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Metric value of Russian че́тверть? ### Context: CREATE TABLE table_name_19 (metric_value VARCHAR, russian VARCHAR) [/INST] ### Response: SELECT metric_value FROM table_name_19 WHERE russian = "че́тверть" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 exact Cubic inches of the Unit of kruzhka? ### Context: CREATE TABLE table_name_86 (cubic_inches__exact_ VARCHAR, unit VARCHAR) [/INST] ### Response: SELECT cubic_inches__exact_ FROM table_name_86 WHERE unit = "kruzhka" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Zero Fighter has a count of 10? ### Context: CREATE TABLE table_name_1 (id_code_of_his_zero_fighter VARCHAR, count VARCHAR) [/INST] ### Response: SELECT id_code_of_his_zero_fighter FROM table_name_1 WHERE count = "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: On which day were the subtotal hours 9:30? ### Context: CREATE TABLE table_name_9 (date VARCHAR, sub_total VARCHAR) [/INST] ### Response: SELECT date FROM table_name_9 WHERE sub_total = "9: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 count for the Zero Fighter with hours of 2:00? ### Context: CREATE TABLE table_name_5 (count VARCHAR, flight_hours VARCHAR) [/INST] ### Response: SELECT count FROM table_name_5 WHERE flight_hours = "2: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: Which record has Katsuomi Inagaki as an opponent? ### Context: CREATE TABLE table_name_51 (record VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT record FROM table_name_51 WHERE opponent = "katsuomi inagaki" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 method has a 1:46 time? ### Context: CREATE TABLE table_name_63 (method VARCHAR, time VARCHAR) [/INST] ### Response: SELECT method FROM table_name_63 WHERE time = "1:46" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Henri Crockett's highest overall with more than 3 picks? ### Context: CREATE TABLE table_name_65 (overall INTEGER, pick__number VARCHAR, name VARCHAR) [/INST] ### Response: SELECT MAX(overall) FROM table_name_65 WHERE pick__number > 3 AND name = "henri crockett" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college has fewer than 2 rounds? ### Context: CREATE TABLE table_name_7 (college VARCHAR, round INTEGER) [/INST] ### Response: SELECT college FROM table_name_7 WHERE 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 are the total number of picks for a guard with fewer than 6 rounds? ### Context: CREATE TABLE table_name_66 (pick__number VARCHAR, position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT COUNT(pick__number) FROM table_name_66 WHERE position = "guard" AND round < 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 is the lowest overall for a quarterback with fewer than 7 rounds? ### Context: CREATE TABLE table_name_88 (overall INTEGER, position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT MIN(overall) FROM table_name_88 WHERE position = "quarterback" 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 Playoffs had an Open Cup of 3rd round? ### Context: CREATE TABLE table_name_83 (playoffs VARCHAR, open_cup VARCHAR) [/INST] ### Response: SELECT playoffs FROM table_name_83 WHERE open_cup = "3rd round" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 D segment for episode 60? ### Context: CREATE TABLE table_name_25 (segment_d VARCHAR, episode VARCHAR) [/INST] ### Response: SELECT segment_d FROM table_name_25 WHERE episode = 60 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 B segmint for Netlix S03E01? ### Context: CREATE TABLE table_name_54 (segment_b VARCHAR, netflix VARCHAR) [/INST] ### Response: SELECT segment_b FROM table_name_54 WHERE netflix = "s03e01" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 D segment for episode 60? ### Context: CREATE TABLE table_name_51 (segment_d VARCHAR, episode VARCHAR) [/INST] ### Response: SELECT segment_d FROM table_name_51 WHERE episode = 60 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What racing club team made supercopa 1996? ### Context: CREATE TABLE table_name_14 (supercopa_1996 VARCHAR, team VARCHAR) [/INST] ### Response: SELECT supercopa_1996 FROM table_name_14 WHERE team = "racing club" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 # country for new palestine ### Context: CREATE TABLE table_name_54 (_number___county VARCHAR, school VARCHAR) [/INST] ### Response: SELECT _number___county FROM table_name_54 WHERE school = "new palestine" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of enrollment for county of 48 madison ### Context: CREATE TABLE table_name_47 (enrollment VARCHAR, _number___county VARCHAR) [/INST] ### Response: SELECT COUNT(enrollment) FROM table_name_47 WHERE _number___county = "48 madison" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 IHSAA class with county 18 delaware and tigers mascot ### Context: CREATE TABLE table_name_82 (ihsaa_class VARCHAR, _number___county VARCHAR, mascot VARCHAR) [/INST] ### Response: SELECT ihsaa_class FROM table_name_82 WHERE _number___county = "18 delaware" AND mascot = "tigers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mascot for shelbyville ### Context: CREATE TABLE table_name_33 (mascot VARCHAR, school VARCHAR) [/INST] ### Response: SELECT mascot FROM table_name_33 WHERE school = "shelbyville" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity that has the highest greater than 1,763 and is at Hampden Park? ### Context: CREATE TABLE table_name_37 (capacity INTEGER, stadium VARCHAR, highest VARCHAR) [/INST] ### Response: SELECT MIN(capacity) FROM table_name_37 WHERE stadium = "hampden park" AND highest > 1 OFFSET 763 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest with a capacity of greater than 4,000 and an average of 615? ### Context: CREATE TABLE table_name_20 (highest INTEGER, average VARCHAR, capacity VARCHAR) [/INST] ### Response: SELECT MAX(highest) FROM table_name_20 WHERE average = 615 AND capacity > 4 OFFSET 000 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: At Balmoor Stadium, what's the total average having a greater than 400 lowest? ### Context: CREATE TABLE table_name_77 (average VARCHAR, stadium VARCHAR, lowest VARCHAR) [/INST] ### Response: SELECT COUNT(average) FROM table_name_77 WHERE stadium = "balmoor" AND lowest > 400 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score of Tommy Aaron (2) when the tournament was in georgia? ### Context: CREATE TABLE table_name_38 (score VARCHAR, location VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT score FROM table_name_38 WHERE location = "georgia" AND winner = "tommy aaron (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 was the score of Ken Still (3) when he won first place? ### Context: CREATE TABLE table_name_14 (score VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT score FROM table_name_14 WHERE winner = "ken still (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 beat Chic by 8fm? ### Context: CREATE TABLE table_name_9 (beat_by VARCHAR, distance VARCHAR) [/INST] ### Response: SELECT beat_by FROM table_name_9 WHERE distance = "8fm" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 placing of the race in which Chic won by 8gf? ### Context: CREATE TABLE table_name_58 (placing VARCHAR, beat_by VARCHAR, distance VARCHAR) [/INST] ### Response: SELECT placing FROM table_name_58 WHERE beat_by = "won" AND distance = "8gf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date in which Chic won at CHS? ### Context: CREATE TABLE table_name_50 (date VARCHAR, beat_by VARCHAR, location VARCHAR) [/INST] ### Response: SELECT date FROM table_name_50 WHERE beat_by = "won" AND location = "chs" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the opponent of game 54, which was in Los Angeles and was before day 18? ### Context: CREATE TABLE table_name_26 (opponent VARCHAR, game VARCHAR, location_attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_26 WHERE location_attendance = "los angeles" AND date < 18 AND game = 54 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the earliest date of the game with a score of 2-2? ### Context: CREATE TABLE table_name_14 (date INTEGER, score VARCHAR) [/INST] ### Response: SELECT MIN(date) FROM table_name_14 WHERE score = "2-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 average date of the game with the Detroit Red Wings as the opponent? ### Context: CREATE TABLE table_name_19 (date INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT AVG(date) FROM table_name_19 WHERE opponent = "detroit red wings" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the game with a score of 4-2? ### Context: CREATE TABLE table_name_51 (date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_51 WHERE score = "4-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 was the loss of the game that had a record of 3-3? ### Context: CREATE TABLE table_name_41 (loss VARCHAR, record VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_41 WHERE record = "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 score of the game with a loss of Mercedes (0-1)? ### Context: CREATE TABLE table_name_47 (score VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT score FROM table_name_47 WHERE loss = "mercedes (0-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 was the opponent at the game with a loss of Weaver (1-2)? ### Context: CREATE TABLE table_name_71 (opponent VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_71 WHERE loss = "weaver (1-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 Remixed by with a Version of Strings for Soul's Mix? ### Context: CREATE TABLE table_name_47 (remixed_by VARCHAR, version VARCHAR) [/INST] ### Response: SELECT remixed_by FROM table_name_47 WHERE version = "strings for soul's mix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What the highest Year with a Remixed by Laurent Boutonnat? ### Context: CREATE TABLE table_name_38 (year INTEGER, remixed_by VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_38 WHERE remixed_by = "laurent boutonnat" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total Year with a Length of 4:45 an has an Album of Les Mots? ### Context: CREATE TABLE table_name_36 (year INTEGER, length VARCHAR, album VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_36 WHERE length = "4:45" AND album = "les mots" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Length with the Version of Album Version? ### Context: CREATE TABLE table_name_60 (length VARCHAR, version VARCHAR) [/INST] ### Response: SELECT length FROM table_name_60 WHERE version = "album version" </s>