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:
Which position did the drafted player affiliated with UCLA play?
### Context:
CREATE TABLE table_name_85 (position VARCHAR, affiliation VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_85 WHERE affiliation = "ucla" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 MLS tea, drafted a player affilaited with the university of california?
### Context:
CREATE TABLE table_name_29 (mls_team VARCHAR, affiliation VARCHAR) [/INST]
### Response:
SELECT mls_team FROM table_name_29 WHERE affiliation = "university of california" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What rank does the person participating in American Civil war and indian wars?
### Context:
CREATE TABLE table_name_65 (rank VARCHAR, active_service VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_65 WHERE active_service = "american civil war and indian wars" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Tournament of the Tour Championship take place?
### Context:
CREATE TABLE table_name_10 (date VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_10 WHERE tournament = "the tour championship" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average number of seasons for Prva HNL of 17
### Context:
CREATE TABLE table_name_65 (number_of_seasons_in_top_division INTEGER, number_of_seasons_in_prva_hnl VARCHAR) [/INST]
### Response:
SELECT AVG(number_of_seasons_in_top_division) FROM table_name_65 WHERE number_of_seasons_in_prva_hnl = 17 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the least number of seasons in top division with position in 2012-13 of 001 1st
### Context:
CREATE TABLE table_name_46 (number_of_seasons_in_top_division INTEGER, position_in_2012_13 VARCHAR) [/INST]
### Response:
SELECT MIN(number_of_seasons_in_top_division) FROM table_name_46 WHERE position_in_2012_13 = "001 1st" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 first was born on 5 february 1979?
### Context:
CREATE TABLE table_name_30 (first VARCHAR, dob VARCHAR) [/INST]
### Response:
SELECT first FROM table_name_30 WHERE dob = "5 february 1979" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 First has a Position of c, and Bats of l?
### Context:
CREATE TABLE table_name_62 (first VARCHAR, position VARCHAR, bats VARCHAR) [/INST]
### Response:
SELECT first FROM table_name_62 WHERE position = "c" AND bats = "l" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 First has a Surname of searle?
### Context:
CREATE TABLE table_name_42 (first VARCHAR, surname VARCHAR) [/INST]
### Response:
SELECT first FROM table_name_42 WHERE surname = "searle" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Surname has Throws of r, and a Position of p, and a DOB of 26 april 1989?
### Context:
CREATE TABLE table_name_64 (surname VARCHAR, dob VARCHAR, throws VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT surname FROM table_name_64 WHERE throws = "r" AND position = "p" AND dob = "26 april 1989" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 DOB has a First of david, and Throws of l, and a Position of if?
### Context:
CREATE TABLE table_name_56 (dob VARCHAR, position VARCHAR, first VARCHAR, throws VARCHAR) [/INST]
### Response:
SELECT dob FROM table_name_56 WHERE first = "david" AND throws = "l" AND position = "if" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 throws does PJ have?
### Context:
CREATE TABLE table_name_39 (throws VARCHAR, first VARCHAR) [/INST]
### Response:
SELECT throws FROM table_name_39 WHERE first = "pj" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Televoting of 9, and a Jury smaller than 10 had what sum of draw?
### Context:
CREATE TABLE table_name_24 (draw INTEGER, televoting VARCHAR, jury VARCHAR) [/INST]
### Response:
SELECT SUM(draw) FROM table_name_24 WHERE televoting = 9 AND jury < 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:
Jury larger than 6, and a Artist of zhenya rasskazova, and a Draw larger than 9 had what sum of points?
### Context:
CREATE TABLE table_name_17 (points INTEGER, draw VARCHAR, jury VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_17 WHERE jury > 6 AND artist = "zhenya rasskazova" AND draw > 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:
Televoting smaller than 2 had what highest draw?
### Context:
CREATE TABLE table_name_25 (draw INTEGER, televoting INTEGER) [/INST]
### Response:
SELECT MAX(draw) FROM table_name_25 WHERE televoting < 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:
Who was the opponent when Hoeft (19-14) took the loss?
### Context:
CREATE TABLE table_name_1 (opponent VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_1 WHERE loss = "hoeft (19-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 was the score of the game that led to an 80-63 record?
### Context:
CREATE TABLE table_name_82 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_82 WHERE record = "80-63" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Brown (9-5) took the loss?
### Context:
CREATE TABLE table_name_62 (opponent VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_62 WHERE loss = "brown (9-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 was Performer 1's name who performed with Sandi Toksvig as Performer 3 and Mike McShane as Performer 4?
### Context:
CREATE TABLE table_name_13 (performer_1 VARCHAR, performer_3 VARCHAR, performer_4 VARCHAR) [/INST]
### Response:
SELECT performer_1 FROM table_name_13 WHERE performer_3 = "sandi toksvig" AND performer_4 = "mike mcshane" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Performer 4's name when Performer 3 was Ryan Stiles on episode 14?
### Context:
CREATE TABLE table_name_14 (performer_4 VARCHAR, performer_3 VARCHAR, episode VARCHAR) [/INST]
### Response:
SELECT performer_4 FROM table_name_14 WHERE performer_3 = "ryan stiles" AND episode = 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:
How many points have @ new york islanders as the opponent, with a game greater than 35?
### Context:
CREATE TABLE table_name_64 (points VARCHAR, opponent VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_64 WHERE opponent = "@ new york islanders" AND game > 35 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What record has a december less than 6, points less than 38, and pittsburgh penguins as the opponent?
### Context:
CREATE TABLE table_name_40 (record VARCHAR, opponent VARCHAR, december VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_40 WHERE december < 6 AND points < 38 AND 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:
When the county is Carroll what is the lowest population?
### Context:
CREATE TABLE table_name_50 (population INTEGER, county VARCHAR) [/INST]
### Response:
SELECT MIN(population) FROM table_name_50 WHERE county = "carroll" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the Per capita income is $29,194, what is the average population?
### Context:
CREATE TABLE table_name_70 (population INTEGER, per_capita_income VARCHAR) [/INST]
### Response:
SELECT AVG(population) FROM table_name_70 WHERE per_capita_income = "$29,194" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which year has a railway class of 250?
### Context:
CREATE TABLE table_name_19 (year VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_19 WHERE class = "250" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 works number has a class of 15th and year of 1940?
### Context:
CREATE TABLE table_name_69 (works_no VARCHAR, class VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT works_no FROM table_name_69 WHERE class = "15th" AND year = "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:
Which builder has a railway of Rhodesia Railways?
### Context:
CREATE TABLE table_name_18 (builder VARCHAR, railway VARCHAR) [/INST]
### Response:
SELECT builder FROM table_name_18 WHERE railway = "rhodesia railways" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 railway has a class of 250 and year 1936?
### Context:
CREATE TABLE table_name_76 (railway VARCHAR, class VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT railway FROM table_name_76 WHERE class = "250" AND year = "1936" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
which week had an attendance of 53,677?
### Context:
CREATE TABLE table_name_43 (week VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT COUNT(week) FROM table_name_43 WHERE attendance = "53,677" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
which team had a bye week?
### Context:
CREATE TABLE table_name_21 (opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_21 WHERE attendance = "bye" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points smaller than 85 and a Game # of 74?
### Context:
CREATE TABLE table_name_36 (date VARCHAR, points VARCHAR, game__number VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_36 WHERE points < 85 AND game__number = 74 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for Vistor that has a Game # that is smaller than 67 and has a Home listed as Buffalo?
### Context:
CREATE TABLE table_name_20 (visitor VARCHAR, game__number VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_20 WHERE game__number < 67 AND home = "buffalo" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Date has a Home listed as Calgary?
### Context:
CREATE TABLE table_name_48 (date VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_48 WHERE home = "calgary" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Score has a Record of 35-28-6?
### Context:
CREATE TABLE table_name_65 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_65 WHERE record = "35-28-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 Date has Points smaller than 80, Home of Los Angeles, and a Visitor of Pittsburgh?
### Context:
CREATE TABLE table_name_76 (date VARCHAR, visitor VARCHAR, points VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_76 WHERE points < 80 AND home = "los angeles" AND visitor = "pittsburgh" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Week 10 Nov 2 has a Week 14 Nov 30 of penn state (11-1)?
### Context:
CREATE TABLE table_name_4 (week_10_nov_2 VARCHAR, week_14_nov_30 VARCHAR) [/INST]
### Response:
SELECT week_10_nov_2 FROM table_name_4 WHERE week_14_nov_30 = "penn state (11-1)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Week 7 Oct 12 has a Week 11 Nov 9 of week 11 nov 9?
### Context:
CREATE TABLE table_name_15 (week_7_oct_12 VARCHAR, week_11_nov_9 VARCHAR) [/INST]
### Response:
SELECT week_7_oct_12 FROM table_name_15 WHERE week_11_nov_9 = "week 11 nov 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:
Which Week 7 Oct 12 has a Week 9 Oct 26 of tulsa (7-0)?
### Context:
CREATE TABLE table_name_79 (week_7_oct_12 VARCHAR, week_9_oct_26 VARCHAR) [/INST]
### Response:
SELECT week_7_oct_12 FROM table_name_79 WHERE week_9_oct_26 = "tulsa (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:
Which Week 10 Nov 2 has a Week 9 Oct 26 of lsu (5-2)?
### Context:
CREATE TABLE table_name_86 (week_10_nov_2 VARCHAR, week_9_oct_26 VARCHAR) [/INST]
### Response:
SELECT week_10_nov_2 FROM table_name_86 WHERE week_9_oct_26 = "lsu (5-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 Week 14 Nov 30 has a Week 6 Oct 5 of michigan state (5-1)?
### Context:
CREATE TABLE table_name_1 (week_14_nov_30 VARCHAR, week_6_oct_5 VARCHAR) [/INST]
### Response:
SELECT week_14_nov_30 FROM table_name_1 WHERE week_6_oct_5 = "michigan state (5-1)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Week 13 Nov 23 has a Week 6 Oct 5 of oklahoma state (5-0)?
### Context:
CREATE TABLE table_name_73 (week_13_nov_23 VARCHAR, week_6_oct_5 VARCHAR) [/INST]
### Response:
SELECT week_13_nov_23 FROM table_name_73 WHERE week_6_oct_5 = "oklahoma state (5-0)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the displacement having a torque of n·m (lb·ft) @ 3000 rpm?
### Context:
CREATE TABLE table_name_16 (displacement VARCHAR, torque VARCHAR) [/INST]
### Response:
SELECT displacement FROM table_name_16 WHERE torque = "n·m (lb·ft) @ 3000 rpm" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which engine had a 48kw (65 ps) @ 5600 rpm power?
### Context:
CREATE TABLE table_name_61 (engine VARCHAR, power VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_61 WHERE power = "48kw (65 ps) @ 5600 rpm" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which model had a power of 66kw (90 ps) @ 6250 rpm?
### Context:
CREATE TABLE table_name_94 (model VARCHAR, power VARCHAR) [/INST]
### Response:
SELECT model FROM table_name_94 WHERE power = "66kw (90 ps) @ 6250 rpm" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which of the engines has a displacement of 1,585 cc, with a model number of 90i?
### Context:
CREATE TABLE table_name_78 (engine VARCHAR, displacement VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_78 WHERE displacement = "1,585 cc" AND model = "90i" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 at memorial stadium?
### Context:
CREATE TABLE table_name_25 (opponent VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_25 WHERE venue = "memorial stadium" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Height has a Player of mike bibby?
### Context:
CREATE TABLE table_name_43 (height VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT height FROM table_name_43 WHERE player = "mike bibby" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pos has a First round smaller than 10?
### Context:
CREATE TABLE table_name_11 (pos VARCHAR, first_round INTEGER) [/INST]
### Response:
SELECT pos FROM table_name_11 WHERE first_round < 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:
How many points have a loss less than 5, and 0 for draws?
### Context:
CREATE TABLE table_name_96 (points VARCHAR, losses VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_96 WHERE losses < 5 AND draws = 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 lowest points that has w-2 (w-league) as the league, and draws greater than 2?
### Context:
CREATE TABLE table_name_23 (points INTEGER, league VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_23 WHERE league = "w-2 (w-league)" AND draws > 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 lowest wins that has a year prior to 1999, with draws greater than 1, and points greater than 17?
### Context:
CREATE TABLE table_name_11 (wins INTEGER, points VARCHAR, year VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_11 WHERE year < 1999 AND draws > 1 AND points > 17 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many losses have a year later than 2001?
### Context:
CREATE TABLE table_name_52 (losses INTEGER, year INTEGER) [/INST]
### Response:
SELECT SUM(losses) FROM table_name_52 WHERE year > 2001 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which county includes Himco Dump?
### Context:
CREATE TABLE table_name_80 (county VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_80 WHERE name = "himco dump" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Drawn of 0, and a Games larger than 5 has what amount of highest points?
### Context:
CREATE TABLE table_name_62 (points INTEGER, drawn VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_62 WHERE drawn = 0 AND games > 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:
Lost larger than 4 is what highest drawn?
### Context:
CREATE TABLE table_name_75 (drawn INTEGER, lost INTEGER) [/INST]
### Response:
SELECT MAX(drawn) FROM table_name_75 WHERE lost > 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:
Points difference of 18 - 33, and a Points smaller than 4 is the total of what sum of games?
### Context:
CREATE TABLE table_name_10 (games INTEGER, points_difference VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT SUM(games) FROM table_name_10 WHERE points_difference = "18 - 33" AND 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:
Which First elected is the highest one that has a Party of dem, and a District larger than 24, and a Home city/town of berlin?
### Context:
CREATE TABLE table_name_73 (first_elected INTEGER, home_city_town VARCHAR, party VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT MAX(first_elected) FROM table_name_73 WHERE party = "dem" AND district > 24 AND home_city_town = "berlin" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What record has pittsburgh as the visitor, and November 23 as the date?
### Context:
CREATE TABLE table_name_45 (record VARCHAR, visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_45 WHERE visitor = "pittsburgh" AND date = "november 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 record has points less than 16, and detroit as the home?
### Context:
CREATE TABLE table_name_13 (record VARCHAR, points VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_13 WHERE points < 16 AND home = "detroit" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 have pittsburgh as the visitor, and philadelphia as the home?
### Context:
CREATE TABLE table_name_38 (points VARCHAR, visitor VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_38 WHERE visitor = "pittsburgh" AND home = "philadelphia" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 have pittsburgh as the home, and November 29 as the date?
### Context:
CREATE TABLE table_name_30 (points VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_30 WHERE home = "pittsburgh" AND date = "november 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 was the attendance at the game on December 11, 1966?
### Context:
CREATE TABLE table_name_66 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_66 WHERE date = "december 11, 1966" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latest week with a result of l 14-3?
### Context:
CREATE TABLE table_name_83 (week INTEGER, result VARCHAR) [/INST]
### Response:
SELECT MAX(week) FROM table_name_83 WHERE result = "l 14-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 was the total number of weeks with a date of bye?
### Context:
CREATE TABLE table_name_14 (week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(week) FROM table_name_14 WHERE date = "bye" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 at the game with a result of W 26-20?
### Context:
CREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_20 WHERE result = "w 26-20" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance at the week 2 game?
### Context:
CREATE TABLE table_name_89 (attendance VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_89 WHERE week = 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:
Before 1981, how many Points did Team Suzuki have with less than 0 Wins?
### Context:
CREATE TABLE table_name_96 (points INTEGER, wins VARCHAR, team VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_96 WHERE team = "suzuki" AND year < 1981 AND wins < 0 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
After 1986, how many Wins did Lucky Strike Yamaha Team with less than 6 Points have?
### Context:
CREATE TABLE table_name_51 (wins INTEGER, points VARCHAR, year VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_51 WHERE year > 1986 AND team = "lucky strike yamaha" AND points < 6 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what Year did the RG500 Machine have more than 17 Points?
### Context:
CREATE TABLE table_name_84 (year VARCHAR, machine VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_84 WHERE machine = "rg500" AND points > 17 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were the least Wins in 1988?
### Context:
CREATE TABLE table_name_19 (wins INTEGER, year VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_19 WHERE year = 1988 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points did the Flyers have against the New York Islanders with a February bigger than 12, and a game smaller than 60?
### Context:
CREATE TABLE table_name_79 (points VARCHAR, opponent VARCHAR, february VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_79 WHERE february > 12 AND game < 60 AND opponent = "new york islanders" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the location of the tournament on Feb 10?
### Context:
CREATE TABLE table_name_68 (location VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_68 WHERE date = "feb 10" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the Kmart greater greensboro open in North Carolina?
### Context:
CREATE TABLE table_name_65 (date VARCHAR, location VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_65 WHERE location = "north carolina" AND tournament = "kmart greater greensboro open" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the winner of the H.E.B. Texas open?
### Context:
CREATE TABLE table_name_76 (winner VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_76 WHERE tournament = "h.e.b. texas open" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average weight of Jeremy Case, who plays guard?
### Context:
CREATE TABLE table_name_63 (weight INTEGER, position VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT AVG(weight) FROM table_name_63 WHERE position = "guard" AND name = "jeremy case" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the position of the player from New York City, NY?
### Context:
CREATE TABLE table_name_56 (position VARCHAR, home_town VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_56 WHERE home_town = "new york city, ny" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is guard Mario Chalmers?
### Context:
CREATE TABLE table_name_53 (year VARCHAR, position VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_53 WHERE position = "guard" AND name = "mario chalmers" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 japan's score?
### Context:
CREATE TABLE table_name_51 (score VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_51 WHERE country = "japan" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a Country of england, and a Champion of alison nicholas?
### Context:
CREATE TABLE table_name_66 (venue VARCHAR, country VARCHAR, champion VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_66 WHERE country = "england" AND champion = "alison nicholas" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Country has a Year larger than 1978, and a Score of 295, and a Venue of lindrick golf club?
### Context:
CREATE TABLE table_name_16 (country VARCHAR, venue VARCHAR, year VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_16 WHERE year > 1978 AND score = "295" AND venue = "lindrick golf club" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what player scored 9/1
### Context:
CREATE TABLE table_name_35 (jockey VARCHAR, odds VARCHAR) [/INST]
### Response:
SELECT jockey FROM table_name_35 WHERE odds = "9/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:
On what date was the score 6–4, 7–5?
### Context:
CREATE TABLE table_name_69 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_69 WHERE score = "6–4, 7–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:
Who was the opponent with an outcome runner-up on November 15, 2010?
### Context:
CREATE TABLE table_name_79 (opponent VARCHAR, outcome VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_79 WHERE outcome = "runner-up" AND date = "november 15, 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:
What was the outcome for Rik de Voest as opponent?
### Context:
CREATE TABLE table_name_98 (outcome VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_98 WHERE opponent = "rik de voest" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on October 24, 2005?
### Context:
CREATE TABLE table_name_55 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_55 WHERE date = "october 24, 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:
What is the sum of state champions with more tan 9 MRC Championships, more than 4 co-champions, and a record of 192-189-3?
### Context:
CREATE TABLE table_name_72 (state_champions INTEGER, co_champions VARCHAR, mrc_championships VARCHAR, records VARCHAR) [/INST]
### Response:
SELECT SUM(state_champions) FROM table_name_72 WHERE mrc_championships > 9 AND records = "192-189-3" AND co_champions > 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 was the co-champions value when solo was 3 and MRC Championships is greater than 3?
### Context:
CREATE TABLE table_name_49 (co_champions VARCHAR, solo VARCHAR, mrc_championships VARCHAR) [/INST]
### Response:
SELECT co_champions FROM table_name_49 WHERE solo = 3 AND mrc_championships > 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 highest value for co-champions when the PCT is less than 0.786 and MRC championships is 6 with records of 88-45-6?
### Context:
CREATE TABLE table_name_51 (co_champions INTEGER, records VARCHAR, pct VARCHAR, mrc_championships VARCHAR) [/INST]
### Response:
SELECT MAX(co_champions) FROM table_name_51 WHERE pct < 0.786 AND mrc_championships = 6 AND records = "88-45-6" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average value of MRC Championships with more than 0.685 PCT., more than 1 for co-champions, and less than 5 solo?
### Context:
CREATE TABLE table_name_31 (mrc_championships INTEGER, solo VARCHAR, pct VARCHAR, co_champions VARCHAR) [/INST]
### Response:
SELECT AVG(mrc_championships) FROM table_name_31 WHERE pct > 0.685 AND co_champions > 1 AND solo < 5 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Pct value when state champions is less than 1, MRC Championships is 10, and co-champions are greater than 4?
### Context:
CREATE TABLE table_name_51 (pct INTEGER, co_champions VARCHAR, state_champions VARCHAR, mrc_championships VARCHAR) [/INST]
### Response:
SELECT AVG(pct) FROM table_name_51 WHERE state_champions < 1 AND mrc_championships = 10 AND co_champions > 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:
Street Address of 980 n. michigan avenue is what name?
### Context:
CREATE TABLE table_name_46 (name VARCHAR, street_address VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_46 WHERE street_address = "980 n. michigan avenue" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of 900 north michigan, and a Year smaller than 1989 involves what lowest floors?
### Context:
CREATE TABLE table_name_39 (floors INTEGER, name VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT MIN(floors) FROM table_name_39 WHERE name = "900 north michigan" AND year < 1989 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Street Address of 401 n. wabash avenue involves what name?
### Context:
CREATE TABLE table_name_32 (name VARCHAR, street_address VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_32 WHERE street_address = "401 n. wabash avenue" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Pick larger than 229, and a Round smaller than 12, and a Position of defensive back is what school/club team?
### Context:
CREATE TABLE table_name_66 (school_club_team VARCHAR, position VARCHAR, pick VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_66 WHERE pick > 229 AND round < 12 AND position = "defensive back" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Player of mike o'quinn, and a Round smaller than 15 had what lowest pick?
### Context:
CREATE TABLE table_name_30 (pick INTEGER, player VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT MIN(pick) FROM table_name_30 WHERE player = "mike o'quinn" AND round < 15 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Round of 11 had waht sum of pick?
### Context:
CREATE TABLE table_name_24 (pick INTEGER, round VARCHAR) [/INST]
### Response:
SELECT SUM(pick) FROM table_name_24 WHERE round = 11 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Division has a Position of 6th?
### Context:
CREATE TABLE table_name_26 (division VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT division FROM table_name_26 WHERE position = "6th" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Season has a Level of tier 4, and a Position of 11th?
### Context:
CREATE TABLE table_name_18 (season INTEGER, level VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT SUM(season) FROM table_name_18 WHERE level = "tier 4" AND position = "11th" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Season has a Level of tier 2 and a Position of 1st?
### Context:
CREATE TABLE table_name_82 (season VARCHAR, level VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(season) FROM table_name_82 WHERE level = "tier 2" AND position = "1st" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Position has a Level of tier 3 and a Season smaller than 1999?
### Context:
CREATE TABLE table_name_38 (position VARCHAR, level VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_38 WHERE level = "tier 3" AND season < 1999 </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.