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 car number had 24 points?
### Context:
CREATE TABLE table_name_13 (car_no VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT car_no FROM table_name_13 WHERE points = "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:
How many points when the Grid was 1?
### Context:
CREATE TABLE table_name_75 (points VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_75 WHERE grid = "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 average game number that was on october 19?
### Context:
CREATE TABLE table_name_4 (game INTEGER, october VARCHAR) [/INST]
### Response:
SELECT AVG(game) FROM table_name_4 WHERE october = 19 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of October, when Opponent is "Pittsburgh Penguins"?
### Context:
CREATE TABLE table_name_19 (october INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT SUM(october) FROM table_name_19 WHERE opponent = "pittsburgh penguins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Game, when Record is "2-1-1", and when October is less than 21?
### Context:
CREATE TABLE table_name_58 (game INTEGER, record VARCHAR, october VARCHAR) [/INST]
### Response:
SELECT SUM(game) FROM table_name_58 WHERE record = "2-1-1" AND october < 21 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Opponent, when October is less than 31, and when Game is greater than 7?
### Context:
CREATE TABLE table_name_12 (opponent VARCHAR, october VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_12 WHERE october < 31 AND game > 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 tie number for the home team Orient?
### Context:
CREATE TABLE table_name_35 (tie_no VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_35 WHERE home_team = "orient" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score for the away team Chelsea?
### Context:
CREATE TABLE table_name_35 (score VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_35 WHERE away_team = "chelsea" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the away team for the tie no. 29?
### Context:
CREATE TABLE table_name_81 (away_team VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_81 WHERE tie_no = "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 coronie with a 0.7% nickerie?
### Context:
CREATE TABLE table_name_92 (coronie VARCHAR, nickerie VARCHAR) [/INST]
### Response:
SELECT coronie FROM table_name_92 WHERE nickerie = "0.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 marowijne with an 18.8% saramacca?
### Context:
CREATE TABLE table_name_2 (marowijne VARCHAR, saramacca VARCHAR) [/INST]
### Response:
SELECT marowijne FROM table_name_2 WHERE saramacca = "18.8%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the para with a 0.1% sipaliwini?
### Context:
CREATE TABLE table_name_70 (para VARCHAR, sipaliwini VARCHAR) [/INST]
### Response:
SELECT para FROM table_name_70 WHERE sipaliwini = "0.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 religion has a para of 56.5%?
### Context:
CREATE TABLE table_name_65 (religion VARCHAR, para VARCHAR) [/INST]
### Response:
SELECT religion FROM table_name_65 WHERE para = "56.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 suriname with a 16.8% brokopondo?
### Context:
CREATE TABLE table_name_62 (suriname VARCHAR, brokopondo VARCHAR) [/INST]
### Response:
SELECT suriname FROM table_name_62 WHERE brokopondo = "16.8%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the rank average when the gold medals are less than 0?
### Context:
CREATE TABLE table_name_41 (rank INTEGER, gold INTEGER) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_41 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:
What is the total rank of Hungary (HUN) when the bronze medals were less than 0?
### Context:
CREATE TABLE table_name_84 (rank INTEGER, nation VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT SUM(rank) FROM table_name_84 WHERE nation = "hungary (hun)" AND bronze < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of the total number of medals when silver is less than 0?
### Context:
CREATE TABLE table_name_54 (total VARCHAR, silver INTEGER) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_54 WHERE silver < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Born-Died, when Term Start is 4 December 1941?
### Context:
CREATE TABLE table_name_25 (born_died VARCHAR, term_start VARCHAR) [/INST]
### Response:
SELECT born_died FROM table_name_25 WHERE term_start = "4 december 1941" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Term Start, when Name is Prime Ministers 1939 - 1943?
### Context:
CREATE TABLE table_name_38 (term_start VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT term_start FROM table_name_38 WHERE name = "prime ministers 1939 - 1943" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Born-Died, when Name is Maliq Bushati?
### Context:
CREATE TABLE table_name_27 (born_died VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT born_died FROM table_name_27 WHERE name = "maliq bushati" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Term End, when Political Party is Albanian Fascist Party, and when Term Start is 12 April 1939?
### Context:
CREATE TABLE table_name_78 (term_end VARCHAR, political_party VARCHAR, term_start VARCHAR) [/INST]
### Response:
SELECT term_end FROM table_name_78 WHERE political_party = "albanian fascist party" AND term_start = "12 april 1939" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Term Start, when Born-Died is Prime Ministers 1939 - 1943?
### Context:
CREATE TABLE table_name_53 (term_start VARCHAR, born_died VARCHAR) [/INST]
### Response:
SELECT term_start FROM table_name_53 WHERE born_died = "prime ministers 1939 - 1943" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Born-Died, when Term End is 19 January 1943?
### Context:
CREATE TABLE table_name_60 (born_died VARCHAR, term_end VARCHAR) [/INST]
### Response:
SELECT born_died FROM table_name_60 WHERE term_end = "19 january 1943" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Score of the game with a Record of 5β4β3?
### Context:
CREATE TABLE table_name_2 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_2 WHERE record = "5β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:
What is the Score on January 23?
### Context:
CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_8 WHERE date = "january 23" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Visitor of the Montreal Canadiens Home game with a Record of 6β4β4?
### Context:
CREATE TABLE table_name_78 (visitor VARCHAR, home VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_78 WHERE home = "montreal canadiens" AND record = "6β4β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 Date of the game with a Record of 12β7β6?
### Context:
CREATE TABLE table_name_20 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_20 WHERE record = "12β7β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 Record of the Montreal Canadiens Home game on March 23?
### Context:
CREATE TABLE table_name_38 (record VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_38 WHERE home = "montreal canadiens" AND date = "march 23" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What tournament location has 1 stroke as the margin of victory, with 1,200,000 as the purse ($)?
### Context:
CREATE TABLE table_name_81 (tournament_location VARCHAR, margin_of_victory VARCHAR, purse___$__ VARCHAR) [/INST]
### Response:
SELECT tournament_location FROM table_name_81 WHERE margin_of_victory = "1 stroke" AND purse___$__ = "1,200,000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What tournament location has south korea as the country?
### Context:
CREATE TABLE table_name_43 (tournament_location VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT tournament_location FROM table_name_43 WHERE country = "south korea" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 land area of Switzerland with a population density fewer than 188 kmΒ²?
### Context:
CREATE TABLE table_name_98 (land_area__kmΒ²_ INTEGER, country VARCHAR, population_density__pop_per_kmΒ²_ VARCHAR) [/INST]
### Response:
SELECT AVG(land_area__kmΒ²_) FROM table_name_98 WHERE country = "switzerland" AND population_density__pop_per_kmΒ²_ < 188 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What lost has 86 points?
### Context:
CREATE TABLE table_name_67 (lost VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT lost FROM table_name_67 WHERE points = "86" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
With 37 tries against, what is the try bonus?
### Context:
CREATE TABLE table_name_82 (try_bonus VARCHAR, tries_against VARCHAR) [/INST]
### Response:
SELECT try_bonus FROM table_name_82 WHERE tries_against = "37" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 against when 41 is the tries for?
### Context:
CREATE TABLE table_name_59 (points_against VARCHAR, tries_for VARCHAR) [/INST]
### Response:
SELECT points_against FROM table_name_59 WHERE tries_for = "41" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
With a lost of lost what was the losing bonus?
### Context:
CREATE TABLE table_name_52 (losing_bonus VARCHAR) [/INST]
### Response:
SELECT losing_bonus FROM table_name_52 WHERE "lost" = "lost" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What points has points for as points for?
### Context:
CREATE TABLE table_name_25 (points VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_25 WHERE points_for = "points for" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the points when the club is Barry RFC with a 5 as the try bonus?
### Context:
CREATE TABLE table_name_27 (points VARCHAR, try_bonus VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_27 WHERE try_bonus = "5" AND club = "barry rfc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Gold, when Silver is greater than 6, when Rank is 1, and when Bronze is less than 61?
### Context:
CREATE TABLE table_name_57 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT SUM(gold) FROM table_name_57 WHERE silver > 6 AND rank = "1" AND bronze < 61 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Silver, when Bronze is 1, and when Total is less than 3?
### Context:
CREATE TABLE table_name_23 (silver INTEGER, bronze VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MIN(silver) FROM table_name_23 WHERE bronze = 1 AND total < 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Gold, when Silver is less than 107, when Bronze is greater than 42, and when Rank is 3?
### Context:
CREATE TABLE table_name_95 (gold INTEGER, rank VARCHAR, silver VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT AVG(gold) FROM table_name_95 WHERE silver < 107 AND bronze > 42 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 manufacturer has more than 28 laps and less than 9 grids with jeremy mcwilliams?
### Context:
CREATE TABLE table_name_53 (manufacturer VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT manufacturer FROM table_name_53 WHERE laps < 28 AND grid < 9 AND rider = "jeremy mcwilliams" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid average with a +1 lap time and more than 27 laps?
### Context:
CREATE TABLE table_name_52 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_52 WHERE time_retired = "+1 lap" AND laps > 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:
Which lap has more than 17 grids with tetsuya harada?
### Context:
CREATE TABLE table_name_77 (laps VARCHAR, grid VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_77 WHERE grid > 17 AND rider = "tetsuya harada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Prior to 1978, what is the Danish of the Film directed by Bent Christensen?
### Context:
CREATE TABLE table_name_16 (danish_title VARCHAR, year VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT danish_title FROM table_name_16 WHERE year < 1978 AND director = "bent christensen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Director of the Olsen Gang Sees Red?
### Context:
CREATE TABLE table_name_11 (director VARCHAR, english_title VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_11 WHERE english_title = "the olsen gang sees red" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 submission Year of the Film The Dark Side of the Moon directed by Erik Clausen?
### Context:
CREATE TABLE table_name_40 (year INTEGER, director VARCHAR, english_title VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_40 WHERE director = "erik clausen" AND english_title = "the dark side of the moon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 submission of the Film The Art of Crying?
### Context:
CREATE TABLE table_name_70 (year INTEGER, english_title VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_70 WHERE english_title = "the art of crying" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home Town had the weight of 201?
### Context:
CREATE TABLE table_name_67 (home_town VARCHAR, weight VARCHAR) [/INST]
### Response:
SELECT home_town FROM table_name_67 WHERE weight = 201 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Position did the sophomore Darnell Jackson play?
### Context:
CREATE TABLE table_name_48 (position VARCHAR, year VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_48 WHERE year = "sophomore" AND name = "darnell jackson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what kind of 2007 has a 1999 of β, and a Model of seat mii?
### Context:
CREATE TABLE table_name_16 (model VARCHAR) [/INST]
### Response:
SELECT 2007 FROM table_name_16 WHERE 1999 = "β" AND model = "seat mii" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2005 has a 2006 of 126,511?
### Context:
CREATE TABLE table_name_39 (Id VARCHAR) [/INST]
### Response:
SELECT 2005 FROM table_name_39 WHERE 2006 = "126,511" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2004 which has a 2003 of 36,026?
### Context:
CREATE TABLE table_name_19 (Id VARCHAR) [/INST]
### Response:
SELECT 2004 FROM table_name_19 WHERE 2003 = "36,026" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2007 which has a 2011 of 191,183? Question 4
### Context:
CREATE TABLE table_name_14 (Id VARCHAR) [/INST]
### Response:
SELECT 2007 FROM table_name_14 WHERE 2011 = "191,183" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2011 which has a 2002 of β, and a Model of seat marbella?
### Context:
CREATE TABLE table_name_93 (model VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_93 WHERE 2002 = "β" AND model = "seat marbella" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2003 which has a 2000 of β, and a 2007 of β, and a 2010 of β?
### Context:
CREATE TABLE table_name_33 (Id VARCHAR) [/INST]
### Response:
SELECT 2003 FROM table_name_33 WHERE 2000 = "β" AND 2007 = "β" AND 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:
Who is affiliated with the Dukes?
### Context:
CREATE TABLE table_name_63 (affiliation VARCHAR, nickname VARCHAR) [/INST]
### Response:
SELECT affiliation FROM table_name_63 WHERE nickname = "dukes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What school is in Radford, Va?
### Context:
CREATE TABLE table_name_74 (school VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_74 WHERE location = "radford, va" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What school has a public nickname, founded after 1838 in Harrisonburg, Va?
### Context:
CREATE TABLE table_name_38 (nickname VARCHAR, location VARCHAR, affiliation VARCHAR, founded VARCHAR) [/INST]
### Response:
SELECT nickname FROM table_name_38 WHERE affiliation = "public" AND founded > 1838 AND location = "harrisonburg, va" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Lowest pick for mike flater?
### Context:
CREATE TABLE table_name_21 (pick INTEGER, name VARCHAR) [/INST]
### Response:
SELECT MIN(pick) FROM table_name_21 WHERE name = "mike flater" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team on January 2 with 23 points?
### Context:
CREATE TABLE table_name_57 (home VARCHAR, points VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_57 WHERE points = 23 AND date = "january 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 record when St. Louis is the visitor?
### Context:
CREATE TABLE table_name_56 (record VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_56 WHERE visitor = "st. 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 was the score for the game on November 1?
### Context:
CREATE TABLE table_name_25 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_25 WHERE date = "november 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 were the location and attendance for the game against New Jersey?
### Context:
CREATE TABLE table_name_33 (location_attendance VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_33 WHERE team = "new jersey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the 2009 and 2011 Grand Slam Tournaments?
### Context:
CREATE TABLE table_name_86 (Id VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_86 WHERE 2009 = "grand slam tournaments" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Second Vice President, when Third Vice President is "Gen. Juan Alonso", and when Inaugurated is "15 March 1940"?
### Context:
CREATE TABLE table_name_74 (second_vice_president VARCHAR, third_vice_president VARCHAR, inaugurated VARCHAR) [/INST]
### Response:
SELECT second_vice_president FROM table_name_74 WHERE third_vice_president = "gen. juan alonso" AND inaugurated = "15 march 1940" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Left Office, when Inaugurate is "15 March 1930"?
### Context:
CREATE TABLE table_name_1 (left_office VARCHAR, inaugurated VARCHAR) [/INST]
### Response:
SELECT left_office FROM table_name_1 WHERE inaugurated = "15 march 1930" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Second Vice President, when Inaugurated is "26 March 1928"?
### Context:
CREATE TABLE table_name_85 (second_vice_president VARCHAR, inaugurated VARCHAR) [/INST]
### Response:
SELECT second_vice_president FROM table_name_85 WHERE inaugurated = "26 march 1928" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Second Vice President, when Inaugurated is "15 March 1935"?
### Context:
CREATE TABLE table_name_49 (second_vice_president VARCHAR, inaugurated VARCHAR) [/INST]
### Response:
SELECT second_vice_president FROM table_name_49 WHERE inaugurated = "15 march 1935" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Third Vice President, when Inaugurated is "15 March 1934"?
### Context:
CREATE TABLE table_name_38 (third_vice_president VARCHAR, inaugurated VARCHAR) [/INST]
### Response:
SELECT third_vice_president FROM table_name_38 WHERE inaugurated = "15 march 1934" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Third Vice President, when Second Vice President is "Baudelio Palma"?
### Context:
CREATE TABLE table_name_16 (third_vice_president VARCHAR, second_vice_president VARCHAR) [/INST]
### Response:
SELECT third_vice_president FROM table_name_16 WHERE second_vice_president = "baudelio palma" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the game from July 18?
### Context:
CREATE TABLE table_name_30 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_30 WHERE date = "july 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 was the Attendance on Week 9?
### Context:
CREATE TABLE table_name_25 (attendance INTEGER, week VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_25 WHERE 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:
What is the Opponent of the game with a Result of w 13β0?
### Context:
CREATE TABLE table_name_49 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_49 WHERE result = "w 13β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 score in January that was less than 4?
### Context:
CREATE TABLE table_name_92 (score VARCHAR, january INTEGER) [/INST]
### Response:
SELECT score FROM table_name_92 WHERE january < 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which date was the event that Yani won in a playoff over Yueh-Chyn Huang?
### Context:
CREATE TABLE table_name_55 (date VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_55 WHERE margin_of_victory = "playoff" AND runner_s__up = "yueh-chyn huang" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latitude of the point with a longitude of 147.1w?
### Context:
CREATE TABLE table_name_7 (latitude VARCHAR, longitude VARCHAR) [/INST]
### Response:
SELECT latitude FROM table_name_7 WHERE longitude = "147.1w" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ISBN UK, when Author is "Dave Martin", and when ISBN US is "N/A"?
### Context:
CREATE TABLE table_name_38 (isbn_uk VARCHAR, author VARCHAR, isbn_us VARCHAR) [/INST]
### Response:
SELECT isbn_uk FROM table_name_38 WHERE author = "dave martin" AND isbn_us = "n/a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ISBN US, when Title is "Crisis In Space"?
### Context:
CREATE TABLE table_name_72 (isbn_us VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT isbn_us FROM table_name_72 WHERE title = "crisis in space" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Author, when TV Companions Featured is "Peri Brown", and when Title is "Race Against Time"?
### Context:
CREATE TABLE table_name_1 (author VARCHAR, tv_companions_featured VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT author FROM table_name_1 WHERE tv_companions_featured = "peri brown" AND title = "race against time" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Title, when TV Companions Featured is "K-9"?
### Context:
CREATE TABLE table_name_35 (title VARCHAR, tv_companions_featured VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_35 WHERE tv_companions_featured = "k-9" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is ISBN US, when Title is "Mission To Venus"?
### Context:
CREATE TABLE table_name_55 (isbn_us VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT isbn_us FROM table_name_55 WHERE title = "mission to venus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 TV Companions Featured, when Author is "William Emms"?
### Context:
CREATE TABLE table_name_95 (tv_companions_featured VARCHAR, author VARCHAR) [/INST]
### Response:
SELECT tv_companions_featured FROM table_name_95 WHERE author = "william emms" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result of 2β2, and a Venue of H?
### Context:
CREATE TABLE table_name_3 (date VARCHAR, result VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_3 WHERE result = "2β2" AND venue = "h" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 to par score larger than 7 and a total score of 298?
### Context:
CREATE TABLE table_name_5 (player VARCHAR, to_par VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_5 WHERE to_par > 7 AND total = 298 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which location did he win the Superbrawl 16 event?
### Context:
CREATE TABLE table_name_57 (location VARCHAR, res VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_57 WHERE res = "win" AND event = "superbrawl 16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was his record when the method was technical submission (forearm choke)?
### Context:
CREATE TABLE table_name_57 (record VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_57 WHERE method = "technical submission (forearm choke)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent in round 2 of the UFC 49 event?
### Context:
CREATE TABLE table_name_1 (opponent VARCHAR, round VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_1 WHERE round = "2" AND event = "ufc 49" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round when he fought Joe Stevenson?
### Context:
CREATE TABLE table_name_26 (round VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_26 WHERE opponent = "joe stevenson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which date was the score 94-74 w?
### Context:
CREATE TABLE table_name_70 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_70 WHERE score = "94-74 w" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 they played at Chicago Bulls, what was the Location/Attendance?
### Context:
CREATE TABLE table_name_47 (location_attendance VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_47 WHERE opponent = "at chicago bulls" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent in Game 44?
### Context:
CREATE TABLE table_name_98 (opponent VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_98 WHERE game = "44" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent when they played at Delta Center with a record of 27-13?
### Context:
CREATE TABLE table_name_7 (opponent VARCHAR, location_attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_7 WHERE location_attendance = "delta center" AND record = "27-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 was the date for Game 41?
### Context:
CREATE TABLE table_name_33 (date VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_33 WHERE game = "41" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Opposing Team has an Against of 3, and a Date of 11 february 1950?
### Context:
CREATE TABLE table_name_97 (opposing_team VARCHAR, against VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opposing_team FROM table_name_97 WHERE against = 3 AND date = "11 february 1950" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Venue has an Opposing Team of manchester united, and a Round of 5th round replay?
### Context:
CREATE TABLE table_name_79 (venue VARCHAR, opposing_team VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_79 WHERE opposing_team = "manchester united" AND round = "5th round replay" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Against has a Date of 28 january 1950?
### Context:
CREATE TABLE table_name_49 (against INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(against) FROM table_name_49 WHERE date = "28 january 1950" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of years wehre anna thompson had a 3rd place result at edinburgh, scotland?
### Context:
CREATE TABLE table_name_28 (year VARCHAR, result VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_28 WHERE result = "3rd" AND venue = "edinburgh, scotland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did anna thompson have a 7th place result?
### Context:
CREATE TABLE table_name_85 (year VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_85 WHERE result = "7th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that anna thompson had an 8th place result in team competition at the world cross country championships in st etienne, france with
### Context:
CREATE TABLE table_name_22 (year INTEGER, result VARCHAR, extra VARCHAR, tournament VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_22 WHERE tournament = "world cross country championships" AND venue = "st etienne, france" AND extra = "team competition" AND result = "8th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 matches in 2002 where points won is larger than 1.5 and the points % is smaller than 50?
### Context:
CREATE TABLE table_name_4 (total_matches INTEGER, points__percentage VARCHAR, points_won VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT MAX(total_matches) FROM table_name_4 WHERE points_won > 1.5 AND year = "2002" AND points__percentage < 50 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.