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 was the total score when the E score was larger than 9.6 and the A score was 6?
### Context:
CREATE TABLE table_name_85 (total VARCHAR, e_score VARCHAR, a_score VARCHAR) [/INST]
### Response:
SELECT total FROM table_name_85 WHERE e_score > 9.6 AND a_score = 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 was the average E score when the T score was less than 4?
### Context:
CREATE TABLE table_name_69 (e_score INTEGER, t_score INTEGER) [/INST]
### Response:
SELECT AVG(e_score) FROM table_name_69 WHERE t_score < 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 was the average T score when the E score was larger than 9.6 and the team was from Spain?
### Context:
CREATE TABLE table_name_88 (t_score INTEGER, nation VARCHAR, e_score VARCHAR) [/INST]
### Response:
SELECT AVG(t_score) FROM table_name_88 WHERE nation = "spain" AND e_score > 9.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 was the total number of A scores for Japan when the T score was more than 4?
### Context:
CREATE TABLE table_name_63 (a_score VARCHAR, nation VARCHAR, t_score VARCHAR) [/INST]
### Response:
SELECT COUNT(a_score) FROM table_name_63 WHERE nation = "japan" AND t_score > 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 was the sum of the E scores when the total score was 19.466?
### Context:
CREATE TABLE table_name_7 (e_score INTEGER, total VARCHAR) [/INST]
### Response:
SELECT SUM(e_score) FROM table_name_7 WHERE total = 19.466 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 E scores when the total score was 19.7 and the A score was more than 6?
### Context:
CREATE TABLE table_name_49 (e_score VARCHAR, total VARCHAR, a_score VARCHAR) [/INST]
### Response:
SELECT COUNT(e_score) FROM table_name_49 WHERE total = 19.7 AND a_score > 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 highest number of draws with 14 points and less than 7 games?
### Context:
CREATE TABLE table_name_39 (drawn INTEGER, points VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT MAX(drawn) FROM table_name_39 WHERE points = 14 AND games < 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance at the game with a record of 4-5?
### Context:
CREATE TABLE table_name_92 (attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_92 WHERE record = "4-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 date of the week 16 game?
### Context:
CREATE TABLE table_name_79 (date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_79 WHERE week = 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record at the game with a result of W 13-12 after week 4?
### Context:
CREATE TABLE table_name_10 (record VARCHAR, week VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_10 WHERE week > 4 AND result = "w 13-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 attended by 62,019 before week 17?
### Context:
CREATE TABLE table_name_22 (opponent VARCHAR, week VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_22 WHERE week < 17 AND attendance = "62,019" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface for january 8, 2001
### Context:
CREATE TABLE table_name_93 (surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_93 WHERE date = "january 8, 2001" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 jordan kerr july 19, 2004
### Context:
CREATE TABLE table_name_79 (outcome VARCHAR, partnering VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_79 WHERE partnering = "jordan kerr" AND date = "july 19, 2004" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the score for opponents of nathan healey igor kunitsyn
### Context:
CREATE TABLE table_name_57 (score VARCHAR, opponents_in_the_final VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_57 WHERE opponents_in_the_final = "nathan healey igor kunitsyn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponents of jonas björkman john mcenroe
### Context:
CREATE TABLE table_name_60 (outcome VARCHAR, opponents_in_the_final VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_60 WHERE opponents_in_the_final = "jonas björkman john mcenroe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface for paul goldstein and date of october 2, 2006
### Context:
CREATE TABLE table_name_79 (surface VARCHAR, partnering VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_79 WHERE partnering = "paul goldstein" AND date = "october 2, 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:
Which Games have a Drawn smaller than 1, and a Lost smaller than 1?
### Context:
CREATE TABLE table_name_91 (games VARCHAR, drawn VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT games FROM table_name_91 WHERE drawn < 1 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:
Which Drawn is the lowest one that has a Lost of 5, and Points larger than 4?
### Context:
CREATE TABLE table_name_32 (drawn INTEGER, lost VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MIN(drawn) FROM table_name_32 WHERE lost = 5 AND points > 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 Government has 57 seats?
### Context:
CREATE TABLE table_name_56 (government VARCHAR, seats VARCHAR) [/INST]
### Response:
SELECT government FROM table_name_56 WHERE seats = 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:
How many seats does the 6th Dail have?
### Context:
CREATE TABLE table_name_72 (seats VARCHAR, dáil VARCHAR) [/INST]
### Response:
SELECT COUNT(seats) FROM table_name_72 WHERE dáil = "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 is the number of the dail with 61 seats?
### Context:
CREATE TABLE table_name_55 (dáil VARCHAR, seats VARCHAR) [/INST]
### Response:
SELECT dáil FROM table_name_55 WHERE seats = 61 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest number of seats from the election with 27.0% of votes?
### Context:
CREATE TABLE table_name_55 (seats INTEGER, share_of_votes VARCHAR) [/INST]
### Response:
SELECT MIN(seats) FROM table_name_55 WHERE share_of_votes = "27.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 6th dail share of votes?
### Context:
CREATE TABLE table_name_67 (share_of_votes VARCHAR, dáil VARCHAR) [/INST]
### Response:
SELECT share_of_votes FROM table_name_67 WHERE dáil = "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 was the highest week when the record was 1-3?
### Context:
CREATE TABLE table_name_48 (week INTEGER, record VARCHAR) [/INST]
### Response:
SELECT MAX(week) FROM table_name_48 WHERE record = "1-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:
Who was the opponent at the game attended by 62,657?
### Context:
CREATE TABLE table_name_34 (opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_34 WHERE attendance = "62,657" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 built for the Fay No. 4?
### Context:
CREATE TABLE table_name_47 (year_built INTEGER, name VARCHAR) [/INST]
### Response:
SELECT MAX(year_built) FROM table_name_47 WHERE name = "fay no. 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:
Where the length is 91', what is the year built?
### Context:
CREATE TABLE table_name_38 (year_built VARCHAR, length VARCHAR) [/INST]
### Response:
SELECT year_built FROM table_name_38 WHERE length = "91'" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 address for the Scorpions' mascot?
### Context:
CREATE TABLE table_name_80 (address VARCHAR, mascot VARCHAR) [/INST]
### Response:
SELECT address FROM table_name_80 WHERE mascot = "scorpions" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mascot for the 2013-2014 principal named Frank Hendricsen?
### Context:
CREATE TABLE table_name_7 (mascot VARCHAR, principal__2013_2014_ VARCHAR) [/INST]
### Response:
SELECT mascot FROM table_name_7 WHERE principal__2013_2014_ = "frank hendricsen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 assistant and main principals of Kat Hughes?
### Context:
CREATE TABLE table_name_97 (Assistant VARCHAR, principal__2013_2014_ VARCHAR) [/INST]
### Response:
SELECT Assistant AS principal__2013_2014_ FROM table_name_97 WHERE principal__2013_2014_ = "kat hughes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 address for the school that has the coyotes mascot?
### Context:
CREATE TABLE table_name_44 (address VARCHAR, mascot VARCHAR) [/INST]
### Response:
SELECT address FROM table_name_44 WHERE mascot = "coyotes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played at Jinan?
### Context:
CREATE TABLE table_name_26 (result VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_26 WHERE venue = "jinan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the game on November 10, 2006?
### Context:
CREATE TABLE table_name_17 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_17 WHERE date = "november 10, 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 is the date of the game held at Lahore?
### Context:
CREATE TABLE table_name_87 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_87 WHERE venue = "lahore" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 entries in 2001 that had a front row smaller than 13?
### Context:
CREATE TABLE table_name_55 (entries VARCHAR, season VARCHAR, front_row_starts VARCHAR) [/INST]
### Response:
SELECT COUNT(entries) FROM table_name_55 WHERE season = "2001" AND front_row_starts < 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 are the lowest entries for a front row smaller than 15 where Michael Schumacher was driving?
### Context:
CREATE TABLE table_name_87 (entries INTEGER, front_row_starts VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT MIN(entries) FROM table_name_87 WHERE front_row_starts < 15 AND driver = "michael schumacher" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 front row starts for Alain Prost?
### Context:
CREATE TABLE table_name_52 (front_row_starts INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT MAX(front_row_starts) FROM table_name_52 WHERE driver = "alain prost" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has Losses larger than 2, and Wins of 8, and Byes smaller than 0?
### Context:
CREATE TABLE table_name_65 (against INTEGER, byes VARCHAR, losses VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT SUM(against) FROM table_name_65 WHERE losses > 2 AND wins = 8 AND byes < 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:
Which Draws have Wins larger than 14?
### Context:
CREATE TABLE table_name_23 (draws INTEGER, wins INTEGER) [/INST]
### Response:
SELECT SUM(draws) FROM table_name_23 WHERE wins > 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:
How many Losses have an NTFA Div 2 of perth, and Wins smaller than 10?
### Context:
CREATE TABLE table_name_45 (losses VARCHAR, ntfa_div_2 VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_45 WHERE ntfa_div_2 = "perth" 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:
Which Byes have an Against smaller than 1647, and an NTFA Div 2 of fingal valley, and Wins smaller than 14?
### Context:
CREATE TABLE table_name_80 (byes INTEGER, wins VARCHAR, against VARCHAR, ntfa_div_2 VARCHAR) [/INST]
### Response:
SELECT MAX(byes) FROM table_name_80 WHERE against < 1647 AND ntfa_div_2 = "fingal valley" AND wins < 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:
How many grids were there races with more than 10 laps and a time of +34.121?
### Context:
CREATE TABLE table_name_83 (grid VARCHAR, time VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_83 WHERE time = "+34.121" AND laps > 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 smallest grid number that had 10 laps listed with Jonathan Summerton as the driver?
### Context:
CREATE TABLE table_name_31 (grid INTEGER, laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_31 WHERE laps = 10 AND driver = "jonathan summerton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid number that had Team China with less than 10 laps?
### Context:
CREATE TABLE table_name_29 (grid INTEGER, laps VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_29 WHERE laps < 10 AND team = "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:
Which Creator has the Latest stable release of unknown, and a Name of myeclipse?
### Context:
CREATE TABLE table_name_33 (creator VARCHAR, latest_stable_release VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT creator FROM table_name_33 WHERE latest_stable_release = "unknown" AND name = "myeclipse" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Platform / OS has a Name of altova umodel?
### Context:
CREATE TABLE table_name_97 (platform___os VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT platform___os FROM table_name_97 WHERE name = "altova umodel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Programming language used has a First public release of 1997?
### Context:
CREATE TABLE table_name_52 (programming_language_used VARCHAR, first_public_release VARCHAR) [/INST]
### Response:
SELECT programming_language_used FROM table_name_52 WHERE first_public_release = "1997" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 public release has a Name of rational software modeler?
### Context:
CREATE TABLE table_name_25 (first_public_release VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT first_public_release FROM table_name_25 WHERE name = "rational software modeler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of Rice's highest overall for the guard position?
### Context:
CREATE TABLE table_name_62 (overall INTEGER, position VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT MAX(overall) FROM table_name_62 WHERE position = "guard" AND college = "rice" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tommy Nobis' position that has fewer than 16 picks?
### Context:
CREATE TABLE table_name_80 (position VARCHAR, pick__number VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_80 WHERE pick__number < 16 AND name = "tommy nobis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score when the Rangers were playing against the Vancouver Canucks?
### Context:
CREATE TABLE table_name_99 (score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_99 WHERE opponent = "vancouver canucks" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on January 27?
### Context:
CREATE TABLE table_name_34 (opponent VARCHAR, january VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_34 WHERE 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:
Who was the opponent for game number less than 47 and a record of 24-13-4?
### Context:
CREATE TABLE table_name_34 (opponent VARCHAR, game VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_34 WHERE game < 47 AND record = "24-13-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 average january number when the game number was higher than 39 and the opponent was the Vancouver Canucks?
### Context:
CREATE TABLE table_name_72 (january INTEGER, opponent VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT AVG(january) FROM table_name_72 WHERE opponent = "vancouver canucks" AND game > 39 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Drawn number with a Points against of correct as of 08:50 10 may 2009?
### Context:
CREATE TABLE table_name_11 (drawn VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT drawn FROM table_name_11 WHERE points_against = "correct as of 08:50 10 may 2009" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tries against when lost shows 12 for pontycymmer rfc?
### Context:
CREATE TABLE table_name_79 (tries_against VARCHAR, lost VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT tries_against FROM table_name_79 WHERE lost = "12" AND club = "pontycymmer rfc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points against for the ystradgynlais rfc club?
### Context:
CREATE TABLE table_name_58 (points_against VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT points_against FROM table_name_58 WHERE club = "ystradgynlais rfc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Club name what shows 405 for the Points against?
### Context:
CREATE TABLE table_name_11 (club VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_11 WHERE points_against = "405" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What shows for Try bonus when the points against are 451?
### Context:
CREATE TABLE table_name_37 (try_bonus VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT try_bonus FROM table_name_37 WHERE points_against = "451" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pos has a Make of chevrolet, and a Driver of jack sprague, and a Car # smaller than 2?
### Context:
CREATE TABLE table_name_41 (pos INTEGER, car__number VARCHAR, make VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT SUM(pos) FROM table_name_41 WHERE make = "chevrolet" AND driver = "jack sprague" AND car__number < 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 Car numbers have a Driver of erik darnell, and a Pos smaller than 2?
### Context:
CREATE TABLE table_name_93 (car__number VARCHAR, driver VARCHAR, pos VARCHAR) [/INST]
### Response:
SELECT COUNT(car__number) FROM table_name_93 WHERE driver = "erik darnell" AND pos < 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:
Which Pos has a Car # of 33?
### Context:
CREATE TABLE table_name_72 (pos INTEGER, car__number VARCHAR) [/INST]
### Response:
SELECT SUM(pos) FROM table_name_72 WHERE car__number = 33 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pos has a Team of circle bar racing, and a Car # smaller than 14?
### Context:
CREATE TABLE table_name_64 (pos INTEGER, team VARCHAR, car__number VARCHAR) [/INST]
### Response:
SELECT MAX(pos) FROM table_name_64 WHERE team = "circle bar racing" AND car__number < 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:
Which Pos has a Car # larger than 2, and a Team of billy ballew motorsports?
### Context:
CREATE TABLE table_name_38 (pos INTEGER, car__number VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT AVG(pos) FROM table_name_38 WHERE car__number > 2 AND team = "billy ballew motorsports" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the Director(s) of satoko okita?
### Context:
CREATE TABLE table_name_42 (rank VARCHAR, director_s_ VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_42 WHERE director_s_ = "satoko okita" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country is the film hi no tsugi ha rekishi from?
### Context:
CREATE TABLE table_name_21 (country VARCHAR, film VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_21 WHERE film = "hi no tsugi ha rekishi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Director(s) made the film hanzubon no ojisan and received a prize of ¥300,000?
### Context:
CREATE TABLE table_name_21 (director_s_ VARCHAR, prize VARCHAR, film VARCHAR) [/INST]
### Response:
SELECT director_s_ FROM table_name_21 WHERE prize = "¥300,000" AND film = "hanzubon no ojisan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which country did the Director(s) of kota nagaoka come from and win ¥300,000?
### Context:
CREATE TABLE table_name_59 (country VARCHAR, prize VARCHAR, director_s_ VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_59 WHERE prize = "¥300,000" AND director_s_ = "kota nagaoka" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Director won a prize of ¥2,000,000?
### Context:
CREATE TABLE table_name_42 (director_s_ VARCHAR, prize VARCHAR) [/INST]
### Response:
SELECT director_s_ FROM table_name_42 WHERE prize = "¥2,000,000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Rank is the director of maximilian jezo-parovsky?
### Context:
CREATE TABLE table_name_95 (rank VARCHAR, director_s_ VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_95 WHERE director_s_ = "maximilian jezo-parovsky" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the most high assists from Milwaukee?
### Context:
CREATE TABLE table_name_73 (high_assists VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_name_73 WHERE team = "milwaukee" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 scored the most point on December 13?
### Context:
CREATE TABLE table_name_28 (high_points VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_28 WHERE date = "december 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's the Loss for the game that had a 22-24 record?
### Context:
CREATE TABLE table_name_24 (loss VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_24 WHERE record = "22-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 was the date that Elvir Krehmic made a high jump record?
### Context:
CREATE TABLE table_name_78 (date VARCHAR, athlete VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_78 WHERE athlete = "elvir krehmic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 spine has 12 issues?
### Context:
CREATE TABLE table_name_99 (spine VARCHAR, number_of_issues VARCHAR) [/INST]
### Response:
SELECT spine FROM table_name_99 WHERE number_of_issues = 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 issues end on jan–72?
### Context:
CREATE TABLE table_name_82 (number_of_issues INTEGER, end_month VARCHAR) [/INST]
### Response:
SELECT SUM(number_of_issues) FROM table_name_82 WHERE end_month = "jan–72" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 masthead ends on oct–69?
### Context:
CREATE TABLE table_name_15 (masthead VARCHAR, end_month VARCHAR) [/INST]
### Response:
SELECT masthead FROM table_name_15 WHERE end_month = "oct–69" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 held on May 2?
### Context:
CREATE TABLE table_name_51 (game INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(game) FROM table_name_51 WHERE date = "may 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:
Which Season has a Postseason of promoted runner-up?
### Context:
CREATE TABLE table_name_33 (season VARCHAR, postseason VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_33 WHERE postseason = "promoted runner-up" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance of the match with a record 20-11?
### Context:
CREATE TABLE table_name_97 (attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_97 WHERE record = "20-11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the match with a 28-15 record?
### Context:
CREATE TABLE table_name_24 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_24 WHERE record = "28-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:
Which opponent did they play against on April 16?
### Context:
CREATE TABLE table_name_79 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_79 WHERE date = "april 16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What circuit was after round 2 in Victoria?
### Context:
CREATE TABLE table_name_64 (circuit VARCHAR, round VARCHAR, state_territory VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_64 WHERE round > 2 AND state_territory = "victoria" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 state the winning driver Jamie Whincup from in round 2?
### Context:
CREATE TABLE table_name_8 (state_territory VARCHAR, winning_driver VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT state_territory FROM table_name_8 WHERE winning_driver = "jamie whincup" AND round = 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 date in October did the Flyers play against the Toronto Maple Leafs?
### Context:
CREATE TABLE table_name_11 (october VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT october FROM table_name_11 WHERE opponent = "toronto maple leafs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the game that had more than 8 points?
### Context:
CREATE TABLE table_name_17 (score VARCHAR, points INTEGER) [/INST]
### Response:
SELECT score FROM table_name_17 WHERE points > 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:
The round that had the final, what was the result?
### Context:
CREATE TABLE table_name_11 (result VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_11 WHERE round = "final" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 andry laffita had what score?
### Context:
CREATE TABLE table_name_7 (score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_7 WHERE opponent = "andry laffita" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 igor samoilenco had what result?
### Context:
CREATE TABLE table_name_11 (result VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_11 WHERE opponent = "igor samoilenco" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Score of 33-22 had what round?
### Context:
CREATE TABLE table_name_14 (round VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_14 WHERE score = "33-22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Round of first had what opponent?
### Context:
CREATE TABLE table_name_75 (opponent VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_75 WHERE round = "first" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 win, and a Score of 33-22 involved what event?
### Context:
CREATE TABLE table_name_4 (event VARCHAR, result VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_4 WHERE result = "win" AND score = "33-22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were the lowest points of game 60?
### Context:
CREATE TABLE table_name_99 (points INTEGER, game VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_99 WHERE game = 60 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What championship had Francesca Schiavone in the finals?
### Context:
CREATE TABLE table_name_81 (championship VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT championship FROM table_name_81 WHERE opponent_in_the_final = "francesca schiavone" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 national titles for the team with doane tigers as the mascot?
### Context:
CREATE TABLE table_name_2 (national_titles VARCHAR, mascot VARCHAR) [/INST]
### Response:
SELECT COUNT(national_titles) FROM table_name_2 WHERE mascot = "doane tigers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which year's crew is varsity 8+ when the record is 7-3?
### Context:
CREATE TABLE table_name_63 (year VARCHAR, crew VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_63 WHERE crew = "varsity 8+" AND record = "7-3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of win % when John Gartin is coach, the crew is varsity 8+, and the year is 2005?
### Context:
CREATE TABLE table_name_78 (win__percentage INTEGER, year VARCHAR, coach VARCHAR, crew VARCHAR) [/INST]
### Response:
SELECT SUM(win__percentage) FROM table_name_78 WHERE coach = "john gartin" AND crew = "varsity 8+" AND year = "2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest win percentage when John Gartin is coach, the record is 11-0, and the year is 2009?
### Context:
CREATE TABLE table_name_80 (win__percentage INTEGER, year VARCHAR, coach VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT MAX(win__percentage) FROM table_name_80 WHERE coach = "john gartin" AND record = "11-0" AND year = "2009" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total of win percentages when the year is 2008 and the crew is varsity 8+?
### Context:
CREATE TABLE table_name_74 (win__percentage INTEGER, year VARCHAR, crew VARCHAR) [/INST]
### Response:
SELECT SUM(win__percentage) FROM table_name_74 WHERE year = "2008" AND crew = "varsity 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 is the pick number for the tight end who was picked after round 6?
### Context:
CREATE TABLE table_name_67 (pick VARCHAR, round VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(pick) FROM table_name_67 WHERE round > 6 AND position = "tight end" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.