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:
Who had a run 2 of 50.67?
### Context:
CREATE TABLE table_name_67 (athlete VARCHAR, run_2 VARCHAR) [/INST]
### Response:
SELECT athlete FROM table_name_67 WHERE run_2 = 50.67 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 john farrow's run 2 associated with a run 1 of greater than 52.25?
### Context:
CREATE TABLE table_name_21 (run_2 INTEGER, run_1 VARCHAR, athlete VARCHAR) [/INST]
### Response:
SELECT MAX(run_2) FROM table_name_21 WHERE run_1 > 52.25 AND athlete = "john farrow" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 against the Buffalo Sabres?
### Context:
CREATE TABLE table_name_83 (score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_83 WHERE opponent = "buffalo sabres" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Rank smaller than 4, and a Name of dalma iványi involved which lowest game?
### Context:
CREATE TABLE table_name_9 (games INTEGER, rank VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT MIN(games) FROM table_name_9 WHERE rank < 4 AND name = "dalma iványi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sue bird that involves what team?
### Context:
CREATE TABLE table_name_27 (team VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_27 WHERE name = "sue bird" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which episode was directed by Bob Anderson with a production code of KABF16 and a season before than 25?
### Context:
CREATE TABLE table_name_16 (episode VARCHAR, production_code VARCHAR, season VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT episode FROM table_name_16 WHERE season < 25 AND directed_by = "bob anderson" AND production_code = "kabf16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director of the episode with a season after 8 and an episode of XVI?
### Context:
CREATE TABLE table_name_77 (directed_by VARCHAR, season VARCHAR, episode VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_name_77 WHERE season > 8 AND episode = "xvi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Date of 7 september 1996 includes which highest rank athlete?
### Context:
CREATE TABLE table_name_68 (rank INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_68 WHERE date = "7 september 1996" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Time of 10.82 has what location?
### Context:
CREATE TABLE table_name_84 (location VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_84 WHERE time = 10.82 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Date of 10 july 2009 includes what athlete?
### Context:
CREATE TABLE table_name_92 (athlete VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT athlete FROM table_name_92 WHERE date = "10 july 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:
Rank smaller than 5, and a Time larger than 10.7, and a Date of 10 july 2009 has what location?
### Context:
CREATE TABLE table_name_37 (location VARCHAR, date VARCHAR, rank VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_37 WHERE rank < 5 AND time > 10.7 AND date = "10 july 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:
Faith of rc, and a Opened larger than 1966 which has the highest DCSF number?
### Context:
CREATE TABLE table_name_22 (dcsf_number INTEGER, faith VARCHAR, opened VARCHAR) [/INST]
### Response:
SELECT MAX(dcsf_number) FROM table_name_22 WHERE faith = "rc" AND opened > 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:
Faith of –, and a Name of greenway has what type?
### Context:
CREATE TABLE table_name_79 (type VARCHAR, faith VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_79 WHERE faith = "–" AND name = "greenway" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that played at Launceston Cricket Club Ground, launceston during the season of 1853/54?
### Context:
CREATE TABLE table_name_47 (opponent VARCHAR, venue VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_47 WHERE venue = "launceston cricket club ground, launceston" AND season = "1853/54" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank of the team during season 2006/07?
### Context:
CREATE TABLE table_name_92 (rank VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_92 WHERE season = "2006/07" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue where there were 55 runs?
### Context:
CREATE TABLE table_name_12 (venue VARCHAR, runs VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_12 WHERE runs = "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 was the venue where there were 62 runs?
### Context:
CREATE TABLE table_name_97 (venue VARCHAR, runs VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_97 WHERE runs = "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:
Which driver had an accident and laps smaller than 53?
### Context:
CREATE TABLE table_name_82 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_82 WHERE laps < 53 AND time_retired = "accident" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What language has a publication range from 1955–1999?
### Context:
CREATE TABLE table_name_85 (language VARCHAR, publication_range VARCHAR) [/INST]
### Response:
SELECT language FROM table_name_85 WHERE publication_range = "1955–1999" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the status for a journal with the ISSN of 0149-1830?
### Context:
CREATE TABLE table_name_62 (status VARCHAR, issn VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_62 WHERE issn = "0149-1830" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 language with a France publication range of 1992–2003?
### Context:
CREATE TABLE table_name_65 (language VARCHAR, country VARCHAR, publication_range VARCHAR) [/INST]
### Response:
SELECT language FROM table_name_65 WHERE country = "france" AND publication_range = "1992–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:
What is the ISSN number of a publication range of 1984-?
### Context:
CREATE TABLE table_name_36 (issn VARCHAR, publication_range VARCHAR) [/INST]
### Response:
SELECT issn FROM table_name_36 WHERE publication_range = "1984-" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385?
### Context:
CREATE TABLE table_name_43 (language VARCHAR, frequency VARCHAR, issn VARCHAR) [/INST]
### Response:
SELECT language FROM table_name_43 WHERE frequency = "3 times per year" AND issn = "1136-7385" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 region 4 release that has july 20, 2009 as the region 2?
### Context:
CREATE TABLE table_name_99 (region_4_release VARCHAR, region_2_release VARCHAR) [/INST]
### Response:
SELECT region_4_release FROM table_name_99 WHERE region_2_release = "july 20, 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 region 1 release that has july 20, 2009 as the region 2?
### Context:
CREATE TABLE table_name_39 (region_1_release VARCHAR, region_2_release VARCHAR) [/INST]
### Response:
SELECT region_1_release FROM table_name_39 WHERE region_2_release = "july 20, 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 average episode that has September 11, 2007 as a region 1?
### Context:
CREATE TABLE table_name_70 (episodes INTEGER, region_1_release VARCHAR) [/INST]
### Response:
SELECT AVG(episodes) FROM table_name_70 WHERE region_1_release = "september 11, 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 scheduled value for the farm having a capacity under 32.5MW, type of Nordex n90 2.5MW, and a farm of Glenough Extension?
### Context:
CREATE TABLE table_name_13 (scheduled VARCHAR, wind_farm VARCHAR, capacity__mw_ VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT scheduled FROM table_name_13 WHERE capacity__mw_ < 32.5 AND type = "nordex n90 2.5mw" AND wind_farm = "glenough extension" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 type of turbine having fewer than 17 units and located in County Laois?
### Context:
CREATE TABLE table_name_65 (type VARCHAR, turbines VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_65 WHERE turbines < 17 AND location = "county laois" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 scheduled date for the farm having 17 turbines?
### Context:
CREATE TABLE table_name_96 (scheduled VARCHAR, turbines VARCHAR) [/INST]
### Response:
SELECT scheduled FROM table_name_96 WHERE turbines = 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 is the average capacity for the farm at Gortahile having more than 8 turbines?
### Context:
CREATE TABLE table_name_84 (capacity__mw_ INTEGER, wind_farm VARCHAR, turbines VARCHAR) [/INST]
### Response:
SELECT AVG(capacity__mw_) FROM table_name_84 WHERE wind_farm = "gortahile" AND turbines > 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the title of the king who left office in 982 and entered office in 949?
### Context:
CREATE TABLE table_name_64 (title VARCHAR, left_office VARCHAR, entered_office VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_64 WHERE left_office = "982" AND entered_office = "949" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 king who entered office in 1012 leave office?
### Context:
CREATE TABLE table_name_34 (left_office VARCHAR, entered_office VARCHAR) [/INST]
### Response:
SELECT left_office FROM table_name_34 WHERE entered_office = "1012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 family relations of the king with the throne name 303?
### Context:
CREATE TABLE table_name_20 (family_relations VARCHAR, throne_name VARCHAR) [/INST]
### Response:
SELECT family_relations FROM table_name_20 WHERE throne_name = "303" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 teh born-died dates of the king with a throne name 315 and left office in 1021?
### Context:
CREATE TABLE table_name_74 (born_died VARCHAR, left_office VARCHAR, throne_name VARCHAR) [/INST]
### Response:
SELECT born_died FROM table_name_74 WHERE left_office = "1021" AND throne_name = "315" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Opponents have a Partner of irina-camelia begu, and a Surface of hard?
### Context:
CREATE TABLE table_name_15 (opponents VARCHAR, partner VARCHAR, surface VARCHAR) [/INST]
### Response:
SELECT opponents FROM table_name_15 WHERE partner = "irina-camelia begu" AND surface = "hard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Surface has a Partner of galina voskoboeva?
### Context:
CREATE TABLE table_name_45 (surface VARCHAR, partner VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_45 WHERE partner = "galina voskoboeva" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Opponents have a Surface of hard, and an Outcome of runner-up, and a Partner of jarmila gajdošová?
### Context:
CREATE TABLE table_name_80 (opponents VARCHAR, partner VARCHAR, surface VARCHAR, outcome VARCHAR) [/INST]
### Response:
SELECT opponents FROM table_name_80 WHERE surface = "hard" AND outcome = "runner-up" AND partner = "jarmila gajdošová" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Partner has a Date of 12 july 2009?
### Context:
CREATE TABLE table_name_18 (partner VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT partner FROM table_name_18 WHERE date = "12 july 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:
Which Surface has a Partner of sorana cîrstea?
### Context:
CREATE TABLE table_name_93 (surface VARCHAR, partner VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_93 WHERE partner = "sorana cîrstea" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 overall with pick number more than 27
### Context:
CREATE TABLE table_name_56 (overall INTEGER, pick__number INTEGER) [/INST]
### Response:
SELECT MIN(overall) FROM table_name_56 WHERE pick__number > 27 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what's the first leg with gran canaria as team #2?
### Context:
CREATE TABLE table_name_56 (team__number2 VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_56 WHERE team__number2 = "gran canaria" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
with team #1 as lukoil academic what is team #2?
### Context:
CREATE TABLE table_name_67 (team__number2 VARCHAR, team__number1 VARCHAR) [/INST]
### Response:
SELECT team__number2 FROM table_name_67 WHERE team__number1 = "lukoil academic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
with team #2 as akasvayu girona what is team #1?
### Context:
CREATE TABLE table_name_12 (team__number1 VARCHAR, team__number2 VARCHAR) [/INST]
### Response:
SELECT team__number1 FROM table_name_12 WHERE team__number2 = "akasvayu girona" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 virtue is acedia(Latin)?
### Context:
CREATE TABLE table_name_13 (virtue VARCHAR, acedia VARCHAR, latin VARCHAR) [/INST]
### Response:
SELECT virtue FROM table_name_13 WHERE (latin) = acedia </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Virtue has a (vice) of lust?
### Context:
CREATE TABLE table_name_31 (virtue VARCHAR, _vice_ VARCHAR) [/INST]
### Response:
SELECT virtue FROM table_name_31 WHERE _vice_ = "lust" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 virtue is Invidia(Latin)?
### Context:
CREATE TABLE table_name_20 (virtue VARCHAR, invidia VARCHAR, latin VARCHAR) [/INST]
### Response:
SELECT virtue FROM table_name_20 WHERE (latin) = invidia </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gloss with Castitas(Latin)?
### Context:
CREATE TABLE table_name_79 (gloss VARCHAR, latin VARCHAR) [/INST]
### Response:
SELECT gloss FROM table_name_79 WHERE latin = "castitas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Diligence Virtues Gloss?
### Context:
CREATE TABLE table_name_22 (gloss VARCHAR, virtue VARCHAR) [/INST]
### Response:
SELECT gloss FROM table_name_22 WHERE virtue = "diligence" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Virtue of Temperance in Latin?
### Context:
CREATE TABLE table_name_64 (latin VARCHAR, virtue VARCHAR) [/INST]
### Response:
SELECT latin FROM table_name_64 WHERE virtue = "temperance" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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(s) did South Korea win silver?
### Context:
CREATE TABLE table_name_14 (year VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_14 WHERE silver = "south korea" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which nation(s) won silver in Doha?
### Context:
CREATE TABLE table_name_51 (silver VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT silver FROM table_name_51 WHERE location = "doha" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the first year that South Korea won gold and Malaysia won bronze?
### Context:
CREATE TABLE table_name_74 (year INTEGER, gold VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_74 WHERE gold = "south korea" AND bronze = "malaysia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country won gold in the year(s) that Chinese Taipei won bronze?
### Context:
CREATE TABLE table_name_50 (gold VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT gold FROM table_name_50 WHERE bronze = "chinese taipei" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 European competitions have a Pos of 6?
### Context:
CREATE TABLE table_name_85 (european_competitions VARCHAR, pos VARCHAR) [/INST]
### Response:
SELECT european_competitions FROM table_name_85 WHERE pos = 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:
Which Pos has a Dutch Cup of winner, and a Tier larger than 1?
### Context:
CREATE TABLE table_name_1 (pos INTEGER, dutch_cup VARCHAR, tier VARCHAR) [/INST]
### Response:
SELECT AVG(pos) FROM table_name_1 WHERE dutch_cup = "winner" AND tier > 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Frequency MHz that is on farwell, texas?
### Context:
CREATE TABLE table_name_72 (frequency_mhz INTEGER, city_of_license VARCHAR) [/INST]
### Response:
SELECT AVG(frequency_mhz) FROM table_name_72 WHERE city_of_license = "farwell, texas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 City of license has a FCC info of fcc, and 10,000 horizontal 3,000 vertical ERP W
### Context:
CREATE TABLE table_name_42 (city_of_license VARCHAR, fcc_info VARCHAR, erp_w VARCHAR) [/INST]
### Response:
SELECT city_of_license FROM table_name_42 WHERE fcc_info = "fcc" AND erp_w = "10,000 horizontal 3,000 vertical" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 FCC info has 3,000 ERP W?
### Context:
CREATE TABLE table_name_22 (fcc_info VARCHAR, erp_w VARCHAR) [/INST]
### Response:
SELECT fcc_info FROM table_name_22 WHERE erp_w = "3,000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the average game against the New Jersey Devils with 19 points?
### Context:
CREATE TABLE table_name_22 (game INTEGER, points VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT AVG(game) FROM table_name_22 WHERE points = 19 AND opponent = "new jersey devils" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Opponent of at boston patriots, and a Week larger than 3 had what average attendance?
### Context:
CREATE TABLE table_name_54 (attendance INTEGER, opponent VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_54 WHERE opponent = "at boston patriots" AND week > 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:
Name the average fall 07 for fall 07 more than 219
### Context:
CREATE TABLE table_name_34 (fall_07 INTEGER, fall_06 INTEGER) [/INST]
### Response:
SELECT AVG(fall_07) FROM table_name_34 WHERE fall_06 > 219 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player for fc dallas pick number less than 3
### Context:
CREATE TABLE table_name_69 (player VARCHAR, pick__number VARCHAR, mls_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_69 WHERE pick__number < 3 AND mls_team = "fc dallas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the most pick number for real salt lake and affiliation of ucla los angeles storm
### Context:
CREATE TABLE table_name_63 (pick__number INTEGER, mls_team VARCHAR, affiliation VARCHAR) [/INST]
### Response:
SELECT MAX(pick__number) FROM table_name_63 WHERE mls_team = "real salt lake" AND affiliation = "ucla los angeles storm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player with pick number of 7
### Context:
CREATE TABLE table_name_63 (player VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_63 WHERE pick__number = 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Game has a March smaller than 12, and a Score of 10–1?
### Context:
CREATE TABLE table_name_10 (game INTEGER, march VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_10 WHERE march < 12 AND score = "10–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 Score has Points of 88, and a Record of 38–22–12?
### Context:
CREATE TABLE table_name_84 (score VARCHAR, points VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_84 WHERE points = 88 AND record = "38–22–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:
Which Game has an Opponent of detroit red wings, and a March smaller than 12?
### Context:
CREATE TABLE table_name_13 (game VARCHAR, opponent VARCHAR, march VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_name_13 WHERE opponent = "detroit red wings" AND march < 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:
Which Points have a Game smaller than 70, and a Score of 4–8?
### Context:
CREATE TABLE table_name_85 (points INTEGER, game VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_85 WHERE game < 70 AND score = "4–8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which segment a's Netflix is S05E22?
### Context:
CREATE TABLE table_name_86 (segment_a VARCHAR, netflix VARCHAR) [/INST]
### Response:
SELECT segment_a FROM table_name_86 WHERE netflix = "s05e22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 series episode has a segment c that is Electric pole s transformer?
### Context:
CREATE TABLE table_name_59 (series_ep VARCHAR, segment_c VARCHAR) [/INST]
### Response:
SELECT series_ep FROM table_name_59 WHERE segment_c = "electric pole s transformer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What largest episode number's Netflix is S05E23?
### Context:
CREATE TABLE table_name_23 (episode INTEGER, netflix VARCHAR) [/INST]
### Response:
SELECT MAX(episode) FROM table_name_23 WHERE netflix = "s05e23" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 segment c's segment b is refrigerators?
### Context:
CREATE TABLE table_name_58 (segment_c VARCHAR, segment_b VARCHAR) [/INST]
### Response:
SELECT segment_c FROM table_name_58 WHERE segment_b = "refrigerators" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 races did they accumulate at least 125 points?
### Context:
CREATE TABLE table_name_38 (races VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT races FROM table_name_38 WHERE points = "125" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Series has a Score of 3 – 8?
### Context:
CREATE TABLE table_name_63 (series VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_63 WHERE score = "3 – 8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Date has a Decision of myre?
### Context:
CREATE TABLE table_name_48 (date VARCHAR, decision VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_48 WHERE decision = "myre" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on may 24?
### Context:
CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_75 WHERE date = "may 24" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Series are on may 18?
### Context:
CREATE TABLE table_name_86 (series VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_86 WHERE date = "may 18" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many Attendances that has a Visitor of philadelphia on may 20?
### Context:
CREATE TABLE table_name_48 (attendance INTEGER, visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_48 WHERE visitor = "philadelphia" AND date = "may 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:
who is the Visitor that has a Series of series tied 2–2?
### Context:
CREATE TABLE table_name_33 (visitor VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_33 WHERE series = "series tied 2–2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many Attendances have a Score of 4 – 5? Question 4
### Context:
CREATE TABLE table_name_88 (attendance INTEGER, score VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_88 WHERE score = "4 – 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 has a Home of philadelphia and a Series of flyers lead 1–0?
### Context:
CREATE TABLE table_name_54 (visitor VARCHAR, home VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_54 WHERE home = "philadelphia" AND series = "flyers lead 1–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 class of the Charlotte Camel gt 500 race?
### Context:
CREATE TABLE table_name_76 (class VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_76 WHERE race = "charlotte camel gt 500" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 race 12 hours in length?
### Context:
CREATE TABLE table_name_20 (race VARCHAR, length VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_20 WHERE length = "12 hours" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the Coca-cola classic 12 hours of sebring race?
### Context:
CREATE TABLE table_name_35 (class VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_35 WHERE race = "coca-cola classic 12 hours of sebring" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the Budweiser Grand Prix of Miami race with a length of 3 hours?
### Context:
CREATE TABLE table_name_13 (class VARCHAR, race VARCHAR, length VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_13 WHERE race = "budweiser grand prix of miami" AND length = "3 hours" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Paul Revere 250 race in the Daytona International Speedway circuit?
### Context:
CREATE TABLE table_name_66 (date VARCHAR, circuit VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_66 WHERE circuit = "daytona international speedway" AND race = "paul revere 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:
What race is 12 hours in length?
### Context:
CREATE TABLE table_name_52 (race VARCHAR, length VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_52 WHERE length = "12 hours" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round for the pick from Finland?
### Context:
CREATE TABLE table_name_55 (round INTEGER, nationality VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_55 WHERE nationality = "finland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rounds that Joe Barnes was picked?
### Context:
CREATE TABLE table_name_34 (round VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_34 WHERE player = "joe barnes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 order of the Tokyo olympic games?
### Context:
CREATE TABLE table_name_9 (order VARCHAR, olympic_games VARCHAR) [/INST]
### Response:
SELECT order FROM table_name_9 WHERE olympic_games = "tokyo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 15th club in 2012?
### Context:
CREATE TABLE table_name_46 (club VARCHAR, year VARCHAR, order VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_46 WHERE year = 2012 AND order = "15th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Michael Conlon, with a weight of fly, win?
### Context:
CREATE TABLE table_name_48 (medal VARCHAR, weight VARCHAR, boxer VARCHAR) [/INST]
### Response:
SELECT medal FROM table_name_48 WHERE weight = "fly" AND boxer = "michael conlon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 more than 45,036 attendance?
### Context:
CREATE TABLE table_name_50 (loss VARCHAR, attendance INTEGER) [/INST]
### Response:
SELECT loss FROM table_name_50 WHERE attendance > 45 OFFSET 036 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
on april 29, what was the attendance?
### Context:
CREATE TABLE table_name_68 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_68 WHERE date = "april 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:
on april 9 what was the attendance?
### Context:
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_40 WHERE date = "april 9" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date has postponed (rain) rescheduled for august 7 as the score?
### Context:
CREATE TABLE table_name_27 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_27 WHERE score = "postponed (rain) rescheduled for august 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:
Failures larger than 0, and a Successes of 1 has what lowest partial failures?
### Context:
CREATE TABLE table_name_64 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR) [/INST]
### Response:
SELECT MIN(partial_failures) FROM table_name_64 WHERE failures > 0 AND successes = 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:
Successes smaller than 6, and Launches larger than 1, and a Failures of 2 is what sum of the partial failures?
### Context:
CREATE TABLE table_name_35 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR, launches VARCHAR) [/INST]
### Response:
SELECT SUM(partial_failures) FROM table_name_35 WHERE successes < 6 AND launches > 1 AND failures = 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 opposing team during a game in the Pontiac Silverdome?
### Context:
CREATE TABLE table_name_89 (opponent VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_89 WHERE location = "pontiac silverdome" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final score for the January 23 game?
### Context:
CREATE TABLE table_name_23 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_23 WHERE date = "january 23" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.