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: Which couple participated in the Contemporary style of dance? ### Context: CREATE TABLE table_name_27 (couple VARCHAR, style VARCHAR) [/INST] ### Response: SELECT couple FROM table_name_27 WHERE style = "contemporary" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 couple participated in the Paso Doble style and were safe? ### Context: CREATE TABLE table_name_91 (couple VARCHAR, results VARCHAR, style VARCHAR) [/INST] ### Response: SELECT couple FROM table_name_91 WHERE results = "safe" AND style = "paso doble" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 weeks had a game on November 26, 1978, and an attendance higher than 26,248? ### Context: CREATE TABLE table_name_88 (week VARCHAR, date VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT COUNT(week) FROM table_name_88 WHERE date = "november 26, 1978" AND attendance > 26 OFFSET 248 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the lowest Attendance during Week 12? ### Context: CREATE TABLE table_name_90 (attendance INTEGER, week VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_90 WHERE week = 12 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the name of the tournament that the final was played against Yi Jingqian? ### Context: CREATE TABLE table_name_89 (tournament VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_89 WHERE opponent_in_the_final = "yi jingqian" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 final opponent in the tournament in Taipei, Taiwan on November 14, 1994? ### Context: CREATE TABLE table_name_93 (opponent_in_the_final VARCHAR, tournament VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent_in_the_final FROM table_name_93 WHERE tournament = "taipei, taiwan" AND date = "november 14, 1994" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On October 14, 1996 who was the opponent in the final? ### Context: CREATE TABLE table_name_47 (opponent_in_the_final VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent_in_the_final FROM table_name_47 WHERE date = "october 14, 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: When playing against Yi Jingqian in the final on a hard surface what was the score? ### Context: CREATE TABLE table_name_29 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT score FROM table_name_29 WHERE surface = "hard" AND opponent_in_the_final = "yi jingqian" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played against in the final on November 14, 1994? ### Context: CREATE TABLE table_name_17 (opponent_in_the_final VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent_in_the_final FROM table_name_17 WHERE date = "november 14, 1994" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Entered when the eliminated number is 3? ### Context: CREATE TABLE table_name_53 (entered VARCHAR, eliminated VARCHAR) [/INST] ### Response: SELECT COUNT(entered) FROM table_name_53 WHERE eliminated = "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 is the Eliminated when there are less than 4 entered and the wrestler was shawn michaels? ### Context: CREATE TABLE table_name_28 (eliminated VARCHAR, entered VARCHAR, wrestler VARCHAR) [/INST] ### Response: SELECT eliminated FROM table_name_28 WHERE entered < 4 AND wrestler = "shawn michaels" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 frequencies have a line of East London and destination of Crystal Palace? ### Context: CREATE TABLE table_name_18 (frequency__per_hour_ VARCHAR, line VARCHAR, destination VARCHAR) [/INST] ### Response: SELECT COUNT(frequency__per_hour_) FROM table_name_18 WHERE line = "east london" AND destination = "crystal palace" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 line has an operator of the London Overground and ends at the Crystal Palace? ### Context: CREATE TABLE table_name_87 (line VARCHAR, operator VARCHAR, destination VARCHAR) [/INST] ### Response: SELECT line FROM table_name_87 WHERE operator = "london overground" AND destination = "crystal palace" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 song was by artist Gino Vannelli? ### Context: CREATE TABLE table_name_15 (song VARCHAR, artist VARCHAR) [/INST] ### Response: SELECT song FROM table_name_15 WHERE artist = "gino vannelli" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What tournament did Bill Rogers play in when he had less than 7 Cuts, 0 Wins, and less than 1 Top-25? ### Context: CREATE TABLE table_name_35 (tournament VARCHAR, top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_35 WHERE cuts_made < 7 AND wins = 0 AND top_25 < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the number of losses that have Ties of 1 and 3 or more poll wins? ### Context: CREATE TABLE table_name_49 (losses VARCHAR, ties VARCHAR, poll_wins VARCHAR) [/INST] ### Response: SELECT COUNT(losses) FROM table_name_49 WHERE ties = 1 AND poll_wins > 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 is the lowest poll losses of the 0 ties, poll wins greater than 1 and wins less than 2? ### Context: CREATE TABLE table_name_15 (poll_losses INTEGER, wins VARCHAR, ties VARCHAR, poll_wins VARCHAR) [/INST] ### Response: SELECT MIN(poll_losses) FROM table_name_15 WHERE ties = 0 AND poll_wins > 1 AND wins < 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 highest poll of the advocate Andy Kindler with poll losses greater than 2 and ties less than 0? ### Context: CREATE TABLE table_name_49 (poll_wins INTEGER, ties VARCHAR, poll_losses VARCHAR, advocate VARCHAR) [/INST] ### Response: SELECT MAX(poll_wins) FROM table_name_49 WHERE poll_losses > 2 AND advocate = "andy kindler" AND ties < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which PBA Titles has a TV Finals larger than 6, and an Events larger than 20? ### Context: CREATE TABLE table_name_16 (pba_titles INTEGER, tv_finals VARCHAR, events VARCHAR) [/INST] ### Response: SELECT AVG(pba_titles) FROM table_name_16 WHERE tv_finals > 6 AND events > 20 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Events has Earnings of $113,259, and an Average larger than 229.5? ### Context: CREATE TABLE table_name_22 (events INTEGER, earnings VARCHAR, average VARCHAR) [/INST] ### Response: SELECT MAX(events) FROM table_name_22 WHERE earnings = "$113,259" AND average > 229.5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Cashes has a Match Play smaller than 13, and a Events of 7? ### Context: CREATE TABLE table_name_97 (cashes VARCHAR, match_play VARCHAR, events VARCHAR) [/INST] ### Response: SELECT COUNT(cashes) FROM table_name_97 WHERE match_play < 13 AND events = 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Finish for the 1950–51? season? ### Context: CREATE TABLE table_name_22 (finish VARCHAR, season VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_22 WHERE season = "1950–51" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Losses at the western conference and the 2004–05 season? ### Context: CREATE TABLE table_name_51 (losses VARCHAR, conference VARCHAR, season VARCHAR) [/INST] ### Response: SELECT losses FROM table_name_51 WHERE conference = "western" AND season = "2004–05" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Season has wins as the philadelphia warriors (nba)? ### Context: CREATE TABLE table_name_28 (season VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT season FROM table_name_28 WHERE wins = "philadelphia warriors (nba)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What shows for Wins when there was a Conference of —, western division, in the 1967–68 season? ### Context: CREATE TABLE table_name_61 (wins VARCHAR, season VARCHAR, conference VARCHAR, division VARCHAR) [/INST] ### Response: SELECT wins FROM table_name_61 WHERE conference = "—" AND division = "western" AND season = "1967–68" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Conference for the 1967–68 season? ### Context: CREATE TABLE table_name_71 (conference VARCHAR, season VARCHAR) [/INST] ### Response: SELECT conference FROM table_name_71 WHERE season = "1967–68" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Location when the time was 11:55? ### Context: CREATE TABLE table_name_22 (location VARCHAR, time VARCHAR) [/INST] ### Response: SELECT location FROM table_name_22 WHERE time = "11: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 Round has a Time of n/a, in rio de janeiro , brazil? ### Context: CREATE TABLE table_name_5 (round VARCHAR, time VARCHAR, location VARCHAR) [/INST] ### Response: SELECT round FROM table_name_5 WHERE time = "n/a" AND location = "rio de janeiro , brazil" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round for the jiu-jitsu vs martial arts? ### Context: CREATE TABLE table_name_20 (round VARCHAR, event VARCHAR) [/INST] ### Response: SELECT round FROM table_name_20 WHERE event = "jiu-jitsu vs martial arts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Location for the jiu-jitsu vs martial arts? ### Context: CREATE TABLE table_name_36 (location VARCHAR, event VARCHAR) [/INST] ### Response: SELECT location FROM table_name_36 WHERE event = "jiu-jitsu vs martial arts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Event when the opponent was wesslan evaristo de oliveira? ### Context: CREATE TABLE table_name_79 (event VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT event FROM table_name_79 WHERE opponent = "wesslan evaristo de oliveira" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points does Kohta Nozane have with a Motobi TSR 6? ### Context: CREATE TABLE table_name_42 (points VARCHAR, bike VARCHAR, riders VARCHAR) [/INST] ### Response: SELECT points FROM table_name_42 WHERE bike = "motobi tsr 6" AND riders = "kohta nozane" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Average has a Band of f? ### Context: CREATE TABLE table_name_57 (average VARCHAR, band VARCHAR) [/INST] ### Response: SELECT average FROM table_name_57 WHERE band = "f" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Band has a Ratio of 9/9? ### Context: CREATE TABLE table_name_76 (band VARCHAR, ratio VARCHAR) [/INST] ### Response: SELECT band FROM table_name_76 WHERE ratio = "9/9" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Band has a Ratio of 13/9? ### Context: CREATE TABLE table_name_99 (band VARCHAR, ratio VARCHAR) [/INST] ### Response: SELECT band FROM table_name_99 WHERE ratio = "13/9" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the latest year that the Atlanta Braves won and the St. Louis Cardinals lost? ### Context: CREATE TABLE table_name_70 (year INTEGER, winning_team VARCHAR, losing_team VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_70 WHERE winning_team = "atlanta braves" AND losing_team = "st. louis cardinals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who won the series when the San Francisco Giants lost? ### Context: CREATE TABLE table_name_92 (winning_team VARCHAR, losing_team VARCHAR) [/INST] ### Response: SELECT winning_team FROM table_name_92 WHERE losing_team = "san francisco giants" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where was the series that the Kansas City Royals lost? ### Context: CREATE TABLE table_name_65 (site VARCHAR, winning_team VARCHAR) [/INST] ### Response: SELECT site FROM table_name_65 WHERE winning_team = "kansas city royals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning team in 2008? ### Context: CREATE TABLE table_name_22 (winning_team VARCHAR, year VARCHAR) [/INST] ### Response: SELECT winning_team FROM table_name_22 WHERE year = 2008 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What average lost has points greater than 108? ### Context: CREATE TABLE table_name_49 (lost INTEGER, points INTEGER) [/INST] ### Response: SELECT AVG(lost) FROM table_name_49 WHERE points > 108 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 losses have 222 as the goals against, with points greater than 78? ### Context: CREATE TABLE table_name_24 (lost INTEGER, goals_against VARCHAR, points VARCHAR) [/INST] ### Response: SELECT SUM(lost) FROM table_name_24 WHERE goals_against = 222 AND points > 78 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals against have 64 for games, a loss less than 12, with points greater than 107? ### Context: CREATE TABLE table_name_37 (goals_against INTEGER, points VARCHAR, games VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT SUM(goals_against) FROM table_name_37 WHERE games = 64 AND lost < 12 AND points > 107 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 song 'Never Change'? ### Context: CREATE TABLE table_name_79 (place INTEGER, song VARCHAR) [/INST] ### Response: SELECT SUM(place) FROM table_name_79 WHERE song = "never change" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of Aleko Berdzenishvili's song? ### Context: CREATE TABLE table_name_18 (song VARCHAR, artist VARCHAR) [/INST] ### Response: SELECT song FROM table_name_18 WHERE artist = "aleko berdzenishvili" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the lowest pick for the RHP position and player Mike Biko? ### Context: CREATE TABLE table_name_67 (pick INTEGER, position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT MIN(pick) FROM table_name_67 WHERE position = "rhp" AND player = "mike biko" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Martin McGuinness with a David Norris that is 10.3%? ### Context: CREATE TABLE table_name_16 (martin_mcguinness VARCHAR, david_norris VARCHAR) [/INST] ### Response: SELECT martin_mcguinness FROM table_name_16 WHERE david_norris = "10.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 is the Martin mcGuinness with a Sean Gallagher that is 29.6%? ### Context: CREATE TABLE table_name_3 (martin_mcguinness VARCHAR, seán_gallagher VARCHAR) [/INST] ### Response: SELECT martin_mcguinness FROM table_name_3 WHERE seán_gallagher = "29.6%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the David Norris with a Michael D. Higgins that is 46.2%? ### Context: CREATE TABLE table_name_92 (david_norris VARCHAR, michael_d_higgins VARCHAR) [/INST] ### Response: SELECT david_norris FROM table_name_92 WHERE michael_d_higgins = "46.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 Mary Davis with a Gay Mitchell that is 4.6%? ### Context: CREATE TABLE table_name_96 (mary_davis VARCHAR, gay_mitchell VARCHAR) [/INST] ### Response: SELECT mary_davis FROM table_name_96 WHERE gay_mitchell = "4.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: Can you tell me the total number of Prev that has the Chng of +10, and the Rating larger than 2765? ### Context: CREATE TABLE table_name_26 (prev VARCHAR, chng VARCHAR, rating VARCHAR) [/INST] ### Response: SELECT COUNT(prev) FROM table_name_26 WHERE chng = "+10" AND rating > 2765 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 second member for the Second Party Liberal, and the Third Party Conservative, after the 1841 election? ### Context: CREATE TABLE table_name_70 (second_member VARCHAR, election VARCHAR, second_party VARCHAR, third_party VARCHAR) [/INST] ### Response: SELECT second_member FROM table_name_70 WHERE second_party = "liberal" AND third_party = "conservative" AND election > 1841 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 third member of the Liberal Party, a third party conservative, the second member Humphrey Mildmay? ### Context: CREATE TABLE table_name_2 (third_member VARCHAR, second_member VARCHAR, second_party VARCHAR, third_party VARCHAR) [/INST] ### Response: SELECT third_member FROM table_name_2 WHERE second_party = "liberal" AND third_party = "conservative" AND second_member = "humphrey mildmay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 third member of the third conservative party, and the second liberal party? ### Context: CREATE TABLE table_name_30 (third_member VARCHAR, third_party VARCHAR, second_party VARCHAR) [/INST] ### Response: SELECT third_member FROM table_name_30 WHERE third_party = "conservative" AND second_party = "liberal" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest election with third party member Sir Robert Price, BT, and first party member conservative? ### Context: CREATE TABLE table_name_97 (election INTEGER, third_member VARCHAR, first_party VARCHAR) [/INST] ### Response: SELECT MAX(election) FROM table_name_97 WHERE third_member = "sir robert price, bt" AND first_party = "conservative" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the record of the team with head coach Steve Spurrier? ### Context: CREATE TABLE table_name_8 (record VARCHAR, head_coach VARCHAR) [/INST] ### Response: SELECT record FROM table_name_8 WHERE head_coach = "steve spurrier" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 USC's record before the 1967 season? ### Context: CREATE TABLE table_name_34 (record VARCHAR, team VARCHAR, season VARCHAR) [/INST] ### Response: SELECT record FROM table_name_34 WHERE team = "usc" AND season < 1967 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 during the 1973 season? ### Context: CREATE TABLE table_name_74 (record VARCHAR, season VARCHAR) [/INST] ### Response: SELECT record FROM table_name_74 WHERE season = 1973 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score for 6th place with a total of 165? ### Context: CREATE TABLE table_name_49 (average VARCHAR, place VARCHAR, total VARCHAR) [/INST] ### Response: SELECT average FROM table_name_49 WHERE place = "6th" AND total = "165" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a 74 rank by average for 8th place? ### Context: CREATE TABLE table_name_70 (total VARCHAR, rank_by_average VARCHAR, place VARCHAR) [/INST] ### Response: SELECT total FROM table_name_70 WHERE rank_by_average = "74" AND place = "8th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 place in season 8 with a rank by average at 139? ### Context: CREATE TABLE table_name_21 (place VARCHAR, season VARCHAR, rank_by_average VARCHAR) [/INST] ### Response: SELECT place FROM table_name_21 WHERE season = "8" AND rank_by_average = "139" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total for 3rd place on season 9? ### Context: CREATE TABLE table_name_41 (total VARCHAR, place VARCHAR, season VARCHAR) [/INST] ### Response: SELECT total FROM table_name_41 WHERE place = "3rd" AND season = "9" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What rank by average has 1 dance on season 9? ### Context: CREATE TABLE table_name_34 (rank_by_average VARCHAR, number_of_dances VARCHAR, season VARCHAR) [/INST] ### Response: SELECT rank_by_average FROM table_name_34 WHERE number_of_dances = "1" AND season = "9" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the final round score for the player from the Milwaukee Bucks? ### Context: CREATE TABLE table_name_31 (final_round VARCHAR, team VARCHAR) [/INST] ### Response: SELECT final_round FROM table_name_31 WHERE team = "milwaukee bucks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What position does the player with a first round score of 35.7 play? ### Context: CREATE TABLE table_name_21 (pos VARCHAR, first_round VARCHAR) [/INST] ### Response: SELECT pos FROM table_name_21 WHERE first_round = "35.7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the height of the player with a first round score of 44.1? ### Context: CREATE TABLE table_name_1 (height VARCHAR, first_round VARCHAR) [/INST] ### Response: SELECT height FROM table_name_1 WHERE first_round = "44.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 player weighs 187 pounds? ### Context: CREATE TABLE table_name_87 (player VARCHAR, weight VARCHAR) [/INST] ### Response: SELECT player FROM table_name_87 WHERE weight = 187 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 illustrator in 1987? ### Context: CREATE TABLE table_name_79 (illustrator VARCHAR, year VARCHAR) [/INST] ### Response: SELECT illustrator FROM table_name_79 WHERE year = 1987 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the title drop dead? ### Context: CREATE TABLE table_name_94 (year VARCHAR, title VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_94 WHERE title = "drop dead" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 publisher has a title of drop dead? ### Context: CREATE TABLE table_name_93 (publisher VARCHAR, title VARCHAR) [/INST] ### Response: SELECT publisher FROM table_name_93 WHERE title = "drop dead" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Greek word means the same thing as the German word ebbe? ### Context: CREATE TABLE table_name_99 (greek VARCHAR, german VARCHAR) [/INST] ### Response: SELECT greek FROM table_name_99 WHERE german = "ebbe" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What word in German translates into the Icelandic word efja? ### Context: CREATE TABLE table_name_10 (german VARCHAR, icelandic VARCHAR) [/INST] ### Response: SELECT german FROM table_name_10 WHERE icelandic = "efja" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Dutch translation of the Latin word navigo? ### Context: CREATE TABLE table_name_3 (dutch VARCHAR, latin VARCHAR) [/INST] ### Response: SELECT dutch FROM table_name_3 WHERE latin = "navigo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Dutch word has the same meaning as the Greek word πλέω (pléō)? ### Context: CREATE TABLE table_name_1 (dutch VARCHAR, greek VARCHAR) [/INST] ### Response: SELECT dutch FROM table_name_1 WHERE greek = "πλέω (pléō)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What English word has the same meaning as the German word "german"? ### Context: CREATE TABLE table_name_3 (english VARCHAR) [/INST] ### Response: SELECT english FROM table_name_3 WHERE "german" = "german" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many wins are related to events of 7 and more than 2 top-10s? ### Context: CREATE TABLE table_name_95 (wins VARCHAR, events VARCHAR, top_10 VARCHAR) [/INST] ### Response: SELECT COUNT(wins) FROM table_name_95 WHERE events = 7 AND top_10 > 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 most cuts made for events with 1 top-5, 2 top-10s, and more than 13 total events? ### Context: CREATE TABLE table_name_52 (cuts_made INTEGER, events VARCHAR, top_5 VARCHAR, top_10 VARCHAR) [/INST] ### Response: SELECT MAX(cuts_made) FROM table_name_52 WHERE top_5 = 1 AND top_10 = 2 AND events > 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: Can you tell me the Name that has the Rank smaller than 71, and the Year larger than 2005, and the Out of 220? ### Context: CREATE TABLE table_name_22 (name VARCHAR, out_of VARCHAR, rank VARCHAR, year VARCHAR) [/INST] ### Response: SELECT name FROM table_name_22 WHERE rank < 71 AND year > 2005 AND out_of = "220" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Can you tell me the lowest Year that has the Rank smaller the 132, and the Name of biodiversity richness? ### Context: CREATE TABLE table_name_99 (year INTEGER, rank VARCHAR, name VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_99 WHERE rank < 132 AND name = "biodiversity richness" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Can you tell me the Source that has the Rank of 78? ### Context: CREATE TABLE table_name_86 (source VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT source FROM table_name_86 WHERE rank = 78 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Can you tell me the Out of that has the Source of united nations, and the Rank larger than 47, and the Year smaller than 2003? ### Context: CREATE TABLE table_name_31 (out_of VARCHAR, year VARCHAR, source VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT out_of FROM table_name_31 WHERE source = "united nations" AND rank > 47 AND year < 2003 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Tournament has a 2004 of 1r? ### Context: CREATE TABLE table_name_59 (tournament VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_59 WHERE 2004 = "1r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2005 that has a grand slam tournaments in 2007? ### Context: CREATE TABLE table_name_52 (Id VARCHAR) [/INST] ### Response: SELECT 2005 FROM table_name_52 WHERE 2007 = "grand slam tournaments" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2006 that has a 2r in 2004, and a 2r in 2005? ### Context: CREATE TABLE table_name_84 (Id VARCHAR) [/INST] ### Response: SELECT 2006 FROM table_name_84 WHERE 2004 = "2r" AND 2005 = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2007 that has a grand slam tournaments in 2006. ### Context: CREATE TABLE table_name_32 (Id VARCHAR) [/INST] ### Response: SELECT 2007 FROM table_name_32 WHERE 2006 = "grand slam tournaments" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2004 that has a of grand slam tournaments in2006 ? ### Context: CREATE TABLE table_name_82 (Id VARCHAR) [/INST] ### Response: SELECT 2004 FROM table_name_82 WHERE 2006 = "grand slam tournaments" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2006 has a 2007 of 3r? ### Context: CREATE TABLE table_name_48 (Id VARCHAR) [/INST] ### Response: SELECT 2006 FROM table_name_48 WHERE 2007 = "3r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of passengers going to MCO with a rank larger than 9? ### Context: CREATE TABLE table_name_54 (passengers VARCHAR, airport VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT COUNT(passengers) FROM table_name_54 WHERE airport = "mco" AND rank > 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 city had a rank before 3 and primary carrier JetBlue Airways? ### Context: CREATE TABLE table_name_78 (city VARCHAR, rank VARCHAR, carriers VARCHAR) [/INST] ### Response: SELECT city FROM table_name_78 WHERE rank < 3 AND carriers = "jetblue airways" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 launched and laid down in February 1819? ### Context: CREATE TABLE table_name_14 (launched VARCHAR, laid_down VARCHAR) [/INST] ### Response: SELECT launched FROM table_name_14 WHERE laid_down = "february 1819" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 positions with less than 10 points, more than 7 qualifying, ret value in Race 1, and Jonathan Grant driving? ### Context: CREATE TABLE table_name_51 (pos VARCHAR, driver VARCHAR, race_1 VARCHAR, points VARCHAR, qualifying VARCHAR) [/INST] ### Response: SELECT COUNT(pos) FROM table_name_51 WHERE points < 10 AND qualifying > 7 AND race_1 = "ret" AND driver = "jonathan grant" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date, when Set 2 is 25-13? ### Context: CREATE TABLE table_name_29 (date VARCHAR, set_2 VARCHAR) [/INST] ### Response: SELECT date FROM table_name_29 WHERE set_2 = "25-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 Total, when Set 5 is NA, and when Set 2 is 25-13? ### Context: CREATE TABLE table_name_62 (total VARCHAR, set_5 VARCHAR, set_2 VARCHAR) [/INST] ### Response: SELECT total FROM table_name_62 WHERE set_5 = "na" AND set_2 = "25-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 Score, when Date is Jun 16, and when Set 4 is 25-20? ### Context: CREATE TABLE table_name_1 (score VARCHAR, date VARCHAR, set_4 VARCHAR) [/INST] ### Response: SELECT score FROM table_name_1 WHERE date = "jun 16" AND set_4 = "25-20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Set 2, when Score is 3-0, when Date is May 11, and when Set 1 is 25-20? ### Context: CREATE TABLE table_name_73 (set_2 VARCHAR, set_1 VARCHAR, score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT set_2 FROM table_name_73 WHERE score = "3-0" AND date = "may 11" AND set_1 = "25-20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Set 4, when Set 1 is 25-18, and when Date is Jun 2? ### Context: CREATE TABLE table_name_37 (set_4 VARCHAR, set_1 VARCHAR, date VARCHAR) [/INST] ### Response: SELECT set_4 FROM table_name_37 WHERE set_1 = "25-18" AND date = "jun 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 Team with a Score that is w 101–97 (2ot)? ### Context: CREATE TABLE table_name_17 (team VARCHAR, score VARCHAR) [/INST] ### Response: SELECT team FROM table_name_17 WHERE score = "w 101–97 (2ot)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points with a Score that is l 64–94 (ot)? ### Context: CREATE TABLE table_name_73 (high_points VARCHAR, score VARCHAR) [/INST] ### Response: SELECT high_points FROM table_name_73 WHERE score = "l 64–94 (ot)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest played when the drawn is less than 1? ### Context: CREATE TABLE table_name_62 (played INTEGER, drawn INTEGER) [/INST] ### Response: SELECT MAX(played) FROM table_name_62 WHERE drawn < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What points average has a played greater than 20? ### Context: CREATE TABLE table_name_31 (points INTEGER, played INTEGER) [/INST] ### Response: SELECT AVG(points) FROM table_name_31 WHERE played > 20 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest drawn with a position bigger than 10 and a played less than 20? ### Context: CREATE TABLE table_name_51 (drawn INTEGER, position VARCHAR, played VARCHAR) [/INST] ### Response: SELECT MIN(drawn) FROM table_name_51 WHERE position > 10 AND played < 20 </s>