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 venue features hawthorn as the away team?
### Context:
CREATE TABLE table_name_64 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_64 WHERE away_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 cop apps in the season with fewer than 12 league apps?
### Context:
CREATE TABLE table_name_48 (cup_apps INTEGER, league_apps INTEGER) [/INST]
### Response:
SELECT SUM(cup_apps) FROM table_name_48 WHERE league_apps < 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 season saw 6 cup apps and 5 cup goals?
### Context:
CREATE TABLE table_name_87 (season VARCHAR, cup_apps VARCHAR, cup_goals VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_87 WHERE cup_apps = 6 AND cup_goals = 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:
How many league apps in the season with more than 2 cup goals and more than 6 cup apps?
### Context:
CREATE TABLE table_name_22 (league_apps INTEGER, cup_goals VARCHAR, cup_apps VARCHAR) [/INST]
### Response:
SELECT SUM(league_apps) FROM table_name_22 WHERE cup_goals > 2 AND cup_apps > 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many cup goals for the season with more than 34 league apps?
### Context:
CREATE TABLE table_name_9 (cup_goals INTEGER, league_apps INTEGER) [/INST]
### Response:
SELECT AVG(cup_goals) FROM table_name_9 WHERE league_apps > 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:
How many cup goals in the season with more than 5 league apps, 1 cup apps and fewer than 4 league goals?
### Context:
CREATE TABLE table_name_78 (cup_goals INTEGER, league_goals VARCHAR, league_apps VARCHAR, cup_apps VARCHAR) [/INST]
### Response:
SELECT SUM(cup_goals) FROM table_name_78 WHERE league_apps > 5 AND cup_apps = 1 AND league_goals < 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many cup apps for the season where there are more than 10 league goals and 23 league apps?
### Context:
CREATE TABLE table_name_17 (cup_apps VARCHAR, league_goals VARCHAR, league_apps VARCHAR) [/INST]
### Response:
SELECT cup_apps FROM table_name_17 WHERE league_goals > 10 AND league_apps = 23 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which route has a Date of 2 july?
### Context:
CREATE TABLE table_name_12 (route VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT route FROM table_name_12 WHERE date = "2 july" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 length has a Stage of 9?
### Context:
CREATE TABLE table_name_37 (length VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT length FROM table_name_37 WHERE stage = "9" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which date has a Terrain of plain stage, and a Stage of 4?
### Context:
CREATE TABLE table_name_34 (date VARCHAR, terrain VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_34 WHERE terrain = "plain stage" AND stage = "4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score for Fitzroy when they are the home team?
### Context:
CREATE TABLE table_name_53 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_53 WHERE home_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest crowd for a game when Melbourne is the home team?
### Context:
CREATE TABLE table_name_38 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_38 WHERE home_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 drafted the player from Michigan after 2010?
### Context:
CREATE TABLE table_name_44 (drafting_team VARCHAR, graduated VARCHAR, college_prior VARCHAR) [/INST]
### Response:
SELECT drafting_team FROM table_name_44 WHERE graduated > 2010 AND college_prior = "michigan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the player from who graduated from Michigan after 2010?
### Context:
CREATE TABLE table_name_32 (home_town VARCHAR, graduated VARCHAR, college_prior VARCHAR) [/INST]
### Response:
SELECT home_town FROM table_name_32 WHERE graduated > 2010 AND college_prior = "michigan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
From what town was Steve Zakuani?
### Context:
CREATE TABLE table_name_7 (home_town VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT home_town FROM table_name_7 WHERE player = "steve zakuani" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Omar Gonzalez graduate?
### Context:
CREATE TABLE table_name_94 (graduated INTEGER, player VARCHAR) [/INST]
### Response:
SELECT SUM(graduated) FROM table_name_94 WHERE player = "omar gonzalez" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 university hosted in Long Beach?
### Context:
CREATE TABLE table_name_12 (host VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT host FROM table_name_12 WHERE city = "long beach" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that Saint Joseph's University hosted at?
### Context:
CREATE TABLE table_name_38 (venue VARCHAR, host VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_38 WHERE host = "saint joseph's university" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city is Hayman Hall (Tom Gola Arena) located?
### Context:
CREATE TABLE table_name_84 (city VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_84 WHERE venue = "hayman hall (tom gola arena)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue is in the city of Villanova?
### Context:
CREATE TABLE table_name_3 (venue VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_3 WHERE city = "villanova" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which date did Ger Loughnane from Team Clare have a match?
### Context:
CREATE TABLE table_name_88 (date VARCHAR, team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_88 WHERE team = "clare" AND player = "ger loughnane" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opposed Tipperary in the Munster Final game?
### Context:
CREATE TABLE table_name_98 (team VARCHAR, opposition VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_98 WHERE opposition = "tipperary" AND game = "munster final" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Limerick play in the All-Ireland Final game?
### Context:
CREATE TABLE table_name_38 (date VARCHAR, opposition VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_38 WHERE opposition = "limerick" AND game = "all-ireland final" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opposition in the game on July 29?
### Context:
CREATE TABLE table_name_22 (opposition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opposition FROM table_name_22 WHERE date = "july 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 day did the team play week 13?
### Context:
CREATE TABLE table_name_87 (date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_87 WHERE 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:
What was Bye's opponent's attendance?
### Context:
CREATE TABLE table_name_85 (attendance VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_85 WHERE opponent = "bye" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent, before Week 10, had an attendance of 63,672?
### Context:
CREATE TABLE table_name_89 (opponent VARCHAR, week VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_89 WHERE week < 10 AND attendance = "63,672" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had an attendance of 70,225
### Context:
CREATE TABLE table_name_27 (week INTEGER, attendance VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_27 WHERE attendance = "70,225" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 people injured at incidents located at Rohtas, Bihar where fewer than 13 were killed?
### Context:
CREATE TABLE table_name_84 (injured INTEGER, place VARCHAR, killed VARCHAR) [/INST]
### Response:
SELECT MAX(injured) FROM table_name_84 WHERE place = "rohtas, bihar" AND killed < 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 was the highest number of people injured in incidents in Vaishali, Bihar?
### Context:
CREATE TABLE table_name_14 (injured INTEGER, place VARCHAR) [/INST]
### Response:
SELECT MAX(injured) FROM table_name_14 WHERE place = "vaishali, bihar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 people were in the crowd at Victoria Park?
### Context:
CREATE TABLE table_name_97 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_97 WHERE venue = "victoria park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the away team from Melbourne score?
### Context:
CREATE TABLE table_name_40 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_40 WHERE away_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the home team from Carlton play on?
### Context:
CREATE TABLE table_name_11 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_11 WHERE home_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manager of the St. Johnstone club?
### Context:
CREATE TABLE table_name_53 (manager VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT manager FROM table_name_53 WHERE club = "st. johnstone" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manager of the Stenhousemuir club?
### Context:
CREATE TABLE table_name_16 (manager VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT manager FROM table_name_16 WHERE club = "stenhousemuir" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was home team when south Melbourne was the away team?
### Context:
CREATE TABLE table_name_88 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_88 WHERE away_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team score when the home team was Carlton?
### Context:
CREATE TABLE table_name_94 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_94 WHERE home_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date of the bye week 11?
### Context:
CREATE TABLE table_name_38 (date VARCHAR, attendance VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_38 WHERE attendance = "bye" AND week = 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:
Where did Essendon play as the away team?
### Context:
CREATE TABLE table_name_9 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_9 WHERE away_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the most recent season when Fernando Alonso had more than 13 podiums in a car with a Ferrari engine?
### Context:
CREATE TABLE table_name_22 (season INTEGER, podiums VARCHAR, engine VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT MAX(season) FROM table_name_22 WHERE engine = "ferrari" AND driver = "fernando alonso" AND podiums > 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 engine for the Bettenhausen Motorsports team?
### Context:
CREATE TABLE table_name_3 (engine VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_3 WHERE team = "bettenhausen motorsports" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What engine does Steve Chassey drive with a march chassis?
### Context:
CREATE TABLE table_name_49 (engine VARCHAR, chassis VARCHAR, drivers VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_49 WHERE chassis = "march" AND drivers = "steve chassey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine for the Arciero Racing team?
### Context:
CREATE TABLE table_name_49 (engine VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_49 WHERE team = "arciero racing" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What chassis belongs with the Cosworth Engine driven by Scott Pruett on the Dick Simon Racing team?
### Context:
CREATE TABLE table_name_82 (chassis VARCHAR, team VARCHAR, engine VARCHAR, drivers VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_82 WHERE engine = "cosworth" AND drivers = "scott pruett" AND team = "dick simon racing" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine for the team of Alex Morales Motorsports?
### Context:
CREATE TABLE table_name_19 (engine VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_19 WHERE team = "alex morales motorsports" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine for the Machinists Union Racing team?
### Context:
CREATE TABLE table_name_79 (engine VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_79 WHERE team = "machinists union racing" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance for Week 1?
### Context:
CREATE TABLE table_name_48 (attendance VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_48 WHERE week = 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team did the Patriots play when there was a game attendance of 73,369?
### Context:
CREATE TABLE table_name_48 (opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_48 WHERE attendance = "73,369" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Week 3 game played?
### Context:
CREATE TABLE table_name_18 (date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_18 WHERE 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:
What was the highest attendance of the matches that took place at Windy Hill?
### Context:
CREATE TABLE table_name_38 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_38 WHERE venue = "windy hill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a home field at Glenferrie Oval?
### Context:
CREATE TABLE table_name_48 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_48 WHERE venue = "glenferrie oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Footscray the away team?
### Context:
CREATE TABLE table_name_59 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_59 WHERE away_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population for Footscray as an away team?
### Context:
CREATE TABLE table_name_64 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_64 WHERE away_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bids were there for the .500 win percentage in the Ohio Valley conference?
### Context:
CREATE TABLE table_name_7 (_number_of_bids INTEGER, win__percentage VARCHAR, conference VARCHAR) [/INST]
### Response:
SELECT SUM(_number_of_bids) FROM table_name_7 WHERE win__percentage = ".500" AND conference = "ohio valley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Championship Game when the Final Four is 1 and the conference is American South?
### Context:
CREATE TABLE table_name_29 (championship_game VARCHAR, final_four VARCHAR, conference VARCHAR) [/INST]
### Response:
SELECT championship_game FROM table_name_29 WHERE final_four = "1" AND conference = "american south" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Final Four with a win percentage of .750?
### Context:
CREATE TABLE table_name_32 (final_four VARCHAR, win__percentage VARCHAR) [/INST]
### Response:
SELECT final_four FROM table_name_32 WHERE win__percentage = ".750" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the game at the Arden Street Oval?
### Context:
CREATE TABLE table_name_49 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_49 WHERE venue = "arden street oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the game when the venue is Kardinia Park?
### Context:
CREATE TABLE table_name_13 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_13 WHERE venue = "kardinia park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team played against the home team of St Kilda?
### Context:
CREATE TABLE table_name_66 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_66 WHERE home_team = "st kilda" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team competed against the away team of Melbourne?
### Context:
CREATE TABLE table_name_56 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_56 WHERE away_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result of week 1 and the opponent was bye?
### Context:
CREATE TABLE table_name_31 (result VARCHAR, week VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_31 WHERE week = "1" AND opponent = "bye" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the game with a Record of 6-2?
### Context:
CREATE TABLE table_name_35 (game_site VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_35 WHERE record = "6-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 week has a Record of 12-2?
### Context:
CREATE TABLE table_name_99 (week VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT week FROM table_name_99 WHERE record = "12-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 city has Sky Tower?
### Context:
CREATE TABLE table_name_35 (city VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_35 WHERE name = "sky tower" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of a building in Courbevoie built before 1973?
### Context:
CREATE TABLE table_name_96 (name VARCHAR, year_built VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_96 WHERE year_built < 1973 AND city = "courbevoie" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team at Lake Oval?
### Context:
CREATE TABLE table_name_36 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_36 WHERE venue = "lake oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team score for the game where Hawthorn is the home team?
### Context:
CREATE TABLE table_name_83 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_83 WHERE home_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the game where Essendon is the away team?
### Context:
CREATE TABLE table_name_36 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_36 WHERE away_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's score when the away team is south melbourne?
### Context:
CREATE TABLE table_name_12 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_12 WHERE away_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 featured the home side of st kilda?
### Context:
CREATE TABLE table_name_67 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_67 WHERE home_team = "st kilda" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 metres tall is the building that is larger than 850 feet tall?
### Context:
CREATE TABLE table_name_21 (metres VARCHAR, feet INTEGER) [/INST]
### Response:
SELECT metres FROM table_name_21 WHERE feet > 850 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Geelong's score when they were the home team?
### Context:
CREATE TABLE table_name_9 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_9 WHERE home_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the game when Collingwood was the home team?
### Context:
CREATE TABLE table_name_19 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_19 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Peter Woolfolk's Total Rebound average?
### Context:
CREATE TABLE table_name_59 (total_rebounds INTEGER, player VARCHAR) [/INST]
### Response:
SELECT SUM(total_rebounds) FROM table_name_59 WHERE player = "peter woolfolk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week 3 score?
### Context:
CREATE TABLE table_name_79 (result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_79 WHERE 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:
What is the result of the game at Odsal Stadium?
### Context:
CREATE TABLE table_name_41 (result VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_41 WHERE stadium = "odsal stadium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which championship had a margin of 10 strokes?
### Context:
CREATE TABLE table_name_43 (championship VARCHAR, margin VARCHAR) [/INST]
### Response:
SELECT championship FROM table_name_43 WHERE margin = "10 strokes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runner-up player(s) had a margin of 10 strokes?
### Context:
CREATE TABLE table_name_48 (runner_s__up VARCHAR, margin VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_48 WHERE margin = "10 strokes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most recent year that Kathy Ahern was a runner-up?
### Context:
CREATE TABLE table_name_12 (year INTEGER, runner_s__up VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_12 WHERE runner_s__up = "kathy ahern" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 RTM build of the Windows Home Server 2011?
### Context:
CREATE TABLE table_name_74 (rtm_build VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT rtm_build FROM table_name_74 WHERE name = "windows home server 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 current version of windows 8 with an RTM build of 9200?
### Context:
CREATE TABLE table_name_14 (current_version VARCHAR, rtm_build VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT current_version FROM table_name_14 WHERE rtm_build = "9200" AND name = "windows 8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the home team's score that played Geelong?
### Context:
CREATE TABLE table_name_44 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_44 WHERE away_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many rounds were fought with opponent Kevin Roddy?
### Context:
CREATE TABLE table_name_54 (round VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_54 WHERE opponent = "kevin roddy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score when attendance was 19,887?
### Context:
CREATE TABLE table_name_2 (record VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_2 WHERE attendance = "19,887" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What week was the Bye attendance week?
### Context:
CREATE TABLE table_name_20 (week VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT week FROM table_name_20 WHERE attendance = "bye" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who won when the Patriots played the Denver Broncos?
### Context:
CREATE TABLE table_name_38 (record VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_38 WHERE opponent = "denver broncos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who won when the attendance was 8,000?
### Context:
CREATE TABLE table_name_52 (record VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_52 WHERE attendance = "8,000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What channel has an operator of ivptc?
### Context:
CREATE TABLE table_name_1 (programming VARCHAR, operator VARCHAR) [/INST]
### Response:
SELECT programming FROM table_name_1 WHERE operator = "ivptc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score when Richmond payed as the home team?
### Context:
CREATE TABLE table_name_83 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_83 WHERE home_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played against Carlton as the home team?
### Context:
CREATE TABLE table_name_62 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_62 WHERE away_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance when South Melbourne was the away team?
### Context:
CREATE TABLE table_name_88 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_88 WHERE away_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when the VFL played Kardinia Park?
### Context:
CREATE TABLE table_name_27 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_27 WHERE venue = "kardinia park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 silver medals did the nation who received 32 bronze medals receive?
### Context:
CREATE TABLE table_name_61 (silver VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT silver FROM table_name_61 WHERE bronze = 32 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 numbered grid with a time or retired time of 52:52.1881?
### Context:
CREATE TABLE table_name_91 (grid INTEGER, time_retired VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_91 WHERE time_retired = "52:52.1881" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 recorded a time or retired time of 52:56.4653?
### Context:
CREATE TABLE table_name_1 (name VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_1 WHERE time_retired = "52:56.4653" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average grid number for paul cruickshank racing with less than 27 laps?
### Context:
CREATE TABLE table_name_40 (grid INTEGER, team VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_40 WHERE team = "paul cruickshank racing" AND laps < 27 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total metals of a team with more than 6 silver, 6 bronze, and fewer than 16 gold medals?
### Context:
CREATE TABLE table_name_77 (total INTEGER, gold VARCHAR, silver VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_77 WHERE silver > 6 AND bronze = 6 AND gold < 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 crowd size of the game at Brunswick Street Oval?
### Context:
CREATE TABLE table_name_61 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_61 WHERE venue = "brunswick street oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the game where Footscray is the away team?
### Context:
CREATE TABLE table_name_52 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_52 WHERE away_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What week has a date of September 3, 2000?
### Context:
CREATE TABLE table_name_98 (week INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(week) FROM table_name_98 WHERE date = "september 3, 2000" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.