text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Average Cards a game has a Season of 1997/1998, and a Games larger than 38?
### Context:
CREATE TABLE table_name_78 (average_cards_a_game INTEGER, season VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT MAX(average_cards_a_game) FROM table_name_78 WHERE season = "1997/1998" AND games > 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Red Cards has a Season of 1998/1999, and a Games larger than 41?
### Context:
CREATE TABLE table_name_55 (red_cards INTEGER, season VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT MIN(red_cards) FROM table_name_55 WHERE season = "1998/1999" AND games > 41 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Games has a Season of 2003/2004, and a Red Cards smaller than 5?
### Context:
CREATE TABLE table_name_65 (games INTEGER, season VARCHAR, red_cards VARCHAR) [/INST]
### Response:
SELECT AVG(games) FROM table_name_65 WHERE season = "2003/2004" AND red_cards < 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:
Which Average Cards a game has a Season of 2004/2005, and a Red Cards larger than 3?
### Context:
CREATE TABLE table_name_22 (average_cards_a_game INTEGER, season VARCHAR, red_cards VARCHAR) [/INST]
### Response:
SELECT MIN(average_cards_a_game) FROM table_name_22 WHERE season = "2004/2005" AND red_cards > 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:
Which Yellow Cards has a Season of 1999/2000?
### Context:
CREATE TABLE table_name_75 (yellow_cards INTEGER, season VARCHAR) [/INST]
### Response:
SELECT AVG(yellow_cards) FROM table_name_75 WHERE season = "1999/2000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Goals have Ends of 30 june 2010, and Since larger than 2007?
### Context:
CREATE TABLE table_name_14 (goals VARCHAR, ends VARCHAR, since VARCHAR) [/INST]
### Response:
SELECT goals FROM table_name_14 WHERE ends = "30 june 2010" AND since > 2007 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Name has Ends of 30 june 2010, and a Nation of eng, and Since larger than 2007?
### Context:
CREATE TABLE table_name_2 (name VARCHAR, since VARCHAR, ends VARCHAR, nat VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_2 WHERE ends = "30 june 2010" AND nat = "eng" AND since > 2007 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was Bryan Clay's react time?
### Context:
CREATE TABLE table_name_94 (react INTEGER, name VARCHAR) [/INST]
### Response:
SELECT MIN(react) FROM table_name_94 WHERE name = "bryan clay" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country did Dmitriy Karpov represent?
### Context:
CREATE TABLE table_name_92 (country VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_92 WHERE name = "dmitriy karpov" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Plural, when Singular is tor (your)?
### Context:
CREATE TABLE table_name_33 (plural VARCHAR, singular VARCHAR) [/INST]
### Response:
SELECT plural FROM table_name_33 WHERE singular = "tor (your)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Proximity, when Honor is P, and when Singular is ẽr (his/her/its)?
### Context:
CREATE TABLE table_name_2 (proximity VARCHAR, honor VARCHAR, singular VARCHAR) [/INST]
### Response:
SELECT proximity FROM table_name_2 WHERE honor = "p" AND singular = "ẽr (his/her/its)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Subject, when Plural is tãder (their)?
### Context:
CREATE TABLE table_name_58 (subject INTEGER, plural VARCHAR) [/INST]
### Response:
SELECT MIN(subject) FROM table_name_58 WHERE plural = "tãder (their)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Proximity, when Plural is amader (our)?
### Context:
CREATE TABLE table_name_67 (proximity VARCHAR, plural VARCHAR) [/INST]
### Response:
SELECT proximity FROM table_name_67 WHERE plural = "amader (our)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Honor, when Singular is ẽr (his/her/its)?
### Context:
CREATE TABLE table_name_97 (honor VARCHAR, singular VARCHAR) [/INST]
### Response:
SELECT honor FROM table_name_97 WHERE singular = "ẽr (his/her/its)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 f/laps when the season is 2011 and races is 18?
### Context:
CREATE TABLE table_name_16 (f_laps VARCHAR, season VARCHAR, races VARCHAR) [/INST]
### Response:
SELECT f_laps FROM table_name_16 WHERE season = "2011" AND races = "18" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the wins when the f/laps is test driver and team is lotus racing?
### Context:
CREATE TABLE table_name_20 (wins VARCHAR, f_laps VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT wins FROM table_name_20 WHERE f_laps = "test driver" AND team = "lotus racing" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the poles when the wins is 0 and points is 0?
### Context:
CREATE TABLE table_name_86 (poles VARCHAR, wins VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT poles FROM table_name_86 WHERE wins = "0" AND points = "0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What score won $36,090?
### Context:
CREATE TABLE table_name_65 (score VARCHAR, money___$__ VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_65 WHERE money___$__ = "36,090" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Larry Nelson's final score?
### Context:
CREATE TABLE table_name_39 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_39 WHERE player = "larry nelson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance of the game with 38 opponent and less than 14 Falcons points?
### Context:
CREATE TABLE table_name_63 (attendance INTEGER, opponents VARCHAR, falcons_points VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_63 WHERE opponents = 38 AND falcons_points < 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 total number of losses of the team with games less than 14, wins less than 3, in the Maac Conference at Fairfield School?
### Context:
CREATE TABLE table_name_61 (losses VARCHAR, school VARCHAR, conference VARCHAR, games VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_61 WHERE games < 14 AND wins < 3 AND conference = "maac" AND school = "fairfield" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number 4's title?
### Context:
CREATE TABLE table_name_36 (title VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_36 WHERE number = 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people were born in 1368?
### Context:
CREATE TABLE table_name_52 (number VARCHAR, born VARCHAR) [/INST]
### Response:
SELECT COUNT(number) FROM table_name_52 WHERE born = "1368" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number 12's mother?
### Context:
CREATE TABLE table_name_90 (mother VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT mother FROM table_name_90 WHERE number = 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 week number when they played on Dec. 19?
### Context:
CREATE TABLE table_name_79 (week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(week) FROM table_name_79 WHERE date = "dec. 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 is the average number of students in East Lansing, MI?
### Context:
CREATE TABLE table_name_70 (founded INTEGER, location VARCHAR) [/INST]
### Response:
SELECT AVG(founded) FROM table_name_70 WHERE location = "east lansing, mi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of students at the community college?
### Context:
CREATE TABLE table_name_8 (founded INTEGER, affiliation VARCHAR) [/INST]
### Response:
SELECT MIN(founded) FROM table_name_8 WHERE affiliation = "community college" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Joanne Carner's average score in Canadian Women's Open games that she has won?
### Context:
CREATE TABLE table_name_70 (score INTEGER, champion VARCHAR) [/INST]
### Response:
SELECT AVG(score) FROM table_name_70 WHERE champion = "joanne carner" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country does jocelyne bourassa play for?
### Context:
CREATE TABLE table_name_73 (country VARCHAR, champion VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_73 WHERE champion = "jocelyne bourassa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Performance has a Test Standard of bs en779, and a Particulate size approaching 100% retention of >2µm, and a Class of f6?
### Context:
CREATE TABLE table_name_39 (performance VARCHAR, class VARCHAR, test_standard VARCHAR, particulate_size_approaching_100_percentage_retention VARCHAR) [/INST]
### Response:
SELECT performance FROM table_name_39 WHERE test_standard = "bs en779" AND particulate_size_approaching_100_percentage_retention = ">2µm" AND class = "f6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Performance has a Usage of hepa and a Class of h14?
### Context:
CREATE TABLE table_name_38 (performance VARCHAR, usage VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT performance FROM table_name_38 WHERE usage = "hepa" AND class = "h14" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Particulate size approaching 100% retention has a Usage of semi hepa and a Class of h12?
### Context:
CREATE TABLE table_name_47 (particulate_size_approaching_100_percentage_retention VARCHAR, usage VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT particulate_size_approaching_100_percentage_retention FROM table_name_47 WHERE usage = "semi hepa" AND class = "h12" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Test Standard has a Usage of secondary filters, and a Class of f5? Question 4
### Context:
CREATE TABLE table_name_28 (test_standard VARCHAR, usage VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT test_standard FROM table_name_28 WHERE usage = "secondary filters" AND class = "f5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a To par of –1, and a Player of mick soli?
### Context:
CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_7 WHERE to_par = "–1" AND player = "mick soli" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Place of t1, and a Player of hubert green?
### Context:
CREATE TABLE table_name_35 (score INTEGER, place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT AVG(score) FROM table_name_35 WHERE place = "t1" AND player = "hubert green" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Country has a Score of 69, and a Player of mick soli?
### Context:
CREATE TABLE table_name_92 (country VARCHAR, score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_92 WHERE score = 69 AND player = "mick soli" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Country has a Place of t1?
### Context:
CREATE TABLE table_name_38 (country VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_38 WHERE place = "t1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where is the moving from location with a transfer window of summer and the source kerkida.net?
### Context:
CREATE TABLE table_name_88 (moving_from VARCHAR, transfer_window VARCHAR, source VARCHAR) [/INST]
### Response:
SELECT moving_from FROM table_name_88 WHERE transfer_window = "summer" AND source = "kerkida.net" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name has the source apoelfc.com.cy and a type of transfer?
### Context:
CREATE TABLE table_name_94 (name VARCHAR, source VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_94 WHERE source = "apoelfc.com.cy" AND type = "transfer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Fate of the San Pablo ship?
### Context:
CREATE TABLE table_name_48 (fate VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT fate FROM table_name_48 WHERE name = "san pablo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attack of the Circe Shell Ship?
### Context:
CREATE TABLE table_name_55 (date VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_55 WHERE name = "circe shell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What fuel system was used in 1960-62?
### Context:
CREATE TABLE table_name_95 (fuel_system VARCHAR, years VARCHAR) [/INST]
### Response:
SELECT fuel_system FROM table_name_95 WHERE years = "1960-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:
How much power does the 1500 model have with a displacement of 1490cc?
### Context:
CREATE TABLE table_name_22 (power VARCHAR, model VARCHAR, displacement VARCHAR) [/INST]
### Response:
SELECT power FROM table_name_22 WHERE model = "1500" AND displacement = "1490cc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 displacement of 1816cc?
### Context:
CREATE TABLE table_name_44 (years VARCHAR, displacement VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_44 WHERE displacement = "1816cc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 much power does the fuel injection system have with a displacement of 1991cc?
### Context:
CREATE TABLE table_name_47 (power VARCHAR, fuel_system VARCHAR, displacement VARCHAR) [/INST]
### Response:
SELECT power FROM table_name_47 WHERE fuel_system = "fuel injection" AND displacement = "1991cc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fuel system has a displacement of 1490cc?
### Context:
CREATE TABLE table_name_68 (fuel_system VARCHAR, displacement VARCHAR) [/INST]
### Response:
SELECT fuel_system FROM table_name_68 WHERE displacement = "1490cc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fuel system has a displacement of 1500cc for the Berlina model?
### Context:
CREATE TABLE table_name_71 (fuel_system VARCHAR, displacement VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT fuel_system FROM table_name_71 WHERE displacement = "1500cc" AND model = "berlina" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Industry, when Year is greater than 2005, and when Agriculture is greater than 11?
### Context:
CREATE TABLE table_name_96 (industry INTEGER, year VARCHAR, agriculture VARCHAR) [/INST]
### Response:
SELECT MIN(industry) FROM table_name_96 WHERE year > 2005 AND agriculture > 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Industry, when Agriculture is greater than 11?
### Context:
CREATE TABLE table_name_44 (industry INTEGER, agriculture INTEGER) [/INST]
### Response:
SELECT AVG(industry) FROM table_name_44 WHERE agriculture > 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the points scored was over 110.25%, what's the average amount lost?
### Context:
CREATE TABLE table_name_69 (lost INTEGER, _percentage_pts INTEGER) [/INST]
### Response:
SELECT AVG(lost) FROM table_name_69 WHERE _percentage_pts > 110.25 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the points scored were 93.45%, what's the lowest amount of games lost?
### Context:
CREATE TABLE table_name_27 (lost INTEGER, _percentage_pts VARCHAR) [/INST]
### Response:
SELECT MIN(lost) FROM table_name_27 WHERE _percentage_pts = 93.45 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the rank of the film directed by Kevin Costner?
### Context:
CREATE TABLE table_name_14 (rank VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT COUNT(rank) FROM table_name_14 WHERE director = "kevin costner" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What director grossed $200,512,643
### Context:
CREATE TABLE table_name_96 (director VARCHAR, gross VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_96 WHERE gross = "$200,512,643" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank of the movie from Paramount Studios that grossed $200,512,643?
### Context:
CREATE TABLE table_name_26 (rank INTEGER, studio VARCHAR, gross VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_26 WHERE studio = "paramount" AND gross = "$200,512,643" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 directed Teenage Mutant Ninja Turtles?
### Context:
CREATE TABLE table_name_81 (director VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_81 WHERE title = "teenage mutant ninja turtles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What director ranked higher than 1 from Universal Studios and grossed $201,957,688?
### Context:
CREATE TABLE table_name_17 (director VARCHAR, gross VARCHAR, rank VARCHAR, studio VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_17 WHERE rank > 1 AND studio = "universal" AND gross = "$201,957,688" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rider is Garry Mccoy and the manufacturer was Kawasaki, what was the time retired?
### Context:
CREATE TABLE table_name_94 (time_retired VARCHAR, manufacturer VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_94 WHERE manufacturer = "kawasaki" AND rider = "garry mccoy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest amount of laps Garry Mccoy drove?
### Context:
CREATE TABLE table_name_73 (laps INTEGER, rider VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_73 WHERE rider = "garry mccoy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the manufacturer is Proton Kr and the grid was over 10, what was the time retired?
### Context:
CREATE TABLE table_name_79 (time_retired VARCHAR, grid VARCHAR, manufacturer VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_79 WHERE grid > 10 AND manufacturer = "proton kr" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The year 1974 has what listed as the Height?
### Context:
CREATE TABLE table_name_38 (height VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT height FROM table_name_38 WHERE year = 1974 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The OMEGA transmitter Chabrier has what country listed?
### Context:
CREATE TABLE table_name_59 (country VARCHAR, structure VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_59 WHERE structure = "omega transmitter chabrier" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Listed with a continent of Africa and before 2009 this structure is called what?
### Context:
CREATE TABLE table_name_83 (structure VARCHAR, year VARCHAR, continent VARCHAR) [/INST]
### Response:
SELECT structure FROM table_name_83 WHERE year < 2009 AND continent = "africa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The year 1972 has what written in Height column?
### Context:
CREATE TABLE table_name_40 (height VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT height FROM table_name_40 WHERE year = 1972 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Continent that also has the United States listed as a country?
### Context:
CREATE TABLE table_name_30 (continent VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT continent FROM table_name_30 WHERE country = "united states" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ends won of 47 Ends Lost and a Shot % less than 73?
### Context:
CREATE TABLE table_name_4 (ends_won INTEGER, ends_lost VARCHAR, shot__percentage VARCHAR) [/INST]
### Response:
SELECT MAX(ends_won) FROM table_name_4 WHERE ends_lost = 47 AND shot__percentage < 73 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Poll was on April 14 of 13?
### Context:
CREATE TABLE table_name_71 (poll VARCHAR, april_14 VARCHAR) [/INST]
### Response:
SELECT poll FROM table_name_71 WHERE april_14 = "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 rank for Mar 17 when the April 21 rank is 10?
### Context:
CREATE TABLE table_name_96 (mar_17 VARCHAR, april_21 VARCHAR) [/INST]
### Response:
SELECT mar_17 FROM table_name_96 WHERE april_21 = "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 is the Mar 24 rank when the May 26 is 13, and the May 12 is 6?
### Context:
CREATE TABLE table_name_93 (mar_24 VARCHAR, may_26 VARCHAR, may_12 VARCHAR) [/INST]
### Response:
SELECT mar_24 FROM table_name_93 WHERE may_26 = "13" AND may_12 = "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 April 28 rank when the Mar 24 is 17?
### Context:
CREATE TABLE table_name_92 (april_28 VARCHAR, mar_24 VARCHAR) [/INST]
### Response:
SELECT april_28 FROM table_name_92 WHERE mar_24 = "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 April 14 rank when the Mar 3rd is nr, and the April 21 is 13?
### Context:
CREATE TABLE table_name_78 (april_14 VARCHAR, mar_3 VARCHAR, april_21 VARCHAR) [/INST]
### Response:
SELECT april_14 FROM table_name_78 WHERE mar_3 = "nr" AND april_21 = "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 April 28th rank when the Final is 20, and Mar 17 is 22?
### Context:
CREATE TABLE table_name_91 (april_28 VARCHAR, final VARCHAR, mar_17 VARCHAR) [/INST]
### Response:
SELECT april_28 FROM table_name_91 WHERE final = "20" AND mar_17 = "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:
What is the total number of Podiums, when Position is "2nd", when Wins is less than 6, and when Poles is greater than 0?
### Context:
CREATE TABLE table_name_31 (podiums VARCHAR, poles VARCHAR, position VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(podiums) FROM table_name_31 WHERE position = "2nd" AND wins < 6 AND poles > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Poles, when Season is greater than 2004, and when Podiums is less than 1?
### Context:
CREATE TABLE table_name_64 (poles INTEGER, season VARCHAR, podiums VARCHAR) [/INST]
### Response:
SELECT SUM(poles) FROM table_name_64 WHERE season < 2004 AND podiums < 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Poles, when Wins is 0, when Position is "nc", and when Season is before 2004?
### Context:
CREATE TABLE table_name_65 (poles INTEGER, season VARCHAR, wins VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT AVG(poles) FROM table_name_65 WHERE wins = 0 AND position = "nc" AND season < 2004 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Poles, when Season is before 2005, when Position is "2nd", and when Wins is less than 6?
### Context:
CREATE TABLE table_name_1 (poles INTEGER, wins VARCHAR, season VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT SUM(poles) FROM table_name_1 WHERE season < 2005 AND position = "2nd" 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 2012 club of the cf pos. player?
### Context:
CREATE TABLE table_name_85 (pos VARCHAR) [/INST]
### Response:
SELECT 2012 AS _club FROM table_name_85 WHERE pos = "cf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the years in the ACC of an institution that was founded before 1885 and is located in College Park, Maryland?
### Context:
CREATE TABLE table_name_24 (years_in_the_acc VARCHAR, founded VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT years_in_the_acc FROM table_name_24 WHERE founded < 1885 AND location = "college park, maryland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 partner for the tournament in Lyon, France?
### Context:
CREATE TABLE table_name_29 (partnering VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT partnering FROM table_name_29 WHERE tournament = "lyon, france" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who were the opponents for the event in Milan, Italy?
### Context:
CREATE TABLE table_name_78 (opponent VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_78 WHERE tournament = "milan, italy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record on the date of december 1, 1968?
### Context:
CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_55 WHERE date = "december 1, 1968" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record on the date of september 15, 1968?
### Context:
CREATE TABLE table_name_89 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_89 WHERE date = "september 15, 1968" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record on the date of november 10, 1968?
### Context:
CREATE TABLE table_name_27 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_27 WHERE date = "november 10, 1968" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the first game played on February 28?
### Context:
CREATE TABLE table_name_95 (game INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_95 WHERE date = "february 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:
What is the sum of Altrincham's Points 2 when they had more than 52 Goals For?
### Context:
CREATE TABLE table_name_98 (points_2 INTEGER, goals_for VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT SUM(points_2) FROM table_name_98 WHERE goals_for > 52 AND team = "altrincham" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was the team @ Detroit?
### Context:
CREATE TABLE table_name_28 (date VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_28 WHERE team = "@ detroit" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game when Maurice Williams (7) had the high assists?
### Context:
CREATE TABLE table_name_8 (score VARCHAR, high_assists VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_8 WHERE high_assists = "maurice williams (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 record of the game when Lebron James (4) had the high assists?
### Context:
CREATE TABLE table_name_43 (record VARCHAR, high_assists VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_43 WHERE high_assists = "lebron james (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 total of the game that the team was @ new york?
### Context:
CREATE TABLE table_name_58 (game VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_name_58 WHERE team = "@ new york" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was Joe Taylor selected in?
### Context:
CREATE TABLE table_name_40 (round INTEGER, player VARCHAR) [/INST]
### Response:
SELECT SUM(round) FROM table_name_40 WHERE player = "joe taylor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player went to Wake Forest and was selected with a pick after 145?
### Context:
CREATE TABLE table_name_6 (player VARCHAR, pick VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_6 WHERE pick > 145 AND college = "wake forest" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many picks were from round 6?
### Context:
CREATE TABLE table_name_84 (pick VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT COUNT(pick) FROM table_name_84 WHERE round = 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 largest round of a pick smaller than 92 from Toledo University?
### Context:
CREATE TABLE table_name_34 (round INTEGER, college VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_34 WHERE college = "toledo" AND pick < 92 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is Dick Walker?
### Context:
CREATE TABLE table_name_35 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_35 WHERE player = "dick 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 college has a pick greater than 4 and an overall of 21?
### Context:
CREATE TABLE table_name_9 (college VARCHAR, pick VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_9 WHERE pick > 4 AND overall = 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 overall sum of round 3?
### Context:
CREATE TABLE table_name_55 (overall INTEGER, round VARCHAR) [/INST]
### Response:
SELECT SUM(overall) FROM table_name_55 WHERE round = 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the position of the player with a round less than 8 and an overall of 48?
### Context:
CREATE TABLE table_name_81 (position VARCHAR, round VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_81 WHERE round < 8 AND overall = 48 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player from the college of North Carolina with an overall less than 100?
### Context:
CREATE TABLE table_name_47 (position VARCHAR, overall VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_47 WHERE overall < 100 AND college = "north carolina" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the pick in round 17?
### Context:
CREATE TABLE table_name_10 (pick INTEGER, round VARCHAR) [/INST]
### Response:
SELECT SUM(pick) FROM table_name_10 WHERE round = 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 1st leg when team 2 was nov milenium?
### Context:
CREATE TABLE table_name_7 (team_2 VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_7 WHERE team_2 = "nov milenium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1st leg for a team 1 of Teteks?
### Context:
CREATE TABLE table_name_25 (team_1 VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_25 WHERE team_1 = "teteks" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.