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:
Name the general classification with roman kreuziger and points classification of fabian cancellara
### Context:
CREATE TABLE table_name_97 (general_classification VARCHAR, young_rider_classification VARCHAR, points_classification VARCHAR) [/INST]
### Response:
SELECT general_classification FROM table_name_97 WHERE young_rider_classification = "roman kreuziger" AND points_classification = "fabian cancellara" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the combativity award with winner of luis león sánchez
### Context:
CREATE TABLE table_name_13 (combativity_award VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT combativity_award FROM table_name_13 WHERE winner = "luis león sánchez" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 numbers listed in 18-49 for the episode that aired on June 25, 2009 with an order larger than 29?
### Context:
CREATE TABLE table_name_51 (air_date VARCHAR, order VARCHAR) [/INST]
### Response:
SELECT SUM(18 AS _49) FROM table_name_51 WHERE air_date = "june 25, 2009" AND order > 29 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 18-49 for the episode that aired on July 2, 2009 with more than 3.5 viewers?
### Context:
CREATE TABLE table_name_1 (air_date VARCHAR, viewers VARCHAR) [/INST]
### Response:
SELECT COUNT(18 AS _49) FROM table_name_1 WHERE air_date = "july 2, 2009" AND viewers > 3.5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average 18-49 for the episode that had an order number higher than 35 and less than 3.5 viewers?
### Context:
CREATE TABLE table_name_44 (viewers VARCHAR, order VARCHAR) [/INST]
### Response:
SELECT AVG(18 AS _49) FROM table_name_44 WHERE viewers < 3.5 AND order > 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 episode name that aired on July 23, 2009 with more than 3.31 viewers?
### Context:
CREATE TABLE table_name_45 (episode VARCHAR, air_date VARCHAR, viewers VARCHAR) [/INST]
### Response:
SELECT episode FROM table_name_45 WHERE air_date = "july 23, 2009" AND viewers > 3.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 year sold 1,695,900+ copies with an Oricon position larger than 1?
### Context:
CREATE TABLE table_name_19 (year INTEGER, copies_sold VARCHAR, oricon_position VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_19 WHERE copies_sold = "1,695,900+" AND oricon_position > 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many copies were sold where the position is lager than 1 in 1988?
### Context:
CREATE TABLE table_name_85 (copies_sold VARCHAR, oricon_position VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT copies_sold FROM table_name_85 WHERE oricon_position > 1 AND year = 1988 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Winning Score on May 29, 1977?
### Context:
CREATE TABLE table_name_2 (winning_score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT winning_score FROM table_name_2 WHERE date = "may 29, 1977" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what Date was Patty Sheehan Runner(s)-up?
### Context:
CREATE TABLE table_name_62 (date VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_62 WHERE runner_s__up = "patty sheehan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Judy Rankin Runner(s)-up?
### Context:
CREATE TABLE table_name_64 (date VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_64 WHERE runner_s__up = "judy rankin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winning score –8 (69-72-70-69=280)?
### Context:
CREATE TABLE table_name_95 (date VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_95 WHERE winning_score = –8(69 - 72 - 70 - 69 = 280) </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Carole Charbonnier a Runner(s)-up with a 1 stroke Margin of victory?
### Context:
CREATE TABLE table_name_6 (date VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_6 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "carole charbonnier" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the team play home in Toronto?
### Context:
CREATE TABLE table_name_64 (date VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_64 WHERE home = "toronto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 people attended the game when Larry Hughes(33) was the leading scorer and cleveland was visiting?
### Context:
CREATE TABLE table_name_6 (attendance INTEGER, visitor VARCHAR, leading_scorer VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_6 WHERE visitor = "cleveland" AND leading_scorer = "larry hughes(33)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did they play Utah at home?
### Context:
CREATE TABLE table_name_38 (date VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_38 WHERE home = "utah" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What opponent has balboa stadium as the opponent?
### Context:
CREATE TABLE table_name_4 (opponent VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_4 WHERE stadium = "balboa stadium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest attendance that has oakland raiders as the opponent, with a week greater than 9?
### Context:
CREATE TABLE table_name_83 (attendance INTEGER, opponent VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_83 WHERE opponent = "oakland raiders" AND week > 9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where is the headquarter of the conglomerate industry?
### Context:
CREATE TABLE table_name_42 (headquarters VARCHAR, primary_industry VARCHAR) [/INST]
### Response:
SELECT headquarters FROM table_name_42 WHERE primary_industry = "conglomerate" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game played at the venue of Hrazdan Stadium, Yerevan, Armenia?
### Context:
CREATE TABLE table_name_70 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_70 WHERE venue = "hrazdan stadium, yerevan, armenia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bronze medal when the Asian Games were held in Busan?
### Context:
CREATE TABLE table_name_81 (bronze VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT bronze FROM table_name_81 WHERE location = "busan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gold when Kim Hyang-Mi won the bronze?
### Context:
CREATE TABLE table_name_97 (gold VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT gold FROM table_name_97 WHERE bronze = "kim hyang-mi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earliest year that Park Jung-Ah won the gold?
### Context:
CREATE TABLE table_name_16 (year INTEGER, gold VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_16 WHERE gold = "park jung-ah" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bronze when the Asian Games were in Doha?
### Context:
CREATE TABLE table_name_70 (bronze VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT bronze FROM table_name_70 WHERE location = "doha" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Attendance on November 29, 1953?
### Context:
CREATE TABLE table_name_56 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_56 WHERE date = "november 29, 1953" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 NFL team picked Patrick Collins?
### Context:
CREATE TABLE table_name_30 (nfl_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nfl_team FROM table_name_30 WHERE player = "patrick collins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 NFL team picked a player for the Wide Receiver position?
### Context:
CREATE TABLE table_name_19 (nfl_team VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT nfl_team FROM table_name_19 WHERE position = "wide receiver" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What result has a year after 2002?
### Context:
CREATE TABLE table_name_35 (result VARCHAR, year INTEGER) [/INST]
### Response:
SELECT result FROM table_name_35 WHERE year > 2002 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What tournament has a year prior to 2001?
### Context:
CREATE TABLE table_name_26 (tournament VARCHAR, year INTEGER) [/INST]
### Response:
SELECT tournament FROM table_name_26 WHERE year < 2001 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date does visiting team Minnesota score higher than 47 points?
### Context:
CREATE TABLE table_name_34 (date VARCHAR, points VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_34 WHERE points > 47 AND visitor = "minnesota" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does visitor team Toronto score less than 49 points and has record of 18-17-7?
### Context:
CREATE TABLE table_name_73 (date VARCHAR, record VARCHAR, visitor VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_73 WHERE visitor = "toronto" AND points < 49 AND record = "18-17-7" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the fleet number for the model of Gillig Phantom 3096TB?
### Context:
CREATE TABLE table_name_95 (fleet_number VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT fleet_number FROM table_name_95 WHERE model = "gillig phantom 3096tb" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 width for the year of the 1970?
### Context:
CREATE TABLE table_name_38 (width VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT width FROM table_name_38 WHERE year = "1970" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which year has a fleet number of 603?
### Context:
CREATE TABLE table_name_22 (year VARCHAR, fleet_number VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_22 WHERE fleet_number = "603" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the length of fleet number 501-506?
### Context:
CREATE TABLE table_name_62 (length VARCHAR, fleet_number VARCHAR) [/INST]
### Response:
SELECT length FROM table_name_62 WHERE fleet_number = "501-506" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fleet number for the year of 19xx?
### Context:
CREATE TABLE table_name_62 (fleet_number VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT fleet_number FROM table_name_62 WHERE year = "19xx" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fleet number of Model Orion 01.507?
### Context:
CREATE TABLE table_name_23 (fleet_number VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT fleet_number FROM table_name_23 WHERE model = "orion 01.507" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round of Ed Smith, who had a pick higher than 261 and played halfback?
### Context:
CREATE TABLE table_name_78 (round INTEGER, player VARCHAR, pick VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_78 WHERE pick < 261 AND position = "halfback" AND player = "ed smith" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round of Ed Smith, who had a pick lower than 19?
### Context:
CREATE TABLE table_name_29 (round INTEGER, player VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_29 WHERE player = "ed smith" AND 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:
Which player had a round of 27?
### Context:
CREATE TABLE table_name_4 (player VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_4 WHERE round = 27 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the position of the player with a round less than 20 from the school/club Washington?
### Context:
CREATE TABLE table_name_17 (position VARCHAR, round VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_17 WHERE round < 20 AND school_club_team = "washington" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Location of hemisfair arena had what record?
### Context:
CREATE TABLE table_name_43 (record VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_43 WHERE location = "hemisfair arena" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Record of 20–4 involved what highest game?
### Context:
CREATE TABLE table_name_44 (game INTEGER, record VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_44 WHERE record = "20–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:
Opponent of @ phoenix suns had what sum of game?
### Context:
CREATE TABLE table_name_52 (game INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT SUM(game) FROM table_name_52 WHERE opponent = "@ phoenix suns" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Score of 122–105 had what record?
### Context:
CREATE TABLE table_name_68 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_68 WHERE score = "122–105" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the final, who are the opponents of partner Simon Aspelin?
### Context:
CREATE TABLE table_name_9 (opponents_in_the_final VARCHAR, partner VARCHAR) [/INST]
### Response:
SELECT opponents_in_the_final FROM table_name_9 WHERE partner = "simon aspelin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For the tournament played on 26 February 2006, what surface was used?
### Context:
CREATE TABLE table_name_35 (surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_35 WHERE date = "26 february 2006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Date has a Record of 58–10?
### Context:
CREATE TABLE table_name_78 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_78 WHERE record = "58–10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Date has a Score of 106–112?
### Context:
CREATE TABLE table_name_58 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_58 WHERE score = "106–112" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 second when Martynas Norkus was the skip?
### Context:
CREATE TABLE table_name_86 (second VARCHAR, skip VARCHAR) [/INST]
### Response:
SELECT second FROM table_name_86 WHERE skip = "martynas norkus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 second when Ilian Kirilov was the lead?
### Context:
CREATE TABLE table_name_2 (second VARCHAR, lead VARCHAR) [/INST]
### Response:
SELECT second FROM table_name_2 WHERE lead = "ilian kirilov" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the lead when Jamie Meikle was the skip?
### Context:
CREATE TABLE table_name_11 (lead VARCHAR, skip VARCHAR) [/INST]
### Response:
SELECT lead FROM table_name_11 WHERE skip = "jamie meikle" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the lead when Ritvars Gulbis was the skip?
### Context:
CREATE TABLE table_name_10 (lead VARCHAR, skip VARCHAR) [/INST]
### Response:
SELECT lead FROM table_name_10 WHERE skip = "ritvars gulbis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 came in third in England?
### Context:
CREATE TABLE table_name_60 (third VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT third FROM table_name_60 WHERE nation = "england" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nation did Darko Sovran place third?
### Context:
CREATE TABLE table_name_19 (nation VARCHAR, third VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_19 WHERE third = "darko sovran" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a w/o score on November 5, 2007?
### Context:
CREATE TABLE table_name_62 (tournament VARCHAR, score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_62 WHERE score = "w/o" AND date = "november 5, 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:
What is the surface of eckental tournament with a w/o score?
### Context:
CREATE TABLE table_name_94 (surface VARCHAR, tournament VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_94 WHERE tournament = "eckental" AND score = "w/o" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a hard surface and Ruben de Kleijn as the opponent?
### Context:
CREATE TABLE table_name_64 (tournament VARCHAR, surface VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_64 WHERE surface = "hard" AND opponent = "ruben de kleijn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament on November 5, 2007 with a carpet surface?
### Context:
CREATE TABLE table_name_90 (score VARCHAR, surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_90 WHERE surface = "carpet" AND date = "november 5, 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:
What is the surface of the tournament with Sascha Kloer as the opponent?
### Context:
CREATE TABLE table_name_37 (surface VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_37 WHERE opponent = "sascha kloer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 scored in gomel
### Context:
CREATE TABLE table_name_10 (team VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_10 WHERE location = "gomel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 conceded number of the team with a position lower than 8 and more than 2 wins?
### Context:
CREATE TABLE table_name_68 (conceded INTEGER, position VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT AVG(conceded) FROM table_name_68 WHERE position > 8 AND wins > 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 averaged scored number of team guaraní, which has less than 6 draws and less than 5 losses?
### Context:
CREATE TABLE table_name_30 (scored INTEGER, losses VARCHAR, draws VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT AVG(scored) FROM table_name_30 WHERE draws < 6 AND team = "guaraní" AND losses < 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number scored of the team positioned lower than 10?
### Context:
CREATE TABLE table_name_72 (scored VARCHAR, position INTEGER) [/INST]
### Response:
SELECT COUNT(scored) FROM table_name_72 WHERE position > 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 lowest number of wins of the team with less than 24 scored, 27 conceded, and more than 18 played?
### Context:
CREATE TABLE table_name_32 (wins INTEGER, played VARCHAR, scored VARCHAR, conceded VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_32 WHERE scored < 24 AND conceded = 27 AND played > 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest number of points of the team with 2 losses and a lower than 1 position?
### Context:
CREATE TABLE table_name_73 (points INTEGER, losses VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_73 WHERE losses = 2 AND position > 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Intercontinental Cup 1993 result for a Supercopa Sudamericana 1993 result of round of 16?
### Context:
CREATE TABLE table_name_23 (intercontinental_cup_1993 VARCHAR, supercopa_sudamericana_1993 VARCHAR) [/INST]
### Response:
SELECT intercontinental_cup_1993 FROM table_name_23 WHERE supercopa_sudamericana_1993 = "round of 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 earliest game in November with more than 22 Games and Toronto Maple Leafs as the Opponent?
### Context:
CREATE TABLE table_name_69 (november INTEGER, game VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT MIN(november) FROM table_name_69 WHERE game > 22 AND opponent = "toronto maple leafs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the family friendly status of the punk genre song from the 1970s?
### Context:
CREATE TABLE table_name_8 (family_friendly VARCHAR, decade VARCHAR, genre VARCHAR) [/INST]
### Response:
SELECT family_friendly FROM table_name_8 WHERE decade = "1970s" AND genre = "punk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 artist of the rock song?
### Context:
CREATE TABLE table_name_7 (artist VARCHAR, genre VARCHAR) [/INST]
### Response:
SELECT artist FROM table_name_7 WHERE genre = "rock" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of bronze medals for nations with under 0 golds?
### Context:
CREATE TABLE table_name_46 (bronze INTEGER, gold INTEGER) [/INST]
### Response:
SELECT MAX(bronze) FROM table_name_46 WHERE gold < 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 points did Stuart have when he had 0 extra points?
### Context:
CREATE TABLE table_name_53 (points INTEGER, player VARCHAR, extra_points VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_53 WHERE player = "stuart" AND extra_points < 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:
Who had the lowest field goals but had 10 points and more than 2 touchdowns?
### Context:
CREATE TABLE table_name_68 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR) [/INST]
### Response:
SELECT MIN(field_goals) FROM table_name_68 WHERE points = 10 AND touchdowns > 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 points did Stuart have when he had less than 1 touchdown?
### Context:
CREATE TABLE table_name_80 (points INTEGER, player VARCHAR, touchdowns VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_80 WHERE player = "stuart" AND touchdowns < 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had a points average with 0 extra points and 0 field goals?
### Context:
CREATE TABLE table_name_33 (points INTEGER, extra_points VARCHAR, field_goals VARCHAR) [/INST]
### Response:
SELECT AVG(points) FROM table_name_33 WHERE extra_points = 0 AND field_goals > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result in the Golden Reel Awards?
### Context:
CREATE TABLE table_name_38 (result VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_38 WHERE event = "golden reel awards" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Record of 16–29 is how many attendance?
### Context:
CREATE TABLE table_name_32 (attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_32 WHERE record = "16–29" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Loss of peavy (4–3) is what score?
### Context:
CREATE TABLE table_name_5 (score VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_5 WHERE loss = "peavy (4–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:
Score of 3–2, and a Opponent of reds had what sum of attendance?
### Context:
CREATE TABLE table_name_21 (attendance INTEGER, score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_21 WHERE score = "3–2" AND opponent = "reds" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Score of 6–4, and a Opponent of @ marlins had what record?
### Context:
CREATE TABLE table_name_96 (record VARCHAR, score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_96 WHERE score = "6–4" AND opponent = "@ marlins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Cuts made has a Tournament of totals, and Wins smaller than 11?
### Context:
CREATE TABLE table_name_25 (cuts_made INTEGER, tournament VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT AVG(cuts_made) FROM table_name_25 WHERE tournament = "totals" AND wins < 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Top-25 has a Top-5 smaller than 0?
### Context:
CREATE TABLE table_name_3 (top_25 INTEGER, top_5 INTEGER) [/INST]
### Response:
SELECT SUM(top_25) FROM table_name_3 WHERE top_5 < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11?
### Context:
CREATE TABLE table_name_71 (top_25 INTEGER, top_5 VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT SUM(top_25) FROM table_name_71 WHERE top_5 > 9 AND wins < 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Top-5 is the highest one that has Wins of 0, and Events larger than 6?
### Context:
CREATE TABLE table_name_47 (top_5 INTEGER, wins VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT MAX(top_5) FROM table_name_47 WHERE wins = 0 AND events > 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 Top-5 is the lowest one that has Cuts made of 10, and Events larger than 10?
### Context:
CREATE TABLE table_name_88 (top_5 INTEGER, cuts_made VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT MIN(top_5) FROM table_name_88 WHERE cuts_made = 10 AND events > 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Events is the highest one that has a Top-10 larger than 7, and Wins smaller than 2?
### Context:
CREATE TABLE table_name_39 (events INTEGER, top_10 VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MAX(events) FROM table_name_39 WHERE top_10 > 7 AND wins < 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:
When the surface is clay, and the tournament of barcelona what is the score?
### Context:
CREATE TABLE table_name_29 (score VARCHAR, surface VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_29 WHERE surface = "clay" AND tournament = "barcelona" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 surface when the opponent was judith wiesner, and the outcome was winner?
### Context:
CREATE TABLE table_name_51 (surface VARCHAR, outcome VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_51 WHERE outcome = "winner" AND opponent = "judith wiesner" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent for the tournament of rio de janeiro?
### Context:
CREATE TABLE table_name_22 (opponent VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_22 WHERE tournament = "rio de janeiro" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent with the outcome of runner-up with a date of 19 september 1994?
### Context:
CREATE TABLE table_name_25 (opponent VARCHAR, outcome VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_25 WHERE outcome = "runner-up" AND date = "19 september 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:
What was the opponent for the tournament of taranto?
### Context:
CREATE TABLE table_name_97 (opponent VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_97 WHERE tournament = "taranto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the fastest lap where Joan Lascorz was the winner?
### Context:
CREATE TABLE table_name_45 (fastest_lap VARCHAR, race_winner VARCHAR) [/INST]
### Response:
SELECT fastest_lap FROM table_name_45 WHERE race_winner = "joan lascorz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round in Europe?
### Context:
CREATE TABLE table_name_1 (race_winner VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT race_winner FROM table_name_1 WHERE round = "europe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 have a Score of 3–0, and a January larger than 12?
### Context:
CREATE TABLE table_name_16 (game VARCHAR, score VARCHAR, january VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_name_16 WHERE score = "3–0" AND january > 12 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Opponent has a January larger than 8, and a Game smaller than 48, and a Score of 5–3?
### Context:
CREATE TABLE table_name_77 (opponent VARCHAR, score VARCHAR, january VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_77 WHERE january > 8 AND game < 48 AND score = "5–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 Game is the highest that has a January of 28?
### Context:
CREATE TABLE table_name_51 (game INTEGER, january VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_51 WHERE january = 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 Score has a Game larger than 47, and a January smaller than 25?
### Context:
CREATE TABLE table_name_19 (score VARCHAR, game VARCHAR, january VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_19 WHERE game > 47 AND january < 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 stroke has a max power of 109 ps(80kw)@4000 rpm?
### Context:
CREATE TABLE table_name_39 (stroke VARCHAR, max_power VARCHAR) [/INST]
### Response:
SELECT stroke FROM table_name_39 WHERE max_power = "109 ps(80kw)@4000 rpm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The nissan primera p12 nissan almera n16 has what C.R.?
### Context:
CREATE TABLE table_name_60 (cr VARCHAR, vehicle VARCHAR) [/INST]
### Response:
SELECT cr FROM table_name_60 WHERE vehicle = "nissan primera p12 nissan almera n16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What displacement has the code yd22ddt?
### Context:
CREATE TABLE table_name_22 (displacement VARCHAR, code VARCHAR) [/INST]
### Response:
SELECT displacement FROM table_name_22 WHERE code = "yd22ddt" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.