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 team 2 has lokomotiva as team 1? ### Context: CREATE TABLE table_name_16 (team_2 VARCHAR, team_1 VARCHAR) [/INST] ### Response: SELECT team_2 FROM table_name_16 WHERE team_1 = "lokomotiva" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1 has sloga jugomagnat as team 2? ### Context: CREATE TABLE table_name_99 (team_1 VARCHAR, team_2 VARCHAR) [/INST] ### Response: SELECT team_1 FROM table_name_99 WHERE team_2 = "sloga jugomagnat" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What 2nd leg has pelister as team 1? ### Context: CREATE TABLE table_name_7 (team_1 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_7 WHERE team_1 = "pelister" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What 1st leg has 11 oktomvri as team 2? ### Context: CREATE TABLE table_name_78 (team_2 VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_78 WHERE team_2 = "11 oktomvri" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 against on 15/10/1999? ### Context: CREATE TABLE table_name_39 (against INTEGER, date VARCHAR) [/INST] ### Response: SELECT SUM(against) FROM table_name_39 WHERE date = "15/10/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 status is on 21/08/1999? ### Context: CREATE TABLE table_name_66 (status VARCHAR, date VARCHAR) [/INST] ### Response: SELECT status FROM table_name_66 WHERE date = "21/08/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 opposing teams playing on 11/04/1999? ### Context: CREATE TABLE table_name_63 (opposing_teams VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opposing_teams FROM table_name_63 WHERE date = "11/04/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 co-singer has sukhwinder singh as the composer? ### Context: CREATE TABLE table_name_26 (co_singer VARCHAR, composer VARCHAR) [/INST] ### Response: SELECT co_singer FROM table_name_26 WHERE composer = "sukhwinder singh" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away when the home is 3-2, and the season is 1959-60? ### Context: CREATE TABLE table_name_61 (away VARCHAR, home VARCHAR, season VARCHAR) [/INST] ### Response: SELECT away FROM table_name_61 WHERE home = "3-2" AND season = "1959-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 team has a league of bundesliga, and an away of 3-2? ### Context: CREATE TABLE table_name_32 (teams VARCHAR, league VARCHAR, away VARCHAR) [/INST] ### Response: SELECT teams FROM table_name_32 WHERE league = "bundesliga" AND away = "3-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 teams has a home of 5-0? ### Context: CREATE TABLE table_name_58 (teams VARCHAR, home VARCHAR) [/INST] ### Response: SELECT teams FROM table_name_58 WHERE home = "5-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: What teams has a home of 1-0, in the season 1988-89? ### Context: CREATE TABLE table_name_27 (teams VARCHAR, home VARCHAR, season VARCHAR) [/INST] ### Response: SELECT teams FROM table_name_27 WHERE home = "1-0" AND season = "1988-89" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player brian watts, who has a to par of 5? ### Context: CREATE TABLE table_name_5 (score VARCHAR, to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_5 WHERE to_par = 5 AND player = "brian watts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par of player len mattiace, who has a t7 place and a score of 73-74=147? ### Context: CREATE TABLE table_name_83 (to_par INTEGER, player VARCHAR, place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT MAX(to_par) FROM table_name_83 WHERE place = "t7" AND score = 73 - 74 = 147 AND player = "len mattiace" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 place of the player from the United States with a score of 74-72=146? ### Context: CREATE TABLE table_name_87 (place VARCHAR, country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_87 WHERE country = "united states" AND score = 74 - 72 = 146 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What country has a 76-71=147 score? ### Context: CREATE TABLE table_name_8 (country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_8 WHERE score = 76 - 71 = 147 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the most draws when less than 154 goals were conceded, and less than 36 games played? ### Context: CREATE TABLE table_name_74 (draws INTEGER, goals_conceded VARCHAR, games_played VARCHAR) [/INST] ### Response: SELECT MAX(draws) FROM table_name_74 WHERE goals_conceded < 154 AND games_played < 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 is the maximum goals score with less than 13 wins, greater than 86 goals were conceded, and more than 32 games lost? ### Context: CREATE TABLE table_name_87 (goals_scored INTEGER, loses VARCHAR, wins VARCHAR, goals_conceded VARCHAR) [/INST] ### Response: SELECT MAX(goals_scored) FROM table_name_87 WHERE wins < 13 AND goals_conceded > 86 AND loses > 32 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 games have been played when there are 13 wins and 45 goals were conceded? ### Context: CREATE TABLE table_name_58 (games_played VARCHAR, wins VARCHAR, goals_conceded VARCHAR) [/INST] ### Response: SELECT games_played FROM table_name_58 WHERE wins = 13 AND goals_conceded = 45 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Character Kerry Vincent's Tenure? ### Context: CREATE TABLE table_name_79 (tenure VARCHAR, character VARCHAR) [/INST] ### Response: SELECT tenure FROM table_name_79 WHERE character = "kerry vincent" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Rodger Corser Episode has a Rank of senior sergeant? ### Context: CREATE TABLE table_name_31 (episodes VARCHAR, rank VARCHAR, actor_actress VARCHAR) [/INST] ### Response: SELECT episodes FROM table_name_31 WHERE rank = "senior sergeant" AND actor_actress = "rodger corser" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Character has a Rank of intelligence officer? ### Context: CREATE TABLE table_name_3 (character VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT character FROM table_name_3 WHERE rank = "intelligence officer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Rank of the Character with Tenure of 2011? ### Context: CREATE TABLE table_name_2 (rank VARCHAR, tenure VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_2 WHERE tenure = "2011" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Actor/Actress a Tenure of 2008–2011 played Stella Dagostino? ### Context: CREATE TABLE table_name_88 (actor_actress VARCHAR, tenure VARCHAR, character VARCHAR) [/INST] ### Response: SELECT actor_actress FROM table_name_88 WHERE tenure = "2008–2011" AND character = "stella dagostino" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Jolene Anderson's Rank? ### Context: CREATE TABLE table_name_52 (rank VARCHAR, actor_actress VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_52 WHERE actor_actress = "jolene anderson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What neon has an Argon of 4.203? ### Context: CREATE TABLE table_name_89 (neon VARCHAR, argon VARCHAR) [/INST] ### Response: SELECT neon FROM table_name_89 WHERE argon = "4.203" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What krypton has an argon of 20.85? ### Context: CREATE TABLE table_name_18 (krypton VARCHAR, argon VARCHAR) [/INST] ### Response: SELECT krypton FROM table_name_18 WHERE argon = "20.85" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What argon has a neon of 10.5? ### Context: CREATE TABLE table_name_51 (argon VARCHAR, neon VARCHAR) [/INST] ### Response: SELECT argon FROM table_name_51 WHERE neon = "10.5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What neon has a krypton of 213? ### Context: CREATE TABLE table_name_61 (neon VARCHAR, krypton VARCHAR) [/INST] ### Response: SELECT neon FROM table_name_61 WHERE krypton = "213" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Wha argon has helium of 1.0000684? ### Context: CREATE TABLE table_name_54 (argon VARCHAR, helium VARCHAR) [/INST] ### Response: SELECT argon FROM table_name_54 WHERE helium = "1.0000684" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date of the victory when the Axis Unit was 5./jg 3? ### Context: CREATE TABLE table_name_45 (date__ddmmyyyy_ VARCHAR, axis_unit VARCHAR) [/INST] ### Response: SELECT date__ddmmyyyy_ FROM table_name_45 WHERE axis_unit = "5./jg 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 date of the victory when the Soviet Unit was 73 giap, and the Enemy Aircraft was bf.109g-? w.nr.? ### Context: CREATE TABLE table_name_74 (date__ddmmyyyy_ VARCHAR, soviet_unit VARCHAR, enemy_aircraft VARCHAR) [/INST] ### Response: SELECT date__ddmmyyyy_ FROM table_name_74 WHERE soviet_unit = "73 giap" AND enemy_aircraft = "bf.109g-? w.nr.?" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 aircraft flown when the axis unit was luftwaffe (**) and the enemy aircraft was ju.88? ### Context: CREATE TABLE table_name_40 (aircraft_flown VARCHAR, axis_unit VARCHAR, enemy_aircraft VARCHAR) [/INST] ### Response: SELECT aircraft_flown FROM table_name_40 WHERE axis_unit = "luftwaffe (**)" AND enemy_aircraft = "ju.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 was the enemy aircraft on 14.09.1942, when the Soviet Unit was 437 iap? ### Context: CREATE TABLE table_name_46 (enemy_aircraft VARCHAR, soviet_unit VARCHAR, date__ddmmyyyy_ VARCHAR) [/INST] ### Response: SELECT enemy_aircraft FROM table_name_46 WHERE soviet_unit = "437 iap" AND date__ddmmyyyy_ = "14.09.1942" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Reserved for (SC / ST /None) with a Name of goverdhan? ### Context: CREATE TABLE table_name_31 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR) [/INST] ### Response: SELECT reserved_for___sc___st__none_ FROM table_name_31 WHERE name = "goverdhan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of electorates (2009) has a District of mathura, and a Name of mant? ### Context: CREATE TABLE table_name_56 (number_of_electorates__2009_ INTEGER, district VARCHAR, name VARCHAR) [/INST] ### Response: SELECT MIN(number_of_electorates__2009_) FROM table_name_56 WHERE district = "mathura" AND name = "mant" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest Number of electorates (2009) with a Constituency number of total:? ### Context: CREATE TABLE table_name_41 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR) [/INST] ### Response: SELECT MAX(number_of_electorates__2009_) FROM table_name_41 WHERE constituency_number = "total:" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 inhabitants have 2009 as the election, with cremona as the municipality? ### Context: CREATE TABLE table_name_42 (inhabitants VARCHAR, election VARCHAR, municipality VARCHAR) [/INST] ### Response: SELECT inhabitants FROM table_name_42 WHERE election = 2009 AND municipality = "cremona" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 inhabitants have lega lombarda as the party, with an election greater than 2010? ### Context: CREATE TABLE table_name_26 (inhabitants VARCHAR, party VARCHAR, election VARCHAR) [/INST] ### Response: SELECT inhabitants FROM table_name_26 WHERE party = "lega lombarda" AND election > 2010 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 election that has cinisello balsamo as the municipality? ### Context: CREATE TABLE table_name_4 (election INTEGER, municipality VARCHAR) [/INST] ### Response: SELECT MIN(election) FROM table_name_4 WHERE municipality = "cinisello balsamo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 election that has monza as the municipality? ### Context: CREATE TABLE table_name_30 (election INTEGER, municipality VARCHAR) [/INST] ### Response: SELECT AVG(election) FROM table_name_30 WHERE municipality = "monza" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Whate place has 18 points with lost less than 8? ### Context: CREATE TABLE table_name_12 (place VARCHAR, points VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT COUNT(place) FROM table_name_12 WHERE points = 18 AND lost < 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 of lost for place less than 10, less than 23 points, and goals conceded less than 26 for the Chorrillo team? ### Context: CREATE TABLE table_name_21 (lost INTEGER, goals_conceded VARCHAR, team VARCHAR, place VARCHAR, points VARCHAR) [/INST] ### Response: SELECT AVG(lost) FROM table_name_21 WHERE place < 10 AND points < 23 AND team = "chorrillo" AND goals_conceded < 26 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals conceded is greater than 17 with 37 points, what is the greatest played? ### Context: CREATE TABLE table_name_51 (played INTEGER, points VARCHAR, goals_conceded VARCHAR) [/INST] ### Response: SELECT MAX(played) FROM table_name_51 WHERE points = 37 AND goals_conceded > 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 total points for a place less than 2 with a played greater than 18? ### Context: CREATE TABLE table_name_16 (points INTEGER, place VARCHAR, played VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_16 WHERE place < 2 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: When goals scored is more than 18, draw is less than 4, and goals conceded is more than 24, what is the sum of played? ### Context: CREATE TABLE table_name_33 (played VARCHAR, goals_conceded VARCHAR, goals_scored VARCHAR, draw VARCHAR) [/INST] ### Response: SELECT COUNT(played) FROM table_name_33 WHERE goals_scored > 18 AND draw < 4 AND goals_conceded > 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 total rank for New Zealand, when less than 1 bronze medals were won? ### Context: CREATE TABLE table_name_56 (rank INTEGER, nation VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT SUM(rank) FROM table_name_56 WHERE nation = "new zealand" AND bronze < 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 sum of sliver medals when there were 2 gold medals, less than 15 total medals, and the rank is greater than 5? ### Context: CREATE TABLE table_name_88 (silver INTEGER, rank VARCHAR, gold VARCHAR, total VARCHAR) [/INST] ### Response: SELECT SUM(silver) FROM table_name_88 WHERE gold = 2 AND total < 15 AND rank > 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total rank for the Netherlands when more than 2 silver medals were won? ### Context: CREATE TABLE table_name_8 (rank VARCHAR, nation VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_8 WHERE nation = "netherlands" AND silver > 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 total medal count when there are more than 1 gold and more than 2 silver medals won and the rank is less than 1? ### Context: CREATE TABLE table_name_15 (total VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT total FROM table_name_15 WHERE gold > 1 AND silver > 2 AND rank < 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 medal total when the rank is less than 5 and less than 7 bronze medals were won? ### Context: CREATE TABLE table_name_64 (total INTEGER, rank VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_64 WHERE rank < 5 AND bronze < 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: Who did Tony Oakey win against when he had type of w pts 12? ### Context: CREATE TABLE table_name_54 (opponent VARCHAR, result VARCHAR, type VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_54 WHERE result = "win" AND type = "w pts 12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was Tony Oakey's Rd., Time when he fought against hastings rasani? ### Context: CREATE TABLE table_name_48 (rd VARCHAR, _time VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT rd, _time FROM table_name_48 WHERE opponent = "hastings rasani" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position of the Player with a Height of 2.11? ### Context: CREATE TABLE table_name_11 (position VARCHAR, height VARCHAR) [/INST] ### Response: SELECT position FROM table_name_11 WHERE height = 2.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 Current Club of the PG/SG player with a Height of less than 1.9500000000000002? ### Context: CREATE TABLE table_name_87 (current_club VARCHAR, height VARCHAR, position VARCHAR) [/INST] ### Response: SELECT current_club FROM table_name_87 WHERE height < 1.9500000000000002 AND position = "pg/sg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position of the Player from the Toronto Raptors? ### Context: CREATE TABLE table_name_78 (position VARCHAR, current_club VARCHAR) [/INST] ### Response: SELECT position FROM table_name_78 WHERE current_club = "toronto raptors" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Elected has Assembled of 23 january 1559? ### Context: CREATE TABLE table_name_44 (elected VARCHAR, assembled VARCHAR) [/INST] ### Response: SELECT elected FROM table_name_44 WHERE assembled = "23 january 1559" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Assembled has Elected of 1562/63? ### Context: CREATE TABLE table_name_30 (assembled VARCHAR, elected VARCHAR) [/INST] ### Response: SELECT assembled FROM table_name_30 WHERE elected = "1562/63" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which shooter was the olympic bronze medalist? ### Context: CREATE TABLE table_name_75 (shooter VARCHAR, total VARCHAR) [/INST] ### Response: SELECT shooter FROM table_name_75 WHERE total = "olympic bronze medalist" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What event did the shooter, who had 29 total points, compete in? ### Context: CREATE TABLE table_name_31 (event VARCHAR, total VARCHAR) [/INST] ### Response: SELECT event FROM table_name_31 WHERE total = "29" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who got 13 score points at wc kerrville? ### Context: CREATE TABLE table_name_16 (shooter VARCHAR, score_points VARCHAR, event VARCHAR) [/INST] ### Response: SELECT shooter FROM table_name_16 WHERE score_points = "13" AND event = "wc kerrville" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What event did the shooter, who had 10 score points, compete in? ### Context: CREATE TABLE table_name_81 (event VARCHAR, score_points VARCHAR) [/INST] ### Response: SELECT event FROM table_name_81 WHERE score_points = "10" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Mark has an Athlete of tatyana lebedeva? ### Context: CREATE TABLE table_name_84 (mark VARCHAR, athlete VARCHAR) [/INST] ### Response: SELECT mark FROM table_name_84 WHERE athlete = "tatyana lebedeva" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Mark has an Athlete of heike drechsler? ### Context: CREATE TABLE table_name_17 (mark VARCHAR, athlete VARCHAR) [/INST] ### Response: SELECT mark FROM table_name_17 WHERE athlete = "heike drechsler" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Venue of bucharest? ### Context: CREATE TABLE table_name_3 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_3 WHERE venue = "bucharest" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Goals For has a Team of congleton town, and a Lost larger than 11? ### Context: CREATE TABLE table_name_27 (goals_for INTEGER, team VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT MAX(goals_for) FROM table_name_27 WHERE team = "congleton town" AND lost > 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: Which Goal Difference has Drawn larger than 10, and a Team of lancaster city? ### Context: CREATE TABLE table_name_21 (goal_difference VARCHAR, drawn VARCHAR, team VARCHAR) [/INST] ### Response: SELECT goal_difference FROM table_name_21 WHERE drawn > 10 AND team = "lancaster 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 date was the 200m breaststroke event? ### Context: CREATE TABLE table_name_53 (date VARCHAR, event VARCHAR) [/INST] ### Response: SELECT date FROM table_name_53 WHERE event = "200m breaststroke" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What time was the 50m freestyle event? ### Context: CREATE TABLE table_name_26 (time VARCHAR, event VARCHAR) [/INST] ### Response: SELECT time FROM table_name_26 WHERE event = "50m freestyle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What meet had a 400m individual medley meet? ### Context: CREATE TABLE table_name_56 (meet VARCHAR, event VARCHAR) [/INST] ### Response: SELECT meet FROM table_name_56 WHERE event = "400m individual medley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much Total has a Player of todd hamilton, and a To par smaller than 15? ### Context: CREATE TABLE table_name_55 (total VARCHAR, player VARCHAR, to_par VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_name_55 WHERE player = "todd hamilton" AND to_par < 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: Which Year(s) won has a Total larger than 295? ### Context: CREATE TABLE table_name_31 (year_s__won VARCHAR, total INTEGER) [/INST] ### Response: SELECT year_s__won FROM table_name_31 WHERE total > 295 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Country has a Finish of t32, and a Year(s) won of 1996? ### Context: CREATE TABLE table_name_19 (country VARCHAR, finish VARCHAR, year_s__won VARCHAR) [/INST] ### Response: SELECT country FROM table_name_19 WHERE finish = "t32" AND year_s__won = "1996" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 totals does pádraig harrington have? ### Context: CREATE TABLE table_name_83 (total VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_name_83 WHERE player = "pádraig harrington" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par with a place of t8 and West Germany as the country? ### Context: CREATE TABLE table_name_37 (to_par INTEGER, place VARCHAR, country VARCHAR) [/INST] ### Response: SELECT MAX(to_par) FROM table_name_37 WHERE place = "t8" AND country = "west germany" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the player for England when the to par is 7? ### Context: CREATE TABLE table_name_43 (player VARCHAR, to_par VARCHAR, country VARCHAR) [/INST] ### Response: SELECT player FROM table_name_43 WHERE to_par = 7 AND country = "england" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the player for Japan when the to par was smaller than 7? ### Context: CREATE TABLE table_name_57 (player VARCHAR, to_par VARCHAR, country VARCHAR) [/INST] ### Response: SELECT player FROM table_name_57 WHERE to_par < 7 AND country = "japan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par for a score of 78-67-73=218? ### Context: CREATE TABLE table_name_2 (to_par INTEGER, score VARCHAR) [/INST] ### Response: SELECT AVG(to_par) FROM table_name_2 WHERE score = 78 - 67 - 73 = 218 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What did Sam Torrance score? ### Context: CREATE TABLE table_name_49 (score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_49 WHERE player = "sam torrance" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Year(s) won has a Total of 289? ### Context: CREATE TABLE table_name_71 (year_s__won VARCHAR, total VARCHAR) [/INST] ### Response: SELECT year_s__won FROM table_name_71 WHERE total = 289 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which country has a Year(s) won in 1964? ### Context: CREATE TABLE table_name_37 (country VARCHAR, year_s__won VARCHAR) [/INST] ### Response: SELECT country FROM table_name_37 WHERE year_s__won = "1964" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year al geiberger is in? ### Context: CREATE TABLE table_name_50 (year_s__won VARCHAR, player VARCHAR) [/INST] ### Response: SELECT year_s__won FROM table_name_50 WHERE player = "al geiberger" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 To par has a Year(s) won of 1964? ### Context: CREATE TABLE table_name_89 (to_par VARCHAR, year_s__won VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_89 WHERE year_s__won = "1964" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Total has a Finish of t59? ### Context: CREATE TABLE table_name_81 (total INTEGER, finish VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_81 WHERE finish = "t59" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 To par has a Country of united states, and a Player of dave stockton? ### Context: CREATE TABLE table_name_42 (to_par VARCHAR, country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_42 WHERE country = "united states" AND player = "dave stockton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 $450 and a score of 76-74-74-72=296? ### Context: CREATE TABLE table_name_67 (player VARCHAR, money___$__ VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_67 WHERE money___$__ = "450" AND score = 76 - 74 - 74 - 72 = 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: Who is the 1st member of the parliament assembled on 5 April 1614? ### Context: CREATE TABLE table_name_41 (assembled VARCHAR) [/INST] ### Response: SELECT 1 AS st_member FROM table_name_41 WHERE assembled = "5 april 1614" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 assembled date of the parliament dissolved on 9 February 1611 and elected in 1606? ### Context: CREATE TABLE table_name_60 (assembled VARCHAR, dissolved VARCHAR, elected VARCHAR) [/INST] ### Response: SELECT assembled FROM table_name_60 WHERE dissolved = "9 february 1611" AND elected = "1606" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1st member elected in 1620/21? ### Context: CREATE TABLE table_name_82 (elected VARCHAR) [/INST] ### Response: SELECT 1 AS st_member FROM table_name_82 WHERE elected = "1620/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 assembled date of the parliament elected in 1620/21? ### Context: CREATE TABLE table_name_47 (assembled VARCHAR, elected VARCHAR) [/INST] ### Response: SELECT assembled FROM table_name_47 WHERE elected = "1620/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's the statue for an against above 22? ### Context: CREATE TABLE table_name_68 (status VARCHAR, against INTEGER) [/INST] ### Response: SELECT status FROM table_name_68 WHERE against > 22 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the status for an against below 22 with an opposing team of Australia? ### Context: CREATE TABLE table_name_86 (status VARCHAR, against VARCHAR, opposing_teams VARCHAR) [/INST] ### Response: SELECT status FROM table_name_86 WHERE against < 22 AND opposing_teams = "australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the against on 17/01/1976? ### Context: CREATE TABLE table_name_74 (against INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(against) FROM table_name_74 WHERE date = "17/01/1976" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ranking has money of $82 and Al Watrous as the player? ### Context: CREATE TABLE table_name_64 (place VARCHAR, money___$__ VARCHAR, player VARCHAR) [/INST] ### Response: SELECT place FROM table_name_64 WHERE money___$__ = 82 AND player = "al watrous" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for Jock Hutchison? ### Context: CREATE TABLE table_name_89 (score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_89 WHERE player = "jock hutchison" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 par for Bobby Cruickshank? ### Context: CREATE TABLE table_name_9 (to_par INTEGER, player VARCHAR) [/INST] ### Response: SELECT MIN(to_par) FROM table_name_9 WHERE player = "bobby cruickshank" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Country of the Player with a To par of –1? ### Context: CREATE TABLE table_name_69 (country VARCHAR, to_par VARCHAR) [/INST] ### Response: SELECT country FROM table_name_69 WHERE to_par = "–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 Rd 1 has a Province of utrecht and a Rd 4 larger than 0? ### Context: CREATE TABLE table_name_70 (rd_1 INTEGER, province VARCHAR, rd_4 VARCHAR) [/INST] ### Response: SELECT MAX(rd_1) FROM table_name_70 WHERE province = "utrecht" AND rd_4 > 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: What Rd 3 has a Rd 2 1 of 0+1? ### Context: CREATE TABLE table_name_95 (rd_3 VARCHAR, rd_2_1 VARCHAR) [/INST] ### Response: SELECT rd_3 FROM table_name_95 WHERE rd_2_1 = "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: Which Position has Goals against larger than 32, and points larger than 30? ### Context: CREATE TABLE table_name_22 (position VARCHAR, goals_against VARCHAR, points VARCHAR) [/INST] ### Response: SELECT position FROM table_name_22 WHERE goals_against > 32 AND points > 30 </s>