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 GERB has an 11% Attack?
### Context:
CREATE TABLE table_name_16 (gerb VARCHAR, attack VARCHAR) [/INST]
### Response:
SELECT gerb FROM table_name_16 WHERE attack = "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:
Which Tie # has a Score of 3–0, and a Home team of bristol rovers?
### Context:
CREATE TABLE table_name_39 (tie_no VARCHAR, score VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_39 WHERE score = "3–0" AND home_team = "bristol rovers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home team of yeovil town won 5–3 on penalties?
### Context:
CREATE TABLE table_name_82 (score VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_82 WHERE home_team = "yeovil town won 5–3 on penalties" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tie # has an Away team of slough town?
### Context:
CREATE TABLE table_name_66 (tie_no VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_66 WHERE away_team = "slough town" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance has a Tie # of 32?
### Context:
CREATE TABLE table_name_13 (attendance VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_13 WHERE tie_no = "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:
Which Away team has a Tie # of replay, and an Attendance of 24 november 1998, and a Home team of rotherham united?
### Context:
CREATE TABLE table_name_51 (away_team VARCHAR, home_team VARCHAR, tie_no VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_51 WHERE tie_no = "replay" AND attendance = "24 november 1998" AND home_team = "rotherham united" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tie # that has an Attendance of 14 november 1998, and an Away team of hayes?
### Context:
CREATE TABLE table_name_62 (tie_no VARCHAR, attendance VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_62 WHERE attendance = "14 november 1998" AND away_team = "hayes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the date with winner outcome and opponent of noppawan lertcheewakarn jessica moore
### Context:
CREATE TABLE table_name_82 (date VARCHAR, outcome VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_82 WHERE outcome = "winner" AND opponent = "noppawan lertcheewakarn jessica moore" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the score for 21 may 2011
### Context:
CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_35 WHERE date = "21 may 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:
Name the partner with opponent of michaëlla krajicek eleni daniilidou
### Context:
CREATE TABLE table_name_20 (partner VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT partner FROM table_name_20 WHERE opponent = "michaëlla krajicek eleni daniilidou" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the outcome for opponent of michaëlla krajicek eleni daniilidou
### Context:
CREATE TABLE table_name_98 (outcome VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_98 WHERE opponent = "michaëlla krajicek eleni daniilidou" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wins had Matches greater than 5?
### Context:
CREATE TABLE table_name_82 (wins INTEGER, matches INTEGER) [/INST]
### Response:
SELECT SUM(wins) FROM table_name_82 WHERE matches > 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the round number when Michael Hjalm played?
### Context:
CREATE TABLE table_name_27 (round VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_27 WHERE player = "michael hjalm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Bill Campbell played before round 6?
### Context:
CREATE TABLE table_name_22 (position VARCHAR, round VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_22 WHERE round < 6 AND player = "bill campbell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 release with a catalogue number of WARPCDD333?
### Context:
CREATE TABLE table_name_73 (date VARCHAR, catalogue_number VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_73 WHERE catalogue_number = "warpcdd333" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country/region for the releases from Beat Records?
### Context:
CREATE TABLE table_name_9 (country_region VARCHAR, label VARCHAR) [/INST]
### Response:
SELECT country_region FROM table_name_9 WHERE label = "beat records" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Total with a Player named robbie winters?
### Context:
CREATE TABLE table_name_95 (total VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT total FROM table_name_95 WHERE player = "robbie winters" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a Player named kenneth udjus?
### Context:
CREATE TABLE table_name_47 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_47 WHERE player = "kenneth udjus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 day in November of the game with a 15-5-2 record?
### Context:
CREATE TABLE table_name_60 (november INTEGER, record VARCHAR) [/INST]
### Response:
SELECT MAX(november) FROM table_name_60 WHERE record = "15-5-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 latest day in November with a game 15?
### Context:
CREATE TABLE table_name_31 (november INTEGER, game VARCHAR) [/INST]
### Response:
SELECT MAX(november) FROM table_name_31 WHERE game = 15 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest wins with points larger than 46, and a rank of 10th?
### Context:
CREATE TABLE table_name_55 (wins INTEGER, points VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_55 WHERE points > 46 AND rank = "10th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points with a year higher than 1989, and a rank of 7th?
### Context:
CREATE TABLE table_name_60 (points INTEGER, year VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT AVG(points) FROM table_name_60 WHERE year > 1989 AND rank = "7th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year that has points larger than 20?
### Context:
CREATE TABLE table_name_84 (year VARCHAR, points INTEGER) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_84 WHERE points > 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 year that has points larger than 46, and a rank of 6th?
### Context:
CREATE TABLE table_name_45 (year INTEGER, points VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_45 WHERE points > 46 AND rank = "6th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What earliest year with points larger than 68 and a rank of 7th?
### Context:
CREATE TABLE table_name_71 (year INTEGER, points VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_71 WHERE points > 68 AND rank = "7th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what player went to ul-monroe
### Context:
CREATE TABLE table_name_7 (player VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_7 WHERE school = "ul-monroe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 drawn having more than 9 points?
### Context:
CREATE TABLE table_name_86 (drawn INTEGER, points INTEGER) [/INST]
### Response:
SELECT SUM(drawn) FROM table_name_86 WHERE points > 9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Number stayed in Southeast has over 4,000 emigrated or forcibly removed?
### Context:
CREATE TABLE table_name_26 (number_stayed_in_southeast VARCHAR, total_number_emigrated_or_forcibly_removed VARCHAR) [/INST]
### Response:
SELECT number_stayed_in_southeast FROM table_name_26 WHERE total_number_emigrated_or_forcibly_removed = "over 4,000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many warfare deaths befell the choctaw nation?
### Context:
CREATE TABLE table_name_33 (deaths_from_warfare VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT deaths_from_warfare FROM table_name_33 WHERE nation = "choctaw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of those who stayed in the southeast had 19,600 emigrated or forcibly removed?
### Context:
CREATE TABLE table_name_58 (number_stayed_in_southeast VARCHAR, total_number_emigrated_or_forcibly_removed VARCHAR) [/INST]
### Response:
SELECT number_stayed_in_southeast FROM table_name_58 WHERE total_number_emigrated_or_forcibly_removed = "19,600" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 removal treaty covered the chickasaw nation?
### Context:
CREATE TABLE table_name_32 (removal_treaty__year_signed_ VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT removal_treaty__year_signed_ FROM table_name_32 WHERE nation = "chickasaw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did stage 5 occur?
### Context:
CREATE TABLE table_name_53 (date VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_53 WHERE stage = 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who were the opponents during week 14?
### Context:
CREATE TABLE table_name_53 (opponent VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_53 WHERE week = 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 highest attendance for the game before week 13 on December 9, 1973?
### Context:
CREATE TABLE table_name_45 (attendance INTEGER, date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_45 WHERE date = "december 9, 1973" AND week < 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average attendance for the games after week 2 on September 23, 1973?
### Context:
CREATE TABLE table_name_31 (attendance INTEGER, date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_31 WHERE date = "september 23, 1973" AND week > 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 total number of weeks where games were on November 5, 1973 and the attendance was larger than 49,220?
### Context:
CREATE TABLE table_name_81 (week VARCHAR, date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT COUNT(week) FROM table_name_81 WHERE date = "november 5, 1973" AND attendance > 49 OFFSET 220 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Record of 9–1 had what game site?
### Context:
CREATE TABLE table_name_70 (game_site VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_70 WHERE record = "9–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:
Record of 8–1, and a Week larger than 9 had what highest attendance?
### Context:
CREATE TABLE table_name_18 (attendance INTEGER, record VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_18 WHERE record = "8–1" AND week > 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:
Result of w 24–21, and a Week smaller than 6 had what sum of attendance?
### Context:
CREATE TABLE table_name_9 (attendance INTEGER, result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_9 WHERE result = "w 24–21" AND week < 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:
Date of October 25, 1964 involves what record?
### Context:
CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_1 WHERE date = "october 25, 1964" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the high total for algeria with over 2 bronzes?
### Context:
CREATE TABLE table_name_82 (total INTEGER, nation VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT MAX(total) FROM table_name_82 WHERE nation = "algeria" AND bronze > 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of silvers for qatar with under 8 total, 0 golds, and over 2 bronzes?
### Context:
CREATE TABLE table_name_9 (silver INTEGER, bronze VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT MAX(silver) FROM table_name_9 WHERE total < 8 AND gold = 0 AND nation = "qatar" AND bronze > 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:
How many bronzes for the nation with over 20 total, under 26 golds, and over 0 silvers?
### Context:
CREATE TABLE table_name_81 (bronze VARCHAR, gold VARCHAR, silver VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT COUNT(bronze) FROM table_name_81 WHERE silver > 0 AND total > 20 AND gold < 26 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 one bronze in the event where Choi Jun-Sang won gold, and Suh Jung-Kyun won silver?
### Context:
CREATE TABLE table_name_27 (bronze VARCHAR, gold VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT bronze FROM table_name_27 WHERE gold = "choi jun-sang" AND silver = "suh jung-kyun" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who won bronze in Seoul?
### Context:
CREATE TABLE table_name_20 (bronze VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT bronze FROM table_name_20 WHERE location = "seoul" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who won bronze is 2006?
### Context:
CREATE TABLE table_name_7 (bronze VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT bronze FROM table_name_7 WHERE year = 2006 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year did the event in Hiroshima take place?
### Context:
CREATE TABLE table_name_70 (year VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_70 WHERE location = "hiroshima" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who won bronze in 2002?
### Context:
CREATE TABLE table_name_35 (bronze VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT bronze FROM table_name_35 WHERE year = 2002 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game number of the game with the Edmonton Oilers as the opponent after February 12?
### Context:
CREATE TABLE table_name_74 (game VARCHAR, opponent VARCHAR, february VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_name_74 WHERE opponent = "edmonton oilers" AND february > 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:
How many Seasons that has Years of 1976–1977?
### Context:
CREATE TABLE table_name_1 (seasons VARCHAR, years VARCHAR) [/INST]
### Response:
SELECT COUNT(seasons) FROM table_name_1 WHERE years = "1976–1977" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What week of the season had a date of october 5, 1975?
### Context:
CREATE TABLE table_name_24 (week INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_24 WHERE date = "october 5, 1975" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Events have a Top-10 larger than 6, and a Top-5 smaller than 8?
### Context:
CREATE TABLE table_name_80 (events VARCHAR, top_10 VARCHAR, top_5 VARCHAR) [/INST]
### Response:
SELECT COUNT(events) FROM table_name_80 WHERE top_10 > 6 AND top_5 < 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:
How many Wins have a Top-10 smaller than 6, and Cuts made larger than 7, and a Top-5 of 0?
### Context:
CREATE TABLE table_name_57 (wins VARCHAR, top_5 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR) [/INST]
### Response:
SELECT COUNT(wins) FROM table_name_57 WHERE top_10 < 6 AND cuts_made > 7 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 result of the game on May 14?
### Context:
CREATE TABLE table_name_49 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_49 WHERE date = "may 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 result of the game on May 14 with Philadelphia as the road team?
### Context:
CREATE TABLE table_name_48 (result VARCHAR, road_team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_48 WHERE road_team = "philadelphia" AND date = "may 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 result of the game on May 4 with Philadelphia as the road team?
### Context:
CREATE TABLE table_name_48 (result VARCHAR, road_team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_48 WHERE road_team = "philadelphia" AND date = "may 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 road team of game 6 with Philadelphia as the home team?
### Context:
CREATE TABLE table_name_56 (road_team VARCHAR, home_team VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT road_team FROM table_name_56 WHERE home_team = "philadelphia" AND game = "game 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 result of game 5 with Los Angeles as the home team?
### Context:
CREATE TABLE table_name_26 (result VARCHAR, home_team VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_26 WHERE home_team = "los angeles" AND game = "game 5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the road team of the game with Philadelphia as the home team with a result of 105-102?
### Context:
CREATE TABLE table_name_53 (road_team VARCHAR, home_team VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT road_team FROM table_name_53 WHERE home_team = "philadelphia" AND result = "105-102" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result has a Party of republican, and a First elected smaller than 1856?
### Context:
CREATE TABLE table_name_26 (result VARCHAR, party VARCHAR, first_elected VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_26 WHERE party = "republican" AND first_elected < 1856 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 District has a First elected of 1856, and an Incumbent of william kellogg?
### Context:
CREATE TABLE table_name_20 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT district FROM table_name_20 WHERE first_elected = 1856 AND incumbent = "william kellogg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 First elected has a District of illinois 3?
### Context:
CREATE TABLE table_name_52 (first_elected INTEGER, district VARCHAR) [/INST]
### Response:
SELECT MAX(first_elected) FROM table_name_52 WHERE district = "illinois 3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How much First elected has a Result of re-elected, and a Party of republican, and a District of illinois 4?
### Context:
CREATE TABLE table_name_76 (first_elected VARCHAR, district VARCHAR, result VARCHAR, party VARCHAR) [/INST]
### Response:
SELECT COUNT(first_elected) FROM table_name_76 WHERE result = "re-elected" AND party = "republican" AND district = "illinois 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:
on january 7 what is home?
### Context:
CREATE TABLE table_name_33 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_33 WHERE date = "january 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:
on january 12 who was the visitor?
### Context:
CREATE TABLE table_name_16 (visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_16 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:
on january 7 what is the record?
### Context:
CREATE TABLE table_name_63 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_63 WHERE date = "january 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 total number of silver medals of the team with less than 2 gold, 1 bronze, and more than 2 total medals?
### Context:
CREATE TABLE table_name_13 (silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT COUNT(silver) FROM table_name_13 WHERE gold < 2 AND bronze = 1 AND total > 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of silver medals of the team with less than 0 bronzes?
### Context:
CREATE TABLE table_name_85 (silver INTEGER, bronze INTEGER) [/INST]
### Response:
SELECT MAX(silver) FROM table_name_85 WHERE bronze < 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 total number of silver medals of the team ranked 7 with more than 1 total medal?
### Context:
CREATE TABLE table_name_59 (silver VARCHAR, rank VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT COUNT(silver) FROM table_name_59 WHERE rank = "7" AND total > 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 number of bronze medals of the team with 0 silvers, ranked 3, and less than 1 total medal?
### Context:
CREATE TABLE table_name_52 (bronze INTEGER, total VARCHAR, silver VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT AVG(bronze) FROM table_name_52 WHERE silver = 0 AND rank = "3" AND total < 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 number of silver medals of the team with 0 gold, ranked 5, and more than 0 bronze medals?
### Context:
CREATE TABLE table_name_84 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT SUM(silver) FROM table_name_84 WHERE gold = 0 AND rank = "5" AND bronze > 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 was the sum for a top-10 U.S. open that had a top-25 bigger than 0?
### Context:
CREATE TABLE table_name_83 (top_10 INTEGER, tournament VARCHAR, top_25 VARCHAR) [/INST]
### Response:
SELECT SUM(top_10) FROM table_name_83 WHERE tournament = "u.s. open" AND top_25 > 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 were the total number of cuts made in an event larger than 4 and a top-10 smaller than 4?
### Context:
CREATE TABLE table_name_17 (cuts_made VARCHAR, events VARCHAR, top_10 VARCHAR) [/INST]
### Response:
SELECT COUNT(cuts_made) FROM table_name_17 WHERE events > 4 AND top_10 < 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 number of top-25 that has a top-10 smaller than 4 with 0 cuts?
### Context:
CREATE TABLE table_name_95 (top_25 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR) [/INST]
### Response:
SELECT COUNT(top_25) FROM table_name_95 WHERE top_10 < 4 AND cuts_made > 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 was the cuts average in tournament totals in an event larger than 24?
### Context:
CREATE TABLE table_name_62 (cuts_made INTEGER, tournament VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT AVG(cuts_made) FROM table_name_62 WHERE tournament = "totals" AND events > 24 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a top-10 in a masters tournament in an event smaller than 4?
### Context:
CREATE TABLE table_name_52 (top_10 VARCHAR, tournament VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT COUNT(top_10) FROM table_name_52 WHERE tournament = "masters tournament" AND events < 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:
Which Against is the highest one that has a Team of flamengo, and a Lost smaller than 1?
### Context:
CREATE TABLE table_name_95 (against INTEGER, team VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT MAX(against) FROM table_name_95 WHERE team = "flamengo" AND lost < 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:
How many Lost have a Team of flamengo, and an Against smaller than 5?
### Context:
CREATE TABLE table_name_92 (lost VARCHAR, team VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT COUNT(lost) FROM table_name_92 WHERE team = "flamengo" AND against < 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 Played is the highest one that has Points of 5, and a Drawn smaller than 1?
### Context:
CREATE TABLE table_name_94 (played INTEGER, points VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT MAX(played) FROM table_name_94 WHERE points = 5 AND drawn < 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 was the nationality for the player in Round 1?
### Context:
CREATE TABLE table_name_11 (nationality VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_11 WHERE round = 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who plays the right wing position?
### Context:
CREATE TABLE table_name_66 (player VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_66 WHERE position = "right wing" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What celebrity finished 6th?
### Context:
CREATE TABLE table_name_79 (celebrity VARCHAR, finished VARCHAR) [/INST]
### Response:
SELECT celebrity FROM table_name_79 WHERE finished = "6th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What day did the celebrity who finished 4th enter?
### Context:
CREATE TABLE table_name_96 (entered VARCHAR, finished VARCHAR) [/INST]
### Response:
SELECT entered FROM table_name_96 WHERE finished = "4th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 celebrity who was famous for being the ex busted member and TV presenter exited on day 19?
### Context:
CREATE TABLE table_name_53 (celebrity VARCHAR, exited VARCHAR, famous_for VARCHAR) [/INST]
### Response:
SELECT celebrity FROM table_name_53 WHERE exited = "day 19" AND famous_for = "ex busted member and tv presenter" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 celebrity was famous for finishing 9th?
### Context:
CREATE TABLE table_name_52 (famous_for VARCHAR, finished VARCHAR) [/INST]
### Response:
SELECT famous_for FROM table_name_52 WHERE finished = "9th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Myleene Klass finish?
### Context:
CREATE TABLE table_name_77 (finished VARCHAR, celebrity VARCHAR) [/INST]
### Response:
SELECT finished FROM table_name_77 WHERE celebrity = "myleene klass" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Opponent of kilmarnock, and a Result of 1–1 happened in what venue?
### Context:
CREATE TABLE table_name_24 (venue VARCHAR, opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_24 WHERE opponent = "kilmarnock" AND result = "1–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 weight of a shot that is xx-inch?
### Context:
CREATE TABLE table_name_51 (weight_of_shot VARCHAR, designation__bore_ VARCHAR) [/INST]
### Response:
SELECT weight_of_shot FROM table_name_51 WHERE designation__bore_ = "xx-inch" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 length of the film with Burleigh Sullivan as the character?
### Context:
CREATE TABLE table_name_30 (length VARCHAR, character_name VARCHAR) [/INST]
### Response:
SELECT length FROM table_name_30 WHERE character_name = "burleigh sullivan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 length of the film with the character type being a milkman turned prizefighter?
### Context:
CREATE TABLE table_name_31 (length VARCHAR, character_type VARCHAR) [/INST]
### Response:
SELECT length FROM table_name_31 WHERE character_type = "milkman turned prizefighter" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 character name that has phyllis welch as the leading lady?
### Context:
CREATE TABLE table_name_97 (character_name VARCHAR, leading_lady VARCHAR) [/INST]
### Response:
SELECT character_name FROM table_name_97 WHERE leading_lady = "phyllis welch" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the film that had phyllis welch as the leading lady?
### Context:
CREATE TABLE table_name_74 (director_s_ VARCHAR, leading_lady VARCHAR) [/INST]
### Response:
SELECT director_s_ FROM table_name_74 WHERE leading_lady = "phyllis welch" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 character name for the film with a release date of July 29, 1938?
### Context:
CREATE TABLE table_name_72 (character_name VARCHAR, release_date VARCHAR) [/INST]
### Response:
SELECT character_name FROM table_name_72 WHERE release_date = "july 29, 1938" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Locomotive was Delivered as T414?
### Context:
CREATE TABLE table_name_2 (locomotive VARCHAR, delivered_as VARCHAR) [/INST]
### Response:
SELECT locomotive FROM table_name_2 WHERE delivered_as = "t414" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Owner Delivered the T415?
### Context:
CREATE TABLE table_name_70 (owner VARCHAR, delivered_as VARCHAR) [/INST]
### Response:
SELECT owner FROM table_name_70 WHERE delivered_as = "t415" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Entered service date of the T413?
### Context:
CREATE TABLE table_name_32 (entered_service VARCHAR, delivered_as VARCHAR) [/INST]
### Response:
SELECT entered_service FROM table_name_32 WHERE delivered_as = "t413" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Delivered as name of the H3 Locomotive?
### Context:
CREATE TABLE table_name_64 (delivered_as VARCHAR, locomotive VARCHAR) [/INST]
### Response:
SELECT delivered_as FROM table_name_64 WHERE locomotive = "h3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Entered service date of the H1 Locomotive?
### Context:
CREATE TABLE table_name_54 (entered_service VARCHAR, locomotive VARCHAR) [/INST]
### Response:
SELECT entered_service FROM table_name_54 WHERE locomotive = "h1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the highest week with a result of l 16–12?
### Context:
CREATE TABLE table_name_53 (week INTEGER, result VARCHAR) [/INST]
### Response:
SELECT MAX(week) FROM table_name_53 WHERE result = "l 16–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:
Who was the opponent at the game with a result of l 27–3?
### Context:
CREATE TABLE table_name_52 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_52 WHERE result = "l 27–3" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.