text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the Independent Socialist candidate who ran against the Liberal candidate Edward Goodell?
### Context:
CREATE TABLE table_name_75 (independent_socialist_ticket VARCHAR, liberal_ticket VARCHAR) [/INST]
### Response:
SELECT independent_socialist_ticket FROM table_name_75 WHERE liberal_ticket = "edward goodell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Att has a Time of 2:14?
### Context:
CREATE TABLE table_name_75 (att VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT att FROM table_name_75 WHERE time = "2: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:
when is Record of 66-95?
### Context:
CREATE TABLE table_name_31 (time VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_31 WHERE record = "66-95" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Opponent has a Record of 65-95?
### Context:
CREATE TABLE table_name_12 (opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_12 WHERE record = "65-95" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that has ernie els as the player?
### Context:
CREATE TABLE table_name_43 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_43 WHERE player = "ernie els" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What player has money of (£) 159,500, and france is the country?
### Context:
CREATE TABLE table_name_99 (player VARCHAR, money___£__ VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_99 WHERE money___£__ = "159,500" AND country = "france" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What player has 69-70-68-73=280 as the score?
### Context:
CREATE TABLE table_name_52 (player VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_52 WHERE score = 69 - 70 - 68 - 73 = 280 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year that has a win less than 1, yamaha as the team, with points greater than 2?
### Context:
CREATE TABLE table_name_30 (year INTEGER, points VARCHAR, wins VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_30 WHERE wins < 1 AND team = "yamaha" AND points > 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest wins that has 350cc as the class, yamaha for the team, with points less than 37, and a year after 1979?
### Context:
CREATE TABLE table_name_7 (wins INTEGER, year VARCHAR, points VARCHAR, class VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT MAX(wins) FROM table_name_7 WHERE class = "350cc" AND team = "yamaha" AND points < 37 AND year > 1979 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points have 500cc for the class, a win greater than 0, with a year after 1974?
### Context:
CREATE TABLE table_name_77 (points INTEGER, year VARCHAR, class VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_77 WHERE class = "500cc" AND wins > 0 AND year > 1974 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many wins have a year after 1976, and 350cc as the class?
### Context:
CREATE TABLE table_name_21 (wins INTEGER, year VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT SUM(wins) FROM table_name_21 WHERE year > 1976 AND class = "350cc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 San Jose wins have an LA goals larger than 6, and an LA wins smaller than 21?
### Context:
CREATE TABLE table_name_43 (san_jose_wins VARCHAR, la_goals VARCHAR, la_wins VARCHAR) [/INST]
### Response:
SELECT COUNT(san_jose_wins) FROM table_name_43 WHERE la_goals > 6 AND la_wins < 21 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 San Jose goals have a San Jose wins smaller than 0?
### Context:
CREATE TABLE table_name_28 (san_jose_goals INTEGER, san_jose_wins INTEGER) [/INST]
### Response:
SELECT MIN(san_jose_goals) FROM table_name_28 WHERE san_jose_wins < 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 most april with record of 38-33-10
### Context:
CREATE TABLE table_name_19 (april INTEGER, record VARCHAR) [/INST]
### Response:
SELECT MAX(april) FROM table_name_19 WHERE record = "38-33-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:
Name the opponent with record of 38-34-10
### Context:
CREATE TABLE table_name_97 (opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_97 WHERE record = "38-34-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:
Name the total number of April for game more than 81 and reord of 38-33-10
### Context:
CREATE TABLE table_name_46 (april VARCHAR, record VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT COUNT(april) FROM table_name_46 WHERE record = "38-33-10" AND game > 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 series was on may 14
### Context:
CREATE TABLE table_name_53 (series VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_53 WHERE date = "may 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:
What is the to par that has england as the country, with 66 as a score?
### Context:
CREATE TABLE table_name_95 (to_par VARCHAR, country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_95 WHERE country = "england" AND score = 66 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country has a score less than 68, and paul casey as the player?
### Context:
CREATE TABLE table_name_95 (country VARCHAR, score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_95 WHERE score < 68 AND player = "paul casey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has alastair forsyth as the player?
### Context:
CREATE TABLE table_name_28 (score INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(score) FROM table_name_28 WHERE player = "alastair forsyth" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 scores have paul casey as a player?
### Context:
CREATE TABLE table_name_87 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(score) FROM table_name_87 WHERE player = "paul casey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 owns the item that was a T326 before conversion and re-entered service on 11 September 1985?
### Context:
CREATE TABLE table_name_42 (owner VARCHAR, re_entered_service__p_ VARCHAR, pre_conversion VARCHAR) [/INST]
### Response:
SELECT owner FROM table_name_42 WHERE re_entered_service__p_ = "11 september 1985" AND pre_conversion = "t326" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date did the T328 that entered service on 18 June 1956 re-enter service?
### Context:
CREATE TABLE table_name_22 (re_entered_service__p_ VARCHAR, entered_service__t_ VARCHAR, pre_conversion VARCHAR) [/INST]
### Response:
SELECT re_entered_service__p_ FROM table_name_22 WHERE entered_service__t_ = "18 june 1956" AND pre_conversion = "t328" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which of V/Line Passenger's pre-conversions re-entered service on 23 November 1984?
### Context:
CREATE TABLE table_name_16 (pre_conversion VARCHAR, owner VARCHAR, re_entered_service__p_ VARCHAR) [/INST]
### Response:
SELECT pre_conversion FROM table_name_16 WHERE owner = "v/line passenger" AND re_entered_service__p_ = "23 november 1984" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who owns the locomotive that entered service on 30 October 1956?
### Context:
CREATE TABLE table_name_80 (owner VARCHAR, entered_service__t_ VARCHAR) [/INST]
### Response:
SELECT owner FROM table_name_80 WHERE entered_service__t_ = "30 october 1956" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the game when the record was 50-85?
### Context:
CREATE TABLE table_name_73 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_73 WHERE record = "50-85" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the game when the record was 46-84?
### Context:
CREATE TABLE table_name_65 (loss VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_65 WHERE record = "46-84" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record at the game with a loss of Cook (14–7)?
### Context:
CREATE TABLE table_name_61 (record VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_61 WHERE loss = "cook (14–7)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What album is 4:53 long?
### Context:
CREATE TABLE table_name_74 (album VARCHAR, length VARCHAR) [/INST]
### Response:
SELECT album FROM table_name_74 WHERE length = "4:53" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1989 has a 1986 of 99?
### Context:
CREATE TABLE table_name_42 (Id VARCHAR) [/INST]
### Response:
SELECT 1989 FROM table_name_42 WHERE 1986 = "99" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which 1983 has a Tournament of wimbledon?
### Context:
CREATE TABLE table_name_2 (tournament VARCHAR) [/INST]
### Response:
SELECT 1983 FROM table_name_2 WHERE tournament = "wimbledon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Tournament has A in 1987?
### Context:
CREATE TABLE table_name_11 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_11 WHERE 1987 = "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:
Which 1988 has a 1985 of 2r?
### Context:
CREATE TABLE table_name_54 (Id VARCHAR) [/INST]
### Response:
SELECT 1988 FROM table_name_54 WHERE 1985 = "2r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which 1988 has a 1982 of 104?
### Context:
CREATE TABLE table_name_46 (Id VARCHAR) [/INST]
### Response:
SELECT 1988 FROM table_name_46 WHERE 1982 = "104" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Tournament has a 1984 of 1r?
### Context:
CREATE TABLE table_name_26 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_26 WHERE 1984 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Release date of 2008 q3 has what release price?
### Context:
CREATE TABLE table_name_69 (release_price___usd__ VARCHAR, release_date VARCHAR) [/INST]
### Response:
SELECT release_price___usd__ FROM table_name_69 WHERE release_date = "2008 q3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Frequency of 1.2 ghz, and a Release price ( USD ) of $70 is what socket?
### Context:
CREATE TABLE table_name_91 (socket VARCHAR, frequency VARCHAR, release_price___usd__ VARCHAR) [/INST]
### Response:
SELECT socket FROM table_name_91 WHERE frequency = "1.2 ghz" AND release_price___usd__ = "$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:
Socket of fcbga1088, and a Voltage of 1v, and a Part number(s) of nu80579ez600cnu80579ez600ct is what mult?
### Context:
CREATE TABLE table_name_3 (mult VARCHAR, part_number_s_ VARCHAR, socket VARCHAR, voltage VARCHAR) [/INST]
### Response:
SELECT mult FROM table_name_3 WHERE socket = "fcbga1088" AND voltage = "1v" AND part_number_s_ = "nu80579ez600cnu80579ez600ct" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Spec number of slj6d(b1)slj6f(b1) has what mult.?
### Context:
CREATE TABLE table_name_85 (mult VARCHAR, sspec_number VARCHAR) [/INST]
### Response:
SELECT mult FROM table_name_85 WHERE sspec_number = "slj6d(b1)slj6f(b1)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Socket of without quickassist has what release price?
### Context:
CREATE TABLE table_name_63 (release_price___usd__ VARCHAR, socket VARCHAR) [/INST]
### Response:
SELECT release_price___usd__ FROM table_name_63 WHERE socket = "without quickassist" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Release date of 2008 q3, and a Part number(s) of nu80579ez009c has what Release price ( USD )?
### Context:
CREATE TABLE table_name_3 (release_price___usd__ VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR) [/INST]
### Response:
SELECT release_price___usd__ FROM table_name_3 WHERE release_date = "2008 q3" AND part_number_s_ = "nu80579ez009c" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Hong Kong value with a 0 Brisbane value and a greater than 0 Kuala Lumpur value?
### Context:
CREATE TABLE table_name_52 (hong_kong INTEGER, brisbane VARCHAR, kuala_lumpur VARCHAR) [/INST]
### Response:
SELECT MIN(hong_kong) FROM table_name_52 WHERE brisbane = 0 AND kuala_lumpur > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest Kuala Lumpur value with a Durban value less than 1 and a Mar Del Plata value greater than 0?
### Context:
CREATE TABLE table_name_82 (kuala_lumpur INTEGER, durban VARCHAR, mar_del_plata VARCHAR) [/INST]
### Response:
SELECT MAX(kuala_lumpur) FROM table_name_82 WHERE durban < 1 AND mar_del_plata > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest New Zealand value with a Hong Kong value less than 0?
### Context:
CREATE TABLE table_name_47 (new_zealand INTEGER, hong_kong INTEGER) [/INST]
### Response:
SELECT MAX(new_zealand) FROM table_name_47 WHERE hong_kong < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Singapore value with a London value less than 0?
### Context:
CREATE TABLE table_name_80 (singapore INTEGER, london INTEGER) [/INST]
### Response:
SELECT AVG(singapore) FROM table_name_80 WHERE london < 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 position was picked for Canada on Pick 8?
### Context:
CREATE TABLE table_name_61 (position VARCHAR, country VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_61 WHERE country = "canada" AND pick = "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 position that is shown for 2011?
### Context:
CREATE TABLE table_name_41 (position VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_41 WHERE year = 2011 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what language is seethaiah in
### Context:
CREATE TABLE table_name_27 (language VARCHAR, film_name VARCHAR) [/INST]
### Response:
SELECT language FROM table_name_27 WHERE film_name = "seethaiah" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Producer has a Role of rizzette?
### Context:
CREATE TABLE table_name_74 (producer VARCHAR, role VARCHAR) [/INST]
### Response:
SELECT producer FROM table_name_74 WHERE role = "rizzette" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Title has a Director of rowell santiago?
### Context:
CREATE TABLE table_name_39 (title VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_39 WHERE director = "rowell santiago" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Year has a Producer of viva films, and a Title of magkapatid?
### Context:
CREATE TABLE table_name_41 (year VARCHAR, producer VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_41 WHERE producer = "viva films" AND title = "magkapatid" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Director has a Role of melissa?
### Context:
CREATE TABLE table_name_80 (director VARCHAR, role VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_80 WHERE role = "melissa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1990-91 has an average number of 1.035?
### Context:
CREATE TABLE table_name_34 (average VARCHAR) [/INST]
### Response:
SELECT 1990 AS _91 FROM table_name_34 WHERE average = 1.035 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 results has a week larger than 13?
### Context:
CREATE TABLE table_name_90 (result VARCHAR, week INTEGER) [/INST]
### Response:
SELECT result FROM table_name_90 WHERE week > 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What results has a week smaller than 2?
### Context:
CREATE TABLE table_name_79 (result VARCHAR, week INTEGER) [/INST]
### Response:
SELECT result FROM table_name_79 WHERE week < 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score for game number 30?
### Context:
CREATE TABLE table_name_71 (score VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_71 WHERE game = 30 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum for the game with a score of 103–126?
### Context:
CREATE TABLE table_name_91 (game INTEGER, score VARCHAR) [/INST]
### Response:
SELECT SUM(game) FROM table_name_91 WHERE score = "103–126" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game number that has a Record of 3–33?
### Context:
CREATE TABLE table_name_93 (game INTEGER, record VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_93 WHERE record = "3–33" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was on february 21
### Context:
CREATE TABLE table_name_18 (score VARCHAR, february VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_18 WHERE february = 21 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 from the Ohio State University (NCAA) Team?
### Context:
CREATE TABLE table_name_20 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_20 WHERE college_junior_club_team__league_ = "ohio state university (ncaa)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Kitchener Rangers (OHA)?
### Context:
CREATE TABLE table_name_97 (round INTEGER, college_junior_club_team__league_ VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_97 WHERE college_junior_club_team__league_ = "kitchener rangers (oha)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the position of Pierre Daigneault?
### Context:
CREATE TABLE table_name_58 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_58 WHERE player = "pierre daigneault" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2006 value with a 2010 value of 417.9 and a 2011 value greater than 426.7?
### Context:
CREATE TABLE table_name_26 (Id VARCHAR) [/INST]
### Response:
SELECT AVG(2006) FROM table_name_26 WHERE 2010 = 417.9 AND 2011 > 426.7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the 2011 total with a 2008 value greater than 346.5, a 2009 value of 392, and a 2010 value bigger than 354.6?
### Context:
CREATE TABLE table_name_45 (Id VARCHAR) [/INST]
### Response:
SELECT COUNT(2011) FROM table_name_45 WHERE 2008 > 346.5 AND 2009 = 392 AND 2010 > 354.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 total 2008 value with a 2006 value greater than 322.7, a 353.9 in 2011, and a 2009 less than 392?
### Context:
CREATE TABLE table_name_53 (Id VARCHAR) [/INST]
### Response:
SELECT COUNT(2008) FROM table_name_53 WHERE 2006 > 322.7 AND 2011 = 353.9 AND 2009 < 392 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2009 value with a 2006 value smaller than 280.4, a 2007 less than 2.2, and a 2011 less than 3.5?
### Context:
CREATE TABLE table_name_10 (Id VARCHAR) [/INST]
### Response:
SELECT MAX(2009) FROM table_name_10 WHERE 2006 < 280.4 AND 2007 < 2.2 AND 2010 < 3.5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average 2007 value with a 2009 value greater than 2.8, a 4.9 in 2010, and a 2006 less than 2.5?
### Context:
CREATE TABLE table_name_19 (Id VARCHAR) [/INST]
### Response:
SELECT AVG(2007) FROM table_name_19 WHERE 2009 > 2.8 AND 2010 = 4.9 AND 2006 < 2.5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the 2006 total with a 2010 value greater than 417.9?
### Context:
CREATE TABLE table_name_95 (Id VARCHAR) [/INST]
### Response:
SELECT COUNT(2006) FROM table_name_95 WHERE 2010 > 417.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:
when has an Opponent of @ philadelphia phillies and an Attendance of 20,072?
### Context:
CREATE TABLE table_name_19 (date VARCHAR, opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_19 WHERE opponent = "@ philadelphia phillies" AND attendance = "20,072" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is on april 28?
### Context:
CREATE TABLE table_name_19 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_19 WHERE date = "april 28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Record has an Attendance of 24,597?
### Context:
CREATE TABLE table_name_62 (record VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_62 WHERE attendance = "24,597" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Record has a Loss of o'connor (0-1)?
### Context:
CREATE TABLE table_name_44 (record VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_44 WHERE loss = "o'connor (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:
which attendance has a Loss of drese (0-2)?
### Context:
CREATE TABLE table_name_24 (attendance VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_24 WHERE loss = "drese (0-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 highest 2nd in (m) that has a Rank more than 2 and Points more than 249.3
### Context:
CREATE TABLE table_name_14 (rank VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MAX(2 AS nd__m_) FROM table_name_14 WHERE rank > 2 AND points > 249.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 first date of election for the incumbent that was re-elected in the South Carolina 1 district?
### Context:
CREATE TABLE table_name_45 (first_elected VARCHAR, result VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_name_45 WHERE result = "re-elected" AND district = "south carolina 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 incumbent who was first elected in 1876?
### Context:
CREATE TABLE table_name_43 (incumbent VARCHAR, first_elected VARCHAR) [/INST]
### Response:
SELECT incumbent FROM table_name_43 WHERE first_elected = "1876" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Democratic incumbent in the South Carolina 5 District?
### Context:
CREATE TABLE table_name_84 (incumbent VARCHAR, party VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT incumbent FROM table_name_84 WHERE party = "democratic" AND district = "south carolina 5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the first elected date for the incumbent in the South Carolina 4 district?
### Context:
CREATE TABLE table_name_98 (first_elected VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_name_98 WHERE district = "south carolina 4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which area has a telephone of (052) of 3862279?
### Context:
CREATE TABLE table_name_1 (area__km_2__ VARCHAR, telephone__052_ VARCHAR) [/INST]
### Response:
SELECT area__km_2__ FROM table_name_1 WHERE telephone__052_ = "3862279" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which driver had points over 252 in the season of 2012 with a percentage of possible points at 55.60%?
### Context:
CREATE TABLE table_name_40 (driver VARCHAR, percentage_of_possible_points VARCHAR, points VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_40 WHERE points > 252 AND season = "2012" AND percentage_of_possible_points = "55.60%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 races that took place with points of 257?
### Context:
CREATE TABLE table_name_28 (races INTEGER, points VARCHAR) [/INST]
### Response:
SELECT SUM(races) FROM table_name_28 WHERE points = 257 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points that driver fernando alonso has in the season he had 20 races?
### Context:
CREATE TABLE table_name_72 (points INTEGER, races VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_72 WHERE races = 20 AND driver = "fernando alonso" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points of the season driver Fernando Alonso had a percentage of possible points of 53.05%?
### Context:
CREATE TABLE table_name_15 (points INTEGER, driver VARCHAR, percentage_of_possible_points VARCHAR) [/INST]
### Response:
SELECT AVG(points) FROM table_name_15 WHERE driver = "fernando alonso" AND percentage_of_possible_points = "53.05%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position has 217 as the pick?
### Context:
CREATE TABLE table_name_93 (position VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_93 WHERE pick = 217 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which score has a record of 18-21-7?
### Context:
CREATE TABLE table_name_36 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_36 WHERE record = "18-21-7" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest value for apps in 2009 season in a division less than 1?
### Context:
CREATE TABLE table_name_86 (apps INTEGER, season VARCHAR, division VARCHAR) [/INST]
### Response:
SELECT MIN(apps) FROM table_name_86 WHERE season = "2009" AND division < 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 sum of goals for Torpedo Moscow in division 1 with an apps value less than 29?
### Context:
CREATE TABLE table_name_48 (goals INTEGER, apps VARCHAR, team VARCHAR, division VARCHAR) [/INST]
### Response:
SELECT SUM(goals) FROM table_name_48 WHERE team = "torpedo moscow" AND division = 1 AND apps < 29 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Remixed by has a Version of album version, and an Album of les mots?
### Context:
CREATE TABLE table_name_80 (remixed_by VARCHAR, version VARCHAR, album VARCHAR) [/INST]
### Response:
SELECT remixed_by FROM table_name_80 WHERE version = "album version" AND album = "les mots" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 long was the instrumental version in 1986?
### Context:
CREATE TABLE table_name_74 (length VARCHAR, year VARCHAR, version VARCHAR) [/INST]
### Response:
SELECT length FROM table_name_74 WHERE year = 1986 AND version = "instrumental" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 long version was remixed in 1986?
### Context:
CREATE TABLE table_name_51 (remixed_by VARCHAR, year VARCHAR, version VARCHAR) [/INST]
### Response:
SELECT remixed_by FROM table_name_51 WHERE year = 1986 AND version = "long version" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Canada's lead?
### Context:
CREATE TABLE table_name_76 (lead VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT lead FROM table_name_76 WHERE country = "canada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Canada's skip?
### Context:
CREATE TABLE table_name_68 (skip VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT skip FROM table_name_68 WHERE country = "canada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country has a Lead of sarah wazney?
### Context:
CREATE TABLE table_name_50 (country VARCHAR, lead VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_50 WHERE lead = "sarah wazney" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Lead has a Third of jeanne ellegaard?
### Context:
CREATE TABLE table_name_56 (lead VARCHAR, third VARCHAR) [/INST]
### Response:
SELECT lead FROM table_name_56 WHERE third = "jeanne ellegaard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Skip has a Third of sara carlsson?
### Context:
CREATE TABLE table_name_39 (skip VARCHAR, third VARCHAR) [/INST]
### Response:
SELECT skip FROM table_name_39 WHERE third = "sara carlsson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Skip has a Second of vicki adams?
### Context:
CREATE TABLE table_name_21 (skip VARCHAR, second VARCHAR) [/INST]
### Response:
SELECT skip FROM table_name_21 WHERE second = "vicki adams" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Enrollment that has a School of south central (union mills) has what sum?
### Context:
CREATE TABLE table_name_72 (enrollment INTEGER, school VARCHAR) [/INST]
### Response:
SELECT SUM(enrollment) FROM table_name_72 WHERE school = "south central (union mills)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Mascot of blazers involves what city?
### Context:
CREATE TABLE table_name_17 (city VARCHAR, mascot VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_17 WHERE mascot = "blazers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
County of 46 laporte is what school?
### Context:
CREATE TABLE table_name_83 (school VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_83 WHERE county = "46 laporte" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Laps that shows spun off for time?
### Context:
CREATE TABLE table_name_56 (laps INTEGER, time VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_56 WHERE time = "spun off" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.