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 Guest Host for the episode on 8 june 2008?
### Context:
CREATE TABLE table_name_2 (guest_host VARCHAR, air_date VARCHAR) [/INST]
### Response:
SELECT guest_host FROM table_name_2 WHERE air_date = "8 june 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Musical Guest (Song performed) for the episode aired on 13 july 2008?
### Context:
CREATE TABLE table_name_2 (musical_guest__song_performed_ VARCHAR, air_date VARCHAR) [/INST]
### Response:
SELECT musical_guest__song_performed_ FROM table_name_2 WHERE air_date = "13 july 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the 2014 FIFA World Cup Qualification (UEFA)?
### Context:
CREATE TABLE table_name_64 (score VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_64 WHERE competition = "2014 fifa world cup qualification (uefa)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 kickoff time for week 11's game?
### Context:
CREATE TABLE table_name_64 (kickoff_time VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT kickoff_time FROM table_name_64 WHERE week = 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When Mark O'meara was the senior player champion in a year greater than 1998, who was the tradition?
### Context:
CREATE TABLE table_name_14 (the_tradition VARCHAR, year VARCHAR, senior_players_championship VARCHAR) [/INST]
### Response:
SELECT the_tradition FROM table_name_14 WHERE year > 1998 AND senior_players_championship = "mark o'meara" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tradition when Roberto Devicenzo won the U.S. Senior Open and the Senior British Open was founded in 1987?
### Context:
CREATE TABLE table_name_83 (the_tradition VARCHAR, senior_british_open VARCHAR, us_senior_open VARCHAR) [/INST]
### Response:
SELECT the_tradition FROM table_name_83 WHERE senior_british_open = "founded in 1987" AND us_senior_open = "roberto devicenzo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Senior British Open when Hale Irwin (3/7) won the Senior PGA Championship?
### Context:
CREATE TABLE table_name_57 (senior_british_open VARCHAR, senior_pga_championship VARCHAR) [/INST]
### Response:
SELECT senior_british_open FROM table_name_57 WHERE senior_pga_championship = "hale irwin (3/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:
When Tom Watson (5/6) won the Senior British Open who won the Senior PGA Championship?
### Context:
CREATE TABLE table_name_41 (senior_pga_championship VARCHAR, senior_british_open VARCHAR) [/INST]
### Response:
SELECT senior_pga_championship FROM table_name_41 WHERE senior_british_open = "tom watson (5/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 Week has Points For larger than 19, and an Opponent of philadelphia eagles, and Points Against larger than 7?
### Context:
CREATE TABLE table_name_17 (week INTEGER, points_against VARCHAR, points_for VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT MAX(week) FROM table_name_17 WHERE points_for > 19 AND opponent = "philadelphia eagles" AND points_against > 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:
Which Attendance has a First Downs smaller than 26, an Opponent of los angeles rams, and Points For larger than 28?
### Context:
CREATE TABLE table_name_98 (attendance INTEGER, points_for VARCHAR, first_downs VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_98 WHERE first_downs < 26 AND opponent = "los angeles rams" AND points_for > 28 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which League Cup has a FA Cup of 5, and a Club of boston united, and a League smaller than 16?
### Context:
CREATE TABLE table_name_18 (league INTEGER, fa_cup VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT MAX(league) AS Cup FROM table_name_18 WHERE fa_cup = 5 AND club = "boston united" AND league < 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:
How many Total that has a FA Trophy of 0 and a Player of charlie butler?
### Context:
CREATE TABLE table_name_99 (total VARCHAR, fa_trophy VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_99 WHERE fa_trophy = 0 AND player = "charlie butler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 FA Trophy has a Player of mario walsh and a League larger than 17?
### Context:
CREATE TABLE table_name_52 (fa_trophy INTEGER, player VARCHAR, league VARCHAR) [/INST]
### Response:
SELECT AVG(fa_trophy) FROM table_name_52 WHERE player = "mario walsh" AND league > 17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the winning match on Oct 28, 1962?
### Context:
CREATE TABLE table_name_64 (winning_score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT winning_score FROM table_name_64 WHERE date = "oct 28, 1962" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
By how many strokes did Lema beat Jack Nicklaus?
### Context:
CREATE TABLE table_name_16 (margin_of_victory VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT margin_of_victory FROM table_name_16 WHERE runner_s__up = "jack nicklaus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runner-up on Jan 19, 1964?
### Context:
CREATE TABLE table_name_89 (runner_s__up VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_89 WHERE date = "jan 19, 1964" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many Rebounds did Maccabi Tel Aviv Team get after Game 6?
### Context:
CREATE TABLE table_name_10 (rebounds VARCHAR, team VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT COUNT(rebounds) FROM table_name_10 WHERE team = "maccabi tel aviv" AND games > 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:
How many Games for the player with Rebounds from Efes Pilsen?
### Context:
CREATE TABLE table_name_3 (games VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT games FROM table_name_3 WHERE team = "efes pilsen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Games for the Player from Lietuvos Rytas Vilnius with less the 43 Rebounds?
### Context:
CREATE TABLE table_name_68 (games INTEGER, team VARCHAR, rebounds VARCHAR) [/INST]
### Response:
SELECT SUM(games) FROM table_name_68 WHERE team = "lietuvos rytas vilnius" AND rebounds < 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:
Who is The Author of zhou clarke zhang?
### Context:
CREATE TABLE table_name_56 (name VARCHAR, authors VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_56 WHERE authors = "zhou clarke zhang" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Status of primitive confuciusornithid .?
### Context:
CREATE TABLE table_name_21 (status VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_21 WHERE notes = "primitive confuciusornithid ." </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gao chiappe meng o'connor wang cheng liu?
### Context:
CREATE TABLE table_name_99 (name VARCHAR, authors VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_99 WHERE authors = "gao chiappe meng o'connor wang cheng liu" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Name of zhongornis?
### Context:
CREATE TABLE table_name_84 (location VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_84 WHERE name = "zhongornis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Notes has Authors of zhou clarke zhang?
### Context:
CREATE TABLE table_name_40 (notes VARCHAR, authors VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_40 WHERE authors = "zhou clarke zhang" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the ranking of Beirasar Rosalía, the year they played 32 games?
### Context:
CREATE TABLE table_name_6 (rank INTEGER, team VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_6 WHERE team = "beirasar rosalía" AND games < 32 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points did Antwain Barbour score in the year he played 39 games?
### Context:
CREATE TABLE table_name_12 (points INTEGER, name VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_12 WHERE name = "antwain barbour" AND games < 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 team was Paolo Quinteros on?
### Context:
CREATE TABLE table_name_59 (team VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_59 WHERE name = "paolo quinteros" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Was the record of 8-1 (1) a win or a loss?
### Context:
CREATE TABLE table_name_10 (res VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT res FROM table_name_10 WHERE record = "8-1 (1)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what event was the technical decision (split) method used?
### Context:
CREATE TABLE table_name_8 (event VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_8 WHERE method = "technical decision (split)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average play-offs that have an FA Cup greater than 3?
### Context:
CREATE TABLE table_name_9 (play_offs INTEGER, fa_cup INTEGER) [/INST]
### Response:
SELECT AVG(play_offs) FROM table_name_9 WHERE fa_cup > 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many totals have a play-off less than 0?
### Context:
CREATE TABLE table_name_47 (total VARCHAR, play_offs INTEGER) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_47 WHERE play_offs < 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 league has an FA cup greater than 0, with a total greater than 21?
### Context:
CREATE TABLE table_name_76 (league VARCHAR, fa_cup VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_76 WHERE fa_cup > 0 AND total > 21 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest play-offs that have stevenage borough as the club, and a total greater than 21?
### Context:
CREATE TABLE table_name_64 (play_offs INTEGER, club VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MAX(play_offs) FROM table_name_64 WHERE club = "stevenage borough" AND total > 21 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the tournament in 2012 results that has a 2003 results of 2r and played at Wimbledon?
### Context:
CREATE TABLE table_name_6 (tournament VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_6 WHERE 2003 = "2r" AND tournament = "wimbledon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What results in 2012 also has 2013 results of 2r and the tournament was Wimbledon?
### Context:
CREATE TABLE table_name_65 (tournament VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_65 WHERE 2013 = "2r" AND tournament = "wimbledon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 results from 2003 that has a 2012 result of 1r and a 2004 result of 2r and from the Australian Open?
### Context:
CREATE TABLE table_name_67 (tournament VARCHAR) [/INST]
### Response:
SELECT 2003 FROM table_name_67 WHERE 2012 = "1r" AND 2004 = "2r" AND tournament = "australian 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 the name of the tournament that has the results of 2003 2r and 2004 1r?
### Context:
CREATE TABLE table_name_25 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_25 WHERE 2003 = "2r" AND 2004 = "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 results in 2004 that has a 2013 result of 2r?
### Context:
CREATE TABLE table_name_72 (Id VARCHAR) [/INST]
### Response:
SELECT 2004 FROM table_name_72 WHERE 2013 = "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 the result from 2003 from the US Open?
### Context:
CREATE TABLE table_name_80 (tournament VARCHAR) [/INST]
### Response:
SELECT 2003 FROM table_name_80 WHERE tournament = "us 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 the height of the player born on June 24, 1964, with a weight over 84 kg?
### Context:
CREATE TABLE table_name_21 (height__cm_ INTEGER, weight__kg_ VARCHAR, birthdate VARCHAR) [/INST]
### Response:
SELECT AVG(height__cm_) FROM table_name_21 WHERE weight__kg_ > 84 AND birthdate = "june 24, 1964" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date was the player from Melrose, Massachusetts born?
### Context:
CREATE TABLE table_name_54 (birthdate VARCHAR, birthplace VARCHAR) [/INST]
### Response:
SELECT birthdate FROM table_name_54 WHERE birthplace = "melrose, massachusetts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Event is Billabong Pro?
### Context:
CREATE TABLE table_name_34 (date VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_34 WHERE event = "billabong pro" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Location, when Date is December 8-December 20?
### Context:
CREATE TABLE table_name_74 (location VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_74 WHERE date = "december 8-december 20" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Runner-up, when Event is Mancora Peru Classic?
### Context:
CREATE TABLE table_name_87 (runner_up VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_name_87 WHERE event = "mancora peru classic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Event, when Date is August 20-August 27?
### Context:
CREATE TABLE table_name_72 (event VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_72 WHERE date = "august 20-august 27" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Date when Runner-up is Sofía Mulánovich ( per )?
### Context:
CREATE TABLE table_name_92 (date VARCHAR, runner_up VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_92 WHERE runner_up = "sofía mulánovich ( per )" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Country, when Event is Rip Curl Women's Pro?
### Context:
CREATE TABLE table_name_67 (country VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_67 WHERE event = "rip curl women's pro" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 win percentage when there were 23 losses?
### Context:
CREATE TABLE table_name_18 (win_percentage INTEGER, losses VARCHAR) [/INST]
### Response:
SELECT MAX(win_percentage) FROM table_name_18 WHERE losses = 23 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which finish had a win percentage that was more than 0.598 and also had less than 53 wins?
### Context:
CREATE TABLE table_name_41 (finish VARCHAR, win_percentage VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_41 WHERE win_percentage > 0.598 AND wins < 53 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2007 Team with player Deshaun Foster?
### Context:
CREATE TABLE table_name_30 (player VARCHAR) [/INST]
### Response:
SELECT 2007 AS _team FROM table_name_30 WHERE player = "deshaun foster" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Free Agent Type for player bryant johnson?
### Context:
CREATE TABLE table_name_2 (free_agent_type VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT free_agent_type FROM table_name_2 WHERE player = "bryant johnson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the High assists with a Date that is march 31?
### Context:
CREATE TABLE table_name_39 (high_assists VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_name_39 WHERE date = "march 31" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a Date that is march 12?
### Context:
CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_93 WHERE date = "march 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 lowest silver that has a bronze greater than 1, a gold less than 2, and a total less than 2?
### Context:
CREATE TABLE table_name_73 (silver INTEGER, total VARCHAR, bronze VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT MIN(silver) FROM table_name_73 WHERE bronze > 1 AND gold < 2 AND total < 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What average rank that has a silver less than 0?
### Context:
CREATE TABLE table_name_41 (rank INTEGER, silver INTEGER) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_41 WHERE silver < 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:
How many silver have 4 as the total with a bronze less than 2?
### Context:
CREATE TABLE table_name_42 (silver VARCHAR, total VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT COUNT(silver) FROM table_name_42 WHERE total = 4 AND bronze < 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many totals have a rank greater than 4, czech Republic as the nation, and a bronze greater than 0?
### Context:
CREATE TABLE table_name_6 (total INTEGER, bronze VARCHAR, rank VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT SUM(total) FROM table_name_6 WHERE rank > 4 AND nation = "czech republic" AND bronze > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What average total has a gold greater than 0, and a silver greater than 0, with a bronze greater than 2?
### Context:
CREATE TABLE table_name_9 (total INTEGER, bronze VARCHAR, gold VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_9 WHERE gold > 0 AND silver > 0 AND bronze > 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which country has an Indigenous mining production 2006 of 0?
### Context:
CREATE TABLE table_name_26 (country VARCHAR, indigenous_mining_production_2006 VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_26 WHERE indigenous_mining_production_2006 = "0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Silver when the total is less than 6, the rank is 6 and the Bulgaria is the nation?
### Context:
CREATE TABLE table_name_19 (silver INTEGER, nation VARCHAR, total VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT SUM(silver) FROM table_name_19 WHERE total < "6" AND rank = "6" AND nation = "bulgaria" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What nation has a bronze of 2 with a total less than 5 and rank of 6?
### Context:
CREATE TABLE table_name_84 (nation VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_84 WHERE bronze = 2 AND total < 5 AND rank = "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 lowest Total for rank 3 with more than 4 gold?
### Context:
CREATE TABLE table_name_13 (total INTEGER, rank VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_13 WHERE rank = "3" AND gold > 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 Total for Italy with less than 0 silver?
### Context:
CREATE TABLE table_name_32 (total INTEGER, nation VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_32 WHERE nation = "italy" AND silver < 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 Nation with less than 1 silver, and the total is 1, and bronze is less than 0?
### Context:
CREATE TABLE table_name_81 (nation VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_81 WHERE silver < 1 AND total = 1 AND bronze = 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What number has 2002-2003 as the season?
### Context:
CREATE TABLE table_name_32 (number VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT number FROM table_name_32 WHERE season = "2002-2003" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position has 2008 as the season?
### Context:
CREATE TABLE table_name_11 (position VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_11 WHERE season = "2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What name has 50 as the number?
### Context:
CREATE TABLE table_name_54 (name VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_54 WHERE number = "50" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What number has 2008 as the season?
### Context:
CREATE TABLE table_name_38 (number VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT number FROM table_name_38 WHERE season = "2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What name has 8 as the number?
### Context:
CREATE TABLE table_name_5 (name VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_5 WHERE number = "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 position has ronjay buenafe as the name?
### Context:
CREATE TABLE table_name_16 (position VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_16 WHERE name = "ronjay buenafe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest long with 26 yards?
### Context:
CREATE TABLE table_name_51 (long INTEGER, yards VARCHAR) [/INST]
### Response:
SELECT MIN(long) FROM table_name_51 WHERE yards = 26 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the highest average when Fuml was 0?
### Context:
CREATE TABLE table_name_57 (avg INTEGER, fuml INTEGER) [/INST]
### Response:
SELECT MAX(avg) FROM table_name_57 WHERE fuml < 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 highest run currently since the last title in 2010, and a season in Esiliiga larger than 10?
### Context:
CREATE TABLE table_name_12 (current_run_since INTEGER, last_title VARCHAR, seasons_in_esiliiga VARCHAR) [/INST]
### Response:
SELECT MAX(current_run_since) FROM table_name_12 WHERE last_title = "2010" AND seasons_in_esiliiga > 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 2012 season in Esiliiga more than 4, and more than 0 titles?
### Context:
CREATE TABLE table_name_87 (seasons_in_esiliiga VARCHAR, titles VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_87 WHERE seasons_in_esiliiga > 4 AND titles > 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 20-29 was in season 2008?
### Context:
CREATE TABLE table_name_69 (season VARCHAR) [/INST]
### Response:
SELECT 20 AS _29 FROM table_name_69 WHERE season = "2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of points for season 1994?
### Context:
CREATE TABLE table_name_33 (points INTEGER, season VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_33 WHERE season = "1994" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 20-29 had a season of 1997?
### Context:
CREATE TABLE table_name_11 (season VARCHAR) [/INST]
### Response:
SELECT 20 AS _29 FROM table_name_11 WHERE season = "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:
What is the Postion, when the Name is Rod Paavola?
### Context:
CREATE TABLE table_name_27 (position VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_27 WHERE name = "rod paavola" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Jersey #, when the Position is W, and when the Birthdate is 17 October 1932?
### Context:
CREATE TABLE table_name_56 (jersey__number VARCHAR, position VARCHAR, birthdate VARCHAR) [/INST]
### Response:
SELECT COUNT(jersey__number) FROM table_name_56 WHERE position = "w" AND birthdate = "17 october 1932" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Birthplace, when the Name is Bob Mcvey?
### Context:
CREATE TABLE table_name_76 (birthplace VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT birthplace FROM table_name_76 WHERE name = "bob mcvey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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, when the Position is W, and when the Jersey # is 11?
### Context:
CREATE TABLE table_name_73 (name VARCHAR, position VARCHAR, jersey__number VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_73 WHERE position = "w" AND jersey__number = 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 Postion, when the Club/Team is Warroad Lakers, and when the Name is Roger Christian?
### Context:
CREATE TABLE table_name_13 (position VARCHAR, club_team VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_13 WHERE club_team = "warroad lakers" AND name = "roger christian" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What home has 122-28 as the score?
### Context:
CREATE TABLE table_name_96 (home VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_96 WHERE score = "122-28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What ground has etobicoke kangaroos as the home?
### Context:
CREATE TABLE table_name_88 (ground VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT ground FROM table_name_88 WHERE home = "etobicoke kangaroos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What time has humber college north as the ground, and toronto downtown dingos as the home?
### Context:
CREATE TABLE table_name_58 (time VARCHAR, ground VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_58 WHERE ground = "humber college north" AND home = "toronto downtown dingos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What score has Toronto Eagles as the home?
### Context:
CREATE TABLE table_name_57 (score VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_57 WHERE home = "toronto eagles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has high park demons as the away?
### Context:
CREATE TABLE table_name_15 (date VARCHAR, away VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_15 WHERE away = "high park demons" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What away has toronto downtown dingos as the home?
### Context:
CREATE TABLE table_name_71 (away VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT away FROM table_name_71 WHERE home = "toronto downtown dingos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winner from the Rip Curl Pro Search?
### Context:
CREATE TABLE table_name_71 (winner VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_71 WHERE event = "rip curl pro search" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the tournament held in Spain?
### Context:
CREATE TABLE table_name_56 (location VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_56 WHERE country = "spain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament held in Indonesia?
### Context:
CREATE TABLE table_name_23 (date VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_23 WHERE country = "indonesia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Lost when the difference is - 3, and a Played is less than 10?
### Context:
CREATE TABLE table_name_21 (lost INTEGER, difference VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT AVG(lost) FROM table_name_21 WHERE difference = "- 3" AND played < 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 Position when the Drawn is less than 2, with a Difference of 2?
### Context:
CREATE TABLE table_name_65 (position VARCHAR, drawn VARCHAR, difference VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_65 WHERE drawn < "2" AND difference = "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 sum of Against when the drawn is less than 2, the position is more than 8, and the lost is more than 6.
### Context:
CREATE TABLE table_name_35 (against INTEGER, lost VARCHAR, drawn VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT SUM(against) FROM table_name_35 WHERE drawn < 2 AND position > 8 AND lost > 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 Difference with a position of less than 3, and, 17 points.
### Context:
CREATE TABLE table_name_57 (difference VARCHAR, position VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT difference FROM table_name_57 WHERE position < 3 AND points = 17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Top-5, when Tournament is U.S. Open, and when Cuts Made is greater than 10?
### Context:
CREATE TABLE table_name_72 (top_5 INTEGER, tournament VARCHAR, cuts_made VARCHAR) [/INST]
### Response:
SELECT AVG(top_5) FROM table_name_72 WHERE tournament = "u.s. open" AND cuts_made > 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 sum of Events, when Top-10 is 7, and when Top-5 is greater than 4?
### Context:
CREATE TABLE table_name_80 (events INTEGER, top_10 VARCHAR, top_5 VARCHAR) [/INST]
### Response:
SELECT SUM(events) FROM table_name_80 WHERE top_10 = 7 AND top_5 > 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 sum of Top-5, when Tournament is Totals, and when Events is greater than 86?
### Context:
CREATE TABLE table_name_68 (top_5 INTEGER, tournament VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT SUM(top_5) FROM table_name_68 WHERE tournament = "totals" AND events > 86 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Top-10, when Wins is less than 0?
### Context:
CREATE TABLE table_name_37 (top_10 INTEGER, wins INTEGER) [/INST]
### Response:
SELECT AVG(top_10) FROM table_name_37 WHERE wins < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of Top-25, when Events is greater than 86?
### Context:
CREATE TABLE table_name_65 (top_25 VARCHAR, events INTEGER) [/INST]
### Response:
SELECT COUNT(top_25) FROM table_name_65 WHERE events > 86 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.