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 award took place after 2009? ### Context: CREATE TABLE table_name_88 (award VARCHAR, year INTEGER) [/INST] ### Response: SELECT award FROM table_name_88 WHERE 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: What year had the category of best international newcomer? ### Context: CREATE TABLE table_name_53 (year VARCHAR, category VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_53 WHERE category = "best international newcomer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Player has an Opposition of clare? ### Context: CREATE TABLE table_name_11 (player VARCHAR, opposition VARCHAR) [/INST] ### Response: SELECT player FROM table_name_11 WHERE opposition = "clare" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Total has a Player of matt ruth? ### Context: CREATE TABLE table_name_40 (total VARCHAR, player VARCHAR) [/INST] ### Response: SELECT total FROM table_name_40 WHERE player = "matt ruth" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rank has a Player of matt ruth? ### Context: CREATE TABLE table_name_62 (rank INTEGER, player VARCHAR) [/INST] ### Response: SELECT SUM(rank) FROM table_name_62 WHERE player = "matt ruth" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 byes were there recorded with 0 draws? ### Context: CREATE TABLE table_name_27 (byes INTEGER, draws INTEGER) [/INST] ### Response: SELECT SUM(byes) FROM table_name_27 WHERE draws < 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: How many draws occured with a record of 10 losses, and 6 wins? ### Context: CREATE TABLE table_name_38 (draws VARCHAR, losses VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT COUNT(draws) FROM table_name_38 WHERE losses = 10 AND wins > 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 byes were there with an Against of 1655 and more than 10 wins? ### Context: CREATE TABLE table_name_51 (byes INTEGER, against VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MIN(byes) FROM table_name_51 WHERE against = 1655 AND wins > 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 was the against were there were less than 3 byes? ### Context: CREATE TABLE table_name_93 (against INTEGER, byes INTEGER) [/INST] ### Response: SELECT AVG(against) FROM table_name_93 WHERE byes < 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's the general classification of Ignatas Konovalovas when the mountains classification was Stefano Garzelli and points classification was Danilo Di Luca? ### Context: CREATE TABLE table_name_36 (general_classification VARCHAR, winner VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR) [/INST] ### Response: SELECT general_classification FROM table_name_36 WHERE mountains_classification = "stefano garzelli" AND points_classification = "danilo di luca" AND winner = "ignatas konovalovas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the mountains classification when the points classification is Alessandro Petacchi and the general classification is Danilo Di Luca? ### Context: CREATE TABLE table_name_26 (mountains_classification VARCHAR, points_classification VARCHAR, general_classification VARCHAR) [/INST] ### Response: SELECT mountains_classification FROM table_name_26 WHERE points_classification = "alessandro petacchi" AND general_classification = "danilo di luca" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winner of Stage 9 when then general classification was Danilo Di Luca? ### Context: CREATE TABLE table_name_60 (winner VARCHAR, general_classification VARCHAR, stage VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_60 WHERE general_classification = "danilo di luca" AND stage = "9" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the stage of winner Carlos Sastre when the general classification was Denis Menchov? ### Context: CREATE TABLE table_name_21 (stage VARCHAR, general_classification VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT stage FROM table_name_21 WHERE general_classification = "denis menchov" AND winner = "carlos sastre" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the points classification of Stage 18 when the general classification was Denis Menchov? ### Context: CREATE TABLE table_name_46 (points_classification VARCHAR, general_classification VARCHAR, stage VARCHAR) [/INST] ### Response: SELECT points_classification FROM table_name_46 WHERE general_classification = "denis menchov" AND stage = "18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the mountains classification of winner Carlos Sastre when the general classification is Denis Menchov? ### Context: CREATE TABLE table_name_15 (mountains_classification VARCHAR, general_classification VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT mountains_classification FROM table_name_15 WHERE general_classification = "denis menchov" AND winner = "carlos sastre" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team 1 with an agg of 2-5? ### Context: CREATE TABLE table_name_1 (team_1 VARCHAR, agg VARCHAR) [/INST] ### Response: SELECT team_1 FROM table_name_1 WHERE agg = "2-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: Who was the director of the episode Rebel Rabbit? ### Context: CREATE TABLE table_name_90 (director VARCHAR, title VARCHAR) [/INST] ### Response: SELECT director FROM table_name_90 WHERE title = "rebel rabbit" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 claudia beni as the artist? ### Context: CREATE TABLE table_name_3 (year INTEGER, artist VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_3 WHERE artist = "claudia beni" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What song has filipa sousa as an artist? ### Context: CREATE TABLE table_name_94 (song VARCHAR, artist VARCHAR) [/INST] ### Response: SELECT song FROM table_name_94 WHERE artist = "filipa sousa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rounds have a Surface of wintry asphalt? ### Context: CREATE TABLE table_name_24 (round VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT COUNT(round) FROM table_name_24 WHERE surface = "wintry asphalt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Surface has a Support Category of jwrc/pwrc, and a Round larger than 5? ### Context: CREATE TABLE table_name_21 (surface VARCHAR, support_category VARCHAR, round VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_21 WHERE support_category = "jwrc/pwrc" AND round > 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Rally Name has a Surface of asphalt and gravel? ### Context: CREATE TABLE table_name_17 (rally_name VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT rally_name FROM table_name_17 WHERE surface = "asphalt and gravel" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dates have a Rally HQ of kingscliff? ### Context: CREATE TABLE table_name_6 (dates VARCHAR, rally_hq VARCHAR) [/INST] ### Response: SELECT dates FROM table_name_6 WHERE rally_hq = "kingscliff" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Rally HQ of salou? ### Context: CREATE TABLE table_name_80 (round INTEGER, rally_hq VARCHAR) [/INST] ### Response: SELECT MIN(round) FROM table_name_80 WHERE rally_hq = "salou" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the Opponents on December 18, 2005? ### Context: CREATE TABLE table_name_31 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_31 WHERE date = "december 18, 2005" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Coach has a Runner-up of northeastern and a Score of 6–3? ### Context: CREATE TABLE table_name_82 (coach VARCHAR, runner_up VARCHAR, score VARCHAR) [/INST] ### Response: SELECT coach FROM table_name_82 WHERE runner_up = "northeastern" AND score = "6–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: Name the Score of the Year larger than 2004 and a Runner-up of northeastern? ### Context: CREATE TABLE table_name_43 (score VARCHAR, year VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT score FROM table_name_43 WHERE year > 2004 AND runner_up = "northeastern" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Runner-up of a Year in 1963? ### Context: CREATE TABLE table_name_18 (runner_up VARCHAR, year VARCHAR) [/INST] ### Response: SELECT runner_up FROM table_name_18 WHERE year = 1963 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest Year with a Score of 4–1? ### Context: CREATE TABLE table_name_71 (year INTEGER, score VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_71 WHERE score = "4–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 Start has a Qual of 207.590? ### Context: CREATE TABLE table_name_55 (start VARCHAR, qual VARCHAR) [/INST] ### Response: SELECT start FROM table_name_55 WHERE qual = "207.590" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Year has a Rank of 25? ### Context: CREATE TABLE table_name_64 (year VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT year FROM table_name_64 WHERE rank = "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: Which Laps have a Finish of 15? ### Context: CREATE TABLE table_name_30 (laps VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT laps FROM table_name_30 WHERE finish = "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 Qual has Laps smaller than 195, and a Rank of 25? ### Context: CREATE TABLE table_name_74 (qual VARCHAR, laps VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT qual FROM table_name_74 WHERE laps < 195 AND rank = "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: Which Rank has a Finish of 8? ### Context: CREATE TABLE table_name_11 (rank VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_11 WHERE finish = "8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Rank has a Heat larger than 7? ### Context: CREATE TABLE table_name_58 (rank INTEGER, heat INTEGER) [/INST] ### Response: SELECT MAX(rank) FROM table_name_58 WHERE heat > 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: Which Heat has a Nation of australia, and a Rank larger than 7? ### Context: CREATE TABLE table_name_36 (heat INTEGER, nation VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MAX(heat) FROM table_name_36 WHERE nation = "australia" AND rank > 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number of podiums for drivers with under 12 finishes and under 1 start? ### Context: CREATE TABLE table_name_24 (podiums INTEGER, finishes VARCHAR, starts VARCHAR) [/INST] ### Response: SELECT AVG(podiums) FROM table_name_24 WHERE finishes < 12 AND starts < 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 number of wins associated with 1 point, more than 1 start, and under 7 finishes? ### Context: CREATE TABLE table_name_68 (wins VARCHAR, points VARCHAR, finishes VARCHAR, starts VARCHAR) [/INST] ### Response: SELECT wins FROM table_name_68 WHERE finishes < 7 AND starts > 1 AND points = 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 number of finishes associated with 13 starts, more than 169 points, and 96 stage wins? ### Context: CREATE TABLE table_name_12 (finishes VARCHAR, stage_wins VARCHAR, starts VARCHAR, points VARCHAR) [/INST] ### Response: SELECT finishes FROM table_name_12 WHERE starts = 13 AND points > 169 AND stage_wins = 96 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who directed the episode with production code 40811-005? ### Context: CREATE TABLE table_name_7 (director VARCHAR, prod_code VARCHAR) [/INST] ### Response: SELECT director FROM table_name_7 WHERE prod_code = "40811-005" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title of the episode with production code 40811-002? ### Context: CREATE TABLE table_name_87 (title VARCHAR, prod_code VARCHAR) [/INST] ### Response: SELECT title FROM table_name_87 WHERE prod_code = "40811-002" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament when the score is 2-6, 4-6? ### Context: CREATE TABLE table_name_1 (tournament VARCHAR, score VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_1 WHERE score = "2-6, 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: what is the outcome on april 24, 1988? ### Context: CREATE TABLE table_name_20 (outcome VARCHAR, date VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_20 WHERE date = "april 24, 1988" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the tournament is san diego and the opponent is ann grossman? ### Context: CREATE TABLE table_name_92 (date VARCHAR, tournament VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_92 WHERE tournament = "san diego" AND opponent = "ann grossman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outcome when the tournament is san diego and the opponent is ann grossman? ### Context: CREATE TABLE table_name_40 (outcome VARCHAR, tournament VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_40 WHERE tournament = "san diego" AND opponent = "ann grossman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the score when the opponent is ann grossman? ### Context: CREATE TABLE table_name_79 (score VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT score FROM table_name_79 WHERE opponent = "ann grossman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outcome when the tournament is tokyo? ### Context: CREATE TABLE table_name_83 (outcome VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_83 WHERE tournament = "tokyo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what Year was the 32nd Ceremony with winner William A. Horning in the Film North by Northwest? ### Context: CREATE TABLE table_name_87 (year VARCHAR, film VARCHAR, ceremony VARCHAR, name VARCHAR) [/INST] ### Response: SELECT year FROM table_name_87 WHERE ceremony = "32nd" AND name = "william a. horning" AND film = "north by northwest" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what Year was the Film Your National Gallery winner? ### Context: CREATE TABLE table_name_70 (year VARCHAR, film VARCHAR) [/INST] ### Response: SELECT year FROM table_name_70 WHERE film = "your national gallery" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Film with winner Jerome Kern in the 19th Ceremony? ### Context: CREATE TABLE table_name_47 (film VARCHAR, ceremony VARCHAR, name VARCHAR) [/INST] ### Response: SELECT film FROM table_name_47 WHERE ceremony = "19th" AND name = "jerome kern" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Academy Award for the Film Educating Peter? ### Context: CREATE TABLE table_name_34 (academy_award VARCHAR, film VARCHAR) [/INST] ### Response: SELECT academy_award FROM table_name_34 WHERE film = "educating peter" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Number of electorates (2009) has 188 Constituents? ### Context: CREATE TABLE table_name_93 (number_of_electorates__2009_ VARCHAR, constituency_number VARCHAR) [/INST] ### Response: SELECT number_of_electorates__2009_ FROM table_name_93 WHERE constituency_number = "188" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runner(s)-up with a winning score of −5 (72-71-68=211)? ### Context: CREATE TABLE table_name_48 (runner_s__up VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT runner_s__up FROM table_name_48 WHERE winning_score = −5(72 - 71 - 68 = 211) </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was there a playoff on the margin of victory during the Shirley Englehorn Invitational? ### Context: CREATE TABLE table_name_36 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT date FROM table_name_36 WHERE margin_of_victory = "playoff" AND tournament = "shirley englehorn invitational" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runner(s)-up for the Lady Carling Open with 3 strokes margin of victory? ### Context: CREATE TABLE table_name_10 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT runner_s__up FROM table_name_10 WHERE margin_of_victory = "3 strokes" AND tournament = "lady carling 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 is the attendance in a week larter than 4, on December 6, 1992? ### Context: CREATE TABLE table_name_80 (attendance VARCHAR, week VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_80 WHERE week > 4 AND date = "december 6, 1992" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Date of October 4, 1992? ### Context: CREATE TABLE table_name_78 (week INTEGER, date VARCHAR) [/INST] ### Response: SELECT SUM(week) FROM table_name_78 WHERE date = "october 4, 1992" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the result was l 37-3? ### Context: CREATE TABLE table_name_77 (date VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_77 WHERE result = "l 37-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 attendance when the opponent was the Houston Oilers? ### Context: CREATE TABLE table_name_47 (attendance VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_47 WHERE opponent = "houston oilers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Lane has a Reaction Time smaller than 0.199, and a Country of united states, and a Name of muna lee, and a Time larger than 22.01? ### Context: CREATE TABLE table_name_3 (lane INTEGER, time VARCHAR, name VARCHAR, reaction_time VARCHAR, country VARCHAR) [/INST] ### Response: SELECT MAX(lane) FROM table_name_3 WHERE reaction_time < 0.199 AND country = "united states" AND name = "muna lee" AND time > 22.01 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Lanes have a Country of jamaica, and a Name of kerron stewart, and a Time larger than 22? ### Context: CREATE TABLE table_name_46 (lane INTEGER, time VARCHAR, country VARCHAR, name VARCHAR) [/INST] ### Response: SELECT SUM(lane) FROM table_name_46 WHERE country = "jamaica" AND name = "kerron stewart" AND time > 22 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many Times have a Reaction Time larger than 0.17500000000000002, and a Lane of 3? ### Context: CREATE TABLE table_name_62 (time VARCHAR, reaction_time VARCHAR, lane VARCHAR) [/INST] ### Response: SELECT COUNT(time) FROM table_name_62 WHERE reaction_time > 0.17500000000000002 AND lane = 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Lane has a Country of united states, and a Time smaller than 22.01, and a Reaction Time smaller than 0.193? ### Context: CREATE TABLE table_name_95 (lane INTEGER, reaction_time VARCHAR, country VARCHAR, time VARCHAR) [/INST] ### Response: SELECT MIN(lane) FROM table_name_95 WHERE country = "united states" AND time < 22.01 AND reaction_time < 0.193 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the ladder position when team is less than 10 and the Finals qualifications were DNQ? ### Context: CREATE TABLE table_name_75 (final_ladder_position VARCHAR, finals_qualification VARCHAR, teams VARCHAR) [/INST] ### Response: SELECT final_ladder_position FROM table_name_75 WHERE finals_qualification = "dnq" AND teams < 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 total teams during the 2012-13 season? ### Context: CREATE TABLE table_name_19 (teams INTEGER, season VARCHAR) [/INST] ### Response: SELECT SUM(teams) FROM table_name_19 WHERE season = "2012-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's the ACL qualification when the minor ladder position is 5th and the finals qualifications were DNQ? ### Context: CREATE TABLE table_name_11 (acl_qualification VARCHAR, finals_qualification VARCHAR, minor_ladder_position VARCHAR) [/INST] ### Response: SELECT acl_qualification FROM table_name_11 WHERE finals_qualification = "dnq" AND minor_ladder_position = "5th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the finals qualification during the 2009-10 season? ### Context: CREATE TABLE table_name_88 (finals_qualification VARCHAR, season VARCHAR) [/INST] ### Response: SELECT finals_qualification FROM table_name_88 WHERE season = "2009-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: Name the the average Lib Dem with Conservative smaller than 0? ### Context: CREATE TABLE table_name_87 (lib_dem INTEGER, conservative INTEGER) [/INST] ### Response: SELECT AVG(lib_dem) FROM table_name_87 WHERE conservative < 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: Name the lowest Green with a Year larger than 2010, and a Labour larger than 29? Question 3 ### Context: CREATE TABLE table_name_82 (green INTEGER, year VARCHAR, labour VARCHAR) [/INST] ### Response: SELECT MIN(green) FROM table_name_82 WHERE year > 2010 AND labour > 29 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the average Independent with a Green larger than 7, and a Conservative smaller than 0? ### Context: CREATE TABLE table_name_35 (independent INTEGER, green VARCHAR, conservative VARCHAR) [/INST] ### Response: SELECT AVG(independent) FROM table_name_35 WHERE green > 7 AND conservative < 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: Name the highest Labour with Lib Dem larger than 21? ### Context: CREATE TABLE table_name_86 (labour INTEGER, lib_dem INTEGER) [/INST] ### Response: SELECT MAX(labour) FROM table_name_86 WHERE lib_dem > 21 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score in the final of the tournament with a clay surface on 18 April 2011? ### Context: CREATE TABLE table_name_88 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score_in_the_final FROM table_name_88 WHERE surface = "clay" AND date = "18 april 2011" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score in the final of the tournament with a hard surface? ### Context: CREATE TABLE table_name_8 (score_in_the_final VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT score_in_the_final FROM table_name_8 WHERE surface = "hard" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the opponent in the final on 24 November 2008? ### Context: CREATE TABLE table_name_43 (opponent_in_the_final VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent_in_the_final FROM table_name_43 WHERE date = "24 november 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 is the Opponent at the game with an Attendance of 64,900 in Week prior to 15 with a Result of L 38-31? ### Context: CREATE TABLE table_name_86 (opponent VARCHAR, result VARCHAR, week VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_86 WHERE week < 15 AND attendance = "64,900" AND result = "l 38-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: What is the Week of the game with an Attendance of 64,900 and a Result of L 34-13? ### Context: CREATE TABLE table_name_83 (week INTEGER, attendance VARCHAR, result VARCHAR) [/INST] ### Response: SELECT MAX(week) FROM table_name_83 WHERE attendance = "64,900" AND result = "l 34-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 Week of the game against Minnesota Vikings? ### Context: CREATE TABLE table_name_10 (week INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT MAX(week) FROM table_name_10 WHERE opponent = "minnesota vikings" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Week of the game against Seattle Seahawks? ### Context: CREATE TABLE table_name_30 (week INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT AVG(week) FROM table_name_30 WHERE opponent = "seattle seahawks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Total Goals have an FA Cup Goals of 0, and an FA Cup Apps of 3, and a Position of fw? ### Context: CREATE TABLE table_name_92 (total_goals INTEGER, position VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR) [/INST] ### Response: SELECT AVG(total_goals) FROM table_name_92 WHERE fa_cup_goals = 0 AND fa_cup_apps = "3" AND position = "fw" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year was Caroline Medina Miss Fire (3rd Runner-up)? ### Context: CREATE TABLE table_name_21 (year INTEGER, miss_fire__3rd_runner_up_ VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_21 WHERE miss_fire__3rd_runner_up_ = "caroline medina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Miss Air (1st Runner-up) when Catherine Untalan was Miss Water (2nd Runner-up) earlier than 2007? ### Context: CREATE TABLE table_name_35 (miss_air__1st_runner_up_ VARCHAR, year VARCHAR, miss_water__2nd_runner_up_ VARCHAR) [/INST] ### Response: SELECT miss_air__1st_runner_up_ FROM table_name_35 WHERE year < 2007 AND miss_water__2nd_runner_up_ = "catherine untalan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the sr no is less than 74 and floors is more than 36? ### Context: CREATE TABLE table_name_61 (name VARCHAR, sr_no VARCHAR, floors VARCHAR) [/INST] ### Response: SELECT name FROM table_name_61 WHERE sr_no < 74 AND floors > 36 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many times is the building type residential and the locale yashodham? ### Context: CREATE TABLE table_name_22 (sr_no VARCHAR, building_type VARCHAR, locale VARCHAR) [/INST] ### Response: SELECT COUNT(sr_no) FROM table_name_22 WHERE building_type = "residential" AND locale = "yashodham" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 least floors when the building type is residential and the sr no is 8? ### Context: CREATE TABLE table_name_79 (floors INTEGER, building_type VARCHAR, sr_no VARCHAR) [/INST] ### Response: SELECT MIN(floors) FROM table_name_79 WHERE building_type = "residential" AND sr_no = 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the height when the locale is nepean sea road, floors is more than 30 and sr no is 58? ### Context: CREATE TABLE table_name_99 (height VARCHAR, sr_no VARCHAR, locale VARCHAR, floors VARCHAR) [/INST] ### Response: SELECT height FROM table_name_99 WHERE locale = "nepean sea road" AND floors > 30 AND sr_no = 58 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that had 46 floors? ### Context: CREATE TABLE table_name_47 (name VARCHAR, floors VARCHAR) [/INST] ### Response: SELECT name FROM table_name_47 WHERE floors = 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 player from A-League 39 (110) has the highest games per goal? ### Context: CREATE TABLE table_name_34 (games_per_goal INTEGER, a_league VARCHAR) [/INST] ### Response: SELECT MAX(games_per_goal) FROM table_name_34 WHERE a_league = "39 (110)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What player had a finals score of 0 (10)? ### Context: CREATE TABLE table_name_5 (name VARCHAR, finals VARCHAR) [/INST] ### Response: SELECT name FROM table_name_5 WHERE finals = "0 (10)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player has a total of 8 (24)? ### Context: CREATE TABLE table_name_8 (name VARCHAR, total VARCHAR) [/INST] ### Response: SELECT name FROM table_name_8 WHERE total = "8 (24)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the week when the result was W 38-24 and attendance was less than 43,449? ### Context: CREATE TABLE table_name_33 (week INTEGER, result VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT SUM(week) FROM table_name_33 WHERE result = "w 38-24" AND attendance < 43 OFFSET 449 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a time of 0:39? ### Context: CREATE TABLE table_name_21 (round INTEGER, time VARCHAR) [/INST] ### Response: SELECT MIN(round) FROM table_name_21 WHERE time = "0:39" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the competition with a Rank-Final of 1st and a Score-Qualifying under 28.975? ### Context: CREATE TABLE table_name_95 (location VARCHAR, rank_final VARCHAR, score_qualifying VARCHAR) [/INST] ### Response: SELECT location FROM table_name_95 WHERE rank_final = "1st" AND score_qualifying < 28.975 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a Rank-Qualifying of 1st and a ball apparatus? ### Context: CREATE TABLE table_name_94 (competition_description VARCHAR, rank_qualifying VARCHAR, apparatus VARCHAR) [/INST] ### Response: SELECT competition_description FROM table_name_94 WHERE rank_qualifying = "1st" AND apparatus = "ball" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the ship Afrika, with nationality Great Britain? ### Context: CREATE TABLE table_name_73 (date VARCHAR, nationality VARCHAR, ship VARCHAR) [/INST] ### Response: SELECT date FROM table_name_73 WHERE nationality = "great britain" AND ship = "afrika" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tonnage for a ship from Great Britain named Newton Ash? ### Context: CREATE TABLE table_name_13 (tonnage INTEGER, nationality VARCHAR, ship VARCHAR) [/INST] ### Response: SELECT MAX(tonnage) FROM table_name_13 WHERE nationality = "great britain" AND ship = "newton ash" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality of the ship named Toward? ### Context: CREATE TABLE table_name_91 (nationality VARCHAR, ship VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_91 WHERE ship = "toward" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality of the sunk ship named Rinos? ### Context: CREATE TABLE table_name_52 (nationality VARCHAR, fate VARCHAR, ship VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_52 WHERE fate = "sunk" AND ship = "rinos" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Comp of the Shooter with a Score of 489.5? ### Context: CREATE TABLE table_name_3 (comp VARCHAR, score VARCHAR) [/INST] ### Response: SELECT comp FROM table_name_3 WHERE score = "489.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 Date of Shooter New Targets from 1989's record? ### Context: CREATE TABLE table_name_39 (date VARCHAR, shooter VARCHAR) [/INST] ### Response: SELECT date FROM table_name_39 WHERE shooter = "new targets from 1989" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average total value for Spain? ### Context: CREATE TABLE table_name_58 (total INTEGER, nation VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_58 WHERE nation = "spain" </s>