instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
What is the finish in 1956? | CREATE TABLE table_name_17 (finish VARCHAR, year VARCHAR) | SELECT finish FROM table_name_17 WHERE year = "1956" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (finish VARCHAR, year VARCHAR) Question: What is the finish in 1956? [/INST] SELECT finish FROM table_name_17 WHERE year = "1956" </s> |
What is the finish with 200 laps and a start of 3? | CREATE TABLE table_name_91 (finish VARCHAR, laps VARCHAR, start VARCHAR) | SELECT finish FROM table_name_91 WHERE laps = 200 AND start = "3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (finish VARCHAR, laps VARCHAR, start VARCHAR) Question: What is the finish with 200 laps and a start of 3? [/INST] SELECT finish FROM table_name_91 WHERE laps = 200 AND start = "3" </s> |
What is the qual with 200 laps and a rank of 27? | CREATE TABLE table_name_86 (qual VARCHAR, laps VARCHAR, rank VARCHAR) | SELECT qual FROM table_name_86 WHERE laps = 200 AND rank = "27" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (qual VARCHAR, laps VARCHAR, rank VARCHAR) Question: What is the qual with 200 laps and a rank of 27? [/INST] SELECT qual FROM table_name_86 WHERE laps = 200 AND rank = "27" </s> |
What is the rank with a 14 finish? | CREATE TABLE table_name_13 (rank VARCHAR, finish VARCHAR) | SELECT rank FROM table_name_13 WHERE finish = "14" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (rank VARCHAR, finish VARCHAR) Question: What is the rank with a 14 finish? [/INST] SELECT rank FROM table_name_13 WHERE finish = "14" </s> |
What is the lowest cuts made of the Masters tournament, which had a top-25 less than 0? | CREATE TABLE table_name_72 (cuts_made INTEGER, tournament VARCHAR, top_25 VARCHAR) | SELECT MIN(cuts_made) FROM table_name_72 WHERE tournament = "masters tournament" AND top_25 < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (cuts_made INTEGER, tournament VARCHAR, top_25 VARCHAR) Question: What is the lowest cuts made of the Masters tournament, which had a top-25 less than 0? [/INST] SELECT MIN(cuts_made) FROM table_name_72 WHERE tournament = "masters tournament" AND top_25 < 0 </s> |
What is the highest number of wins a tournament with 1 cuts made, a top-25 less than 1, and less than 2 events has? | CREATE TABLE table_name_82 (wins INTEGER, events VARCHAR, cuts_made VARCHAR, top_25 VARCHAR) | SELECT MAX(wins) FROM table_name_82 WHERE cuts_made = 1 AND top_25 < 1 AND events < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (wins INTEGER, events VARCHAR, cuts_made VARCHAR, top_25 VARCHAR) Question: What is the highest number of wins a tournament with 1 cuts made, a top-25 less than 1, and less than 2 events has? [/INST] SELECT MAX(wins) FROM table_name_82 WHERE cuts_made = 1 AND top_25 < 1 AND events < 2 </s> |
What is the average number of events the Masters tournament, which has more than 0 top-25, has? | CREATE TABLE table_name_84 (events INTEGER, tournament VARCHAR, top_25 VARCHAR) | SELECT AVG(events) FROM table_name_84 WHERE tournament = "masters tournament" AND top_25 > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (events INTEGER, tournament VARCHAR, top_25 VARCHAR) Question: What is the average number of events the Masters tournament, which has more than 0 top-25, has? [/INST] SELECT AVG(events) FROM table_name_84 WHERE tournament = "masters tournament" AND top_25 > 0 </s> |
What is the total number of top-25 a tournament with less than 2 events has? | CREATE TABLE table_name_93 (top_25 VARCHAR, events INTEGER) | SELECT COUNT(top_25) FROM table_name_93 WHERE events < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (top_25 VARCHAR, events INTEGER) Question: What is the total number of top-25 a tournament with less than 2 events has? [/INST] SELECT COUNT(top_25) FROM table_name_93 WHERE events < 2 </s> |
What was the date of the game that had a loss of Gott (2-7)? | CREATE TABLE table_name_98 (date VARCHAR, loss VARCHAR) | SELECT date FROM table_name_98 WHERE loss = "gott (2-7)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (date VARCHAR, loss VARCHAR) Question: What was the date of the game that had a loss of Gott (2-7)? [/INST] SELECT date FROM table_name_98 WHERE loss = "gott (2-7)" </s> |
Who was the opponent at the game when the record was 54-58? | CREATE TABLE table_name_13 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_13 WHERE record = "54-58" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (opponent VARCHAR, record VARCHAR) Question: Who was the opponent at the game when the record was 54-58? [/INST] SELECT opponent FROM table_name_13 WHERE record = "54-58" </s> |
What was the score of the game when the record was 59-65? | CREATE TABLE table_name_77 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_77 WHERE record = "59-65" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (score VARCHAR, record VARCHAR) Question: What was the score of the game when the record was 59-65? [/INST] SELECT score FROM table_name_77 WHERE record = "59-65" </s> |
Who was the opponent at the game that had a loss of Caldwell (10-11)? | CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR) | SELECT opponent FROM table_name_35 WHERE loss = "caldwell (10-11)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR) Question: Who was the opponent at the game that had a loss of Caldwell (10-11)? [/INST] SELECT opponent FROM table_name_35 WHERE loss = "caldwell (10-11)" </s> |
Which opponent had a time of 1:26? | CREATE TABLE table_name_1 (opponent VARCHAR, time VARCHAR) | SELECT opponent FROM table_name_1 WHERE time = "1:26" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (opponent VARCHAR, time VARCHAR) Question: Which opponent had a time of 1:26? [/INST] SELECT opponent FROM table_name_1 WHERE time = "1:26" </s> |
What was the date of the game with the Kansas City Royals when the Blue Jays record was 18-12? | CREATE TABLE table_name_77 (date VARCHAR, opponent VARCHAR, record VARCHAR) | SELECT date FROM table_name_77 WHERE opponent = "royals" AND record = "18-12" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (date VARCHAR, opponent VARCHAR, record VARCHAR) Question: What was the date of the game with the Kansas City Royals when the Blue Jays record was 18-12? [/INST] SELECT date FROM table_name_77 WHERE opponent = "royals" AND record = "18-12" </s> |
Which catalogue is from the UK region, and is on vinyl, and was dated in 1986? | CREATE TABLE table_name_33 (catalogue VARCHAR, date VARCHAR, region VARCHAR, format VARCHAR) | SELECT catalogue FROM table_name_33 WHERE region = "uk" AND format = "vinyl" AND date = "1986" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (catalogue VARCHAR, date VARCHAR, region VARCHAR, format VARCHAR) Question: Which catalogue is from the UK region, and is on vinyl, and was dated in 1986? [/INST] SELECT catalogue FROM table_name_33 WHERE region = "uk" AND format = "vinyl" AND date = "1986" </s> |
What region has a bronze label and a catalogue of 202 876-270? | CREATE TABLE table_name_82 (region VARCHAR, label VARCHAR, catalogue VARCHAR) | SELECT region FROM table_name_82 WHERE label = "bronze" AND catalogue = "202 876-270" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (region VARCHAR, label VARCHAR, catalogue VARCHAR) Question: What region has a bronze label and a catalogue of 202 876-270? [/INST] SELECT region FROM table_name_82 WHERE label = "bronze" AND catalogue = "202 876-270" </s> |
Which label is from the Germany region? | CREATE TABLE table_name_52 (label VARCHAR, region VARCHAR) | SELECT label FROM table_name_52 WHERE region = "germany" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (label VARCHAR, region VARCHAR) Question: Which label is from the Germany region? [/INST] SELECT label FROM table_name_52 WHERE region = "germany" </s> |
What label has brol 34531 as it's catalogue? | CREATE TABLE table_name_31 (label VARCHAR, catalogue VARCHAR) | SELECT label FROM table_name_31 WHERE catalogue = "brol 34531" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (label VARCHAR, catalogue VARCHAR) Question: What label has brol 34531 as it's catalogue? [/INST] SELECT label FROM table_name_31 WHERE catalogue = "brol 34531" </s> |
Which label has UK for its region, is on a CD, and is dated from 1986? | CREATE TABLE table_name_61 (label VARCHAR, format VARCHAR, region VARCHAR, date VARCHAR) | SELECT label FROM table_name_61 WHERE region = "uk" AND date = "1986" AND format = "cd" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (label VARCHAR, format VARCHAR, region VARCHAR, date VARCHAR) Question: Which label has UK for its region, is on a CD, and is dated from 1986? [/INST] SELECT label FROM table_name_61 WHERE region = "uk" AND date = "1986" AND format = "cd" </s> |
Which catalogue has essential, castle music as it's label? | CREATE TABLE table_name_46 (catalogue VARCHAR, label VARCHAR) | SELECT catalogue FROM table_name_46 WHERE label = "essential, castle music" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (catalogue VARCHAR, label VARCHAR) Question: Which catalogue has essential, castle music as it's label? [/INST] SELECT catalogue FROM table_name_46 WHERE label = "essential, castle music" </s> |
What's the period of a rock album released in 1973? | CREATE TABLE table_name_83 (period_active VARCHAR, release_year_of_first_charted_record VARCHAR, genre VARCHAR) | SELECT period_active FROM table_name_83 WHERE release_year_of_first_charted_record = 1973 AND genre = "rock" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (period_active VARCHAR, release_year_of_first_charted_record VARCHAR, genre VARCHAR) Question: What's the period of a rock album released in 1973? [/INST] SELECT period_active FROM table_name_83 WHERE release_year_of_first_charted_record = 1973 AND genre = "rock" </s> |
Name the pick number for bill atessis | CREATE TABLE table_name_15 (pick__number VARCHAR, name VARCHAR) | SELECT pick__number FROM table_name_15 WHERE name = "bill atessis" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (pick__number VARCHAR, name VARCHAR) Question: Name the pick number for bill atessis [/INST] SELECT pick__number FROM table_name_15 WHERE name = "bill atessis" </s> |
Name the total number of overall for defensive tackle | CREATE TABLE table_name_6 (overall VARCHAR, position VARCHAR) | SELECT COUNT(overall) FROM table_name_6 WHERE position = "defensive tackle" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (overall VARCHAR, position VARCHAR) Question: Name the total number of overall for defensive tackle [/INST] SELECT COUNT(overall) FROM table_name_6 WHERE position = "defensive tackle" </s> |
Which engine has daimler benz ag as an entrant? | CREATE TABLE table_name_7 (engine VARCHAR, entrant VARCHAR) | SELECT engine FROM table_name_7 WHERE entrant = "daimler benz ag" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (engine VARCHAR, entrant VARCHAR) Question: Which engine has daimler benz ag as an entrant? [/INST] SELECT engine FROM table_name_7 WHERE entrant = "daimler benz ag" </s> |
In which years was the to par +6? | CREATE TABLE table_name_86 (year_s__won VARCHAR, to_par VARCHAR) | SELECT year_s__won FROM table_name_86 WHERE to_par = "+6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (year_s__won VARCHAR, to_par VARCHAR) Question: In which years was the to par +6? [/INST] SELECT year_s__won FROM table_name_86 WHERE to_par = "+6" </s> |
In 1991, what was the lowest total? | CREATE TABLE table_name_31 (total INTEGER, year_s__won VARCHAR) | SELECT MIN(total) FROM table_name_31 WHERE year_s__won = "1991" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (total INTEGER, year_s__won VARCHAR) Question: In 1991, what was the lowest total? [/INST] SELECT MIN(total) FROM table_name_31 WHERE year_s__won = "1991" </s> |
What are the total lanes that have a rank larger than 22? | CREATE TABLE table_name_11 (lane INTEGER, rank INTEGER) | SELECT SUM(lane) FROM table_name_11 WHERE rank > 22 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (lane INTEGER, rank INTEGER) Question: What are the total lanes that have a rank larger than 22? [/INST] SELECT SUM(lane) FROM table_name_11 WHERE rank > 22 </s> |
Which one has a rank bigger than 2, lane of 1, and is from Hong Kong? | CREATE TABLE table_name_55 (name VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR) | SELECT name FROM table_name_55 WHERE rank > 2 AND lane = 1 AND nationality = "hong kong" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (name VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR) Question: Which one has a rank bigger than 2, lane of 1, and is from Hong Kong? [/INST] SELECT name FROM table_name_55 WHERE rank > 2 AND lane = 1 AND nationality = "hong kong" </s> |
What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3? | CREATE TABLE table_name_52 (rank INTEGER, heat VARCHAR, nationality VARCHAR, lane VARCHAR) | SELECT SUM(rank) FROM table_name_52 WHERE nationality = "japan" AND lane < 7 AND heat < 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (rank INTEGER, heat VARCHAR, nationality VARCHAR, lane VARCHAR) Question: What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3? [/INST] SELECT SUM(rank) FROM table_name_52 WHERE nationality = "japan" AND lane < 7 AND heat < 3 </s> |
What was Jim Hoff's sum of losses and a wins smaller than 12? | CREATE TABLE table_name_9 (losses INTEGER, manager VARCHAR, wins VARCHAR) | SELECT SUM(losses) FROM table_name_9 WHERE manager = "jim hoff" AND wins < 12 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (losses INTEGER, manager VARCHAR, wins VARCHAR) Question: What was Jim Hoff's sum of losses and a wins smaller than 12? [/INST] SELECT SUM(losses) FROM table_name_9 WHERE manager = "jim hoff" AND wins < 12 </s> |
What was the average of games that were one in 1978 that were smaller than 141? | CREATE TABLE table_name_42 (wins INTEGER, years VARCHAR, games VARCHAR) | SELECT AVG(wins) FROM table_name_42 WHERE years = "1978" AND games < 141 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (wins INTEGER, years VARCHAR, games VARCHAR) Question: What was the average of games that were one in 1978 that were smaller than 141? [/INST] SELECT AVG(wins) FROM table_name_42 WHERE years = "1978" AND games < 141 </s> |
What was the sum of Richie Hebner winning games that were smaller 34? | CREATE TABLE table_name_80 (games INTEGER, manager VARCHAR, wins VARCHAR) | SELECT SUM(games) FROM table_name_80 WHERE manager = "richie hebner" AND wins < 34 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (games INTEGER, manager VARCHAR, wins VARCHAR) Question: What was the sum of Richie Hebner winning games that were smaller 34? [/INST] SELECT SUM(games) FROM table_name_80 WHERE manager = "richie hebner" AND wins < 34 </s> |
What was the average of wins with manager George Scherger smaller than 3 and losses smaller than 1? | CREATE TABLE table_name_91 (wins INTEGER, losses VARCHAR, games VARCHAR, manager VARCHAR) | SELECT AVG(wins) FROM table_name_91 WHERE games < 3 AND manager = "george scherger" AND losses < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (wins INTEGER, losses VARCHAR, games VARCHAR, manager VARCHAR) Question: What was the average of wins with manager George Scherger smaller than 3 and losses smaller than 1? [/INST] SELECT AVG(wins) FROM table_name_91 WHERE games < 3 AND manager = "george scherger" AND losses < 1 </s> |
When was the golden slipper race? | CREATE TABLE table_name_53 (date VARCHAR, race VARCHAR) | SELECT date FROM table_name_53 WHERE race = "golden slipper" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (date VARCHAR, race VARCHAR) Question: When was the golden slipper race? [/INST] SELECT date FROM table_name_53 WHERE race = "golden slipper" </s> |
In which races did the jockey weigh less than 55.5 kg? | CREATE TABLE table_name_78 (race VARCHAR, weight__kg_ INTEGER) | SELECT race FROM table_name_78 WHERE weight__kg_ < 55.5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (race VARCHAR, weight__kg_ INTEGER) Question: In which races did the jockey weigh less than 55.5 kg? [/INST] SELECT race FROM table_name_78 WHERE weight__kg_ < 55.5 </s> |
What was the result of the Todman stakes race at rosehill? | CREATE TABLE table_name_28 (result VARCHAR, venue VARCHAR, race VARCHAR) | SELECT result FROM table_name_28 WHERE venue = "rosehill" AND race = "todman stakes" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (result VARCHAR, venue VARCHAR, race VARCHAR) Question: What was the result of the Todman stakes race at rosehill? [/INST] SELECT result FROM table_name_28 WHERE venue = "rosehill" AND race = "todman stakes" </s> |
What Country has Player Ky Laffoon? | CREATE TABLE table_name_80 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_80 WHERE player = "ky laffoon" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (country VARCHAR, player VARCHAR) Question: What Country has Player Ky Laffoon? [/INST] SELECT country FROM table_name_80 WHERE player = "ky laffoon" </s> |
What Player is from the Country United States and Money ($) of 356? | CREATE TABLE table_name_24 (player VARCHAR, country VARCHAR, money___$__ VARCHAR) | SELECT player FROM table_name_24 WHERE country = "united states" AND money___$__ = 356 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (player VARCHAR, country VARCHAR, money___$__ VARCHAR) Question: What Player is from the Country United States and Money ($) of 356? [/INST] SELECT player FROM table_name_24 WHERE country = "united states" AND money___$__ = 356 </s> |
What Player has a To par of +1 and the Score 75-70-71-73=289? | CREATE TABLE table_name_10 (player VARCHAR, to_par VARCHAR, score VARCHAR) | SELECT player FROM table_name_10 WHERE to_par = "+1" AND score = 75 - 70 - 71 - 73 = 289 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (player VARCHAR, to_par VARCHAR, score VARCHAR) Question: What Player has a To par of +1 and the Score 75-70-71-73=289? [/INST] SELECT player FROM table_name_10 WHERE to_par = "+1" AND score = 75 - 70 - 71 - 73 = 289 </s> |
What was the outcome for the Rome 2, Italy tournament? | CREATE TABLE table_name_73 (outcome VARCHAR, tournament VARCHAR) | SELECT outcome FROM table_name_73 WHERE tournament = "rome 2, italy" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (outcome VARCHAR, tournament VARCHAR) Question: What was the outcome for the Rome 2, Italy tournament? [/INST] SELECT outcome FROM table_name_73 WHERE tournament = "rome 2, italy" </s> |
What was the outcome of the match opponents in the final of Marius Călugăru Ciprian Petre Porumb? | CREATE TABLE table_name_38 (outcome VARCHAR, opponents_in_the_final VARCHAR) | SELECT outcome FROM table_name_38 WHERE opponents_in_the_final = "marius călugăru ciprian petre porumb" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (outcome VARCHAR, opponents_in_the_final VARCHAR) Question: What was the outcome of the match opponents in the final of Marius Călugăru Ciprian Petre Porumb? [/INST] SELECT outcome FROM table_name_38 WHERE opponents_in_the_final = "marius călugăru ciprian petre porumb" </s> |
How many golds have a Total of 11, and a Bronze smaller than 3? | CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, bronze VARCHAR) | SELECT SUM(gold) FROM table_name_81 WHERE total = 11 AND bronze < 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, bronze VARCHAR) Question: How many golds have a Total of 11, and a Bronze smaller than 3? [/INST] SELECT SUM(gold) FROM table_name_81 WHERE total = 11 AND bronze < 3 </s> |
How many golds have a Bronze of 0, a Total larger than 1, a Nation of chad, and a Silver larger than 0? | CREATE TABLE table_name_34 (gold INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR) | SELECT SUM(gold) FROM table_name_34 WHERE bronze = 0 AND total > 1 AND nation = "chad" AND silver > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (gold INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR) Question: How many golds have a Bronze of 0, a Total larger than 1, a Nation of chad, and a Silver larger than 0? [/INST] SELECT SUM(gold) FROM table_name_34 WHERE bronze = 0 AND total > 1 AND nation = "chad" AND silver > 0 </s> |
What is the smallest silver with a Gold of 1, and a Nation of lithuania? | CREATE TABLE table_name_7 (silver INTEGER, gold VARCHAR, nation VARCHAR) | SELECT MIN(silver) FROM table_name_7 WHERE gold = 1 AND nation = "lithuania" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (silver INTEGER, gold VARCHAR, nation VARCHAR) Question: What is the smallest silver with a Gold of 1, and a Nation of lithuania? [/INST] SELECT MIN(silver) FROM table_name_7 WHERE gold = 1 AND nation = "lithuania" </s> |
What is the total bronze with a Gold larger than 1, a Rank of 2, and a Silver smaller than 12? | CREATE TABLE table_name_62 (bronze VARCHAR, silver VARCHAR, gold VARCHAR, rank VARCHAR) | SELECT COUNT(bronze) FROM table_name_62 WHERE gold > 1 AND rank = 2 AND silver < 12 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (bronze VARCHAR, silver VARCHAR, gold VARCHAR, rank VARCHAR) Question: What is the total bronze with a Gold larger than 1, a Rank of 2, and a Silver smaller than 12? [/INST] SELECT COUNT(bronze) FROM table_name_62 WHERE gold > 1 AND rank = 2 AND silver < 12 </s> |
Which Visiting Team is on december 23? | CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR) | SELECT visiting_team FROM table_name_59 WHERE date = "december 23" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR) Question: Which Visiting Team is on december 23? [/INST] SELECT visiting_team FROM table_name_59 WHERE date = "december 23" </s> |
Which Host Team has Final Score of 42-23? | CREATE TABLE table_name_86 (host_team VARCHAR, final_score VARCHAR) | SELECT host_team FROM table_name_86 WHERE final_score = "42-23" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (host_team VARCHAR, final_score VARCHAR) Question: Which Host Team has Final Score of 42-23? [/INST] SELECT host_team FROM table_name_86 WHERE final_score = "42-23" </s> |
When did Final Score of 31-7 happen? | CREATE TABLE table_name_64 (date VARCHAR, final_score VARCHAR) | SELECT date FROM table_name_64 WHERE final_score = "31-7" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (date VARCHAR, final_score VARCHAR) Question: When did Final Score of 31-7 happen? [/INST] SELECT date FROM table_name_64 WHERE final_score = "31-7" </s> |
Which Tournament in 2010 also has Grand Slam tournaments in 2011 | CREATE TABLE table_name_74 (Id VARCHAR) | SELECT 2010 FROM table_name_74 WHERE 2011 = "grand slam tournaments" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (Id VARCHAR) Question: Which Tournament in 2010 also has Grand Slam tournaments in 2011 [/INST] SELECT 2010 FROM table_name_74 WHERE 2011 = "grand slam tournaments" </s> |
What was the average attendance when the New York Mets were opponents with a record of 51-33? | CREATE TABLE table_name_81 (attendance INTEGER, opponent VARCHAR, record VARCHAR) | SELECT AVG(attendance) FROM table_name_81 WHERE opponent = "new york mets" AND record = "51-33" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (attendance INTEGER, opponent VARCHAR, record VARCHAR) Question: What was the average attendance when the New York Mets were opponents with a record of 51-33? [/INST] SELECT AVG(attendance) FROM table_name_81 WHERE opponent = "new york mets" AND record = "51-33" </s> |
What visiting team played on October 18? | CREATE TABLE table_name_36 (visiting_team VARCHAR, date VARCHAR) | SELECT visiting_team FROM table_name_36 WHERE date = "october 18" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (visiting_team VARCHAR, date VARCHAR) Question: What visiting team played on October 18? [/INST] SELECT visiting_team FROM table_name_36 WHERE date = "october 18" </s> |
What visiting team played at 3com park on October 7? | CREATE TABLE table_name_49 (visiting_team VARCHAR, stadium VARCHAR, date VARCHAR) | SELECT visiting_team FROM table_name_49 WHERE stadium = "3com park" AND date = "october 7" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (visiting_team VARCHAR, stadium VARCHAR, date VARCHAR) Question: What visiting team played at 3com park on October 7? [/INST] SELECT visiting_team FROM table_name_49 WHERE stadium = "3com park" AND date = "october 7" </s> |
Which host team won on a final scoreline of 13-10? | CREATE TABLE table_name_55 (host_team VARCHAR, final_score VARCHAR) | SELECT host_team FROM table_name_55 WHERE final_score = "13-10" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (host_team VARCHAR, final_score VARCHAR) Question: Which host team won on a final scoreline of 13-10? [/INST] SELECT host_team FROM table_name_55 WHERE final_score = "13-10" </s> |
In what stadium did a game result in a final scoreline reading 27-34? | CREATE TABLE table_name_30 (stadium VARCHAR, final_score VARCHAR) | SELECT stadium FROM table_name_30 WHERE final_score = "27-34" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (stadium VARCHAR, final_score VARCHAR) Question: In what stadium did a game result in a final scoreline reading 27-34? [/INST] SELECT stadium FROM table_name_30 WHERE final_score = "27-34" </s> |
In the game in which the Jacksonville Jaguars were hosts, what was the name of the visiting team? | CREATE TABLE table_name_92 (visiting_team VARCHAR, host_team VARCHAR) | SELECT visiting_team FROM table_name_92 WHERE host_team = "jacksonville jaguars" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (visiting_team VARCHAR, host_team VARCHAR) Question: In the game in which the Jacksonville Jaguars were hosts, what was the name of the visiting team? [/INST] SELECT visiting_team FROM table_name_92 WHERE host_team = "jacksonville jaguars" </s> |
Which visiting team wound up with a final score of 18-40? | CREATE TABLE table_name_77 (visiting_team VARCHAR, final_score VARCHAR) | SELECT visiting_team FROM table_name_77 WHERE final_score = "18-40" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (visiting_team VARCHAR, final_score VARCHAR) Question: Which visiting team wound up with a final score of 18-40? [/INST] SELECT visiting_team FROM table_name_77 WHERE final_score = "18-40" </s> |
Name the sum of attendacne for 16 weeks | CREATE TABLE table_name_30 (attendance INTEGER, week VARCHAR) | SELECT SUM(attendance) FROM table_name_30 WHERE week = 16 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (attendance INTEGER, week VARCHAR) Question: Name the sum of attendacne for 16 weeks [/INST] SELECT SUM(attendance) FROM table_name_30 WHERE week = 16 </s> |
Name the result for week less than 7 and game sites of los angeles memorial coliseum | CREATE TABLE table_name_25 (result VARCHAR, week VARCHAR, game_site VARCHAR) | SELECT result FROM table_name_25 WHERE week < 7 AND game_site = "los angeles memorial coliseum" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (result VARCHAR, week VARCHAR, game_site VARCHAR) Question: Name the result for week less than 7 and game sites of los angeles memorial coliseum [/INST] SELECT result FROM table_name_25 WHERE week < 7 AND game_site = "los angeles memorial coliseum" </s> |
Name the result for week 7 | CREATE TABLE table_name_14 (result VARCHAR, week VARCHAR) | SELECT result FROM table_name_14 WHERE week = 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (result VARCHAR, week VARCHAR) Question: Name the result for week 7 [/INST] SELECT result FROM table_name_14 WHERE week = 7 </s> |
How many yards lost by the player with more gained than 51 and average/g of 3.6? | CREATE TABLE table_name_97 (loss VARCHAR, avg_g VARCHAR, gain VARCHAR) | SELECT COUNT(loss) FROM table_name_97 WHERE avg_g = "3.6" AND gain > 51 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (loss VARCHAR, avg_g VARCHAR, gain VARCHAR) Question: How many yards lost by the player with more gained than 51 and average/g of 3.6? [/INST] SELECT COUNT(loss) FROM table_name_97 WHERE avg_g = "3.6" AND gain > 51 </s> |
What are the gains for the player with average of 26.8 and lost yard fewer than 13? | CREATE TABLE table_name_43 (gain INTEGER, avg_g VARCHAR, loss VARCHAR) | SELECT SUM(gain) FROM table_name_43 WHERE avg_g = "26.8" AND loss < 13 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (gain INTEGER, avg_g VARCHAR, loss VARCHAR) Question: What are the gains for the player with average of 26.8 and lost yard fewer than 13? [/INST] SELECT SUM(gain) FROM table_name_43 WHERE avg_g = "26.8" AND loss < 13 </s> |
When did Mathieu play against Flavio Cipolla? | CREATE TABLE table_name_60 (date VARCHAR, opponent_in_the_final VARCHAR) | SELECT date FROM table_name_60 WHERE opponent_in_the_final = "flavio cipolla" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (date VARCHAR, opponent_in_the_final VARCHAR) Question: When did Mathieu play against Flavio Cipolla? [/INST] SELECT date FROM table_name_60 WHERE opponent_in_the_final = "flavio cipolla" </s> |
Which tournament had a final score of 6–3, 6–2? | CREATE TABLE table_name_65 (tournament VARCHAR, score_in_the_final VARCHAR) | SELECT tournament FROM table_name_65 WHERE score_in_the_final = "6–3, 6–2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (tournament VARCHAR, score_in_the_final VARCHAR) Question: Which tournament had a final score of 6–3, 6–2? [/INST] SELECT tournament FROM table_name_65 WHERE score_in_the_final = "6–3, 6–2" </s> |
On which surface did Mathieu play against Antonio Veić? | CREATE TABLE table_name_84 (surface VARCHAR, opponent_in_the_final VARCHAR) | SELECT surface FROM table_name_84 WHERE opponent_in_the_final = "antonio veić" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (surface VARCHAR, opponent_in_the_final VARCHAR) Question: On which surface did Mathieu play against Antonio Veić? [/INST] SELECT surface FROM table_name_84 WHERE opponent_in_the_final = "antonio veić" </s> |
When did Mathieu play against Antonio Veić? | CREATE TABLE table_name_60 (date VARCHAR, opponent_in_the_final VARCHAR) | SELECT date FROM table_name_60 WHERE opponent_in_the_final = "antonio veić" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (date VARCHAR, opponent_in_the_final VARCHAR) Question: When did Mathieu play against Antonio Veić? [/INST] SELECT date FROM table_name_60 WHERE opponent_in_the_final = "antonio veić" </s> |
When did Mathieu play against Andrey Golubev? | CREATE TABLE table_name_7 (date VARCHAR, opponent_in_the_final VARCHAR) | SELECT date FROM table_name_7 WHERE opponent_in_the_final = "andrey golubev" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (date VARCHAR, opponent_in_the_final VARCHAR) Question: When did Mathieu play against Andrey Golubev? [/INST] SELECT date FROM table_name_7 WHERE opponent_in_the_final = "andrey golubev" </s> |
What park opened in 1999? | CREATE TABLE table_name_48 (park VARCHAR, opened VARCHAR) | SELECT park FROM table_name_48 WHERE opened = "1999" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (park VARCHAR, opened VARCHAR) Question: What park opened in 1999? [/INST] SELECT park FROM table_name_48 WHERE opened = "1999" </s> |
Name the record for detroit and decision of denis | CREATE TABLE table_name_39 (record VARCHAR, home VARCHAR, decision VARCHAR) | SELECT record FROM table_name_39 WHERE home = "detroit" AND decision = "denis" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (record VARCHAR, home VARCHAR, decision VARCHAR) Question: Name the record for detroit and decision of denis [/INST] SELECT record FROM table_name_39 WHERE home = "detroit" AND decision = "denis" </s> |
Name the average attendance with dallas visitor | CREATE TABLE table_name_78 (attendance INTEGER, visitor VARCHAR) | SELECT AVG(attendance) FROM table_name_78 WHERE visitor = "dallas" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (attendance INTEGER, visitor VARCHAR) Question: Name the average attendance with dallas visitor [/INST] SELECT AVG(attendance) FROM table_name_78 WHERE visitor = "dallas" </s> |
How close to par was Tom Kite when he played? | CREATE TABLE table_name_29 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_29 WHERE player = "tom kite" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (to_par VARCHAR, player VARCHAR) Question: How close to par was Tom Kite when he played? [/INST] SELECT to_par FROM table_name_29 WHERE player = "tom kite" </s> |
Which of the countries showed a score of 71-72=143? | CREATE TABLE table_name_8 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_8 WHERE score = 71 - 72 = 143 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (country VARCHAR, score VARCHAR) Question: Which of the countries showed a score of 71-72=143? [/INST] SELECT country FROM table_name_8 WHERE score = 71 - 72 = 143 </s> |
Which country watch Tom Watson at t9 score 72-72=144? | CREATE TABLE table_name_44 (country VARCHAR, player VARCHAR, place VARCHAR, score VARCHAR) | SELECT country FROM table_name_44 WHERE place = "t9" AND score = 72 - 72 = 144 AND player = "tom watson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (country VARCHAR, player VARCHAR, place VARCHAR, score VARCHAR) Question: Which country watch Tom Watson at t9 score 72-72=144? [/INST] SELECT country FROM table_name_44 WHERE place = "t9" AND score = 72 - 72 = 144 AND player = "tom watson" </s> |
What was the final score when the player was an e to par? | CREATE TABLE table_name_97 (score VARCHAR, to_par VARCHAR) | SELECT score FROM table_name_97 WHERE to_par = "e" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (score VARCHAR, to_par VARCHAR) Question: What was the final score when the player was an e to par? [/INST] SELECT score FROM table_name_97 WHERE to_par = "e" </s> |
What is the name of the team that has 307 attempts? | CREATE TABLE table_name_7 (team VARCHAR, attempts VARCHAR) | SELECT team FROM table_name_7 WHERE attempts = "307" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (team VARCHAR, attempts VARCHAR) Question: What is the name of the team that has 307 attempts? [/INST] SELECT team FROM table_name_7 WHERE attempts = "307" </s> |
What is the name of the team that has 1,317 attempts? | CREATE TABLE table_name_8 (team VARCHAR, attempts VARCHAR) | SELECT team FROM table_name_8 WHERE attempts = "1,317" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (team VARCHAR, attempts VARCHAR) Question: What is the name of the team that has 1,317 attempts? [/INST] SELECT team FROM table_name_8 WHERE attempts = "1,317" </s> |
What year was 2,242 yards achieved? | CREATE TABLE table_name_68 (year VARCHAR, yards VARCHAR) | SELECT year FROM table_name_68 WHERE yards = "2,242" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (year VARCHAR, yards VARCHAR) Question: What year was 2,242 yards achieved? [/INST] SELECT year FROM table_name_68 WHERE yards = "2,242" </s> |
Which team has a 59.8% completion rate? | CREATE TABLE table_name_16 (team VARCHAR, completion__percentage VARCHAR) | SELECT team FROM table_name_16 WHERE completion__percentage = "59.8%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (team VARCHAR, completion__percentage VARCHAR) Question: Which team has a 59.8% completion rate? [/INST] SELECT team FROM table_name_16 WHERE completion__percentage = "59.8%" </s> |
Which year has has a Engine of maserati straight-6? | CREATE TABLE table_name_31 (year VARCHAR, engine VARCHAR) | SELECT COUNT(year) FROM table_name_31 WHERE engine = "maserati straight-6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (year VARCHAR, engine VARCHAR) Question: Which year has has a Engine of maserati straight-6? [/INST] SELECT COUNT(year) FROM table_name_31 WHERE engine = "maserati straight-6" </s> |
What is the Point of Chassis of Lancia d50 in 1954 | CREATE TABLE table_name_91 (points VARCHAR, chassis VARCHAR, year VARCHAR) | SELECT points FROM table_name_91 WHERE chassis = "lancia d50" AND year = 1954 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (points VARCHAR, chassis VARCHAR, year VARCHAR) Question: What is the Point of Chassis of Lancia d50 in 1954 [/INST] SELECT points FROM table_name_91 WHERE chassis = "lancia d50" AND year = 1954 </s> |
What is the match total for a score over 299 and under 412 innings? | CREATE TABLE table_name_26 (matches INTEGER, high_score VARCHAR, innings VARCHAR) | SELECT SUM(matches) FROM table_name_26 WHERE high_score = "299" AND innings < 412 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (matches INTEGER, high_score VARCHAR, innings VARCHAR) Question: What is the match total for a score over 299 and under 412 innings? [/INST] SELECT SUM(matches) FROM table_name_26 WHERE high_score = "299" AND innings < 412 </s> |
What is the high run total associated with a high score of 385 and under 407 innings? | CREATE TABLE table_name_96 (runs INTEGER, high_score VARCHAR, innings VARCHAR) | SELECT MAX(runs) FROM table_name_96 WHERE high_score = "385" AND innings < 407 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (runs INTEGER, high_score VARCHAR, innings VARCHAR) Question: What is the high run total associated with a high score of 385 and under 407 innings? [/INST] SELECT MAX(runs) FROM table_name_96 WHERE high_score = "385" AND innings < 407 </s> |
What Team 1 has union douala as Team 2? | CREATE TABLE table_name_46 (team_1 VARCHAR, team_2 VARCHAR) | SELECT team_1 FROM table_name_46 WHERE team_2 = "union douala" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (team_1 VARCHAR, team_2 VARCHAR) Question: What Team 1 has union douala as Team 2? [/INST] SELECT team_1 FROM table_name_46 WHERE team_2 = "union douala" </s> |
What was the score of the game that had a loss of Cerutti (0-1)? | CREATE TABLE table_name_91 (score VARCHAR, loss VARCHAR) | SELECT score FROM table_name_91 WHERE loss = "cerutti (0-1)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (score VARCHAR, loss VARCHAR) Question: What was the score of the game that had a loss of Cerutti (0-1)? [/INST] SELECT score FROM table_name_91 WHERE loss = "cerutti (0-1)" </s> |
Who was the opponent at the game that had a record of 93-54? | CREATE TABLE table_name_73 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_73 WHERE record = "93-54" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (opponent VARCHAR, record VARCHAR) Question: Who was the opponent at the game that had a record of 93-54? [/INST] SELECT opponent FROM table_name_73 WHERE record = "93-54" </s> |
What was the score to par for 156 strokes? | CREATE TABLE table_name_37 (to_par VARCHAR, total INTEGER) | SELECT COUNT(to_par) FROM table_name_37 WHERE total > 156 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (to_par VARCHAR, total INTEGER) Question: What was the score to par for 156 strokes? [/INST] SELECT COUNT(to_par) FROM table_name_37 WHERE total > 156 </s> |
How many strokes for arnold palmer with a to par of greater than 9? | CREATE TABLE table_name_69 (total INTEGER, to_par VARCHAR, player VARCHAR) | SELECT AVG(total) FROM table_name_69 WHERE to_par > 9 AND player = "arnold palmer" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (total INTEGER, to_par VARCHAR, player VARCHAR) Question: How many strokes for arnold palmer with a to par of greater than 9? [/INST] SELECT AVG(total) FROM table_name_69 WHERE to_par > 9 AND player = "arnold palmer" </s> |
What was the score to par in 1960? | CREATE TABLE table_name_74 (to_par VARCHAR, year_s__won VARCHAR) | SELECT to_par FROM table_name_74 WHERE year_s__won = "1960" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (to_par VARCHAR, year_s__won VARCHAR) Question: What was the score to par in 1960? [/INST] SELECT to_par FROM table_name_74 WHERE year_s__won = "1960" </s> |
What is the earliest first game for a rugby team that has 7 lost games and 0 draws? | CREATE TABLE table_name_78 (first_game INTEGER, lost VARCHAR, drawn VARCHAR) | SELECT MIN(first_game) FROM table_name_78 WHERE lost = 7 AND drawn < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (first_game INTEGER, lost VARCHAR, drawn VARCHAR) Question: What is the earliest first game for a rugby team that has 7 lost games and 0 draws? [/INST] SELECT MIN(first_game) FROM table_name_78 WHERE lost = 7 AND drawn < 0 </s> |
How many games were played by a team that won 0.00% of their games and 0 draws? | CREATE TABLE table_name_55 (played INTEGER, percentage VARCHAR, drawn VARCHAR) | SELECT SUM(played) FROM table_name_55 WHERE percentage = "0.00%" AND drawn < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (played INTEGER, percentage VARCHAR, drawn VARCHAR) Question: How many games were played by a team that won 0.00% of their games and 0 draws? [/INST] SELECT SUM(played) FROM table_name_55 WHERE percentage = "0.00%" AND drawn < 0 </s> |
Name the 1st match for brisbane bears | CREATE TABLE table_name_61 (team VARCHAR) | SELECT 1 AS st_match FROM table_name_61 WHERE team = "brisbane bears" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (team VARCHAR) Question: Name the 1st match for brisbane bears [/INST] SELECT 1 AS st_match FROM table_name_61 WHERE team = "brisbane bears" </s> |
Name the lost for matches of 1 928 | CREATE TABLE table_name_66 (lost VARCHAR, matches VARCHAR) | SELECT lost FROM table_name_66 WHERE matches = "1 928" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (lost VARCHAR, matches VARCHAR) Question: Name the lost for matches of 1 928 [/INST] SELECT lost FROM table_name_66 WHERE matches = "1 928" </s> |
Name the lost for % won of 55.37 | CREATE TABLE table_name_64 (lost VARCHAR, _percentage_won VARCHAR) | SELECT lost FROM table_name_64 WHERE _percentage_won = "55.37" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (lost VARCHAR, _percentage_won VARCHAR) Question: Name the lost for % won of 55.37 [/INST] SELECT lost FROM table_name_64 WHERE _percentage_won = "55.37" </s> |
Name the matches for gold coast | CREATE TABLE table_name_11 (matches VARCHAR, team VARCHAR) | SELECT matches FROM table_name_11 WHERE team = "gold coast" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (matches VARCHAR, team VARCHAR) Question: Name the matches for gold coast [/INST] SELECT matches FROM table_name_11 WHERE team = "gold coast" </s> |
Name the lost for % won of 55.37 | CREATE TABLE table_name_46 (lost VARCHAR, _percentage_won VARCHAR) | SELECT lost FROM table_name_46 WHERE _percentage_won = "55.37" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (lost VARCHAR, _percentage_won VARCHAR) Question: Name the lost for % won of 55.37 [/INST] SELECT lost FROM table_name_46 WHERE _percentage_won = "55.37" </s> |
What is the year when cable was 4.6%? | CREATE TABLE table_name_99 (year VARCHAR, cable VARCHAR) | SELECT year FROM table_name_99 WHERE cable = "4.6%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (year VARCHAR, cable VARCHAR) Question: What is the year when cable was 4.6%? [/INST] SELECT year FROM table_name_99 WHERE cable = "4.6%" </s> |
What is the other for 2012? | CREATE TABLE table_name_54 (other VARCHAR, year VARCHAR) | SELECT other FROM table_name_54 WHERE year = "2012" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (other VARCHAR, year VARCHAR) Question: What is the other for 2012? [/INST] SELECT other FROM table_name_54 WHERE year = "2012" </s> |
What is the xDSL for the other of 0.6% and FTTx of 35.4%? | CREATE TABLE table_name_1 (xdsl VARCHAR, other VARCHAR, fttx VARCHAR) | SELECT xdsl FROM table_name_1 WHERE other = "0.6%" AND fttx = "35.4%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (xdsl VARCHAR, other VARCHAR, fttx VARCHAR) Question: What is the xDSL for the other of 0.6% and FTTx of 35.4%? [/INST] SELECT xdsl FROM table_name_1 WHERE other = "0.6%" AND fttx = "35.4%" </s> |
What is the other for a 78.2% xDSL? | CREATE TABLE table_name_15 (other VARCHAR, xdsl VARCHAR) | SELECT other FROM table_name_15 WHERE xdsl = "78.2%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (other VARCHAR, xdsl VARCHAR) Question: What is the other for a 78.2% xDSL? [/INST] SELECT other FROM table_name_15 WHERE xdsl = "78.2%" </s> |
What is the xDSL in 2010 when the other was 0.6%? | CREATE TABLE table_name_55 (xdsl VARCHAR, other VARCHAR, year VARCHAR) | SELECT xdsl FROM table_name_55 WHERE other = "0.6%" AND year = "2010" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (xdsl VARCHAR, other VARCHAR, year VARCHAR) Question: What is the xDSL in 2010 when the other was 0.6%? [/INST] SELECT xdsl FROM table_name_55 WHERE other = "0.6%" AND year = "2010" </s> |
Which date has a Result of won, and a Score of 1-0? | CREATE TABLE table_name_23 (date VARCHAR, result VARCHAR, score VARCHAR) | SELECT date FROM table_name_23 WHERE result = "won" AND score = "1-0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (date VARCHAR, result VARCHAR, score VARCHAR) Question: Which date has a Result of won, and a Score of 1-0? [/INST] SELECT date FROM table_name_23 WHERE result = "won" AND score = "1-0" </s> |