instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
In what year did Morgan Brian win? | CREATE TABLE table_name_75 (year INTEGER, winner VARCHAR) | SELECT AVG(year) FROM table_name_75 WHERE winner = "morgan brian" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (year INTEGER, winner VARCHAR) Question: In what year did Morgan Brian win? [/INST] SELECT AVG(year) FROM table_name_75 WHERE winner = "morgan brian" </s> |
Who is the winner who attended college at Connecticut and is from North Syracuse, NY? | CREATE TABLE table_name_63 (winner VARCHAR, college VARCHAR, hometown VARCHAR) | SELECT winner FROM table_name_63 WHERE college = "connecticut" AND hometown = "north syracuse, ny" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (winner VARCHAR, college VARCHAR, hometown VARCHAR) Question: Who is the winner who attended college at Connecticut and is from North Syracuse, NY? [/INST] SELECT winner FROM table_name_63 WHERE co... |
What is the hometown of the player who went to college at USC? | CREATE TABLE table_name_33 (hometown VARCHAR, college VARCHAR) | SELECT hometown FROM table_name_33 WHERE college = "usc" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (hometown VARCHAR, college VARCHAR) Question: What is the hometown of the player who went to college at USC? [/INST] SELECT hometown FROM table_name_33 WHERE college = "usc" </s> |
What is the lowest Draws, when Against is "1547", and when Wins is greater than 3? | CREATE TABLE table_name_42 (draws INTEGER, against VARCHAR, wins VARCHAR) | SELECT MIN(draws) FROM table_name_42 WHERE against = 1547 AND wins > 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (draws INTEGER, against VARCHAR, wins VARCHAR) Question: What is the lowest Draws, when Against is "1547", and when Wins is greater than 3? [/INST] SELECT MIN(draws) FROM table_name_42 WHERE agains... |
What is the total number of Wins, when Losses is "6", and when Draws is greater than "0"? | CREATE TABLE table_name_70 (wins VARCHAR, losses VARCHAR, draws VARCHAR) | SELECT COUNT(wins) FROM table_name_70 WHERE losses = 6 AND draws > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (wins VARCHAR, losses VARCHAR, draws VARCHAR) Question: What is the total number of Wins, when Losses is "6", and when Draws is greater than "0"? [/INST] SELECT COUNT(wins) FROM table_name_70 WHERE... |
What is the lowest Draws, when Byes is less than 2? | CREATE TABLE table_name_6 (draws INTEGER, byes INTEGER) | SELECT MIN(draws) FROM table_name_6 WHERE byes < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (draws INTEGER, byes INTEGER) Question: What is the lowest Draws, when Byes is less than 2? [/INST] SELECT MIN(draws) FROM table_name_6 WHERE byes < 2 </s> |
What is the total number of Draws, when Against is "1134", and when Byes is less than 2? | CREATE TABLE table_name_21 (draws VARCHAR, against VARCHAR, byes VARCHAR) | SELECT COUNT(draws) FROM table_name_21 WHERE against = 1134 AND byes < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (draws VARCHAR, against VARCHAR, byes VARCHAR) Question: What is the total number of Draws, when Against is "1134", and when Byes is less than 2? [/INST] SELECT COUNT(draws) FROM table_name_21 WHER... |
What is the sum of Wins, when Against is less than 1033, when Golden Rivers is "Nullawil", and when Byes is less than 2? | CREATE TABLE table_name_85 (wins INTEGER, byes VARCHAR, against VARCHAR, golden_rivers VARCHAR) | SELECT SUM(wins) FROM table_name_85 WHERE against < 1033 AND golden_rivers = "nullawil" AND byes < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (wins INTEGER, byes VARCHAR, against VARCHAR, golden_rivers VARCHAR) Question: What is the sum of Wins, when Against is less than 1033, when Golden Rivers is "Nullawil", and when Byes is less than ... |
Which Year has a Competition of european championships, and Notes of 66.81 m? | CREATE TABLE table_name_26 (year INTEGER, competition VARCHAR, notes VARCHAR) | SELECT SUM(year) FROM table_name_26 WHERE competition = "european championships" AND notes = "66.81 m" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (year INTEGER, competition VARCHAR, notes VARCHAR) Question: Which Year has a Competition of european championships, and Notes of 66.81 m? [/INST] SELECT SUM(year) FROM table_name_26 WHERE competit... |
Which Position has a Venue of berlin, germany? | CREATE TABLE table_name_3 (position VARCHAR, venue VARCHAR) | SELECT position FROM table_name_3 WHERE venue = "berlin, germany" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (position VARCHAR, venue VARCHAR) Question: Which Position has a Venue of berlin, germany? [/INST] SELECT position FROM table_name_3 WHERE venue = "berlin, germany" </s> |
Which competition was held in Arles, France? | CREATE TABLE table_name_87 (competition VARCHAR, venue VARCHAR) | SELECT competition FROM table_name_87 WHERE venue = "arles, france" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (competition VARCHAR, venue VARCHAR) Question: Which competition was held in Arles, France? [/INST] SELECT competition FROM table_name_87 WHERE venue = "arles, france" </s> |
What is the M1A1 when the M60A3 was T (Short Tons)? | CREATE TABLE table_name_8 (m1a1_abrams VARCHAR, m60a3_patton VARCHAR) | SELECT m1a1_abrams FROM table_name_8 WHERE m60a3_patton = "t (short tons)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (m1a1_abrams VARCHAR, m60a3_patton VARCHAR) Question: What is the M1A1 when the M60A3 was T (Short Tons)? [/INST] SELECT m1a1_abrams FROM table_name_8 WHERE m60a3_patton = "t (short tons)" </s> |
What is the M60A3 when the M1A1 is T (Short Tons)? | CREATE TABLE table_name_17 (m60a3_patton VARCHAR, m1a1_abrams VARCHAR) | SELECT m60a3_patton FROM table_name_17 WHERE m1a1_abrams = "t (short tons)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (m60a3_patton VARCHAR, m1a1_abrams VARCHAR) Question: What is the M60A3 when the M1A1 is T (Short Tons)? [/INST] SELECT m60a3_patton FROM table_name_17 WHERE m1a1_abrams = "t (short tons)" </s> |
What is the M60A3 that has an M1A1 of Km (mi)? | CREATE TABLE table_name_66 (m60a3_patton VARCHAR, m1a1_abrams VARCHAR) | SELECT m60a3_patton FROM table_name_66 WHERE m1a1_abrams = "km (mi)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (m60a3_patton VARCHAR, m1a1_abrams VARCHAR) Question: What is the M60A3 that has an M1A1 of Km (mi)? [/INST] SELECT m60a3_patton FROM table_name_66 WHERE m1a1_abrams = "km (mi)" </s> |
What is the M60A3 that has 40 rounds as Leclerc? | CREATE TABLE table_name_28 (m60a3_patton VARCHAR, leclerc VARCHAR) | SELECT m60a3_patton FROM table_name_28 WHERE leclerc = "40 rounds" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (m60a3_patton VARCHAR, leclerc VARCHAR) Question: What is the M60A3 that has 40 rounds as Leclerc? [/INST] SELECT m60a3_patton FROM table_name_28 WHERE leclerc = "40 rounds" </s> |
What's the lince when Leclerc was Hp (kw)? | CREATE TABLE table_name_8 (lince VARCHAR, leclerc VARCHAR) | SELECT lince FROM table_name_8 WHERE leclerc = "hp (kw)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (lince VARCHAR, leclerc VARCHAR) Question: What's the lince when Leclerc was Hp (kw)? [/INST] SELECT lince FROM table_name_8 WHERE leclerc = "hp (kw)" </s> |
What is the M1A1 when the Lince was T (Short Tons)? | CREATE TABLE table_name_92 (m1a1_abrams VARCHAR, lince VARCHAR) | SELECT m1a1_abrams FROM table_name_92 WHERE lince = "t (short tons)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (m1a1_abrams VARCHAR, lince VARCHAR) Question: What is the M1A1 when the Lince was T (Short Tons)? [/INST] SELECT m1a1_abrams FROM table_name_92 WHERE lince = "t (short tons)" </s> |
Which Distance has a Time of 2:20.00? | CREATE TABLE table_name_73 (distance VARCHAR, time VARCHAR) | SELECT distance FROM table_name_73 WHERE time = "2:20.00" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (distance VARCHAR, time VARCHAR) Question: Which Distance has a Time of 2:20.00? [/INST] SELECT distance FROM table_name_73 WHERE time = "2:20.00" </s> |
Which Distance has an Event of breaststroke, and a Location of beijing, chn? | CREATE TABLE table_name_16 (distance VARCHAR, event VARCHAR, location VARCHAR) | SELECT distance FROM table_name_16 WHERE event = "breaststroke" AND location = "beijing, chn" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (distance VARCHAR, event VARCHAR, location VARCHAR) Question: Which Distance has an Event of breaststroke, and a Location of beijing, chn? [/INST] SELECT distance FROM table_name_16 WHERE event = "... |
What Meet has a Time of 1:04.84? | CREATE TABLE table_name_5 (meet VARCHAR, time VARCHAR) | SELECT meet FROM table_name_5 WHERE time = "1:04.84" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (meet VARCHAR, time VARCHAR) Question: What Meet has a Time of 1:04.84? [/INST] SELECT meet FROM table_name_5 WHERE time = "1:04.84" </s> |
What season had a viewer rank of #4? | CREATE TABLE table_name_58 (season VARCHAR, viewer_rank___number_ VARCHAR) | SELECT COUNT(season) FROM table_name_58 WHERE viewer_rank___number_ = "#4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (season VARCHAR, viewer_rank___number_ VARCHAR) Question: What season had a viewer rank of #4? [/INST] SELECT COUNT(season) FROM table_name_58 WHERE viewer_rank___number_ = "#4" </s> |
Which season had less than 25.4 viewers and had a viewer rank of #6? | CREATE TABLE table_name_43 (season INTEGER, households_viewers__in_millions_ VARCHAR, viewer_rank___number_ VARCHAR) | SELECT MIN(season) FROM table_name_43 WHERE households_viewers__in_millions_ < 25.4 AND viewer_rank___number_ = "#6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (season INTEGER, households_viewers__in_millions_ VARCHAR, viewer_rank___number_ VARCHAR) Question: Which season had less than 25.4 viewers and had a viewer rank of #6? [/INST] SELECT MIN(season) F... |
When did the season premiere that had a viewer rank of #6? | CREATE TABLE table_name_12 (season VARCHAR, viewer_rank___number_ VARCHAR) | SELECT season AS premiere FROM table_name_12 WHERE viewer_rank___number_ = "#6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (season VARCHAR, viewer_rank___number_ VARCHAR) Question: When did the season premiere that had a viewer rank of #6? [/INST] SELECT season AS premiere FROM table_name_12 WHERE viewer_rank___number_... |
What is the total number of gold medals of the ranked 2nd nation, which has less than 2 silvers? | CREATE TABLE table_name_16 (gold VARCHAR, rank VARCHAR, silver VARCHAR) | SELECT COUNT(gold) FROM table_name_16 WHERE rank = "2" AND silver < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (gold VARCHAR, rank VARCHAR, silver VARCHAR) Question: What is the total number of gold medals of the ranked 2nd nation, which has less than 2 silvers? [/INST] SELECT COUNT(gold) FROM table_name_16... |
What is the total number of gold medals of the nation with 0 silver and more than 1 bronze? | CREATE TABLE table_name_47 (gold VARCHAR, silver VARCHAR, bronze VARCHAR) | SELECT COUNT(gold) FROM table_name_47 WHERE silver = 0 AND bronze > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (gold VARCHAR, silver VARCHAR, bronze VARCHAR) Question: What is the total number of gold medals of the nation with 0 silver and more than 1 bronze? [/INST] SELECT COUNT(gold) FROM table_name_47 WH... |
What is the lowest number of bronze of the nation with more than 13 total medals, more than 10 gold medals, and less than 22 silvers? | CREATE TABLE table_name_3 (bronze INTEGER, silver VARCHAR, total VARCHAR, gold VARCHAR) | SELECT MIN(bronze) FROM table_name_3 WHERE total > 13 AND gold > 10 AND silver < 22 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (bronze INTEGER, silver VARCHAR, total VARCHAR, gold VARCHAR) Question: What is the lowest number of bronze of the nation with more than 13 total medals, more than 10 gold medals, and less than 22 s... |
What was the main date of the round with 20 fixtures? | CREATE TABLE table_name_81 (main_date VARCHAR, number_of_fixtures VARCHAR) | SELECT main_date FROM table_name_81 WHERE number_of_fixtures = 20 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (main_date VARCHAR, number_of_fixtures VARCHAR) Question: What was the main date of the round with 20 fixtures? [/INST] SELECT main_date FROM table_name_81 WHERE number_of_fixtures = 20 </s> |
What were the new entries for the Semi-Finals round with fewer than 8 fixtures? | CREATE TABLE table_name_97 (new_entries_this_round VARCHAR, number_of_fixtures VARCHAR, round VARCHAR) | SELECT new_entries_this_round FROM table_name_97 WHERE number_of_fixtures < 8 AND round = "semi-finals" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (new_entries_this_round VARCHAR, number_of_fixtures VARCHAR, round VARCHAR) Question: What were the new entries for the Semi-Finals round with fewer than 8 fixtures? [/INST] SELECT new_entries_this... |
What was the club when home ground was Central Reserve? | CREATE TABLE table_name_59 (club VARCHAR, home_ground VARCHAR) | SELECT club FROM table_name_59 WHERE home_ground = "central reserve" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (club VARCHAR, home_ground VARCHAR) Question: What was the club when home ground was Central Reserve? [/INST] SELECT club FROM table_name_59 WHERE home_ground = "central reserve" </s> |
What's the GFL Premiership when the home ground was Leopold Memorial Park? | CREATE TABLE table_name_4 (gfl_premierships VARCHAR, home_ground VARCHAR) | SELECT gfl_premierships FROM table_name_4 WHERE home_ground = "leopold memorial park" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (gfl_premierships VARCHAR, home_ground VARCHAR) Question: What's the GFL Premiership when the home ground was Leopold Memorial Park? [/INST] SELECT gfl_premierships FROM table_name_4 WHERE home_grou... |
What's the location where the Years in GFL was 1988-? | CREATE TABLE table_name_39 (location VARCHAR, years_in_gfl VARCHAR) | SELECT location FROM table_name_39 WHERE years_in_gfl = "1988-" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (location VARCHAR, years_in_gfl VARCHAR) Question: What's the location where the Years in GFL was 1988-? [/INST] SELECT location FROM table_name_39 WHERE years_in_gfl = "1988-" </s> |
What's the home ground of the Lions? | CREATE TABLE table_name_15 (home_ground VARCHAR, nickname VARCHAR) | SELECT home_ground FROM table_name_15 WHERE nickname = "lions" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (home_ground VARCHAR, nickname VARCHAR) Question: What's the home ground of the Lions? [/INST] SELECT home_ground FROM table_name_15 WHERE nickname = "lions" </s> |
What is the location of the Saints having 1979- as Years in GFL? | CREATE TABLE table_name_37 (location VARCHAR, years_in_gfl VARCHAR, nickname VARCHAR) | SELECT location FROM table_name_37 WHERE years_in_gfl = "1979-" AND nickname = "saints" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (location VARCHAR, years_in_gfl VARCHAR, nickname VARCHAR) Question: What is the location of the Saints having 1979- as Years in GFL? [/INST] SELECT location FROM table_name_37 WHERE years_in_gfl =... |
What is the type of the player who ended in 2013, had a summer transfer window, and moved from kalmar ff? | CREATE TABLE table_name_34 (type VARCHAR, moving_from VARCHAR, ends VARCHAR, transfer_window VARCHAR) | SELECT type FROM table_name_34 WHERE ends = 2013 AND transfer_window = "summer" AND moving_from = "kalmar ff" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (type VARCHAR, moving_from VARCHAR, ends VARCHAR, transfer_window VARCHAR) Question: What is the type of the player who ended in 2013, had a summer transfer window, and moved from kalmar ff? [/INST... |
Where did the player with a transfer type, a summer transfer window, and ended before 2013 move from? | CREATE TABLE table_name_38 (moving_from VARCHAR, ends VARCHAR, type VARCHAR, transfer_window VARCHAR) | SELECT moving_from FROM table_name_38 WHERE type = "transfer" AND transfer_window = "summer" AND ends < 2013 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (moving_from VARCHAR, ends VARCHAR, type VARCHAR, transfer_window VARCHAR) Question: Where did the player with a transfer type, a summer transfer window, and ended before 2013 move from? [/INST] SE... |
What is the transfer window for larsson? | CREATE TABLE table_name_8 (transfer_window VARCHAR, name VARCHAR) | SELECT transfer_window FROM table_name_8 WHERE name = "larsson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (transfer_window VARCHAR, name VARCHAR) Question: What is the transfer window for larsson? [/INST] SELECT transfer_window FROM table_name_8 WHERE name = "larsson" </s> |
What is the average end year of the player from swe and a summer transfer window? | CREATE TABLE table_name_81 (ends INTEGER, nat VARCHAR, transfer_window VARCHAR) | SELECT AVG(ends) FROM table_name_81 WHERE nat = "swe" AND transfer_window = "summer" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (ends INTEGER, nat VARCHAR, transfer_window VARCHAR) Question: What is the average end year of the player from swe and a summer transfer window? [/INST] SELECT AVG(ends) FROM table_name_81 WHERE na... |
What was the outcome on 2 December 2012? | CREATE TABLE table_name_26 (outcome VARCHAR, date VARCHAR) | SELECT outcome FROM table_name_26 WHERE date = "2 december 2012" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (outcome VARCHAR, date VARCHAR) Question: What was the outcome on 2 December 2012? [/INST] SELECT outcome FROM table_name_26 WHERE date = "2 december 2012" </s> |
What is the score of the final in $10,000 – tarakan , indonesia f2? | CREATE TABLE table_name_97 (score_in_final VARCHAR, tournament VARCHAR) | SELECT score_in_final FROM table_name_97 WHERE tournament = "$10,000 – tarakan , indonesia f2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (score_in_final VARCHAR, tournament VARCHAR) Question: What is the score of the final in $10,000 – tarakan , indonesia f2? [/INST] SELECT score_in_final FROM table_name_97 WHERE tournament = "$10,0... |
What was the place for the score 70-72-69=211? | CREATE TABLE table_name_60 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_60 WHERE score = 70 - 72 - 69 = 211 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (place VARCHAR, score VARCHAR) Question: What was the place for the score 70-72-69=211? [/INST] SELECT place FROM table_name_60 WHERE score = 70 - 72 - 69 = 211 </s> |
What was the player for t9 and a score of 73-69-74=216? | CREATE TABLE table_name_97 (player VARCHAR, place VARCHAR, score VARCHAR) | SELECT player FROM table_name_97 WHERE place = "t9" AND score = 73 - 69 - 74 = 216 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (player VARCHAR, place VARCHAR, score VARCHAR) Question: What was the player for t9 and a score of 73-69-74=216? [/INST] SELECT player FROM table_name_97 WHERE place = "t9" AND score = 73 - 69 - 74... |
What was Stacy Lewis' place? | CREATE TABLE table_name_50 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_50 WHERE player = "stacy lewis" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (place VARCHAR, player VARCHAR) Question: What was Stacy Lewis' place? [/INST] SELECT place FROM table_name_50 WHERE player = "stacy lewis" </s> |
What was the score when the tie no was 13? | CREATE TABLE table_name_87 (score VARCHAR, tie_no VARCHAR) | SELECT score FROM table_name_87 WHERE tie_no = "13" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (score VARCHAR, tie_no VARCHAR) Question: What was the score when the tie no was 13? [/INST] SELECT score FROM table_name_87 WHERE tie_no = "13" </s> |
What was the score when Burnley was the away team? | CREATE TABLE table_name_31 (score VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_31 WHERE away_team = "burnley" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (score VARCHAR, away_team VARCHAR) Question: What was the score when Burnley was the away team? [/INST] SELECT score FROM table_name_31 WHERE away_team = "burnley" </s> |
What is the To par when the finish is 66? | CREATE TABLE table_name_32 (to_par VARCHAR, finish VARCHAR) | SELECT to_par FROM table_name_32 WHERE finish = "66" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (to_par VARCHAR, finish VARCHAR) Question: What is the To par when the finish is 66? [/INST] SELECT to_par FROM table_name_32 WHERE finish = "66" </s> |
When the year won is 1981, 1987, and the finish is t46, what is the lowest total? | CREATE TABLE table_name_58 (total INTEGER, finish VARCHAR, year_s__won VARCHAR) | SELECT MIN(total) FROM table_name_58 WHERE finish = "t46" AND year_s__won = "1981, 1987" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (total INTEGER, finish VARCHAR, year_s__won VARCHAR) Question: When the year won is 1981, 1987, and the finish is t46, what is the lowest total? [/INST] SELECT MIN(total) FROM table_name_58 WHERE f... |
Which year was won with a finish of 68 | CREATE TABLE table_name_25 (year_s__won VARCHAR, finish VARCHAR) | SELECT year_s__won FROM table_name_25 WHERE finish = "68" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (year_s__won VARCHAR, finish VARCHAR) Question: Which year was won with a finish of 68 [/INST] SELECT year_s__won FROM table_name_25 WHERE finish = "68" </s> |
WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT OF 84.15? | CREATE TABLE table_name_19 (snatch INTEGER, total__kg_ VARCHAR, bodyweight VARCHAR) | SELECT AVG(snatch) FROM table_name_19 WHERE total__kg_ > 318 AND bodyweight = 84.15 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (snatch INTEGER, total__kg_ VARCHAR, bodyweight VARCHAR) Question: WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT OF 84.15? [/INST] SELECT AVG(snatch) FROM table_name_19 WHER... |
WHAT IS THE SNATCH WITH TOTAL KG SMALLER THAN 318, AND CLEAN JERK LARGER THAN 175? | CREATE TABLE table_name_45 (snatch INTEGER, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR) | SELECT MIN(snatch) FROM table_name_45 WHERE total__kg_ < 318 AND clean_ & _jerk > 175 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (snatch INTEGER, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR) Question: WHAT IS THE SNATCH WITH TOTAL KG SMALLER THAN 318, AND CLEAN JERK LARGER THAN 175? [/INST] SELECT MIN(snatch) FROM tabl... |
What date has 2 for killed, and jaffa as the location? | CREATE TABLE table_name_44 (date VARCHAR, killed VARCHAR, location VARCHAR) | SELECT date FROM table_name_44 WHERE killed = "2" AND location = "jaffa" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (date VARCHAR, killed VARCHAR, location VARCHAR) Question: What date has 2 for killed, and jaffa as the location? [/INST] SELECT date FROM table_name_44 WHERE killed = "2" AND location = "jaffa" </... |
What is the injured that has skierlik as the location? | CREATE TABLE table_name_9 (injured VARCHAR, location VARCHAR) | SELECT injured FROM table_name_9 WHERE location = "skierlik" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (injured VARCHAR, location VARCHAR) Question: What is the injured that has skierlik as the location? [/INST] SELECT injured FROM table_name_9 WHERE location = "skierlik" </s> |
What is the 2nd leg that Team 1 is Union Berlin? | CREATE TABLE table_name_46 (team_1 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_46 WHERE team_1 = "union berlin" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (team_1 VARCHAR) Question: What is the 2nd leg that Team 1 is Union Berlin? [/INST] SELECT 2 AS nd_leg FROM table_name_46 WHERE team_1 = "union berlin" </s> |
What is the Apps for the player with 150 Goals and a Ratio of 0.52? | CREATE TABLE table_name_81 (apps VARCHAR, ratio VARCHAR, goals VARCHAR) | SELECT apps FROM table_name_81 WHERE ratio = 0.52 AND goals = 150 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (apps VARCHAR, ratio VARCHAR, goals VARCHAR) Question: What is the Apps for the player with 150 Goals and a Ratio of 0.52? [/INST] SELECT apps FROM table_name_81 WHERE ratio = 0.52 AND goals = 150 ... |
Which team won at the symmons plains raceway? | CREATE TABLE table_name_42 (team VARCHAR, circuit VARCHAR) | SELECT team FROM table_name_42 WHERE circuit = "symmons plains raceway" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (team VARCHAR, circuit VARCHAR) Question: Which team won at the symmons plains raceway? [/INST] SELECT team FROM table_name_42 WHERE circuit = "symmons plains raceway" </s> |
Which team won at winton motor raceway? | CREATE TABLE table_name_5 (team VARCHAR, circuit VARCHAR) | SELECT team FROM table_name_5 WHERE circuit = "winton motor raceway" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (team VARCHAR, circuit VARCHAR) Question: Which team won at winton motor raceway? [/INST] SELECT team FROM table_name_5 WHERE circuit = "winton motor raceway" </s> |
Which circuit was the atcc round 7 at? | CREATE TABLE table_name_71 (circuit VARCHAR, series VARCHAR) | SELECT circuit FROM table_name_71 WHERE series = "atcc round 7" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (circuit VARCHAR, series VARCHAR) Question: Which circuit was the atcc round 7 at? [/INST] SELECT circuit FROM table_name_71 WHERE series = "atcc round 7" </s> |
Which circuit did winfield team nissan win for the tooheys 1000? | CREATE TABLE table_name_68 (circuit VARCHAR, team VARCHAR, series VARCHAR) | SELECT circuit FROM table_name_68 WHERE team = "winfield team nissan" AND series = "tooheys 1000" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (circuit VARCHAR, team VARCHAR, series VARCHAR) Question: Which circuit did winfield team nissan win for the tooheys 1000? [/INST] SELECT circuit FROM table_name_68 WHERE team = "winfield team niss... |
What is the date for the tooheys 1000? | CREATE TABLE table_name_44 (date VARCHAR, series VARCHAR) | SELECT date FROM table_name_44 WHERE series = "tooheys 1000" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (date VARCHAR, series VARCHAR) Question: What is the date for the tooheys 1000? [/INST] SELECT date FROM table_name_44 WHERE series = "tooheys 1000" </s> |
what series was in sydney, new south wales? | CREATE TABLE table_name_49 (series VARCHAR, city___state VARCHAR) | SELECT series FROM table_name_49 WHERE city___state = "sydney, new south wales" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (series VARCHAR, city___state VARCHAR) Question: what series was in sydney, new south wales? [/INST] SELECT series FROM table_name_49 WHERE city___state = "sydney, new south wales" </s> |
What was the rank for 1.26 Ø-Pts in game 1458? | CREATE TABLE table_name_86 (rank VARCHAR, ø_pts VARCHAR, games VARCHAR) | SELECT COUNT(rank) FROM table_name_86 WHERE ø_pts > 1.26 AND games = 1458 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (rank VARCHAR, ø_pts VARCHAR, games VARCHAR) Question: What was the rank for 1.26 Ø-Pts in game 1458? [/INST] SELECT COUNT(rank) FROM table_name_86 WHERE ø_pts > 1.26 AND games = 1458 </s> |
What is the Outcome of the match with Partner Marcella Mesker and a Score of 6–4, 4–6, 4–6? | CREATE TABLE table_name_61 (outcome VARCHAR, partner VARCHAR, score VARCHAR) | SELECT outcome FROM table_name_61 WHERE partner = "marcella mesker" AND score = "6–4, 4–6, 4–6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (outcome VARCHAR, partner VARCHAR, score VARCHAR) Question: What is the Outcome of the match with Partner Marcella Mesker and a Score of 6–4, 4–6, 4–6? [/INST] SELECT outcome FROM table_name_61 WHE... |
What is the Surface of the match with a Score of 2–6, 6–4, 7–6? | CREATE TABLE table_name_30 (surface VARCHAR, score VARCHAR) | SELECT surface FROM table_name_30 WHERE score = "2–6, 6–4, 7–6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (surface VARCHAR, score VARCHAR) Question: What is the Surface of the match with a Score of 2–6, 6–4, 7–6? [/INST] SELECT surface FROM table_name_30 WHERE score = "2–6, 6–4, 7–6" </s> |
What is the Surface of the match played on October 5, 1987? | CREATE TABLE table_name_77 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_77 WHERE date = "october 5, 1987" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (surface VARCHAR, date VARCHAR) Question: What is the Surface of the match played on October 5, 1987? [/INST] SELECT surface FROM table_name_77 WHERE date = "october 5, 1987" </s> |
What is the Date of the match with a Score of 0–6, 2–6 with Partner Marcella Mesker? | CREATE TABLE table_name_57 (date VARCHAR, partner VARCHAR, score VARCHAR) | SELECT date FROM table_name_57 WHERE partner = "marcella mesker" AND score = "0–6, 2–6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (date VARCHAR, partner VARCHAR, score VARCHAR) Question: What is the Date of the match with a Score of 0–6, 2–6 with Partner Marcella Mesker? [/INST] SELECT date FROM table_name_57 WHERE partner = ... |
Who is the Opponents on May 3, 1982? | CREATE TABLE table_name_73 (opponents VARCHAR, date VARCHAR) | SELECT opponents FROM table_name_73 WHERE date = "may 3, 1982" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (opponents VARCHAR, date VARCHAR) Question: Who is the Opponents on May 3, 1982? [/INST] SELECT opponents FROM table_name_73 WHERE date = "may 3, 1982" </s> |
What is the Score of the match on May 21, 1984 with Outcome of runner-up? | CREATE TABLE table_name_94 (score VARCHAR, outcome VARCHAR, date VARCHAR) | SELECT score FROM table_name_94 WHERE outcome = "runner-up" AND date = "may 21, 1984" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (score VARCHAR, outcome VARCHAR, date VARCHAR) Question: What is the Score of the match on May 21, 1984 with Outcome of runner-up? [/INST] SELECT score FROM table_name_94 WHERE outcome = "runner-up... |
What is the date of the 200m individual medley? | CREATE TABLE table_name_70 (date VARCHAR, event VARCHAR) | SELECT date FROM table_name_70 WHERE event = "200m individual medley" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (date VARCHAR, event VARCHAR) Question: What is the date of the 200m individual medley? [/INST] SELECT date FROM table_name_70 WHERE event = "200m individual medley" </s> |
Which team was team 1 in the match where team 2 was olympique lyonnais (d2)? | CREATE TABLE table_name_20 (team_1 VARCHAR, team_2 VARCHAR) | SELECT team_1 FROM table_name_20 WHERE team_2 = "olympique lyonnais (d2)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (team_1 VARCHAR, team_2 VARCHAR) Question: Which team was team 1 in the match where team 2 was olympique lyonnais (d2)? [/INST] SELECT team_1 FROM table_name_20 WHERE team_2 = "olympique lyonnais (... |
What was the score of the match where paris sg (d1) was team 1? | CREATE TABLE table_name_63 (score VARCHAR, team_1 VARCHAR) | SELECT score FROM table_name_63 WHERE team_1 = "paris sg (d1)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (score VARCHAR, team_1 VARCHAR) Question: What was the score of the match where paris sg (d1) was team 1? [/INST] SELECT score FROM table_name_63 WHERE team_1 = "paris sg (d1)" </s> |
Which Week has a Result of w 23–22? | CREATE TABLE table_name_77 (week VARCHAR, result VARCHAR) | SELECT week FROM table_name_77 WHERE result = "w 23–22" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (week VARCHAR, result VARCHAR) Question: Which Week has a Result of w 23–22? [/INST] SELECT week FROM table_name_77 WHERE result = "w 23–22" </s> |
When was there a bye result? | CREATE TABLE table_name_32 (date VARCHAR, result VARCHAR) | SELECT date FROM table_name_32 WHERE result = "bye" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (date VARCHAR, result VARCHAR) Question: When was there a bye result? [/INST] SELECT date FROM table_name_32 WHERE result = "bye" </s> |
When was the attendance 65,806? | CREATE TABLE table_name_40 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_40 WHERE attendance = "65,806" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (date VARCHAR, attendance VARCHAR) Question: When was the attendance 65,806? [/INST] SELECT date FROM table_name_40 WHERE attendance = "65,806" </s> |
Who was the opponent after week 16? | CREATE TABLE table_name_43 (opponent VARCHAR, week INTEGER) | SELECT opponent FROM table_name_43 WHERE week > 16 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (opponent VARCHAR, week INTEGER) Question: Who was the opponent after week 16? [/INST] SELECT opponent FROM table_name_43 WHERE week > 16 </s> |
What is Commissioned, when Laid Down is "6 September 2003"? | CREATE TABLE table_name_78 (commissioned VARCHAR, laid_down VARCHAR) | SELECT commissioned FROM table_name_78 WHERE laid_down = "6 september 2003" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (commissioned VARCHAR, laid_down VARCHAR) Question: What is Commissioned, when Laid Down is "6 September 2003"? [/INST] SELECT commissioned FROM table_name_78 WHERE laid_down = "6 september 2003" <... |
What is Launched, when Laid Down is "31 October 1981"? | CREATE TABLE table_name_63 (launched VARCHAR, laid_down VARCHAR) | SELECT launched FROM table_name_63 WHERE laid_down = "31 october 1981" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (launched VARCHAR, laid_down VARCHAR) Question: What is Launched, when Laid Down is "31 October 1981"? [/INST] SELECT launched FROM table_name_63 WHERE laid_down = "31 october 1981" </s> |
What is Ship, when Commissioned is "13 March 1982"? | CREATE TABLE table_name_54 (ship VARCHAR, commissioned VARCHAR) | SELECT ship FROM table_name_54 WHERE commissioned = "13 march 1982" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (ship VARCHAR, commissioned VARCHAR) Question: What is Ship, when Commissioned is "13 March 1982"? [/INST] SELECT ship FROM table_name_54 WHERE commissioned = "13 march 1982" </s> |
What is Launched, when Commissioned is "25 July 1998"? | CREATE TABLE table_name_50 (launched VARCHAR, commissioned VARCHAR) | SELECT launched FROM table_name_50 WHERE commissioned = "25 july 1998" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (launched VARCHAR, commissioned VARCHAR) Question: What is Launched, when Commissioned is "25 July 1998"? [/INST] SELECT launched FROM table_name_50 WHERE commissioned = "25 july 1998" </s> |
What is Laid Down, when Hull Number is "CVN-69"? | CREATE TABLE table_name_85 (laid_down VARCHAR, hull_number VARCHAR) | SELECT laid_down FROM table_name_85 WHERE hull_number = "cvn-69" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (laid_down VARCHAR, hull_number VARCHAR) Question: What is Laid Down, when Hull Number is "CVN-69"? [/INST] SELECT laid_down FROM table_name_85 WHERE hull_number = "cvn-69" </s> |
What is Laid Down, when Commissioned is "11 November 1989"? | CREATE TABLE table_name_90 (laid_down VARCHAR, commissioned VARCHAR) | SELECT laid_down FROM table_name_90 WHERE commissioned = "11 november 1989" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (laid_down VARCHAR, commissioned VARCHAR) Question: What is Laid Down, when Commissioned is "11 November 1989"? [/INST] SELECT laid_down FROM table_name_90 WHERE commissioned = "11 november 1989" <... |
Can you tell me the Position that has the Entrant of j ampt? | CREATE TABLE table_name_67 (position VARCHAR, entrant VARCHAR) | SELECT position FROM table_name_67 WHERE entrant = "j ampt" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (position VARCHAR, entrant VARCHAR) Question: Can you tell me the Position that has the Entrant of j ampt? [/INST] SELECT position FROM table_name_67 WHERE entrant = "j ampt" </s> |
Can you tell me the Entrant that has the Laps of 17? | CREATE TABLE table_name_77 (entrant VARCHAR, laps VARCHAR) | SELECT entrant FROM table_name_77 WHERE laps = 17 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (entrant VARCHAR, laps VARCHAR) Question: Can you tell me the Entrant that has the Laps of 17? [/INST] SELECT entrant FROM table_name_77 WHERE laps = 17 </s> |
Can you tell me the Position that has the Driver of bib stillwell? | CREATE TABLE table_name_41 (position VARCHAR, driver VARCHAR) | SELECT position FROM table_name_41 WHERE driver = "bib stillwell" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (position VARCHAR, driver VARCHAR) Question: Can you tell me the Position that has the Driver of bib stillwell? [/INST] SELECT position FROM table_name_41 WHERE driver = "bib stillwell" </s> |
What are the results for a game with an attendance of 41,429? | CREATE TABLE table_name_70 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_70 WHERE attendance = "41,429" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (result VARCHAR, attendance VARCHAR) Question: What are the results for a game with an attendance of 41,429? [/INST] SELECT result FROM table_name_70 WHERE attendance = "41,429" </s> |
Who were the opponents when there was an attendance of 48,165? | CREATE TABLE table_name_1 (opponent_number VARCHAR, attendance VARCHAR) | SELECT opponent_number FROM table_name_1 WHERE attendance = "48,165" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (opponent_number VARCHAR, attendance VARCHAR) Question: Who were the opponents when there was an attendance of 48,165? [/INST] SELECT opponent_number FROM table_name_1 WHERE attendance = "48,165" </... |
What are the results for the game with 82,113 attending? | CREATE TABLE table_name_41 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_41 WHERE attendance = "82,113" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (result VARCHAR, attendance VARCHAR) Question: What are the results for the game with 82,113 attending? [/INST] SELECT result FROM table_name_41 WHERE attendance = "82,113" </s> |
Who was the girl on week 4 after week 3's Mikaela James? | CREATE TABLE table_name_12 (week_4 VARCHAR, week_3 VARCHAR) | SELECT week_4 FROM table_name_12 WHERE week_3 = "mikaela james" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (week_4 VARCHAR, week_3 VARCHAR) Question: Who was the girl on week 4 after week 3's Mikaela James? [/INST] SELECT week_4 FROM table_name_12 WHERE week_3 = "mikaela james" </s> |
Who was the girl on week 1 that was previous to week 3's Ava Hart? | CREATE TABLE table_name_23 (week_1 VARCHAR, week_3 VARCHAR) | SELECT week_1 FROM table_name_23 WHERE week_3 = "ava hart" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (week_1 VARCHAR, week_3 VARCHAR) Question: Who was the girl on week 1 that was previous to week 3's Ava Hart? [/INST] SELECT week_1 FROM table_name_23 WHERE week_3 = "ava hart" </s> |
Who was the girl on week 2 that was previous to week 4's Chelsie Loraine? | CREATE TABLE table_name_73 (week_2 VARCHAR, week_4 VARCHAR) | SELECT week_2 FROM table_name_73 WHERE week_4 = "chelsie loraine" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (week_2 VARCHAR, week_4 VARCHAR) Question: Who was the girl on week 2 that was previous to week 4's Chelsie Loraine? [/INST] SELECT week_2 FROM table_name_73 WHERE week_4 = "chelsie loraine" </s> |
Who was the girl on week 5 that came after week 3's Mikaela James? | CREATE TABLE table_name_72 (week_5 VARCHAR, week_3 VARCHAR) | SELECT week_5 FROM table_name_72 WHERE week_3 = "mikaela james" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (week_5 VARCHAR, week_3 VARCHAR) Question: Who was the girl on week 5 that came after week 3's Mikaela James? [/INST] SELECT week_5 FROM table_name_72 WHERE week_3 = "mikaela james" </s> |
Who was the girl on week 1 that preceded week 2's Kamila Sulewska? | CREATE TABLE table_name_12 (week_1 VARCHAR, week_2 VARCHAR) | SELECT week_1 FROM table_name_12 WHERE week_2 = "kamila sulewska" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (week_1 VARCHAR, week_2 VARCHAR) Question: Who was the girl on week 1 that preceded week 2's Kamila Sulewska? [/INST] SELECT week_1 FROM table_name_12 WHERE week_2 = "kamila sulewska" </s> |
Who was the girl on week 5 that came after week 3's Shelly Louise? | CREATE TABLE table_name_21 (week_5 VARCHAR, week_3 VARCHAR) | SELECT week_5 FROM table_name_21 WHERE week_3 = "shelly louise" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (week_5 VARCHAR, week_3 VARCHAR) Question: Who was the girl on week 5 that came after week 3's Shelly Louise? [/INST] SELECT week_5 FROM table_name_21 WHERE week_3 = "shelly louise" </s> |
What is 1987-88, when Points is "136"? | CREATE TABLE table_name_24 (points VARCHAR) | SELECT 1987 AS _88 FROM table_name_24 WHERE points = 136 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (points VARCHAR) Question: What is 1987-88, when Points is "136"? [/INST] SELECT 1987 AS _88 FROM table_name_24 WHERE points = 136 </s> |
Name the the highest Draw which has Points of 22 and Goals Conceded smaller than 26? | CREATE TABLE table_name_13 (draw INTEGER, points VARCHAR, goals_conceded VARCHAR) | SELECT MAX(draw) FROM table_name_13 WHERE points = "22" AND goals_conceded < 26 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (draw INTEGER, points VARCHAR, goals_conceded VARCHAR) Question: Name the the highest Draw which has Points of 22 and Goals Conceded smaller than 26? [/INST] SELECT MAX(draw) FROM table_name_13 WHE... |
Name the highest Played of Goals Scored smaller than 18 and a Lost larger than 10? | CREATE TABLE table_name_23 (played INTEGER, goals_scored VARCHAR, lost VARCHAR) | SELECT MAX(played) FROM table_name_23 WHERE goals_scored < 18 AND lost > 10 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (played INTEGER, goals_scored VARCHAR, lost VARCHAR) Question: Name the highest Played of Goals Scored smaller than 18 and a Lost larger than 10? [/INST] SELECT MAX(played) FROM table_name_23 WHERE... |
Name the average Played with a Points of 0*? | CREATE TABLE table_name_72 (played INTEGER, points VARCHAR) | SELECT AVG(played) FROM table_name_72 WHERE points = "0*" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (played INTEGER, points VARCHAR) Question: Name the average Played with a Points of 0*? [/INST] SELECT AVG(played) FROM table_name_72 WHERE points = "0*" </s> |
Count the Draw which has Lost of 0, and a Goals Scored larger than 0? | CREATE TABLE table_name_59 (draw INTEGER, lost VARCHAR, goals_scored VARCHAR) | SELECT SUM(draw) FROM table_name_59 WHERE lost = 0 AND goals_scored > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (draw INTEGER, lost VARCHAR, goals_scored VARCHAR) Question: Count the Draw which has Lost of 0, and a Goals Scored larger than 0? [/INST] SELECT SUM(draw) FROM table_name_59 WHERE lost = 0 AND goa... |
Name the Goals Conceded which has a Draw of 0 and a Played larger than 0? | CREATE TABLE table_name_48 (goals_conceded INTEGER, draw VARCHAR, played VARCHAR) | SELECT AVG(goals_conceded) FROM table_name_48 WHERE draw = 0 AND played > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (goals_conceded INTEGER, draw VARCHAR, played VARCHAR) Question: Name the Goals Conceded which has a Draw of 0 and a Played larger than 0? [/INST] SELECT AVG(goals_conceded) FROM table_name_48 WHE... |
What is the rank for the Mixed Team nation with a total of less than 13? | CREATE TABLE table_name_74 (rank VARCHAR, total VARCHAR, nation VARCHAR) | SELECT rank FROM table_name_74 WHERE total < 13 AND nation = "mixed team" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (rank VARCHAR, total VARCHAR, nation VARCHAR) Question: What is the rank for the Mixed Team nation with a total of less than 13? [/INST] SELECT rank FROM table_name_74 WHERE total < 13 AND nation =... |
What is the total number of bronze medals for teams with less than 0 silver? | CREATE TABLE table_name_98 (bronze VARCHAR, silver INTEGER) | SELECT COUNT(bronze) FROM table_name_98 WHERE silver < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (bronze VARCHAR, silver INTEGER) Question: What is the total number of bronze medals for teams with less than 0 silver? [/INST] SELECT COUNT(bronze) FROM table_name_98 WHERE silver < 0 </s> |
What is the average number of bronze medals when the team's silver are more than 1 but the total medals are less than 9? | CREATE TABLE table_name_87 (bronze INTEGER, silver VARCHAR, total VARCHAR) | SELECT AVG(bronze) FROM table_name_87 WHERE silver > 1 AND total < 9 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (bronze INTEGER, silver VARCHAR, total VARCHAR) Question: What is the average number of bronze medals when the team's silver are more than 1 but the total medals are less than 9? [/INST] SELECT AVG... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.