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 opponent has a loss of McCaskill (9-11)?
### Context:
CREATE TABLE table_name_10 (opponent VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_10 WHERE loss = "mccaskill (9-11)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engine type was used in the model 2.3 v5?
### Context:
CREATE TABLE table_name_45 (engine_type VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT engine_type FROM table_name_45 WHERE model = "2.3 v5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position of 3rd and a speed of 123.628?
### Context:
CREATE TABLE table_name_90 (race VARCHAR, position VARCHAR, speed VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_90 WHERE position = "3rd" AND speed = "123.628" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 replica of DNF?
### Context:
CREATE TABLE table_name_72 (race VARCHAR, replica VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_72 WHERE replica = "dnf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 replica of DNF?
### Context:
CREATE TABLE table_name_16 (race VARCHAR, replica VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_16 WHERE replica = "dnf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a speed of 123.220?
### Context:
CREATE TABLE table_name_35 (position VARCHAR, speed VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_35 WHERE speed = "123.220" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a time of 1:45:53:00?
### Context:
CREATE TABLE table_name_41 (position VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_41 WHERE time = "1:45:53:00" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position of 3rd and a speed of 126.452?
### Context:
CREATE TABLE table_name_66 (race VARCHAR, position VARCHAR, speed VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_66 WHERE position = "3rd" AND speed = "126.452" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Scrapped/Sold has a Name as rebuilt of trostan?
### Context:
CREATE TABLE table_name_11 (scrapped_sold VARCHAR, name_as_rebuilt VARCHAR) [/INST]
### Response:
SELECT scrapped_sold FROM table_name_11 WHERE name_as_rebuilt = "trostan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rebuilt has a Name as rebuilt of binevanagh?
### Context:
CREATE TABLE table_name_40 (rebuilt VARCHAR, name_as_rebuilt VARCHAR) [/INST]
### Response:
SELECT rebuilt FROM table_name_40 WHERE name_as_rebuilt = "binevanagh" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rebuilt has a Builder of derby, and a Name as rebuilt of ben madigan?
### Context:
CREATE TABLE table_name_64 (rebuilt VARCHAR, builder VARCHAR, name_as_rebuilt VARCHAR) [/INST]
### Response:
SELECT rebuilt FROM table_name_64 WHERE builder = "derby" AND name_as_rebuilt = "ben madigan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Scrapped/Sold has a Builder of derby, and a Name as rebuilt of ben madigan?
### Context:
CREATE TABLE table_name_74 (scrapped_sold VARCHAR, builder VARCHAR, name_as_rebuilt VARCHAR) [/INST]
### Response:
SELECT scrapped_sold FROM table_name_74 WHERE builder = "derby" AND name_as_rebuilt = "ben madigan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 to par number of the person who won in 2003?
### Context:
CREATE TABLE table_name_40 (to_par VARCHAR, year_s__won VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_40 WHERE year_s__won = "2003" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In which year(s) did the person who has a total of 291 win?
### Context:
CREATE TABLE table_name_69 (year_s__won VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT year_s__won FROM table_name_69 WHERE total = 291 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year(s) did the person with a total greater than 286 win?
### Context:
CREATE TABLE table_name_36 (year_s__won VARCHAR, total INTEGER) [/INST]
### Response:
SELECT year_s__won FROM table_name_36 WHERE total > 286 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Davis Love III's total?
### Context:
CREATE TABLE table_name_33 (total VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT total FROM table_name_33 WHERE player = "davis love iii" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place did Phil Mickelson finish with a total of 282?
### Context:
CREATE TABLE table_name_96 (finish VARCHAR, total VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_96 WHERE total = 282 AND player = "phil mickelson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 source of wealth of the person worth $17 billion?
### Context:
CREATE TABLE table_name_10 (source VARCHAR, net_worth_us$__billions_ VARCHAR) [/INST]
### Response:
SELECT source FROM table_name_10 WHERE net_worth_us$__billions_ = 17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What final date had 16 housemates?
### Context:
CREATE TABLE table_name_75 (final_date VARCHAR, housemates VARCHAR) [/INST]
### Response:
SELECT final_date FROM table_name_75 WHERE housemates = 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 scored is recorded on April 24?
### Context:
CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_92 WHERE date = "april 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:
In 1970, what entrant had a cosworth v8 engine?
### Context:
CREATE TABLE table_name_82 (entrant VARCHAR, engine VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_82 WHERE engine = "cosworth v8" AND year = 1970 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entrant in 1971?
### Context:
CREATE TABLE table_name_3 (entrant VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_3 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:
What was the total amount of points in 1978 with a Chassis of arrows fa1?
### Context:
CREATE TABLE table_name_98 (points INTEGER, year VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_98 WHERE year = 1978 AND chassis = "arrows fa1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue hosted the stan fox stakes?
### Context:
CREATE TABLE table_name_72 (venue VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_72 WHERE race = "stan fox stakes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was the game with the loss of Moore (0-1)?
### Context:
CREATE TABLE table_name_82 (date VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_82 WHERE loss = "moore (0-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 earliest year that Assists were less than 13 and minutes were under 91?
### Context:
CREATE TABLE table_name_47 (season INTEGER, assists VARCHAR, minutes VARCHAR) [/INST]
### Response:
SELECT MIN(season) FROM table_name_47 WHERE assists < 13 AND minutes < 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:
Which venues resulted in a draw?
### Context:
CREATE TABLE table_name_22 (venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_22 WHERE result = "draw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What dates had matches at the venue Sabina Park?
### Context:
CREATE TABLE table_name_50 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_50 WHERE venue = "sabina park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dates contained matches at the venue Bourda?
### Context:
CREATE TABLE table_name_32 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_32 WHERE venue = "bourda" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 cuts did he make in the tournament with 3 top 25s and under 13 events?
### Context:
CREATE TABLE table_name_44 (cuts_made INTEGER, top_25 VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT MAX(cuts_made) FROM table_name_44 WHERE top_25 = 3 AND events < 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 cuts made in the tournament he played 13 times?
### Context:
CREATE TABLE table_name_13 (cuts_made INTEGER, events INTEGER) [/INST]
### Response:
SELECT SUM(cuts_made) FROM table_name_13 WHERE events > 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 cuts did he make at the PGA championship in 3 events?
### Context:
CREATE TABLE table_name_36 (cuts_made INTEGER, tournament VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT MAX(cuts_made) FROM table_name_36 WHERE tournament = "pga championship" AND events > 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 highest number of points scored by minardi team usa in more than 13 laps?
### Context:
CREATE TABLE table_name_2 (points INTEGER, laps VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_2 WHERE laps > 13 AND team = "minardi team usa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is mario domínguez's average Grid?
### Context:
CREATE TABLE table_name_88 (grid INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_88 WHERE driver = "mario domínguez" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 plays on September 19?
### Context:
CREATE TABLE table_name_11 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_11 WHERE date = "september 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:
Name the call sign with frequency of 89.5
### Context:
CREATE TABLE table_name_70 (call_sign VARCHAR, frequency_mhz VARCHAR) [/INST]
### Response:
SELECT call_sign FROM table_name_70 WHERE frequency_mhz = 89.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:
Name the sum of frequency will call sign of k259aw
### Context:
CREATE TABLE table_name_67 (frequency_mhz INTEGER, call_sign VARCHAR) [/INST]
### Response:
SELECT SUM(frequency_mhz) FROM table_name_67 WHERE call_sign = "k259aw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total failures among rockets that had more than 3 successes, type ariane 5 and more than 0 partial failures?
### Context:
CREATE TABLE table_name_92 (failures VARCHAR, partial_failures VARCHAR, successes VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT COUNT(failures) FROM table_name_92 WHERE successes > 3 AND type = "ariane 5" AND partial_failures > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number of successes for rockets that have more than 3 launches, were based in Russia, are type soyuz and a rocket type of soyuz-u?
### Context:
CREATE TABLE table_name_92 (successes VARCHAR, rocket VARCHAR, type VARCHAR, launches VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT COUNT(successes) FROM table_name_92 WHERE launches > 3 AND country = "russia" AND type = "soyuz" AND rocket = "soyuz-u" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dates did the episodes air in the United States?
### Context:
CREATE TABLE table_name_6 (dates_aired VARCHAR, region_country VARCHAR) [/INST]
### Response:
SELECT dates_aired FROM table_name_6 WHERE region_country = "united states" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the star for the Vara network?
### Context:
CREATE TABLE table_name_61 (starring VARCHAR, network VARCHAR) [/INST]
### Response:
SELECT starring FROM table_name_61 WHERE network = "vara" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 local name for the episodes that aired in 1981?
### Context:
CREATE TABLE table_name_28 (local_name VARCHAR, dates_aired VARCHAR) [/INST]
### Response:
SELECT local_name FROM table_name_28 WHERE dates_aired = "1981" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 network in the United Kingdom which aired in 1985–1992?
### Context:
CREATE TABLE table_name_44 (network VARCHAR, region_country VARCHAR, dates_aired VARCHAR) [/INST]
### Response:
SELECT network FROM table_name_44 WHERE region_country = "united kingdom" AND dates_aired = "1985–1992" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many total appearances (league only) have a name of gavin dykes?
### Context:
CREATE TABLE table_name_88 (total_appearances_league_only_ VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT total_appearances_league_only_ FROM table_name_88 WHERE name = "gavin dykes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a ranking less than 7 with tony stenson as the name?
### Context:
CREATE TABLE table_name_13 (nationality VARCHAR, ranking VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_13 WHERE ranking < 7 AND name = "tony stenson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score that Bob Tway get when he placed t5?
### Context:
CREATE TABLE table_name_70 (score INTEGER, place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT MIN(score) FROM table_name_70 WHERE place = "t5" AND player = "bob tway" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 May 31?
### Context:
CREATE TABLE table_name_83 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_83 WHERE date = "may 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:
Who lost on May 31?
### Context:
CREATE TABLE table_name_94 (loss VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_94 WHERE date = "may 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:
For record 25-24, what is the sum of attendance?
### Context:
CREATE TABLE table_name_83 (attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_83 WHERE record = "25-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:
When was the record 27-25?
### Context:
CREATE TABLE table_name_64 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_64 WHERE record = "27-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:
Which engine is responsible for the USAC Championship Car?
### Context:
CREATE TABLE table_name_72 (engine VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_72 WHERE series = "usac championship car" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2nd leg score between Patronage Sainte-Anne and Asante Kotoko?
### Context:
CREATE TABLE table_name_27 (team_1 VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_name_27 WHERE team_1 = "asante kotoko" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 teams had an aggregate score of 3-4?
### Context:
CREATE TABLE table_name_61 (team_1 VARCHAR, agg VARCHAR) [/INST]
### Response:
SELECT team_1 FROM table_name_61 WHERE agg = "3-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 facility ID that's in Beckley?
### Context:
CREATE TABLE table_name_24 (facility_id INTEGER, city_of_license VARCHAR) [/INST]
### Response:
SELECT MIN(facility_id) FROM table_name_24 WHERE city_of_license = "beckley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What city has the A Class licence?
### Context:
CREATE TABLE table_name_20 (city_of_license VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT city_of_license FROM table_name_20 WHERE class = "a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 august 16, 1963, what is the velocity?
### Context:
CREATE TABLE table_name_56 (velocity__km_h_ INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(velocity__km_h_) FROM table_name_56 WHERE date = "august 16, 1963" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest game number that had a time of 2:44?
### Context:
CREATE TABLE table_name_78 (game INTEGER, time VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_78 WHERE time = "2:44" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest 3rd place for nation of perak fa
### Context:
CREATE TABLE table_name_65 (nation VARCHAR) [/INST]
### Response:
SELECT MAX(3 AS rd_place) FROM table_name_65 WHERE nation = "perak fa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gold medal count for the country with a total greater than 32 and more than 128 silvers?
### Context:
CREATE TABLE table_name_53 (gold INTEGER, total VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT AVG(gold) FROM table_name_53 WHERE total > 32 AND silver > 128 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 maximum number of silvers for a country with fewer than 12 golds and a total less than 8?
### Context:
CREATE TABLE table_name_72 (silver INTEGER, gold VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MAX(silver) FROM table_name_72 WHERE gold < 12 AND total < 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of wins for riders with fewer than 56 races and more than 0 titles?
### Context:
CREATE TABLE table_name_45 (wins VARCHAR, races VARCHAR, titles VARCHAR) [/INST]
### Response:
SELECT COUNT(wins) FROM table_name_45 WHERE races < 56 AND titles > 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:
Name the tournament for top-5 more thn 1 and top-25 of 13 with wins of 3
### Context:
CREATE TABLE table_name_4 (tournament VARCHAR, wins VARCHAR, top_5 VARCHAR, top_25 VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_4 WHERE top_5 > 1 AND top_25 = 13 AND wins = 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the average cuts for top-25 more than 13 and top-5 less than 11
### Context:
CREATE TABLE table_name_5 (cuts_made INTEGER, top_25 VARCHAR, top_5 VARCHAR) [/INST]
### Response:
SELECT AVG(cuts_made) FROM table_name_5 WHERE top_25 > 13 AND top_5 < 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the total number of wins with top-25 of 10 and events less than 26
### Context:
CREATE TABLE table_name_67 (wins VARCHAR, top_25 VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT COUNT(wins) FROM table_name_67 WHERE top_25 = 10 AND events < 26 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the sum of top-25 for pga championship and top-5 less than 1
### Context:
CREATE TABLE table_name_21 (top_25 INTEGER, tournament VARCHAR, top_5 VARCHAR) [/INST]
### Response:
SELECT SUM(top_25) FROM table_name_21 WHERE tournament = "pga championship" AND top_5 < 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 stage has a start of saint-girons in 1988?
### Context:
CREATE TABLE table_name_39 (stage VARCHAR, start VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT stage FROM table_name_39 WHERE start = "saint-girons" AND year = 1988 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 category was in 1964?
### Context:
CREATE TABLE table_name_14 (category VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_14 WHERE year = 1964 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
An artist of the Beatles with an issue date(s) of 19 September has what as the listed weeks on top?
### Context:
CREATE TABLE table_name_26 (weeks_on_top VARCHAR, artist VARCHAR, issue_date_s_ VARCHAR) [/INST]
### Response:
SELECT weeks_on_top FROM table_name_26 WHERE artist = "the beatles" AND issue_date_s_ = "19 september" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
With an issue date(s) of 12 September, what is in the column for Weeks on Top?
### Context:
CREATE TABLE table_name_96 (weeks_on_top VARCHAR, issue_date_s_ VARCHAR) [/INST]
### Response:
SELECT weeks_on_top FROM table_name_96 WHERE issue_date_s_ = "12 september" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Premier League Manager has an Adidas sponsor and a Newcastle United club?
### Context:
CREATE TABLE table_name_52 (manager VARCHAR, manufacturer VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT manager FROM table_name_52 WHERE manufacturer = "adidas" AND club = "newcastle 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 Manchester United captain is sponsored by Nike?
### Context:
CREATE TABLE table_name_54 (captain VARCHAR, manufacturer VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT captain FROM table_name_54 WHERE manufacturer = "nike" AND club = "manchester 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:
Who is Dean Whitehead's manager?
### Context:
CREATE TABLE table_name_92 (manager VARCHAR, captain VARCHAR) [/INST]
### Response:
SELECT manager FROM table_name_92 WHERE captain = "dean whitehead" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 club is Ledley King a captain?
### Context:
CREATE TABLE table_name_3 (club VARCHAR, captain VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_3 WHERE captain = "ledley king" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 captain of Middlesbrough?
### Context:
CREATE TABLE table_name_15 (captain VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT captain FROM table_name_15 WHERE club = "middlesbrough" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city of license with resolution of sd 480i and official website of telemundo.com
### Context:
CREATE TABLE table_name_34 (city_of_license VARCHAR, resolution VARCHAR, official_website VARCHAR) [/INST]
### Response:
SELECT city_of_license FROM table_name_34 WHERE resolution = "sd 480i" AND official_website = "telemundo.com" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dish for resolution of sd 480i and network of bvb
### Context:
CREATE TABLE table_name_8 (dish VARCHAR, resolution VARCHAR, network VARCHAR) [/INST]
### Response:
SELECT dish FROM table_name_8 WHERE resolution = "sd 480i" AND network = "bvb" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 resolution for dish of 5270
### Context:
CREATE TABLE table_name_36 (resolution VARCHAR, dish VARCHAR) [/INST]
### Response:
SELECT resolution FROM table_name_36 WHERE dish = "5270" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 official website which has dish of • and callsign of kvtv
### Context:
CREATE TABLE table_name_18 (official_website VARCHAR, dish VARCHAR, callsign VARCHAR) [/INST]
### Response:
SELECT official_website FROM table_name_18 WHERE dish = "•" AND callsign = "kvtv" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 resolution for ketftv.com and callsign of kldo-dt2
### Context:
CREATE TABLE table_name_87 (resolution VARCHAR, official_website VARCHAR, callsign VARCHAR) [/INST]
### Response:
SELECT resolution FROM table_name_87 WHERE official_website = "ketftv.com" AND callsign = "kldo-dt2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 resolution with dish of 8126
### Context:
CREATE TABLE table_name_91 (resolution VARCHAR, dish VARCHAR) [/INST]
### Response:
SELECT resolution FROM table_name_91 WHERE dish = "8126" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the highest points for the team of marlboro brm with brm p180 as the chassis?
### Context:
CREATE TABLE table_name_43 (points INTEGER, team VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_43 WHERE team = "marlboro brm" AND chassis = "brm p180" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chassis has marlboro brm as the team?
### Context:
CREATE TABLE table_name_89 (chassis VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_89 WHERE team = "marlboro brm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place did Jimmy Reece start from when he ranked 12?
### Context:
CREATE TABLE table_name_83 (start VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT start FROM table_name_83 WHERE rank = "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 place did Jimmy Reece finish in 1957?
### Context:
CREATE TABLE table_name_29 (finish VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_29 WHERE year = "1957" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Sydney that has Adelaide, Gold Coast, Melbourne, and Auckland are all yes?
### Context:
CREATE TABLE table_name_61 (sydney VARCHAR, auckland VARCHAR, melbourne VARCHAR, adelaide VARCHAR, gold_coast VARCHAR) [/INST]
### Response:
SELECT sydney FROM table_name_61 WHERE adelaide = "yes" AND gold_coast = "yes" AND melbourne = "yes" AND auckland = "yes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Melbourne with a No- Gold Coast
### Context:
CREATE TABLE table_name_67 (melbourne VARCHAR, gold_coast VARCHAR) [/INST]
### Response:
SELECT melbourne FROM table_name_67 WHERE gold_coast = "no" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the candidate with more than 2,211 votes?
### Context:
CREATE TABLE table_name_22 (rank VARCHAR, votes INTEGER) [/INST]
### Response:
SELECT rank FROM table_name_22 WHERE votes > 2 OFFSET 211 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What the since year of the player with a transfer fee of £ 75k?
### Context:
CREATE TABLE table_name_76 (since VARCHAR, transfer_fee VARCHAR) [/INST]
### Response:
SELECT since FROM table_name_76 WHERE transfer_fee = "£ 75k" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 since year for the player with more than 3 goals and a transfer fee of £400k?
### Context:
CREATE TABLE table_name_24 (since VARCHAR, goals VARCHAR, transfer_fee VARCHAR) [/INST]
### Response:
SELECT since FROM table_name_24 WHERE goals > 3 AND transfer_fee = "£400k" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the player with a transfer fee of £400k?
### Context:
CREATE TABLE table_name_99 (nat VARCHAR, transfer_fee VARCHAR) [/INST]
### Response:
SELECT nat FROM table_name_99 WHERE transfer_fee = "£400k" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals Sawyer has?
### Context:
CREATE TABLE table_name_46 (goals INTEGER, name VARCHAR) [/INST]
### Response:
SELECT AVG(goals) FROM table_name_46 WHERE name = "sawyer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were the goal conceded that had a lost greater than 8 and more than 17 points?
### Context:
CREATE TABLE table_name_19 (goals_conceded INTEGER, lost VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MAX(goals_conceded) FROM table_name_19 WHERE lost > 8 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:
For Once Municipal, what were the goals scored that had less than 27 points and greater than place 1?
### Context:
CREATE TABLE table_name_69 (goals_scored INTEGER, points VARCHAR, place VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT AVG(goals_scored) FROM table_name_69 WHERE place > 1 AND team = "once municipal" AND points < 27 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points were in a game that had a lost of 5, greater than place 2, and 27 goals conceded?
### Context:
CREATE TABLE table_name_85 (points VARCHAR, place VARCHAR, goals_conceded VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_85 WHERE goals_conceded = 27 AND lost = 5 AND place > 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest amount of goals scored that has more than 19 goal conceded and played less than 18?
### Context:
CREATE TABLE table_name_50 (goals_scored INTEGER, goals_conceded VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT MIN(goals_scored) FROM table_name_50 WHERE goals_conceded > 19 AND 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 are the number of goals conceded that has a played greater than 18?
### Context:
CREATE TABLE table_name_13 (goals_conceded VARCHAR, played INTEGER) [/INST]
### Response:
SELECT COUNT(goals_conceded) FROM table_name_13 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's the place that Once Municipal has a lost greater than 3?
### Context:
CREATE TABLE table_name_81 (place INTEGER, team VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT AVG(place) FROM table_name_81 WHERE team = "once municipal" AND lost > 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:
Give the Finish for years after 2007.
### Context:
CREATE TABLE table_name_42 (finish VARCHAR, year INTEGER) [/INST]
### Response:
SELECT finish FROM table_name_42 WHERE year > 2007 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Give the Finish for a Stage that is larger than 15
### Context:
CREATE TABLE table_name_44 (finish VARCHAR, stage INTEGER) [/INST]
### Response:
SELECT finish FROM table_name_44 WHERE stage > 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 start of an event in Catagory 2 of the year 1947.
### Context:
CREATE TABLE table_name_40 (start VARCHAR, category VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT start FROM table_name_40 WHERE category = "2" AND year = 1947 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.