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 was the Stage when Pascal Richard had the Mountains classification and Vladimir Poulnikov won?
### Context:
CREATE TABLE table_name_71 (stage VARCHAR, mountains_classification VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT stage FROM table_name_71 WHERE mountains_classification = "pascal richard" AND winner = "vladimir poulnikov" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total score of Danny Edwards?
### Context:
CREATE TABLE table_name_39 (score INTEGER, player VARCHAR) [/INST]
### Response:
SELECT SUM(score) FROM table_name_39 WHERE player = "danny edwards" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the place in Australia that had a score of 70?
### Context:
CREATE TABLE table_name_20 (place VARCHAR, score VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_20 WHERE score = 70 AND country = "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:
The entrepreneur Adam Weaver was featured in which episode?
### Context:
CREATE TABLE table_name_28 (episode VARCHAR, entrepreneur_s_ VARCHAR) [/INST]
### Response:
SELECT episode FROM table_name_28 WHERE entrepreneur_s_ = "adam weaver" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The entrepreneur Layla Bennett was featured in which episode?
### Context:
CREATE TABLE table_name_60 (episode VARCHAR, entrepreneur_s_ VARCHAR) [/INST]
### Response:
SELECT episode FROM table_name_60 WHERE entrepreneur_s_ = "layla bennett" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population of the region with a rank bigger than 9?
### Context:
CREATE TABLE table_name_29 (population INTEGER, rank INTEGER) [/INST]
### Response:
SELECT MAX(population) FROM table_name_29 WHERE 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:
What is the average population of the region with a density less than 487, a rank of 9, and an area larger than 377,944?
### Context:
CREATE TABLE table_name_24 (population INTEGER, area__km_2__ VARCHAR, density__pop_per_km_2__ VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT AVG(population) FROM table_name_24 WHERE density__pop_per_km_2__ < 487 AND rank = 9 AND area__km_2__ > 377 OFFSET 944 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 TDP (w) of the chipset with a codename sb850?
### Context:
CREATE TABLE table_name_3 (tdp___w__ VARCHAR, codename VARCHAR) [/INST]
### Response:
SELECT COUNT(tdp___w__) FROM table_name_3 WHERE codename = "sb850" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round is a lower score than 21.5?
### Context:
CREATE TABLE table_name_46 (round VARCHAR, score INTEGER) [/INST]
### Response:
SELECT round FROM table_name_46 WHERE score < 21.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:
Which round status is in with this song: 叶良俊 - 爱你不是爱给别人看?
### Context:
CREATE TABLE table_name_25 (round VARCHAR, status VARCHAR, song VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_25 WHERE status = "in" AND song = "叶良俊 - 爱你不是爱给别人看" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 status accompanies the score 21.5?
### Context:
CREATE TABLE table_name_94 (status VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_94 WHERE score = 21.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:
Wjat score is greater than 22 with this song: 林俊杰 - 木乃伊?
### Context:
CREATE TABLE table_name_86 (name VARCHAR, score VARCHAR, song VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_86 WHERE score > 22 AND song = "林俊杰 - 木乃伊" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has this song: 陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你?
### Context:
CREATE TABLE table_name_18 (round VARCHAR, song VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_18 WHERE song = "陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 artist with less than a 2 draw?
### Context:
CREATE TABLE table_name_88 (artist VARCHAR, draw INTEGER) [/INST]
### Response:
SELECT artist FROM table_name_88 WHERE draw < 2 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average issue price with from Toronto maple leafs gift set, and a Mintage of 3527?
### Context:
CREATE TABLE table_name_73 (issue_price INTEGER, special_notes VARCHAR, mintage VARCHAR) [/INST]
### Response:
SELECT AVG(issue_price) FROM table_name_73 WHERE special_notes = "from toronto maple leafs gift set" AND mintage = "3527" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What theme has a mintage of 3527?
### Context:
CREATE TABLE table_name_91 (theme VARCHAR, mintage VARCHAR) [/INST]
### Response:
SELECT theme FROM table_name_91 WHERE mintage = "3527" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was a mintage of 1264 with more than 24.95 issued?
### Context:
CREATE TABLE table_name_45 (year INTEGER, mintage VARCHAR, issue_price VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_45 WHERE mintage = "1264" AND issue_price > 24.95 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 most year for team motul brm and chassis of brm p201 and points less than 0
### Context:
CREATE TABLE table_name_96 (year INTEGER, points VARCHAR, entrant VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_96 WHERE entrant = "team motul brm" AND chassis = "brm p201" AND points < 0 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the entrant for 1975 and chassis of hill gh1
### Context:
CREATE TABLE table_name_25 (entrant VARCHAR, year VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_25 WHERE year = 1975 AND chassis = "hill gh1" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chassis for engine of brm v12
### Context:
CREATE TABLE table_name_49 (chassis VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_49 WHERE engine = "brm v12" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 most year for points more than 0
### Context:
CREATE TABLE table_name_96 (year INTEGER, points INTEGER) [/INST]
### Response:
SELECT MAX(year) FROM table_name_96 WHERE points > 0 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the sum of points for chassis of brm p160e and year more than 1974
### Context:
CREATE TABLE table_name_32 (points INTEGER, chassis VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_32 WHERE chassis = "brm p160e" AND year > 1974 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 chassis after 1991?
### Context:
CREATE TABLE table_name_64 (chassis VARCHAR, year INTEGER) [/INST]
### Response:
SELECT chassis FROM table_name_64 WHERE year > 1991 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the average points after 1992?
### Context:
CREATE TABLE table_name_54 (points INTEGER, year INTEGER) [/INST]
### Response:
SELECT AVG(points) FROM table_name_54 WHERE year > 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 sum of points in 1991, for footwork a11c chassis?
### Context:
CREATE TABLE table_name_29 (points INTEGER, year VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_29 WHERE year = 1991 AND chassis = "footwork a11c" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does an entrant of Martini Racing, the engine of an Alfa Romeo flat-12 a chassis of brabham bt45, and the year 1976 have?
### Context:
CREATE TABLE table_name_43 (points VARCHAR, year VARCHAR, chassis VARCHAR, entrant VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_43 WHERE entrant = "martini racing" AND engine = "alfa romeo flat-12" AND chassis = "brabham bt45" AND year = 1976 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chassis is from 1974 and was an entrant of Goldie Hexagon racing?
### Context:
CREATE TABLE table_name_35 (chassis VARCHAR, year VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_35 WHERE year = 1974 AND entrant = "goldie hexagon racing" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points of a Cosworth v8 engine in 1973.
### Context:
CREATE TABLE table_name_23 (points INTEGER, engine VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT AVG(points) FROM table_name_23 WHERE engine = "cosworth v8" AND year = 1973 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chassis has an Alfa Romeo flat-12 engine.
### Context:
CREATE TABLE table_name_76 (chassis VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_76 WHERE engine = "alfa romeo flat-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 was the score of the game that had an attendance of 32,036?
### Context:
CREATE TABLE table_name_87 (score VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_87 WHERE attendance = "32,036" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date did the result leave the team with a record of 46-34?
### Context:
CREATE TABLE table_name_4 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_4 WHERE record = "46-34" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent with round of 1 and time of n/a
### Context:
CREATE TABLE table_name_37 (opponent VARCHAR, round VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_37 WHERE round = "1" AND time = "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:
Name the record with opponent of christian nielson
### Context:
CREATE TABLE table_name_71 (record VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_71 WHERE opponent = "christian nielson" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent with decision
### Context:
CREATE TABLE table_name_59 (opponent VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_59 WHERE method = "decision" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 3rd place value in 2011?
### Context:
CREATE TABLE table_name_53 (year VARCHAR) [/INST]
### Response:
SELECT 3 AS rd_place FROM table_name_53 WHERE year = "2011" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tries for points against of 583
### Context:
CREATE TABLE table_name_92 (tries_for VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT tries_for FROM table_name_92 WHERE points_against = "583" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Nam the points for when tries for is 91 and played of 22
### Context:
CREATE TABLE table_name_73 (points_for VARCHAR, played VARCHAR, tries_for VARCHAR) [/INST]
### Response:
SELECT points_for FROM table_name_73 WHERE played = "22" AND tries_for = "91" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 drawn for tries for of 42
### Context:
CREATE TABLE table_name_95 (drawn VARCHAR, tries_for VARCHAR) [/INST]
### Response:
SELECT drawn FROM table_name_95 WHERE tries_for = "42" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Drawn for tries against of 36 and points of 66
### Context:
CREATE TABLE table_name_60 (drawn VARCHAR, tries_against VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT drawn FROM table_name_60 WHERE tries_against = "36" AND points = "66" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Try bonus with lost of 10
### Context:
CREATE TABLE table_name_92 (try_bonus VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT try_bonus FROM table_name_92 WHERE lost = "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:
Name the points for when points against is of 450
### Context:
CREATE TABLE table_name_97 (points_for VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT points_for FROM table_name_97 WHERE points_against = "450" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the 1st leg when Team 2 was Aurora?
### Context:
CREATE TABLE table_name_3 (team_2 VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_3 WHERE team_2 = "aurora" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the 2nd leg when Team 1 was Chicago Croatian?
### Context:
CREATE TABLE table_name_57 (team_1 VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_name_57 WHERE team_1 = "chicago croatian" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Team 2 when Team 1 was América?
### Context:
CREATE TABLE table_name_88 (team_2 VARCHAR, team_1 VARCHAR) [/INST]
### Response:
SELECT team_2 FROM table_name_88 WHERE team_1 = "américa" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nationality do the Montreal Canadiens belong to with a pick# of 25?
### Context:
CREATE TABLE table_name_55 (nationality VARCHAR, nhl_team VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_55 WHERE nhl_team = "montreal canadiens" AND pick__number = "25" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the pick# for the California Golden Seals?
### Context:
CREATE TABLE table_name_92 (pick__number VARCHAR, nhl_team VARCHAR) [/INST]
### Response:
SELECT pick__number FROM table_name_92 WHERE nhl_team = "california golden seals" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Goal in Stade Roi Baudouin, Brussels?
### Context:
CREATE TABLE table_name_81 (goal INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT AVG(goal) FROM table_name_81 WHERE venue = "stade roi baudouin, brussels" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Venue had 2 or more Goals in a Friendly Competition?
### Context:
CREATE TABLE table_name_48 (venue VARCHAR, competition VARCHAR, goal VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_48 WHERE competition = "friendly" AND goal > 2 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Site that has a Sex and other data of old male?
### Context:
CREATE TABLE table_name_42 (site INTEGER, sex_and_other_data VARCHAR) [/INST]
### Response:
SELECT MAX(site) FROM table_name_42 WHERE sex_and_other_data = "old male" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 age group for figure skating?
### Context:
CREATE TABLE table_name_40 (age_groups VARCHAR, sport VARCHAR) [/INST]
### Response:
SELECT age_groups FROM table_name_40 WHERE sport = "figure skating" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the age group is 21 or younger and the competition name is world youth netball championships?
### Context:
CREATE TABLE table_name_58 (sport VARCHAR, age_groups VARCHAR, competition_name VARCHAR) [/INST]
### Response:
SELECT sport FROM table_name_58 WHERE age_groups = "21 or younger" AND competition_name = "world youth netball championships" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the competition name when the age group is 17 or younger for athletics?
### Context:
CREATE TABLE table_name_42 (competition_name VARCHAR, age_groups VARCHAR, sport VARCHAR) [/INST]
### Response:
SELECT competition_name FROM table_name_42 WHERE age_groups = "17 or younger" AND sport = "athletics" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competing entities when the age group is 18 or younger, held every is one year and the sport is table tennis?
### Context:
CREATE TABLE table_name_37 (competing_entities VARCHAR, sport VARCHAR, age_groups VARCHAR, held_every VARCHAR) [/INST]
### Response:
SELECT competing_entities FROM table_name_37 WHERE age_groups = "18 or younger" AND held_every = "one year" AND sport = "table tennis" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What result did Janis Ian have in the episode of top 3?
### Context:
CREATE TABLE table_name_9 (result VARCHAR, episode VARCHAR, original_artist VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_9 WHERE episode = "top 3" AND original_artist = "janis ian" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 singer with the top 8?
### Context:
CREATE TABLE table_name_39 (result VARCHAR, episode VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_39 WHERE episode = "top 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 song was chosen for the episode with the top 8?
### Context:
CREATE TABLE table_name_72 (song_choice VARCHAR, episode VARCHAR) [/INST]
### Response:
SELECT song_choice FROM table_name_72 WHERE episode = "top 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:
Which episode had Hoagy carmichael safe with an order of 5?
### Context:
CREATE TABLE table_name_10 (episode VARCHAR, original_artist VARCHAR, result VARCHAR, order__number VARCHAR) [/INST]
### Response:
SELECT episode FROM table_name_10 WHERE result = "safe" AND order__number = "5" AND original_artist = "hoagy carmichael" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what order were the Bee Gees as the artist when it was a result of bottom 3?
### Context:
CREATE TABLE table_name_30 (order__number VARCHAR, result VARCHAR, original_artist VARCHAR) [/INST]
### Response:
SELECT order__number FROM table_name_30 WHERE result = "bottom 3" AND original_artist = "bee gees" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total number of drawn for danish and mathias
### Context:
CREATE TABLE table_name_37 (draw VARCHAR, language VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT COUNT(draw) FROM table_name_37 WHERE language = "danish" AND artist = "mathias" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result for linn nygård
### Context:
CREATE TABLE table_name_63 (result VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_63 WHERE artist = "linn nygård" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 song for draw less than 7 and artists of martin & johannes
### Context:
CREATE TABLE table_name_42 (song VARCHAR, draw VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT song FROM table_name_42 WHERE draw < 7 AND artist = "martin & johannes" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 NP/NNP for ACDP of 1 and others of 1 and DP/DA of 5
### Context:
CREATE TABLE table_name_73 (np___nnp VARCHAR, dp___da VARCHAR, acdp VARCHAR, others VARCHAR) [/INST]
### Response:
SELECT np___nnp FROM table_name_73 WHERE acdp = 1 AND others = 1 AND dp___da = 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:
Which player won less than $335?
### Context:
CREATE TABLE table_name_43 (player VARCHAR, money___$__ INTEGER) [/INST]
### Response:
SELECT player FROM table_name_43 WHERE money___$__ < 335 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 place ranking for the player from Australia?
### Context:
CREATE TABLE table_name_43 (place VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_43 WHERE country = "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:
How much money did the player Ed Oliver win?
### Context:
CREATE TABLE table_name_74 (money___ INTEGER, player VARCHAR) [/INST]
### Response:
SELECT SUM(money___) AS $__ FROM table_name_74 WHERE player = "ed oliver" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What competition did Parramatta Eels join after 1982?
### Context:
CREATE TABLE table_name_54 (competition VARCHAR, year VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_54 WHERE year > 1982 AND opponent = "parramatta eels" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did nswrfl has a score of 8-21?
### Context:
CREATE TABLE table_name_34 (year VARCHAR, competition VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_34 WHERE competition = "nswrfl" AND score = "8-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:
How many years have less than 28,505 attendance?
### Context:
CREATE TABLE table_name_80 (year INTEGER, attendance INTEGER) [/INST]
### Response:
SELECT AVG(year) FROM table_name_80 WHERE attendance < 28 OFFSET 505 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is listed for the Region of France and Catalog of 82876-70291-2?
### Context:
CREATE TABLE table_name_48 (date VARCHAR, region VARCHAR, catalog VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_48 WHERE region = "france" AND catalog = "82876-70291-2" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Format is listed that has a Region of China?
### Context:
CREATE TABLE table_name_93 (format VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_93 WHERE region = "china" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date for the Label of Bertelsmann Music group and has a Region of Europe?
### Context:
CREATE TABLE table_name_36 (date VARCHAR, label VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_36 WHERE label = "bertelsmann music group" AND region = "europe" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people attended the Royals game with a score of 17 - 6?
### Context:
CREATE TABLE table_name_17 (attendance INTEGER, opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_17 WHERE opponent = "royals" AND score = "17 - 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 result of April 27's game?
### Context:
CREATE TABLE table_name_21 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_21 WHERE date = "april 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:
For the strategy game in 1992, how many players were allowed per console?
### Context:
CREATE TABLE table_name_51 (players_per_console VARCHAR, genre VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT players_per_console FROM table_name_51 WHERE genre = "strategy" AND year = 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:
Which Genre was published by Atari and developed by NuFX in 1991?
### Context:
CREATE TABLE table_name_72 (genre VARCHAR, developer VARCHAR, publisher VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT genre FROM table_name_72 WHERE publisher = "atari" AND year = 1991 AND developer = "nufx" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which year was the game developed by Music Comp in?
### Context:
CREATE TABLE table_name_88 (year VARCHAR, developer VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_88 WHERE developer = "music comp" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record for august 31
### Context:
CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_65 WHERE date = "august 31" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the opponent for august 6
### Context:
CREATE TABLE table_name_79 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_79 WHERE date = "august 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:
Name the opponent with record of 52-58
### Context:
CREATE TABLE table_name_10 (opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_10 WHERE record = "52-58" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Class has a Quantity made of 5?
### Context:
CREATE TABLE table_name_68 (class VARCHAR, quantity_made VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_68 WHERE quantity_made = 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 listed as the Date made with a Quantity made of 13?
### Context:
CREATE TABLE table_name_5 (date_made VARCHAR, quantity_made VARCHAR) [/INST]
### Response:
SELECT date_made FROM table_name_5 WHERE quantity_made = 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 year shows 4 points?
### Context:
CREATE TABLE table_name_65 (year VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_65 WHERE points = 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 most points when the entrant was Jaguar racing earlier than 2001?
### Context:
CREATE TABLE table_name_25 (points INTEGER, entrant VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_25 WHERE entrant = "jaguar racing" AND year < 2001 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the entrant in 1999?
### Context:
CREATE TABLE table_name_64 (entrant VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_64 WHERE year = 1999 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most points when the chassis was Jaguar R3 later than 2002?
### Context:
CREATE TABLE table_name_42 (points INTEGER, chassis VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_42 WHERE chassis = "jaguar r3" AND year > 2002 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of skin depth with a resistivity of 1.12 and a relative permeability larger than 1?
### Context:
CREATE TABLE table_name_30 (_inches VARCHAR, skin_depth INTEGER, resistivity__10_−6_ohm_inches_ VARCHAR, relative_permeability VARCHAR) [/INST]
### Response:
SELECT SUM(skin_depth), _inches FROM table_name_30 WHERE resistivity__10_−6_ohm_inches_ = 1.12 AND relative_permeability > 1 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How much does Jonathan Bender weigh?
### Context:
CREATE TABLE table_name_2 (weight VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT weight FROM table_name_2 WHERE player = "jonathan bender" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Of those with a height of 7-0, who weighs the most?
### Context:
CREATE TABLE table_name_6 (weight INTEGER, height VARCHAR) [/INST]
### Response:
SELECT MAX(weight) FROM table_name_6 WHERE height = "7-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 does DeShawn Stevenson weigh?
### Context:
CREATE TABLE table_name_52 (weight INTEGER, player VARCHAR) [/INST]
### Response:
SELECT SUM(weight) FROM table_name_52 WHERE player = "deshawn 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:
Name the highest roll for coed and authority of state integrated with sacred heart school
### Context:
CREATE TABLE table_name_96 (roll INTEGER, name VARCHAR, gender VARCHAR, authority VARCHAR) [/INST]
### Response:
SELECT MAX(roll) FROM table_name_96 WHERE gender = "coed" AND authority = "state integrated" AND name = "sacred heart school" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 displacement of the engine that has a Redline rpm higher than 4750, from 2005?
### Context:
CREATE TABLE table_name_29 (displacement VARCHAR, redline__rpm_ VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT displacement FROM table_name_29 WHERE redline__rpm_ > 4750 AND year = 2005 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
From what year is the engine with engine code M57D30?
### Context:
CREATE TABLE table_name_21 (year VARCHAR, engine_code VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_21 WHERE engine_code = "m57d30" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Redline RPM of engines with engine code M57TUD30, made after 2002?
### Context:
CREATE TABLE table_name_49 (redline__rpm_ INTEGER, engine_code VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT AVG(redline__rpm_) FROM table_name_49 WHERE engine_code = "m57tud30" AND year > 2002 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result against Beijing Hyundai?
### Context:
CREATE TABLE table_name_43 (result_f_a VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT result_f_a FROM table_name_43 WHERE opponents = "beijing hyundai" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Was the game with Kashima antlers at home or away?
### Context:
CREATE TABLE table_name_86 (h___a VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT h___a FROM table_name_86 WHERE opponents = "kashima antlers" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was the game against Royal Antwerp?
### Context:
CREATE TABLE table_name_87 (date VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_87 WHERE opponents = "royal antwerp" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Records Time is 3:38?
### Context:
CREATE TABLE table_name_19 (record VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_19 WHERE time = "3:38" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a number smaller than 56 in 2005 and of 14 in 2006?
### Context:
CREATE TABLE table_name_47 (Id VARCHAR) [/INST]
### Response:
SELECT COUNT(2004) FROM table_name_47 WHERE 2005 < 56 AND 2006 = 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 Country has a number smaller than 3 in 2004 and larger than 1 in 2005?
### Context:
CREATE TABLE table_name_31 (Id VARCHAR) [/INST]
### Response:
SELECT COUNT(2006) FROM table_name_31 WHERE 2004 < 3 AND 2005 > 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:
The building with 48 floors has an address in Las Vegas of what?
### Context:
CREATE TABLE table_name_2 (street_address VARCHAR, floors VARCHAR) [/INST]
### Response:
SELECT street_address FROM table_name_2 WHERE floors = 48 </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.