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 name of the player with the High points when there was a Record of 31β48?
### Context:
CREATE TABLE table_name_66 (high_points VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_66 WHERE record = "31β48" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player with the High rebounds when there was a Score of l 108β114 (ot)?
### Context:
CREATE TABLE table_name_25 (high_rebounds VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT high_rebounds FROM table_name_25 WHERE score = "l 108β114 (ot)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lead for the 1999β00 season?
### Context:
CREATE TABLE table_name_87 (lead VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT lead FROM table_name_87 WHERE season = "1999β00" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Second when the third is don walchuk?
### Context:
CREATE TABLE table_name_91 (second VARCHAR, third VARCHAR) [/INST]
### Response:
SELECT second FROM table_name_91 WHERE third = "don walchuk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Season when the Lead was don bartlett, and the third was don walchuk, and a Second of carter rycroft?
### Context:
CREATE TABLE table_name_63 (season VARCHAR, second VARCHAR, lead VARCHAR, third VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_63 WHERE lead = "don bartlett" AND third = "don walchuk" AND second = "carter rycroft" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Skip when the Third was john morris?
### Context:
CREATE TABLE table_name_61 (skip VARCHAR, third VARCHAR) [/INST]
### Response:
SELECT skip FROM table_name_61 WHERE third = "john morris" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Third when the Lead was don bartlett, the Second was carter rycroft, and a Season of 2003β04?
### Context:
CREATE TABLE table_name_23 (third VARCHAR, season VARCHAR, lead VARCHAR, second VARCHAR) [/INST]
### Response:
SELECT third FROM table_name_23 WHERE lead = "don bartlett" AND second = "carter rycroft" AND season = "2003β04" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lead when the Second was marc kennedy, in the 2012β13 season?
### Context:
CREATE TABLE table_name_66 (lead VARCHAR, second VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT lead FROM table_name_66 WHERE second = "marc kennedy" AND season = "2012β13" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the city with a capacity of 41,311?
### Context:
CREATE TABLE table_name_97 (city VARCHAR, capacity VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_97 WHERE capacity = "41,311" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the State with Suwon as the city
### Context:
CREATE TABLE table_name_37 (state VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_37 WHERE city = "suwon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the State with a home venue of suwon sports complex?
### Context:
CREATE TABLE table_name_43 (state VARCHAR, home_venue VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_43 WHERE home_venue = "suwon sports complex" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team name for Chungju?
### Context:
CREATE TABLE table_name_11 (team VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_11 WHERE city = "chungju" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Team with a venue of Anyang Stadium?
### Context:
CREATE TABLE table_name_96 (team VARCHAR, home_venue VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_96 WHERE home_venue = "anyang 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 State with Gwangju Fc as the team?
### Context:
CREATE TABLE table_name_10 (state VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_10 WHERE team = "gwangju fc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the To par, when the Player is Loren Roberts?
### Context:
CREATE TABLE table_name_72 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_72 WHERE player = "loren roberts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the To par, when the Score is 68-71-69=208?
### Context:
CREATE TABLE table_name_1 (to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_1 WHERE score = 68 - 71 - 69 = 208 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Place, when the Score is 68-70-71=209?
### Context:
CREATE TABLE table_name_19 (place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_19 WHERE score = 68 - 70 - 71 = 209 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Place, when the Player is Chris Dimarco?
### Context:
CREATE TABLE table_name_8 (place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_8 WHERE player = "chris dimarco" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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, when the Country is United States, when the Place is T3, and when the Player is Chris Riley?
### Context:
CREATE TABLE table_name_38 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_38 WHERE country = "united states" AND place = "t3" AND player = "chris riley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 where the opponent was Mardy Fish?
### Context:
CREATE TABLE table_name_68 (score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_68 WHERE opponent = "mardy fish" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What surface was played on with a score of 6β4, 6β3 and on 4 May 1992?
### Context:
CREATE TABLE table_name_36 (surface VARCHAR, score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_36 WHERE score = "6β4, 6β3" AND date = "4 may 1992" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played 13 November 2000?
### Context:
CREATE TABLE table_name_35 (tournament VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_35 WHERE date = "13 november 2000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tournament was played on 12 February 2001?
### Context:
CREATE TABLE table_name_21 (tournament VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_21 WHERE date = "12 february 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:
What is the average round number with wide receiver as position and Clark University as the college and the pick number is bigger than 166?
### Context:
CREATE TABLE table_name_18 (round__number INTEGER, pick__number VARCHAR, position VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT AVG(round__number) FROM table_name_18 WHERE position = "wide receiver" AND college = "clark university" AND pick__number > 166 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team had a year entering the league under 2009, located in Bath?
### Context:
CREATE TABLE table_name_21 (team VARCHAR, year_entered_league VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_21 WHERE year_entered_league < 2009 AND location = "bath" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the year of entry for the University of Essex?
### Context:
CREATE TABLE table_name_70 (year_entered_league VARCHAR, university VARCHAR) [/INST]
### Response:
SELECT year_entered_league FROM table_name_70 WHERE university = "university of essex" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2013-2014 division for the Wolverhampton Wildcats?
### Context:
CREATE TABLE table_name_60 (team VARCHAR) [/INST]
### Response:
SELECT 2013 AS _14_division FROM table_name_60 WHERE team = "wolverhampton wildcats" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 least amount of draws with an against of 1261?
### Context:
CREATE TABLE table_name_16 (draws INTEGER, against VARCHAR) [/INST]
### Response:
SELECT MIN(draws) FROM table_name_16 WHERE against = 1261 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What label shows an Album of cover version v?
### Context:
CREATE TABLE table_name_24 (label VARCHAR, album VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_24 WHERE album = "cover version v" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Label when the album shows cover version vi?
### Context:
CREATE TABLE table_name_26 (label VARCHAR, album VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_26 WHERE album = "cover version vi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Covered Song when the Album shows cover version iii?
### Context:
CREATE TABLE table_name_7 (covered_song VARCHAR, album VARCHAR) [/INST]
### Response:
SELECT covered_song FROM table_name_7 WHERE album = "cover version iii" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Week when there were 67,968 people in attendance?
### Context:
CREATE TABLE table_name_66 (week INTEGER, attendance VARCHAR) [/INST]
### Response:
SELECT SUM(week) FROM table_name_66 WHERE attendance = "67,968" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Week number with a result of l 31β28?
### Context:
CREATE TABLE table_name_77 (week VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT COUNT(week) FROM table_name_77 WHERE result = "l 31β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 was the score at the Tie no. 1 game?
### Context:
CREATE TABLE table_name_37 (score VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_37 WHERE tie_no = "1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance at the West Ham United home game?
### Context:
CREATE TABLE table_name_69 (attendance VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_69 WHERE home_team = "west ham united" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Sport with a Name that is gustav larsson?
### Context:
CREATE TABLE table_name_9 (sport VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT sport FROM table_name_9 WHERE name = "gustav larsson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with an Event that is men's time trial?
### Context:
CREATE TABLE table_name_15 (name VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_15 WHERE event = "men's time trial" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
At which venue did the event held on 15 November 2010 occur?
### Context:
CREATE TABLE table_name_78 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_78 WHERE date = "15 november 2010" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points has a Performer of rob burke band and a Draw larger than 1?
### Context:
CREATE TABLE table_name_32 (points INTEGER, performer VARCHAR, draw VARCHAR) [/INST]
### Response:
SELECT AVG(points) FROM table_name_32 WHERE performer = "rob burke band" AND draw > 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Points have a Performer of seΓ‘n monaghan and a Draw smaller than 7?
### Context:
CREATE TABLE table_name_87 (points INTEGER, performer VARCHAR, draw VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_87 WHERE performer = "seΓ‘n monaghan" AND draw < 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 Points has a Performer of rob burke band?
### Context:
CREATE TABLE table_name_7 (points VARCHAR, performer VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_7 WHERE performer = "rob burke band" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Finish of 28 Wins?
### Context:
CREATE TABLE table_name_8 (finish VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_8 WHERE wins = "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 is the Finish of the Reno Bighorns Wins?
### Context:
CREATE TABLE table_name_41 (finish VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_41 WHERE wins = "reno bighorns" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Finish of 28 Wins?
### Context:
CREATE TABLE table_name_49 (finish VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_49 WHERE wins = "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 is the Western Division of Wins with a 4th Finish?
### Context:
CREATE TABLE table_name_95 (wins VARCHAR, division VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT wins FROM table_name_95 WHERE division = "western" AND finish = "4th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the losses of the playoffs season?
### Context:
CREATE TABLE table_name_56 (losses VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT losses FROM table_name_56 WHERE season = "playoffs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Team 1, when Team 2 is Saint Louis?
### Context:
CREATE TABLE table_name_84 (team_1 VARCHAR, team_2 VARCHAR) [/INST]
### Response:
SELECT team_1 FROM table_name_84 WHERE team_2 = "saint louis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Agg., when Team 2 is Mukungwa?
### Context:
CREATE TABLE table_name_42 (agg VARCHAR, team_2 VARCHAR) [/INST]
### Response:
SELECT agg FROM table_name_42 WHERE team_2 = "mukungwa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round with an Opponent that is torpedo moscow?
### Context:
CREATE TABLE table_name_35 (round VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_35 WHERE opponent = "torpedo moscow" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the sum of Matches that has the Goals of 103, and the Rank larger than 9?
### Context:
CREATE TABLE table_name_7 (matches INTEGER, goals VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT SUM(matches) FROM table_name_7 WHERE goals = 103 AND rank > 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:
Can you tell me the Name that has the Goals larger than 98, and the Rank of 7?
### Context:
CREATE TABLE table_name_24 (name VARCHAR, goals VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_24 WHERE goals > 98 AND rank = 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:
How many laps had a time stat of accident for the rider carmelo morales when the grid was more than 25?
### Context:
CREATE TABLE table_name_84 (laps INTEGER, grid VARCHAR, time VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_84 WHERE time = "accident" AND rider = "carmelo morales" AND grid > 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:
How many laps had a time of +2.987?
### Context:
CREATE TABLE table_name_37 (laps VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_37 WHERE time = "+2.987" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bike had fewer than 23 laps and a grid number of 4?
### Context:
CREATE TABLE table_name_15 (bike VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT bike FROM table_name_15 WHERE laps < 23 AND grid = 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 Record for week 14?
### Context:
CREATE TABLE table_name_88 (record VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_88 WHERE week = 14 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Result with an NFL Recap, played at bank of america stadium?
### Context:
CREATE TABLE table_name_41 (result VARCHAR, nfl_recap VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_41 WHERE nfl_recap = "recap" AND game_site = "bank of america 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 Record for week 12?
### Context:
CREATE TABLE table_name_95 (record VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_95 WHERE week = 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 Opponent with a time of 2:05 p.m., and the results were w 26β20?
### Context:
CREATE TABLE table_name_62 (opponent VARCHAR, time VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_62 WHERE time = "2:05 p.m." AND result = "w 26β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 the highest Week for october 12, 2008?
### Context:
CREATE TABLE table_name_67 (week INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MAX(week) FROM table_name_67 WHERE date = "october 12, 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:
Which team has 1 as the drawn, with 2 as the lost?
### Context:
CREATE TABLE table_name_37 (team VARCHAR, drawn VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_37 WHERE drawn = 1 AND lost = 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 drawns have 7 for the lost?
### Context:
CREATE TABLE table_name_83 (drawn INTEGER, lost VARCHAR) [/INST]
### Response:
SELECT SUM(drawn) FROM table_name_83 WHERE lost = 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 average played that has a drawn greater than 1, with an against greater than 16?
### Context:
CREATE TABLE table_name_17 (played INTEGER, drawn VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT AVG(played) FROM table_name_17 WHERE drawn > 1 AND against > 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 sum of Maidens with a number of Matches that is 2?
### Context:
CREATE TABLE table_name_36 (maidens INTEGER, matches VARCHAR) [/INST]
### Response:
SELECT SUM(maidens) FROM table_name_36 WHERE matches = 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:
Ranking higher than 2, what Team has Player Paolo Maldini?
### Context:
CREATE TABLE table_name_52 (team VARCHAR, rank VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_52 WHERE rank > 2 AND name = "paolo maldini" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Country is in Rank 2?
### Context:
CREATE TABLE table_name_97 (country VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_97 WHERE rank = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was Leo Mainoldi (24) the leading scorer?
### Context:
CREATE TABLE table_name_72 (date VARCHAR, leading_scorer VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_72 WHERE leading_scorer = "leo mainoldi (24)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the visitor with the 14-10 record?
### Context:
CREATE TABLE table_name_61 (visitor VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_61 WHERE record = "14-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 record of the 73-82 score?
### Context:
CREATE TABLE table_name_32 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_32 WHERE score = "73-82" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 leading scorer of the Villa De Los Barrios visitor?
### Context:
CREATE TABLE table_name_56 (leading_scorer VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT leading_scorer FROM table_name_56 WHERE visitor = "villa de los barrios" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 visitor with a 14-10 record?
### Context:
CREATE TABLE table_name_71 (visitor VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_71 WHERE record = "14-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 score of the team with the 14-9 record?
### Context:
CREATE TABLE table_name_43 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_43 WHERE record = "14-9" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of the game with 6 goals?
### Context:
CREATE TABLE table_name_61 (date VARCHAR, goal VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_61 WHERE goal = 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the highest number of goals for a game held at Hannover?
### Context:
CREATE TABLE table_name_27 (goal INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(goal) FROM table_name_27 WHERE venue = "hannover" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result of the game with more than 12 goals at Pasadena?
### Context:
CREATE TABLE table_name_80 (result VARCHAR, goal VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_80 WHERE goal > 12 AND venue = "pasadena" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What round was Andre Fluellen drafted as a Defensive Tackle?
### Context:
CREATE TABLE table_name_54 (round VARCHAR, position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_54 WHERE position = "defensive tackle" AND player = "andre fluellen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
After Round 5, which player was drafted for Defensive Tackle?
### Context:
CREATE TABLE table_name_68 (player VARCHAR, round VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_68 WHERE round > 5 AND position = "defensive tackle" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round for Central Florida?
### Context:
CREATE TABLE table_name_32 (round INTEGER, team VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_32 WHERE team = "central florida" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the label Dos or Die Recordings?
### Context:
CREATE TABLE table_name_9 (date VARCHAR, label VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_9 WHERE label = "dos or die recordings" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 label for 2002, in Germany, Catalog Dos 195?
### Context:
CREATE TABLE table_name_23 (label VARCHAR, catalog VARCHAR, date VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_23 WHERE date = "2002" AND region = "germany" AND catalog = "dos 195" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What region has a 2002 date, and a Catalog dos 195?
### Context:
CREATE TABLE table_name_70 (region VARCHAR, date VARCHAR, catalog VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_70 WHERE date = "2002" AND catalog = "dos 195" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Winners when the United States is the runner-up at st. germain golf club?
### Context:
CREATE TABLE table_name_90 (winners VARCHAR, runners_up VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT winners FROM table_name_90 WHERE runners_up = "united states" AND venue = "st. germain golf club" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year when Australia was the runner-up at victoria golf club?
### Context:
CREATE TABLE table_name_8 (year INTEGER, runners_up VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_8 WHERE runners_up = "australia" AND venue = "victoria golf club" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Location when France was the runner-up at club de campo?
### Context:
CREATE TABLE table_name_41 (location VARCHAR, runners_up VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_41 WHERE runners_up = "france" AND venue = "club de campo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Location when Canada was the runner-up and Australia was the winner?
### Context:
CREATE TABLE table_name_77 (location VARCHAR, runners_up VARCHAR, winners VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_77 WHERE runners_up = "canada" AND winners = "australia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Space Telescope Terminated on March 1993?
### Context:
CREATE TABLE table_name_31 (name VARCHAR, terminated VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_31 WHERE terminated = "march 1993" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Party, when Opinion Research Centre (OPC) is 1.5%?
### Context:
CREATE TABLE table_name_33 (party VARCHAR, opinion_research_centre__opc_ VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_33 WHERE opinion_research_centre__opc_ = "1.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 Marplan, when Gallup is 1.5%
### Context:
CREATE TABLE table_name_55 (marplan VARCHAR, gallup VARCHAR) [/INST]
### Response:
SELECT marplan FROM table_name_55 WHERE gallup = "1.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 Opinion Research Centre (OPC), when Party is Conservative?
### Context:
CREATE TABLE table_name_40 (opinion_research_centre__opc_ VARCHAR, party VARCHAR) [/INST]
### Response:
SELECT opinion_research_centre__opc_ FROM table_name_40 WHERE party = "conservative" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Harris, when Marplan is 1.3%
### Context:
CREATE TABLE table_name_84 (harris VARCHAR, marplan VARCHAR) [/INST]
### Response:
SELECT harris FROM table_name_84 WHERE marplan = "1.3%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the fewest points that Roger Dutton/Tony Wright have received?
### Context:
CREATE TABLE table_name_15 (points INTEGER, rider VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_15 WHERE rider = "roger dutton/tony wright" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fast does the BMW with 6 points go?
### Context:
CREATE TABLE table_name_43 (speed VARCHAR, machine VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT speed FROM table_name_43 WHERE machine = "bmw" AND points = 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 average draw for Desi Dobreva, was it less than 6?
### Context:
CREATE TABLE table_name_64 (draw INTEGER, artist VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT AVG(draw) FROM table_name_64 WHERE artist = "desi dobreva" AND place < 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the first leg score for the match that had AS Police as team 2?
### Context:
CREATE TABLE table_name_34 (team_2 VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_34 WHERE team_2 = "as police" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result for the Outstanding director of a musical category?
### Context:
CREATE TABLE table_name_67 (result VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_67 WHERE category = "outstanding director of a musical" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result of the Award of Drama desk award nominee Tom Hewitt.
### Context:
CREATE TABLE table_name_37 (result VARCHAR, award VARCHAR, nominee VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_37 WHERE award = "drama desk award" AND nominee = "tom hewitt" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year was best costume design the award category?
### Context:
CREATE TABLE table_name_97 (year VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_97 WHERE category = "best costume design" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 accolade has USA as the country, with a year less than 2009?
### Context:
CREATE TABLE table_name_61 (accolade VARCHAR, country VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT accolade FROM table_name_61 WHERE country = "usa" AND year < 2009 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many years have an accolade of 50 best albums of the year, with #3 as the rank?
### Context:
CREATE TABLE table_name_6 (year INTEGER, accolade VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_6 WHERE accolade = "50 best albums of the year" AND rank = "#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 rank has canada as the country?
### Context:
CREATE TABLE table_name_84 (rank VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_84 WHERE country = "canada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Guest Host for Episode Number of 5?
### Context:
CREATE TABLE table_name_73 (guest_host VARCHAR, episode_number VARCHAR) [/INST]
### Response:
SELECT guest_host FROM table_name_73 WHERE episode_number = 5 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.