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 Album has a Year that's larger than 2001?
### Context:
CREATE TABLE table_name_39 (album VARCHAR, year INTEGER) [/INST]
### Response:
SELECT album FROM table_name_39 WHERE year > 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 position for bruce taylor?
### Context:
CREATE TABLE table_name_6 (position INTEGER, pilot VARCHAR) [/INST]
### Response:
SELECT MIN(position) FROM table_name_6 WHERE pilot = "bruce taylor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pilot has a position above 5 and a speed of 118.8km/h?
### Context:
CREATE TABLE table_name_98 (pilot VARCHAR, position VARCHAR, speed VARCHAR) [/INST]
### Response:
SELECT pilot FROM table_name_98 WHERE position > 5 AND speed = "118.8km/h" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Erwin Sommer's average position?
### Context:
CREATE TABLE table_name_18 (position INTEGER, pilot VARCHAR) [/INST]
### Response:
SELECT AVG(position) FROM table_name_18 WHERE pilot = "erwin sommer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank of the day with a gross of $38,916 and more than 6 screens?
### Context:
CREATE TABLE table_name_27 (rank INTEGER, gross VARCHAR, screens VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_27 WHERE gross = "$38,916" AND screens > 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 gross in the United Kingdom?
### Context:
CREATE TABLE table_name_33 (gross VARCHAR, territory VARCHAR) [/INST]
### Response:
SELECT gross FROM table_name_33 WHERE territory = "united kingdom" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 territory with 17 screens?
### Context:
CREATE TABLE table_name_91 (territory VARCHAR, screens VARCHAR) [/INST]
### Response:
SELECT territory FROM table_name_91 WHERE screens = 17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest number of Golds that has Participants smaller than 14, and Rank of 1, and Total larger than 1?
### Context:
CREATE TABLE table_name_1 (gold INTEGER, total VARCHAR, participants VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(gold) FROM table_name_1 WHERE participants < 14 AND rank = 1 AND total > 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:
On what date was the record 39–54?
### Context:
CREATE TABLE table_name_69 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_69 WHERE record = "39–54" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on July 1?
### Context:
CREATE TABLE table_name_58 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_58 WHERE date = "july 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 total matches with less than 1 win and a position higher than 8?
### Context:
CREATE TABLE table_name_13 (matches INTEGER, wins VARCHAR, pos VARCHAR) [/INST]
### Response:
SELECT SUM(matches) FROM table_name_13 WHERE wins < 1 AND 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:
Which Liberal leader has Seats won smaller than 100, and Seats in House of 215, and a % of popular vote of 43.1%?
### Context:
CREATE TABLE table_name_86 (liberal_leader VARCHAR, _percentage_of_popular_vote VARCHAR, seats_won VARCHAR, seats_in_house VARCHAR) [/INST]
### Response:
SELECT liberal_leader FROM table_name_86 WHERE seats_won < 100 AND seats_in_house = 215 AND _percentage_of_popular_vote = "43.1%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Popular vote has a Liberal leader of king, and Seats won larger than 116, and a Year of 1921?
### Context:
CREATE TABLE table_name_32 (popular_vote INTEGER, year VARCHAR, liberal_leader VARCHAR, seats_won VARCHAR) [/INST]
### Response:
SELECT AVG(popular_vote) FROM table_name_32 WHERE liberal_leader = "king" AND seats_won > 116 AND year = "1921" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Liberal candidates have a Liberal leader of pearson, and a % of popular vote of 40.2%, and Seats won smaller than 131?
### Context:
CREATE TABLE table_name_94 (liberal_candidates VARCHAR, seats_won VARCHAR, liberal_leader VARCHAR, _percentage_of_popular_vote VARCHAR) [/INST]
### Response:
SELECT COUNT(liberal_candidates) FROM table_name_94 WHERE liberal_leader = "pearson" AND _percentage_of_popular_vote = "40.2%" AND seats_won < 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:
What is the score during the 2006-2007 year?
### Context:
CREATE TABLE table_name_81 (score VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_81 WHERE year = "2006-2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who were the winners in 2010-2011?
### Context:
CREATE TABLE table_name_4 (winners VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT winners FROM table_name_4 WHERE year = "2010-2011" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the match with UTC as the runner-up and Saint-Gaudens Bears as the winners?
### Context:
CREATE TABLE table_name_77 (score VARCHAR, runner_up VARCHAR, winners VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_77 WHERE runner_up = "utc" AND winners = "saint-gaudens bears" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which year had UTC as the runner-up and Saint-Gaudens Bears as the winners?
### Context:
CREATE TABLE table_name_3 (year VARCHAR, runner_up VARCHAR, winners VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_3 WHERE runner_up = "utc" AND winners = "saint-gaudens bears" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the match with a score of 33-22?
### Context:
CREATE TABLE table_name_45 (venue VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_45 WHERE score = "33-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:
Who had the highest assists during the game on February 22?
### Context:
CREATE TABLE table_name_28 (high_assists VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_name_28 WHERE date = "february 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 team did the Heat play against at the TD Waterhouse Centre?
### Context:
CREATE TABLE table_name_55 (team VARCHAR, location_attendance VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_55 WHERE location_attendance = "td waterhouse centre" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game against Toronto which had a game number higher than 53?
### Context:
CREATE TABLE table_name_68 (date VARCHAR, game VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_68 WHERE game > 53 AND team = "toronto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that was played with the Baltimore Colts at home?
### Context:
CREATE TABLE table_name_94 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_94 WHERE home_team = "baltimore colts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 long did the game go that was played with the Houston Oilers at home?
### Context:
CREATE TABLE table_name_31 (length_of_game VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT length_of_game FROM table_name_31 WHERE home_team = "houston oilers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of the game that lasted 75:43?
### Context:
CREATE TABLE table_name_93 (date VARCHAR, length_of_game VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_93 WHERE length_of_game = "75: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:
Who is the away team for the game played on December 24, 1977?
### Context:
CREATE TABLE table_name_78 (away_team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_78 WHERE date = "december 24, 1977" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 length of the game where the Baltimore Colts were at home?
### Context:
CREATE TABLE table_name_95 (length_of_game VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT length_of_game FROM table_name_95 WHERE home_team = "baltimore colts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of laps for 16 grids?
### Context:
CREATE TABLE table_name_36 (laps INTEGER, grid VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_36 WHERE grid = 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:
Who was the rider for laps less than 23 with grid greater than 21 that had a time of +1 lap?
### Context:
CREATE TABLE table_name_71 (rider VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_71 WHERE laps < 23 AND grid > 21 AND time_retired = "+1 lap" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid for someone with a time/retire of +44.831
### Context:
CREATE TABLE table_name_26 (grid VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_26 WHERE time_retired = "+44.831" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 smallest grid for Time/Retired of +22.687?
### Context:
CREATE TABLE table_name_52 (grid INTEGER, time_retired VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_52 WHERE time_retired = "+22.687" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 recoupa sudaamericana 1996 result of team flamengo, which did not qualify for the copa conmebol 1996?
### Context:
CREATE TABLE table_name_10 (recopa_sudamericana_1996 VARCHAR, copa_conmebol_1996 VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT recopa_sudamericana_1996 FROM table_name_10 WHERE copa_conmebol_1996 = "did not qualify" AND team = "flamengo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 copa libertadores 1996 result of the team with a copa conmebol 1996 result of quarterfinals?
### Context:
CREATE TABLE table_name_84 (copa_libertadores_1996 VARCHAR, copa_conmebol_1996 VARCHAR) [/INST]
### Response:
SELECT copa_libertadores_1996 FROM table_name_84 WHERE copa_conmebol_1996 = "quarterfinals" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 copa libertadores 1996 of team corinthians?
### Context:
CREATE TABLE table_name_32 (copa_libertadores_1996 VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT copa_libertadores_1996 FROM table_name_32 WHERE team = "corinthians" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 copa conmebol 1996 result of the team with a recopa sudamericana 1996 result of champions?
### Context:
CREATE TABLE table_name_49 (copa_conmebol_1996 VARCHAR, recopa_sudamericana_1996 VARCHAR) [/INST]
### Response:
SELECT copa_conmebol_1996 FROM table_name_49 WHERE recopa_sudamericana_1996 = "champions" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 recoupa sudamericana 1996 of the team with a copa libertadores 1996 result of the round of 16?
### Context:
CREATE TABLE table_name_64 (recopa_sudamericana_1996 VARCHAR, copa_libertadores_1996 VARCHAR) [/INST]
### Response:
SELECT recopa_sudamericana_1996 FROM table_name_64 WHERE copa_libertadores_1996 = "round of 16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the recoupa sudamericana 1996 result of team corinthians?
### Context:
CREATE TABLE table_name_7 (recopa_sudamericana_1996 VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT recopa_sudamericana_1996 FROM table_name_7 WHERE team = "corinthians" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What season has 195 runs as a margin?
### Context:
CREATE TABLE table_name_90 (season VARCHAR, margin VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_90 WHERE margin = "195 runs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What season has 2 as a rank?
### Context:
CREATE TABLE table_name_18 (season VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_18 WHERE rank = "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 venue has 2 as the rank?
### Context:
CREATE TABLE table_name_75 (venue VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_75 WHERE rank = "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 opponent has 2011/12 as the season?
### Context:
CREATE TABLE table_name_79 (opponent VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_79 WHERE season = "2011/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 length of the version from 2003?
### Context:
CREATE TABLE table_name_3 (length VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT length FROM table_name_3 WHERE year = 2003 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who remixed the version with a length of 4:22?
### Context:
CREATE TABLE table_name_67 (remixed_by VARCHAR, length VARCHAR) [/INST]
### Response:
SELECT remixed_by FROM table_name_67 WHERE length = "4: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 length of the UK remix version?
### Context:
CREATE TABLE table_name_68 (length VARCHAR, version VARCHAR) [/INST]
### Response:
SELECT length FROM table_name_68 WHERE version = "uk remix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year was the version with a remixes album?
### Context:
CREATE TABLE table_name_76 (year VARCHAR, album VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_76 WHERE album = "remixes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many losses did the team, Sturt, have when they had more than 0 wins?
### Context:
CREATE TABLE table_name_85 (losses VARCHAR, team VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_85 WHERE team = "sturt" AND wins > 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 average number of draws for the team that had more than 0 wins?
### Context:
CREATE TABLE table_name_13 (draws INTEGER, wins INTEGER) [/INST]
### Response:
SELECT AVG(draws) FROM table_name_13 WHERE wins > 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 least amount of losses for the team that had more than 0 draws during the seasons earlier than 1926?
### Context:
CREATE TABLE table_name_13 (losses INTEGER, draws VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT MIN(losses) FROM table_name_13 WHERE draws > 0 AND season < 1926 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of wins for the team, Central District, who had less than 0 draws and took place during a season before 1995?
### Context:
CREATE TABLE table_name_63 (wins INTEGER, draws VARCHAR, season VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT MAX(wins) FROM table_name_63 WHERE season < 1995 AND team = "central district" AND draws < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of wins before the season in 1906 where there were 0 draws?
### Context:
CREATE TABLE table_name_72 (wins INTEGER, season VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT AVG(wins) FROM table_name_72 WHERE season < 1906 AND draws < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the Opposing Pitcher when Team is phillies, Location is pittsburgh, and Inning is 8th?
### Context:
CREATE TABLE table_name_37 (opposing_pitcher VARCHAR, inning VARCHAR, team VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT opposing_pitcher FROM table_name_37 WHERE team = "phillies" AND location = "pittsburgh" AND inning = "8th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Game where Inning is 6th, and the Opposing Pitcher is cliff curtis?
### Context:
CREATE TABLE table_name_14 (game INTEGER, inning VARCHAR, opposing_pitcher VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_14 WHERE inning = "6th" AND opposing_pitcher = "cliff curtis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was Date that where Triple was smaller than 26, and Game was 25?
### Context:
CREATE TABLE table_name_84 (date VARCHAR, triple VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_84 WHERE triple < 26 AND game = 25 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Gold is the lowest one that has a Bronze of 14, and a Total larger than 42?
### Context:
CREATE TABLE table_name_47 (gold INTEGER, bronze VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MIN(gold) FROM table_name_47 WHERE bronze = 14 AND total > 42 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Bronze is the lowest one that has a Nation of total, and a Gold smaller than 14?
### Context:
CREATE TABLE table_name_38 (bronze INTEGER, nation VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_38 WHERE nation = "total" AND gold < 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 much Total has a Nation of kazakhstan (kaz), and a Gold larger than 0?
### Context:
CREATE TABLE table_name_16 (total VARCHAR, nation VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_16 WHERE nation = "kazakhstan (kaz)" AND gold > 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 Total is the highest one that has a Rank of 1, and a Gold larger than 11?
### Context:
CREATE TABLE table_name_24 (total INTEGER, rank VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT MAX(total) FROM table_name_24 WHERE rank = "1" AND gold > 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:
Who finished 3rd in Oslo?
### Context:
CREATE TABLE table_name_74 (third VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT third FROM table_name_74 WHERE venue = "oslo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 November 22, what were the results of the friendly type game?
### Context:
CREATE TABLE table_name_99 (results¹ VARCHAR, type_of_game VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT results¹ FROM table_name_99 WHERE type_of_game = "friendly" AND date = "november 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:
On October 8, what city was the game played?
### Context:
CREATE TABLE table_name_82 (city VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_82 WHERE date = "october 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 June 29, who was the opponent?
### Context:
CREATE TABLE table_name_96 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_96 WHERE date = "june 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 date had an opponent of Sweden and a friendly type game?
### Context:
CREATE TABLE table_name_44 (date VARCHAR, type_of_game VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_44 WHERE type_of_game = "friendly" AND opponent = "sweden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were the results on September 7?
### Context:
CREATE TABLE table_name_31 (results¹ VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT results¹ FROM table_name_31 WHERE date = "september 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 Winning team on january 28, 2006?
### Context:
CREATE TABLE table_name_35 (winning_team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT winning_team FROM table_name_35 WHERE date = "january 28, 2006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Series has a Winning team of iowa state and a Sport of w basketball?
### Context:
CREATE TABLE table_name_54 (series VARCHAR, winning_team VARCHAR, sport VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_54 WHERE winning_team = "iowa state" AND sport = "w basketball" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Series has a Site of ames on september 10, 2005?
### Context:
CREATE TABLE table_name_90 (series VARCHAR, site VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_90 WHERE site = "ames" AND date = "september 10, 2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Series has a Site of ames and a Sport of w gymnastics?
### Context:
CREATE TABLE table_name_13 (series VARCHAR, site VARCHAR, sport VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_13 WHERE site = "ames" AND sport = "w gymnastics" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 port is on march 17, 2006 and has a Winning team of iowa state?
### Context:
CREATE TABLE table_name_70 (sport VARCHAR, date VARCHAR, winning_team VARCHAR) [/INST]
### Response:
SELECT sport FROM table_name_70 WHERE date = "march 17, 2006" AND winning_team = "iowa 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 Site has a Date of march 17, 2006 and an iowa state Winning team?
### Context:
CREATE TABLE table_name_40 (site VARCHAR, date VARCHAR, winning_team VARCHAR) [/INST]
### Response:
SELECT site FROM table_name_40 WHERE date = "march 17, 2006" AND winning_team = "iowa 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:
Who was the opponent of the game before week 11 on October 31, 1976?
### Context:
CREATE TABLE table_name_97 (opponent VARCHAR, week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_97 WHERE week < 11 AND date = "october 31, 1976" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance of the game on week 9?
### Context:
CREATE TABLE table_name_68 (attendance INTEGER, week VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_68 WHERE week = 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:
When is the last episode air date for season 3?
### Context:
CREATE TABLE table_name_2 (last_air_date VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT last_air_date FROM table_name_2 WHERE season = 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which season had its last episode air on March 11, 2001?
### Context:
CREATE TABLE table_name_43 (season VARCHAR, last_air_date VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_43 WHERE last_air_date = "march 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 games have more than 1 draw?
### Context:
CREATE TABLE table_name_22 (games INTEGER, drawn INTEGER) [/INST]
### Response:
SELECT AVG(games) FROM table_name_22 WHERE drawn > 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What game is the lowest with 1 draw and less than 7 points?
### Context:
CREATE TABLE table_name_43 (games INTEGER, drawn VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MIN(games) FROM table_name_43 WHERE drawn = 1 AND 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:
Manager of art griggs had what lowest year?
### Context:
CREATE TABLE table_name_86 (year INTEGER, manager VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_86 WHERE manager = "art griggs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Manager of spencer abbott, and a Year of 1919 involves what playoffs?
### Context:
CREATE TABLE table_name_78 (playoffs VARCHAR, manager VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT playoffs FROM table_name_78 WHERE manager = "spencer abbott" AND year = 1919 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Manager of marty berghammer / nick allen is what year?
### Context:
CREATE TABLE table_name_91 (year VARCHAR, manager VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_91 WHERE manager = "marty berghammer / nick allen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Manager of lyman lamb / marty berghammer is in what league?
### Context:
CREATE TABLE table_name_59 (league VARCHAR, manager VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_59 WHERE manager = "lyman lamb / marty berghammer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Manager of marty berghammer, and a Finish of 1st involved what lowest year?
### Context:
CREATE TABLE table_name_59 (year INTEGER, manager VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_59 WHERE manager = "marty berghammer" AND finish = "1st" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Playoffs of league champs, and a Record of 77-63 is in what league?
### Context:
CREATE TABLE table_name_63 (league VARCHAR, playoffs VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_63 WHERE playoffs = "league champs" AND record = "77-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:
Name the 2005 with 2007 of sf
### Context:
CREATE TABLE table_name_16 (Id VARCHAR) [/INST]
### Response:
SELECT 2005 FROM table_name_16 WHERE 2007 = "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:
Name the 2006 with 2008 of 1r and 2004 of 1r
### Context:
CREATE TABLE table_name_22 (Id VARCHAR) [/INST]
### Response:
SELECT 2006 FROM table_name_22 WHERE 2008 = "1r" AND 2004 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the 2011 with 2002 of 1r and 2009 of a
### Context:
CREATE TABLE table_name_9 (Id VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_9 WHERE 2002 = "1r" AND 2009 = "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:
Name the 1999 with 2011 of 2r
### Context:
CREATE TABLE table_name_3 (Id VARCHAR) [/INST]
### Response:
SELECT 1999 FROM table_name_3 WHERE 2011 = "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:
Name the 2008 with 1998 of a and 2002 of 1r with 2004 of 2r
### Context:
CREATE TABLE table_name_88 (Id VARCHAR) [/INST]
### Response:
SELECT 2008 FROM table_name_88 WHERE 1998 = "a" AND 2002 = "1r" AND 2004 = "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:
Name the 2001 with 2007 of sf
### Context:
CREATE TABLE table_name_2 (Id VARCHAR) [/INST]
### Response:
SELECT 2001 FROM table_name_2 WHERE 2007 = "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:
Which school year was the Class AAA dalhart and the class AAAAA edinburg?
### Context:
CREATE TABLE table_name_73 (school_year VARCHAR, class_aAA VARCHAR, dalhart VARCHAR, class_aAAAA VARCHAR, edinburg VARCHAR) [/INST]
### Response:
SELECT school_year FROM table_name_73 WHERE class_aAA = dalhart AND class_aAAAA = edinburg </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Class A is the school year 1987-88?
### Context:
CREATE TABLE table_name_24 (class_a VARCHAR, school_year VARCHAR) [/INST]
### Response:
SELECT class_a FROM table_name_24 WHERE school_year = "1987-88" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Class AAAAA when the Class AAA is Gonzales?
### Context:
CREATE TABLE table_name_28 (class_aAAA VARCHAR, class_aAA VARCHAR, gonzales VARCHAR) [/INST]
### Response:
SELECT class_aAAA FROM table_name_28 WHERE class_aAA = gonzales </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 less than 35 points?
### Context:
CREATE TABLE table_name_78 (team VARCHAR, points INTEGER) [/INST]
### Response:
SELECT team FROM table_name_78 WHERE points < 35 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Position has a Team of criciúma, and a Drawn larger than 8?
### Context:
CREATE TABLE table_name_80 (position INTEGER, team VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT AVG(position) FROM table_name_80 WHERE team = "criciúma" AND drawn > 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Drawn has Points smaller than 46, and a Position smaller than 20, and a Lost smaller than 19, and an Against of 56?
### Context:
CREATE TABLE table_name_7 (drawn VARCHAR, against VARCHAR, lost VARCHAR, points VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT drawn FROM table_name_7 WHERE points < 46 AND position < 20 AND lost < 19 AND against = 56 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Played has a Lost larger than 14, and a Drawn of 10, and Points larger than 46?
### Context:
CREATE TABLE table_name_97 (played INTEGER, points VARCHAR, lost VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT AVG(played) FROM table_name_97 WHERE lost > 14 AND drawn = 10 AND points > 46 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What score has devin brown (24) as the leading scorer?
### Context:
CREATE TABLE table_name_36 (score VARCHAR, leading_scorer VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_36 WHERE leading_scorer = "devin brown (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:
Which height, in meters, has 36 floors?
### Context:
CREATE TABLE table_name_93 (height_ft___m__ VARCHAR, floors VARCHAR) [/INST]
### Response:
SELECT height_ft___m__ FROM table_name_93 WHERE floors = 36 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Floors is the highest one that has a Name of one indiana square?
### Context:
CREATE TABLE table_name_84 (floors INTEGER, name VARCHAR) [/INST]
### Response:
SELECT MAX(floors) FROM table_name_84 WHERE name = "one indiana square" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tall is the Street address of 07.0 200 east washington street?
### Context:
CREATE TABLE table_name_10 (height_ft___m__ VARCHAR, street_address VARCHAR) [/INST]
### Response:
SELECT height_ft___m__ FROM table_name_10 WHERE street_address = "07.0 200 east washington street" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of the game where the indians record was 37-44?
### Context:
CREATE TABLE table_name_95 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_95 WHERE record = "37-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 city is Garfield County Museum located in?
### Context:
CREATE TABLE table_name_39 (town_city VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT town_city FROM table_name_39 WHERE name = "garfield county museum" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.