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: who had the high rebounds when the game number was 6? ### Context: CREATE TABLE table_name_70 (high_rebounds VARCHAR, game VARCHAR) [/INST] ### Response: SELECT high_rebounds FROM table_name_70 WHERE game = 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score when the NY Islanders was the visiting team? ### Context: CREATE TABLE table_name_67 (score VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT score FROM table_name_67 WHERE visitor = "ny islanders" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the record when the visiting team was Ottawa? ### Context: CREATE TABLE table_name_54 (record VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT record FROM table_name_54 WHERE visitor = "ottawa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 full number of Total Seats with a constituency seat number bigger than 0 with the Liberal Democrat party, and the Regional seat number is smaller than 6? ### Context: CREATE TABLE table_name_26 (total_seats INTEGER, regional_seats VARCHAR, constituency_seats VARCHAR, party VARCHAR) [/INST] ### Response: SELECT SUM(total_seats) FROM table_name_26 WHERE constituency_seats > 0 AND party = "liberal democrat" AND regional_seats < 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: How many regional seats were there with the SNP party and where the number of total seats was bigger than 46? ### Context: CREATE TABLE table_name_77 (regional_seats VARCHAR, party VARCHAR, total_seats VARCHAR) [/INST] ### Response: SELECT COUNT(regional_seats) FROM table_name_77 WHERE party = "snp" AND total_seats > 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: Which team was the visitor on January 10? ### Context: CREATE TABLE table_name_69 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_69 WHERE date = "january 10" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average Draw when the Place is larger than 5? ### Context: CREATE TABLE table_name_65 (draw INTEGER, place INTEGER) [/INST] ### Response: SELECT AVG(draw) FROM table_name_65 WHERE place > 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 lowest Draw when the Artist is Stine Findsen and the Points are larger than 42? ### Context: CREATE TABLE table_name_95 (draw INTEGER, artist VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MIN(draw) FROM table_name_95 WHERE artist = "stine findsen" AND points > 42 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Draw that has Points larger than 44 and a Place larger than 1? ### Context: CREATE TABLE table_name_92 (draw INTEGER, points VARCHAR, place VARCHAR) [/INST] ### Response: SELECT AVG(draw) FROM table_name_92 WHERE points > 44 AND place > 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 position of the player from round 2 from Sweden? ### Context: CREATE TABLE table_name_21 (position VARCHAR, round VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT position FROM table_name_21 WHERE round = 2 AND nationality = "sweden" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round of Ian Cole, who played position d from the United States? ### Context: CREATE TABLE table_name_35 (round INTEGER, player VARCHAR, position VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT MAX(round) FROM table_name_35 WHERE position = "d" AND nationality = "united states" AND player = "ian cole" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the player from Denmark who plays position c? ### Context: CREATE TABLE table_name_68 (player VARCHAR, position VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT player FROM table_name_68 WHERE position = "c" AND nationality = "denmark" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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/junior/club team (league) did Brett Sonne play in? ### Context: CREATE TABLE table_name_45 (college_junior_club_team__league_ VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college_junior_club_team__league_ FROM table_name_45 WHERE player = "brett sonne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 To par of –12? ### Context: CREATE TABLE table_name_53 (date VARCHAR, to_par VARCHAR) [/INST] ### Response: SELECT date FROM table_name_53 WHERE to_par = "–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: How many attended the game on December 16, 2001? ### Context: CREATE TABLE table_name_92 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_92 WHERE date = "december 16, 2001" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is a bye week? ### Context: CREATE TABLE table_name_64 (week VARCHAR, date VARCHAR) [/INST] ### Response: SELECT week FROM table_name_64 WHERE date = "bye" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many years entered service when there were 13 locomotives? ### Context: CREATE TABLE table_name_89 (entered_service VARCHAR, locomotive VARCHAR) [/INST] ### Response: SELECT COUNT(entered_service) FROM table_name_89 WHERE locomotive = "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 locomotive had a 2-8-2t type, entered service year prior to 1915, and which was built after 1911? ### Context: CREATE TABLE table_name_9 (locomotive VARCHAR, built VARCHAR, type VARCHAR, entered_service VARCHAR) [/INST] ### Response: SELECT locomotive FROM table_name_9 WHERE type = "2-8-2t" AND entered_service < 1915 AND built > 1911 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest number of wins with a goal difference less than 4 at the Villarreal CF and more than 38 played? ### Context: CREATE TABLE table_name_82 (wins INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_name_82 WHERE goal_difference < 4 AND club = "villarreal cf" AND played > 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 is the highest number played with a goal difference less than -27? ### Context: CREATE TABLE table_name_57 (played INTEGER, goal_difference INTEGER) [/INST] ### Response: SELECT MAX(played) FROM table_name_57 WHERE goal_difference < -27 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest number of loss with a 7 position and more than 45 goals? ### Context: CREATE TABLE table_name_73 (losses INTEGER, position VARCHAR, goals_for VARCHAR) [/INST] ### Response: SELECT MAX(losses) FROM table_name_73 WHERE position = 7 AND goals_for > 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 the highest position with less than 17 losses, more than 57 goals, and a goal difference less than 4? ### Context: CREATE TABLE table_name_39 (position INTEGER, goal_difference VARCHAR, losses VARCHAR, goals_for VARCHAR) [/INST] ### Response: SELECT MAX(position) FROM table_name_39 WHERE losses < 17 AND goals_for > 57 AND goal_difference < 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 average goal difference with 51 goals scored against and less than 17 losses? ### Context: CREATE TABLE table_name_4 (goal_difference INTEGER, goals_against VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT AVG(goal_difference) FROM table_name_4 WHERE goals_against = 51 AND losses < 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 lowest position with 32-6 points and less then 59 goals when there are more than 38 played? ### Context: CREATE TABLE table_name_37 (position INTEGER, played VARCHAR, points VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT MIN(position) FROM table_name_37 WHERE points = "32-6" AND goals_against < 59 AND played > 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 final score of the Australian Open? ### Context: CREATE TABLE table_name_13 (score_in_the_final VARCHAR, championship VARCHAR) [/INST] ### Response: SELECT score_in_the_final FROM table_name_13 WHERE championship = "australian open" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What record was set by walter brennan before 1941? ### Context: CREATE TABLE table_name_30 (record_set VARCHAR, actor VARCHAR, year VARCHAR) [/INST] ### Response: SELECT record_set FROM table_name_30 WHERE actor = "walter brennan" AND year < 1941 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year for ordinary people to appear in the notes? ### Context: CREATE TABLE table_name_83 (year INTEGER, notes VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_83 WHERE notes = "ordinary people" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine when the rounds ar all, the tyre is m and the driver is david coulthard? ### Context: CREATE TABLE table_name_98 (engine_† VARCHAR, driver VARCHAR, rounds VARCHAR, tyre VARCHAR) [/INST] ### Response: SELECT engine_† FROM table_name_98 WHERE rounds = "all" AND tyre = "m" AND driver = "david coulthard" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entrant when the engine is bmw p82? ### Context: CREATE TABLE table_name_92 (entrant VARCHAR, engine_† VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_92 WHERE engine_† = "bmw p82" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rounds when the engine is mercedes fo110m? ### Context: CREATE TABLE table_name_17 (rounds VARCHAR, engine_† VARCHAR) [/INST] ### Response: SELECT rounds FROM table_name_17 WHERE engine_† = "mercedes fo110m" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver when the engine is mercedes fo110m? ### Context: CREATE TABLE table_name_1 (driver VARCHAR, engine_† VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_1 WHERE engine_† = "mercedes fo110m" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tyre when the engine is asiatech at02 and the driver is alex yoong? ### Context: CREATE TABLE table_name_47 (tyre VARCHAR, engine_† VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT tyre FROM table_name_47 WHERE engine_† = "asiatech at02" AND driver = "alex yoong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 chassis when the tyre is b, the engine is ferrari 050 ferrari 051 and the driver is rubens barrichello? ### Context: CREATE TABLE table_name_14 (chassis VARCHAR, driver VARCHAR, tyre VARCHAR, engine_† VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_14 WHERE tyre = "b" AND engine_† = "ferrari 050 ferrari 051" AND driver = "rubens barrichello" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rider with time of 1:41.40.55? ### Context: CREATE TABLE table_name_24 (rank INTEGER, time VARCHAR) [/INST] ### Response: SELECT SUM(rank) FROM table_name_24 WHERE time = "1:41.40.55" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the time of the rider with a 398cc yamaha? ### Context: CREATE TABLE table_name_85 (time VARCHAR, team VARCHAR) [/INST] ### Response: SELECT time FROM table_name_85 WHERE team = "398cc yamaha" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time of the rider ranked 6? ### Context: CREATE TABLE table_name_76 (time VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT time FROM table_name_76 WHERE rank = 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: Who is the rider with a 399cc Kawasaki? ### Context: CREATE TABLE table_name_94 (rider VARCHAR, team VARCHAR) [/INST] ### Response: SELECT rider FROM table_name_94 WHERE team = "399cc kawasaki" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did Tyler Haws, 2009 Utah Mr. Basketball, go to high school? ### Context: CREATE TABLE table_name_89 (high_school VARCHAR, utah_mr_basketball VARCHAR, year VARCHAR) [/INST] ### Response: SELECT high_school FROM table_name_89 WHERE utah_mr_basketball = "tyler haws" AND year = 2009 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much have players earned with 14 wins ranked below 3? ### Context: CREATE TABLE table_name_5 (earnings__ VARCHAR, wins VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT COUNT(earnings__) AS $__ FROM table_name_5 WHERE wins = 14 AND rank > 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 built the car that ran out of fuel before 28 laps? ### Context: CREATE TABLE table_name_47 (constructor VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_47 WHERE laps < 28 AND time_retired = "out of fuel" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high lap total for cards with a grid larger than 21, and a Time/Retired of +2 laps? ### Context: CREATE TABLE table_name_91 (laps INTEGER, grid VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_91 WHERE grid > 21 AND time_retired = "+2 laps" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 SECR numbers have a class of b1? ### Context: CREATE TABLE table_name_36 (secr_numbers VARCHAR, class VARCHAR) [/INST] ### Response: SELECT secr_numbers FROM table_name_36 WHERE class = "b1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 class was made in 1880? ### Context: CREATE TABLE table_name_34 (class VARCHAR, year_made VARCHAR) [/INST] ### Response: SELECT class FROM table_name_34 WHERE year_made = "1880" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when attendance is more than 20,682? ### Context: CREATE TABLE table_name_59 (date VARCHAR, attendance INTEGER) [/INST] ### Response: SELECT date FROM table_name_59 WHERE attendance > 20 OFFSET 682 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which home team played the Away team from Richmond? ### Context: CREATE TABLE table_name_29 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_29 WHERE away_team = "richmond" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home teams score while playing the away team of south melbourne? ### Context: CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_73 WHERE away_team = "south melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team while playing at the arden street oval? ### Context: CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_53 WHERE venue = "arden street oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rounds for the B tyres and Ferrari 053 engine +? ### Context: CREATE TABLE table_name_50 (rounds VARCHAR, tyre VARCHAR, engine_† VARCHAR) [/INST] ### Response: SELECT rounds FROM table_name_50 WHERE tyre = "b" AND engine_† = "ferrari 053" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What kind of chassis does Ricardo Zonta have? ### Context: CREATE TABLE table_name_30 (chassis VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_30 WHERE driver = "ricardo zonta" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What kind of free practice is there with a Ford RS2 engine +? ### Context: CREATE TABLE table_name_8 (free_practice_driver_s_ VARCHAR, engine_† VARCHAR) [/INST] ### Response: SELECT free_practice_driver_s_ FROM table_name_8 WHERE engine_† = "ford rs2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 matches with a loss less than 5 in the 2008/2009 season and has a draw larger than 9? ### Context: CREATE TABLE table_name_53 (matches VARCHAR, draw VARCHAR, lost VARCHAR, season VARCHAR) [/INST] ### Response: SELECT COUNT(matches) FROM table_name_53 WHERE lost < 5 AND season = "2008/2009" AND draw > 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What competition has a score greater than 30, a draw less than 5, and a loss larger than 10? ### Context: CREATE TABLE table_name_88 (competition VARCHAR, lost VARCHAR, points VARCHAR, draw VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_88 WHERE points > 30 AND draw < 5 AND lost > 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of the losses that a match score larger than 26, a points score of 62, and a draw greater than 5? ### Context: CREATE TABLE table_name_6 (lost INTEGER, draw VARCHAR, matches VARCHAR, points VARCHAR) [/INST] ### Response: SELECT SUM(lost) FROM table_name_6 WHERE matches > 26 AND points = 62 AND draw > 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 record for the game on January 19? ### Context: CREATE TABLE table_name_92 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_92 WHERE date = "january 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 score of the game on January 12? ### Context: CREATE TABLE table_name_46 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_46 WHERE date = "january 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: Who was the home team when the vistor team was the Montreal Canadiens on February 12? ### Context: CREATE TABLE table_name_60 (home VARCHAR, visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_60 WHERE visitor = "montreal canadiens" AND date = "february 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: Tell me the city of license with frequency of Mhz of 90.3 fm ### Context: CREATE TABLE table_name_26 (city_of_license VARCHAR, frequency_mhz VARCHAR) [/INST] ### Response: SELECT city_of_license FROM table_name_26 WHERE frequency_mhz = "90.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: Name the call sign for ERP W of 4 ### Context: CREATE TABLE table_name_20 (call_sign VARCHAR, erp_w VARCHAR) [/INST] ### Response: SELECT call_sign FROM table_name_20 WHERE erp_w = 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: Name the frequence MHz for ERP W of 55 ### Context: CREATE TABLE table_name_80 (frequency_mhz VARCHAR, erp_w VARCHAR) [/INST] ### Response: SELECT frequency_mhz FROM table_name_80 WHERE erp_w = 55 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the FCC info for call sign of w279at ### Context: CREATE TABLE table_name_17 (fcc_info VARCHAR, call_sign VARCHAR) [/INST] ### Response: SELECT fcc_info FROM table_name_17 WHERE call_sign = "w279at" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 call sign for ERP W of 27 ### Context: CREATE TABLE table_name_65 (call_sign VARCHAR, erp_w VARCHAR) [/INST] ### Response: SELECT call_sign FROM table_name_65 WHERE erp_w = 27 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game that had a score of 3 – 1? ### Context: CREATE TABLE table_name_60 (date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_60 WHERE score = "3 – 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 was the score of the game when the Boston Bruins were the visiting team? ### Context: CREATE TABLE table_name_75 (score VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT score FROM table_name_75 WHERE visitor = "boston bruins" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a 16–14–6 record? ### Context: CREATE TABLE table_name_37 (score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_37 WHERE record = "16–14–6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the SECR number of the item made in 1861? ### Context: CREATE TABLE table_name_31 (secr_numbers VARCHAR, year_made VARCHAR) [/INST] ### Response: SELECT secr_numbers FROM table_name_31 WHERE year_made = "1861" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue with a home team of geelong ### Context: CREATE TABLE table_name_72 (venue VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_72 WHERE home_team = "geelong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Venue was Punt Road Oval, who was the Home Team? ### Context: CREATE TABLE table_name_47 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_47 WHERE venue = "punt road oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Melbourne was the Away team, what was their score? ### Context: CREATE TABLE table_name_75 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_75 WHERE away_team = "melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver of the d6 chassis? ### Context: CREATE TABLE table_name_99 (driver VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_99 WHERE chassis = "d6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructor for driver Niki Lauda and a chassis of mp4/1c? ### Context: CREATE TABLE table_name_91 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_91 WHERE chassis = "mp4/1c" AND driver = "niki lauda" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Constructor for driver Piercarlo Ghinzani and a Ford cosworth dfv 3.0 v8 engine? ### Context: CREATE TABLE table_name_42 (constructor VARCHAR, driver VARCHAR, engine VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_42 WHERE driver = "piercarlo ghinzani" AND engine = "ford cosworth dfv 3.0 v8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Jean Alesi had laps less than 24, what was his highest grid? ### Context: CREATE TABLE table_name_75 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT MAX(grid) FROM table_name_75 WHERE driver = "jean alesi" AND laps < 24 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many laps did Ricardo Zonta drive with a grid less than 14? ### Context: CREATE TABLE table_name_15 (laps INTEGER, grid VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT SUM(laps) FROM table_name_15 WHERE grid < 14 AND driver = "ricardo zonta" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Alexander Wurz's highest grid with laps of less than 25? ### Context: CREATE TABLE table_name_75 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT MAX(grid) FROM table_name_75 WHERE driver = "alexander wurz" AND laps < 25 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many years have a Title of Magia Nuda? ### Context: CREATE TABLE table_name_78 (year VARCHAR, title VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_78 WHERE title = "magia nuda" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that has a music writer of Angelo Francesco Lavagnino, written in 1969? ### Context: CREATE TABLE table_name_57 (country VARCHAR, music VARCHAR, year VARCHAR) [/INST] ### Response: SELECT country FROM table_name_57 WHERE music = "angelo francesco lavagnino" AND year = 1969 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 music has the notes of AKA Africa Uncensored? ### Context: CREATE TABLE table_name_61 (music VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT music FROM table_name_61 WHERE notes = "aka africa uncensored" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pegasus' right ascension with a 7318a NGC? ### Context: CREATE TABLE table_name_67 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR) [/INST] ### Response: SELECT right_ascension___j2000__ FROM table_name_67 WHERE constellation = "pegasus" AND ngc_number = "7318a" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 declination of the spiral galaxy Pegasus with 7337 NGC ### Context: CREATE TABLE table_name_89 (declination___j2000__ VARCHAR, ngc_number VARCHAR, object_type VARCHAR, constellation VARCHAR) [/INST] ### Response: SELECT declination___j2000__ FROM table_name_89 WHERE object_type = "spiral galaxy" AND constellation = "pegasus" AND ngc_number = "7337" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 right ascension of Pegasus with a 7343 NGC? ### Context: CREATE TABLE table_name_57 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR) [/INST] ### Response: SELECT right_ascension___j2000__ FROM table_name_57 WHERE constellation = "pegasus" AND ngc_number = "7343" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score on October 13? ### Context: CREATE TABLE table_name_94 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_94 WHERE date = "october 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 team won when the visitor was Carolina? ### Context: CREATE TABLE table_name_56 (decision VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT decision FROM table_name_56 WHERE visitor = "carolina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score on October 31? ### Context: CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_93 WHERE date = "october 31" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team was home on October 13? ### Context: CREATE TABLE table_name_26 (home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_26 WHERE date = "october 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: What is the home city for angelo massimino stadium? ### Context: CREATE TABLE table_name_7 (home_city VARCHAR, stadium VARCHAR) [/INST] ### Response: SELECT home_city FROM table_name_7 WHERE stadium = "angelo massimino" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the H/A for 20 february 2007? ### Context: CREATE TABLE table_name_54 (h___a VARCHAR, date VARCHAR) [/INST] ### Response: SELECT h___a FROM table_name_54 WHERE date = "20 february 2007" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many people attended on 2 may 2007? ### Context: CREATE TABLE table_name_14 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_14 WHERE date = "2 may 2007" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which date has roma as opponent and a H/A of A? ### Context: CREATE TABLE table_name_46 (date VARCHAR, opponents VARCHAR, h___a VARCHAR) [/INST] ### Response: SELECT date FROM table_name_46 WHERE opponents = "roma" AND h___a = "a" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which round happened on 10 april 2007? ### Context: CREATE TABLE table_name_41 (round VARCHAR, date VARCHAR) [/INST] ### Response: SELECT round FROM table_name_41 WHERE date = "10 april 2007" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was home at Princes Park? ### Context: CREATE TABLE table_name_55 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_55 WHERE venue = "princes park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team's score at Princes Park? ### Context: CREATE TABLE table_name_38 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_38 WHERE venue = "princes park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was the game played at Lake Oval? ### Context: CREATE TABLE table_name_56 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_56 WHERE venue = "lake oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team when the game was at Princes Park? ### Context: CREATE TABLE table_name_12 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_12 WHERE venue = "princes park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 smallest place number when the total is 16 and average is less than 16? ### Context: CREATE TABLE table_name_52 (place INTEGER, total VARCHAR, average VARCHAR) [/INST] ### Response: SELECT MIN(place) FROM table_name_52 WHERE total = 16 AND average < 16 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average when the rank by average is more than 12? ### Context: CREATE TABLE table_name_88 (average INTEGER, rank_by_average INTEGER) [/INST] ### Response: SELECT SUM(average) FROM table_name_88 WHERE rank_by_average > 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 is the average place for a couple with the rank by average of 9 and total smaller than 83? ### Context: CREATE TABLE table_name_91 (place INTEGER, rank_by_average VARCHAR, total VARCHAR) [/INST] ### Response: SELECT AVG(place) FROM table_name_91 WHERE rank_by_average = 9 AND total < 83 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 by average where the total was larger than 245 and the average was 27.1 with fewer than 15 dances? ### Context: CREATE TABLE table_name_43 (rank_by_average INTEGER, number_of_dances VARCHAR, total VARCHAR, average VARCHAR) [/INST] ### Response: SELECT AVG(rank_by_average) FROM table_name_43 WHERE total > 245 AND average = 27.1 AND number_of_dances < 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 stadium was used for the North East Stars club? ### Context: CREATE TABLE table_name_3 (stadium VARCHAR, club VARCHAR) [/INST] ### Response: SELECT stadium FROM table_name_3 WHERE club = "north east stars" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of Top Division Titles where the year founded was prior to 1975 and the location was in Chaguaramas? ### Context: CREATE TABLE table_name_90 (top_division_titles INTEGER, founded VARCHAR, location VARCHAR) [/INST] ### Response: SELECT SUM(top_division_titles) FROM table_name_90 WHERE founded < 1975 AND location = "chaguaramas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 higest attendance on November 9, 1958? ### Context: CREATE TABLE table_name_4 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT MAX(attendance) FROM table_name_4 WHERE date = "november 9, 1958" </s>