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 seasons had a finale on May 25, 2004?
### Context:
CREATE TABLE table_175980_2 (season VARCHAR, finale VARCHAR) [/INST]
### Response:
SELECT season FROM table_175980_2 WHERE finale = "May 25, 2004" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What seasons had a ranking of #47?
### Context:
CREATE TABLE table_175980_2 (season VARCHAR, ranking VARCHAR) [/INST]
### Response:
SELECT season FROM table_175980_2 WHERE ranking = "#47" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are all values for viewers for 1st season?
### Context:
CREATE TABLE table_175980_2 (viewers__in_millions_ VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT viewers__in_millions_ FROM table_175980_2 WHERE season = "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:
What is the withdraw date for secr no. 771?
### Context:
CREATE TABLE table_17607663_1 (date_withdrawn VARCHAR, secr_no VARCHAR) [/INST]
### Response:
SELECT date_withdrawn FROM table_17607663_1 WHERE secr_no = 771 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 builder for br no. 31779?
### Context:
CREATE TABLE table_17607663_1 (builder VARCHAR, br_no VARCHAR) [/INST]
### Response:
SELECT builder FROM table_17607663_1 WHERE br_no = 31779 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what ist he country where the loan club is fulham?
### Context:
CREATE TABLE table_17596418_5 (country VARCHAR, loan_club VARCHAR) [/INST]
### Response:
SELECT country FROM table_17596418_5 WHERE loan_club = "Fulham" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what ist he total number of ages where the start date is 6 november?
### Context:
CREATE TABLE table_17596418_5 (age VARCHAR, started VARCHAR) [/INST]
### Response:
SELECT COUNT(age) FROM table_17596418_5 WHERE started = "6 November" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of eipsode 618?
### Context:
CREATE TABLE table_17624965_1 (title VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT title FROM table_17624965_1 WHERE production_code = 618 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episodes did Alison Maclean direct?
### Context:
CREATE TABLE table_17624965_1 (written_by VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT COUNT(written_by) FROM table_17624965_1 WHERE directed_by = "Alison Maclean" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 high points for may 29
### Context:
CREATE TABLE table_17622423_12 (high_points VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_17622423_12 WHERE date = "May 29" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the date for series 2-2
### Context:
CREATE TABLE table_17622423_12 (date VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT date FROM table_17622423_12 WHERE series = "2-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:
Name the high assists for may 21
### Context:
CREATE TABLE table_17622423_12 (high_assists VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_17622423_12 WHERE date = "May 21" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many different play-by-play announcers also had pregame analysis by Darren Flutie, Eric Tillman and Greg Frers?
### Context:
CREATE TABLE table_17628022_2 (play_by_play VARCHAR, pregame_analysts VARCHAR) [/INST]
### Response:
SELECT COUNT(play_by_play) FROM table_17628022_2 WHERE pregame_analysts = "Darren Flutie, Eric Tillman and Greg Frers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the play-by-play when the pregame host was Brian Williams and the sideline reporters were Steve Armitage and Brenda Irving?
### Context:
CREATE TABLE table_17628022_2 (play_by_play VARCHAR, pregame_host VARCHAR, sideline_reporters VARCHAR) [/INST]
### Response:
SELECT play_by_play FROM table_17628022_2 WHERE pregame_host = "Brian Williams" AND sideline_reporters = "Steve Armitage and Brenda Irving" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pregame hosts when the sideline reporters were Steve Armitage and Brenda Irving?
### Context:
CREATE TABLE table_17628022_2 (pregame_host VARCHAR, sideline_reporters VARCHAR) [/INST]
### Response:
SELECT pregame_host FROM table_17628022_2 WHERE sideline_reporters = "Steve Armitage and Brenda Irving" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did pregame analysis in 2002?
### Context:
CREATE TABLE table_17628022_2 (pregame_analysts VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT pregame_analysts FROM table_17628022_2 WHERE year = 2002 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 state for lake county
### Context:
CREATE TABLE table_1762887_1 (state VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT state FROM table_1762887_1 WHERE county = "Lake county" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season?
### Context:
CREATE TABLE table_17632217_1 (season INTEGER) [/INST]
### Response:
SELECT MIN(season) FROM table_17632217_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 values for number of clubs have Shandong as the runner-up?
### Context:
CREATE TABLE table_17632217_1 (number_of_clubs VARCHAR, runners_up VARCHAR) [/INST]
### Response:
SELECT COUNT(number_of_clubs) FROM table_17632217_1 WHERE runners_up = "Shandong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wins with Shanghai as runner-up?
### Context:
CREATE TABLE table_17632217_1 (total_wins VARCHAR, runners_up VARCHAR) [/INST]
### Response:
SELECT COUNT(total_wins) FROM table_17632217_1 WHERE runners_up = "Shanghai" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 club for when tries for is 32
### Context:
CREATE TABLE table_17625749_1 (club VARCHAR, tries_for VARCHAR) [/INST]
### Response:
SELECT club FROM table_17625749_1 WHERE tries_for = "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:
Name the number of lost where tries for is 109
### Context:
CREATE TABLE table_17625749_1 (lost VARCHAR, tries_for VARCHAR) [/INST]
### Response:
SELECT COUNT(lost) FROM table_17625749_1 WHERE tries_for = "109" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won when tries against is 72
### Context:
CREATE TABLE table_17625749_1 (won VARCHAR, tries_against VARCHAR) [/INST]
### Response:
SELECT won FROM table_17625749_1 WHERE tries_against = "72" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points aginst when drawn is 1 and points is 51
### Context:
CREATE TABLE table_17625749_1 (points_against VARCHAR, drawn VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT points_against FROM table_17625749_1 WHERE drawn = "1" AND points = "51" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 original air date for number in season being 1
### Context:
CREATE TABLE table_17625876_1 (original_air_date VARCHAR, no_in_season VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_17625876_1 WHERE no_in_season = 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 were won when 5 were lost?
### Context:
CREATE TABLE table_17625749_3 (won VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT won FROM table_17625749_3 WHERE lost = "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 were drawn when 13 were lost?
### Context:
CREATE TABLE table_17625749_3 (drawn VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT drawn FROM table_17625749_3 WHERE lost = "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:
How many points are there for 63 tries against?
### Context:
CREATE TABLE table_17625749_3 (points_for VARCHAR, tries_against VARCHAR) [/INST]
### Response:
SELECT points_for FROM table_17625749_3 WHERE tries_against = "63" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the try bonus when the tries against are 17?
### Context:
CREATE TABLE table_17625749_3 (try_bonus VARCHAR, tries_against VARCHAR) [/INST]
### Response:
SELECT try_bonus FROM table_17625749_3 WHERE tries_against = "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:
How many tries for are there when 11 were won?
### Context:
CREATE TABLE table_17625749_3 (tries_for VARCHAR, won VARCHAR) [/INST]
### Response:
SELECT tries_for FROM table_17625749_3 WHERE won = "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:
How many points categories are there when the losing bonus is 2 and points for are 642?
### Context:
CREATE TABLE table_17625749_3 (points VARCHAR, losing_bonus VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_17625749_3 WHERE losing_bonus = "2" AND points_for = "642" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wrote the episode that had 6.34 million viewers?
### Context:
CREATE TABLE table_17641206_2 (written_by VARCHAR, viewership VARCHAR) [/INST]
### Response:
SELECT COUNT(written_by) FROM table_17641206_2 WHERE viewership = "6.34 million" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title of the episode with 5.04 million viewers?
### Context:
CREATE TABLE table_17641206_4 (original_title VARCHAR, viewership VARCHAR) [/INST]
### Response:
SELECT original_title FROM table_17641206_4 WHERE viewership = "5.04 million" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first airdate with a viewership of 4.77 million?
### Context:
CREATE TABLE table_17641206_4 (original_airdate VARCHAR, viewership VARCHAR) [/INST]
### Response:
SELECT original_airdate FROM table_17641206_4 WHERE viewership = "4.77 million" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episodes of 30 minutes were written by John Sullivan?
### Context:
CREATE TABLE table_17641206_4 (duration VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT COUNT(duration) FROM table_17641206_4 WHERE written_by = "John Sullivan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the director when the writer was John Sullivan?
### Context:
CREATE TABLE table_17641206_4 (directed_by VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_17641206_4 WHERE written_by = "John Sullivan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the movies that are written and dircted by john sullivan with the airdate of 15january2009.
### Context:
CREATE TABLE table_17641206_8 (directed_by VARCHAR, written_by VARCHAR, original_airdate VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_17641206_8 WHERE written_by = "John Sullivan" AND original_airdate = "15January2009" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episodes aired on 22january2009
### Context:
CREATE TABLE table_17641206_8 (episode VARCHAR, original_airdate VARCHAR) [/INST]
### Response:
SELECT COUNT(episode) FROM table_17641206_8 WHERE original_airdate = "22January2009" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 least transfers out when transfers is 21
### Context:
CREATE TABLE table_17650725_1 (transfers_out INTEGER, total_transfers VARCHAR) [/INST]
### Response:
SELECT MIN(transfers_out) FROM table_17650725_1 WHERE total_transfers = 21 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the least total transfers for romania
### Context:
CREATE TABLE table_17650725_1 (total_transfers INTEGER, country VARCHAR) [/INST]
### Response:
SELECT MIN(total_transfers) FROM table_17650725_1 WHERE country = "Romania" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 least internal transfers
### Context:
CREATE TABLE table_17650725_1 (internal_transfers INTEGER) [/INST]
### Response:
SELECT MIN(internal_transfers) FROM table_17650725_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 status are there for Moncton?
### Context:
CREATE TABLE table_176529_2 (status VARCHAR, official_name VARCHAR) [/INST]
### Response:
SELECT COUNT(status) FROM table_176529_2 WHERE official_name = "Moncton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 census ranking of the location with population of 959?
### Context:
CREATE TABLE table_176529_2 (census_ranking VARCHAR, population VARCHAR) [/INST]
### Response:
SELECT census_ranking FROM table_176529_2 WHERE population = 959 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the place with 582.20 square km area?
### Context:
CREATE TABLE table_176529_2 (official_name VARCHAR, area_km_2 VARCHAR) [/INST]
### Response:
SELECT official_name FROM table_176529_2 WHERE area_km_2 = "582.20" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the place where area is 578.28 square km?
### Context:
CREATE TABLE table_176529_2 (official_name VARCHAR, area_km_2 VARCHAR) [/INST]
### Response:
SELECT official_name FROM table_176529_2 WHERE area_km_2 = "578.28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the points is 20, what was the team name?
### Context:
CREATE TABLE table_17693171_1 (team VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT team FROM table_17693171_1 WHERE points = "20" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time/retired if the driver is Marco Andretti?
### Context:
CREATE TABLE table_17693171_1 (time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_17693171_1 WHERE driver = "Marco Andretti" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the laps is 191, what is the maximum laps led?
### Context:
CREATE TABLE table_17693171_1 (laps INTEGER) [/INST]
### Response:
SELECT MAX(laps) AS Led FROM table_17693171_1 WHERE laps = 191 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time/retired if the driver is Ed Carpenter?
### Context:
CREATE TABLE table_17693171_1 (time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_17693171_1 WHERE driver = "Ed Carpenter" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the time/retired is +1 lap, what is the amount of maximum laps?
### Context:
CREATE TABLE table_17693171_1 (laps INTEGER, time_retired VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_17693171_1 WHERE 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:
If the driver is Milka Duno, what is the name of the team?
### Context:
CREATE TABLE table_17693171_1 (team VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT team FROM table_17693171_1 WHERE driver = "Milka Duno" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 stages were won by Robbie McEwen?
### Context:
CREATE TABLE table_17672470_19 (stage VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT COUNT(stage) FROM table_17672470_19 WHERE winner = "Robbie McEwen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 car numbers were listed for Rusty Wallace?
### Context:
CREATE TABLE table_1769428_2 (car__number VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT COUNT(car__number) FROM table_1769428_2 WHERE winning_driver = "Rusty Wallace" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what season did Rusty Wallace win?
### Context:
CREATE TABLE table_1769428_2 (season INTEGER, winning_driver VARCHAR) [/INST]
### Response:
SELECT MAX(season) FROM table_1769428_2 WHERE winning_driver = "Rusty Wallace" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 represented team on June 27?
### Context:
CREATE TABLE table_1769428_2 (team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT team FROM table_1769428_2 WHERE date = "June 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:
Who was the winning driver for Hendrick Motorsports in a Chevrolet Impala SS?
### Context:
CREATE TABLE table_1769428_2 (winning_driver VARCHAR, team VARCHAR, make VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_1769428_2 WHERE team = "Hendrick Motorsports" AND make = "Chevrolet Impala SS" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 45 is the goals for and 10 is the drawn what is the lost?
### Context:
CREATE TABLE table_17718005_2 (lost VARCHAR, drawn VARCHAR, goals_for VARCHAR) [/INST]
### Response:
SELECT lost FROM table_17718005_2 WHERE drawn = 10 AND goals_for = 45 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 +10 is the goal difference what is the goals for?
### Context:
CREATE TABLE table_17718005_2 (goals_for VARCHAR, goal_difference VARCHAR) [/INST]
### Response:
SELECT goals_for FROM table_17718005_2 WHERE goal_difference = "+10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When ellesmere port & neston is the team what are the points 1?
### Context:
CREATE TABLE table_17718005_2 (points_1 VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT points_1 FROM table_17718005_2 WHERE team = "Ellesmere Port & Neston" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2005 is the season how many drivers are there?
### Context:
CREATE TABLE table_1771753_3 (driver VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT COUNT(driver) FROM table_1771753_3 WHERE season = "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:
When tony kanaan is the driver what is the average speed miles per hour?
### Context:
CREATE TABLE table_1771753_3 (average_speed__mph_ VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT average_speed__mph_ FROM table_1771753_3 WHERE driver = "Tony Kanaan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 169.182 is the average speed miles per hour what is the chassis?
### Context:
CREATE TABLE table_1771753_3 (chassis VARCHAR, average_speed__mph_ VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_1771753_3 WHERE average_speed__mph_ = "169.182" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1:34:01 is the race time what is the miles in kilometers?
### Context:
CREATE TABLE table_1771753_3 (miles__km_ VARCHAR, race_time VARCHAR) [/INST]
### Response:
SELECT miles__km_ FROM table_1771753_3 WHERE race_time = "1:34:01" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When 228 is the lap and chip ganassi racing is the team what is the race time?
### Context:
CREATE TABLE table_1771753_3 (race_time VARCHAR, team VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT race_time FROM table_1771753_3 WHERE team = "Chip Ganassi Racing" AND laps = "228" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What tie number featured Chelsea as the home team?
### Context:
CREATE TABLE table_17736890_5 (tie_no INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT MIN(tie_no) FROM table_17736890_5 WHERE home_team = "Chelsea" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what tie were Leeds United the away team?
### Context:
CREATE TABLE table_17736890_5 (tie_no INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MAX(tie_no) FROM table_17736890_5 WHERE away_team = "Leeds United" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the home team when Burnley were the away team?
### Context:
CREATE TABLE table_17736890_5 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_17736890_5 WHERE away_team = "Burnley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the lowest year represented?
### Context:
CREATE TABLE table_177273_2 (year INTEGER) [/INST]
### Response:
SELECT MIN(year) FROM table_177273_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 was the score when Françoise Dürr was partner?
### Context:
CREATE TABLE table_177273_2 (score VARCHAR, partner VARCHAR) [/INST]
### Response:
SELECT score FROM table_177273_2 WHERE partner = "Françoise Dürr" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outcome in 1975?
### Context:
CREATE TABLE table_177273_2 (outcome VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_177273_2 WHERE year = 1975 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface was the game played with a score of 6–4, 6–4?
### Context:
CREATE TABLE table_177273_2 (surface VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT surface FROM table_177273_2 WHERE score = "6–4, 6–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 year of appearance for the Prince Albert Raiders?
### Context:
CREATE TABLE table_17751942_4 (years_of_appearance VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT years_of_appearance FROM table_17751942_4 WHERE team = "Prince Albert Raiders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wins do the Erie Otters have?
### Context:
CREATE TABLE table_17751942_4 (wins VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT wins FROM table_17751942_4 WHERE team = "Erie Otters" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 win percentage of the Sault Ste. Marie Greyhounds?
### Context:
CREATE TABLE table_17751942_4 (final_win__percentage VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT final_win__percentage FROM table_17751942_4 WHERE team = "Sault Ste. Marie Greyhounds" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of semi-final losses for the Kitchener Rangers?
### Context:
CREATE TABLE table_17751942_4 (final_losses VARCHAR, Semi INTEGER, team VARCHAR) [/INST]
### Response:
SELECT MAX(Semi) - final_losses FROM table_17751942_4 WHERE team = "Kitchener Rangers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wins do the Red Deer Rebels have?
### Context:
CREATE TABLE table_17751942_4 (wins INTEGER, team VARCHAR) [/INST]
### Response:
SELECT MAX(wins) FROM table_17751942_4 WHERE team = "Red Deer Rebels" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record for November 26, 1961?
### Context:
CREATE TABLE table_17765888_1 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_17765888_1 WHERE date = "November 26, 1961" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the game site against the Dallas Texans?
### Context:
CREATE TABLE table_17765888_1 (game_site VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_17765888_1 WHERE opponent = "Dallas Texans" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 how many years was Tom Fleming the final television commentator?
### Context:
CREATE TABLE table_17766232_7 (year_s_ VARCHAR, final_television_commentator VARCHAR) [/INST]
### Response:
SELECT COUNT(year_s_) FROM table_17766232_7 WHERE final_television_commentator = "Tom Fleming" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latest year that Colin Berry was the spokesperson?
### Context:
CREATE TABLE table_17766232_7 (year_s_ INTEGER, spokesperson VARCHAR) [/INST]
### Response:
SELECT MAX(year_s_) FROM table_17766232_7 WHERE spokesperson = "Colin Berry" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 semi-final television commentator when the spokesperson was Colin Berry and the final television commentator was Pete Murray?
### Context:
CREATE TABLE table_17766232_7 (semi_final_television_commentator VARCHAR, spokesperson VARCHAR, final_television_commentator VARCHAR) [/INST]
### Response:
SELECT semi_final_television_commentator FROM table_17766232_7 WHERE spokesperson = "Colin Berry" AND final_television_commentator = "Pete Murray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 radio commentator when the final television commentator was John Dunn?
### Context:
CREATE TABLE table_17766232_7 (radio_commentator VARCHAR, final_television_commentator VARCHAR) [/INST]
### Response:
SELECT radio_commentator FROM table_17766232_7 WHERE final_television_commentator = "John Dunn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latest year that the final television commentator was David Jacobs?
### Context:
CREATE TABLE table_17766232_7 (year_s_ INTEGER, final_television_commentator VARCHAR) [/INST]
### Response:
SELECT MAX(year_s_) FROM table_17766232_7 WHERE final_television_commentator = "David Jacobs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 their record when the attendance at the game was 14489?
### Context:
CREATE TABLE table_17765264_1 (record VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT record FROM table_17765264_1 WHERE attendance = 14489 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did they play at the Cotton Bowl?
### Context:
CREATE TABLE table_17765264_1 (date VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT date FROM table_17765264_1 WHERE game_site = "Cotton Bowl" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentage of this constellation abbreviated as 'nor'?
### Context:
CREATE TABLE table_177766_1 (percentage VARCHAR, abbreviation VARCHAR) [/INST]
### Response:
SELECT percentage FROM table_177766_1 WHERE abbreviation = "Nor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
This constellation, abbreviated as 'oph' has how many right ascension (in hm)?
### Context:
CREATE TABLE table_177766_1 (right_ascension__hm_ VARCHAR, abbreviation VARCHAR) [/INST]
### Response:
SELECT COUNT(right_ascension__hm_) FROM table_177766_1 WHERE abbreviation = "Oph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 this constellation with an area of 245.375 sq. deg.?
### Context:
CREATE TABLE table_177766_1 (constellation VARCHAR, area__sqdeg_ VARCHAR) [/INST]
### Response:
SELECT constellation FROM table_177766_1 WHERE area__sqdeg_ = "245.375" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
This constellation with a ranking of 51 has how many percentages on record?
### Context:
CREATE TABLE table_177766_1 (per VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(per) AS centage FROM table_177766_1 WHERE rank = 51 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentage of this constellation with an area of 248.885 sq. deg.?
### Context:
CREATE TABLE table_177766_1 (percentage VARCHAR, area__sqdeg_ VARCHAR) [/INST]
### Response:
SELECT percentage FROM table_177766_1 WHERE area__sqdeg_ = "248.885" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 broadcast date for 6.4 million viewers for the archive of 16mm t/r
### Context:
CREATE TABLE table_1776943_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR, archive VARCHAR) [/INST]
### Response:
SELECT broadcast_date FROM table_1776943_1 WHERE viewers__in_millions_ = "6.4" AND archive = "16mm t/r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 archive where run time 24:04
### Context:
CREATE TABLE table_1776943_1 (archive VARCHAR, run_time VARCHAR) [/INST]
### Response:
SELECT archive FROM table_1776943_1 WHERE run_time = "24:04" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1, 1964, where was the game site?
### Context:
CREATE TABLE table_17781394_1 (game_site VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_17781394_1 WHERE date = "November 1, 1964" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attended the Week 8 game when Denver played Buffalo?
### Context:
CREATE TABLE table_17778417_1 (attendance VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_17778417_1 WHERE week = 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many times did the Denver Broncos face the Dallas Texans this season?
### Context:
CREATE TABLE table_17778417_1 (record VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT COUNT(record) FROM table_17778417_1 WHERE opponent = "Dallas Texans" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning race time 1:55:13?
### Context:
CREATE TABLE table_17801022_1 (year INTEGER, race_time VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_17801022_1 WHERE race_time = "1:55: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:
For races with an average speed of 113.835 mph, what are the winning race times?
### Context:
CREATE TABLE table_17801022_1 (race_time VARCHAR, average_speed__mph_ VARCHAR) [/INST]
### Response:
SELECT race_time FROM table_17801022_1 WHERE average_speed__mph_ = "113.835" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What manufacturer won the race on November 2?
### Context:
CREATE TABLE table_17801022_1 (manufacturer VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT manufacturer FROM table_17801022_1 WHERE date = "November 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 date did Jamie McMurray win the race?
### Context:
CREATE TABLE table_17801022_1 (date VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT date FROM table_17801022_1 WHERE driver = "Jamie McMurray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 race with a winning time of 1:55:13?
### Context:
CREATE TABLE table_17801022_1 (date VARCHAR, race_time VARCHAR) [/INST]
### Response:
SELECT date FROM table_17801022_1 WHERE race_time = "1:55:13" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.