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 date when the opponent# is iowa?
### Context:
CREATE TABLE table_name_42 (date VARCHAR, opponent_number VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_42 WHERE opponent_number = "iowa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 site is memorial stadium • minneapolis, mn, and the Attendance is 53,192?
### Context:
CREATE TABLE table_name_70 (date VARCHAR, site VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_70 WHERE site = "memorial stadium • minneapolis, mn" AND attendance = "53,192" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Result is l0-13?
### Context:
CREATE TABLE table_name_59 (attendance VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_59 WHERE result = "l0-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 Site when the date is 11/11/1950?
### Context:
CREATE TABLE table_name_37 (site VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT site FROM table_name_37 WHERE date = "11/11/1950" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is *non-conference game. #rankings from ap poll .?
### Context:
CREATE TABLE table_name_65 (date VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_65 WHERE result = "*non-conference game. #rankings from ap poll ." </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round smaller than 5, and a School/Club Team of florida state?
### Context:
CREATE TABLE table_name_77 (player VARCHAR, round VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_77 WHERE round < 5 AND school_club_team = "florida state" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 School/Club Team has a Pick of 198?
### Context:
CREATE TABLE table_name_7 (school_club_team VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_7 WHERE pick = 198 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 School/Club Team of indiana, and a Pick smaller than 198?
### Context:
CREATE TABLE table_name_85 (round INTEGER, school_club_team VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_85 WHERE school_club_team = "indiana" AND pick < 198 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 School/Club Team of north carolina, and a Pick larger than 131?
### Context:
CREATE TABLE table_name_84 (round VARCHAR, school_club_team VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_84 WHERE school_club_team = "north carolina" AND pick > 131 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 School/Club Team of cal-poly slo, and a Pick smaller than 238?
### Context:
CREATE TABLE table_name_67 (round INTEGER, school_club_team VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_67 WHERE school_club_team = "cal-poly slo" AND pick < 238 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the away team with a 5 tie no?
### Context:
CREATE TABLE table_name_66 (away_team VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_66 WHERE tie_no = "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 home team with scarborough as the away team?
### Context:
CREATE TABLE table_name_50 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_50 WHERE away_team = "scarborough" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tie no. 34?
### Context:
CREATE TABLE table_name_37 (date VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_37 WHERE tie_no = "34" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Michael Del Zotto's nationality?
### Context:
CREATE TABLE table_name_54 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_54 WHERE player = "michael del zotto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 loss with points less than 7?
### Context:
CREATE TABLE table_name_16 (lost INTEGER, points INTEGER) [/INST]
### Response:
SELECT MAX(lost) FROM table_name_16 WHERE points < 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 sum for the match with a draw less than 0?
### Context:
CREATE TABLE table_name_73 (match INTEGER, draw INTEGER) [/INST]
### Response:
SELECT SUM(match) FROM table_name_73 WHERE draw < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest points for a match before 14?
### Context:
CREATE TABLE table_name_88 (points INTEGER, match INTEGER) [/INST]
### Response:
SELECT MIN(points) FROM table_name_88 WHERE match > 14 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points were there when there were less than 16 rebounds and 5 assists?
### Context:
CREATE TABLE table_name_83 (points VARCHAR, assists VARCHAR, rebounds VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_83 WHERE assists = 5 AND rebounds < 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many minutes were played when there were 18 points and the opponent was Chicago Bulls?
### Context:
CREATE TABLE table_name_55 (minutes_played VARCHAR, points VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT COUNT(minutes_played) FROM table_name_55 WHERE points = 18 AND opponent = "chicago bulls" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Mountain Range has a Region of haiti, and a Location of 18.3601°n 71.9764°w?
### Context:
CREATE TABLE table_name_82 (mountain_range VARCHAR, region VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT mountain_range FROM table_name_82 WHERE region = "haiti" AND location = "18.3601°n 71.9764°w" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Mountain Peak which has a Rank of 62?
### Context:
CREATE TABLE table_name_2 (mountain_peak VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT mountain_peak FROM table_name_2 WHERE rank = 62 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Mountain Peak has a Region of baja california, and a Location of 28.1301°n 115.2206°w?
### Context:
CREATE TABLE table_name_87 (mountain_peak VARCHAR, region VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT mountain_peak FROM table_name_87 WHERE region = "baja california" AND location = "28.1301°n 115.2206°w" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Region with a Mountain Peak of dillingham high point?
### Context:
CREATE TABLE table_name_95 (region VARCHAR, mountain_peak VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_95 WHERE mountain_peak = "dillingham high point" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was paid to the player whose score was 70-71-77-76=294?
### Context:
CREATE TABLE table_name_23 (money___ INTEGER, score VARCHAR) [/INST]
### Response:
SELECT SUM(money___) AS $__ FROM table_name_23 WHERE score = 70 - 71 - 77 - 76 = 294 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which country is Pete Cooper, who made $816, from?
### Context:
CREATE TABLE table_name_32 (country VARCHAR, money___$__ VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_32 WHERE money___$__ = 816 AND player = "pete cooper" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round of the position de player with an overall less than 84?
### Context:
CREATE TABLE table_name_51 (round INTEGER, position VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_51 WHERE position = "de" AND overall < 84 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick of the player from texas a&i with an overall less than 28?
### Context:
CREATE TABLE table_name_13 (pick INTEGER, college VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT MAX(pick) FROM table_name_13 WHERE college = "texas a&i" AND overall < 28 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round of the player from the college of baylor with a pick less than 28?
### Context:
CREATE TABLE table_name_18 (round INTEGER, college VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_18 WHERE college = "baylor" AND pick < 28 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of the pick from texas a&i college with a round greater than 1?
### Context:
CREATE TABLE table_name_3 (pick INTEGER, college VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT SUM(pick) FROM table_name_3 WHERE college = "texas a&i" AND round > 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 date was the opponent the Boston Yanks?
### Context:
CREATE TABLE table_name_44 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_44 WHERE opponent = "boston yanks" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for December 5, 1948?
### Context:
CREATE TABLE table_name_41 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_41 WHERE date = "december 5, 1948" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average point total for the nets in games before game 9 where the opponents scored less than 95?
### Context:
CREATE TABLE table_name_62 (nets_points INTEGER, game VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT AVG(nets_points) FROM table_name_62 WHERE game < 9 AND opponents < 95 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which game did the opponent score more than 103 and the record was 1-3?
### Context:
CREATE TABLE table_name_32 (game INTEGER, record VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT AVG(game) FROM table_name_32 WHERE record = "1-3" AND opponents > 103 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Game, when Date is "November 1"?
### Context:
CREATE TABLE table_name_45 (game INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_45 WHERE date = "november 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 High Rebounds, when High Assists is "Jason Kidd (13)"?
### Context:
CREATE TABLE table_name_50 (high_rebounds VARCHAR, high_assists VARCHAR) [/INST]
### Response:
SELECT high_rebounds FROM table_name_50 WHERE high_assists = "jason kidd (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 Date of the Competition with a Result of 3–0?
### Context:
CREATE TABLE table_name_75 (date VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_75 WHERE result = "3–0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Score of the Fifa World Cup 1986 Qualifying Competition?
### Context:
CREATE TABLE table_name_86 (score VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_86 WHERE competition = "fifa world cup 1986 qualifying" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Fifa World Cup 1986 Play-off Competition?
### Context:
CREATE TABLE table_name_7 (score VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_7 WHERE competition = "fifa world cup 1986 play-off" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Game number on April 12 with St. Louis Home Team?
### Context:
CREATE TABLE table_name_11 (game VARCHAR, home_team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_11 WHERE home_team = "st. louis" AND date = "april 12" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Result of the Game on April 9?
### Context:
CREATE TABLE table_name_87 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_87 WHERE date = "april 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 Game number on March 30?
### Context:
CREATE TABLE table_name_33 (game VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_33 WHERE date = "march 30" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a Result of 136-112?
### Context:
CREATE TABLE table_name_9 (game VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_9 WHERE result = "136-112" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Result of Game 3?
### Context:
CREATE TABLE table_name_16 (result VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_16 WHERE game = "game 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:
On what Date is Game 3 with Boston Road Team?
### Context:
CREATE TABLE table_name_93 (date VARCHAR, road_team VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_93 WHERE road_team = "boston" AND game = "game 3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the home team in the match against Luton Town?
### Context:
CREATE TABLE table_name_21 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_21 WHERE away_team = "luton 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 tie happened with Southampton?
### Context:
CREATE TABLE table_name_38 (tie_no VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_38 WHERE away_team = "southampton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tie resulting from Sheffield Wednesday's game?
### Context:
CREATE TABLE table_name_56 (tie_no VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_56 WHERE home_team = "sheffield wednesday" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Week has an Opponent of washington redskins, and an Attendance larger than 56,077?
### Context:
CREATE TABLE table_name_74 (week VARCHAR, opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT COUNT(week) FROM table_name_74 WHERE opponent = "washington redskins" AND attendance > 56 OFFSET 077 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance has a Date of november 19, 1961?
### Context:
CREATE TABLE table_name_61 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_61 WHERE date = "november 19, 1961" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on october 8, 1961?
### Context:
CREATE TABLE table_name_49 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_49 WHERE date = "october 8, 1961" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What league had a finish of 2nd and 3 losses?
### Context:
CREATE TABLE table_name_74 (league VARCHAR, finish VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_74 WHERE finish = "2nd" AND losses = 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 number of losses when the ties are lesser than 0?
### Context:
CREATE TABLE table_name_59 (losses VARCHAR, ties INTEGER) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_59 WHERE ties < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the losses in the NFL in the 2011 season with less than 13 wins?
### Context:
CREATE TABLE table_name_81 (losses INTEGER, wins VARCHAR, league VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT AVG(losses) FROM table_name_81 WHERE league = "nfl" AND season = 2011 AND wins < 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 highest wins for the NFL with a finish of 1st, and more than 6 losses?
### Context:
CREATE TABLE table_name_27 (wins INTEGER, losses VARCHAR, league VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT MAX(wins) FROM table_name_27 WHERE league = "nfl" AND finish = "1st" AND losses > 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 lowest number of ties in the NFL, with less than 2 losses and less than 15 wins?
### Context:
CREATE TABLE table_name_12 (ties INTEGER, wins VARCHAR, league VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT MIN(ties) FROM table_name_12 WHERE league = "nfl" AND losses < 2 AND wins < 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:
Who was the runner-up in the RR Donnelley LPGA Founders Cup?
### Context:
CREATE TABLE table_name_52 (runner_s__up VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_52 WHERE tournament = "rr donnelley lpga founders cup" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 surface on 21 june 1993?
### Context:
CREATE TABLE table_name_60 (surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_60 WHERE date = "21 june 1993" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 championship is rome and the opponent is richard krajicek?
### Context:
CREATE TABLE table_name_31 (score VARCHAR, championship VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_31 WHERE championship = "rome" AND opponent = "richard krajicek" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when the surface is clay, the outcome is winner and the championship is estoril on 15 april 1996?
### Context:
CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR, championship VARCHAR, surface VARCHAR, outcome VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_93 WHERE surface = "clay" AND outcome = "winner" AND championship = "estoril" AND date = "15 april 1996" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
who is the opponent on 18 january 1993?
### Context:
CREATE TABLE table_name_23 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_23 WHERE date = "18 january 1993" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outcome is winner against yevgeny kafelnikov?
### Context:
CREATE TABLE table_name_51 (score VARCHAR, outcome VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_51 WHERE outcome = "winner" AND opponent = "yevgeny kafelnikov" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the highest number of attendance in a week before 8 and game on October 25, 1981?
### Context:
CREATE TABLE table_name_25 (attendance INTEGER, date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_25 WHERE date = "october 25, 1981" AND week < 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:
On what date did the team play againt the New Orleans Saints?
### Context:
CREATE TABLE table_name_6 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_6 WHERE opponent = "new orleans saints" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average number of attendance for the game on November 29, 1981 played after week 13?
### Context:
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_40 WHERE date = "november 29, 1981" AND week > 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which model has a frequency of 750 mhz and a socket of bga2μpga2?
### Context:
CREATE TABLE table_name_19 (model_number VARCHAR, frequency VARCHAR, socket VARCHAR) [/INST]
### Response:
SELECT model_number FROM table_name_19 WHERE frequency = "750 mhz" AND socket = "bga2μpga2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number uses standard voltage socket?
### Context:
CREATE TABLE table_name_48 (model_number VARCHAR, socket VARCHAR) [/INST]
### Response:
SELECT model_number FROM table_name_48 WHERE socket = "standard voltage" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round is sf?
### Context:
CREATE TABLE table_name_52 (date VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_52 WHERE round = "sf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round is qf?
### Context:
CREATE TABLE table_name_80 (date VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_80 WHERE round = "qf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance has an Opponent of new york giants, and a Week smaller than 5?
### Context:
CREATE TABLE table_name_88 (attendance INTEGER, opponent VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_88 WHERE opponent = "new york giants" AND week < 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 Week has an Opponent of pittsburgh steelers, and an Attendance larger than 47,727?
### Context:
CREATE TABLE table_name_69 (week INTEGER, opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_69 WHERE opponent = "pittsburgh steelers" AND attendance > 47 OFFSET 727 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance has a Date of september 29, 1968, and a Week smaller than 3?
### Context:
CREATE TABLE table_name_17 (attendance INTEGER, date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_17 WHERE date = "september 29, 1968" AND week < 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:
When did the party elected in jun. 1959 enter office?
### Context:
CREATE TABLE table_name_43 (entered_office VARCHAR, election VARCHAR) [/INST]
### Response:
SELECT entered_office FROM table_name_43 WHERE election = "jun. 1959" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year Named, when Longitude is 227.5E?
### Context:
CREATE TABLE table_name_42 (year_named VARCHAR, longitude VARCHAR) [/INST]
### Response:
SELECT year_named FROM table_name_42 WHERE longitude = "227.5e" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Named, when Latitude is 37.9N, and when Diameter (km) is greater than 76?
### Context:
CREATE TABLE table_name_70 (year_named INTEGER, latitude VARCHAR, diameter__km_ VARCHAR) [/INST]
### Response:
SELECT AVG(year_named) FROM table_name_70 WHERE latitude = "37.9n" AND diameter__km_ > 76 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Longitude, when Name is Raskova Paterae?
### Context:
CREATE TABLE table_name_61 (longitude VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT longitude FROM table_name_61 WHERE name = "raskova paterae" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 song of artist liam reilly?
### Context:
CREATE TABLE table_name_8 (song VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT song FROM table_name_8 WHERE artist = "liam reilly" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of points for grace dunne with a draw over 5?
### Context:
CREATE TABLE table_name_93 (points VARCHAR, artist VARCHAR, draw VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_93 WHERE artist = "grace dunne" AND draw > 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the highest draw with over 60 points for paul duffy?
### Context:
CREATE TABLE table_name_40 (draw INTEGER, points VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT MAX(draw) FROM table_name_40 WHERE points > 60 AND artist = "paul duffy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the highest grid for a time/retired of +19.1 secs?
### Context:
CREATE TABLE table_name_50 (grid INTEGER, time_retired VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_50 WHERE time_retired = "+19.1 secs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Population of the New Bandon Parish with an Area km 2 larger than 326.76?
### Context:
CREATE TABLE table_name_97 (population INTEGER, area_km_2 VARCHAR, official_name VARCHAR) [/INST]
### Response:
SELECT MAX(population) FROM table_name_97 WHERE area_km_2 > 326.76 AND official_name = "new bandon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Area of the Allardville Parish with a Population smaller than 2,151?
### Context:
CREATE TABLE table_name_10 (area_km_2 INTEGER, official_name VARCHAR, population VARCHAR) [/INST]
### Response:
SELECT SUM(area_km_2) FROM table_name_10 WHERE official_name = "allardville" AND population < 2 OFFSET 151 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the player with a 75-68-70=213 score?
### Context:
CREATE TABLE table_name_79 (player VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_79 WHERE score = 75 - 68 - 70 = 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 is the place of Australia?
### Context:
CREATE TABLE table_name_46 (place VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_46 WHERE country = "australia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the place of player tom watson?
### Context:
CREATE TABLE table_name_25 (place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_25 WHERE player = "tom watson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the player with a +3 to par and a 74-71-68=213 score?
### Context:
CREATE TABLE table_name_42 (player VARCHAR, to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_42 WHERE to_par = "+3" AND score = 74 - 71 - 68 = 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 is player raymond floyd's country?
### Context:
CREATE TABLE table_name_64 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_64 WHERE player = "raymond floyd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the player from the United States with a 75-70-68=211 score?
### Context:
CREATE TABLE table_name_94 (player VARCHAR, country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_94 WHERE country = "united states" AND score = 75 - 70 - 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 is the length in feet when the length in meters is 64.2?
### Context:
CREATE TABLE table_name_47 (length___ft__ VARCHAR, length___m__ VARCHAR) [/INST]
### Response:
SELECT length___ft__ FROM table_name_47 WHERE length___m__ = "64.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:
Where is the longest arch with a length in meters of 64.2?
### Context:
CREATE TABLE table_name_29 (location VARCHAR, length___m__ VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_29 WHERE length___m__ = "64.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:
Where is the longest arch with a length in meters of 63?
### Context:
CREATE TABLE table_name_47 (location VARCHAR, length___m__ VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_47 WHERE length___m__ = "63" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the rank of the arch with a length in meters of 75/55?
### Context:
CREATE TABLE table_name_29 (rank VARCHAR, length___m__ VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_29 WHERE length___m__ = "75/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 length in feet of the Jiangzhou arch?
### Context:
CREATE TABLE table_name_7 (length___ft__ VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT length___ft__ FROM table_name_7 WHERE name = "jiangzhou arch" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the number of the crowd when the Wollongong Hawks were the home team?
### Context:
CREATE TABLE table_name_53 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_53 WHERE home_team = "wollongong hawks" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crowd size for the game with a score of 101-105?
### Context:
CREATE TABLE table_name_13 (crowd VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_13 WHERE score = "101-105" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average crowd size for the game when the Gold Coast Blaze was the home team?
### Context:
CREATE TABLE table_name_77 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_77 WHERE home_team = "gold coast blaze" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 City of License, when Frequency MHz is less than 102.5?
### Context:
CREATE TABLE table_name_8 (city_of_license VARCHAR, frequency_mhz INTEGER) [/INST]
### Response:
SELECT city_of_license FROM table_name_8 WHERE frequency_mhz < 102.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 Call Sign, when ERP W is greater than 50?
### Context:
CREATE TABLE table_name_56 (call_sign VARCHAR, erp_w INTEGER) [/INST]
### Response:
SELECT call_sign FROM table_name_56 WHERE erp_w > 50 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 City of License, when ERP W is greater than 3, and when Call Sign is K218DZ?
### Context:
CREATE TABLE table_name_42 (city_of_license VARCHAR, erp_w VARCHAR, call_sign VARCHAR) [/INST]
### Response:
SELECT city_of_license FROM table_name_42 WHERE erp_w > 3 AND call_sign = "k218dz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Call Sign, when City of License is Brownfield, Texas?
### Context:
CREATE TABLE table_name_51 (call_sign VARCHAR, city_of_license VARCHAR) [/INST]
### Response:
SELECT call_sign FROM table_name_51 WHERE city_of_license = "brownfield, texas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ERP W, when Call Sign is K216GA?
### Context:
CREATE TABLE table_name_49 (erp_w INTEGER, call_sign VARCHAR) [/INST]
### Response:
SELECT SUM(erp_w) FROM table_name_49 WHERE call_sign = "k216ga" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.