text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest Top-5 when the Tournament is the open championship, with a Top-25 less than 9?
### Context:
CREATE TABLE table_name_32 (top_5 INTEGER, tournament VARCHAR, top_25 VARCHAR) [/INST]
### Response:
SELECT MAX(top_5) FROM table_name_32 WHERE tournament = "the open championship" AND top_25 < 9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Top-25 that has a Top-10 less than 7, and the Tournament is the open championship, with a Top-5more than 1?
### Context:
CREATE TABLE table_name_58 (top_25 INTEGER, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT AVG(top_25) FROM table_name_58 WHERE top_10 < 7 AND tournament = "the open championship" AND top_5 > 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 total number of Top-5 when the Top-25 is 6, and a Cuts made are less than 12?
### Context:
CREATE TABLE table_name_40 (top_5 VARCHAR, top_25 VARCHAR, cuts_made VARCHAR) [/INST]
### Response:
SELECT COUNT(top_5) FROM table_name_40 WHERE top_25 = 6 AND cuts_made < 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:
Which date had a home team of the Wizards?
### Context:
CREATE TABLE table_name_15 (date VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_15 WHERE home = "wizards" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the latest week with a date of November 12, 1967 and less than 34,761 in attendance?
### Context:
CREATE TABLE table_name_60 (week INTEGER, date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT MAX(week) FROM table_name_60 WHERE date = "november 12, 1967" AND attendance < 34 OFFSET 761 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game with an opponent of the Houston Oilers from before week 3?
### Context:
CREATE TABLE table_name_11 (date VARCHAR, week VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_11 WHERE week < 3 AND opponent = "houston oilers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for New York's game?
### Context:
CREATE TABLE table_name_39 (game INTEGER, team VARCHAR) [/INST]
### Response:
SELECT SUM(game) FROM table_name_39 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:
What round was a player from Indiana picked?
### Context:
CREATE TABLE table_name_71 (round VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_71 WHERE college = "indiana" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a total of 17 and more than 10 wins?
### Context:
CREATE TABLE table_name_94 (losses VARCHAR, total VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_94 WHERE total = 17 AND wins > 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 win percentage when there's more than 16 totals and less than 7 losses?
### Context:
CREATE TABLE table_name_98 (_percentage_win VARCHAR, total VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT _percentage_win FROM table_name_98 WHERE total > 16 AND losses < 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest no result when the year was 2012 and there were more than 10 wins?
### Context:
CREATE TABLE table_name_57 (no_result INTEGER, year VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MIN(no_result) FROM table_name_57 WHERE year = "2012" AND wins > 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 name on the Socialist ticket when the Democratic ticket is george k. shuler?
### Context:
CREATE TABLE table_name_6 (socialist_ticket VARCHAR, democratic_ticket VARCHAR) [/INST]
### Response:
SELECT socialist_ticket FROM table_name_6 WHERE democratic_ticket = "george k. shuler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on the Democratic ticket when the Workers ticket is franklin p. brill?
### Context:
CREATE TABLE table_name_76 (democratic_ticket VARCHAR, workers_ticket VARCHAR) [/INST]
### Response:
SELECT democratic_ticket FROM table_name_76 WHERE workers_ticket = "franklin p. brill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on the Democratic ticket when the Workers ticket is james p. cannon?
### Context:
CREATE TABLE table_name_32 (democratic_ticket VARCHAR, workers_ticket VARCHAR) [/INST]
### Response:
SELECT democratic_ticket FROM table_name_32 WHERE workers_ticket = "james p. cannon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Office when the Republican ticket shows seymour lowman?
### Context:
CREATE TABLE table_name_63 (office VARCHAR, republican_ticket VARCHAR) [/INST]
### Response:
SELECT office FROM table_name_63 WHERE republican_ticket = "seymour lowman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on the Republican ticket when the Socialist ticket was louis waldman?
### Context:
CREATE TABLE table_name_17 (republican_ticket VARCHAR, socialist_ticket VARCHAR) [/INST]
### Response:
SELECT republican_ticket FROM table_name_17 WHERE socialist_ticket = "louis waldman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on the Republican ticket when the Workers ticket is edward lindgren?
### Context:
CREATE TABLE table_name_63 (republican_ticket VARCHAR, workers_ticket VARCHAR) [/INST]
### Response:
SELECT republican_ticket FROM table_name_63 WHERE workers_ticket = "edward lindgren" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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's the Democratic ticket with a Socialist Labor ticket of belle j. rosen?
### Context:
CREATE TABLE table_name_38 (democratic_ticket VARCHAR, socialist_labor_ticket VARCHAR) [/INST]
### Response:
SELECT democratic_ticket FROM table_name_38 WHERE socialist_labor_ticket = "belle j. rosen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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's the Socialist Labor ticket with a Republican ticket of cuthbert w. pound?
### Context:
CREATE TABLE table_name_49 (socialist_labor_ticket VARCHAR, republican_ticket VARCHAR) [/INST]
### Response:
SELECT socialist_labor_ticket FROM table_name_49 WHERE republican_ticket = "cuthbert w. pound" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Office has a Republican ticket of daniel h. conway?
### Context:
CREATE TABLE table_name_63 (office VARCHAR, republican_ticket VARCHAR) [/INST]
### Response:
SELECT office FROM table_name_63 WHERE republican_ticket = "daniel h. conway" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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's the Socialist ticket with a Law Preservation ticket of (none), and a Socialist Labor ticket of belle j. rosen?
### Context:
CREATE TABLE table_name_74 (socialist_ticket VARCHAR, law_preservation_ticket VARCHAR, socialist_labor_ticket VARCHAR) [/INST]
### Response:
SELECT socialist_ticket FROM table_name_74 WHERE law_preservation_ticket = "(none)" AND socialist_labor_ticket = "belle j. rosen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Office has a Democratic ticket of herbert h. lehman?
### Context:
CREATE TABLE table_name_88 (office VARCHAR, democratic_ticket VARCHAR) [/INST]
### Response:
SELECT office FROM table_name_88 WHERE democratic_ticket = "herbert h. lehman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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's the Socialist ticket with a Socialist Labor ticket of charles m. carlson?
### Context:
CREATE TABLE table_name_89 (socialist_ticket VARCHAR, socialist_labor_ticket VARCHAR) [/INST]
### Response:
SELECT socialist_ticket FROM table_name_89 WHERE socialist_labor_ticket = "charles m. carlson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bowl game has a season greater than 2008, with new orleans, Louisiana as the location?
### Context:
CREATE TABLE table_name_47 (bowl_game VARCHAR, season VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT bowl_game FROM table_name_47 WHERE season > 2008 AND location = "new orleans, louisiana" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What result has 1947 sun bowl as the bowl game?
### Context:
CREATE TABLE table_name_81 (result VARCHAR, bowl_game VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_81 WHERE bowl_game = "1947 sun bowl" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What result has texas longhorns as the opponent?
### Context:
CREATE TABLE table_name_47 (result VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_47 WHERE opponent = "texas longhorns" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What location has 51,212 as the attendance?
### Context:
CREATE TABLE table_name_60 (location VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_60 WHERE attendance = "51,212" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pictorials is on 5-01?
### Context:
CREATE TABLE table_name_40 (pictorials VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT pictorials FROM table_name_40 WHERE date = "5-01" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Cover model has a Pictorials of brande roderick-pmoy, naked news?
### Context:
CREATE TABLE table_name_56 (cover_model VARCHAR, pictorials VARCHAR) [/INST]
### Response:
SELECT cover_model FROM table_name_56 WHERE pictorials = "brande roderick-pmoy, naked news" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Cover model has a Centerfold model of jennifer walcott?
### Context:
CREATE TABLE table_name_77 (cover_model VARCHAR, centerfold_model VARCHAR) [/INST]
### Response:
SELECT cover_model FROM table_name_77 WHERE centerfold_model = "jennifer walcott" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Centerfold model has a Cover model of irina voronina?
### Context:
CREATE TABLE table_name_81 (centerfold_model VARCHAR, cover_model VARCHAR) [/INST]
### Response:
SELECT centerfold_model FROM table_name_81 WHERE cover_model = "irina voronina" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Centerfold model has a Date of 3-01?
### Context:
CREATE TABLE table_name_54 (centerfold_model VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT centerfold_model FROM table_name_54 WHERE date = "3-01" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score on 15 Aug with a 17:30 time?
### Context:
CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_66 WHERE date = "15 aug" AND time = "17:30" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round values that had opponents named Paul Sutherland?
### Context:
CREATE TABLE table_name_93 (round VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_93 WHERE opponent = "paul sutherland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which opponent led to a record of 10-6?
### Context:
CREATE TABLE table_name_94 (opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_94 WHERE record = "10-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:
Which method led to a record of 9-4?
### Context:
CREATE TABLE table_name_61 (method VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_61 WHERE record = "9-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 song had an index of m6?
### Context:
CREATE TABLE table_name_68 (song VARCHAR, index VARCHAR) [/INST]
### Response:
SELECT song FROM table_name_68 WHERE index = "m6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For which song was the score 6.5 + 6.0 + 6.0 + 5.5 = 24.0?
### Context:
CREATE TABLE table_name_25 (song VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT song FROM table_name_25 WHERE score = 6.5 + 6.0 + 6.0 + 5.5 = 24.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:
When the played number is less than 8 and against is 23, what is the least amount of points?
### Context:
CREATE TABLE table_name_76 (points INTEGER, against VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_76 WHERE against = 23 AND played < 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:
When the corinthians have a position of less than 5, what is the average against?
### Context:
CREATE TABLE table_name_58 (against INTEGER, position VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT AVG(against) FROM table_name_58 WHERE position < 5 AND team = "corinthians" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position has less than 6 Points?
### Context:
CREATE TABLE table_name_63 (position VARCHAR, points INTEGER) [/INST]
### Response:
SELECT COUNT(position) FROM table_name_63 WHERE points < 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 number of against when the difference is 10 and played is greater than 8?
### Context:
CREATE TABLE table_name_3 (against VARCHAR, difference VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT COUNT(against) FROM table_name_3 WHERE difference = "10" AND played > 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the stake president when the organized date is April 18, 1965?
### Context:
CREATE TABLE table_name_77 (stake VARCHAR, organized VARCHAR) [/INST]
### Response:
SELECT stake AS President FROM table_name_77 WHERE organized = "april 18, 1965" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 award given for the category Mercury Prize?
### Context:
CREATE TABLE table_name_58 (award VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT award FROM table_name_58 WHERE category = "mercury prize" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years has the Mercury Prize award been given?
### Context:
CREATE TABLE table_name_47 (year VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_47 WHERE award = "mercury prize" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For how many years has the Mercury Prize been awarded?
### Context:
CREATE TABLE table_name_71 (year VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_71 WHERE award = "mercury prize" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what year, prior to 2009, was the Mercury Prize awarded?
### Context:
CREATE TABLE table_name_50 (result VARCHAR, year VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_50 WHERE year < 2009 AND award = "mercury prize" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points when against is 50, and there are less than 20 played?
### Context:
CREATE TABLE table_name_80 (points INTEGER, against VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_80 WHERE against = 50 AND played < 20 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Position with less than 57 against and the team is Juventus?
### Context:
CREATE TABLE table_name_19 (position INTEGER, against VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT AVG(position) FROM table_name_19 WHERE against < 57 AND team = "juventus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position when the against is less than 41, and lost is more than 7?
### Context:
CREATE TABLE table_name_23 (position INTEGER, against VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT MAX(position) FROM table_name_23 WHERE against < 41 AND lost > 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Lost when there are 57 against?
### Context:
CREATE TABLE table_name_42 (lost INTEGER, against VARCHAR) [/INST]
### Response:
SELECT AVG(lost) FROM table_name_42 WHERE against = 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 is the lowest Lost for são paulo railway, Points more than 21?
### Context:
CREATE TABLE table_name_46 (lost INTEGER, team VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MIN(lost) FROM table_name_46 WHERE team = "são paulo railway" AND points > 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 unit is in Mongolia?
### Context:
CREATE TABLE table_name_29 (unit VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT unit FROM table_name_29 WHERE location = "mongolia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What unit is in Argentina?
### Context:
CREATE TABLE table_name_94 (unit VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT unit FROM table_name_94 WHERE location = "argentina" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What name is located in China?
### Context:
CREATE TABLE table_name_8 (name VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_8 WHERE location = "china" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What unit is located in China and has Zhou Zhang as an author?
### Context:
CREATE TABLE table_name_53 (unit VARCHAR, location VARCHAR, authors VARCHAR) [/INST]
### Response:
SELECT unit FROM table_name_53 WHERE location = "china" AND authors = "zhou zhang" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What kind of Manufacturer has a Laps smaller than 20 and a Grid of 21
### Context:
CREATE TABLE table_name_54 (manufacturer VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT manufacturer FROM table_name_54 WHERE laps < 20 AND grid = 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:
Which Airline has a Fleet size larger than 17, and a IATA of pr?
### Context:
CREATE TABLE table_name_98 (airline VARCHAR, fleet_size VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT airline FROM table_name_98 WHERE fleet_size > 17 AND iata = "pr" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ICAO has a Fleet size of 2?
### Context:
CREATE TABLE table_name_96 (icao VARCHAR, fleet_size VARCHAR) [/INST]
### Response:
SELECT icao FROM table_name_96 WHERE fleet_size = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the of Fleet size with a IATA of pr, and a Commenced operations smaller than 1941?
### Context:
CREATE TABLE table_name_4 (fleet_size INTEGER, iata VARCHAR, commenced_operations VARCHAR) [/INST]
### Response:
SELECT SUM(fleet_size) FROM table_name_4 WHERE iata = "pr" AND commenced_operations < 1941 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ICAO has a Commenced operations larger than 2011?
### Context:
CREATE TABLE table_name_72 (icao VARCHAR, commenced_operations INTEGER) [/INST]
### Response:
SELECT icao FROM table_name_72 WHERE commenced_operations > 2011 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Status with an Author that is woodruff?
### Context:
CREATE TABLE table_name_31 (status VARCHAR, authors VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_31 WHERE authors = "woodruff" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pick # when the CFL Team is the Toronto Argonauts?
### Context:
CREATE TABLE table_name_95 (pick__number INTEGER, cfl_team VARCHAR) [/INST]
### Response:
SELECT MAX(pick__number) FROM table_name_95 WHERE cfl_team = "toronto argonauts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 CFL Team with #48 as the pick number?
### Context:
CREATE TABLE table_name_98 (cfl_team VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT cfl_team FROM table_name_98 WHERE pick__number = 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 College with a Position of db, and the CFL Team was Winnipeg Blue Bombers?
### Context:
CREATE TABLE table_name_59 (college VARCHAR, position VARCHAR, cfl_team VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_59 WHERE position = "db" AND cfl_team = "winnipeg blue bombers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 CFL Team with Will Grant?
### Context:
CREATE TABLE table_name_32 (cfl_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT cfl_team FROM table_name_32 WHERE player = "will grant" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the latest year of a gratitude type mission with 99 in the entourage?
### Context:
CREATE TABLE table_name_60 (year INTEGER, number_in_entourage VARCHAR, mission_type VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_60 WHERE number_in_entourage = "99" AND mission_type = "gratitude" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lead envoy of the mission with the Ryūkyūan King shō eki?
### Context:
CREATE TABLE table_name_62 (lead_envoy VARCHAR, ryūkyūan_king VARCHAR) [/INST]
### Response:
SELECT lead_envoy FROM table_name_62 WHERE ryūkyūan_king = "shō eki" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei?
### Context:
CREATE TABLE table_name_10 (lead_envoy VARCHAR, year VARCHAR, ryūkyūan_king VARCHAR, mission_type VARCHAR) [/INST]
### Response:
SELECT lead_envoy FROM table_name_10 WHERE ryūkyūan_king = "shō kei" AND mission_type = "congratulation" AND year = 1718 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lead envoy with the Ryūkyūan King shō kō?
### Context:
CREATE TABLE table_name_44 (lead_envoy VARCHAR, ryūkyūan_king VARCHAR) [/INST]
### Response:
SELECT lead_envoy FROM table_name_44 WHERE ryūkyūan_king = "shō kō" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 10/20/1979*, who was the Opponent?
### Context:
CREATE TABLE table_name_59 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_59 WHERE date = "10/20/1979*" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at a game with a Result of w 30-23?
### Context:
CREATE TABLE table_name_16 (attendance INTEGER, result VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_16 WHERE result = "w 30-23" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance at a game with the Result of w 25-17?
### Context:
CREATE TABLE table_name_58 (attendance INTEGER, result VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_58 WHERE result = "w 25-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 Score, when Leading Scorer is Tyrone Hill , 20 Points?
### Context:
CREATE TABLE table_name_6 (score VARCHAR, leading_scorer VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_6 WHERE leading_scorer = "tyrone hill , 20 points" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Home, when Score is 103-93?
### Context:
CREATE TABLE table_name_95 (home VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_95 WHERE score = "103-93" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance, when Home is Cleveland, and when Date is January 30?
### Context:
CREATE TABLE table_name_74 (attendance VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_74 WHERE home = "cleveland" AND date = "january 30" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Leading Scorer, when Attendance is Gund Arena 20,562, and when Record is 20-10?
### Context:
CREATE TABLE table_name_65 (leading_scorer VARCHAR, attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT leading_scorer FROM table_name_65 WHERE attendance = "gund arena 20,562" AND record = "20-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 Score, when Date is January 12?
### Context:
CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_37 WHERE date = "january 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 is Score, when Attendance is Gund Arena 20,562, and when Date is January 27?
### Context:
CREATE TABLE table_name_33 (score VARCHAR, attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_33 WHERE attendance = "gund arena 20,562" AND date = "january 27" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Top-10(s), when Cuts made is less than 10, and when Top-5 is less than 0?
### Context:
CREATE TABLE table_name_95 (top_10 INTEGER, cuts_made VARCHAR, top_5 VARCHAR) [/INST]
### Response:
SELECT SUM(top_10) FROM table_name_95 WHERE cuts_made < 10 AND top_5 < 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 lowest Top-25, when Events is 10, and when Wins is greater than 0?
### Context:
CREATE TABLE table_name_31 (top_25 INTEGER, events VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MIN(top_25) FROM table_name_31 WHERE events = 10 AND wins > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Top-5, when Top-25 is less than 4, and when Cuts made is less than 7?
### Context:
CREATE TABLE table_name_33 (top_5 INTEGER, top_25 VARCHAR, cuts_made VARCHAR) [/INST]
### Response:
SELECT MIN(top_5) FROM table_name_33 WHERE top_25 < 4 AND cuts_made < 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Height of Junior Meghan Austin?
### Context:
CREATE TABLE table_name_59 (height VARCHAR, year VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT height FROM table_name_59 WHERE year = "junior" AND name = "meghan austin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Martina Wood's Position?
### Context:
CREATE TABLE table_name_46 (position VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_46 WHERE name = "martina wood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Player from Charlotte, NC?
### Context:
CREATE TABLE table_name_91 (name VARCHAR, home_town VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_91 WHERE home_town = "charlotte, nc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 6-2 Martina Wood's Position?
### Context:
CREATE TABLE table_name_52 (position VARCHAR, height VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_52 WHERE height = "6-2" AND name = "martina wood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Temple Hills, MD?
### Context:
CREATE TABLE table_name_86 (position VARCHAR, home_town VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_86 WHERE home_town = "temple hills, md" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Junior from Fayetteville, NC?
### Context:
CREATE TABLE table_name_69 (name VARCHAR, year VARCHAR, home_town VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_69 WHERE year = "junior" AND home_town = "fayetteville, nc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What rank has jo angel (wa) as the player?
### Context:
CREATE TABLE table_name_47 (rank VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_47 WHERE player = "jo angel (wa)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What average has 1 as rhe rank?
### Context:
CREATE TABLE table_name_61 (average VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT average FROM table_name_61 WHERE rank = "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 rank has andy bichel (qld) as the player?
### Context:
CREATE TABLE table_name_80 (rank VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_80 WHERE player = "andy bichel (qld)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that has 2 for the rank?
### Context:
CREATE TABLE table_name_3 (average VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT average FROM table_name_3 WHERE rank = "2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What playee has 24.21 as the average?
### Context:
CREATE TABLE table_name_46 (player VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_46 WHERE average = "24.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 average that has 441 as wicket?
### Context:
CREATE TABLE table_name_31 (average VARCHAR, s_wicket VARCHAR) [/INST]
### Response:
SELECT average FROM table_name_31 WHERE s_wicket = "441" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year Elected of Republican Incumbent Dave Reichert?
### Context:
CREATE TABLE table_name_31 (elected VARCHAR, party VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT elected FROM table_name_31 WHERE party = "republican" AND incumbent = "dave reichert" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Results in the Washington 2 District?
### Context:
CREATE TABLE table_name_73 (results VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT results FROM table_name_73 WHERE district = "washington 2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the 2008 Candidates Elected before 1994 with Incumbent Jim McDermott?
### Context:
CREATE TABLE table_name_18 (elected VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT 2008 AS _candidates FROM table_name_18 WHERE elected < 1994 AND incumbent = "jim mcdermott" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Incumbent with Results of 68% 32%?
### Context:
CREATE TABLE table_name_1 (incumbent VARCHAR, results VARCHAR) [/INST]
### Response:
SELECT incumbent FROM table_name_1 WHERE results = "68% 32%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What District had Republican Incumbent Cathy McMorris?
### Context:
CREATE TABLE table_name_75 (district VARCHAR, party VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT district FROM table_name_75 WHERE party = "republican" AND incumbent = "cathy mcmorris" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Italy's highest total when there were less than 4 bronze and 1 gold?
### Context:
CREATE TABLE table_name_29 (total INTEGER, nation VARCHAR, bronze VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT MAX(total) FROM table_name_29 WHERE bronze < 4 AND gold = 1 AND nation = "italy" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.