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:
Who is the spouse of the queen who is the daughter of Ferdinand I of the two sicilies?
### Context:
CREATE TABLE table_name_54 (spouse VARCHAR, father VARCHAR) [/INST]
### Response:
SELECT spouse FROM table_name_54 WHERE father = "ferdinand i of the two sicilies" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entered service date for serial number 85-1222?
### Context:
CREATE TABLE table_name_29 (entered_service VARCHAR, serial_no VARCHAR) [/INST]
### Response:
SELECT entered_service FROM table_name_29 WHERE serial_no = "85-1222" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 locomotive for the city of Benalla?
### Context:
CREATE TABLE table_name_44 (locomotive VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT locomotive FROM table_name_44 WHERE name = "city of benalla" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the locomotive n464?
### Context:
CREATE TABLE table_name_95 (name VARCHAR, locomotive VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_95 WHERE locomotive = "n464" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the locomotive n474?
### Context:
CREATE TABLE table_name_9 (name VARCHAR, locomotive VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_9 WHERE locomotive = "n474" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 windy hill?
### Context:
CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_40 WHERE venue = "windy hill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest crowd for an Away team of st kilda?
### Context:
CREATE TABLE table_name_32 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_32 WHERE away_team = "st kilda" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the match that had 119 points for played?
### Context:
CREATE TABLE table_name_55 (played_in VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT played_in FROM table_name_55 WHERE points_for = "119" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were 16 matches played?
### Context:
CREATE TABLE table_name_36 (played_in VARCHAR, matches VARCHAR) [/INST]
### Response:
SELECT played_in FROM table_name_36 WHERE matches = "16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What match had 240 points for?
### Context:
CREATE TABLE table_name_81 (matches VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT matches FROM table_name_81 WHERE points_for = "240" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on 26 July 1930?
### Context:
CREATE TABLE table_name_62 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_62 WHERE date = "26 july 1930" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Innes Ireland make when he had a grid more than 15?
### Context:
CREATE TABLE table_name_60 (laps VARCHAR, grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_60 WHERE grid > 15 AND driver = "innes ireland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for Jack Brabham with more than 65 laps?
### Context:
CREATE TABLE table_name_34 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT SUM(grid) FROM table_name_34 WHERE driver = "jack brabham" AND laps > 65 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grid 5?
### Context:
CREATE TABLE table_name_92 (driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_92 WHERE 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:
What is the date of the game with the Rockets as the visitor team?
### Context:
CREATE TABLE table_name_3 (date VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_3 WHERE visitor = "rockets" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 who played for the Rockets during 1981?
### Context:
CREATE TABLE table_name_88 (position VARCHAR, years_for_rockets VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_88 WHERE years_for_rockets = "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:
What school, club team, or country did the player with a number smaller than 4 come from?
### Context:
CREATE TABLE table_name_53 (school_club_team_country VARCHAR, no_s_ INTEGER) [/INST]
### Response:
SELECT school_club_team_country FROM table_name_53 WHERE no_s_ < 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 number of the player who came from Virginia?
### Context:
CREATE TABLE table_name_29 (no_s_ VARCHAR, school_club_team_country VARCHAR) [/INST]
### Response:
SELECT no_s_ FROM table_name_29 WHERE school_club_team_country = "virginia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 over 56 laps and a grid of 5?
### Context:
CREATE TABLE table_name_6 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_6 WHERE laps > 56 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:
Who is the driver when the tyre is p and the entrant is officine alfieri maserati?
### Context:
CREATE TABLE table_name_10 (driver VARCHAR, tyre VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_10 WHERE tyre = "p" AND entrant = "officine alfieri maserati" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the constructor when the chassis is talbot-lago t26c and the driver is charles pozzi?
### Context:
CREATE TABLE table_name_78 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_78 WHERE chassis = "talbot-lago t26c" AND driver = "charles pozzi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tyre when the entrant is sa alfa romeo and the driver is luigi fagioli?
### Context:
CREATE TABLE table_name_87 (tyre VARCHAR, entrant VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT tyre FROM table_name_87 WHERE entrant = "sa alfa romeo" AND driver = "luigi fagioli" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the entrant when the engine is talbot l6 and the driver is pierre levegh?
### Context:
CREATE TABLE table_name_90 (entrant VARCHAR, engine VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_90 WHERE engine = "talbot l6" AND driver = "pierre levegh" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the entrant when the chassis is ferrari 125?
### Context:
CREATE TABLE table_name_88 (entrant VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_88 WHERE chassis = "ferrari 125" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the engine when the tyre is d, the constructor is era and the driver is bob gerard?
### Context:
CREATE TABLE table_name_17 (engine VARCHAR, driver VARCHAR, tyre VARCHAR, constructor VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_17 WHERE tyre = "d" AND constructor = "era" AND driver = "bob gerard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score when the record was 39-62?
### Context:
CREATE TABLE table_name_29 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_29 WHERE record = "39-62" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when the record was 35-57?
### Context:
CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_14 WHERE record = "35-57" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 loss when the record was 34-56?
### Context:
CREATE TABLE table_name_20 (loss VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_20 WHERE record = "34-56" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the away team that played Geelong?
### Context:
CREATE TABLE table_name_37 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_37 WHERE home_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest crowd size for away team Fitzroy?
### Context:
CREATE TABLE table_name_40 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_40 WHERE away_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Builder has BR No. 30782?
### Context:
CREATE TABLE table_name_71 (builder VARCHAR, br_no VARCHAR) [/INST]
### Response:
SELECT builder FROM table_name_71 WHERE br_no = 30782 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episode with a production code of K1504?
### Context:
CREATE TABLE table_name_75 (title VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_75 WHERE production_code = "k1504" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the Series #s that were directed by Matthew Penn?
### Context:
CREATE TABLE table_name_42 (series__number INTEGER, directed_by VARCHAR) [/INST]
### Response:
SELECT AVG(series__number) FROM table_name_42 WHERE directed_by = "matthew penn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many episodes did Matthew Penn direct before season 22?
### Context:
CREATE TABLE table_name_20 (series__number VARCHAR, season__number VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT COUNT(series__number) FROM table_name_20 WHERE season__number < 22 AND directed_by = "matthew penn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Visiting Team(s) had an Attendance of over 18,680
### Context:
CREATE TABLE table_name_90 (visitor VARCHAR, attendance INTEGER) [/INST]
### Response:
SELECT visitor FROM table_name_90 WHERE attendance > 18 OFFSET 680 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nashville was the visiting team what was the lowest Attendance shown?
### Context:
CREATE TABLE table_name_34 (attendance INTEGER, visitor VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_34 WHERE visitor = "nashville" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the driver with 16 grids?
### Context:
CREATE TABLE table_name_81 (time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_81 WHERE grid = 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest grid for a time/retired of 1:56:18.22?
### Context:
CREATE TABLE table_name_89 (grid INTEGER, time_retired VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_89 WHERE time_retired = "1:56:18.22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent on September 28?
### Context:
CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_18 WHERE date = "september 28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent in the game with save ||33,389||87–62?
### Context:
CREATE TABLE table_name_58 (opponent VARCHAR, save VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_58 WHERE save = "||33,389||87–62" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the game with save ||33,723||93–64?
### Context:
CREATE TABLE table_name_76 (opponent VARCHAR, save VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_76 WHERE save = "||33,723||93–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 was the score on September 8?
### Context:
CREATE TABLE table_name_52 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_52 WHERE date = "september 8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which nationality has Years for Jazz of 1984-85?
### Context:
CREATE TABLE table_name_92 (nationality VARCHAR, years_for_jazz VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_92 WHERE years_for_jazz = "1984-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:
Which position has a Nationality of united states, and a Player of roger powell?
### Context:
CREATE TABLE table_name_9 (position VARCHAR, nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_9 WHERE nationality = "united states" AND player = "roger powell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does milt palacio play?
### Context:
CREATE TABLE table_name_48 (years_for_jazz VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT years_for_jazz FROM table_name_48 WHERE player = "milt palacio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years have a School/Club Team of colorado state?
### Context:
CREATE TABLE table_name_17 (years_for_jazz VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT years_for_jazz FROM table_name_17 WHERE school_club_team = "colorado 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:
During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured?
### Context:
CREATE TABLE table_name_64 (years VARCHAR, engine_code VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_64 WHERE engine_code = "m47d20" AND model = "318td (diesel)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Torque of the model with the engine code of M54B25?
### Context:
CREATE TABLE table_name_73 (torque VARCHAR, engine_code VARCHAR) [/INST]
### Response:
SELECT torque FROM table_name_73 WHERE engine_code = "m54b25" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Torque of the Model 320td (diesel)?
### Context:
CREATE TABLE table_name_27 (torque VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT torque FROM table_name_27 WHERE model = "320td (diesel)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which years was the model with the Engine code of m54b25 manufactured?
### Context:
CREATE TABLE table_name_11 (years VARCHAR, engine_code VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_11 WHERE engine_code = "m54b25" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 model was made from 2001–2004, with a Torque of n·m (lb·ft) @ 3750, and an Engine code of n42b18 / n46b18?
### Context:
CREATE TABLE table_name_72 (model VARCHAR, engine_code VARCHAR, years VARCHAR, torque VARCHAR) [/INST]
### Response:
SELECT model FROM table_name_72 WHERE years = "2001–2004" AND torque = "n·m (lb·ft) @ 3750" AND engine_code = "n42b18 / n46b18" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that had a score of 1-12?
### Context:
CREATE TABLE table_name_96 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_96 WHERE score = "1-12" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of the Mariners game that had an attendance of 6,707?
### Context:
CREATE TABLE table_name_8 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_8 WHERE attendance = "6,707" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that had a loss of Segui (0-5)?
### Context:
CREATE TABLE table_name_77 (date VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_77 WHERE loss = "segui (0-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 was the loss of the Mariners game that had an attendance of 9,065?
### Context:
CREATE TABLE table_name_91 (loss VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_91 WHERE attendance = "9,065" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Mariners opponent at the game attended by 7,893?
### Context:
CREATE TABLE table_name_49 (opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_49 WHERE attendance = "7,893" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tournament surface at Aptos?
### Context:
CREATE TABLE table_name_88 (surface VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_88 WHERE tournament = "aptos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 final score of the Paul Goldstein match?
### Context:
CREATE TABLE table_name_96 (score VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_96 WHERE opponent_in_the_final = "paul goldstein" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who played the final match on November 23, 1998?
### Context:
CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent_in_the_final FROM table_name_69 WHERE date = "november 23, 1998" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date did Paul Goldstein play the final?
### Context:
CREATE TABLE table_name_69 (date VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_69 WHERE opponent_in_the_final = "paul goldstein" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface type at Takao Suzuki?
### Context:
CREATE TABLE table_name_83 (surface VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_83 WHERE opponent_in_the_final = "takao suzuki" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 scores on September 11, 2006?
### Context:
CREATE TABLE table_name_95 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_95 WHERE date = "september 11, 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 did they lose to on may 9?
### Context:
CREATE TABLE table_name_83 (loss VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_83 WHERE date = "may 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 Pedro De La Rosa's total number of Grid?
### Context:
CREATE TABLE table_name_27 (grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_27 WHERE driver = "pedro de la rosa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructor has a Time/Retired of +37.311?
### Context:
CREATE TABLE table_name_91 (constructor VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_91 WHERE time_retired = "+37.311" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mika häkkinen
### Context:
CREATE TABLE table_name_38 (time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_38 WHERE driver = "mika häkkinen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title had an audience of 4.629.000?
### Context:
CREATE TABLE table_name_68 (title VARCHAR, audience VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_68 WHERE audience = "4.629.000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the audience for Episode 21?
### Context:
CREATE TABLE table_name_36 (audience VARCHAR, episode VARCHAR) [/INST]
### Response:
SELECT audience FROM table_name_36 WHERE episode = "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 share when the audience was 3.944.000?
### Context:
CREATE TABLE table_name_82 (share VARCHAR, audience VARCHAR) [/INST]
### Response:
SELECT share FROM table_name_82 WHERE audience = "3.944.000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the audience for Mi Amigo el Monstruo?
### Context:
CREATE TABLE table_name_74 (audience VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT audience FROM table_name_74 WHERE title = "mi amigo el monstruo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title has a share of 19,9%
### Context:
CREATE TABLE table_name_67 (title VARCHAR, share VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_67 WHERE share = "19,9%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which share had an audience of 4.693.000?
### Context:
CREATE TABLE table_name_12 (share VARCHAR, audience VARCHAR) [/INST]
### Response:
SELECT share FROM table_name_12 WHERE audience = "4.693.000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what was the venue that hosted Carlton as the away team?
### Context:
CREATE TABLE table_name_24 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_24 WHERE away_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of the Collingwood away game?
### Context:
CREATE TABLE table_name_38 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_38 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:
Who is the player that plays position c on the New York Knicks?
### Context:
CREATE TABLE table_name_54 (player VARCHAR, team VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_54 WHERE team = "new york knicks" AND position = "c" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position of the pick 1 player?
### Context:
CREATE TABLE table_name_42 (position VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_42 WHERE pick = "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:
Who is the player that plays position f from Fort Wayne Pistons?
### Context:
CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_89 WHERE team = "fort wayne pistons" AND position = "f" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round is the player from Oregon from?
### Context:
CREATE TABLE table_name_32 (round VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_32 WHERE college = "oregon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals for occurred when the goals against was less than 56 and games played was larger than 7 with less than 6 wins?
### Context:
CREATE TABLE table_name_37 (goals_for VARCHAR, wins VARCHAR, goals_against VARCHAR, games_played VARCHAR) [/INST]
### Response:
SELECT COUNT(goals_for) FROM table_name_37 WHERE goals_against < 56 AND games_played > 7 AND wins < 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest number of wins with 7 games played and goals against less than 46 when goals for is more than 34?
### Context:
CREATE TABLE table_name_93 (wins INTEGER, goals_for VARCHAR, games_played VARCHAR, goals_against VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_93 WHERE games_played = 7 AND goals_against < 46 AND goals_for > 34 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of ties when goals against is less than 56 for Ottawa Hockey Club and the goals for is more than 47?
### Context:
CREATE TABLE table_name_41 (ties INTEGER, goals_for VARCHAR, goals_against VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT AVG(ties) FROM table_name_41 WHERE goals_against < 56 AND team = "ottawa hockey club" AND goals_for > 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:
How many losses occurred with less than 8 games played and less than 3 wins?
### Context:
CREATE TABLE table_name_75 (losses VARCHAR, games_played VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_75 WHERE games_played < 8 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:
How many goals against were scored when the goals for is less than 48 with 0 ties?
### Context:
CREATE TABLE table_name_65 (goals_against VARCHAR, goals_for VARCHAR, ties VARCHAR) [/INST]
### Response:
SELECT COUNT(goals_against) FROM table_name_65 WHERE goals_for < 48 AND ties < 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 position for the player that is from valparaiso
### Context:
CREATE TABLE table_name_26 (position VARCHAR, school_club_team_country VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_26 WHERE school_club_team_country = "valparaiso" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 height in feet for the guard from north carolina-charlotte
### Context:
CREATE TABLE table_name_35 (height_in_ft VARCHAR, position VARCHAR, school_club_team_country VARCHAR) [/INST]
### Response:
SELECT height_in_ft FROM table_name_35 WHERE position = "guard" AND school_club_team_country = "north carolina-charlotte" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 height in feet for the player from valparaiso
### Context:
CREATE TABLE table_name_80 (height_in_ft VARCHAR, school_club_team_country VARCHAR) [/INST]
### Response:
SELECT height_in_ft FROM table_name_80 WHERE school_club_team_country = "valparaiso" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 school/club team/country for the player that is 6-5 ft
### Context:
CREATE TABLE table_name_11 (school_club_team_country VARCHAR, height_in_ft VARCHAR) [/INST]
### Response:
SELECT school_club_team_country FROM table_name_11 WHERE height_in_ft = "6-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:
Name the numbers for the player with a height in ft of 6-7 for the guard
### Context:
CREATE TABLE table_name_4 (no_s_ VARCHAR, height_in_ft VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT no_s_ FROM table_name_4 WHERE height_in_ft = "6-7" AND position = "guard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 height in ft for the player from wyoming
### Context:
CREATE TABLE table_name_59 (height_in_ft VARCHAR, school_club_team_country VARCHAR) [/INST]
### Response:
SELECT height_in_ft FROM table_name_59 WHERE school_club_team_country = "wyoming" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college did the Calgary Stampeders recruit from?
### Context:
CREATE TABLE table_name_29 (college VARCHAR, cfl_team VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_29 WHERE cfl_team = "calgary stampeders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has the Co-singer solo and a Film name of bhagya debata?
### Context:
CREATE TABLE table_name_87 (year INTEGER, co_singer VARCHAR, film_name VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_87 WHERE co_singer = "solo" AND film_name = "bhagya debata" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date is the Portuguese Grand Prix?
### Context:
CREATE TABLE table_name_30 (date VARCHAR, grand_prix VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_30 WHERE grand_prix = "portuguese grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver is located in Imola?
### Context:
CREATE TABLE table_name_48 (winning_driver VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_48 WHERE location = "imola" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pole Position of the Portuguese Grand Prix?
### Context:
CREATE TABLE table_name_98 (pole_position VARCHAR, grand_prix VARCHAR) [/INST]
### Response:
SELECT pole_position FROM table_name_98 WHERE grand_prix = "portuguese grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date did a race occur at Long Beach?
### Context:
CREATE TABLE table_name_76 (date VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_76 WHERE location = "long beach" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What race had Jody Scheckter hold pole position?
### Context:
CREATE TABLE table_name_63 (race VARCHAR, pole_position VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_63 WHERE pole_position = "jody scheckter" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who won the South African Grand Prix?
### Context:
CREATE TABLE table_name_63 (race VARCHAR) [/INST]
### Response:
SELECT race AS Winner FROM table_name_63 WHERE race = "south african grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the fastest lap at the German Grand Prix?
### Context:
CREATE TABLE table_name_87 (fastest_lap VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT fastest_lap FROM table_name_87 WHERE race = "german grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tyre for the united states grand prix?
### Context:
CREATE TABLE table_name_5 (tyre VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT tyre FROM table_name_5 WHERE race = "united states grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1948 og competition?
### Context:
CREATE TABLE table_name_59 (result VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_59 WHERE competition = "1948 og" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.