text
stringlengths 380
1.33k
|
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of Howard Clark from England with a To Par of +1?
### Context:
CREATE TABLE table_name_55 (score VARCHAR, player VARCHAR, to_par VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_55 WHERE to_par = "+1" AND country = "england" AND player = "howard clark" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the player with a To Par of +1 from Spain?
### Context:
CREATE TABLE table_name_54 (score VARCHAR, to_par VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_54 WHERE to_par = "+1" AND country = "spain" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 event against U.S.A.?
### Context:
CREATE TABLE table_name_39 (status VARCHAR, opposing_teams VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_39 WHERE opposing_teams = "u.s.a." </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the match on 10/11/2001 against 15?
### Context:
CREATE TABLE table_name_3 (venue VARCHAR, against VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_3 WHERE against = 15 AND date = "10/11/2001" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest against team in the Six Nations status in Lansdowne Road, Dublin?
### Context:
CREATE TABLE table_name_81 (against INTEGER, status VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT MIN(against) FROM table_name_81 WHERE status = "six nations" AND venue = "lansdowne road, dublin" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What 2008 has 1r as a 2010, A as the 2007, and 1r as the 2009?
### Context:
CREATE TABLE table_name_54 (Id VARCHAR) [/INST]
### Response:
SELECT 2008 FROM table_name_54 WHERE 2010 = "1r" AND 2007 = "a" AND 2009 = "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 2008 has A as the 2007, and 2r as the 2010?
### Context:
CREATE TABLE table_name_40 (Id VARCHAR) [/INST]
### Response:
SELECT 2008 FROM table_name_40 WHERE 2007 = "a" AND 2010 = "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 2009 has lq as the 2011?
### Context:
CREATE TABLE table_name_58 (Id VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_58 WHERE 2011 = "lq" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What 2009 has 345 as the 2007?
### Context:
CREATE TABLE table_name_33 (Id VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_33 WHERE 2007 = "345" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What nation has a sport of weightlifting and a pinyin of kùkè qúndǎo?
### Context:
CREATE TABLE table_name_24 (nation VARCHAR, sport VARCHAR, pinyin VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_24 WHERE sport = "weightlifting" AND pinyin = "kùkè qúndǎo" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What day did Glentoran play at Windsor Park, Belfast?
### Context:
CREATE TABLE table_name_34 (date VARCHAR, team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_34 WHERE team = "glentoran" AND venue = "windsor park, belfast" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What day was the score 1-0?
### Context:
CREATE TABLE table_name_39 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_39 WHERE score = "1-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 team scored 2-1?
### Context:
CREATE TABLE table_name_40 (team VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_40 WHERE score = "2-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 1998 value with 2r in 2003?
### Context:
CREATE TABLE table_name_60 (Id VARCHAR) [/INST]
### Response:
SELECT 1998 FROM table_name_60 WHERE 2003 = "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 2004 value with 2r in 1994?
### Context:
CREATE TABLE table_name_60 (Id VARCHAR) [/INST]
### Response:
SELECT 2004 FROM table_name_60 WHERE 1994 = "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 2003 value for the french open, which has a 1r in 1994?
### Context:
CREATE TABLE table_name_10 (tournament VARCHAR) [/INST]
### Response:
SELECT 2003 FROM table_name_10 WHERE 1994 = "1r" AND tournament = "french 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 2003 value with a 1r in 1998, a 14 in 1994, and a 7-12 career?
### Context:
CREATE TABLE table_name_50 (career VARCHAR) [/INST]
### Response:
SELECT 2003 FROM table_name_50 WHERE 1998 = "1r" AND 1994 = "1r" AND career = "7-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:
Which driver finished in position 8?
### Context:
CREATE TABLE table_name_50 (driver VARCHAR, fin_pos VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_50 WHERE fin_pos = 8 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average grid for Marco Andretti with a finishing position higher than 19?
### Context:
CREATE TABLE table_name_85 (grid INTEGER, driver VARCHAR, fin_pos VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_85 WHERE driver = "marco andretti" AND fin_pos > 19 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Car number 98's lowest grid?
### Context:
CREATE TABLE table_name_53 (grid INTEGER, car_no VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_53 WHERE car_no = 98 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest Laps Led with a grid of less than 4 and a finishing position of 15?
### Context:
CREATE TABLE table_name_26 (laps INTEGER, grid VARCHAR, fin_pos VARCHAR) [/INST]
### Response:
SELECT MAX(laps) AS Led FROM table_name_26 WHERE grid < 4 AND fin_pos = 15 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Qiangshu lower than rank 4 and less than 9.22 Jianshu?
### Context:
CREATE TABLE table_name_45 (qiangshu INTEGER, rank VARCHAR, jianshu VARCHAR) [/INST]
### Response:
SELECT AVG(qiangshu) FROM table_name_45 WHERE rank > 4 AND jianshu < 9.22 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Jianshu higher than rank 2, with a Qiangshu smaller than 9.85?
### Context:
CREATE TABLE table_name_29 (jianshu INTEGER, rank VARCHAR, qiangshu VARCHAR) [/INST]
### Response:
SELECT AVG(jianshu) FROM table_name_29 WHERE rank < 2 AND qiangshu < 9.85 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date did the woman married to Louis II become consort?
### Context:
CREATE TABLE table_name_86 (became_consort VARCHAR, spouse VARCHAR) [/INST]
### Response:
SELECT became_consort FROM table_name_86 WHERE spouse = "louis ii" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Date of the game when the Record is 32–31–6?
### Context:
CREATE TABLE table_name_8 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_8 WHERE record = "32–31–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 Opponent at the Honda Center on March 29?
### Context:
CREATE TABLE table_name_66 (opponent VARCHAR, arena VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_66 WHERE arena = "honda center" AND date = "march 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:
What is the Opponent when the Record is 34–31–6?
### Context:
CREATE TABLE table_name_3 (opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_3 WHERE record = "34–31–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 Date, when Away Team is "Minehead"?
### Context:
CREATE TABLE table_name_13 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_13 WHERE away_team = "minehead" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Away Team is "Barnet"?
### Context:
CREATE TABLE table_name_7 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_7 WHERE away_team = "barnet" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tie no, when Home Team is "Hull City"?
### Context:
CREATE TABLE table_name_69 (tie_no VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_69 WHERE home_team = "hull city" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Away Team, when Home Team is "Swindon Town"?
### Context:
CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_3 WHERE home_team = "swindon town" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Away Team, when Home Team is "Boston United"?
### Context:
CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_30 WHERE home_team = "boston united" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nick Faldo's score?
### Context:
CREATE TABLE table_name_73 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_73 WHERE player = "nick faldo" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country placed t8 and scored 71-71-71=213?
### Context:
CREATE TABLE table_name_18 (country VARCHAR, place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_18 WHERE place = "t8" AND score = 71 - 71 - 71 = 213 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the place when the score was 67-73-73=213?
### Context:
CREATE TABLE table_name_23 (place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_23 WHERE score = 67 - 73 - 73 = 213 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the place when the score was 70-69-74=213?
### Context:
CREATE TABLE table_name_12 (place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_12 WHERE score = 70 - 69 - 74 = 213 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was United States place when the player was Fred Couples?
### Context:
CREATE TABLE table_name_26 (place VARCHAR, country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_26 WHERE country = "united states" AND player = "fred couples" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 WITH 2008 AND 2011 WITH A?
### Context:
CREATE TABLE table_name_82 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_82 WHERE 2008 = "a" AND 2011 = "a" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHAT IS THE 2012 WITH 2005 OF 1R?
### Context:
CREATE TABLE table_name_35 (Id VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_35 WHERE 2005 = "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 2010 WITH 2012 OF 2R AT MIAMI MASTERS?
### Context:
CREATE TABLE table_name_93 (tournament VARCHAR) [/INST]
### Response:
SELECT 2010 FROM table_name_93 WHERE 2012 = "2r" AND tournament = "miami masters" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2008 WITH TOURNAMENT OF WIN-LOSS, AND 2005 A?
### Context:
CREATE TABLE table_name_84 (tournament VARCHAR) [/INST]
### Response:
SELECT 2008 FROM table_name_84 WHERE tournament = "win-loss" AND 2005 = "a" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHAT IS THE 2007 AT MADRID MASTERS?
### Context:
CREATE TABLE table_name_5 (tournament VARCHAR) [/INST]
### Response:
SELECT 2007 FROM table_name_5 WHERE tournament = "madrid masters" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2011 WITH 2007 AT A AND2 008 AT 3R?
### Context:
CREATE TABLE table_name_67 (Id VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_67 WHERE 2007 = "a" AND 2008 = "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 game was released before 2010 with a Metacritic of 85/100?
### Context:
CREATE TABLE table_name_48 (game_title VARCHAR, metacritic VARCHAR, year_released VARCHAR) [/INST]
### Response:
SELECT game_title FROM table_name_48 WHERE metacritic = "85/100" AND year_released < 2010 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Metacritic released after 2005, with a Platform of playstation 3 and a GameRankings of 84.44%?
### Context:
CREATE TABLE table_name_76 (metacritic VARCHAR, gamerankings VARCHAR, year_released VARCHAR, platform VARCHAR) [/INST]
### Response:
SELECT metacritic FROM table_name_76 WHERE year_released > 2005 AND platform = "playstation 3" AND gamerankings = "84.44%" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 GameRankings Released of 2011 with a Metacritic of 83/100?
### Context:
CREATE TABLE table_name_40 (gamerankings VARCHAR, metacritic VARCHAR, year_released VARCHAR) [/INST]
### Response:
SELECT gamerankings FROM table_name_40 WHERE metacritic = "83/100" AND year_released = 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:
How many weeks have an attendance less than 26,048?
### Context:
CREATE TABLE table_name_7 (week INTEGER, attendance INTEGER) [/INST]
### Response:
SELECT SUM(week) FROM table_name_7 WHERE attendance < 26 OFFSET 048 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record when the Denver Broncos played the New York Titans at Bears Stadium?
### Context:
CREATE TABLE table_name_44 (record VARCHAR, game_site VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_44 WHERE game_site = "bears stadium" AND opponent = "new york titans" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result of the match on December 9, 1962?
### Context:
CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_78 WHERE date = "december 9, 1962" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par, when Score is "70-68-68-71=277"?
### Context:
CREATE TABLE table_name_18 (to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_18 WHERE score = 70 - 68 - 68 - 71 = 277 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the match on 12 September 1990?
### Context:
CREATE TABLE table_name_29 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_29 WHERE date = "12 september 1990" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For what league was the player in G position drafted?
### Context:
CREATE TABLE table_name_87 (league_from VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT league_from FROM table_name_87 WHERE position = "g" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What pick number was player Greg McKegg?
### Context:
CREATE TABLE table_name_13 (pick__number INTEGER, player VARCHAR) [/INST]
### Response:
SELECT AVG(pick__number) FROM table_name_13 WHERE player = "greg mckegg" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Place has a Player of tony jacklin?
### Context:
CREATE TABLE table_name_28 (place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_28 WHERE player = "tony jacklin" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Place has a Player of bernhard langer?
### Context:
CREATE TABLE table_name_49 (place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_49 WHERE player = "bernhard langer" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Country of west germany?
### Context:
CREATE TABLE table_name_86 (player VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_86 WHERE country = "west germany" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Player has a To par of –2?
### Context:
CREATE TABLE table_name_20 (player VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_20 WHERE to_par = "–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 To par has a Place of t2, and a Country of united states?
### Context:
CREATE TABLE table_name_11 (to_par VARCHAR, place VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_11 WHERE place = "t2" AND country = "united states" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Score has a Place of t2, and a Country of england?
### Context:
CREATE TABLE table_name_75 (score VARCHAR, place VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_75 WHERE place = "t2" AND country = "england" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many tries were there for club cwmtwrch rfc?
### Context:
CREATE TABLE table_name_52 (tries_against VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT tries_against FROM table_name_52 WHERE club = "cwmtwrch rfc" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the draw when the tries against was 69?
### Context:
CREATE TABLE table_name_75 (drawn VARCHAR, tries_against VARCHAR) [/INST]
### Response:
SELECT drawn FROM table_name_75 WHERE tries_against = "69" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 try bonus when the loss is 13 and the draw is 2?
### Context:
CREATE TABLE table_name_51 (try_bonus VARCHAR, lost VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT try_bonus FROM table_name_51 WHERE lost = "13" AND drawn = "2" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Finish, when Team is "Buck Baker", and when Start is less than 13?
### Context:
CREATE TABLE table_name_39 (finish INTEGER, team VARCHAR, start VARCHAR) [/INST]
### Response:
SELECT AVG(finish) FROM table_name_39 WHERE team = "buck baker" AND start < 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 average Year, when Start is "11"?
### Context:
CREATE TABLE table_name_42 (year INTEGER, start VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_42 WHERE start = 11 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Year, when Finish is "29", and when Start is less than 24?
### Context:
CREATE TABLE table_name_14 (year INTEGER, finish VARCHAR, start VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_14 WHERE finish = 29 AND start < 24 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest Year, when Finish is "51", and when Start is less than 64?
### Context:
CREATE TABLE table_name_29 (year INTEGER, finish VARCHAR, start VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_29 WHERE finish = 51 AND start < 64 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Manufacturer, when Finish is greater than 29, when Start is less than 23, and when Year is "1973"?
### Context:
CREATE TABLE table_name_97 (manufacturer VARCHAR, year VARCHAR, finish VARCHAR, start VARCHAR) [/INST]
### Response:
SELECT manufacturer FROM table_name_97 WHERE finish > 29 AND start < 23 AND year = 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 opposing team with 11 against?
### Context:
CREATE TABLE table_name_7 (opposing_teams VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT opposing_teams FROM table_name_7 WHERE against = 11 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the venue where Argentina was the opposing team in a test match?
### Context:
CREATE TABLE table_name_26 (venue VARCHAR, opposing_teams VARCHAR, status VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_26 WHERE opposing_teams = "argentina" AND status = "test match" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 status of the game against France with more than 16 against?
### Context:
CREATE TABLE table_name_18 (status VARCHAR, against VARCHAR, opposing_teams VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_18 WHERE against > 16 AND opposing_teams = "france" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 what date is there a status of Five Nations and an against of 23?
### Context:
CREATE TABLE table_name_10 (date VARCHAR, status VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_10 WHERE status = "five nations" AND against = 23 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What model has a number built smaller than 6.526, and the Chassis code w109.015?
### Context:
CREATE TABLE table_name_82 (model VARCHAR, number_built VARCHAR, chassis_code VARCHAR) [/INST]
### Response:
SELECT model FROM table_name_82 WHERE number_built < 6.526 AND chassis_code = "w109.015" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at Tiger Stadium?
### Context:
CREATE TABLE table_name_30 (record VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_30 WHERE game_site = "tiger stadium" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance on September 19, 1971, after week 1?
### Context:
CREATE TABLE table_name_38 (attendance INTEGER, date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_38 WHERE date = "september 19, 1971" AND week > 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:
How many Bronze medals did the team ranked 1 win?
### Context:
CREATE TABLE table_name_32 (bronze VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT bronze FROM table_name_32 WHERE rank = "1" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date for the MF position and player Jennison Myrie-Williams?
### Context:
CREATE TABLE table_name_50 (date_from VARCHAR, position VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT date_from FROM table_name_50 WHERE position = "mf" AND name = "jennison myrie-williams" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Goals has a Team of zamora, and Average larger than 0.89?
### Context:
CREATE TABLE table_name_92 (goals INTEGER, team VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT AVG(goals) FROM table_name_92 WHERE team = "zamora" AND average > 0.89 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Goals win an Average larger than 1?
### Context:
CREATE TABLE table_name_94 (goals VARCHAR, average INTEGER) [/INST]
### Response:
SELECT COUNT(goals) FROM table_name_94 WHERE average > 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 smallest Matches with a Goalkeeper of josé bermúdez, and Goals larger than 18?
### Context:
CREATE TABLE table_name_26 (matches INTEGER, goalkeeper VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT MIN(matches) FROM table_name_26 WHERE goalkeeper = "josé bermúdez" AND goals > 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 is the total of Matches with Goals of 18, and an Average larger than 0.55?
### Context:
CREATE TABLE table_name_30 (matches INTEGER, goals VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT SUM(matches) FROM table_name_30 WHERE goals = 18 AND average > 0.55 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest Average with Goals smaller than 34, Matches larger than 30, and a Team of cultural leonesa?
### Context:
CREATE TABLE table_name_80 (average INTEGER, team VARCHAR, goals VARCHAR, matches VARCHAR) [/INST]
### Response:
SELECT MAX(average) FROM table_name_80 WHERE goals < 34 AND matches > 30 AND team = "cultural leonesa" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which To par has a Score of 78-74-71-75=298?
### Context:
CREATE TABLE table_name_52 (to_par INTEGER, score VARCHAR) [/INST]
### Response:
SELECT AVG(to_par) FROM table_name_52 WHERE score = 78 - 74 - 71 - 75 = 298 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How much To par has a Country of united states, and a Money ($) of 90?
### Context:
CREATE TABLE table_name_42 (to_par VARCHAR, country VARCHAR, money___$__ VARCHAR) [/INST]
### Response:
SELECT COUNT(to_par) FROM table_name_42 WHERE country = "united states" AND money___$__ = 90 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 are the highest matches with £5,000 in prize money?
### Context:
CREATE TABLE table_name_77 (matches INTEGER, prize_money VARCHAR) [/INST]
### Response:
SELECT MAX(matches) FROM table_name_77 WHERE prize_money = "£5,000" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the prize money amount after match 1, with 102 new entries to the round?
### Context:
CREATE TABLE table_name_40 (prize_money VARCHAR, matches VARCHAR, new_entries_this_round VARCHAR) [/INST]
### Response:
SELECT prize_money FROM table_name_40 WHERE matches > 1 AND new_entries_this_round = "102" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place did Darren Clarke finish?
### Context:
CREATE TABLE table_name_23 (place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_23 WHERE player = "darren clarke" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Ernie Els's score?
### Context:
CREATE TABLE table_name_86 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_86 WHERE player = "ernie els" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place did Tom Lehman finish?
### Context:
CREATE TABLE table_name_29 (place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_29 WHERE player = "tom lehman" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place did the golfer that scored 68-70-69=207 finish?
### Context:
CREATE TABLE table_name_59 (place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_59 WHERE score = 68 - 70 - 69 = 207 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were the highest laps for glenn seton gregg hansford?
### Context:
CREATE TABLE table_name_1 (laps INTEGER, drivers VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_1 WHERE drivers = "glenn seton gregg hansford" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What driver had 101 laps?
### Context:
CREATE TABLE table_name_86 (drivers VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT drivers FROM table_name_86 WHERE laps = 101 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Gary Barnett who has been in 0 FA Cups plays what position?
### Context:
CREATE TABLE table_name_7 (position VARCHAR, fa_cup_apps VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_7 WHERE fa_cup_apps = "0" AND name = "gary barnett" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the maximum league cup goals when there has been 0 FA cup appearances, and MF is the position, with 1 league appearance, and smaller than 0 total goals?
### Context:
CREATE TABLE table_name_23 (league_cup_goals INTEGER, total_goals VARCHAR, league_apps VARCHAR, fa_cup_apps VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MAX(league_cup_goals) FROM table_name_23 WHERE fa_cup_apps = "0" AND position = "mf" AND league_apps = "1" AND total_goals < 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 FLT appearances for the player with less than 5 total goals, and 3 FA Cup appearances, 4 league goals, and plays MF?
### Context:
CREATE TABLE table_name_62 (flt_apps VARCHAR, league_goals VARCHAR, position VARCHAR, total_goals VARCHAR, fa_cup_apps VARCHAR) [/INST]
### Response:
SELECT flt_apps FROM table_name_62 WHERE total_goals < 5 AND fa_cup_apps = "3" AND position = "mf" AND league_goals = 4 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent when the attendance was 87,453?
### Context:
CREATE TABLE table_name_28 (opponent_number VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent_number FROM table_name_28 WHERE attendance = "87,453" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance when they had a ranking of #4?
### Context:
CREATE TABLE table_name_42 (attendance VARCHAR, rank__number VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_42 WHERE rank__number = "4" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the average Played for a draw of 5 and more than 43 points?
### Context:
CREATE TABLE table_name_68 (played INTEGER, draw VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT AVG(played) FROM table_name_68 WHERE draw = 5 AND points > 43 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 government salary of the Undersecretary with a Romanised name of Chen Wei-On, Kenneth?
### Context:
CREATE TABLE table_name_19 (govt_salary VARCHAR, romanised_name VARCHAR) [/INST]
### Response:
SELECT govt_salary FROM table_name_19 WHERE romanised_name = "chen wei-on, kenneth" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 portfolio attachment of the Undersecretary appointed at age 48 with a Chinese name of 梁鳳儀?
### Context:
CREATE TABLE table_name_47 (portfolio_attachment VARCHAR, age_at_appointment VARCHAR, chinese_name VARCHAR) [/INST]
### Response:
SELECT portfolio_attachment FROM table_name_47 WHERE age_at_appointment = 48 AND chinese_name = "梁鳳儀" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Romanised name of the Undersecretary with an education portfolio attachment?
### Context:
CREATE TABLE table_name_84 (romanised_name VARCHAR, portfolio_attachment VARCHAR) [/INST]
### Response:
SELECT romanised_name FROM table_name_84 WHERE portfolio_attachment = "education" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.