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:
How many years had the best actress in a Revival category?
### Context:
CREATE TABLE table_name_9 (year VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_9 WHERE category = "best actress in a revival" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 categories had a Nominated work of yerma before 1992?
### Context:
CREATE TABLE table_name_99 (category VARCHAR, year VARCHAR, nominated_work VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_99 WHERE year < 1992 AND nominated_work = "yerma" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 times is the shot volume (cm3) less than 172.76?
### Context:
CREATE TABLE table_name_37 (shot_diameter__cm_ VARCHAR, shot_volume__cm_3__ INTEGER) [/INST]
### Response:
SELECT COUNT(shot_diameter__cm_) FROM table_name_37 WHERE shot_volume__cm_3__ < 172.76 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 shot volume (cm 3) when the shot diameter (cm) is less than 6.04?
### Context:
CREATE TABLE table_name_73 (shot_volume__cm_3__ INTEGER, shot_diameter__cm_ INTEGER) [/INST]
### Response:
SELECT AVG(shot_volume__cm_3__) FROM table_name_73 WHERE shot_diameter__cm_ < 6.04 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 role was nominated at the Sydney Film Festival?
### Context:
CREATE TABLE table_name_56 (role VARCHAR, festival_organization VARCHAR) [/INST]
### Response:
SELECT role FROM table_name_56 WHERE festival_organization = "sydney film festival" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 category was an award won in 2007?
### Context:
CREATE TABLE table_name_92 (award_category VARCHAR, nominated_won VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT award_category FROM table_name_92 WHERE nominated_won = "won" AND 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:
What is the first year that there was a Satellite Award?
### Context:
CREATE TABLE table_name_90 (year INTEGER, festival_organization VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_90 WHERE festival_organization = "satellite award" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 role was at the Sydney Film Festival in 2008?
### Context:
CREATE TABLE table_name_4 (role VARCHAR, year VARCHAR, festival_organization VARCHAR) [/INST]
### Response:
SELECT role FROM table_name_4 WHERE year = 2008 AND festival_organization = "sydney film festival" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nominated for the Jury Award?
### Context:
CREATE TABLE table_name_57 (nominated_won VARCHAR, award_category VARCHAR) [/INST]
### Response:
SELECT nominated_won FROM table_name_57 WHERE award_category = "jury award" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 released when the series is sorted 6y/ai?
### Context:
CREATE TABLE table_name_68 (released VARCHAR, series_sorted VARCHAR) [/INST]
### Response:
SELECT released FROM table_name_68 WHERE series_sorted = "6y/ai" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 featuring when the doctor is the 6th and the series sorted is 6y/ak?
### Context:
CREATE TABLE table_name_30 (featuring VARCHAR, doctor VARCHAR, series_sorted VARCHAR) [/INST]
### Response:
SELECT featuring FROM table_name_30 WHERE doctor = "6th" AND series_sorted = "6y/ak" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 series sorted when the released is may 2012?
### Context:
CREATE TABLE table_name_73 (series_sorted VARCHAR, released VARCHAR) [/INST]
### Response:
SELECT series_sorted FROM table_name_73 WHERE released = "may 2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 featuring when the series sorted is 6eb/b?
### Context:
CREATE TABLE table_name_38 (featuring VARCHAR, series_sorted VARCHAR) [/INST]
### Response:
SELECT featuring FROM table_name_38 WHERE series_sorted = "6eb/b" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Year(s) won of 1977?
### Context:
CREATE TABLE table_name_60 (country VARCHAR, year_s__won VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_60 WHERE year_s__won = "1977" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 To par is the lowest one that has a Year(s) won of 1962, 1967, 1972, 1980, and a Total larger than 149?
### Context:
CREATE TABLE table_name_90 (to_par INTEGER, year_s__won VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MIN(to_par) FROM table_name_90 WHERE year_s__won = "1962, 1967, 1972, 1980" AND total > 149 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Total of 148?
### Context:
CREATE TABLE table_name_74 (country VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_74 WHERE total = 148 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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(s) won has a Total of 147?
### Context:
CREATE TABLE table_name_57 (year_s__won VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT year_s__won FROM table_name_57 WHERE total = 147 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 To par is the highest one that has a Total smaller than 148?
### Context:
CREATE TABLE table_name_89 (to_par INTEGER, total INTEGER) [/INST]
### Response:
SELECT MAX(to_par) FROM table_name_89 WHERE total < 148 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 candidate in the 2008 (2) election?
### Context:
CREATE TABLE table_name_20 (candidate VARCHAR, election VARCHAR) [/INST]
### Response:
SELECT candidate FROM table_name_20 WHERE election = "2008 (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 share of votes in the 2008 (1) election?
### Context:
CREATE TABLE table_name_99 (share_of_votes VARCHAR, election VARCHAR) [/INST]
### Response:
SELECT share_of_votes FROM table_name_99 WHERE election = "2008 (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 share of votes in the 2000 (2nd) election?
### Context:
CREATE TABLE table_name_20 (share_of_votes VARCHAR, election VARCHAR) [/INST]
### Response:
SELECT share_of_votes FROM table_name_20 WHERE election = "2000 (2nd)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 election with an outcome of ndc opposition and 2,728,241 votes?
### Context:
CREATE TABLE table_name_63 (election VARCHAR, outcome_of_election VARCHAR, number_of_votes VARCHAR) [/INST]
### Response:
SELECT election FROM table_name_63 WHERE outcome_of_election = "ndc opposition" AND number_of_votes = "2,728,241" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 outcome of the election with 43.3% share of votes?
### Context:
CREATE TABLE table_name_26 (outcome_of_election VARCHAR, share_of_votes VARCHAR) [/INST]
### Response:
SELECT outcome_of_election FROM table_name_26 WHERE share_of_votes = "43.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:
Who is the candidate in the 2012 election?
### Context:
CREATE TABLE table_name_50 (candidate VARCHAR, election VARCHAR) [/INST]
### Response:
SELECT candidate FROM table_name_50 WHERE election = "2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Mark O'Meara's Score?
### Context:
CREATE TABLE table_name_44 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_44 WHERE player = "mark o'meara" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Curtis Strange's Score?
### Context:
CREATE TABLE table_name_11 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_11 WHERE player = "curtis strange" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tracks of the release in Catalog BA 222304 with a Length of 2:57?
### Context:
CREATE TABLE table_name_20 (tracks VARCHAR, catalog VARCHAR, length VARCHAR) [/INST]
### Response:
SELECT tracks FROM table_name_20 WHERE catalog = "ba 222304" AND length = "2:57" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest Match No., when Date is 2008-03-21, and when Time is 16:00?
### Context:
CREATE TABLE table_name_92 (match_no INTEGER, date VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT MAX(match_no) FROM table_name_92 WHERE date = "2008-03-21" AND time = "16: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:
What was the venue for runs 325/6?
### Context:
CREATE TABLE table_name_12 (venue VARCHAR, runs VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_12 WHERE runs = "325/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 season were the runs 310/9?
### Context:
CREATE TABLE table_name_25 (season VARCHAR, runs VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_25 WHERE runs = "310/9" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were the runs for the opponent from the West Indies?
### Context:
CREATE TABLE table_name_64 (runs VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT runs FROM table_name_64 WHERE opponent = "west indies" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Money ($) has a Score of 70-66-73-69=278?
### Context:
CREATE TABLE table_name_95 (money___ INTEGER, score VARCHAR) [/INST]
### Response:
SELECT AVG(money___) AS $__ FROM table_name_95 WHERE score = 70 - 66 - 73 - 69 = 278 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rounds did the match last with Sam Sotello as the opponent?
### Context:
CREATE TABLE table_name_78 (round INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_78 WHERE opponent = "sam sotello" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the record for the loss in UFC 62?
### Context:
CREATE TABLE table_name_26 (record VARCHAR, res VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_26 WHERE res = "loss" AND event = "ufc 62" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 part 4 with *heguldun *febungun in part 3?
### Context:
CREATE TABLE table_name_6 (part_4 VARCHAR, part_3 VARCHAR) [/INST]
### Response:
SELECT part_4 FROM table_name_6 WHERE part_3 = "*heguldun *febungun" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 part 3 with *hegait in part 2?
### Context:
CREATE TABLE table_name_31 (part_3 VARCHAR, part_2 VARCHAR) [/INST]
### Response:
SELECT part_3 FROM table_name_31 WHERE part_2 = "*hegait" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 part 4 with *hlaupaną *stautaną in part 1?
### Context:
CREATE TABLE table_name_6 (part_4 VARCHAR, part_1 VARCHAR) [/INST]
### Response:
SELECT part_4 FROM table_name_6 WHERE part_1 = "*hlaupaną *stautaną" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 verb meaning of *haldaną *fanhaną in part 1?
### Context:
CREATE TABLE table_name_26 (verb_meaning VARCHAR, part_1 VARCHAR) [/INST]
### Response:
SELECT verb_meaning FROM table_name_26 WHERE part_1 = "*haldaną *fanhaną" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sezen aksu's producer?
### Context:
CREATE TABLE table_name_43 (producer_s_ VARCHAR, songwriter_s_ VARCHAR) [/INST]
### Response:
SELECT producer_s_ FROM table_name_43 WHERE songwriter_s_ = "sezen aksu" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Songwriter(s) of hadise açıkgöz, stefaan fernande, elio deepcore?
### Context:
CREATE TABLE table_name_72 (title VARCHAR, songwriter_s_ VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_72 WHERE songwriter_s_ = "hadise açıkgöz, stefaan fernande, elio deepcore" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Length of 3:32, and a Producer(s) of hadise açıkgöz, yves jongen?
### Context:
CREATE TABLE table_name_91 (title VARCHAR, length VARCHAR, producer_s_ VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_91 WHERE length = "3:32" AND producer_s_ = "hadise açıkgöz, yves jongen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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(s) has a Track smaller than 8, and a Songwriter(s) of hadise açıkgöz, yves jongen, and a Length of 3:08?
### Context:
CREATE TABLE table_name_46 (producer_s_ VARCHAR, length VARCHAR, track VARCHAR, songwriter_s_ VARCHAR) [/INST]
### Response:
SELECT producer_s_ FROM table_name_46 WHERE track < 8 AND songwriter_s_ = "hadise açıkgöz, yves jongen" AND length = "3:08" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 track 6's title?
### Context:
CREATE TABLE table_name_62 (title VARCHAR, track VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_62 WHERE track = 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 company makes the Nokia 700?
### Context:
CREATE TABLE table_name_31 (company_name VARCHAR, hardware_model VARCHAR) [/INST]
### Response:
SELECT company_name FROM table_name_31 WHERE hardware_model = "nokia 700" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 accreditation level for the approved (awarded 05.12.12) date?
### Context:
CREATE TABLE table_name_72 (accreditation_level VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT accreditation_level FROM table_name_72 WHERE date = "approved (awarded 05.12.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:
When did Samsung Electronics Co LTD make the GT-i9100?
### Context:
CREATE TABLE table_name_99 (date VARCHAR, company_name VARCHAR, hardware_model VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_99 WHERE company_name = "samsung electronics co ltd" AND hardware_model = "gt-i9100" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the Nokia corporation had an accreditation level of joyn, what was the accreditation type?
### Context:
CREATE TABLE table_name_5 (accreditation_type VARCHAR, accreditation_level VARCHAR, company_name VARCHAR) [/INST]
### Response:
SELECT accreditation_type FROM table_name_5 WHERE accreditation_level = "joyn" AND company_name = "nokia corporation" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round, when Record is "4-1"?
### Context:
CREATE TABLE table_name_53 (round VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_53 WHERE record = "4-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 Opponent, when Location is "Tokyo , Japan", when Method is "Decision (unanimous)", and when Record is "4-1"?
### Context:
CREATE TABLE table_name_43 (opponent VARCHAR, record VARCHAR, location VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_43 WHERE location = "tokyo , japan" AND method = "decision (unanimous)" AND record = "4-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 Method, when Opponent is "Thiago Alves"?
### Context:
CREATE TABLE table_name_19 (method VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_19 WHERE opponent = "thiago alves" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Event, when Round is "1", when Location is "Osaka , Japan", and when Method is "TKO (corner stoppage)"?
### Context:
CREATE TABLE table_name_64 (event VARCHAR, method VARCHAR, round VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_64 WHERE round = "1" AND location = "osaka , japan" AND method = "tko (corner stoppage)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Record, when Event is "UFC 64"?
### Context:
CREATE TABLE table_name_78 (record VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_78 WHERE event = "ufc 64" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a game smaller than 24, Lundqvist was the decision, November less than 8, and opponent Was New York Islanders?
### Context:
CREATE TABLE table_name_57 (record VARCHAR, opponent VARCHAR, november VARCHAR, game VARCHAR, decision VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_57 WHERE game < 24 AND decision = "lundqvist" AND november < 8 AND opponent = "new york islanders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest game number with a record of 16-7-2?
### Context:
CREATE TABLE table_name_44 (game INTEGER, record VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_44 WHERE record = "16-7-2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Score of the game with a decision of Lundqvist, the November less than 28, and opponent was Boston Bruins?
### Context:
CREATE TABLE table_name_31 (score VARCHAR, opponent VARCHAR, decision VARCHAR, november VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_31 WHERE decision = "lundqvist" AND november < 28 AND opponent = "boston bruins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the 2013 Eaff East Asian Cup Qualifier played?
### Context:
CREATE TABLE table_name_78 (venue VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_78 WHERE competition = "2013 eaff east asian cup qualifier" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest amount of points with a goal average larger than 4, less than 12 draws, and a goal of 63?
### Context:
CREATE TABLE table_name_63 (points INTEGER, goals_for VARCHAR, goal_average VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_63 WHERE goal_average > 4 AND draws < 12 AND goals_for = 63 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goal for a goal against 37 and less than 15 victories?
### Context:
CREATE TABLE table_name_43 (goals_for INTEGER, goals_against VARCHAR, victories VARCHAR) [/INST]
### Response:
SELECT MIN(goals_for) FROM table_name_43 WHERE goals_against = 37 AND victories < 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:
How many goals on average are there for rank 3?
### Context:
CREATE TABLE table_name_52 (goals_for INTEGER, rank VARCHAR) [/INST]
### Response:
SELECT AVG(goals_for) FROM table_name_52 WHERE rank = 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 average goals against when there are more than 42 played?
### Context:
CREATE TABLE table_name_55 (goals_against INTEGER, played INTEGER) [/INST]
### Response:
SELECT AVG(goals_against) FROM table_name_55 WHERE played > 42 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goal difference for the team from Chorley?
### Context:
CREATE TABLE table_name_99 (goal_difference VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT goal_difference FROM table_name_99 WHERE team = "chorley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 T8 Place Player Scott Hoch's Score?
### Context:
CREATE TABLE table_name_26 (score VARCHAR, place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_26 WHERE place = "t8" AND player = "scott hoch" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Place of the Player with a Score of 67-76-74-67=284?
### Context:
CREATE TABLE table_name_37 (place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_37 WHERE score = 67 - 76 - 74 - 67 = 284 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Money of the Player with a Score of 69-71-69-72=281?
### Context:
CREATE TABLE table_name_70 (money___$__ VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT money___$__ FROM table_name_70 WHERE score = 69 - 71 - 69 - 72 = 281 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rank, when U-17 Goals is "7", and when Player is "Cesc Fàbregas"?
### Context:
CREATE TABLE table_name_82 (rank INTEGER, u_17_goals VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_82 WHERE u_17_goals = 7 AND player = "cesc fàbregas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rank, when U-17 Goals is "9"?
### Context:
CREATE TABLE table_name_49 (rank INTEGER, u_17_goals VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_49 WHERE u_17_goals = 9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Competition has a Result of Draw?
### Context:
CREATE TABLE table_name_50 (competition VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_50 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 is the Date of the Competition with a Score of 1–2?
### Context:
CREATE TABLE table_name_85 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_85 WHERE score = "1–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 New Delhi Competition has a Result of Loss?
### Context:
CREATE TABLE table_name_33 (competition VARCHAR, venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_33 WHERE venue = "new delhi" AND result = "loss" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rounds in the event when record is 1-5?
### Context:
CREATE TABLE table_name_7 (round VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_7 WHERE record = "1-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:
Who is the opponent when there is a win in round greater than 1 and the record is 42-27-10?
### Context:
CREATE TABLE table_name_23 (opponent VARCHAR, record VARCHAR, res VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_23 WHERE res = "win" AND round > 1 AND record = "42-27-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:
Who is team E when Jason Manning is Team F?
### Context:
CREATE TABLE table_name_89 (team_e VARCHAR, team_f VARCHAR) [/INST]
### Response:
SELECT team_e FROM table_name_89 WHERE team_f = "jason manning" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Team A when wilma hofschneider-david is team C?
### Context:
CREATE TABLE table_name_35 (team_a VARCHAR, team_c VARCHAR) [/INST]
### Response:
SELECT team_a FROM table_name_35 WHERE team_c = "wilma hofschneider-david" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team f when Aida Gagaring is team A?
### Context:
CREATE TABLE table_name_16 (team_f VARCHAR, team_a VARCHAR) [/INST]
### Response:
SELECT team_f FROM table_name_16 WHERE team_a = "aida gagaring" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Team D when Carmen Ada is team C?
### Context:
CREATE TABLE table_name_61 (team_d VARCHAR, team_c VARCHAR) [/INST]
### Response:
SELECT team_d FROM table_name_61 WHERE team_c = "carmen ada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team e when Aaron Solloway is team D?
### Context:
CREATE TABLE table_name_94 (team_e VARCHAR, team_d VARCHAR) [/INST]
### Response:
SELECT team_e FROM table_name_94 WHERE team_d = "aaron solloway" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team c when dhez javier is team e?
### Context:
CREATE TABLE table_name_44 (team_c VARCHAR, team_e VARCHAR) [/INST]
### Response:
SELECT team_c FROM table_name_44 WHERE team_e = "dhez javier" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country of the player at +5?
### Context:
CREATE TABLE table_name_68 (country VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_68 WHERE to_par = "+5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player finished at +4?
### Context:
CREATE TABLE table_name_31 (player VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_31 WHERE to_par = "+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 was Bert Yancey's finishing score to par?
### Context:
CREATE TABLE table_name_21 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_21 WHERE player = "bert yancey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bachelorette of the season where ian mckee was the winner?
### Context:
CREATE TABLE table_name_20 (bachelorette VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT bachelorette FROM table_name_20 WHERE winner = "ian mckee" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season with an advertising account manager profile?
### Context:
CREATE TABLE table_name_38 (season INTEGER, profile VARCHAR) [/INST]
### Response:
SELECT MIN(season) FROM table_name_38 WHERE profile = "advertising account manager" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bachelorette of the season that premiered on May 24, 2010?
### Context:
CREATE TABLE table_name_37 (bachelorette VARCHAR, premiered VARCHAR) [/INST]
### Response:
SELECT bachelorette FROM table_name_37 WHERE premiered = "may 24, 2010" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the bachelorette after season 8?
### Context:
CREATE TABLE table_name_25 (bachelorette VARCHAR, season INTEGER) [/INST]
### Response:
SELECT bachelorette FROM table_name_25 WHERE season > 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:
When the conference is west coast and the number of bids are at 2, what's the percentage of games won?
### Context:
CREATE TABLE table_name_51 (win__percentage VARCHAR, _number_of_bids VARCHAR, conference VARCHAR) [/INST]
### Response:
SELECT win__percentage FROM table_name_51 WHERE _number_of_bids = 2 AND conference = "west coast" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If a team had a percentage of games won recorded as .429, what Championship Game was played?
### Context:
CREATE TABLE table_name_82 (championship_game VARCHAR, win__percentage VARCHAR) [/INST]
### Response:
SELECT championship_game FROM table_name_82 WHERE win__percentage = ".429" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance for the game in Week 3?
### Context:
CREATE TABLE table_name_94 (attendance VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_94 WHERE week = 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:
On what date was the opponent the Green Bay Packers?
### Context:
CREATE TABLE table_name_43 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_43 WHERE opponent = "green bay packers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did Ismail Qemali Bej's term start?
### Context:
CREATE TABLE table_name_61 (term_start VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT term_start FROM table_name_61 WHERE name = "ismail qemali bej" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did Fejzi Bej Alizoti's term end?
### Context:
CREATE TABLE table_name_5 (term_end VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT term_end FROM table_name_5 WHERE name = "fejzi bej alizoti" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did the term end for the person who started their term on 28 November 1912?
### Context:
CREATE TABLE table_name_89 (term_end VARCHAR, term_start VARCHAR) [/INST]
### Response:
SELECT term_end FROM table_name_89 WHERE term_start = "28 november 1912" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did Fejzi Bej Alizoti's term start?
### Context:
CREATE TABLE table_name_38 (term_start VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT term_start FROM table_name_38 WHERE name = "fejzi bej alizoti" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points 1, when Team is "Gainsborough Trinity", and when Played is greater than 46?
### Context:
CREATE TABLE table_name_55 (points_1 INTEGER, team VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT SUM(points_1) FROM table_name_55 WHERE team = "gainsborough trinity" AND played > 46 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points 1, when Lost is less than 20, and when Goals For is greater than 92?
### Context:
CREATE TABLE table_name_10 (points_1 VARCHAR, lost VARCHAR, goals_for VARCHAR) [/INST]
### Response:
SELECT COUNT(points_1) FROM table_name_10 WHERE lost < 20 AND goals_for > 92 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Position, when Played is less than 46?
### Context:
CREATE TABLE table_name_51 (position VARCHAR, played INTEGER) [/INST]
### Response:
SELECT COUNT(position) FROM table_name_51 WHERE played < 46 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Location has a Frequency of 102.5 fm?
### Context:
CREATE TABLE table_name_4 (location VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_4 WHERE frequency = "102.5 fm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Call sign has a Frequency of 102.5 fm?
### Context:
CREATE TABLE table_name_26 (call_sign VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT call_sign FROM table_name_26 WHERE frequency = "102.5 fm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Owner has a Name / Format of 105.3 kool fm - hot adult contemporary?
### Context:
CREATE TABLE table_name_18 (owner VARCHAR, name___format VARCHAR) [/INST]
### Response:
SELECT owner FROM table_name_18 WHERE name___format = "105.3 kool fm - hot adult contemporary" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Location has a Call sign of cjtw-fm?
### Context:
CREATE TABLE table_name_90 (location VARCHAR, call_sign VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_90 WHERE call_sign = "cjtw-fm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Frequency has an Owner of rogers communications rogers radio, and a Call sign of cikz-fm?
### Context:
CREATE TABLE table_name_77 (frequency VARCHAR, owner VARCHAR, call_sign VARCHAR) [/INST]
### Response:
SELECT frequency FROM table_name_77 WHERE owner = "rogers communications rogers radio" AND call_sign = "cikz-fm" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.