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 urban sub-area with an East Dunbartonshire council area and a population of 19,020?
### Context:
CREATE TABLE table_name_70 (urban_sub_area VARCHAR, council_area VARCHAR, population VARCHAR) [/INST]
### Response:
SELECT urban_sub_area FROM table_name_70 WHERE council_area = "east dunbartonshire" AND population = "19,020" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 council area for the Larkhall urban sub-area?
### Context:
CREATE TABLE table_name_51 (council_area VARCHAR, urban_sub_area VARCHAR) [/INST]
### Response:
SELECT council_area FROM table_name_51 WHERE urban_sub_area = "larkhall" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 population of the East Kilbride urban sub-area?
### Context:
CREATE TABLE table_name_61 (population VARCHAR, urban_sub_area VARCHAR) [/INST]
### Response:
SELECT population FROM table_name_61 WHERE urban_sub_area = "east kilbride" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 urban sub-area has a population of 16,140?
### Context:
CREATE TABLE table_name_58 (urban_sub_area VARCHAR, population VARCHAR) [/INST]
### Response:
SELECT urban_sub_area FROM table_name_58 WHERE population = "16,140" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the record of the cubs on July 19?
### Context:
CREATE TABLE table_name_41 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_41 WHERE date = "july 19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What nationality is Northwood School (N.Y.)?
### Context:
CREATE TABLE table_name_44 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_44 WHERE college_junior_club_team__league_ = "northwood school (n.y.)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 incumbent William Vandever's results?
### Context:
CREATE TABLE table_name_81 (result VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_81 WHERE incumbent = "william vandever" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 first person elected from Democratic GAIN?
### Context:
CREATE TABLE table_name_73 (first_elected VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_name_73 WHERE result = "democratic gain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for incumbent Joseph McKenna who was first elected in 1884?
### Context:
CREATE TABLE table_name_77 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_77 WHERE first_elected = "1884" AND incumbent = "joseph mckenna" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 republican incumbent Joseph McKenna first elected?
### Context:
CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_name_28 WHERE party = "republican" AND incumbent = "joseph mckenna" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 capacity in grodno
### Context:
CREATE TABLE table_name_79 (capacity INTEGER, location VARCHAR) [/INST]
### Response:
SELECT MIN(capacity) FROM table_name_79 WHERE location = "grodno" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 January larger than 18 and a Record of 35–15–1?
### Context:
CREATE TABLE table_name_79 (score VARCHAR, january VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_79 WHERE january > 18 AND record = "35–15–1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many starts are associated with an oldsmobile engine, 21 finishes and before 2001?
### Context:
CREATE TABLE table_name_17 (start INTEGER, year VARCHAR, engine VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT SUM(start) FROM table_name_17 WHERE engine = "oldsmobile" AND finish = 21 AND year < 2001 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the finish associated with under 11 starts, a honda engine, before 2003?
### Context:
CREATE TABLE table_name_19 (finish INTEGER, year VARCHAR, start VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT AVG(finish) FROM table_name_19 WHERE start < 11 AND engine = "honda" 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:
what is the director of la ronde
### Context:
CREATE TABLE table_name_23 (director VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_23 WHERE original_title = "la ronde" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of people attending the game on May 30 with Colorado as the visitors?
### Context:
CREATE TABLE table_name_27 (attendance INTEGER, visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_27 WHERE visitor = "colorado" AND date = "may 30" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of people attending the game where Colorado was the home team?
### Context:
CREATE TABLE table_name_67 (attendance INTEGER, home VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_67 WHERE home = "colorado" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the game on May 26?
### Context:
CREATE TABLE table_name_24 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_24 WHERE date = "may 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 is the lowest round that Adam Wiesel was picked?
### Context:
CREATE TABLE table_name_9 (round INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_9 WHERE player = "adam wiesel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college, junior, or club team did defence player Rory Fitzpatrick play for?
### Context:
CREATE TABLE table_name_81 (college_junior_club_team VARCHAR, position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college_junior_club_team FROM table_name_81 WHERE position = "defence" AND player = "rory fitzpatrick" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score for 1911?
### Context:
CREATE TABLE table_name_10 (score VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_10 WHERE year = 1911 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what country has tiger woods
### Context:
CREATE TABLE table_name_47 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_47 WHERE player = "tiger woods" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what country has a score of 69-70-72=211?
### Context:
CREATE TABLE table_name_63 (place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_63 WHERE score = 69 - 70 - 72 = 211 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what player scored 69-72-68=209?
### Context:
CREATE TABLE table_name_66 (player VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_66 WHERE score = 69 - 72 - 68 = 209 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 largest number for earnings for tom watson when ranked more than 2?
### Context:
CREATE TABLE table_name_59 (earnings___ INTEGER, player VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(earnings___) AS $__ FROM table_name_59 WHERE player = "tom watson" AND rank > 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which 1st (m) is the lowest one that has a Nationality of aut, and Points larger than 273.5?
### Context:
CREATE TABLE table_name_28 (nationality VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MIN(1 AS st__m_) FROM table_name_28 WHERE nationality = "aut" AND points > 273.5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of wins associated with under 0 poles?
### Context:
CREATE TABLE table_name_36 (wins INTEGER, poles INTEGER) [/INST]
### Response:
SELECT MAX(wins) FROM table_name_36 WHERE poles < 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:
How many poles did he have in 2006 with under 2 wins?
### Context:
CREATE TABLE table_name_57 (poles VARCHAR, season VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT poles FROM table_name_57 WHERE season = "2006" AND wins < 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the fewest number of wins when he has 3 poles in 2010?
### Context:
CREATE TABLE table_name_51 (wins INTEGER, poles VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_51 WHERE poles = 3 AND season = "2010" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's listed for the 2012 that has a 2011 of 7.7% with a 2008 of 7.9%?
### Context:
CREATE TABLE table_name_88 (Id VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_88 WHERE 2011 = "7.7%" AND 2008 = "7.9%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is listed for the 2011 that has a 2005 of 4.2%?
### Context:
CREATE TABLE table_name_8 (Id VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_8 WHERE 2005 = "4.2%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is listed for the 2012 that has a 2011 of 28.9%?
### Context:
CREATE TABLE table_name_86 (Id VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_86 WHERE 2011 = "28.9%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is listed for the 2005 that has a 2012 of 4.2%?
### Context:
CREATE TABLE table_name_35 (Id VARCHAR) [/INST]
### Response:
SELECT 2005 FROM table_name_35 WHERE 2012 = "4.2%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is listed the Favorite Professional Sport that's got a 2005 of 17.1%?
### Context:
CREATE TABLE table_name_91 (favorite_professional_sport VARCHAR) [/INST]
### Response:
SELECT favorite_professional_sport FROM table_name_91 WHERE 2005 = "17.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 listed as the Favorite Professional Sport that has a 2008 of 8.9%?
### Context:
CREATE TABLE table_name_87 (favorite_professional_sport VARCHAR) [/INST]
### Response:
SELECT favorite_professional_sport FROM table_name_87 WHERE 2008 = "8.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 was the score of the game that led to a 79-77 record?
### Context:
CREATE TABLE table_name_64 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_64 WHERE record = "79-77" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record after the game in which Rosales (1-1) took the loss?
### Context:
CREATE TABLE table_name_95 (record VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_95 WHERE loss = "rosales (1-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 supercentenarians were born in Manitoba?
### Context:
CREATE TABLE table_name_52 (name VARCHAR, province_or_country_of_birth VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_52 WHERE province_or_country_of_birth = "manitoba" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 age as of February 1, 2014 for the supercentenarians born in the United States?
### Context:
CREATE TABLE table_name_23 (age_as_of_1_february_2014 VARCHAR, province_or_country_of_birth VARCHAR) [/INST]
### Response:
SELECT age_as_of_1_february_2014 FROM table_name_23 WHERE province_or_country_of_birth = "united states" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2010 Tournament has a 2001 of grand slam tournaments?
### Context:
CREATE TABLE table_name_36 (Id VARCHAR) [/INST]
### Response:
SELECT 2010 FROM table_name_36 WHERE 2001 = "grand slam tournaments" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which 2006 Tournament has a 2004, and a 2002 of not tier i?
### Context:
CREATE TABLE table_name_15 (Id VARCHAR) [/INST]
### Response:
SELECT 2006 FROM table_name_15 WHERE 2004 = "a" AND 2002 = "not tier i" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2008 Tournament has a 2007 of a and a 2010 of qf?
### Context:
CREATE TABLE table_name_46 (Id VARCHAR) [/INST]
### Response:
SELECT 2008 FROM table_name_46 WHERE 2007 = "a" AND 2010 = "qf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tournament has a 2002 of grand slam tournaments?
### Context:
CREATE TABLE table_name_82 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_82 WHERE 2002 = "grand slam tournaments" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which 2000 Tournament has a 2002 of not tier i, and a 2006 of 2r?
### Context:
CREATE TABLE table_name_57 (Id VARCHAR) [/INST]
### Response:
SELECT 2000 FROM table_name_57 WHERE 2002 = "not tier i" AND 2006 = "2r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 language's launch was in 2006 when then hanzi was 青海电视台藏语综合频道?
### Context:
CREATE TABLE table_name_7 (language VARCHAR, launch VARCHAR, hanzi VARCHAR) [/INST]
### Response:
SELECT language FROM table_name_7 WHERE launch = 2006 AND hanzi = "青海电视台藏语综合频道" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 hanzi's name is nmtv mongolian satellite television?
### Context:
CREATE TABLE table_name_84 (hanzi VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT hanzi FROM table_name_84 WHERE name = "nmtv mongolian satellite television" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 hanzi's launch is before 2009, when the language was tibetan, and the name was qinghai tibetian general channel?
### Context:
CREATE TABLE table_name_71 (hanzi VARCHAR, name VARCHAR, launch VARCHAR, language VARCHAR) [/INST]
### Response:
SELECT hanzi FROM table_name_71 WHERE launch < 2009 AND language = "tibetan" AND name = "qinghai tibetian general channel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a 1:24.365 Qual 2?
### Context:
CREATE TABLE table_name_60 (team VARCHAR, qual_2 VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_60 WHERE qual_2 = "1:24.365" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a 1:24.152 Best?
### Context:
CREATE TABLE table_name_51 (team VARCHAR, best VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_51 WHERE best = "1:24.152" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Robert Doornbos' Best?
### Context:
CREATE TABLE table_name_47 (best VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT best FROM table_name_47 WHERE name = "robert doornbos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Alex Figge's Best?
### Context:
CREATE TABLE table_name_47 (best VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT best FROM table_name_47 WHERE name = "alex figge" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a 1:25.602 Best?
### Context:
CREATE TABLE table_name_41 (team VARCHAR, best VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_41 WHERE best = "1:25.602" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Name of the person with a Qual 1 of 1:26.056?
### Context:
CREATE TABLE table_name_59 (name VARCHAR, qual_1 VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_59 WHERE qual_1 = "1:26.056" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 picks were there for the Bentley team?
### Context:
CREATE TABLE table_name_31 (pick VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT COUNT(pick) FROM table_name_31 WHERE school_club_team = "bentley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 largest round number for Dan Connor, the player?
### Context:
CREATE TABLE table_name_87 (round INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_87 WHERE player = "dan connor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 largest round number for the dt position when the pick number is bigger than 181?
### Context:
CREATE TABLE table_name_54 (round INTEGER, position VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_54 WHERE position = "dt" AND pick > 181 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 circuit is in italy
### Context:
CREATE TABLE table_name_25 (circuit VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_25 WHERE round = "italy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pick for clarence mason?
### Context:
CREATE TABLE table_name_59 (pick INTEGER, player VARCHAR) [/INST]
### Response:
SELECT AVG(pick) FROM table_name_59 WHERE player = "clarence mason" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 frequency for the city of Lamar, Colorado?
### Context:
CREATE TABLE table_name_37 (frequency_mhz INTEGER, city_of_license VARCHAR) [/INST]
### Response:
SELECT AVG(frequency_mhz) FROM table_name_37 WHERE city_of_license = "lamar, colorado" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ERP W for callsign K207BK?
### Context:
CREATE TABLE table_name_97 (erp_w INTEGER, call_sign VARCHAR) [/INST]
### Response:
SELECT AVG(erp_w) FROM table_name_97 WHERE call_sign = "k207bk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 callsign has ERP W of 99 and a frequency of greater than 88.7MHz?
### Context:
CREATE TABLE table_name_15 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR) [/INST]
### Response:
SELECT call_sign FROM table_name_15 WHERE frequency_mhz > 88.7 AND erp_w = 99 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has ERP W under 14 and a frequency over 93.7MHz?
### Context:
CREATE TABLE table_name_20 (city_of_license VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR) [/INST]
### Response:
SELECT city_of_license FROM table_name_20 WHERE erp_w < 14 AND frequency_mhz > 93.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 were the total number of field goals when there were 0 touchdowns and 2 extra points?
### Context:
CREATE TABLE table_name_80 (field_goals VARCHAR, touchdowns VARCHAR, extra_points VARCHAR) [/INST]
### Response:
SELECT COUNT(field_goals) FROM table_name_80 WHERE touchdowns = 0 AND extra_points = 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 field goals did Carter get when he had 0 extra points?
### Context:
CREATE TABLE table_name_14 (field_goals INTEGER, player VARCHAR, extra_points VARCHAR) [/INST]
### Response:
SELECT SUM(field_goals) FROM table_name_14 WHERE player = "carter" AND extra_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 is the highest amount of extra points someone got when they scored 28 points but had 0 field goals?
### Context:
CREATE TABLE table_name_20 (extra_points INTEGER, points VARCHAR, field_goals VARCHAR) [/INST]
### Response:
SELECT MAX(extra_points) FROM table_name_20 WHERE points = 28 AND field_goals < 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 average field goal someone has when they have 0 extra points but more than 5 touch downs?
### Context:
CREATE TABLE table_name_80 (field_goals INTEGER, extra_points VARCHAR, touchdowns VARCHAR) [/INST]
### Response:
SELECT AVG(field_goals) FROM table_name_80 WHERE extra_points > 0 AND touchdowns > 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest number of wins with more than 113 points in 4th rank?
### Context:
CREATE TABLE table_name_80 (wins INTEGER, points VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_80 WHERE points > 113 AND rank = "4th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wins had less than 91 points in 25th rank?
### Context:
CREATE TABLE table_name_44 (wins VARCHAR, points VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT wins FROM table_name_44 WHERE points < 91 AND rank = "25th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wins in 1992?
### Context:
CREATE TABLE table_name_52 (wins VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT wins FROM table_name_52 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:
How many wins occurred for 6th rank?
### Context:
CREATE TABLE table_name_31 (wins VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(wins) FROM table_name_31 WHERE rank = "6th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the constructor of the car driven by Heikki Kovalainen?
### Context:
CREATE TABLE table_name_39 (constructor VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_39 WHERE driver = "heikki kovalainen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Reg Season has a Division of 2?
### Context:
CREATE TABLE table_name_31 (reg_season VARCHAR, division VARCHAR) [/INST]
### Response:
SELECT reg_season FROM table_name_31 WHERE division = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Year is the highest one that has a Reg Season of 3rd, western, and a Division larger than 2?
### Context:
CREATE TABLE table_name_30 (year INTEGER, reg_season VARCHAR, division VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_30 WHERE reg_season = "3rd, western" AND division > 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which year is the lowest one when the playoffs did not qualify?
### Context:
CREATE TABLE table_name_93 (year INTEGER, playoffs VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_93 WHERE playoffs = "did not qualify" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Reg Season of 3rd, western?
### Context:
CREATE TABLE table_name_9 (year INTEGER, reg_season VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_9 WHERE reg_season = "3rd, western" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013?
### Context:
CREATE TABLE table_name_36 (division INTEGER, year VARCHAR, reg_season VARCHAR, playoffs VARCHAR) [/INST]
### Response:
SELECT AVG(division) FROM table_name_36 WHERE reg_season = "1st, western" AND playoffs = "champions" AND year < 2013 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 during the game that had more than 31,891 people in attendance?
### Context:
CREATE TABLE table_name_80 (opponent VARCHAR, attendance INTEGER) [/INST]
### Response:
SELECT opponent FROM table_name_80 WHERE attendance > 31 OFFSET 891 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance for the game before week 4 that was on october 16, 1955?
### Context:
CREATE TABLE table_name_97 (attendance INTEGER, date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_97 WHERE date = "october 16, 1955" AND week < 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:
Who was the opponent for the game on November 20, 1955?
### Context:
CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_35 WHERE date = "november 20, 1955" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of successful defenses in brandon, florida and a reign less than 1?
### Context:
CREATE TABLE table_name_13 (successful_defenses INTEGER, location VARCHAR, reign VARCHAR) [/INST]
### Response:
SELECT MAX(successful_defenses) FROM table_name_13 WHERE location = "brandon, florida" AND reign < 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 was the date of the game against Norway with a 1:1 result?
### Context:
CREATE TABLE table_name_31 (date VARCHAR, opponent VARCHAR, results¹ VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_31 WHERE opponent = "norway" AND results¹ = "1: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 type of game had a 0:0 result?
### Context:
CREATE TABLE table_name_17 (type_of_game VARCHAR, results¹ VARCHAR) [/INST]
### Response:
SELECT type_of_game FROM table_name_17 WHERE results¹ = "0: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 city held that game with a 5:2 result?
### Context:
CREATE TABLE table_name_5 (city VARCHAR, results¹ VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_5 WHERE results¹ = "5:2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the game that has a record of 1-2-1?
### Context:
CREATE TABLE table_name_29 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_29 WHERE record = "1-2-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 team's record in games against the Hartford Whalers?
### Context:
CREATE TABLE table_name_52 (record VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_52 WHERE opponent = "hartford whalers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Record on Week 13 at the Hoosier Dome?
### Context:
CREATE TABLE table_name_97 (record VARCHAR, game_site VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_97 WHERE game_site = "hoosier dome" AND week = 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Week on October 18, 1992?
### Context:
CREATE TABLE table_name_3 (week INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(week) FROM table_name_3 WHERE date = "october 18, 1992" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What loss has 16-6 as the record?
### Context:
CREATE TABLE table_name_25 (loss VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_25 WHERE record = "16-6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What loss has 4-2 as the record?
### Context:
CREATE TABLE table_name_73 (loss VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_73 WHERE record = "4-2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What attendance has astros as the opponent, and april 29 as the date?
### Context:
CREATE TABLE table_name_69 (attendance INTEGER, opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_69 WHERE opponent = "astros" AND 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:
Which Operator has a Width of 2.65 m, and a Type designation of m5000?
### Context:
CREATE TABLE table_name_13 (operator VARCHAR, width VARCHAR, type_designation VARCHAR) [/INST]
### Response:
SELECT operator FROM table_name_13 WHERE width = "2.65 m" AND type_designation = "m5000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Width has a Number of vehicles larger than 15, and a Type designation of k5000?
### Context:
CREATE TABLE table_name_88 (width VARCHAR, number_of_vehicles VARCHAR, type_designation VARCHAR) [/INST]
### Response:
SELECT width FROM table_name_88 WHERE number_of_vehicles > 15 AND type_designation = "k5000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Number of vehicles has a Type designation of u5-25 (bi-directional)?
### Context:
CREATE TABLE table_name_76 (number_of_vehicles VARCHAR, type_designation VARCHAR) [/INST]
### Response:
SELECT number_of_vehicles FROM table_name_76 WHERE type_designation = "u5-25 (bi-directional)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Province of leinster, and a County of fingal has which irish name?
### Context:
CREATE TABLE table_name_65 (irish_name VARCHAR, province VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT irish_name FROM table_name_65 WHERE province = "leinster" AND county = "fingal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Irish name of an dún (contae an dúin) has what county town?
### Context:
CREATE TABLE table_name_34 (county VARCHAR, irish_name VARCHAR) [/INST]
### Response:
SELECT county AS town FROM table_name_34 WHERE irish_name = "an dún (contae an dúin)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Most populous city/town of clonmel, and a Irish name of tiobraid árann (contae thiobraid árann) is which region?
### Context:
CREATE TABLE table_name_8 (region VARCHAR, most_populous_city_town VARCHAR, irish_name VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_8 WHERE most_populous_city_town = "clonmel" AND irish_name = "tiobraid árann (contae thiobraid árann)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Irish name of dún na ngall (contae dhún na ngall) has the most populous city/town?
### Context:
CREATE TABLE table_name_46 (most_populous_city_town VARCHAR, irish_name VARCHAR) [/INST]
### Response:
SELECT most_populous_city_town FROM table_name_46 WHERE irish_name = "dún na ngall (contae dhún na ngall)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 games for rubén limardo
### Context:
CREATE TABLE table_name_66 (games VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT games FROM table_name_66 WHERE name = "rubén limardo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sport for men's light flyweight with medal of gold
### Context:
CREATE TABLE table_name_75 (sport VARCHAR, medal VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT sport FROM table_name_75 WHERE medal = "gold" AND event = "men's light flyweight" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the name for men's featherweight and sport of weightlifting
### Context:
CREATE TABLE table_name_71 (name VARCHAR, event VARCHAR, sport VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_71 WHERE event = "men's featherweight" AND sport = "weightlifting" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.