text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the combined attendance of all games that had a result of w 35-14?
### Context:
CREATE TABLE table_name_65 (attendance INTEGER, result VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_65 WHERE result = "w 35-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:
What is the sum of NGC numbers for Constellation vela?
### Context:
CREATE TABLE table_name_16 (ngc_number INTEGER, constellation VARCHAR) [/INST]
### Response:
SELECT SUM(ngc_number) FROM table_name_16 WHERE constellation = "vela" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Apparent magnitude of a globular cluster?
### Context:
CREATE TABLE table_name_78 (apparent_magnitude VARCHAR, object_type VARCHAR) [/INST]
### Response:
SELECT apparent_magnitude FROM table_name_78 WHERE object_type = "globular cluster" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of Apparent magnitudes for an NGC number larger than 3293?
### Context:
CREATE TABLE table_name_45 (apparent_magnitude INTEGER, ngc_number INTEGER) [/INST]
### Response:
SELECT SUM(apparent_magnitude) FROM table_name_45 WHERE ngc_number > 3293 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the money raised when 2Q has total receipts of $890,398
### Context:
CREATE TABLE table_name_22 (money_raised VARCHAR, _2q VARCHAR, total_receipts VARCHAR) [/INST]
### Response:
SELECT money_raised, _2q FROM table_name_22 WHERE total_receipts = "$890,398" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the total receipts for tom tancredo
### Context:
CREATE TABLE table_name_44 (total_receipts VARCHAR, candidate VARCHAR) [/INST]
### Response:
SELECT total_receipts FROM table_name_44 WHERE candidate = "tom tancredo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 money spent for 2Q having candidate of john mccain
### Context:
CREATE TABLE table_name_84 (money_spent VARCHAR, _2q VARCHAR, candidate VARCHAR) [/INST]
### Response:
SELECT money_spent, _2q FROM table_name_84 WHERE candidate = "john mccain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 loans received for 2Q having total receipts of $25,328,694
### Context:
CREATE TABLE table_name_95 (loans_received VARCHAR, _2q VARCHAR, total_receipts VARCHAR) [/INST]
### Response:
SELECT loans_received, _2q FROM table_name_95 WHERE total_receipts = "$25,328,694" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 collingwood was the away team, what was the home team?
### Context:
CREATE TABLE table_name_66 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_66 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the largest crowd size at arden street oval?
### Context:
CREATE TABLE table_name_58 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_58 WHERE venue = "arden street oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the work number for Victor?
### Context:
CREATE TABLE table_name_80 (works_number VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT works_number FROM table_name_80 WHERE name = "victor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 building year for Superb?
### Context:
CREATE TABLE table_name_75 (built INTEGER, name VARCHAR) [/INST]
### Response:
SELECT AVG(built) FROM table_name_75 WHERE name = "superb" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of assists for players that are f/c and have under 13 rebounds?
### Context:
CREATE TABLE table_name_38 (asts INTEGER, pos VARCHAR, rebs VARCHAR) [/INST]
### Response:
SELECT MAX(asts) FROM table_name_38 WHERE pos = "f/c" AND rebs < 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score in the match against Sanaz Marand?
### Context:
CREATE TABLE table_name_54 (score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_54 WHERE opponent = "sanaz marand" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What tournament was held on 21 May 2006?
### Context:
CREATE TABLE table_name_80 (tournament VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_80 WHERE date = "21 may 2006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who has the low lap total in a maserati with grid 2?
### Context:
CREATE TABLE table_name_47 (laps INTEGER, constructor VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_47 WHERE constructor = "maserati" AND grid = 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 is the highest round number with a time of 4:39?
### Context:
CREATE TABLE table_name_28 (round INTEGER, time VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_28 WHERE time = "4:39" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record has a time of 0:13?
### Context:
CREATE TABLE table_name_87 (record VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_87 WHERE time = "0:13" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result for rounds under 2 against D.J. Linderman?
### Context:
CREATE TABLE table_name_44 (res VARCHAR, round VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT res FROM table_name_44 WHERE round < 2 AND opponent = "d.j. linderman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crowd size when the Home team is melbourne?
### Context:
CREATE TABLE table_name_48 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_48 WHERE home_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Venue is the one for the footscray Home team?
### Context:
CREATE TABLE table_name_73 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_73 WHERE home_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Year is the lowest when the Viewers are 13.7 million?
### Context:
CREATE TABLE table_name_7 (year INTEGER, viewers VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_7 WHERE viewers = "13.7 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 Ratings did the 2013 Year have?
### Context:
CREATE TABLE table_name_23 (ratings VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT ratings FROM table_name_23 WHERE year = 2013 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Network has 16.0 million Viewers?
### Context:
CREATE TABLE table_name_67 (network VARCHAR, viewers VARCHAR) [/INST]
### Response:
SELECT network FROM table_name_67 WHERE viewers = "16.0 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 Lap-by-lap has Chris Myers as the Pre-Race Host, a Year larger than 2008, and 9.9/22 as its Ratings?
### Context:
CREATE TABLE table_name_48 (lap_by_lap VARCHAR, ratings VARCHAR, year VARCHAR, pre_race_host VARCHAR) [/INST]
### Response:
SELECT lap_by_lap FROM table_name_48 WHERE year > 2008 AND pre_race_host = "chris myers" AND ratings = "9.9/22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Network has 17.5 million Viewers?
### Context:
CREATE TABLE table_name_99 (network VARCHAR, viewers VARCHAR) [/INST]
### Response:
SELECT network FROM table_name_99 WHERE viewers = "17.5 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:
Who was driving the Maserati with a Grid smaller than 6, and a Time/Retired of +2 laps?
### Context:
CREATE TABLE table_name_39 (driver VARCHAR, time_retired VARCHAR, constructor VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_39 WHERE constructor = "maserati" AND grid < 6 AND time_retired = "+2 laps" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Grid for a Maserati with less than 80 laps, and a Time/Retired of +2 laps?
### Context:
CREATE TABLE table_name_76 (grid INTEGER, time_retired VARCHAR, laps VARCHAR, constructor VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_76 WHERE laps < 80 AND constructor = "maserati" AND time_retired = "+2 laps" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were the lowest laps of Luigi Musso driving a Ferrari with a Grid larger than 2?
### Context:
CREATE TABLE table_name_31 (laps INTEGER, driver VARCHAR, constructor VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_31 WHERE constructor = "ferrari" AND grid > 2 AND driver = "luigi musso" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the Mariners game when they had a record of 56–21?
### Context:
CREATE TABLE table_name_91 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_91 WHERE record = "56–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:
What was the date of the Mariners game when they had a record of 53–17?
### Context:
CREATE TABLE table_name_49 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_49 WHERE record = "53–17" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance of the Mariners game when they had a record of 56–20?
### Context:
CREATE TABLE table_name_85 (attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_85 WHERE record = "56–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 college did Matt Freeman go to?
### Context:
CREATE TABLE table_name_46 (college VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_46 WHERE player = "matt freeman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What college did the placekicker go to?
### Context:
CREATE TABLE table_name_67 (college VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_67 WHERE position = "placekicker" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position of the player that went to warren central high school?
### Context:
CREATE TABLE table_name_35 (position VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_35 WHERE school = "warren central high school" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which opponent's march was 31?
### Context:
CREATE TABLE table_name_19 (opponent VARCHAR, march VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_19 WHERE march = 31 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score's game was less than 69 when the march was bigger than 2 and the opponents were the New York Islanders?
### Context:
CREATE TABLE table_name_80 (score VARCHAR, opponent VARCHAR, game VARCHAR, march VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_80 WHERE game < 69 AND march > 2 AND opponent = "new york islanders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which opponent's game was less than 76 when the march was 10?
### Context:
CREATE TABLE table_name_45 (opponent VARCHAR, game VARCHAR, march VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_45 WHERE game < 76 AND march = 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:
What was North Melbourne's score as the home team?
### Context:
CREATE TABLE table_name_30 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_30 WHERE home_team = "north melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the time/retired for phil hill with over 67 laps and a grad smaller than 18?
### Context:
CREATE TABLE table_name_29 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_29 WHERE laps > 67 AND grid < 18 AND driver = "phil hill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was relegated in the 2006 season?
### Context:
CREATE TABLE table_name_48 (relegated VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT relegated FROM table_name_48 WHERE season = "2006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What season was Norwich Union League promoted?
### Context:
CREATE TABLE table_name_22 (season VARCHAR, promoted VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_22 WHERE promoted = "norwich union league" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What show has a boar?
### Context:
CREATE TABLE table_name_33 (tv_series VARCHAR, species VARCHAR) [/INST]
### Response:
SELECT tv_series FROM table_name_33 WHERE species = "boar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What animal was yes for tv series and was a terrapins?
### Context:
CREATE TABLE table_name_98 (animal_name VARCHAR, tv_series VARCHAR, species VARCHAR) [/INST]
### Response:
SELECT animal_name FROM table_name_98 WHERE tv_series = "yes" AND species = "terrapins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest season for a tv series with a yes and human was the species?
### Context:
CREATE TABLE table_name_58 (tv_seasons INTEGER, tv_series VARCHAR, species VARCHAR) [/INST]
### Response:
SELECT MIN(tv_seasons) FROM table_name_58 WHERE tv_series = "yes" AND species = "human" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mate for Last Appearance of bully, bully, bully (3x13) for the animal named hollow/holly later than season 1?
### Context:
CREATE TABLE table_name_48 (mate VARCHAR, animal_name VARCHAR, tv_seasons VARCHAR, last_appearance VARCHAR) [/INST]
### Response:
SELECT mate FROM table_name_48 WHERE tv_seasons > 1 AND last_appearance = "bully, bully, bully (3x13)" AND animal_name = "hollow/holly" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grids for peter collins?
### Context:
CREATE TABLE table_name_71 (grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_71 WHERE driver = "peter collins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high grid for ferrari's with 2 laps?
### Context:
CREATE TABLE table_name_45 (grid INTEGER, constructor VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_45 WHERE constructor = "ferrari" AND laps = 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:
Who drove the car with over 66 laps with a grid of 5?
### Context:
CREATE TABLE table_name_27 (driver VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_27 WHERE laps > 66 AND grid = 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:
When was the tournament at Orange?
### Context:
CREATE TABLE table_name_30 (date VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_30 WHERE tournament = "orange" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What kind of surface was the Tournament at Sunderland played on?
### Context:
CREATE TABLE table_name_32 (surface VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_32 WHERE tournament = "sunderland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What kind of surface was the tournament at Pune played on?
### Context:
CREATE TABLE table_name_56 (surface VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_56 WHERE tournament = "pune" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the tournament against Isha Lakhani?
### Context:
CREATE TABLE table_name_80 (score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_80 WHERE opponent = "isha lakhani" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that ended in a record of 8-25-7?
### Context:
CREATE TABLE table_name_21 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_21 WHERE record = "8-25-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 was the home team when the visiting team was Toronto?
### Context:
CREATE TABLE table_name_22 (home VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_22 WHERE visitor = "toronto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What College/junior/club team (league) did mitch fadden play for?
### Context:
CREATE TABLE table_name_14 (college_junior_club_team__league_ VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college_junior_club_team__league_ FROM table_name_14 WHERE player = "mitch fadden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When is the last week that has a result of a w 34-21?
### Context:
CREATE TABLE table_name_10 (week INTEGER, result VARCHAR) [/INST]
### Response:
SELECT MAX(week) FROM table_name_10 WHERE result = "w 34-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:
What is the method where there is a loss with time 5:00?
### Context:
CREATE TABLE table_name_76 (method VARCHAR, res VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_76 WHERE res = "loss" AND time = "5:00" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 method when the time was 1:01?
### Context:
CREATE TABLE table_name_51 (method VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_51 WHERE time = "1: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:
What was the crowd when the away team is footscray?
### Context:
CREATE TABLE table_name_26 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_26 WHERE away_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the home team score at lake oval?
### Context:
CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_45 WHERE venue = "lake oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score for south melbourne at home?
### Context:
CREATE TABLE table_name_2 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_2 WHERE home_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many high assists did the Lakers have?
### Context:
CREATE TABLE table_name_84 (high_assists VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_name_84 WHERE team = "lakers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHat was the result of the friendly match that was played on october 8, 2012?
### Context:
CREATE TABLE table_name_6 (result VARCHAR, competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_6 WHERE competition = "friendly match" AND date = "october 8, 2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the competition that took place on may 31, 2008?
### Context:
CREATE TABLE table_name_14 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_14 WHERE date = "may 31, 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
During the loss on march 26, 2005, what was the venue where the match was played?
### Context:
CREATE TABLE table_name_10 (venue VARCHAR, result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_10 WHERE result = "loss" AND date = "march 26, 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:
What is the average number of laps that has a Time/Retired of +1 lap, a Driver of olivier panis, and a Grid larger than 4?
### Context:
CREATE TABLE table_name_70 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_70 WHERE time_retired = "+1 lap" AND driver = "olivier panis" AND grid > 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 constructor has under 62 laps, a Time/Retired of gearbox, a Grid larger than 1, and pedro diniz driving?
### Context:
CREATE TABLE table_name_19 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_19 WHERE laps < 62 AND time_retired = "gearbox" AND grid > 1 AND driver = "pedro diniz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with 60 laps and a grid 19?
### Context:
CREATE TABLE table_name_19 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_19 WHERE laps = 60 AND grid = 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 did the away team score when the home team was south melbourne?
### Context:
CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_80 WHERE home_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the away team at western oval?
### Context:
CREATE TABLE table_name_28 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_28 WHERE venue = "western oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team played away at vfl park?
### Context:
CREATE TABLE table_name_13 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_13 WHERE venue = "vfl park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did carlton score while away?
### Context:
CREATE TABLE table_name_65 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_65 WHERE away_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the home team in the game where North Melbourne was the away team?
### Context:
CREATE TABLE table_name_25 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_25 WHERE away_team = "north melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the home team that played in Victoria Park?
### Context:
CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_32 WHERE venue = "victoria park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the highest crowd in Victoria Park?
### Context:
CREATE TABLE table_name_74 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_74 WHERE venue = "victoria park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people were in the crowd with the away team being collingwood?
### Context:
CREATE TABLE table_name_5 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_5 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the away team for essendon
### Context:
CREATE TABLE table_name_69 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_69 WHERE home_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest number of laps with a Grid larger than 14, a Time/Retired of + 2 laps, and a Driver of helmut marko?
### Context:
CREATE TABLE table_name_30 (laps INTEGER, driver VARCHAR, grid VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_30 WHERE grid > 14 AND time_retired = "+ 2 laps" AND driver = "helmut marko" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grid has less than 11 laps, and a Time/Retired of accident?
### Context:
CREATE TABLE table_name_99 (grid INTEGER, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_99 WHERE laps < 11 AND time_retired = "accident" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grids for peter gethin?
### Context:
CREATE TABLE table_name_58 (grid INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT SUM(grid) FROM table_name_58 WHERE driver = "peter gethin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grids does dave walker have?
### Context:
CREATE TABLE table_name_6 (grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_6 WHERE driver = "dave walker" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid with matra as constructor?
### Context:
CREATE TABLE table_name_17 (grid INTEGER, constructor VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_17 WHERE constructor = "matra" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 catalogue number for the song that is 3:17 and was released 9/21/71?
### Context:
CREATE TABLE table_name_94 (catalogue VARCHAR, release_date VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT catalogue FROM table_name_94 WHERE release_date = "9/21/71" AND time = "3:17" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest track for Burning Love?
### Context:
CREATE TABLE table_name_75 (track INTEGER, song_title VARCHAR) [/INST]
### Response:
SELECT MAX(track) FROM table_name_75 WHERE song_title = "burning love" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Heart of Rome's catalogue number?
### Context:
CREATE TABLE table_name_73 (catalogue VARCHAR, song_title VARCHAR) [/INST]
### Response:
SELECT catalogue FROM table_name_73 WHERE song_title = "heart of rome" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 song was released 12/8/70 with a time of 2:54?
### Context:
CREATE TABLE table_name_19 (song_title VARCHAR, release_date VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT song_title FROM table_name_19 WHERE release_date = "12/8/70" AND time = "2:54" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many laps did Ricardo Zonta have?
### Context:
CREATE TABLE table_name_69 (laps INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_69 WHERE driver = "ricardo zonta" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver with a grid less than 14, laps smaller than 53 and a Time/Retired of collision, and a Constructor of ferrari?
### Context:
CREATE TABLE table_name_58 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_58 WHERE grid < 14 AND laps < 53 AND time_retired = "collision" AND constructor = "ferrari" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid number with less than 52 laps and a Time/Retired of collision, and a Constructor of arrows - supertec?
### Context:
CREATE TABLE table_name_42 (grid VARCHAR, constructor VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_42 WHERE laps < 52 AND time_retired = "collision" AND constructor = "arrows - supertec" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Laps for a grid smaller than 17, and a Constructor of williams - bmw, driven by jenson button?
### Context:
CREATE TABLE table_name_49 (laps INTEGER, driver VARCHAR, grid VARCHAR, constructor VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_49 WHERE grid < 17 AND constructor = "williams - bmw" AND driver = "jenson button" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Venue was victoria park, what was the Away team score?
### Context:
CREATE TABLE table_name_61 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_61 WHERE venue = "victoria park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the Home team of carlton played, what was their score?
### Context:
CREATE TABLE table_name_93 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_93 WHERE home_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the lost with tie of 0 and drawn of 47
### Context:
CREATE TABLE table_name_20 (lost VARCHAR, tied VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT lost FROM table_name_20 WHERE tied = "0" AND drawn = "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:
Name the tie that has 71 drawn
### Context:
CREATE TABLE table_name_1 (tied VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT tied FROM table_name_1 WHERE drawn = "71" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want to know the drawn that has a tie of 0 and the player is chris cowdrey
### Context:
CREATE TABLE table_name_25 (drawn VARCHAR, tied VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT drawn FROM table_name_25 WHERE tied = "0" AND player = "chris cowdrey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want to know the tie for drawn of 47
### Context:
CREATE TABLE table_name_46 (tied VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT tied FROM table_name_46 WHERE drawn = "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 name shows as private authority and hibiscus and bays local board ?
### Context:
CREATE TABLE table_name_70 (name VARCHAR, authority VARCHAR, local_board VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_70 WHERE authority = "private" AND local_board = "hibiscus and bays" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the local board is albert–eden, and a Decile of 9?
### Context:
CREATE TABLE table_name_36 (name VARCHAR, local_board VARCHAR, decile VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_36 WHERE local_board = "albert–eden" AND decile = "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 name of the suburb with a roll of 741?
### Context:
CREATE TABLE table_name_60 (suburb VARCHAR, roll VARCHAR) [/INST]
### Response:
SELECT suburb FROM table_name_60 WHERE roll = 741 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.