text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Score of the Round with Player Aaron Baddeley having a To par of +2?
### Context:
CREATE TABLE table_name_61 (score VARCHAR, to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_61 WHERE to_par = "+2" AND player = "aaron baddeley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Charlie Wi's To par?
### Context:
CREATE TABLE table_name_29 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_29 WHERE player = "charlie wi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the T8 Place Player with a Score of 68-74=142?
### Context:
CREATE TABLE table_name_99 (country VARCHAR, place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_99 WHERE place = "t8" AND score = 68 - 74 = 142 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 T8 Place Player with a Score of 68-74=142?
### Context:
CREATE TABLE table_name_67 (player VARCHAR, place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_67 WHERE place = "t8" AND score = 68 - 74 = 142 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 David Toms from?
### Context:
CREATE TABLE table_name_84 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_84 WHERE player = "david toms" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par for Robert Allenby from Australia
### Context:
CREATE TABLE table_name_6 (to_par VARCHAR, country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_6 WHERE country = "australia" AND player = "robert allenby" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rocco Mediate of the United States has a To par of +2, what was his score?
### Context:
CREATE TABLE table_name_43 (score VARCHAR, player VARCHAR, to_par VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_43 WHERE to_par = "+2" AND country = "united states" AND player = "rocco mediate" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for Greg Norman
### Context:
CREATE TABLE table_name_84 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_84 WHERE player = "greg norman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rocco Mediate has a To par of +2 and a 69-73=142 score, what is the country listed?
### Context:
CREATE TABLE table_name_36 (country VARCHAR, player VARCHAR, to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_36 WHERE to_par = "+2" AND score = 69 - 73 = 142 AND player = "rocco mediate" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed that has a place of t4 with a score of 72-70=142?
### Context:
CREATE TABLE table_name_85 (country VARCHAR, place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_85 WHERE place = "t4" AND score = 72 - 70 = 142 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Home team of the Kidderminster Harriers Away game?
### Context:
CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_20 WHERE away_team = "kidderminster harriers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Sutton United Home game?
### Context:
CREATE TABLE table_name_35 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_35 WHERE home_team = "sutton 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:
What is the Date of Tie no 35 with a Score of 3–2?
### Context:
CREATE TABLE table_name_78 (date VARCHAR, score VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_78 WHERE score = "3–2" AND tie_no = "35" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tie no of the Carlisle United Away game on 17/11/1990 with a Score of 5–0?
### Context:
CREATE TABLE table_name_27 (tie_no VARCHAR, away_team VARCHAR, date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_27 WHERE date = "17/11/1990" AND score = "5–0" AND away_team = "carlisle 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:
What is the Home team of Tie no 40?
### Context:
CREATE TABLE table_name_35 (home_team VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_35 WHERE tie_no = "40" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Away team of the Merthyr Tydfil Home game with a Score of 1–1?
### Context:
CREATE TABLE table_name_46 (away_team VARCHAR, score VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_46 WHERE score = "1–1" AND home_team = "merthyr tydfil" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Attendance, when Home Team is "Welling United"?
### Context:
CREATE TABLE table_name_26 (attendance INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_26 WHERE home_team = "welling 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:
What is Score, when Attendance is "303"?
### Context:
CREATE TABLE table_name_14 (score VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_14 WHERE attendance = 303 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place is Andy Bean from the United States?
### Context:
CREATE TABLE table_name_50 (place VARCHAR, country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_50 WHERE country = "united states" AND player = "andy bean" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 United States player has a place of T3?
### Context:
CREATE TABLE table_name_3 (player VARCHAR, country VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_3 WHERE country = "united states" AND place = "t3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lee Trevino from?
### Context:
CREATE TABLE table_name_41 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_41 WHERE player = "lee trevino" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that has the 2012 rank of 43?
### Context:
CREATE TABLE table_name_98 (state VARCHAR, rank__2012_ VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_98 WHERE rank__2012_ = 43 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year, when Apparatus is "Vault", and when Rank-Final is less than 9?
### Context:
CREATE TABLE table_name_45 (year INTEGER, apparatus VARCHAR, rank_final VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_45 WHERE apparatus = "vault" AND rank_final < 9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Year, when Competition Description is "U.S. Championships", when Rank-Final is less than 3, and when Apparatus is "All-Around"?
### Context:
CREATE TABLE table_name_79 (year VARCHAR, apparatus VARCHAR, competition_description VARCHAR, rank_final VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_79 WHERE competition_description = "u.s. championships" AND rank_final < 3 AND apparatus = "all-around" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Apparatus, when Rank-Final is greater than 6, and when Competition Description is "U.S. Championships"?
### Context:
CREATE TABLE table_name_9 (apparatus VARCHAR, rank_final VARCHAR, competition_description VARCHAR) [/INST]
### Response:
SELECT apparatus FROM table_name_9 WHERE rank_final > 6 AND competition_description = "u.s. championships" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the first leg home that had a total aggregate of 3-1?
### Context:
CREATE TABLE table_name_90 (home__1st_leg_ VARCHAR, aggregate VARCHAR) [/INST]
### Response:
SELECT home__1st_leg_ FROM table_name_90 WHERE aggregate = "3-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 1st leg that had a 4-2 aggregate?
### Context:
CREATE TABLE table_name_33 (aggregate VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_33 WHERE aggregate = "4-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 was the 1st leg that had a 1st get home for the Boca Juniors?
### Context:
CREATE TABLE table_name_82 (home__1st_leg_ VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_82 WHERE home__1st_leg_ = "boca juniors" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd leg that had the Estudiantes La Plata home for the 2nd leg?
### Context:
CREATE TABLE table_name_41 (home__2nd_leg_ VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_name_41 WHERE home__2nd_leg_ = "estudiantes la plata" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the Player that has the Place of t5, and the Score of 73-72-71-75=291?
### Context:
CREATE TABLE table_name_33 (player VARCHAR, place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_33 WHERE place = "t5" AND score = 73 - 72 - 71 - 75 = 291 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the average Money ($) that has the To par larger than 14, and the Player of ed dudley?
### Context:
CREATE TABLE table_name_87 (money___ INTEGER, to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT AVG(money___) AS $__ FROM table_name_87 WHERE to_par > 14 AND player = "ed dudley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 transfer window for Hleb?
### Context:
CREATE TABLE table_name_69 (transfer_window VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT transfer_window FROM table_name_69 WHERE name = "hleb" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ends for Dani Alves?
### Context:
CREATE TABLE table_name_49 (ends INTEGER, name VARCHAR) [/INST]
### Response:
SELECT MIN(ends) FROM table_name_49 WHERE name = "dani alves" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the person with a type of transfer, and a Transfer fee of €8m + €2m in variables?
### Context:
CREATE TABLE table_name_64 (name VARCHAR, type VARCHAR, transfer_fee VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_64 WHERE type = "transfer" AND transfer_fee = "€8m + €2m in variables" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par, when Margin of Victory is "2 Strokes", and when Tournament is "Women's British Open"?
### Context:
CREATE TABLE table_name_98 (to_par VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_98 WHERE margin_of_victory = "2 strokes" AND tournament = "women's british open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date, when Runner(s)-Up is "Bo-Mee Lee"?
### Context:
CREATE TABLE table_name_65 (date VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_65 WHERE runner_s__up = "bo-mee lee" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par, when Margin of Victory is "2 Strokes", and when Tournament is "Women's British Open"?
### Context:
CREATE TABLE table_name_36 (to_par VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_36 WHERE margin_of_victory = "2 strokes" AND tournament = "women's british open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did Steve Stricker score?
### Context:
CREATE TABLE table_name_54 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_54 WHERE player = "steve stricker" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of the number of clubs in seasons before 1992 with more than 3 total wins?
### Context:
CREATE TABLE table_name_30 (number_of_clubs INTEGER, season VARCHAR, total_wins VARCHAR) [/INST]
### Response:
SELECT SUM(number_of_clubs) FROM table_name_30 WHERE season < 1992 AND total_wins > 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of the season with 8 clubs and shanghai as the runners-up?
### Context:
CREATE TABLE table_name_63 (season INTEGER, number_of_clubs VARCHAR, runners_up VARCHAR) [/INST]
### Response:
SELECT SUM(season) FROM table_name_63 WHERE number_of_clubs = 8 AND runners_up = "shanghai" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is third-place with less than 5 total wins with china b as the winners?
### Context:
CREATE TABLE table_name_89 (third_place VARCHAR, total_wins VARCHAR, winners VARCHAR) [/INST]
### Response:
SELECT third_place FROM table_name_89 WHERE total_wins < 5 AND winners = "china b" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of wins in a season before 1989 with tianjin as the runners-up and more than 8 clubs?
### Context:
CREATE TABLE table_name_92 (total_wins INTEGER, number_of_clubs VARCHAR, season VARCHAR, runners_up VARCHAR) [/INST]
### Response:
SELECT MIN(total_wins) FROM table_name_92 WHERE season < 1989 AND runners_up = "tianjin" AND number_of_clubs > 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result for Rank 2 on December 6, 1969?
### Context:
CREATE TABLE table_name_23 (result VARCHAR, rank_number VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_23 WHERE rank_number = "2" AND date = "december 6, 1969" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank # for opponent AT Baylor?
### Context:
CREATE TABLE table_name_27 (rank_number VARCHAR, opponent_number VARCHAR) [/INST]
### Response:
SELECT rank_number FROM table_name_27 WHERE opponent_number = "at baylor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for opponent TCU?
### Context:
CREATE TABLE table_name_89 (result VARCHAR, opponent_number VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_89 WHERE opponent_number = "tcu" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was the attendance 82,500?
### Context:
CREATE TABLE table_name_81 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_81 WHERE attendance = "82,500" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 League Cup has a Total smaller than 1?
### Context:
CREATE TABLE table_name_3 (league_cup INTEGER, total INTEGER) [/INST]
### Response:
SELECT SUM(league_cup) FROM table_name_3 WHERE 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:
Which Total has a League Cup smaller than 0?
### Context:
CREATE TABLE table_name_69 (total INTEGER, league_cup INTEGER) [/INST]
### Response:
SELECT MAX(total) FROM table_name_69 WHERE league_cup < 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 Championship has a League Cup larger than 0, and a FA Cup larger than 0?
### Context:
CREATE TABLE table_name_68 (championship INTEGER, league_cup VARCHAR, fa_cup VARCHAR) [/INST]
### Response:
SELECT MIN(championship) FROM table_name_68 WHERE league_cup > 0 AND fa_cup > 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 Championship has a League Cup smaller than 0?
### Context:
CREATE TABLE table_name_14 (championship INTEGER, league_cup INTEGER) [/INST]
### Response:
SELECT AVG(championship) FROM table_name_14 WHERE league_cup < 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 Age (as of 1 February 2014) has a Rank smaller than 9, and a Death date of 24 january 2007?
### Context:
CREATE TABLE table_name_3 (age__as_of_1_february_2014_ VARCHAR, rank VARCHAR, death_date VARCHAR) [/INST]
### Response:
SELECT age__as_of_1_february_2014_ FROM table_name_3 WHERE rank < 9 AND death_date = "24 january 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Death date has a Rank smaller than 49, and an Age (as of 1 February 2014) of 112 years, 172 days?
### Context:
CREATE TABLE table_name_65 (death_date VARCHAR, rank VARCHAR, age__as_of_1_february_2014_ VARCHAR) [/INST]
### Response:
SELECT death_date FROM table_name_65 WHERE rank < 49 AND age__as_of_1_february_2014_ = "112 years, 172 days" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Death date has a Place of death or residence of united states, and an Age (as of 1 February 2014) of 111 years, 61 days?
### Context:
CREATE TABLE table_name_49 (death_date VARCHAR, place_of_death_or_residence VARCHAR, age__as_of_1_february_2014_ VARCHAR) [/INST]
### Response:
SELECT death_date FROM table_name_49 WHERE place_of_death_or_residence = "united states" AND age__as_of_1_february_2014_ = "111 years, 61 days" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record on Feb 25?
### Context:
CREATE TABLE table_name_83 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_83 WHERE date = "feb 25" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the streak when the opponent was @ new jersey nets?
### Context:
CREATE TABLE table_name_26 (streak VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT streak FROM table_name_26 WHERE opponent = "@ new jersey nets" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the competition vitry-sur-seine humarathon?
### Context:
CREATE TABLE table_name_41 (year INTEGER, competition VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_41 WHERE competition = "vitry-sur-seine humarathon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Goal Difference has 28 Points, and a Club of cd cartagena, more than 15 losses?
### Context:
CREATE TABLE table_name_77 (goal_difference INTEGER, losses VARCHAR, points VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT MAX(goal_difference) FROM table_name_77 WHERE points = 28 AND club = "cd cartagena" AND losses > 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:
How much Goal Difference has less than 9 Losses, and 8 Draws, and more than 40 points?
### Context:
CREATE TABLE table_name_22 (goal_difference INTEGER, points VARCHAR, losses VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT SUM(goal_difference) FROM table_name_22 WHERE losses < 9 AND draws = 8 AND points > 40 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points have more than 14 wins, a goal difference of 14, and more than 6 draws?
### Context:
CREATE TABLE table_name_13 (points VARCHAR, draws VARCHAR, wins VARCHAR, goal_difference VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_13 WHERE wins > 14 AND goal_difference = 14 AND draws > 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Played has Goals against larger than 34, and Wins smaller than 12, and Goals for smaller than 50, and Losses larger than 15?
### Context:
CREATE TABLE table_name_39 (played INTEGER, losses VARCHAR, goals_for VARCHAR, goals_against VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT AVG(played) FROM table_name_39 WHERE goals_against > 34 AND wins < 12 AND goals_for < 50 AND losses > 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 Draws has Goals against smaller than 47, and a Position smaller than 13, and Goals for of 52?
### Context:
CREATE TABLE table_name_28 (draws INTEGER, goals_for VARCHAR, goals_against VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MIN(draws) FROM table_name_28 WHERE goals_against < 47 AND position < 13 AND goals_for = 52 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 long is the bridge in Villeneuve-sur-Lot?
### Context:
CREATE TABLE table_name_40 (longest_span_in_s_metre___feet__ VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT longest_span_in_s_metre___feet__ FROM table_name_40 WHERE location = "villeneuve-sur-lot" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bridge was completed in 1928?
### Context:
CREATE TABLE table_name_57 (name VARCHAR, completed VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_57 WHERE completed = "1928" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 long is the UK's Ballochmyle Viaduct?
### Context:
CREATE TABLE table_name_97 (longest_span_in_s_metre___feet__ VARCHAR, land VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT longest_span_in_s_metre___feet__ FROM table_name_97 WHERE land = "uk" AND name = "ballochmyle viaduct" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What kind of arch is the pont de montanges (pont-des-pierres)?
### Context:
CREATE TABLE table_name_23 (arch_type VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT arch_type FROM table_name_23 WHERE name = "pont de montanges (pont-des-pierres)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
From where did the Scout carrier rocket with the satellite that has a COSPAR ID of 1971-109a launch?
### Context:
CREATE TABLE table_name_6 (launch_site VARCHAR, carrier_rocket VARCHAR, cospar_id VARCHAR) [/INST]
### Response:
SELECT launch_site FROM table_name_6 WHERE carrier_rocket = "scout" AND cospar_id = "1971-109a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the satellite that has a COSPAR ID of 1967-042a launched?
### Context:
CREATE TABLE table_name_80 (launch_date VARCHAR, cospar_id VARCHAR) [/INST]
### Response:
SELECT launch_date FROM table_name_80 WHERE cospar_id = "1967-042a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Ariel 3's COSPAR ID?
### Context:
CREATE TABLE table_name_3 (cospar_id VARCHAR, satellite VARCHAR) [/INST]
### Response:
SELECT cospar_id FROM table_name_3 WHERE satellite = "ariel 3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which satellite was launched from Vandenberg?
### Context:
CREATE TABLE table_name_5 (satellite VARCHAR, launch_site VARCHAR) [/INST]
### Response:
SELECT satellite FROM table_name_5 WHERE launch_site = "vandenberg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 COSPAR ID of Ariel 4, which was launched with a Scout carrier rocket?
### Context:
CREATE TABLE table_name_69 (cospar_id VARCHAR, carrier_rocket VARCHAR, satellite VARCHAR) [/INST]
### Response:
SELECT cospar_id FROM table_name_69 WHERE carrier_rocket = "scout" AND satellite = "ariel 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 Rush song was played for Mike Fincke?
### Context:
CREATE TABLE table_name_4 (song VARCHAR, played_for VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT song FROM table_name_4 WHERE played_for = "mike fincke" AND artist = "rush" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what flight day was U2 played?
### Context:
CREATE TABLE table_name_2 (flight_day VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT flight_day FROM table_name_2 WHERE artist = "u2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What links were used on flight day 16?
### Context:
CREATE TABLE table_name_81 (links VARCHAR, flight_day VARCHAR) [/INST]
### Response:
SELECT links FROM table_name_81 WHERE flight_day = "day 16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the 2011 Australian Open and a 2010 QF?
### Context:
CREATE TABLE table_name_70 (tournament VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_70 WHERE tournament = "australian open" AND 2010 = "qf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2010 that has 1r 2011?
### Context:
CREATE TABLE table_name_3 (Id VARCHAR) [/INST]
### Response:
SELECT 2010 FROM table_name_3 WHERE 2011 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning % for the 2010 QF?
### Context:
CREATE TABLE table_name_3 (win__percentage VARCHAR) [/INST]
### Response:
SELECT win__percentage FROM table_name_3 WHERE 2010 = "qf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2009 for 2012 1R in Wimbledon and a 2011 2r?
### Context:
CREATE TABLE table_name_77 (tournament VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_77 WHERE 2012 = "1r" AND tournament = "wimbledon" AND 2011 = "2r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2012 that has a winning % of 67%?
### Context:
CREATE TABLE table_name_60 (win__percentage VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_60 WHERE win__percentage = "67%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In 1979 when Jimmy Connors was the runner-up what was the score?
### Context:
CREATE TABLE table_name_74 (score VARCHAR, runner_up VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_74 WHERE runner_up = "jimmy connors" AND year < 1979 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who won when Peter Fleming was a runner-up?
### Context:
CREATE TABLE table_name_82 (champion VARCHAR, runner_up VARCHAR) [/INST]
### Response:
SELECT champion FROM table_name_82 WHERE runner_up = "peter fleming" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 John Mcenroe won at Montreal, what was the score?
### Context:
CREATE TABLE table_name_43 (score VARCHAR, location VARCHAR, champion VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_43 WHERE location = "montreal" AND champion = "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:
When Ilie Năstase beat runner-up Peter Fleming what year was it?
### Context:
CREATE TABLE table_name_56 (year VARCHAR, champion VARCHAR, runner_up VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_56 WHERE champion = "ilie năstase" AND runner_up = "peter fleming" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first track where the production credit is margret arranged by e. mergency?
### Context:
CREATE TABLE table_name_98 (track INTEGER, production_credits VARCHAR) [/INST]
### Response:
SELECT MIN(track) FROM table_name_98 WHERE production_credits = "margret arranged by e. mergency" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 song was written by Nigel Stock and is 4:12 long?
### Context:
CREATE TABLE table_name_58 (title VARCHAR, songwriter_s_ VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_58 WHERE songwriter_s_ = "nigel stock" AND time = "4: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 songwriter for Track 4, produced by nigel wright and john smits?
### Context:
CREATE TABLE table_name_84 (songwriter_s_ VARCHAR, production_credits VARCHAR, track VARCHAR) [/INST]
### Response:
SELECT songwriter_s_ FROM table_name_84 WHERE production_credits = "nigel wright and john smits" AND track = 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 lowest draft of player jim farrell, who has a pick greater than 197 and a round of 14?
### Context:
CREATE TABLE table_name_62 (draft INTEGER, player VARCHAR, pick VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT MIN(draft) FROM table_name_62 WHERE pick > 197 AND round = 14 AND player = "jim farrell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick of player paul stasiuk from a round greater than 12?
### Context:
CREATE TABLE table_name_45 (pick INTEGER, player VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT MIN(pick) FROM table_name_45 WHERE player = "paul stasiuk" AND round > 12 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total pick number of player curt bennett from canada with a draft before 1976 and a round less than 2?
### Context:
CREATE TABLE table_name_32 (pick VARCHAR, round VARCHAR, player VARCHAR, nationality VARCHAR, draft VARCHAR) [/INST]
### Response:
SELECT COUNT(pick) FROM table_name_32 WHERE nationality = "canada" AND draft < 1976 AND player = "curt bennett" 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 is the average pick of player paul maclean, who had a draft before 1978?
### Context:
CREATE TABLE table_name_19 (pick INTEGER, player VARCHAR, draft VARCHAR) [/INST]
### Response:
SELECT AVG(pick) FROM table_name_19 WHERE player = "paul maclean" AND draft < 1978 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round of player dave pulkkinen, who had a draft after 1969?
### Context:
CREATE TABLE table_name_61 (round INTEGER, player VARCHAR, draft VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_61 WHERE player = "dave pulkkinen" AND draft > 1969 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the position in 1981?
### Context:
CREATE TABLE table_name_55 (position VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_55 WHERE year = 1981 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the player with pick 19?
### Context:
CREATE TABLE table_name_87 (player VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_87 WHERE pick = "19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Country of the T2 Place Player with a Score of 69-69-69=207?
### Context:
CREATE TABLE table_name_2 (country VARCHAR, place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_2 WHERE place = "t2" AND score = 69 - 69 - 69 = 207 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 T7 Place Player Justin Leonard's Score?
### Context:
CREATE TABLE table_name_31 (score VARCHAR, place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_31 WHERE place = "t7" AND player = "justin leonard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's Score is 69-71-69=208?
### Context:
CREATE TABLE table_name_88 (player VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_88 WHERE score = 69 - 71 - 69 = 208 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Place of the Player with a To par of –8 and a Score of 67-74-67=208?
### Context:
CREATE TABLE table_name_83 (place VARCHAR, to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_83 WHERE to_par = "–8" AND score = 67 - 74 - 67 = 208 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 T4 Place Player Nick Price's Score?
### Context:
CREATE TABLE table_name_15 (score VARCHAR, place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_15 WHERE place = "t4" AND player = "nick price" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Justin Leonard with a To par of –7's Score?
### Context:
CREATE TABLE table_name_32 (score VARCHAR, to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_32 WHERE to_par = "–7" AND player = "justin leonard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week 4 game?
### Context:
CREATE TABLE table_name_85 (opponent VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_85 WHERE week = 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 result of the week 16 game?
### Context:
CREATE TABLE table_name_49 (result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_49 WHERE week = 16 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.