text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the class for the position of lg?
### Context:
CREATE TABLE table_name_4 (class VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_4 WHERE position = "lg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 weight for the Farnley Stakes race?
### Context:
CREATE TABLE table_name_67 (weight__kg_ INTEGER, race VARCHAR) [/INST]
### Response:
SELECT MAX(weight__kg_) FROM table_name_67 WHERE race = "farnley stakes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What time is associated with the event that happened in Tokyo, Japan, ending in a draw, with 3 rounds?
### Context:
CREATE TABLE table_name_44 (time VARCHAR, res VARCHAR, location VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_44 WHERE location = "tokyo, japan" AND round = 3 AND res = "draw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2012 has a 2007 of 0 / 4?
### Context:
CREATE TABLE table_name_8 (Id VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_8 WHERE 2007 = "0 / 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 2011 has a Career Win-Loss of 7–10?
### Context:
CREATE TABLE table_name_65 (career_win_loss VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_65 WHERE career_win_loss = "7–10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which 1998 has a 2002 of 2–4?
### Context:
CREATE TABLE table_name_65 (Id VARCHAR) [/INST]
### Response:
SELECT 1998 FROM table_name_65 WHERE 2002 = "2–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 2002 has a 2008 of 3–3?
### Context:
CREATE TABLE table_name_79 (Id VARCHAR) [/INST]
### Response:
SELECT 2002 FROM table_name_79 WHERE 2008 = "3–3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which 2003 has a 2012 of 1r, and a 2008 of 1r?
### Context:
CREATE TABLE table_name_42 (Id VARCHAR) [/INST]
### Response:
SELECT 2003 FROM table_name_42 WHERE 2012 = "1r" AND 2008 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What club is robert gallery a part of
### Context:
CREATE TABLE table_name_51 (nfl_club VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nfl_club FROM table_name_51 WHERE player = "robert gallery" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance numbers had more than 15 games, and sellouts of more than 8 in the 2011-12 season?
### Context:
CREATE TABLE table_name_34 (attendance VARCHAR, season VARCHAR, games VARCHAR, sellouts VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_34 WHERE games > 15 AND sellouts > 8 AND season = "2011-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's the mean attendance number when the record is 12-4 and the average is less than 10,027?
### Context:
CREATE TABLE table_name_24 (attendance INTEGER, record VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_24 WHERE record = "12-4" AND average < 10 OFFSET 027 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 full amount of averages when the sellouts are less than 14, the season is 2011-12, and attendance is less than 162,474?
### Context:
CREATE TABLE table_name_73 (average VARCHAR, attendance VARCHAR, sellouts VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT COUNT(average) FROM table_name_73 WHERE sellouts < 14 AND season = "2011-12" AND attendance < 162 OFFSET 474 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What medal was awarded in the men's freestyle 52 kg?
### Context:
CREATE TABLE table_name_69 (medal VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT medal FROM table_name_69 WHERE event = "men's freestyle 52 kg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Events smaller than 1 had what highest cuts made?
### Context:
CREATE TABLE table_name_65 (cuts_made INTEGER, events INTEGER) [/INST]
### Response:
SELECT MAX(cuts_made) FROM table_name_65 WHERE events < 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position was played with a Difference of - 5, and a Played larger than 14?
### Context:
CREATE TABLE table_name_48 (position INTEGER, difference VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT AVG(position) FROM table_name_48 WHERE difference = "- 5" AND played > 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 games lost associated with under 14 played?
### Context:
CREATE TABLE table_name_66 (lost VARCHAR, played INTEGER) [/INST]
### Response:
SELECT COUNT(lost) FROM table_name_66 WHERE played < 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 games against for team guarani with under 3 draws?
### Context:
CREATE TABLE table_name_84 (against INTEGER, team VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT SUM(against) FROM table_name_84 WHERE team = "guarani" AND drawn < 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 Congress had less than 23 cosponsors and had June 30, 2005 as the date of introduction of the bill?
### Context:
CREATE TABLE table_name_92 (congress VARCHAR, _number_of_cosponsors VARCHAR, date_introduced VARCHAR) [/INST]
### Response:
SELECT congress FROM table_name_92 WHERE _number_of_cosponsors < 23 AND date_introduced = "june 30, 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:
Who sponsored the bill introduced on June 9, 2011?
### Context:
CREATE TABLE table_name_77 (sponsor_s_ VARCHAR, date_introduced VARCHAR) [/INST]
### Response:
SELECT sponsor_s_ FROM table_name_77 WHERE date_introduced = "june 9, 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:
Who sponsored the bill that was introduced on June 2, 2009?
### Context:
CREATE TABLE table_name_55 (sponsor_s_ VARCHAR, date_introduced VARCHAR) [/INST]
### Response:
SELECT sponsor_s_ FROM table_name_55 WHERE date_introduced = "june 2, 2009" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Outcome of the Melbourne Tournament?
### Context:
CREATE TABLE table_name_48 (outcome VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_48 WHERE tournament = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tournament was Janet Young a Partner?
### Context:
CREATE TABLE table_name_18 (tournament VARCHAR, partner VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_18 WHERE partner = "janet young" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the match with a Score of w/o?
### Context:
CREATE TABLE table_name_57 (outcome VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_57 WHERE score = "w/o" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which school or club team has a pick of 139?
### Context:
CREATE TABLE table_name_60 (school_club_team VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_60 WHERE pick = 139 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number for the player playing tackle position, and a round less than 15?
### Context:
CREATE TABLE table_name_97 (pick INTEGER, position VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT SUM(pick) FROM table_name_97 WHERE position = "tackle" 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:
Which school of club team has a pick of 46?
### Context:
CREATE TABLE table_name_83 (school_club_team VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_83 WHERE pick = 46 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 got 59.486 for Qual 2?
### Context:
CREATE TABLE table_name_15 (name VARCHAR, qual_2 VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_15 WHERE qual_2 = "59.486" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 got 59.578 for Qual 1?
### Context:
CREATE TABLE table_name_79 (name VARCHAR, qual_1 VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_79 WHERE qual_1 = "59.578" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team was Andrew Ranger in?
### Context:
CREATE TABLE table_name_78 (team VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_78 WHERE name = "andrew ranger" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team has 59.372 for qual 1?
### Context:
CREATE TABLE table_name_37 (team VARCHAR, qual_1 VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_37 WHERE qual_1 = "59.372" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did Alex Tagliani get for Qual 1?
### Context:
CREATE TABLE table_name_93 (qual_1 VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT qual_1 FROM table_name_93 WHERE name = "alex tagliani" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result of the game on November 7, 1999?
### Context:
CREATE TABLE table_name_9 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_9 WHERE date = "november 7, 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:
When was the game before week 15 with the result of bye?
### Context:
CREATE TABLE table_name_26 (date VARCHAR, week VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_26 WHERE week < 15 AND result = "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 is the writer of Wallace & Gromit: A Close Shave, a short film from before 2008?
### Context:
CREATE TABLE table_name_15 (writer VARCHAR, title VARCHAR, year VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT writer FROM table_name_15 WHERE year < 2008 AND notes = "short film" AND title = "wallace & gromit: a close shave" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What notes did the creature comforts film have?
### Context:
CREATE TABLE table_name_31 (notes VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_31 WHERE title = "creature comforts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the director of Wallace & Gromit: The Curse of the Were-Rabbit?
### Context:
CREATE TABLE table_name_99 (director VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_99 WHERE title = "wallace & gromit: the curse of the were-rabbit" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the earliest year of Wallace & Gromit: The Curse of the Were-Rabbit?
### Context:
CREATE TABLE table_name_13 (year INTEGER, title VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_13 WHERE title = "wallace & gromit: the curse of the were-rabbit" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 length of the game on may 19
### Context:
CREATE TABLE table_name_10 (length VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT length FROM table_name_10 WHERE date = "may 19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
March of 26 has what lowest game?
### Context:
CREATE TABLE table_name_24 (game INTEGER, march VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_24 WHERE march = 26 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
March of 29 involves what highest scoring game?
### Context:
CREATE TABLE table_name_40 (game INTEGER, march VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_40 WHERE march = 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:
Game larger than 76, and a March larger than 26 involves what score?
### Context:
CREATE TABLE table_name_60 (score VARCHAR, game VARCHAR, march VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_60 WHERE game > 76 AND march > 26 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time when the laps were smaller than 66 and the grid was 15?
### Context:
CREATE TABLE table_name_62 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_62 WHERE laps < 66 AND grid = 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:
What was the grid for anthony davidson when the laps were less than 8?
### Context:
CREATE TABLE table_name_86 (grid VARCHAR, driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_86 WHERE driver = "anthony davidson" AND laps < 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 team did carlos cardus drive for in 1983 when he got less than 21 points?
### Context:
CREATE TABLE table_name_69 (team VARCHAR, points VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_69 WHERE points < 21 AND year = 1983 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of the points when Carlos drove for repsol honda in 8th place?
### Context:
CREATE TABLE table_name_93 (points INTEGER, team VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_93 WHERE team = "repsol honda" AND rank = "8th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average points won when Carlos had 0 wins?
### Context:
CREATE TABLE table_name_5 (points INTEGER, wins INTEGER) [/INST]
### Response:
SELECT AVG(points) FROM table_name_5 WHERE 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:
What is the highest year that Carlos drove for repsol honda and had less than 4 wins and less than 162 points?
### Context:
CREATE TABLE table_name_56 (year INTEGER, points VARCHAR, team VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_56 WHERE team = "repsol honda" AND wins < 4 AND points < 162 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of goals from 24 tries and 96 or greater points?
### Context:
CREATE TABLE table_name_46 (goals INTEGER, tries VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT SUM(goals) FROM table_name_46 WHERE tries = 24 AND points > 96 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has tries less than 24 and 0 points?
### Context:
CREATE TABLE table_name_38 (year VARCHAR, tries VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_38 WHERE tries < 24 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:
What Game has a Location of Philadelphia Spectrum and an Opponent of New York Knicks?
### Context:
CREATE TABLE table_name_91 (game VARCHAR, location VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_91 WHERE location = "philadelphia spectrum" AND opponent = "new york knicks" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Game has a Location of Philadelphia Spectrum and a Date of April 1?
### Context:
CREATE TABLE table_name_80 (game VARCHAR, location VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_80 WHERE location = "philadelphia spectrum" AND date = "april 1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the segment for Netflix episode S08E04?
### Context:
CREATE TABLE table_name_94 (segment_a VARCHAR, netflix VARCHAR) [/INST]
### Response:
SELECT segment_a FROM table_name_94 WHERE netflix = "s08e04" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Netflix episode for series episode 15-01?
### Context:
CREATE TABLE table_name_64 (netflix VARCHAR, series_ep VARCHAR) [/INST]
### Response:
SELECT netflix FROM table_name_64 WHERE series_ep = "15-01" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 segment A for the episode with Children's Ride-on Cars for segment D?
### Context:
CREATE TABLE table_name_10 (segment_a VARCHAR, segment_d VARCHAR) [/INST]
### Response:
SELECT segment_a FROM table_name_10 WHERE segment_d = "children's ride-on cars" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the earliest year with fewer than 5 wins and 89 points?
### Context:
CREATE TABLE table_name_12 (year INTEGER, wins VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_12 WHERE wins < 5 AND points = 89 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the most recent year with more than 27 points and more than 5 wins?
### Context:
CREATE TABLE table_name_69 (year INTEGER, points VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_69 WHERE points > 27 AND wins > 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 are the sum of points in 1989 with 0 wins?
### Context:
CREATE TABLE table_name_85 (points INTEGER, wins VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_85 WHERE wins = 0 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:
Which class has fewer than 89 points and the Honda team later than 1987?
### Context:
CREATE TABLE table_name_48 (class VARCHAR, year VARCHAR, points VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_48 WHERE points < 89 AND team = "honda" AND year > 1987 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 are there later than 1992?
### Context:
CREATE TABLE table_name_12 (points VARCHAR, year INTEGER) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_12 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:
Where was the event on June 10?
### Context:
CREATE TABLE table_name_12 (location VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_12 WHERE date = "june 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 event was in New Orleans, Louisiana, USA?
### Context:
CREATE TABLE table_name_55 (event VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_55 WHERE location = "new orleans, louisiana, usa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 September 10 during Strikeforce: Heavyweight Grand Prix Semifinals, what was the PPV buyrate?
### Context:
CREATE TABLE table_name_77 (ppv_buyrate VARCHAR, date VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT ppv_buyrate FROM table_name_77 WHERE date = "september 10" AND event = "strikeforce: heavyweight grand prix semifinals" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 are there on november 7?
### Context:
CREATE TABLE table_name_94 (points INTEGER, november VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_94 WHERE november = 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score in the game where the Blazers were the home team?
### Context:
CREATE TABLE table_name_95 (score VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_95 WHERE home = "blazers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people attended the game that had the Clippers as visiting team?
### Context:
CREATE TABLE table_name_47 (attendance VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_47 WHERE visitor = "clippers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team has a car # before 99, a Toyota, and is driven by Mike Skinner?
### Context:
CREATE TABLE table_name_1 (team VARCHAR, driver VARCHAR, car__number VARCHAR, make VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_1 WHERE car__number < 99 AND make = "toyota" AND driver = "mike skinner" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position for driver Kyle Busch?
### Context:
CREATE TABLE table_name_94 (pos INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT MIN(pos) FROM table_name_94 WHERE driver = "kyle busch" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team of the Chevrolet, and has a position less than 7, for car # 88?
### Context:
CREATE TABLE table_name_90 (team VARCHAR, car__number VARCHAR, make VARCHAR, pos VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_90 WHERE make = "chevrolet" AND pos < 7 AND car__number = 88 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Film has a Result of nominated, and a Year of 2001?
### Context:
CREATE TABLE table_name_67 (film VARCHAR, result VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT film FROM table_name_67 WHERE result = "nominated" 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:
Which Award has a Group of césar awards, and a Result of nominated, and a Year larger than 2001, and a Film of 8 women (8 femmes)?
### Context:
CREATE TABLE table_name_39 (award VARCHAR, film VARCHAR, year VARCHAR, group VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT award FROM table_name_39 WHERE group = "césar awards" AND result = "nominated" AND year > 2001 AND film = "8 women (8 femmes)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Group of césar awards, and a Result of nominated, and an Award of the best actress, and a Film of 8 women (8 femmes)?
### Context:
CREATE TABLE table_name_41 (year INTEGER, film VARCHAR, award VARCHAR, group VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_41 WHERE group = "césar awards" AND result = "nominated" AND award = "best actress" AND film = "8 women (8 femmes)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Award has a Result of nominated, and a Year of 2003?
### Context:
CREATE TABLE table_name_85 (award VARCHAR, result VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT award FROM table_name_85 WHERE result = "nominated" AND year = 2003 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result has a Year larger than 2003, and an Award of best supporting actress?
### Context:
CREATE TABLE table_name_32 (result VARCHAR, year VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_32 WHERE year > 2003 AND award = "best supporting actress" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 valid poll with seats more than 4 and candidates more than 9
### Context:
CREATE TABLE table_name_67 (valid_poll VARCHAR, seats VARCHAR, candidates VARCHAR) [/INST]
### Response:
SELECT COUNT(valid_poll) FROM table_name_67 WHERE seats > 4 AND candidates > 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:
Name the least valid poll for munster
### Context:
CREATE TABLE table_name_50 (valid_poll INTEGER, constituency VARCHAR) [/INST]
### Response:
SELECT MIN(valid_poll) FROM table_name_50 WHERE constituency = "munster" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 valid poll for seats less than 3
### Context:
CREATE TABLE table_name_45 (valid_poll INTEGER, seats INTEGER) [/INST]
### Response:
SELECT AVG(valid_poll) FROM table_name_45 WHERE seats < 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Label has a Region of canada?
### Context:
CREATE TABLE table_name_12 (label VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_12 WHERE region = "canada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Date has a Catalog of 887 195-2, and a Format of cd maxi?
### Context:
CREATE TABLE table_name_63 (date VARCHAR, catalog VARCHAR, format VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_63 WHERE catalog = "887 195-2" AND format = "cd maxi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Date has a Region of france?
### Context:
CREATE TABLE table_name_90 (date VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_90 WHERE region = "france" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Time has an Opponent of shamil abdurahimov?
### Context:
CREATE TABLE table_name_39 (time VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_39 WHERE opponent = "shamil abdurahimov" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Record has an Event of cage rage 23?
### Context:
CREATE TABLE table_name_35 (record VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_35 WHERE event = "cage rage 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 was the average date with a record of 30-31-9 in a game over 70?
### Context:
CREATE TABLE table_name_29 (date INTEGER, record VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT AVG(date) FROM table_name_29 WHERE record = "30-31-9" AND game > 70 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latest date at Los Angeles with a game less than 62?
### Context:
CREATE TABLE table_name_88 (date INTEGER, location_attendance VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT MAX(date) FROM table_name_88 WHERE location_attendance = "los angeles" AND game < 62 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latest date for a game over 69 with a St. Louis Blues opponent?
### Context:
CREATE TABLE table_name_49 (date INTEGER, game VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT MAX(date) FROM table_name_49 WHERE game > 69 AND opponent = "st. louis blues" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game with Oakland Seals opponent and a record of 27-30-6 on a date more than 7?
### Context:
CREATE TABLE table_name_26 (game INTEGER, date VARCHAR, opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_26 WHERE opponent = "oakland seals" AND record = "27-30-6" AND date > 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total attendance for the date of october 5?
### Context:
CREATE TABLE table_name_3 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_3 WHERE date = "october 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 record has September 21 as the date?
### Context:
CREATE TABLE table_name_59 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_59 WHERE date = "september 21" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the match on December 19, 2009?
### Context:
CREATE TABLE table_name_63 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_63 WHERE date = "december 19, 2009" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the highest game against the New York Rangers with more than 55 points?
### Context:
CREATE TABLE table_name_16 (game INTEGER, opponent VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_16 WHERE opponent = "new york rangers" AND points > 55 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record for a game past 44 against the Dallas Stars with more than 54 points?
### Context:
CREATE TABLE table_name_25 (record VARCHAR, opponent VARCHAR, points VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_25 WHERE points > 54 AND game > 44 AND opponent = "dallas stars" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latest Fiscal Year with Revenues of $4.3 billion, and more than 85,335 employees?
### Context:
CREATE TABLE table_name_95 (fiscal_year INTEGER, revenues VARCHAR, employees VARCHAR) [/INST]
### Response:
SELECT MAX(fiscal_year) FROM table_name_95 WHERE revenues = "$4.3 billion" AND employees > 85 OFFSET 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 is the average Fiscal Year of the firm Headquartered in noida, with less than 85,335 employees?
### Context:
CREATE TABLE table_name_55 (fiscal_year INTEGER, headquarters VARCHAR, employees VARCHAR) [/INST]
### Response:
SELECT AVG(fiscal_year) FROM table_name_55 WHERE headquarters = "noida" AND employees < 85 OFFSET 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 are the Points after 1991?
### Context:
CREATE TABLE table_name_49 (points VARCHAR, year INTEGER) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_49 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 Class has 36 Points?
### Context:
CREATE TABLE table_name_68 (class VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_68 WHERE points = 36 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Class after 1986?
### Context:
CREATE TABLE table_name_13 (class VARCHAR, year INTEGER) [/INST]
### Response:
SELECT class FROM table_name_13 WHERE year > 1986 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendances had the Detroit Lions as opponents?
### Context:
CREATE TABLE table_name_11 (attendance INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_11 WHERE opponent = "detroit lions" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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's distance was 500m before 2012, when the record was 1:37.071s?
### Context:
CREATE TABLE table_name_26 (nationality VARCHAR, record VARCHAR, distance VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_26 WHERE distance = "500m" AND year < 2012 AND record = "1:37.071s" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location's year was 2001 when the record was 3:52.983s?
### Context:
CREATE TABLE table_name_33 (location VARCHAR, year VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_33 WHERE year = 2001 AND record = "3:52.983s" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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's distance was 200m and had a year more recent than 1994 when the record was 33.778s?
### Context:
CREATE TABLE table_name_10 (nationality VARCHAR, record VARCHAR, distance VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_10 WHERE distance = "200m" AND year > 1994 AND record = "33.778s" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Total medals for the team with a Rank of 8, 1 Bronze and more than 1 Silver?
### Context:
CREATE TABLE table_name_71 (total INTEGER, silver VARCHAR, bronze VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_71 WHERE bronze = 1 AND rank = "8" AND silver > 1 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.