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 torque does a 1905 cc capacity have?
### Context:
CREATE TABLE table_name_63 (torque VARCHAR, capacity VARCHAR) [/INST]
### Response:
SELECT torque FROM table_name_63 WHERE capacity = "1905 cc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 torque does 1.9 diesel with 1905 cc have?
### Context:
CREATE TABLE table_name_30 (torque VARCHAR, name VARCHAR, capacity VARCHAR) [/INST]
### Response:
SELECT torque FROM table_name_30 WHERE name = "1.9 diesel" AND capacity = "1905 cc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 torque does daewoo have?
### Context:
CREATE TABLE table_name_18 (torque VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT torque FROM table_name_18 WHERE type = "daewoo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Score of 3–4, and a Attendance larger than 34,609 happened on what date?
### Context:
CREATE TABLE table_name_39 (date VARCHAR, score VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_39 WHERE score = "3–4" AND attendance > 34 OFFSET 609 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Record of 12–15 happened on what date?
### Context:
CREATE TABLE table_name_85 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_85 WHERE record = "12–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:
Date of april 9 had what score?
### Context:
CREATE TABLE table_name_11 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_11 WHERE date = "april 9" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Record of 11–12 involved what average attendance figures?
### Context:
CREATE TABLE table_name_10 (attendance INTEGER, record VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_10 WHERE record = "11–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 predecessor has a district less than 11, 68th as the Congress, and may 1, 1923 as the date?
### Context:
CREATE TABLE table_name_54 (predecessor VARCHAR, date VARCHAR, district VARCHAR, congress VARCHAR) [/INST]
### Response:
SELECT predecessor FROM table_name_54 WHERE district < 11 AND congress = "68th" AND date = "may 1, 1923" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Hyper Transport version has 22.4 gb/s of Max. Aggregate bandwidth?
### Context:
CREATE TABLE table_name_51 (hypertransport_version VARCHAR, max_aggregate_bandwidth__bi_directional_ VARCHAR) [/INST]
### Response:
SELECT hypertransport_version FROM table_name_51 WHERE max_aggregate_bandwidth__bi_directional_ = "22.4 gb/s" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Max Aggregate bandwidth with a HyperTransport of 2?
### Context:
CREATE TABLE table_name_17 (max_aggregate_bandwidth__bi_directional_ VARCHAR, hypertransport_version VARCHAR) [/INST]
### Response:
SELECT max_aggregate_bandwidth__bi_directional_ FROM table_name_17 WHERE hypertransport_version = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opposing team during the game in Zagreb?
### Context:
CREATE TABLE table_name_80 (opponent VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_80 WHERE city = "zagreb" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The record of 35-31 has what score?
### Context:
CREATE TABLE table_name_52 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_52 WHERE record = "35-31" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Manufacturer has 1 lap and had an accident?
### Context:
CREATE TABLE table_name_69 (manufacturer VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT manufacturer FROM table_name_69 WHERE laps = 1 AND time_retired = "accident" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which rider has a Manufacturer of honda with a time of +44.814?
### Context:
CREATE TABLE table_name_23 (rider VARCHAR, manufacturer VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_23 WHERE manufacturer = "honda" AND time_retired = "+44.814" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grids have a time of +1:21.239 and more than 25 laps?
### Context:
CREATE TABLE table_name_39 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_39 WHERE time_retired = "+1:21.239" AND laps > 25 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average episode number on 19 March 1993 with Jim Sweeney as performer 1?
### Context:
CREATE TABLE table_name_29 (episode INTEGER, performer_1 VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT AVG(episode) FROM table_name_29 WHERE performer_1 = "jim sweeney" AND date = "19 march 1993" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 performer 2 of the episode on 9 April 1993 with Josie Lawrence as performer 4?
### Context:
CREATE TABLE table_name_83 (performer_2 VARCHAR, performer_4 VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT performer_2 FROM table_name_83 WHERE performer_4 = "josie lawrence" AND date = "9 april 1993" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the episode with Ryan Stiles as performer 2, Colin Mochrie as performer 3, and Tony Slattery as performer 4?
### Context:
CREATE TABLE table_name_26 (date VARCHAR, performer_4 VARCHAR, performer_2 VARCHAR, performer_3 VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_26 WHERE performer_2 = "ryan stiles" AND performer_3 = "colin mochrie" AND performer_4 = "tony slattery" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 performer 4 on episode 3, where Jim Sweeney was performer 1?
### Context:
CREATE TABLE table_name_86 (performer_4 VARCHAR, performer_1 VARCHAR, episode VARCHAR) [/INST]
### Response:
SELECT performer_4 FROM table_name_86 WHERE performer_1 = "jim sweeney" AND episode = 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the episode number where Jim Sweeney was performer 1 and Mike Mcshane was performer 4?
### Context:
CREATE TABLE table_name_25 (episode INTEGER, performer_1 VARCHAR, performer_4 VARCHAR) [/INST]
### Response:
SELECT SUM(episode) FROM table_name_25 WHERE performer_1 = "jim sweeney" AND performer_4 = "mike mcshane" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Wrestler has an Entered of 5, and a Pinned of mvp?
### Context:
CREATE TABLE table_name_23 (wrestler VARCHAR, entered VARCHAR, pinned VARCHAR) [/INST]
### Response:
SELECT wrestler FROM table_name_23 WHERE entered = 5 AND pinned = "mvp" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 route with the line color brown has the lowest number of stations served?
### Context:
CREATE TABLE table_name_39 (stations_served INTEGER, line_color VARCHAR) [/INST]
### Response:
SELECT MIN(stations_served) FROM table_name_39 WHERE line_color = "brown" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round is the highest one that has a College/Junior/Club Team (League) of torpedo yaroslavl (rus)?
### Context:
CREATE TABLE table_name_10 (round INTEGER, college_junior_club_team__league_ VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_10 WHERE college_junior_club_team__league_ = "torpedo yaroslavl (rus)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round has a Player of todd fedoruk?
### Context:
CREATE TABLE table_name_28 (round INTEGER, player VARCHAR) [/INST]
### Response:
SELECT SUM(round) FROM table_name_28 WHERE player = "todd fedoruk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Grid has a Time/Retired of +1 lap, and a Driver of sébastien bourdais, and Laps larger than 70?
### Context:
CREATE TABLE table_name_89 (grid VARCHAR, laps VARCHAR, time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_89 WHERE time_retired = "+1 lap" AND driver = "sébastien bourdais" AND laps > 70 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many Laps have a Driver of david coulthard, and a Grid smaller than 14?
### Context:
CREATE TABLE table_name_70 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_70 WHERE driver = "david coulthard" AND grid < 14 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many Laps have a Grid of 15?
### Context:
CREATE TABLE table_name_52 (laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_52 WHERE grid = 15 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Catalogno was #160 us?
### Context:
CREATE TABLE table_name_31 (catalogno VARCHAR, remark VARCHAR) [/INST]
### Response:
SELECT catalogno FROM table_name_31 WHERE remark = "#160 us" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title was released in 1971?
### Context:
CREATE TABLE table_name_54 (title VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_54 WHERE year = 1971 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Whati s the format for the catalogno of st 491?
### Context:
CREATE TABLE table_name_26 (format VARCHAR, catalogno VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_26 WHERE catalogno = "st 491" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year was remark #104 us?
### Context:
CREATE TABLE table_name_58 (year VARCHAR, remark VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_58 WHERE remark = "#104 us" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title had a remark of #21 us [riaa certified gold january 3, 1990]?
### Context:
CREATE TABLE table_name_61 (title VARCHAR, remark VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_61 WHERE remark = "#21 us [riaa certified gold january 3, 1990]" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 catalogno was in 1971 and had a remark of #27 us?
### Context:
CREATE TABLE table_name_31 (catalogno VARCHAR, year VARCHAR, remark VARCHAR) [/INST]
### Response:
SELECT catalogno FROM table_name_31 WHERE year = 1971 AND remark = "#27 us" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 AAAAA class has the school year of 1990-91?
### Context:
CREATE TABLE table_name_56 (class_aAAAA VARCHAR, school_year VARCHAR) [/INST]
### Response:
SELECT class_aAAAA FROM table_name_56 WHERE school_year = "1990-91" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 AAA class has a school year of 1989-90?
### Context:
CREATE TABLE table_name_50 (class_aAA VARCHAR, school_year VARCHAR) [/INST]
### Response:
SELECT class_aAA FROM table_name_50 WHERE school_year = "1989-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 AA class has a AAA class of commerce?
### Context:
CREATE TABLE table_name_46 (class_aA VARCHAR, class_aAA VARCHAR, commerce VARCHAR) [/INST]
### Response:
SELECT class_aA FROM table_name_46 WHERE class_aAA = commerce </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week for the game against baltimore colts with less than 41,062 in attendance?
### Context:
CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT AVG(week) FROM table_name_12 WHERE opponent = "baltimore colts" AND attendance < 41 OFFSET 062 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the average week for the gaime against the philadelphia eagles with less than 31,066 in attendance?
### Context:
CREATE TABLE table_name_14 (week INTEGER, opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT AVG(week) FROM table_name_14 WHERE opponent = "philadelphia eagles" AND attendance < 31 OFFSET 066 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance for the game after week 1 on November 12, 1961?
### Context:
CREATE TABLE table_name_27 (attendance INTEGER, week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_27 WHERE week > 1 AND date = "november 12, 1961" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result of the game on week 4?
### Context:
CREATE TABLE table_name_37 (result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_37 WHERE 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:
What is the lowest Round of joe patterson?
### Context:
CREATE TABLE table_name_79 (round INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_79 WHERE player = "joe patterson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which School/Club Team has a Round larger than 16?
### Context:
CREATE TABLE table_name_16 (school_club_team VARCHAR, round INTEGER) [/INST]
### Response:
SELECT school_club_team FROM table_name_16 WHERE round > 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:
What is listed as the highest Points that's got a Position that's smaller than 1?
### Context:
CREATE TABLE table_name_64 (points INTEGER, position INTEGER) [/INST]
### Response:
SELECT MAX(points) FROM table_name_64 WHERE position < 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 Draws average that has a Played that's smaller than 18?
### Context:
CREATE TABLE table_name_46 (draws INTEGER, played INTEGER) [/INST]
### Response:
SELECT AVG(draws) FROM table_name_46 WHERE played < 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Wins that has the Team of Olimpia and Draws that's smaller than 4?
### Context:
CREATE TABLE table_name_21 (wins INTEGER, team VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_21 WHERE team = "olimpia" AND draws < 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 highest Played that's for the Team of Cerro Porteño, with a Position that's larger than 1?
### Context:
CREATE TABLE table_name_59 (played INTEGER, team VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MAX(played) FROM table_name_59 WHERE team = "cerro porteño" AND position > 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 tournament included an opponent of Marinko Matosevic?
### Context:
CREATE TABLE table_name_74 (tournament VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_74 WHERE opponent = "marinko matosevic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent when the score was 6-3, 6-3?
### Context:
CREATE TABLE table_name_89 (opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_89 WHERE score = "6-3, 6-3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the Record that has the Home of ny islanders?
### Context:
CREATE TABLE table_name_26 (record VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_26 WHERE home = "ny islanders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the Record that has the Date of december 15?
### Context:
CREATE TABLE table_name_42 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_42 WHERE date = "december 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:
Can you tell me the Record that has the Home of detroit, and the Visitor of phoenix?
### Context:
CREATE TABLE table_name_59 (record VARCHAR, home VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_59 WHERE home = "detroit" AND visitor = "phoenix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the Date that has the Visitor of florida?
### Context:
CREATE TABLE table_name_84 (date VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_84 WHERE visitor = "florida" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which position had f/laps that was test driver?
### Context:
CREATE TABLE table_name_39 (position VARCHAR, f_laps VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_39 WHERE f_laps = "test driver" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 poles were there for the 8th position?
### Context:
CREATE TABLE table_name_47 (poles VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT poles FROM table_name_47 WHERE position = "8th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What race was there in the formula one series when there was a test driver?
### Context:
CREATE TABLE table_name_40 (races VARCHAR, series VARCHAR, poles VARCHAR) [/INST]
### Response:
SELECT races FROM table_name_40 WHERE series = "formula one" AND poles = "test driver" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Extra points 1 point has a Total Points smaller than 30, and Touchdowns (5 points) of 5?
### Context:
CREATE TABLE table_name_22 (extra_points_1_point INTEGER, total_points VARCHAR, touchdowns__5_points_ VARCHAR) [/INST]
### Response:
SELECT AVG(extra_points_1_point) FROM table_name_22 WHERE total_points < 30 AND touchdowns__5_points_ = 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:
How many Touchdowns (5 points) have an Extra points 1 point of 0, and a Field goals (5 points) larger than 0?
### Context:
CREATE TABLE table_name_50 (touchdowns__5_points_ VARCHAR, extra_points_1_point VARCHAR, field_goals__5_points_ VARCHAR) [/INST]
### Response:
SELECT COUNT(touchdowns__5_points_) FROM table_name_50 WHERE extra_points_1_point = 0 AND field_goals__5_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:
Which Extra points 1 point is the highest one that has a Total Points smaller than 8?
### Context:
CREATE TABLE table_name_59 (extra_points_1_point INTEGER, total_points INTEGER) [/INST]
### Response:
SELECT MAX(extra_points_1_point) FROM table_name_59 WHERE total_points < 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Extra points 1 point is the lowest one that has a Player of walter shaw?
### Context:
CREATE TABLE table_name_95 (extra_points_1_point INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(extra_points_1_point) FROM table_name_95 WHERE player = "walter shaw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 (5 points) have a Total Points of 123, and Touchdowns (5 points) larger than 13?
### Context:
CREATE TABLE table_name_59 (field_goals__5_points_ VARCHAR, total_points VARCHAR, touchdowns__5_points_ VARCHAR) [/INST]
### Response:
SELECT COUNT(field_goals__5_points_) FROM table_name_59 WHERE total_points = 123 AND touchdowns__5_points_ > 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:
How many people attended the game with parent recording the decision and a Record of 42–18–10?
### Context:
CREATE TABLE table_name_52 (attendance INTEGER, decision VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_52 WHERE decision = "parent" AND record = "42–18–10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the team's record when vancouver was at home?
### Context:
CREATE TABLE table_name_8 (record VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_8 WHERE home = "vancouver" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent on november 22, 1942
### Context:
CREATE TABLE table_name_6 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_6 WHERE date = "november 22, 1942" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What score did the Green Bay Packers get as visitor?
### Context:
CREATE TABLE table_name_8 (score VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_8 WHERE visitor = "green bay packers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On October 31 what team played at home?
### Context:
CREATE TABLE table_name_56 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_56 WHERE date = "october 31" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On December 5 what team played their home game?
### Context:
CREATE TABLE table_name_20 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_20 WHERE date = "december 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:
How many people attended the game on October 31?
### Context:
CREATE TABLE table_name_40 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_40 WHERE date = "october 31" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rob Nicholson?
### Context:
CREATE TABLE table_name_19 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_19 WHERE player = "rob nicholson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 or club team did Steve Jones play for?
### Context:
CREATE TABLE table_name_48 (college_junior_club_team__league_ VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college_junior_club_team__league_ FROM table_name_48 WHERE player = "steve jones" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Barry Duench?
### Context:
CREATE TABLE table_name_6 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_6 WHERE player = "barry duench" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Saskatoon Accelerators score on January 6, 2008?
### Context:
CREATE TABLE table_name_66 (score VARCHAR, home_team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_66 WHERE home_team = "saskatoon accelerators" AND date = "january 6, 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:
What was the score on April 6, 2008?
### Context:
CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_12 WHERE date = "april 6, 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 home team played on April 5, 2008?
### Context:
CREATE TABLE table_name_61 (home_team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_61 WHERE date = "april 5, 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 home team played on January 5, 2008?
### Context:
CREATE TABLE table_name_79 (home_team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_79 WHERE date = "january 5, 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:
What was the score at CN Centre on April 5, 2008?
### Context:
CREATE TABLE table_name_99 (score VARCHAR, stadium VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_99 WHERE stadium = "cn centre" AND date = "april 5, 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:
What was the score for Edmonton Drillers on January 6, 2008?
### Context:
CREATE TABLE table_name_88 (score VARCHAR, visiting_team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_88 WHERE visiting_team = "edmonton drillers" AND date = "january 6, 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:
How much Silver has a Nation of mexico, and a Total larger than 1?
### Context:
CREATE TABLE table_name_47 (silver INTEGER, nation VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT SUM(silver) FROM table_name_47 WHERE nation = "mexico" AND total > 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 much Bronze has a Gold larger than 0, and a Total smaller than 1?
### Context:
CREATE TABLE table_name_88 (bronze VARCHAR, gold VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT COUNT(bronze) FROM table_name_88 WHERE gold > 0 AND total < 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 much Bronze has a Nation of mexico, and a Total larger than 1?
### Context:
CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT SUM(bronze) FROM table_name_58 WHERE nation = "mexico" AND total > 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:
In which District(s) has a Democrat held office since 1998?
### Context:
CREATE TABLE table_name_12 (district VARCHAR, party VARCHAR, elected VARCHAR) [/INST]
### Response:
SELECT district FROM table_name_12 WHERE party = "democrat" AND elected > 1998 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rank is the Country of soviet union with a Total smaller than 19?
### Context:
CREATE TABLE table_name_94 (rank INTEGER, country VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_94 WHERE country = "soviet union" AND total < 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 is the lowest Rank of Denmark County with a Total smaller than 1?
### Context:
CREATE TABLE table_name_2 (rank INTEGER, country VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_2 WHERE country = "denmark" AND total < 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:
Who was the loser of the heavyweight division fight that lasted a time of 2:24?
### Context:
CREATE TABLE table_name_10 (loser VARCHAR, weight_division VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT loser FROM table_name_10 WHERE weight_division = "heavyweight" AND time = "2: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 was the weight division for the fight that ended in a TKO (strikes)?
### Context:
CREATE TABLE table_name_55 (weight_division VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT weight_division FROM table_name_55 WHERE method = "tko (strikes)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 loser of the fight against antonio silva?
### Context:
CREATE TABLE table_name_87 (loser VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT loser FROM table_name_87 WHERE winner = "antonio silva" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the average number of rounds in the fight where Tank Abbott lost?
### Context:
CREATE TABLE table_name_66 (round INTEGER, loser VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_66 WHERE loser = "tank abbott" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what Round was a Defensive Tackle Pick # less than 19?
### Context:
CREATE TABLE table_name_1 (round VARCHAR, position VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_1 WHERE position = "defensive tackle" AND pick__number < 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 is the Pick # with an Overall of 19?
### Context:
CREATE TABLE table_name_22 (pick__number INTEGER, overall VARCHAR) [/INST]
### Response:
SELECT MAX(pick__number) FROM table_name_22 WHERE overall = 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 is the event result for athlete Ali Ekranpour?
### Context:
CREATE TABLE table_name_71 (event VARCHAR, athlete VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_71 WHERE athlete = "ali ekranpour" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 final result for the 63.5 kg?
### Context:
CREATE TABLE table_name_73 (final VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT final FROM table_name_73 WHERE event = "63.5 kg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of the tournament in Scotland with a score of 270 (–18)?
### Context:
CREATE TABLE table_name_71 (date VARCHAR, score VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_71 WHERE score = "270 (–18)" AND location = "scotland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the tournament won by Hale Irwin (19)?
### Context:
CREATE TABLE table_name_93 (location VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_93 WHERE winner = "hale irwin (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:
How much is vinculum when the parentheses are 0.(81)?
### Context:
CREATE TABLE table_name_72 (vinculum VARCHAR, parentheses VARCHAR) [/INST]
### Response:
SELECT vinculum FROM table_name_72 WHERE parentheses = "0.(81)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fraction has a value for dots of 0.\dot{3}?
### Context:
CREATE TABLE table_name_85 (fraction VARCHAR, dots VARCHAR) [/INST]
### Response:
SELECT fraction FROM table_name_85 WHERE dots = "0.\dot{3}" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the dot value when the ellipsis is 0.012345679…?
### Context:
CREATE TABLE table_name_29 (dots VARCHAR, ellipsis VARCHAR) [/INST]
### Response:
SELECT dots FROM table_name_29 WHERE ellipsis = "0.012345679…" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fraction has parentheses of 0.(3)?
### Context:
CREATE TABLE table_name_58 (fraction VARCHAR, parentheses VARCHAR) [/INST]
### Response:
SELECT fraction FROM table_name_58 WHERE parentheses = "0.(3)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the value for parentheses with a dots value of 0.\dot{6}?
### Context:
CREATE TABLE table_name_91 (parentheses VARCHAR, dots VARCHAR) [/INST]
### Response:
SELECT parentheses FROM table_name_91 WHERE dots = "0.\dot{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 value of vinculum for parentheses of 0.(6)?
### Context:
CREATE TABLE table_name_13 (vinculum VARCHAR, parentheses VARCHAR) [/INST]
### Response:
SELECT vinculum FROM table_name_13 WHERE parentheses = "0.(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:
When was the score 7-1?
### Context:
CREATE TABLE table_name_73 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_73 WHERE score = "7-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 loss when the score was 7-1?
### Context:
CREATE TABLE table_name_26 (loss VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_26 WHERE score = "7-1" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.