text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Other has a Green of 0, and an Independent of 1, and a Labour smaller than 45, and a Control of labour lose to no overall control?
### Context:
CREATE TABLE table_name_90 (other VARCHAR, control VARCHAR, labour VARCHAR, green VARCHAR, independent VARCHAR) [/INST]
### Response:
SELECT other FROM table_name_90 WHERE green = 0 AND independent = 1 AND labour < 45 AND control = "labour lose to no overall control" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Social Democratic Party has a Green smaller than 0?
### Context:
CREATE TABLE table_name_10 (social_democratic_party INTEGER, green INTEGER) [/INST]
### Response:
SELECT AVG(social_democratic_party) FROM table_name_10 WHERE green < 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:
When the try bonus was 10 what was the losing bonus?
### Context:
CREATE TABLE table_name_78 (losing_bonus VARCHAR, try_bonus VARCHAR) [/INST]
### Response:
SELECT losing_bonus FROM table_name_78 WHERE try_bonus = "10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the losing bonus was 2 what was drawn score?
### Context:
CREATE TABLE table_name_97 (drawn VARCHAR, losing_bonus VARCHAR) [/INST]
### Response:
SELECT drawn FROM table_name_97 WHERE losing_bonus = "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:
If the try bonus was 5 what was the try against score?
### Context:
CREATE TABLE table_name_99 (tries_against VARCHAR, try_bonus VARCHAR) [/INST]
### Response:
SELECT tries_against FROM table_name_99 WHERE try_bonus = "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:
When the tries against is 90 how many points are there?
### Context:
CREATE TABLE table_name_92 (points VARCHAR, tries_against VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_92 WHERE tries_against = "90" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What club has tries against of 75?
### Context:
CREATE TABLE table_name_58 (club VARCHAR, tries_against VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_58 WHERE tries_against = "75" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 overall figures when duke was the college and the round was higher than 7?
### Context:
CREATE TABLE table_name_99 (overall INTEGER, college VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT SUM(overall) FROM table_name_99 WHERE college = "duke" AND round > 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 of the highest pick numbers had a round of less than 2?
### Context:
CREATE TABLE table_name_81 (pick__number INTEGER, round INTEGER) [/INST]
### Response:
SELECT MAX(pick__number) FROM table_name_81 WHERE round < 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 pick number had a round of less than 7, an overall of less than 127, and where the name was Robert Alford?
### Context:
CREATE TABLE table_name_82 (pick__number VARCHAR, name VARCHAR, round VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT pick__number FROM table_name_82 WHERE round < 7 AND overall < 127 AND name = "robert alford" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest overall figure had Robert Alford as a name and a round of more than 2?
### Context:
CREATE TABLE table_name_89 (overall INTEGER, name VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT MAX(overall) FROM table_name_89 WHERE name = "robert alford" AND round > 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 Game site has an Opponent of Miami Dolphins?
### Context:
CREATE TABLE table_name_90 (game_site VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_90 WHERE opponent = "miami dolphins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Lowest Attendance with a Game site of Riverfront Stadium?
### Context:
CREATE TABLE table_name_56 (attendance INTEGER, game_site VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_56 WHERE game_site = "riverfront stadium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the lowest Attendance for a Week of 2?
### Context:
CREATE TABLE table_name_3 (attendance INTEGER, week VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_3 WHERE week = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many bronze medals does South Korea have?
### Context:
CREATE TABLE table_name_20 (bronze VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT bronze FROM table_name_20 WHERE nation = "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:
What is the smallest number of total medals for Georgia with 0 silver and 1 bronze?
### Context:
CREATE TABLE table_name_87 (total INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_87 WHERE silver > 0 AND nation = "georgia" AND bronze < 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 lowest year that had foil team as the event at Melbourne?
### Context:
CREATE TABLE table_name_7 (year INTEGER, event VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_7 WHERE event = "foil team" AND venue = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number of years that the event was foil team and took place in Los Angeles?
### Context:
CREATE TABLE table_name_77 (year VARCHAR, venue VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_77 WHERE venue = "los angeles" AND event = "foil team" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position at the venue of lyon?
### Context:
CREATE TABLE table_name_71 (position VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_71 WHERE venue = "lyon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position for mauro at the world championships in 1985 during the foil individual event?
### Context:
CREATE TABLE table_name_41 (position VARCHAR, year VARCHAR, event VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_41 WHERE event = "foil individual" AND competition = "world championships" AND year = 1985 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 playoff status when the head coach was Brent Sutter, the finish was 4th central, and the points were 82?
### Context:
CREATE TABLE table_name_50 (playoffs VARCHAR, points VARCHAR, head_coach VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT playoffs FROM table_name_50 WHERE head_coach = "brent sutter" AND finish = "4th central" AND points = "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:
2001 of 2–4 was in which tournament?
### Context:
CREATE TABLE table_name_2 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_2 WHERE 2001 = "2–4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
2013 of 4–4 is involved in what 2006?
### Context:
CREATE TABLE table_name_59 (Id VARCHAR) [/INST]
### Response:
SELECT 2006 FROM table_name_59 WHERE 2013 = "4–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:
2007 of 1r is involved in what 2001?
### Context:
CREATE TABLE table_name_31 (Id VARCHAR) [/INST]
### Response:
SELECT 2001 FROM table_name_31 WHERE 2007 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
2007 of 8–4 is involved in what 2002?
### Context:
CREATE TABLE table_name_69 (Id VARCHAR) [/INST]
### Response:
SELECT 2002 FROM table_name_69 WHERE 2007 = "8–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:
2005 of 3r, and a 2000 of lq, and a 2002 of 3r is in what 2004?
### Context:
CREATE TABLE table_name_7 (Id VARCHAR) [/INST]
### Response:
SELECT 2004 FROM table_name_7 WHERE 2005 = "3r" AND 2000 = "lq" AND 2002 = "3r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
2006 of 10–4 is in which 2000?
### Context:
CREATE TABLE table_name_85 (Id VARCHAR) [/INST]
### Response:
SELECT 2000 FROM table_name_85 WHERE 2006 = "10–4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest number of drawn games when there are fewer than 4 points and more than 4 lost games?
### Context:
CREATE TABLE table_name_52 (drawn INTEGER, points VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT MIN(drawn) FROM table_name_52 WHERE points < 4 AND lost > 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of the points when there are fewer than 4 games?
### Context:
CREATE TABLE table_name_87 (points INTEGER, games INTEGER) [/INST]
### Response:
SELECT SUM(points) FROM table_name_87 WHERE games < 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 holds the lead role when Aanders Brorson is third?
### Context:
CREATE TABLE table_name_97 (lead VARCHAR, third VARCHAR) [/INST]
### Response:
SELECT lead FROM table_name_97 WHERE third = "aanders brorson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the role of skip when the lead is Dominik Greindl?
### Context:
CREATE TABLE table_name_69 (skip VARCHAR, lead VARCHAR) [/INST]
### Response:
SELECT skip FROM table_name_69 WHERE lead = "dominik greindl" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 second when Mikkel Krause is the third?
### Context:
CREATE TABLE table_name_18 (second VARCHAR, third VARCHAR) [/INST]
### Response:
SELECT second FROM table_name_18 WHERE third = "mikkel krause" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Skip when Alasdair Guthrie is the third?
### Context:
CREATE TABLE table_name_83 (skip VARCHAR, third VARCHAR) [/INST]
### Response:
SELECT skip FROM table_name_83 WHERE third = "alasdair guthrie" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Second when Michel Gribi is the lead?
### Context:
CREATE TABLE table_name_90 (second VARCHAR, lead VARCHAR) [/INST]
### Response:
SELECT second FROM table_name_90 WHERE lead = "michel gribi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position of the team with an against of 12, less than 11 points, more than 2 drawn, and more than 9 played?
### Context:
CREATE TABLE table_name_24 (position INTEGER, played VARCHAR, drawn VARCHAR, against VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MAX(position) FROM table_name_24 WHERE against = 12 AND points < 11 AND drawn > 2 AND played > 9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the difference of the team with 12 points?
### Context:
CREATE TABLE table_name_57 (difference VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT difference FROM table_name_57 WHERE points = 12 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against?
### Context:
CREATE TABLE table_name_51 (played INTEGER, against VARCHAR, position VARCHAR, lost VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT AVG(played) FROM table_name_51 WHERE lost = 3 AND points > 9 AND position = 5 AND against < 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:
Name the rating % for channel of anhui satellite tv
### Context:
CREATE TABLE table_name_73 (rating___percentage_ VARCHAR, channel VARCHAR) [/INST]
### Response:
SELECT rating___percentage_ FROM table_name_73 WHERE channel = "anhui satellite tv" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 share for anhui satellite tv
### Context:
CREATE TABLE table_name_42 (share___percentage_ INTEGER, channel VARCHAR) [/INST]
### Response:
SELECT MAX(share___percentage_) FROM table_name_42 WHERE channel = "anhui satellite tv" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the sum of rating % for cctv and position more than 7
### Context:
CREATE TABLE table_name_62 (rating___percentage_ INTEGER, owner VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT SUM(rating___percentage_) FROM table_name_62 WHERE owner = "cctv" AND position > 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:
Name the average rating % for shandong satellite tv and share % less than 1.74
### Context:
CREATE TABLE table_name_13 (rating___percentage_ INTEGER, channel VARCHAR, share___percentage_ VARCHAR) [/INST]
### Response:
SELECT AVG(rating___percentage_) FROM table_name_13 WHERE channel = "shandong satellite tv" AND share___percentage_ < 1.74 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was Montreal the visitor?
### Context:
CREATE TABLE table_name_50 (date VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_50 WHERE visitor = "montreal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the NY Rangers?
### Context:
CREATE TABLE table_name_92 (record VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_92 WHERE home = "ny rangers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the sum of round for pick of 169
### Context:
CREATE TABLE table_name_41 (round INTEGER, pick VARCHAR) [/INST]
### Response:
SELECT SUM(round) FROM table_name_41 WHERE pick = 169 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nationality for pick of 16
### Context:
CREATE TABLE table_name_12 (nationality VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_12 WHERE pick = 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Lead has a Skip of pavol pitonak?
### Context:
CREATE TABLE table_name_94 (lead VARCHAR, skip VARCHAR) [/INST]
### Response:
SELECT lead FROM table_name_94 WHERE skip = "pavol pitonak" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 skip in Wales?
### Context:
CREATE TABLE table_name_31 (skip VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT skip FROM table_name_31 WHERE nation = "wales" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Second of tomas pitonak?
### Context:
CREATE TABLE table_name_72 (nation VARCHAR, second VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_72 WHERE second = "tomas pitonak" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Second has a Third of athanassios pantios?
### Context:
CREATE TABLE table_name_56 (second VARCHAR, third VARCHAR) [/INST]
### Response:
SELECT second FROM table_name_56 WHERE third = "athanassios pantios" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where did Croatia lead?
### Context:
CREATE TABLE table_name_1 (lead VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT lead FROM table_name_1 WHERE nation = "croatia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Skip has a Third of carlo alessandro zisa?
### Context:
CREATE TABLE table_name_34 (skip VARCHAR, third VARCHAR) [/INST]
### Response:
SELECT skip FROM table_name_34 WHERE third = "carlo alessandro zisa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nationality of Shaun Sabol?
### Context:
CREATE TABLE table_name_94 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_94 WHERE player = "shaun sabol" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the position of United States' player Brett Lawrence?
### Context:
CREATE TABLE table_name_74 (position VARCHAR, nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_74 WHERE nationality = "united states" AND player = "brett lawrence" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Compression ratio has a (none) DX 10 Name and a FOURCC of dxt4?
### Context:
CREATE TABLE table_name_57 (compression_ratio VARCHAR, dx_10_name VARCHAR, fourcc VARCHAR) [/INST]
### Response:
SELECT compression_ratio FROM table_name_57 WHERE dx_10_name = "(none)" AND fourcc = "dxt4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue of the napa auto parts 200 race with a mrn radio?
### Context:
CREATE TABLE table_name_79 (venue VARCHAR, radio VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_79 WHERE radio = "mrn" AND race = "napa auto parts 200" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on 10/10/2008?
### Context:
CREATE TABLE table_name_3 (race VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_3 WHERE date = "10/10/2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 race has a distance of 201.44 miles?
### Context:
CREATE TABLE table_name_71 (race VARCHAR, distance VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_71 WHERE distance = "201.44 miles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 distance of the race at the Atlanta Motor Speedway?
### Context:
CREATE TABLE table_name_48 (distance VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT distance FROM table_name_48 WHERE venue = "atlanta motor speedway" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 distance of the Sam's town 250 race?
### Context:
CREATE TABLE table_name_24 (distance VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT distance FROM table_name_24 WHERE race = "sam's town 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 is the venue of teh carfax 250 race?
### Context:
CREATE TABLE table_name_62 (venue VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_62 WHERE race = "carfax 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 is the name of the event where Cornell-Penn played?
### Context:
CREATE TABLE table_name_33 (name VARCHAR, teams VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_33 WHERE teams = "cornell-penn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 many games were played for the series with the Sawhorse Dollar trophy?
### Context:
CREATE TABLE table_name_77 (games_played VARCHAR, trophy VARCHAR) [/INST]
### Response:
SELECT games_played FROM table_name_77 WHERE trophy = "sawhorse dollar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many games have Points smaller than 4, and an October smaller than 5?
### Context:
CREATE TABLE table_name_51 (game VARCHAR, points VARCHAR, october VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_name_51 WHERE points < 4 AND october < 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Game has a Record of 8–2–0, and Points larger than 16?
### Context:
CREATE TABLE table_name_43 (game INTEGER, record VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT SUM(game) FROM table_name_43 WHERE record = "8–2–0" AND points > 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 an October smaller than 15, and a Record of 2–0–0?
### Context:
CREATE TABLE table_name_73 (score VARCHAR, october VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_73 WHERE october < 15 AND record = "2–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:
How many games have November 7 as the date, and points greater than 17?
### Context:
CREATE TABLE table_name_31 (game VARCHAR, november VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_name_31 WHERE november = 7 AND points > 17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points have November of 15?
### Context:
CREATE TABLE table_name_45 (points INTEGER, november VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_45 WHERE november = 15 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the winning score for jim barnes and year of 1924
### Context:
CREATE TABLE table_name_24 (winning_score VARCHAR, runner_up VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT winning_score FROM table_name_24 WHERE runner_up = "jim barnes" AND year = 1924 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rider of the LCR Honda 600CC Team with a Time of 59’ 22.80?
### Context:
CREATE TABLE table_name_96 (rider VARCHAR, team VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_96 WHERE team = "lcr honda 600cc" AND time = "59’ 22.80" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rider had a Speed of 108.347mph and Time of 1:02.40.93?
### Context:
CREATE TABLE table_name_12 (rider VARCHAR, speed VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_12 WHERE speed = "108.347mph" AND time = "1:02.40.93" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rider had a Time of 1:01.50.57?
### Context:
CREATE TABLE table_name_46 (rider VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_46 WHERE time = "1:01.50.57" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that has june 24 as the date?
### Context:
CREATE TABLE table_name_14 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_14 WHERE date = "june 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:
What date has 2:59 as the time?
### Context:
CREATE TABLE table_name_95 (date VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_95 WHERE time = "2:59" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface when the tournament is manta, ecuador?
### Context:
CREATE TABLE table_name_95 (surface VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_95 WHERE tournament = "manta, ecuador" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface for the tournament of manta, ecuador?
### Context:
CREATE TABLE table_name_22 (surface VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_22 WHERE tournament = "manta, ecuador" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tournament is lesley joseph the opponent?
### Context:
CREATE TABLE table_name_11 (tournament VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_11 WHERE opponent = "lesley joseph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was marcos daniel the opponent?
### Context:
CREATE TABLE table_name_16 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_16 WHERE opponent = "marcos daniel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Copa Libertadores 1999 result for team grêmio, who did not qualify for Copa Conmebol 1999?
### Context:
CREATE TABLE table_name_23 (copa_libertadores_1999 VARCHAR, copa_conmebol_1999 VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT copa_libertadores_1999 FROM table_name_23 WHERE copa_conmebol_1999 = "did not qualify" AND team = "grêmio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 copa mercosur 1999 result for team grêmio, who did not qualify for the Copa Libertadores 1999 and Copa Conmebol 1999?
### Context:
CREATE TABLE table_name_51 (copa_mercosur_1999 VARCHAR, team VARCHAR, copa_libertadores_1999 VARCHAR, copa_conmebol_1999 VARCHAR) [/INST]
### Response:
SELECT copa_mercosur_1999 FROM table_name_51 WHERE copa_libertadores_1999 = "did not qualify" AND copa_conmebol_1999 = "did not qualify" AND team = "grêmio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 intercontinental cup 1999 result of the team who did not qualify for the Copa Libertadores 1999 and made quarterfinals in the Copa Mercosur 1999?
### Context:
CREATE TABLE table_name_48 (intercontinental_cup_1999 VARCHAR, copa_libertadores_1999 VARCHAR, copa_mercosur_1999 VARCHAR) [/INST]
### Response:
SELECT intercontinental_cup_1999 FROM table_name_48 WHERE copa_libertadores_1999 = "did not qualify" AND copa_mercosur_1999 = "quarterfinals" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Copa Libertadores 1999 result for team vasco, which made the group stage in the Copa Mercosur 1999?
### Context:
CREATE TABLE table_name_62 (copa_libertadores_1999 VARCHAR, copa_mercosur_1999 VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT copa_libertadores_1999 FROM table_name_62 WHERE copa_mercosur_1999 = "group stage" AND team = "vasco" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Intercontinental Cup 1999 result for the team with a Copa Conmebol 1999 result of runner-up?
### Context:
CREATE TABLE table_name_63 (intercontinental_cup_1999 VARCHAR, copa_conmebol_1999 VARCHAR) [/INST]
### Response:
SELECT intercontinental_cup_1999 FROM table_name_63 WHERE copa_conmebol_1999 = "runner-up" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Copa Conmebol 1999 result of team cruzeiro, which did not qualify for the Copa Libertadores 1999?
### Context:
CREATE TABLE table_name_4 (copa_conmebol_1999 VARCHAR, copa_libertadores_1999 VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT copa_conmebol_1999 FROM table_name_4 WHERE copa_libertadores_1999 = "did not qualify" AND team = "cruzeiro" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people attended the game that lost 2-4 and the date was higher than 15?
### Context:
CREATE TABLE table_name_60 (attendance VARCHAR, result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_60 WHERE result = "lost 2-4" AND date > 15 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What kind of competition had an attendance of more than 914 people and the Wightlink Raiders as an opponent?
### Context:
CREATE TABLE table_name_52 (competition VARCHAR, attendance VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_52 WHERE attendance > 914 AND opponent = "wightlink raiders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people attended the away league competition with a date of 22?
### Context:
CREATE TABLE table_name_61 (attendance VARCHAR, date VARCHAR, competition VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_61 WHERE competition = "league" AND venue = "away" AND date = 22 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Date of may 2?
### Context:
CREATE TABLE table_name_7 (series VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_7 WHERE date = "may 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 Game has a Series of bruins lead 3–1?
### Context:
CREATE TABLE table_name_30 (game INTEGER, series VARCHAR) [/INST]
### Response:
SELECT SUM(game) FROM table_name_30 WHERE series = "bruins lead 3–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 Opponent has a Series of bruins lead 2–1?
### Context:
CREATE TABLE table_name_91 (opponent VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_91 WHERE series = "bruins lead 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:
Which Date has a Game of 4?
### Context:
CREATE TABLE table_name_33 (date VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_33 WHERE game = 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Game has a Score of 3–6?
### Context:
CREATE TABLE table_name_19 (game INTEGER, score VARCHAR) [/INST]
### Response:
SELECT SUM(game) FROM table_name_19 WHERE score = "3–6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Rank of industrial and commercial bank of china 277,236?
### Context:
CREATE TABLE table_name_1 (rank VARCHAR, first_quarter VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_1 WHERE first_quarter = "industrial and commercial bank of china 277,236" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result of goal 4?
### Context:
CREATE TABLE table_name_11 (result VARCHAR, goal VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_11 WHERE goal = 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 is the player that is part of the team Shawinigan Dynamos (Qmjhl)?
### Context:
CREATE TABLE table_name_30 (player VARCHAR, college_junior_club_team__league_ VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_30 WHERE college_junior_club_team__league_ = "shawinigan dynamos (qmjhl)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Minnesota Junior Stars (Mjhl)?
### Context:
CREATE TABLE table_name_60 (round INTEGER, college_junior_club_team__league_ VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_60 WHERE college_junior_club_team__league_ = "minnesota junior stars (mjhl)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 woking compete?
### Context:
CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_92 WHERE opponent = "woking" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Opponent has an Attendance of 375?
### Context:
CREATE TABLE table_name_65 (opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_65 WHERE attendance = 375 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How much Attendance has an Opponent of oxford united?
### Context:
CREATE TABLE table_name_58 (attendance INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_58 WHERE opponent = "oxford united" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance has an Opponent of crawley town?
### Context:
CREATE TABLE table_name_78 (attendance VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_78 WHERE opponent = "crawley town" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Podiums where their total for the Series of Macau grand prix, as well as being a season before 2008?
### Context:
CREATE TABLE table_name_94 (podiums INTEGER, series VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT SUM(podiums) FROM table_name_94 WHERE series = "macau grand prix" AND season < 2008 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.