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:
Which TD-INT has an Effic larger than 111.4?
### Context:
CREATE TABLE table_name_87 (td_int VARCHAR, effic INTEGER) [/INST]
### Response:
SELECT td_int FROM table_name_87 WHERE effic > 111.4 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of losses with less than 6 wins and less than 0 draws?
### Context:
CREATE TABLE table_name_94 (losses VARCHAR, wins VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_94 WHERE wins < 6 AND draws < 0 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of against with less than 10 losses, more than 0 draws, and more than 7 wins?
### Context:
CREATE TABLE table_name_74 (against INTEGER, wins VARCHAR, losses VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT AVG(against) FROM table_name_74 WHERE losses < 10 AND draws > 0 AND wins > 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 total number of byes with more than 0 losses and 1526 against?
### Context:
CREATE TABLE table_name_31 (byes VARCHAR, losses VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT COUNT(byes) FROM table_name_31 WHERE losses > 0 AND against = 1526 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of draws with more than 2 byes?
### Context:
CREATE TABLE table_name_81 (draws INTEGER, byes INTEGER) [/INST]
### Response:
SELECT MIN(draws) FROM table_name_81 WHERE byes > 2 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest against of the wimmera fl warrack eagles, which have less than 16 wins?
### Context:
CREATE TABLE table_name_33 (against INTEGER, wins VARCHAR, wimmera_fl VARCHAR) [/INST]
### Response:
SELECT MIN(against) FROM table_name_33 WHERE wins < 16 AND wimmera_fl = "warrack eagles" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 races did the German racer that won less than 10 races ride?
### Context:
CREATE TABLE table_name_94 (races_ridden VARCHAR, nationality VARCHAR, races_won VARCHAR) [/INST]
### Response:
SELECT COUNT(races_ridden) FROM table_name_94 WHERE nationality = "german" AND races_won < 10 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average win as a percentage of German racer Rudi Altig, who has ridden in over 79 races?
### Context:
CREATE TABLE table_name_50 (win_average INTEGER, races_ridden VARCHAR, nationality VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT AVG(win_average) FROM table_name_50 WHERE nationality = "german" AND name = "rudi altig" AND races_ridden > 79 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 top-5 when cuts made is more than 39?
### Context:
CREATE TABLE table_name_40 (top_5 INTEGER, cuts_made INTEGER) [/INST]
### Response:
SELECT MAX(top_5) FROM table_name_40 WHERE cuts_made > 39 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 events when wins is more than 0 and cuts made is more than 14?
### Context:
CREATE TABLE table_name_64 (events INTEGER, wins VARCHAR, cuts_made VARCHAR) [/INST]
### Response:
SELECT MAX(events) FROM table_name_64 WHERE wins > 0 AND cuts_made > 14 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the highest top-5 when wins is more than 1?
### Context:
CREATE TABLE table_name_97 (top_5 INTEGER, wins INTEGER) [/INST]
### Response:
SELECT MAX(top_5) FROM table_name_97 WHERE wins > 1 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many times is the tournament the masters tournament and the top-10 is less than 2?
### Context:
CREATE TABLE table_name_6 (top_5 VARCHAR, tournament VARCHAR, top_10 VARCHAR) [/INST]
### Response:
SELECT COUNT(top_5) FROM table_name_6 WHERE tournament = "masters tournament" AND top_10 < 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 ran has noel patterson as the rider?
### Context:
CREATE TABLE table_name_40 (rank VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_40 WHERE rider = "noel patterson" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What time has jules croft as the rider?
### Context:
CREATE TABLE table_name_15 (time VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_15 WHERE rider = "jules croft" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team has adam barclay as the rider?
### Context:
CREATE TABLE table_name_79 (team VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_79 WHERE rider = "adam barclay" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round has h/a hurst
### Context:
CREATE TABLE table_name_26 (round VARCHAR, h___a VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_26 WHERE h___a = "hurst" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game ended f-a with a round of round 1 replay
### Context:
CREATE TABLE table_name_63 (result_f___a VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT result_f___a FROM table_name_63 WHERE round = "round 1 replay" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 h/a round of round 2
### Context:
CREATE TABLE table_name_34 (h___a VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT h___a FROM table_name_34 WHERE round = "round 2" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Role/Episode after 2006 with Ellen Burstyn as a recipient and nominee?
### Context:
CREATE TABLE table_name_21 (role_episode VARCHAR, year VARCHAR, recipients_and_nominees VARCHAR) [/INST]
### Response:
SELECT role_episode FROM table_name_21 WHERE year > 2006 AND recipients_and_nominees = "ellen burstyn" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which Category was Outstanding Main Title Design a Recipient and nominee?
### Context:
CREATE TABLE table_name_71 (category VARCHAR, recipients_and_nominees VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_71 WHERE recipients_and_nominees = "outstanding main title design" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Category was from before 2009 with a Role/Episode of Libby Goldstein and Junie Lowry-Johnson?
### Context:
CREATE TABLE table_name_60 (category VARCHAR, year VARCHAR, role_episode VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_60 WHERE year < 2009 AND role_episode = "libby goldstein and junie lowry-johnson" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Category were Libby Goldstein and Junie Lowry-Johnson recipients and nominees for?
### Context:
CREATE TABLE table_name_50 (category VARCHAR, recipients_and_nominees VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_50 WHERE recipients_and_nominees = "libby goldstein and junie lowry-johnson" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runners when the jockey is frankie dettori and the placing is higher than 1?
### Context:
CREATE TABLE table_name_68 (runners INTEGER, jockey VARCHAR, placing VARCHAR) [/INST]
### Response:
SELECT MAX(runners) FROM table_name_68 WHERE jockey = "frankie dettori" AND placing > 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 race when the jockey is frankie dettori, the margin is more than 3 and the course is yarmouth?
### Context:
CREATE TABLE table_name_48 (race VARCHAR, course VARCHAR, jockey VARCHAR, margin VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_48 WHERE jockey = "frankie dettori" AND margin > 3 AND course = "yarmouth" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Partner in the match with a Score of 6-4, 2-6, 7-6?
### Context:
CREATE TABLE table_name_52 (partnering VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT partnering FROM table_name_52 WHERE score = "6-4, 2-6, 7-6" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the competition when the result is won and the date is september 13, 1996?
### Context:
CREATE TABLE table_name_87 (competition VARCHAR, result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_87 WHERE result = "won" AND date = "september 13, 1996" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the competition is 1996 tiger cup and the result is drew?
### Context:
CREATE TABLE table_name_60 (date VARCHAR, competition VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_60 WHERE competition = "1996 tiger cup" AND result = "drew" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when the competition is 1995 southeast asian games?
### Context:
CREATE TABLE table_name_1 (score VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_1 WHERE competition = "1995 southeast asian games" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result when the venue is singapore on september 8, 1996?
### Context:
CREATE TABLE table_name_37 (result VARCHAR, venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_37 WHERE venue = "singapore" AND date = "september 8, 1996" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 competition when the result is won and the score is 8-0?
### Context:
CREATE TABLE table_name_11 (competition VARCHAR, result VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_11 WHERE result = "won" AND score = "8-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:
Waht laps have points smaller than 1, and a team of dale coyne racing, and the grid larger than 13?
### Context:
CREATE TABLE table_name_87 (laps VARCHAR, grid VARCHAR, points VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_87 WHERE points < 1 AND team = "dale coyne racing" AND grid > 13 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of laps for a team of team player's, and has a grid of 9, and points larger than 10?
### Context:
CREATE TABLE table_name_12 (laps VARCHAR, points VARCHAR, team VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_12 WHERE team = "team player's" AND grid = 9 AND points > 10 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest points for a time/retired of +30.7 secs, and laps smaller than 165?
### Context:
CREATE TABLE table_name_70 (points INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_70 WHERE time_retired = "+30.7 secs" AND laps < 165 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team 2 in the game with a team 1 of Liege Basket?
### Context:
CREATE TABLE table_name_88 (team__number2 VARCHAR, team__number1 VARCHAR) [/INST]
### Response:
SELECT team__number2 FROM table_name_88 WHERE team__number1 = "liege basket" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the 2nd leg score in the matchup with a team 2 of KK Borac?
### Context:
CREATE TABLE table_name_77 (team__number2 VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_name_77 WHERE team__number2 = "kk borac" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 serial numbers for the locomotives of Class 4-8-4 — oooooooo — northern?
### Context:
CREATE TABLE table_name_28 (serial_numbers VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT serial_numbers FROM table_name_28 WHERE class = "4-8-4 — oooooooo — northern" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fleet number for the model with Serial number 68056?
### Context:
CREATE TABLE table_name_27 (fleet_number_s_ VARCHAR, serial_numbers VARCHAR) [/INST]
### Response:
SELECT fleet_number_s_ FROM table_name_27 WHERE serial_numbers = "68056" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 serial number of the model made in 1930?
### Context:
CREATE TABLE table_name_82 (serial_numbers VARCHAR, year_made VARCHAR) [/INST]
### Response:
SELECT serial_numbers FROM table_name_82 WHERE year_made = "1930" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wheel arrangement for the model that was retired in 1955?
### Context:
CREATE TABLE table_name_75 (wheel_arrangement VARCHAR, year_s__retired VARCHAR) [/INST]
### Response:
SELECT wheel_arrangement FROM table_name_75 WHERE year_s__retired = "1955" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of matches that has a Clubs of 46 → 32?
### Context:
CREATE TABLE table_name_99 (matches INTEGER, clubs VARCHAR) [/INST]
### Response:
SELECT MIN(matches) FROM table_name_99 WHERE clubs = "46 → 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:
What is the highest number of matches that has a round of Third Round?
### Context:
CREATE TABLE table_name_22 (matches INTEGER, round VARCHAR) [/INST]
### Response:
SELECT MAX(matches) FROM table_name_22 WHERE round = "third round" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 prize money for the final round?
### Context:
CREATE TABLE table_name_58 (prize_money VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT prize_money FROM table_name_58 WHERE round = "final" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the row with a new entries this round of 44?
### Context:
CREATE TABLE table_name_71 (date VARCHAR, new_entries_this_round VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_71 WHERE new_entries_this_round = "44" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Against has Wins of 11, and Losses smaller than 7?
### Context:
CREATE TABLE table_name_97 (against INTEGER, wins VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT AVG(against) FROM table_name_97 WHERE wins = 11 AND losses < 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 Draws have Losses larger than 8, and a Hampden FL of terang-mortlake?
### Context:
CREATE TABLE table_name_18 (draws VARCHAR, losses VARCHAR, hampden_fl VARCHAR) [/INST]
### Response:
SELECT draws FROM table_name_18 WHERE losses > 8 AND hampden_fl = "terang-mortlake" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Byes have Losses smaller than 4?
### Context:
CREATE TABLE table_name_38 (byes INTEGER, losses INTEGER) [/INST]
### Response:
SELECT AVG(byes) FROM table_name_38 WHERE losses < 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's the total draws when the losses are less than 10, less than 2 byes, and 13 wins?
### Context:
CREATE TABLE table_name_39 (draws VARCHAR, byes VARCHAR, losses VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(draws) FROM table_name_39 WHERE losses < 10 AND wins = 13 AND byes < 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's the total draws for Ararat when the byes are less than 2?
### Context:
CREATE TABLE table_name_97 (draws INTEGER, wimmera_fl VARCHAR, byes VARCHAR) [/INST]
### Response:
SELECT SUM(draws) FROM table_name_97 WHERE wimmera_fl = "ararat" AND byes < 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's the total losses when there are 8 wins and less than 2 byes?
### Context:
CREATE TABLE table_name_91 (losses INTEGER, wins VARCHAR, byes VARCHAR) [/INST]
### Response:
SELECT SUM(losses) FROM table_name_91 WHERE wins = 8 AND byes < 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's the least losses for Horsham Saints with more than 13 wins and less than 1211 against?
### Context:
CREATE TABLE table_name_24 (losses INTEGER, wins VARCHAR, against VARCHAR, wimmera_fl VARCHAR) [/INST]
### Response:
SELECT MIN(losses) FROM table_name_24 WHERE against < 1211 AND wimmera_fl = "horsham saints" AND wins > 13 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the draws when the losses are less than 1?
### Context:
CREATE TABLE table_name_30 (draws INTEGER, losses INTEGER) [/INST]
### Response:
SELECT SUM(draws) FROM table_name_30 WHERE losses < 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 are the amount of wins when the draws are less than 0 and the against is 1348?
### Context:
CREATE TABLE table_name_82 (wins INTEGER, against VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_82 WHERE against = 1348 AND draws < 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 total city area for vehari city with a serial number bigger than 36?
### Context:
CREATE TABLE table_name_1 (city_area_km_2__ VARCHAR, headquartered_city VARCHAR, serial_no VARCHAR) [/INST]
### Response:
SELECT COUNT(city_area_km_2__) FROM table_name_1 WHERE headquartered_city = "vehari city" AND serial_no > 36 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lowest city population for the district of rajanpur district with a area of 6 km squared and a serial number less than 29?
### Context:
CREATE TABLE table_name_15 (city_population__2009_ INTEGER, serial_no VARCHAR, city_area_km_2__ VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT MIN(city_population__2009_) FROM table_name_15 WHERE city_area_km_2__ = 6 AND district = "rajanpur district" AND serial_no < 29 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of the serial numbers for narowal city?
### Context:
CREATE TABLE table_name_22 (serial_no INTEGER, headquartered_city VARCHAR) [/INST]
### Response:
SELECT SUM(serial_no) FROM table_name_22 WHERE headquartered_city = "narowal city" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the area for the bahawalnagar district with a population more than 134,936?
### Context:
CREATE TABLE table_name_32 (city_area_km_2__ INTEGER, district VARCHAR, city_population__2009_ VARCHAR) [/INST]
### Response:
SELECT SUM(city_area_km_2__) FROM table_name_32 WHERE district = "bahawalnagar district" AND city_population__2009_ > 134 OFFSET 936 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 district was the city with an area smaller than 12 square kilometers and a serial number of 35?
### Context:
CREATE TABLE table_name_9 (district VARCHAR, city_area_km_2__ VARCHAR, serial_no VARCHAR) [/INST]
### Response:
SELECT district FROM table_name_9 WHERE city_area_km_2__ < 12 AND serial_no = 35 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
After pick number 158, what is the next round a USC player was picked?
### Context:
CREATE TABLE table_name_20 (round INTEGER, school VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_20 WHERE school = "usc" AND pick > 158 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Jim Obradovich, picked after round 2, but before pick 183, plays what position?
### Context:
CREATE TABLE table_name_88 (position VARCHAR, player VARCHAR, round VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_88 WHERE round > 2 AND pick < 183 AND player = "jim obradovich" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time has q as the notes, and Australia as the country?
### Context:
CREATE TABLE table_name_95 (time VARCHAR, notes VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_95 WHERE notes = "q" 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:
What notes have a rank greater than 2, with mexico as the country?
### Context:
CREATE TABLE table_name_64 (notes VARCHAR, rank VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_64 WHERE rank > 2 AND country = "mexico" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bronzes for teams with more than 0 silver and a total under 1?
### Context:
CREATE TABLE table_name_22 (bronze INTEGER, silver VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT SUM(bronze) FROM table_name_22 WHERE silver > 0 AND total < 1 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of golds for teams with 1 bronze, less than 3 silver, and a total over 2?
### Context:
CREATE TABLE table_name_55 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT AVG(gold) FROM table_name_55 WHERE bronze = 1 AND total > 2 AND silver < 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 type of yacht has a LOA of 15.15 metres?
### Context:
CREATE TABLE table_name_94 (yacht VARCHAR, loa__metres_ VARCHAR) [/INST]
### Response:
SELECT yacht AS Type FROM table_name_94 WHERE loa__metres_ = 15.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 Soap Opera with the character Teemu Luotola?
### Context:
CREATE TABLE table_name_81 (soap_opera VARCHAR, character VARCHAR) [/INST]
### Response:
SELECT soap_opera FROM table_name_81 WHERE character = "teemu luotola" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 beer has a record of 4.08?
### Context:
CREATE TABLE table_name_67 (beer VARCHAR, recorded VARCHAR) [/INST]
### Response:
SELECT beer FROM table_name_67 WHERE recorded = 4.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:
Which round has an Opposing Team of manchester united?
### Context:
CREATE TABLE table_name_64 (round VARCHAR, opposing_team VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_64 WHERE opposing_team = "manchester united" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Date has an Against larger than 0?
### Context:
CREATE TABLE table_name_28 (date VARCHAR, against INTEGER) [/INST]
### Response:
SELECT date FROM table_name_28 WHERE against > 0 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Against has a Round of fourth round?
### Context:
CREATE TABLE table_name_69 (against INTEGER, round VARCHAR) [/INST]
### Response:
SELECT MIN(against) FROM table_name_69 WHERE round = "fourth round" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on 17/02/2008?
### Context:
CREATE TABLE table_name_1 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_1 WHERE date = "17/02/2008" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average quantity for coaches manufactured in 1921/23, and had 40 seats?
### Context:
CREATE TABLE table_name_87 (quantity INTEGER, year_s__of_manufacture VARCHAR, seats VARCHAR) [/INST]
### Response:
SELECT AVG(quantity) FROM table_name_87 WHERE year_s__of_manufacture = "1921/23" AND seats = "40" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 class to 1928 value had years of manufacture of 1921/23 and class from 1928 of BCi-21?
### Context:
CREATE TABLE table_name_21 (class_to_1928 VARCHAR, year_s__of_manufacture VARCHAR, class_from_1928 VARCHAR) [/INST]
### Response:
SELECT class_to_1928 FROM table_name_21 WHERE year_s__of_manufacture = "1921/23" AND class_from_1928 = "bci-21" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest quantity having a Class to 1928 of BDi-21?
### Context:
CREATE TABLE table_name_79 (quantity INTEGER, class_to_1928 VARCHAR) [/INST]
### Response:
SELECT MIN(quantity) FROM table_name_79 WHERE class_to_1928 = "bdi-21" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which class from 1928 had a class to 1928 of BDi-21?
### Context:
CREATE TABLE table_name_88 (class_from_1928 VARCHAR, class_to_1928 VARCHAR) [/INST]
### Response:
SELECT class_from_1928 FROM table_name_88 WHERE class_to_1928 = "bdi-21" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were the remarks for the coach having a class from 1928 of Cid-21B?
### Context:
CREATE TABLE table_name_99 (remarks VARCHAR, class_from_1928 VARCHAR) [/INST]
### Response:
SELECT remarks FROM table_name_99 WHERE class_from_1928 = "cid-21b" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 B Score has a Total larger than 15.325, and an A Score smaller than 6.4?
### Context:
CREATE TABLE table_name_2 (b_score INTEGER, total VARCHAR, a_score VARCHAR) [/INST]
### Response:
SELECT SUM(b_score) FROM table_name_2 WHERE total > 15.325 AND a_score < 6.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 Total has an A Score of 6.5, and a Position larger than 5?
### Context:
CREATE TABLE table_name_79 (total INTEGER, a_score VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_79 WHERE a_score = 6.5 AND position > 5 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of week 11?
### Context:
CREATE TABLE table_name_20 (date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_20 WHERE week = 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:
What is the latest week when the chicago bears are the opponent?
### Context:
CREATE TABLE table_name_27 (week INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT MAX(week) FROM table_name_27 WHERE opponent = "chicago bears" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 song placed higher than#4?
### Context:
CREATE TABLE table_name_41 (song VARCHAR, place INTEGER) [/INST]
### Response:
SELECT song FROM table_name_41 WHERE place > 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 is the artist that drew higher than 4?
### Context:
CREATE TABLE table_name_33 (artist VARCHAR, draw INTEGER) [/INST]
### Response:
SELECT artist FROM table_name_33 WHERE draw > 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's the total starts with more points than 1 and the driver is Nasser Al-Attiyah?
### Context:
CREATE TABLE table_name_47 (starts VARCHAR, driver VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(starts) FROM table_name_47 WHERE driver = "nasser al-attiyah" AND points > 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's the smallest number of podiums having more than 6 starts and 5 finishes?
### Context:
CREATE TABLE table_name_82 (podiums INTEGER, finishes VARCHAR, starts VARCHAR) [/INST]
### Response:
SELECT MIN(podiums) FROM table_name_82 WHERE finishes = 5 AND starts > 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's the number of stage wins for Federico Villagra having more than 1 finish, less than 8 starts and less than 1 podium?
### Context:
CREATE TABLE table_name_41 (stage_wins VARCHAR, starts VARCHAR, driver VARCHAR, finishes VARCHAR, podiums VARCHAR) [/INST]
### Response:
SELECT COUNT(stage_wins) FROM table_name_41 WHERE finishes > 1 AND podiums < 1 AND driver = "federico villagra" AND starts < 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's the finishes for Lambros Athanassoulas having 0 podiums and 0 stage wins?
### Context:
CREATE TABLE table_name_57 (finishes INTEGER, driver VARCHAR, podiums VARCHAR, stage_wins VARCHAR) [/INST]
### Response:
SELECT SUM(finishes) FROM table_name_57 WHERE podiums = 0 AND stage_wins = 0 AND driver = "lambros athanassoulas" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of electorates (2003) reserved for sc with a constituency number of 50?
### Context:
CREATE TABLE table_name_80 (number_of_electorates__2003_ INTEGER, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) [/INST]
### Response:
SELECT AVG(number_of_electorates__2003_) FROM table_name_80 WHERE reserved_for___sc___st__none_ = "sc" AND constituency_number = "50" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Finals have a Pre-Season larger than 0?
### Context:
CREATE TABLE table_name_52 (finals INTEGER, pre_season INTEGER) [/INST]
### Response:
SELECT MIN(finals) FROM table_name_52 WHERE pre_season > 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:
How much A-League has a Pre-Season larger than 0?
### Context:
CREATE TABLE table_name_85 (a_league VARCHAR, pre_season INTEGER) [/INST]
### Response:
SELECT COUNT(a_league) FROM table_name_85 WHERE pre_season > 0 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the last issue entry for Aron's Absurd Armada?
### Context:
CREATE TABLE table_name_49 (last_issue VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT last_issue FROM table_name_49 WHERE title = "aron's absurd armada" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title that was first published in August 2010?
### Context:
CREATE TABLE table_name_39 (title VARCHAR, first_issue VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_39 WHERE first_issue = "august 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:
What is the title that was first published in February 2009 and is still ongoing?
### Context:
CREATE TABLE table_name_44 (title VARCHAR, last_issue VARCHAR, first_issue VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_44 WHERE last_issue = "ongoing" AND first_issue = "february 2009" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 last issue entry of Time and Again?
### Context:
CREATE TABLE table_name_55 (last_issue VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT last_issue FROM table_name_55 WHERE title = "time and again" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What the rank of the Virgin Islands athlete with react under 0.168?
### Context:
CREATE TABLE table_name_44 (rank VARCHAR, react VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_44 WHERE react < 0.168 AND nationality = "virgin islands" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest rank for Chris Brown with react greater than 0.244?
### Context:
CREATE TABLE table_name_44 (rank INTEGER, athlete VARCHAR, react VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_44 WHERE athlete = "chris brown" AND react > 0.244 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of an athlete from Belgium with react greater than 0.162?
### Context:
CREATE TABLE table_name_38 (rank INTEGER, nationality VARCHAR, react VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_38 WHERE nationality = "belgium" AND react > 0.162 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the 2008 that has 3.4 in 2009 and more than 2.9 in 2005?
### Context:
CREATE TABLE table_name_35 (Id VARCHAR) [/INST]
### Response:
SELECT MAX(2008) FROM table_name_35 WHERE 2009 = 3.4 AND 2005 > 2.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's the 2006 if there's less than 6.7 in 2007 and less than 3.4 in 2009?
### Context:
CREATE TABLE table_name_46 (Id VARCHAR) [/INST]
### Response:
SELECT SUM(2006) FROM table_name_46 WHERE 2007 < 6.7 AND 2009 < 3.4 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the total in 2005 if there's more than 10.2 in 2006, less than 29.5 in 2007, more than 4.9 in 2009 and less than 43.8 in 2010?
### Context:
CREATE TABLE table_name_1 (Id VARCHAR) [/INST]
### Response:
SELECT COUNT(2005) FROM table_name_1 WHERE 2010 < 43.8 AND 2007 < 29.5 AND 2009 > 4.9 AND 2006 > 10.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 2009 when there's 11.8 in 2005 and less than 12.6 in 2006?
### Context:
CREATE TABLE table_name_45 (Id VARCHAR) [/INST]
### Response:
SELECT MIN(2009) FROM table_name_45 WHERE 2005 = 11.8 AND 2006 < 12.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's the 2005 of TV3 when there is less than 42 in 2007 and less than 29.5 in 2010?
### Context:
CREATE TABLE table_name_36 (tv_station__operator_ VARCHAR) [/INST]
### Response:
SELECT MAX(2005) FROM table_name_36 WHERE 2007 < 42 AND tv_station__operator_ = "tv3" AND 2010 < 29.5 </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.