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:
Tell me the method for stanislav nuschik
### Context:
CREATE TABLE table_name_60 (method VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_60 WHERE opponent = "stanislav nuschik" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Result of IFL: Los Angeles?
### Context:
CREATE TABLE table_name_88 (res VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT res FROM table_name_88 WHERE event = "ifl: los angeles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Event resulted in a Win for Opponent, Shane Ott?
### Context:
CREATE TABLE table_name_4 (event VARCHAR, res VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_4 WHERE res = "win" AND opponent = "shane ott" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 crystal structures has a Tc(K) of 110 and the number of Cu-O planes in the unit cell is 3?
### Context:
CREATE TABLE table_name_67 (crystal_structure VARCHAR, no_of_cu_o_planes_in_unit_cell VARCHAR, t_c__k_ VARCHAR) [/INST]
### Response:
SELECT crystal_structure FROM table_name_67 WHERE no_of_cu_o_planes_in_unit_cell = 3 AND t_c__k_ = 110 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gold with total larger than 33
### Context:
CREATE TABLE table_name_46 (gold VARCHAR, total INTEGER) [/INST]
### Response:
SELECT gold FROM table_name_46 WHERE total > 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:
Name the fewest gold for tanzania with bronze less than 0
### Context:
CREATE TABLE table_name_54 (gold INTEGER, nation VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT MIN(gold) FROM table_name_54 WHERE nation = "tanzania" AND bronze < 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:
Who is the opponent for week 10?
### Context:
CREATE TABLE table_name_17 (opponent VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_17 WHERE week = 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:
For countries that won more than 32 gold medals, what was the highest number of golds?
### Context:
CREATE TABLE table_name_81 (gold INTEGER, total INTEGER) [/INST]
### Response:
SELECT MAX(gold) FROM table_name_81 WHERE total > 32 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me fourth place for year of 2010
### Context:
CREATE TABLE table_name_36 (fourth_place VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT fourth_place FROM table_name_36 WHERE year = 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:
Tell me the result for 2010 fifa world cup qualification
### Context:
CREATE TABLE table_name_81 (result VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_81 WHERE competition = "2010 fifa world cup qualification" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the date for 2010 fifa world cup qualification
### Context:
CREATE TABLE table_name_85 (date VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_85 WHERE competition = "2010 fifa world cup qualification" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the surface for november 28, 2010
### Context:
CREATE TABLE table_name_34 (surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_34 WHERE date = "november 28, 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:
Tell me the tournament with a hard surface for 6–1, 6–2
### Context:
CREATE TABLE table_name_99 (tournament VARCHAR, surface VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_99 WHERE surface = "hard" AND score = "6–1, 6–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:
Tell me the date for 6–3, 6–2
### Context:
CREATE TABLE table_name_87 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_87 WHERE score = "6–3, 6–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:
Tell me the date for johanna konta
### Context:
CREATE TABLE table_name_8 (date VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_8 WHERE opponent_in_the_final = "johanna konta" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time value for the rider Brian Finch and a rank greater than 3?
### Context:
CREATE TABLE table_name_42 (time VARCHAR, rank VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_42 WHERE rank > 3 AND rider = "brian finch" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result does the project Once Upon A Time In The West, directed by Sergio Leone have?
### Context:
CREATE TABLE table_name_40 (result VARCHAR, director VARCHAR, project VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_40 WHERE director = "sergio leone" AND project = "once upon a time in the west" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year was Bulworth nominated?
### Context:
CREATE TABLE table_name_92 (year VARCHAR, project VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_92 WHERE project = "bulworth" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the project The Untouchables?
### Context:
CREATE TABLE table_name_16 (year INTEGER, project VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_16 WHERE project = "the untouchables" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the section for position of 8th and season of 2003
### Context:
CREATE TABLE table_name_29 (section VARCHAR, position VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT section FROM table_name_29 WHERE position = "8th" AND season = "2003" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of week 17?
### Context:
CREATE TABLE table_name_35 (date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_35 WHERE week = 17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the latest week that the Tampa Bay Buccaneers were an opponent?
### Context:
CREATE TABLE table_name_29 (week INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT MAX(week) FROM table_name_29 WHERE opponent = "tampa bay buccaneers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fewest tries for leicester tigers with points less than 207
### Context:
CREATE TABLE table_name_6 (tries INTEGER, club VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MIN(tries) FROM table_name_6 WHERE club = "leicester tigers" AND points < 207 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date of st albans city for result of drew 0-0
### Context:
CREATE TABLE table_name_73 (date VARCHAR, opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_73 WHERE opponent = "st albans city" AND result = "drew 0-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the venue for 15 august 2006
### Context:
CREATE TABLE table_name_89 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_89 WHERE date = "15 august 2006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance for tamworth with home venue
### Context:
CREATE TABLE table_name_4 (attendance INTEGER, opponent VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_4 WHERE opponent = "tamworth" AND venue = "home" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 least attendance for 10 october 2006
### Context:
CREATE TABLE table_name_82 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_82 WHERE date = "10 october 2006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the average bronze for total of 19 and silver of 8 with rank of 31
### Context:
CREATE TABLE table_name_12 (bronze INTEGER, rank VARCHAR, total VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT AVG(bronze) FROM table_name_12 WHERE total = 19 AND silver = 8 AND rank = "31" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the average bronze for rank of 43 and total less than 11
### Context:
CREATE TABLE table_name_41 (bronze INTEGER, rank VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT AVG(bronze) FROM table_name_41 WHERE rank = "43" AND total < 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Say the frequency of 1290 khz
### Context:
CREATE TABLE table_name_31 (format VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_31 WHERE frequency = "1290 khz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the timeslot of calls of wrko
### Context:
CREATE TABLE table_name_21 (timeslot VARCHAR, calls VARCHAR) [/INST]
### Response:
SELECT timeslot FROM table_name_21 WHERE calls = "wrko" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the format for calls of wrko
### Context:
CREATE TABLE table_name_56 (format VARCHAR, calls VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_56 WHERE calls = "wrko" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the calls for frequency of 1290 khz
### Context:
CREATE TABLE table_name_88 (calls VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT calls FROM table_name_88 WHERE frequency = "1290 khz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the branding for frequency of 680 khz
### Context:
CREATE TABLE table_name_88 (branding VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT branding FROM table_name_88 WHERE frequency = "680 khz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the timeslot for calls of whyn
### Context:
CREATE TABLE table_name_74 (timeslot VARCHAR, calls VARCHAR) [/INST]
### Response:
SELECT timeslot FROM table_name_74 WHERE calls = "whyn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For how long did Bolivia have a lane greater than 6?
### Context:
CREATE TABLE table_name_56 (time VARCHAR, country VARCHAR, lane VARCHAR) [/INST]
### Response:
SELECT COUNT(time) FROM table_name_56 WHERE country = "bolivia" AND lane > 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:
In heat rank 7, what is the sum of lanes?
### Context:
CREATE TABLE table_name_48 (lane INTEGER, heat_rank VARCHAR) [/INST]
### Response:
SELECT SUM(lane) FROM table_name_48 WHERE heat_rank = 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which country is ranked 56 overall and has a heat rank smaller than 8?
### Context:
CREATE TABLE table_name_72 (country VARCHAR, heat_rank VARCHAR, overall_rank VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_72 WHERE heat_rank < 8 AND overall_rank = "56" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 greatest lane with an overall rank of 79 and a time larger than 26.1?
### Context:
CREATE TABLE table_name_24 (lane INTEGER, overall_rank VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT MAX(lane) FROM table_name_24 WHERE overall_rank = "79" AND time > 26.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:
Tell me the highest week for metropolitan stadium for attendance more than 47,644
### Context:
CREATE TABLE table_name_80 (week INTEGER, venue VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT MAX(week) FROM table_name_80 WHERE venue = "metropolitan stadium" AND attendance > 47 OFFSET 644 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the sum of played for serik berdalin and drawn more than 4
### Context:
CREATE TABLE table_name_25 (played INTEGER, manager VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT SUM(played) FROM table_name_25 WHERE manager = "serik berdalin" AND drawn > 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the highest total PR seats of 48 with a District seat larger than than 73?
### Context:
CREATE TABLE table_name_28 (total_seats INTEGER, pr_seats VARCHAR, district_seats VARCHAR) [/INST]
### Response:
SELECT MAX(total_seats) FROM table_name_28 WHERE pr_seats = 48 AND district_seats > 73 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1955 which party did Thomas Mitchell belong to?
### Context:
CREATE TABLE table_name_97 (party VARCHAR, year VARCHAR, candidate VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_97 WHERE year = "1955" AND candidate = "thomas mitchell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the number of days did the ulster unionist Party have the constituate fermanagh and south tyrone?
### Context:
CREATE TABLE table_name_79 (days VARCHAR, party VARCHAR, constituency VARCHAR) [/INST]
### Response:
SELECT days FROM table_name_79 WHERE party = "ulster unionist" AND constituency = "fermanagh and south tyrone" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the number of days in 1945 where the constituent was heywood and radcliffe?
### Context:
CREATE TABLE table_name_18 (days VARCHAR, year VARCHAR, constituency VARCHAR) [/INST]
### Response:
SELECT days FROM table_name_18 WHERE year = "1945" AND constituency = "heywood and radcliffe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year was Hazel Grove the constituent for the liberal party?
### Context:
CREATE TABLE table_name_15 (year VARCHAR, party VARCHAR, constituency VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_15 WHERE party = "liberal" AND constituency = "hazel grove" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for dean ellison
### Context:
CREATE TABLE table_name_74 (laps INTEGER, rider VARCHAR, grid VARCHAR, bike VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_74 WHERE grid > 12 AND bike = "ducati 999rs" AND rider = "dean ellison" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the highest Laps for grid less than 22 and riderS of ruben xaus
### Context:
CREATE TABLE table_name_40 (laps INTEGER, grid VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_40 WHERE grid < 22 AND rider = "ruben xaus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the total number of grid for rider of james toseland
### Context:
CREATE TABLE table_name_14 (grid VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_14 WHERE rider = "james toseland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the least Laps for grid larger than 2 with 35:26.734
### Context:
CREATE TABLE table_name_45 (laps INTEGER, time VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_45 WHERE time = "35:26.734" AND grid > 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:
Tell me the date with week of 13
### Context:
CREATE TABLE table_name_21 (date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_21 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:
Tell me the average week for attendance of 48,113
### Context:
CREATE TABLE table_name_74 (week INTEGER, attendance VARCHAR) [/INST]
### Response:
SELECT AVG(week) FROM table_name_74 WHERE attendance = "48,113" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Album had a year less than 2005 with a Label by Ministry of Sound?
### Context:
CREATE TABLE table_name_94 (album VARCHAR, year VARCHAR, label VARCHAR) [/INST]
### Response:
SELECT album FROM table_name_94 WHERE year < 2005 AND label = "ministry of sound" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Album had a bigger year than 2005 and whose country was Australia?
### Context:
CREATE TABLE table_name_32 (album VARCHAR, year VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT album FROM table_name_32 WHERE year > 2005 AND country = "australia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 song had Central Station as a label and whose album was Various - Wild Nights 4?
### Context:
CREATE TABLE table_name_33 (song VARCHAR, label VARCHAR, album VARCHAR) [/INST]
### Response:
SELECT song FROM table_name_33 WHERE label = "central station" AND album = "various - wild nights 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:
Where did Zimbabwe play?
### Context:
CREATE TABLE table_name_63 (venue VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_63 WHERE opponent = "zimbabwe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when Canada played?
### Context:
CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_68 WHERE opponent = "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:
Tell me the lowest silver for rank of 9 and bronze less than 2
### Context:
CREATE TABLE table_name_26 (silver INTEGER, rank VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT MIN(silver) FROM table_name_26 WHERE rank = 9 AND bronze < 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:
Name the report for raymond sommer
### Context:
CREATE TABLE table_name_66 (report VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT report FROM table_name_66 WHERE winning_driver = "raymond sommer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the winning driver for monaco grand prix
### Context:
CREATE TABLE table_name_41 (winning_driver VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_41 WHERE name = "monaco grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 circuit for marcel lehoux
### Context:
CREATE TABLE table_name_95 (circuit VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_95 WHERE winning_driver = "marcel lehoux" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 report for per-viktor widengren and alfa romeo
### Context:
CREATE TABLE table_name_48 (report VARCHAR, winning_driver VARCHAR, winning_constructor VARCHAR) [/INST]
### Response:
SELECT report FROM table_name_48 WHERE winning_driver = "per-viktor widengren" AND winning_constructor = "alfa romeo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the date for warsaw 1929
### Context:
CREATE TABLE table_name_50 (date VARCHAR, location VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_50 WHERE location = "warsaw" AND year = 1929 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the result for warsaw 1929
### Context:
CREATE TABLE table_name_8 (result VARCHAR, location VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_8 WHERE location = "warsaw" AND year = 1929 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the result for harrogate
### Context:
CREATE TABLE table_name_34 (result VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_34 WHERE location = "harrogate" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the overall rank for roland schoeman
### Context:
CREATE TABLE table_name_50 (overall_rank VARCHAR, swimmer VARCHAR) [/INST]
### Response:
SELECT overall_rank FROM table_name_50 WHERE swimmer = "roland schoeman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Silver medals did nation who is ranked greater than 1 and has 4 Gold medals have?
### Context:
CREATE TABLE table_name_45 (silver INTEGER, rank VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT SUM(silver) FROM table_name_45 WHERE rank > 1 AND gold = 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 nation has more than 6 Silver medals and fewer than 8 Gold medals?
### Context:
CREATE TABLE table_name_59 (total INTEGER, silver VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_59 WHERE silver > 6 AND gold < 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 rank of the Nation that has fewer than 24 total medals are more than 7 Gold medals?
### Context:
CREATE TABLE table_name_51 (rank INTEGER, total VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_51 WHERE total < 24 AND gold > 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 rank of the nation that has more than 1 Bronze medals and fewer than 4 Gold medals?
### Context:
CREATE TABLE table_name_75 (rank INTEGER, bronze VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_75 WHERE bronze > 1 AND gold < 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:
How many silver medals does Belarus (blr) along with 4 gold and 4 bronze?
### Context:
CREATE TABLE table_name_92 (silver INTEGER, bronze VARCHAR, gold VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT SUM(silver) FROM table_name_92 WHERE gold = 4 AND nation = "belarus (blr)" AND bronze > 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 rank is Belarus (BLR), which earned 15 medals total?
### Context:
CREATE TABLE table_name_44 (rank INTEGER, nation VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_44 WHERE nation = "belarus (blr)" AND total < 15 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the name of the race on 24 September?
### Context:
CREATE TABLE table_name_37 (name VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_37 WHERE date = "24 september" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the race on 9 July?
### Context:
CREATE TABLE table_name_72 (name VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_72 WHERE date = "9 july" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 race that was won by a Maserati being driven by Giuseppe Campari?
### Context:
CREATE TABLE table_name_67 (circuit VARCHAR, winning_constructor VARCHAR, winning_drivers VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_67 WHERE winning_constructor = "maserati" AND winning_drivers = "giuseppe campari" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was the race won by Louis Chiron?
### Context:
CREATE TABLE table_name_81 (date VARCHAR, winning_drivers VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_81 WHERE winning_drivers = "louis chiron" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 brand of vehicle won a race driven by Tazio Nuvolari?
### Context:
CREATE TABLE table_name_81 (winning_constructor VARCHAR, winning_drivers VARCHAR) [/INST]
### Response:
SELECT winning_constructor FROM table_name_81 WHERE winning_drivers = "tazio nuvolari" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What race was won by Tazio Nuvolari?
### Context:
CREATE TABLE table_name_63 (name VARCHAR, winning_drivers VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_63 WHERE winning_drivers = "tazio nuvolari" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the result for week less than 4 and september 7, 1986
### Context:
CREATE TABLE table_name_46 (result VARCHAR, week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_46 WHERE week < 4 AND date = "september 7, 1986" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the result for week of 3
### Context:
CREATE TABLE table_name_33 (result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_33 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:
Tell me the lowest week for attedance less thaan 32,738
### Context:
CREATE TABLE table_name_77 (week INTEGER, attendance INTEGER) [/INST]
### Response:
SELECT MIN(week) FROM table_name_77 WHERE attendance < 32 OFFSET 738 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the ship for lieutenant montagu verling
### Context:
CREATE TABLE table_name_52 (ship VARCHAR, captain VARCHAR) [/INST]
### Response:
SELECT ship FROM table_name_52 WHERE captain = "lieutenant montagu verling" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the class for admiral and hms frobisher
### Context:
CREATE TABLE table_name_35 (class VARCHAR, rank VARCHAR, ship VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_35 WHERE rank = "admiral" AND ship = "hms frobisher" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the guns for third-rate ship of the line and rank of vice-admiral with year of 1802
### Context:
CREATE TABLE table_name_63 (guns VARCHAR, year VARCHAR, class VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT guns FROM table_name_63 WHERE class = "third-rate ship of the line" AND rank = "vice-admiral" AND year = "1802" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the captain for 1774 and guns of 14
### Context:
CREATE TABLE table_name_23 (captain VARCHAR, year VARCHAR, guns VARCHAR) [/INST]
### Response:
SELECT captain FROM table_name_23 WHERE year = "1774" AND guns = "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:
Tell me the captain for guns of 28
### Context:
CREATE TABLE table_name_15 (captain VARCHAR, guns VARCHAR) [/INST]
### Response:
SELECT captain FROM table_name_15 WHERE guns = "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:
Tell me the status of eliminated of anton dela paz
### Context:
CREATE TABLE table_name_15 (status VARCHAR, eliminated VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_15 WHERE eliminated = "anton dela paz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the finalists for week # less than 2
### Context:
CREATE TABLE table_name_40 (finalists VARCHAR, week__number INTEGER) [/INST]
### Response:
SELECT finalists FROM table_name_40 WHERE week__number < 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:
Tell me the eliminated for week # larger than 4
### Context:
CREATE TABLE table_name_83 (eliminated VARCHAR, week__number INTEGER) [/INST]
### Response:
SELECT eliminated FROM table_name_83 WHERE week__number > 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:
At the UFC 78, what is the average round when the time is 5:00?
### Context:
CREATE TABLE table_name_32 (round INTEGER, time VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_32 WHERE time = "5:00" AND event = "ufc 78" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 there was a draw, what was the time?
### Context:
CREATE TABLE table_name_43 (time VARCHAR, res VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_43 WHERE res = "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 sum of points in 2010 when the driver had more than 14 races and an F.L. of less than 0?
### Context:
CREATE TABLE table_name_8 (points INTEGER, fl VARCHAR, year VARCHAR, races VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_8 WHERE year = 2010 AND races > 14 AND fl < 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 was the outcome of the game that had a week number of less than 2?
### Context:
CREATE TABLE table_name_67 (result VARCHAR, week INTEGER) [/INST]
### Response:
SELECT result FROM table_name_67 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 heat and what lane is thi hue pham in?
### Context:
CREATE TABLE table_name_25 (heat_ VARCHAR, _lane VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT heat_ & _lane FROM table_name_25 WHERE name = "thi hue pham" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Heat & Lane is the person who has a time of 1:01.12?
### Context:
CREATE TABLE table_name_72 (heat_ VARCHAR, _lane VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT heat_ & _lane FROM table_name_72 WHERE time = "1:01.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:
How many laps did Fernando Alonso do?
### Context:
CREATE TABLE table_name_3 (laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_3 WHERE 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 Jenson Button's constructor?
### Context:
CREATE TABLE table_name_13 (constructor VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_13 WHERE driver = "jenson button" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the package for EEPROM less than 128
### Context:
CREATE TABLE table_name_17 (package VARCHAR, eeprom INTEGER) [/INST]
### Response:
SELECT package FROM table_name_17 WHERE eeprom < 128 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the chip with frequency larger than 10
### Context:
CREATE TABLE table_name_63 (chip VARCHAR, frequency_ VARCHAR, mhz VARCHAR) [/INST]
### Response:
SELECT chip FROM table_name_63 WHERE frequency_[mhz] > 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:
I want the highest Grid for Toyota and jarno trulli
### Context:
CREATE TABLE table_name_95 (grid INTEGER, constructor VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_95 WHERE constructor = "toyota" AND driver = "jarno trulli" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.