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:
Which earth has west metal?
### Context:
CREATE TABLE table_name_10 (earth VARCHAR, metal VARCHAR) [/INST]
### Response:
SELECT earth FROM table_name_10 WHERE metal = "west" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wood has stabilizing earth?
### Context:
CREATE TABLE table_name_50 (wood VARCHAR, earth VARCHAR) [/INST]
### Response:
SELECT wood FROM table_name_50 WHERE earth = "stabilizing" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fire has dry metal?
### Context:
CREATE TABLE table_name_24 (fire VARCHAR, metal VARCHAR) [/INST]
### Response:
SELECT fire FROM table_name_24 WHERE metal = "dry" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what name has a Rank of lieutenant colonel, and a Begin Date of 1904-02-22 22 february 1904?
### Context:
CREATE TABLE table_name_87 (name VARCHAR, rank VARCHAR, begin_date VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_87 WHERE rank = "lieutenant colonel" AND begin_date = "1904-02-22 22 february 1904" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Oklahoma State produced a player in which position in the draft?
### Context:
CREATE TABLE table_name_26 (position VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_26 WHERE school_club_team = "oklahoma state" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest round where a back named Ed Cody can be found?
### Context:
CREATE TABLE table_name_53 (round INTEGER, position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_53 WHERE position = "back" AND player = "ed cody" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Losses is the lowest one that has a Season smaller than 1920, and Draws larger than 0?
### Context:
CREATE TABLE table_name_75 (losses INTEGER, season VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT MIN(losses) FROM table_name_75 WHERE season < 1920 AND draws > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Draws have Losses larger than 16, and a Season larger than 1966?
### Context:
CREATE TABLE table_name_53 (draws INTEGER, losses VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT SUM(draws) FROM table_name_53 WHERE losses > 16 AND season > 1966 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Draws have a Team of annandale, and Losses smaller than 13?
### Context:
CREATE TABLE table_name_58 (draws INTEGER, team VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT SUM(draws) FROM table_name_58 WHERE team = "annandale" AND losses < 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Draws have Losses smaller than 16, and a Team of university, and Wins larger than 0?
### Context:
CREATE TABLE table_name_38 (draws INTEGER, wins VARCHAR, losses VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT AVG(draws) FROM table_name_38 WHERE losses < 16 AND team = "university" AND wins > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Wins is the lowest one that has a Season smaller than 1920, and Losses smaller than 14?
### Context:
CREATE TABLE table_name_99 (wins INTEGER, season VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_99 WHERE season < 1920 AND losses < 14 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which date had a sport of Academics?
### Context:
CREATE TABLE table_name_70 (date VARCHAR, sport VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_70 WHERE sport = "academics" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a site of N/A?
### Context:
CREATE TABLE table_name_9 (date VARCHAR, site VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_9 WHERE site = "n/a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what was the builder in 1929
### Context:
CREATE TABLE table_name_22 (builder VARCHAR, year_built VARCHAR) [/INST]
### Response:
SELECT builder FROM table_name_22 WHERE year_built = "1929" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the March 6 game, where one of the teams had 53 points.
### Context:
CREATE TABLE table_name_55 (attendance VARCHAR, points VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_55 WHERE points = 53 AND date = "march 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:
For the game with 6,126 in attendance, how many points did both teams have in the standings?
### Context:
CREATE TABLE table_name_16 (points VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_16 WHERE attendance = 6 OFFSET 126 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the team with a St. Louis home?
### Context:
CREATE TABLE table_name_18 (record VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_18 WHERE home = "st. louis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country has a territory of French Guiana?
### Context:
CREATE TABLE table_name_28 (country VARCHAR, territory VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_28 WHERE territory = "french guiana" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2008-12 has a 2013 of A, and a Tournament of wimbledon?
### Context:
CREATE TABLE table_name_77 (tournament VARCHAR) [/INST]
### Response:
SELECT 2008 AS _12 FROM table_name_77 WHERE 2013 = "a" AND tournament = "wimbledon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2013 has a 2007 of A, and a Tournament of french open?
### Context:
CREATE TABLE table_name_49 (tournament VARCHAR) [/INST]
### Response:
SELECT 2013 FROM table_name_49 WHERE 2007 = "a" AND tournament = "french open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which 2013 has a 2006 of grand slam tournaments?
### Context:
CREATE TABLE table_name_64 (Id VARCHAR) [/INST]
### Response:
SELECT 2013 FROM table_name_64 WHERE 2006 = "grand slam tournaments" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2006 has a 2007 of A?
### Context:
CREATE TABLE table_name_98 (Id VARCHAR) [/INST]
### Response:
SELECT 2006 FROM table_name_98 WHERE 2007 = "a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which 2008-12 has a 2007 of A, and a Tournament of us open?
### Context:
CREATE TABLE table_name_80 (tournament VARCHAR) [/INST]
### Response:
SELECT 2008 AS _12 FROM table_name_80 WHERE 2007 = "a" AND tournament = "us open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record on April 1?
### Context:
CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_57 WHERE date = "april 1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the score on April 9?
### Context:
CREATE TABLE table_name_62 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_62 WHERE date = "april 9" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was home on April 3?
### Context:
CREATE TABLE table_name_71 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_71 WHERE date = "april 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's the score on April 9?
### Context:
CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_12 WHERE date = "april 9" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of points of the team with more than 18 played?
### Context:
CREATE TABLE table_name_72 (points INTEGER, played INTEGER) [/INST]
### Response:
SELECT AVG(points) FROM table_name_72 WHERE played > 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest score of the team with 19 points and less than 18 played?
### Context:
CREATE TABLE table_name_82 (scored INTEGER, points VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT MIN(scored) FROM table_name_82 WHERE points = 19 AND played < 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of draws of the team with less than 17 points and less than 4 wins?
### Context:
CREATE TABLE table_name_31 (draws INTEGER, points VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT AVG(draws) FROM table_name_31 WHERE points < 17 AND wins < 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 title of the record with an artist of Tangorodrim, category number FSR006?
### Context:
CREATE TABLE table_name_46 (title VARCHAR, artist VARCHAR, cat__number VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_46 WHERE artist = "tangorodrim" AND cat__number = "fsr006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 format of the release by Triumfall?
### Context:
CREATE TABLE table_name_31 (format VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_31 WHERE artist = "triumfall" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 category number that was released in November 2007?
### Context:
CREATE TABLE table_name_85 (cat__number VARCHAR, release_date VARCHAR) [/INST]
### Response:
SELECT cat__number FROM table_name_85 WHERE release_date = "november 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which is the lowest round to have a pick of 12 and position of linebacker?
### Context:
CREATE TABLE table_name_86 (round INTEGER, pick__number VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_86 WHERE pick__number = 12 AND position = "linebacker" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player was picked in round 15 with a pick smaller than 13?
### Context:
CREATE TABLE table_name_76 (name VARCHAR, pick__number VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_76 WHERE pick__number < 13 AND round = 15 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many picks were from Lamar College?
### Context:
CREATE TABLE table_name_34 (pick__number VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT COUNT(pick__number) FROM table_name_34 WHERE college = "lamar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 overall values have a college of Notre Dame and rounds over 2?
### Context:
CREATE TABLE table_name_97 (overall VARCHAR, college VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT COUNT(overall) FROM table_name_97 WHERE college = "notre dame" AND round > 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 player was at Albion?
### Context:
CREATE TABLE table_name_90 (player VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_90 WHERE venue = "albion" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue that had 274 runs?
### Context:
CREATE TABLE table_name_29 (venue VARCHAR, runs VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_29 WHERE runs = "274" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 athlete played against Queensland?
### Context:
CREATE TABLE table_name_17 (player VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_17 WHERE opponent = "queensland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where is the venue with more than 245 runs?
### Context:
CREATE TABLE table_name_71 (venue VARCHAR, runs VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_71 WHERE runs = "245" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Jack Badcock play?
### Context:
CREATE TABLE table_name_22 (venue VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_22 WHERE player = "jack badcock" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Surface has a Date of 16 november 2007?
### Context:
CREATE TABLE table_name_73 (surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_73 WHERE date = "16 november 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the date for 2004 afc asian cup qualifier
### Context:
CREATE TABLE table_name_23 (date VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_23 WHERE competition = "2004 afc asian cup qualifier" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue for 23 january 2009
### Context:
CREATE TABLE table_name_88 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_88 WHERE date = "23 january 2009" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 competition for khartoum
### Context:
CREATE TABLE table_name_54 (competition VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_54 WHERE venue = "khartoum" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fewest ties the team had with fewer than 7 games?
### Context:
CREATE TABLE table_name_25 (drawn INTEGER, games INTEGER) [/INST]
### Response:
SELECT MIN(drawn) FROM table_name_25 WHERE games < 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the population for a county that has a median income of $69,760?
### Context:
CREATE TABLE table_name_25 (population VARCHAR, median_household_income VARCHAR) [/INST]
### Response:
SELECT population FROM table_name_25 WHERE median_household_income = "$69,760" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What county has $51,456 income per capita?
### Context:
CREATE TABLE table_name_37 (county VARCHAR, per_capita_income VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_37 WHERE per_capita_income = "$51,456" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent when attendance was 60,355?
### Context:
CREATE TABLE table_name_87 (opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_87 WHERE attendance = "60,355" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Net profit/loss (SEK) has a Basic eps (SEK) of -6.58, and Employees (Average/Year) larger than 31,035?
### Context:
CREATE TABLE table_name_87 (net_profit_loss__sek_ INTEGER, basic_eps__sek_ VARCHAR, employees__average_year_ VARCHAR) [/INST]
### Response:
SELECT SUM(net_profit_loss__sek_) FROM table_name_87 WHERE basic_eps__sek_ = -6.58 AND employees__average_year_ > 31 OFFSET 035 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when 13 is the week?
### Context:
CREATE TABLE table_name_64 (result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_64 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 average week has shea stadium as the game site, and 1979-12-09 as the date?
### Context:
CREATE TABLE table_name_11 (week INTEGER, game_site VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT AVG(week) FROM table_name_11 WHERE game_site = "shea stadium" AND date = "1979-12-09" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 most rank for the United States with wins less than 1
### Context:
CREATE TABLE table_name_18 (rank INTEGER, country VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_18 WHERE country = "united states" AND wins < 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:
Name the most rank for wins more than 0 and events of 26
### Context:
CREATE TABLE table_name_58 (rank INTEGER, events VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_58 WHERE events = 26 AND wins > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the average earnings for rank of 3 and wins less than 3
### Context:
CREATE TABLE table_name_34 (earnings___ INTEGER, rank VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT AVG(earnings___) AS $__ FROM table_name_34 WHERE rank = 3 AND wins < 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 average area of the city that has a density less than than 206.2 and an altitude of less than 85?
### Context:
CREATE TABLE table_name_14 (area__km_2__ INTEGER, density__inhabitants_km_2__ VARCHAR, altitude__mslm_ VARCHAR) [/INST]
### Response:
SELECT AVG(area__km_2__) FROM table_name_14 WHERE density__inhabitants_km_2__ < 206.2 AND altitude__mslm_ < 85 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest density of alessandria where the area is bigger than 16.02 and altitude is less than 116?
### Context:
CREATE TABLE table_name_39 (density__inhabitants_km_2__ INTEGER, city VARCHAR, area__km_2__ VARCHAR, altitude__mslm_ VARCHAR) [/INST]
### Response:
SELECT MIN(density__inhabitants_km_2__) FROM table_name_39 WHERE area__km_2__ > 16.02 AND altitude__mslm_ < 116 AND city = "alessandria" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 density of serravalle scrivia?
### Context:
CREATE TABLE table_name_87 (density__inhabitants_km_2__ INTEGER, city VARCHAR) [/INST]
### Response:
SELECT MIN(density__inhabitants_km_2__) FROM table_name_87 WHERE city = "serravalle scrivia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population of alessandria where the altitude is less than 197 and density is less than 461.8?
### Context:
CREATE TABLE table_name_37 (population INTEGER, density__inhabitants_km_2__ VARCHAR, altitude__mslm_ VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT MIN(population) FROM table_name_37 WHERE altitude__mslm_ < 197 AND city = "alessandria" AND density__inhabitants_km_2__ < 461.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 myspace has linkedin as the site, with an orkit greater than 3?
### Context:
CREATE TABLE table_name_62 (myspace INTEGER, site VARCHAR, orkut VARCHAR) [/INST]
### Response:
SELECT AVG(myspace) FROM table_name_62 WHERE site = "linkedin" AND orkut > 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:
How many linkedin have Facebook as the site, with a myspace less than 64?
### Context:
CREATE TABLE table_name_79 (linkedin VARCHAR, site VARCHAR, myspace VARCHAR) [/INST]
### Response:
SELECT COUNT(linkedin) FROM table_name_79 WHERE site = "facebook" AND myspace < 64 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest Ning that has a bebo less than 4, an orkut less than 100, with a plaxo greater than 0?
### Context:
CREATE TABLE table_name_40 (ning INTEGER, plaxo VARCHAR, bebo VARCHAR, orkut VARCHAR) [/INST]
### Response:
SELECT MAX(ning) FROM table_name_40 WHERE bebo < 4 AND orkut < 100 AND plaxo > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average plaxo that has a myspace greater than 64, a bebo greater than 3, with 4 as the friendster?
### Context:
CREATE TABLE table_name_63 (plaxo INTEGER, friendster VARCHAR, myspace VARCHAR, bebo VARCHAR) [/INST]
### Response:
SELECT AVG(plaxo) FROM table_name_63 WHERE myspace > 64 AND bebo > 3 AND friendster = 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 album has the title I Need A Life with the label of warp records / paper bag records?
### Context:
CREATE TABLE table_name_18 (album VARCHAR, label VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT album FROM table_name_18 WHERE label = "warp records / paper bag records" AND title = "i need a life" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What title has a Label of warp records / paper bag records?
### Context:
CREATE TABLE table_name_39 (title VARCHAR, label VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_39 WHERE label = "warp records / paper bag records" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the lowest Points for the Team of San Martín De Tucumán, and a Played that's smaller than 38?
### Context:
CREATE TABLE table_name_84 (points INTEGER, team VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_84 WHERE team = "san martín de tucumán" AND played < 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What nation has a total more than 3, with more than 5 for bronze, and less than 4 for the silver?
### Context:
CREATE TABLE table_name_29 (nation VARCHAR, silver VARCHAR, total VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_29 WHERE total > 3 AND bronze > 5 AND silver < 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 largest number for bronze with a rank of 19?
### Context:
CREATE TABLE table_name_61 (bronze INTEGER, rank VARCHAR) [/INST]
### Response:
SELECT MAX(bronze) FROM table_name_61 WHERE rank = "19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what season had a score of 1:0
### Context:
CREATE TABLE table_name_4 (season VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_4 WHERE score = "1:0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
indoor year is 1978, what is the record?
### Context:
CREATE TABLE table_name_70 (record VARCHAR, indoor_year VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_70 WHERE indoor_year = "1978" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Record of 11-10-3 is what sum of game #?
### Context:
CREATE TABLE table_name_57 (game__number INTEGER, record VARCHAR) [/INST]
### Response:
SELECT SUM(game__number) FROM table_name_57 WHERE record = "11-10-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:
Points of 31, and a Score of 1 - 5 is what home?
### Context:
CREATE TABLE table_name_51 (home VARCHAR, points VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_51 WHERE points = 31 AND score = "1 - 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:
Visitor of calgary has what record?
### Context:
CREATE TABLE table_name_30 (record VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_30 WHERE visitor = "calgary" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Score of 2 - 2 had what points?
### Context:
CREATE TABLE table_name_47 (points VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_47 WHERE score = "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:
What was the Attendance when Lincoln City was the Opponents with H/A of A?
### Context:
CREATE TABLE table_name_20 (attendance VARCHAR, opponents VARCHAR, h___a VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_20 WHERE opponents = "lincoln city" AND h___a = "a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what Area has the frequency of 100.3 and an On-air ID of yass fm?
### Context:
CREATE TABLE table_name_94 (area_served VARCHAR, frequency VARCHAR, on_air_id VARCHAR) [/INST]
### Response:
SELECT area_served FROM table_name_94 WHERE frequency = "100.3" AND on_air_id = "yass fm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Callsign with an Area of tamworth and frequency of 0 88.9?
### Context:
CREATE TABLE table_name_8 (callsign VARCHAR, area_served VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT callsign FROM table_name_8 WHERE area_served = "tamworth" AND frequency = "0 88.9" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Purpose of the Area Braidwood?
### Context:
CREATE TABLE table_name_62 (purpose VARCHAR, area_served VARCHAR) [/INST]
### Response:
SELECT purpose FROM table_name_62 WHERE area_served = "braidwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Band has a Frequency of 0 99.7 in the Area of Newcastle?
### Context:
CREATE TABLE table_name_34 (band VARCHAR, frequency VARCHAR, area_served VARCHAR) [/INST]
### Response:
SELECT band FROM table_name_34 WHERE frequency = "0 99.7" AND area_served = "newcastle" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Frequency of Gosford when the Callsign of 2cfm?
### Context:
CREATE TABLE table_name_5 (frequency VARCHAR, area_served VARCHAR, callsign VARCHAR) [/INST]
### Response:
SELECT frequency FROM table_name_5 WHERE area_served = "gosford" AND callsign = "2cfm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 On-air ID with the frequency of 105.9, and purpose of commercial?
### Context:
CREATE TABLE table_name_24 (on_air_id VARCHAR, frequency VARCHAR, purpose VARCHAR) [/INST]
### Response:
SELECT on_air_id FROM table_name_24 WHERE frequency = "105.9" AND purpose = "commercial" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Time/Retired has a Points that's smaller than 11 and has a Laps of 74?
### Context:
CREATE TABLE table_name_48 (time_retired VARCHAR, points VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_48 WHERE points < 11 AND laps = 74 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Time/Retired has a Laps of 86 and the Team of HVM Racing?
### Context:
CREATE TABLE table_name_73 (time_retired VARCHAR, laps VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_73 WHERE laps = 86 AND team = "hvm 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 Catalog number in France?
### Context:
CREATE TABLE table_name_19 (catalog VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT catalog FROM table_name_19 WHERE region = "france" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Format o Catalog F4 87199?
### Context:
CREATE TABLE table_name_99 (format VARCHAR, catalog VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_99 WHERE catalog = "f4 87199" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Region of Catalog 885 973-4?
### Context:
CREATE TABLE table_name_74 (region VARCHAR, catalog VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_74 WHERE catalog = "885 973-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 Catalog number in the Region of France?
### Context:
CREATE TABLE table_name_42 (catalog VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT catalog FROM table_name_42 WHERE region = "france" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people in total attended the game on 1 november 1997?
### Context:
CREATE TABLE table_name_37 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_37 WHERE date = "1 november 1997" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Wins of 3, and a Pos. larger than 3 is what average loses?
### Context:
CREATE TABLE table_name_75 (loses INTEGER, wins VARCHAR, pos VARCHAR) [/INST]
### Response:
SELECT AVG(loses) FROM table_name_75 WHERE wins = 3 AND pos > 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:
Matches larger than 5 is the sum of what position?
### Context:
CREATE TABLE table_name_67 (pos INTEGER, matches INTEGER) [/INST]
### Response:
SELECT SUM(pos) FROM table_name_67 WHERE matches > 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What years did Dwane Morrison had a pct less than 0.389 and losses less than 12?
### Context:
CREATE TABLE table_name_11 (years VARCHAR, name VARCHAR, pct VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_11 WHERE pct < 0.389 AND lost < 12 AND name = "dwane morrison" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 seasons did Charles C. Farrell coach?
### Context:
CREATE TABLE table_name_56 (seasons VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT COUNT(seasons) FROM table_name_56 WHERE name = "charles c. farrell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the average pct for George Felton when he had losses greater than 7?
### Context:
CREATE TABLE table_name_4 (pct INTEGER, lost VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT AVG(pct) FROM table_name_4 WHERE lost > 7 AND name = "george felton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Margin of victory has a Runner(s)-up of josé maria cañizares?
### Context:
CREATE TABLE table_name_38 (margin_of_victory VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT margin_of_victory FROM table_name_38 WHERE runner_s__up = "josé maria cañizares" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tournament has a Runner(s)-up of bob charles?
### Context:
CREATE TABLE table_name_49 (tournament VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_49 WHERE runner_s__up = "bob charles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning score on 7 jun 1976?
### Context:
CREATE TABLE table_name_4 (winning_score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT winning_score FROM table_name_4 WHERE date = "7 jun 1976" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Winning score has a Margin of victory of 1 stroke, and a Date of 21 jun 1981?
### Context:
CREATE TABLE table_name_19 (winning_score VARCHAR, margin_of_victory VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT winning_score FROM table_name_19 WHERE margin_of_victory = "1 stroke" AND date = "21 jun 1981" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the Winning score –5 (70-65-69-75=279)?
### Context:
CREATE TABLE table_name_92 (date VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_92 WHERE winning_score = –5(70 - 65 - 69 - 75 = 279) </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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(s)-up has a Winning score of –9 (71-68-72-68=279)?
### Context:
CREATE TABLE table_name_71 (runner_s__up VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_71 WHERE winning_score = –9(71 - 68 - 72 - 68 = 279) </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.