instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
Who won bronze is 2006? | CREATE TABLE table_name_7 (bronze VARCHAR, year VARCHAR) | SELECT bronze FROM table_name_7 WHERE year = 2006 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (bronze VARCHAR, year VARCHAR) Question: Who won bronze is 2006? [/INST] SELECT bronze FROM table_name_7 WHERE year = 2006 </s> |
What year did the event in Hiroshima take place? | CREATE TABLE table_name_70 (year VARCHAR, location VARCHAR) | SELECT COUNT(year) FROM table_name_70 WHERE location = "hiroshima" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (year VARCHAR, location VARCHAR) Question: What year did the event in Hiroshima take place? [/INST] SELECT COUNT(year) FROM table_name_70 WHERE location = "hiroshima" </s> |
Who won bronze in 2002? | CREATE TABLE table_name_35 (bronze VARCHAR, year VARCHAR) | SELECT bronze FROM table_name_35 WHERE year = 2002 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (bronze VARCHAR, year VARCHAR) Question: Who won bronze in 2002? [/INST] SELECT bronze FROM table_name_35 WHERE year = 2002 </s> |
What is the game number of the game with the Edmonton Oilers as the opponent after February 12? | CREATE TABLE table_name_74 (game VARCHAR, opponent VARCHAR, february VARCHAR) | SELECT COUNT(game) FROM table_name_74 WHERE opponent = "edmonton oilers" AND february > 12 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (game VARCHAR, opponent VARCHAR, february VARCHAR) Question: What is the game number of the game with the Edmonton Oilers as the opponent after February 12? [/INST] SELECT COUNT(game) FROM table_na... |
How many Seasons that has Years of 1976–1977? | CREATE TABLE table_name_1 (seasons VARCHAR, years VARCHAR) | SELECT COUNT(seasons) FROM table_name_1 WHERE years = "1976–1977" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (seasons VARCHAR, years VARCHAR) Question: How many Seasons that has Years of 1976–1977? [/INST] SELECT COUNT(seasons) FROM table_name_1 WHERE years = "1976–1977" </s> |
What week of the season had a date of october 5, 1975? | CREATE TABLE table_name_24 (week INTEGER, date VARCHAR) | SELECT MIN(week) FROM table_name_24 WHERE date = "october 5, 1975" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (week INTEGER, date VARCHAR) Question: What week of the season had a date of october 5, 1975? [/INST] SELECT MIN(week) FROM table_name_24 WHERE date = "october 5, 1975" </s> |
How many Events have a Top-10 larger than 6, and a Top-5 smaller than 8? | CREATE TABLE table_name_80 (events VARCHAR, top_10 VARCHAR, top_5 VARCHAR) | SELECT COUNT(events) FROM table_name_80 WHERE top_10 > 6 AND top_5 < 8 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (events VARCHAR, top_10 VARCHAR, top_5 VARCHAR) Question: How many Events have a Top-10 larger than 6, and a Top-5 smaller than 8? [/INST] SELECT COUNT(events) FROM table_name_80 WHERE top_10 > 6 A... |
How many Wins have a Top-10 smaller than 6, and Cuts made larger than 7, and a Top-5 of 0? | CREATE TABLE table_name_57 (wins VARCHAR, top_5 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR) | SELECT COUNT(wins) FROM table_name_57 WHERE top_10 < 6 AND cuts_made > 7 AND top_5 = 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (wins VARCHAR, top_5 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR) Question: How many Wins have a Top-10 smaller than 6, and Cuts made larger than 7, and a Top-5 of 0? [/INST] SELECT COUNT(wins) FROM... |
What is the result of the game on May 14? | CREATE TABLE table_name_49 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_49 WHERE date = "may 14" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (result VARCHAR, date VARCHAR) Question: What is the result of the game on May 14? [/INST] SELECT result FROM table_name_49 WHERE date = "may 14" </s> |
What is the result of the game on May 14 with Philadelphia as the road team? | CREATE TABLE table_name_48 (result VARCHAR, road_team VARCHAR, date VARCHAR) | SELECT result FROM table_name_48 WHERE road_team = "philadelphia" AND date = "may 14" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (result VARCHAR, road_team VARCHAR, date VARCHAR) Question: What is the result of the game on May 14 with Philadelphia as the road team? [/INST] SELECT result FROM table_name_48 WHERE road_team = "... |
What is the result of the game on May 4 with Philadelphia as the road team? | CREATE TABLE table_name_48 (result VARCHAR, road_team VARCHAR, date VARCHAR) | SELECT result FROM table_name_48 WHERE road_team = "philadelphia" AND date = "may 4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (result VARCHAR, road_team VARCHAR, date VARCHAR) Question: What is the result of the game on May 4 with Philadelphia as the road team? [/INST] SELECT result FROM table_name_48 WHERE road_team = "p... |
What is the road team of game 6 with Philadelphia as the home team? | CREATE TABLE table_name_56 (road_team VARCHAR, home_team VARCHAR, game VARCHAR) | SELECT road_team FROM table_name_56 WHERE home_team = "philadelphia" AND game = "game 6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (road_team VARCHAR, home_team VARCHAR, game VARCHAR) Question: What is the road team of game 6 with Philadelphia as the home team? [/INST] SELECT road_team FROM table_name_56 WHERE home_team = "phi... |
What is the result of game 5 with Los Angeles as the home team? | CREATE TABLE table_name_26 (result VARCHAR, home_team VARCHAR, game VARCHAR) | SELECT result FROM table_name_26 WHERE home_team = "los angeles" AND game = "game 5" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (result VARCHAR, home_team VARCHAR, game VARCHAR) Question: What is the result of game 5 with Los Angeles as the home team? [/INST] SELECT result FROM table_name_26 WHERE home_team = "los angeles" ... |
What is the road team of the game with Philadelphia as the home team with a result of 105-102? | CREATE TABLE table_name_53 (road_team VARCHAR, home_team VARCHAR, result VARCHAR) | SELECT road_team FROM table_name_53 WHERE home_team = "philadelphia" AND result = "105-102" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (road_team VARCHAR, home_team VARCHAR, result VARCHAR) Question: What is the road team of the game with Philadelphia as the home team with a result of 105-102? [/INST] SELECT road_team FROM table_n... |
Which Result has a Party of republican, and a First elected smaller than 1856? | CREATE TABLE table_name_26 (result VARCHAR, party VARCHAR, first_elected VARCHAR) | SELECT result FROM table_name_26 WHERE party = "republican" AND first_elected < 1856 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (result VARCHAR, party VARCHAR, first_elected VARCHAR) Question: Which Result has a Party of republican, and a First elected smaller than 1856? [/INST] SELECT result FROM table_name_26 WHERE party ... |
Which District has a First elected of 1856, and an Incumbent of william kellogg? | CREATE TABLE table_name_20 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR) | SELECT district FROM table_name_20 WHERE first_elected = 1856 AND incumbent = "william kellogg" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR) Question: Which District has a First elected of 1856, and an Incumbent of william kellogg? [/INST] SELECT district FROM table_name_20 WH... |
Which First elected has a District of illinois 3? | CREATE TABLE table_name_52 (first_elected INTEGER, district VARCHAR) | SELECT MAX(first_elected) FROM table_name_52 WHERE district = "illinois 3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (first_elected INTEGER, district VARCHAR) Question: Which First elected has a District of illinois 3? [/INST] SELECT MAX(first_elected) FROM table_name_52 WHERE district = "illinois 3" </s> |
How much First elected has a Result of re-elected, and a Party of republican, and a District of illinois 4? | CREATE TABLE table_name_76 (first_elected VARCHAR, district VARCHAR, result VARCHAR, party VARCHAR) | SELECT COUNT(first_elected) FROM table_name_76 WHERE result = "re-elected" AND party = "republican" AND district = "illinois 4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (first_elected VARCHAR, district VARCHAR, result VARCHAR, party VARCHAR) Question: How much First elected has a Result of re-elected, and a Party of republican, and a District of illinois 4? [/INST... |
on january 7 what is home? | CREATE TABLE table_name_33 (home VARCHAR, date VARCHAR) | SELECT home FROM table_name_33 WHERE date = "january 7" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (home VARCHAR, date VARCHAR) Question: on january 7 what is home? [/INST] SELECT home FROM table_name_33 WHERE date = "january 7" </s> |
on january 12 who was the visitor? | CREATE TABLE table_name_16 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_16 WHERE date = "january 12" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (visitor VARCHAR, date VARCHAR) Question: on january 12 who was the visitor? [/INST] SELECT visitor FROM table_name_16 WHERE date = "january 12" </s> |
on january 7 what is the record? | CREATE TABLE table_name_63 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_63 WHERE date = "january 7" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (record VARCHAR, date VARCHAR) Question: on january 7 what is the record? [/INST] SELECT record FROM table_name_63 WHERE date = "january 7" </s> |
What is the total number of silver medals of the team with less than 2 gold, 1 bronze, and more than 2 total medals? | CREATE TABLE table_name_13 (silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR) | SELECT COUNT(silver) FROM table_name_13 WHERE gold < 2 AND bronze = 1 AND total > 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR) Question: What is the total number of silver medals of the team with less than 2 gold, 1 bronze, and more than 2 total medals? [/INST] ... |
What is the highest number of silver medals of the team with less than 0 bronzes? | CREATE TABLE table_name_85 (silver INTEGER, bronze INTEGER) | SELECT MAX(silver) FROM table_name_85 WHERE bronze < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (silver INTEGER, bronze INTEGER) Question: What is the highest number of silver medals of the team with less than 0 bronzes? [/INST] SELECT MAX(silver) FROM table_name_85 WHERE bronze < 0 </s> |
What is the total number of silver medals of the team ranked 7 with more than 1 total medal? | CREATE TABLE table_name_59 (silver VARCHAR, rank VARCHAR, total VARCHAR) | SELECT COUNT(silver) FROM table_name_59 WHERE rank = "7" AND total > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (silver VARCHAR, rank VARCHAR, total VARCHAR) Question: What is the total number of silver medals of the team ranked 7 with more than 1 total medal? [/INST] SELECT COUNT(silver) FROM table_name_59 ... |
What is the average number of bronze medals of the team with 0 silvers, ranked 3, and less than 1 total medal? | CREATE TABLE table_name_52 (bronze INTEGER, total VARCHAR, silver VARCHAR, rank VARCHAR) | SELECT AVG(bronze) FROM table_name_52 WHERE silver = 0 AND rank = "3" AND total < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (bronze INTEGER, total VARCHAR, silver VARCHAR, rank VARCHAR) Question: What is the average number of bronze medals of the team with 0 silvers, ranked 3, and less than 1 total medal? [/INST] SELECT... |
What is the number of silver medals of the team with 0 gold, ranked 5, and more than 0 bronze medals? | CREATE TABLE table_name_84 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR) | SELECT SUM(silver) FROM table_name_84 WHERE gold = 0 AND rank = "5" AND bronze > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR) Question: What is the number of silver medals of the team with 0 gold, ranked 5, and more than 0 bronze medals? [/INST] SELECT SUM(silve... |
What was the sum for a top-10 U.S. open that had a top-25 bigger than 0? | CREATE TABLE table_name_83 (top_10 INTEGER, tournament VARCHAR, top_25 VARCHAR) | SELECT SUM(top_10) FROM table_name_83 WHERE tournament = "u.s. open" AND top_25 > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (top_10 INTEGER, tournament VARCHAR, top_25 VARCHAR) Question: What was the sum for a top-10 U.S. open that had a top-25 bigger than 0? [/INST] SELECT SUM(top_10) FROM table_name_83 WHERE tournamen... |
What were the total number of cuts made in an event larger than 4 and a top-10 smaller than 4? | CREATE TABLE table_name_17 (cuts_made VARCHAR, events VARCHAR, top_10 VARCHAR) | SELECT COUNT(cuts_made) FROM table_name_17 WHERE events > 4 AND top_10 < 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (cuts_made VARCHAR, events VARCHAR, top_10 VARCHAR) Question: What were the total number of cuts made in an event larger than 4 and a top-10 smaller than 4? [/INST] SELECT COUNT(cuts_made) FROM tab... |
What is the total number of top-25 that has a top-10 smaller than 4 with 0 cuts? | CREATE TABLE table_name_95 (top_25 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR) | SELECT COUNT(top_25) FROM table_name_95 WHERE top_10 < 4 AND cuts_made > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (top_25 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR) Question: What is the total number of top-25 that has a top-10 smaller than 4 with 0 cuts? [/INST] SELECT COUNT(top_25) FROM table_name_95 WHERE ... |
What was the cuts average in tournament totals in an event larger than 24? | CREATE TABLE table_name_62 (cuts_made INTEGER, tournament VARCHAR, events VARCHAR) | SELECT AVG(cuts_made) FROM table_name_62 WHERE tournament = "totals" AND events > 24 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (cuts_made INTEGER, tournament VARCHAR, events VARCHAR) Question: What was the cuts average in tournament totals in an event larger than 24? [/INST] SELECT AVG(cuts_made) FROM table_name_62 WHERE t... |
What is the total for a top-10 in a masters tournament in an event smaller than 4? | CREATE TABLE table_name_52 (top_10 VARCHAR, tournament VARCHAR, events VARCHAR) | SELECT COUNT(top_10) FROM table_name_52 WHERE tournament = "masters tournament" AND events < 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (top_10 VARCHAR, tournament VARCHAR, events VARCHAR) Question: What is the total for a top-10 in a masters tournament in an event smaller than 4? [/INST] SELECT COUNT(top_10) FROM table_name_52 WHE... |
Which Against is the highest one that has a Team of flamengo, and a Lost smaller than 1? | CREATE TABLE table_name_95 (against INTEGER, team VARCHAR, lost VARCHAR) | SELECT MAX(against) FROM table_name_95 WHERE team = "flamengo" AND lost < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (against INTEGER, team VARCHAR, lost VARCHAR) Question: Which Against is the highest one that has a Team of flamengo, and a Lost smaller than 1? [/INST] SELECT MAX(against) FROM table_name_95 WHERE... |
How many Lost have a Team of flamengo, and an Against smaller than 5? | CREATE TABLE table_name_92 (lost VARCHAR, team VARCHAR, against VARCHAR) | SELECT COUNT(lost) FROM table_name_92 WHERE team = "flamengo" AND against < 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (lost VARCHAR, team VARCHAR, against VARCHAR) Question: How many Lost have a Team of flamengo, and an Against smaller than 5? [/INST] SELECT COUNT(lost) FROM table_name_92 WHERE team = "flamengo" A... |
Which Played is the highest one that has Points of 5, and a Drawn smaller than 1? | CREATE TABLE table_name_94 (played INTEGER, points VARCHAR, drawn VARCHAR) | SELECT MAX(played) FROM table_name_94 WHERE points = 5 AND drawn < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (played INTEGER, points VARCHAR, drawn VARCHAR) Question: Which Played is the highest one that has Points of 5, and a Drawn smaller than 1? [/INST] SELECT MAX(played) FROM table_name_94 WHERE point... |
What was the nationality for the player in Round 1? | CREATE TABLE table_name_11 (nationality VARCHAR, round VARCHAR) | SELECT nationality FROM table_name_11 WHERE round = 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (nationality VARCHAR, round VARCHAR) Question: What was the nationality for the player in Round 1? [/INST] SELECT nationality FROM table_name_11 WHERE round = 1 </s> |
Who plays the right wing position? | CREATE TABLE table_name_66 (player VARCHAR, position VARCHAR) | SELECT player FROM table_name_66 WHERE position = "right wing" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (player VARCHAR, position VARCHAR) Question: Who plays the right wing position? [/INST] SELECT player FROM table_name_66 WHERE position = "right wing" </s> |
What celebrity finished 6th? | CREATE TABLE table_name_79 (celebrity VARCHAR, finished VARCHAR) | SELECT celebrity FROM table_name_79 WHERE finished = "6th" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (celebrity VARCHAR, finished VARCHAR) Question: What celebrity finished 6th? [/INST] SELECT celebrity FROM table_name_79 WHERE finished = "6th" </s> |
What day did the celebrity who finished 4th enter? | CREATE TABLE table_name_96 (entered VARCHAR, finished VARCHAR) | SELECT entered FROM table_name_96 WHERE finished = "4th" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (entered VARCHAR, finished VARCHAR) Question: What day did the celebrity who finished 4th enter? [/INST] SELECT entered FROM table_name_96 WHERE finished = "4th" </s> |
Which celebrity who was famous for being the ex busted member and TV presenter exited on day 19? | CREATE TABLE table_name_53 (celebrity VARCHAR, exited VARCHAR, famous_for VARCHAR) | SELECT celebrity FROM table_name_53 WHERE exited = "day 19" AND famous_for = "ex busted member and tv presenter" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (celebrity VARCHAR, exited VARCHAR, famous_for VARCHAR) Question: Which celebrity who was famous for being the ex busted member and TV presenter exited on day 19? [/INST] SELECT celebrity FROM tabl... |
Which celebrity was famous for finishing 9th? | CREATE TABLE table_name_52 (famous_for VARCHAR, finished VARCHAR) | SELECT famous_for FROM table_name_52 WHERE finished = "9th" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (famous_for VARCHAR, finished VARCHAR) Question: Which celebrity was famous for finishing 9th? [/INST] SELECT famous_for FROM table_name_52 WHERE finished = "9th" </s> |
What rank did Myleene Klass finish? | CREATE TABLE table_name_77 (finished VARCHAR, celebrity VARCHAR) | SELECT finished FROM table_name_77 WHERE celebrity = "myleene klass" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (finished VARCHAR, celebrity VARCHAR) Question: What rank did Myleene Klass finish? [/INST] SELECT finished FROM table_name_77 WHERE celebrity = "myleene klass" </s> |
Opponent of kilmarnock, and a Result of 1–1 happened in what venue? | CREATE TABLE table_name_24 (venue VARCHAR, opponent VARCHAR, result VARCHAR) | SELECT venue FROM table_name_24 WHERE opponent = "kilmarnock" AND result = "1–1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (venue VARCHAR, opponent VARCHAR, result VARCHAR) Question: Opponent of kilmarnock, and a Result of 1–1 happened in what venue? [/INST] SELECT venue FROM table_name_24 WHERE opponent = "kilmarnock"... |
what is the weight of a shot that is xx-inch? | CREATE TABLE table_name_51 (weight_of_shot VARCHAR, designation__bore_ VARCHAR) | SELECT weight_of_shot FROM table_name_51 WHERE designation__bore_ = "xx-inch" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (weight_of_shot VARCHAR, designation__bore_ VARCHAR) Question: what is the weight of a shot that is xx-inch? [/INST] SELECT weight_of_shot FROM table_name_51 WHERE designation__bore_ = "xx-inch" </... |
What is the length of the film with Burleigh Sullivan as the character? | CREATE TABLE table_name_30 (length VARCHAR, character_name VARCHAR) | SELECT length FROM table_name_30 WHERE character_name = "burleigh sullivan" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (length VARCHAR, character_name VARCHAR) Question: What is the length of the film with Burleigh Sullivan as the character? [/INST] SELECT length FROM table_name_30 WHERE character_name = "burleigh ... |
What is the length of the film with the character type being a milkman turned prizefighter? | CREATE TABLE table_name_31 (length VARCHAR, character_type VARCHAR) | SELECT length FROM table_name_31 WHERE character_type = "milkman turned prizefighter" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (length VARCHAR, character_type VARCHAR) Question: What is the length of the film with the character type being a milkman turned prizefighter? [/INST] SELECT length FROM table_name_31 WHERE charact... |
What is the character name that has phyllis welch as the leading lady? | CREATE TABLE table_name_97 (character_name VARCHAR, leading_lady VARCHAR) | SELECT character_name FROM table_name_97 WHERE leading_lady = "phyllis welch" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (character_name VARCHAR, leading_lady VARCHAR) Question: What is the character name that has phyllis welch as the leading lady? [/INST] SELECT character_name FROM table_name_97 WHERE leading_lady =... |
Who directed the film that had phyllis welch as the leading lady? | CREATE TABLE table_name_74 (director_s_ VARCHAR, leading_lady VARCHAR) | SELECT director_s_ FROM table_name_74 WHERE leading_lady = "phyllis welch" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (director_s_ VARCHAR, leading_lady VARCHAR) Question: Who directed the film that had phyllis welch as the leading lady? [/INST] SELECT director_s_ FROM table_name_74 WHERE leading_lady = "phyllis w... |
What was the character name for the film with a release date of July 29, 1938? | CREATE TABLE table_name_72 (character_name VARCHAR, release_date VARCHAR) | SELECT character_name FROM table_name_72 WHERE release_date = "july 29, 1938" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (character_name VARCHAR, release_date VARCHAR) Question: What was the character name for the film with a release date of July 29, 1938? [/INST] SELECT character_name FROM table_name_72 WHERE releas... |
What Locomotive was Delivered as T414? | CREATE TABLE table_name_2 (locomotive VARCHAR, delivered_as VARCHAR) | SELECT locomotive FROM table_name_2 WHERE delivered_as = "t414" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (locomotive VARCHAR, delivered_as VARCHAR) Question: What Locomotive was Delivered as T414? [/INST] SELECT locomotive FROM table_name_2 WHERE delivered_as = "t414" </s> |
What Owner Delivered the T415? | CREATE TABLE table_name_70 (owner VARCHAR, delivered_as VARCHAR) | SELECT owner FROM table_name_70 WHERE delivered_as = "t415" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (owner VARCHAR, delivered_as VARCHAR) Question: What Owner Delivered the T415? [/INST] SELECT owner FROM table_name_70 WHERE delivered_as = "t415" </s> |
What is the Entered service date of the T413? | CREATE TABLE table_name_32 (entered_service VARCHAR, delivered_as VARCHAR) | SELECT entered_service FROM table_name_32 WHERE delivered_as = "t413" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (entered_service VARCHAR, delivered_as VARCHAR) Question: What is the Entered service date of the T413? [/INST] SELECT entered_service FROM table_name_32 WHERE delivered_as = "t413" </s> |
What is the Delivered as name of the H3 Locomotive? | CREATE TABLE table_name_64 (delivered_as VARCHAR, locomotive VARCHAR) | SELECT delivered_as FROM table_name_64 WHERE locomotive = "h3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (delivered_as VARCHAR, locomotive VARCHAR) Question: What is the Delivered as name of the H3 Locomotive? [/INST] SELECT delivered_as FROM table_name_64 WHERE locomotive = "h3" </s> |
What is the Entered service date of the H1 Locomotive? | CREATE TABLE table_name_54 (entered_service VARCHAR, locomotive VARCHAR) | SELECT entered_service FROM table_name_54 WHERE locomotive = "h1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (entered_service VARCHAR, locomotive VARCHAR) Question: What is the Entered service date of the H1 Locomotive? [/INST] SELECT entered_service FROM table_name_54 WHERE locomotive = "h1" </s> |
What was the highest week with a result of l 16–12? | CREATE TABLE table_name_53 (week INTEGER, result VARCHAR) | SELECT MAX(week) FROM table_name_53 WHERE result = "l 16–12" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (week INTEGER, result VARCHAR) Question: What was the highest week with a result of l 16–12? [/INST] SELECT MAX(week) FROM table_name_53 WHERE result = "l 16–12" </s> |
Who was the opponent at the game with a result of l 27–3? | CREATE TABLE table_name_52 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_52 WHERE result = "l 27–3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (opponent VARCHAR, result VARCHAR) Question: Who was the opponent at the game with a result of l 27–3? [/INST] SELECT opponent FROM table_name_52 WHERE result = "l 27–3" </s> |
What was the date of the game with a result of bye before week 12? | CREATE TABLE table_name_3 (date VARCHAR, week VARCHAR, result VARCHAR) | SELECT date FROM table_name_3 WHERE week < 12 AND result = "bye" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (date VARCHAR, week VARCHAR, result VARCHAR) Question: What was the date of the game with a result of bye before week 12? [/INST] SELECT date FROM table_name_3 WHERE week < 12 AND result = "bye" </s... |
What was the record at the game against the Los Angeles Rams? | CREATE TABLE table_name_25 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_25 WHERE opponent = "los angeles rams" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (record VARCHAR, opponent VARCHAR) Question: What was the record at the game against the Los Angeles Rams? [/INST] SELECT record FROM table_name_25 WHERE opponent = "los angeles rams" </s> |
Who is the opponent from September 28? | CREATE TABLE table_name_13 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_13 WHERE date = "september 28" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (opponent VARCHAR, date VARCHAR) Question: Who is the opponent from September 28? [/INST] SELECT opponent FROM table_name_13 WHERE date = "september 28" </s> |
Who was the opponent at the game later than game 22 when the record was 17-10-4? | CREATE TABLE table_name_56 (opponent VARCHAR, game VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_56 WHERE game > 22 AND record = "17-10-4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (opponent VARCHAR, game VARCHAR, record VARCHAR) Question: Who was the opponent at the game later than game 22 when the record was 17-10-4? [/INST] SELECT opponent FROM table_name_56 WHERE game > 2... |
What were the Opponents of the team, that made it to the third round, before 2008? | CREATE TABLE table_name_95 (opponents VARCHAR, year VARCHAR, progress VARCHAR) | SELECT opponents FROM table_name_95 WHERE year < 2008 AND progress = "third round" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (opponents VARCHAR, year VARCHAR, progress VARCHAR) Question: What were the Opponents of the team, that made it to the third round, before 2008? [/INST] SELECT opponents FROM table_name_95 WHERE ye... |
What was the score in 1997 for the team that has a Progress of no entrants? | CREATE TABLE table_name_83 (score VARCHAR, progress VARCHAR, year VARCHAR) | SELECT score FROM table_name_83 WHERE progress = "no entrants" AND year = 1997 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (score VARCHAR, progress VARCHAR, year VARCHAR) Question: What was the score in 1997 for the team that has a Progress of no entrants? [/INST] SELECT score FROM table_name_83 WHERE progress = "no en... |
How many Atts that have Yards of 43 and a Long larger than 43? | CREATE TABLE table_name_65 (att INTEGER, yards VARCHAR, long VARCHAR) | SELECT SUM(att) FROM table_name_65 WHERE yards = 43 AND long > 43 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (att INTEGER, yards VARCHAR, long VARCHAR) Question: How many Atts that have Yards of 43 and a Long larger than 43? [/INST] SELECT SUM(att) FROM table_name_65 WHERE yards = 43 AND long > 43 </s> |
How many Ints have a Rating smaller than 87, and Yards larger than 4? | CREATE TABLE table_name_19 (int INTEGER, rating VARCHAR, yards VARCHAR) | SELECT AVG(int) FROM table_name_19 WHERE rating < 87 AND yards > 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (int INTEGER, rating VARCHAR, yards VARCHAR) Question: How many Ints have a Rating smaller than 87, and Yards larger than 4? [/INST] SELECT AVG(int) FROM table_name_19 WHERE rating < 87 AND yards >... |
Which visitor has detroit as the home, and february 24 as the date? | CREATE TABLE table_name_76 (visitor VARCHAR, home VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_76 WHERE home = "detroit" AND date = "february 24" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (visitor VARCHAR, home VARCHAR, date VARCHAR) Question: Which visitor has detroit as the home, and february 24 as the date? [/INST] SELECT visitor FROM table_name_76 WHERE home = "detroit" AND date... |
What score has detroit as the home and february 17 as the date? | CREATE TABLE table_name_6 (score VARCHAR, home VARCHAR, date VARCHAR) | SELECT score FROM table_name_6 WHERE home = "detroit" AND date = "february 17" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (score VARCHAR, home VARCHAR, date VARCHAR) Question: What score has detroit as the home and february 17 as the date? [/INST] SELECT score FROM table_name_6 WHERE home = "detroit" AND date = "februa... |
What shows for Scorers when the Opponent was west germany on October 7? | CREATE TABLE table_name_31 (scorers VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT scorers FROM table_name_31 WHERE opponent = "west germany" AND date = "october 7" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (scorers VARCHAR, opponent VARCHAR, date VARCHAR) Question: What shows for Scorers when the Opponent was west germany on October 7? [/INST] SELECT scorers FROM table_name_31 WHERE opponent = "west ... |
Who was the director of Battalion Wars 2 which was released on GCN after 2004? | CREATE TABLE table_name_72 (director VARCHAR, title VARCHAR, platform_s_ VARCHAR, year VARCHAR) | SELECT director FROM table_name_72 WHERE platform_s_ = "gcn" AND year > 2004 AND title = "battalion wars 2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (director VARCHAR, title VARCHAR, platform_s_ VARCHAR, year VARCHAR) Question: Who was the director of Battalion Wars 2 which was released on GCN after 2004? [/INST] SELECT director FROM table_name... |
What year was Metroid Prime Hunters 5 released? | CREATE TABLE table_name_7 (year INTEGER, title VARCHAR) | SELECT SUM(year) FROM table_name_7 WHERE title = "metroid prime hunters 5" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (year INTEGER, title VARCHAR) Question: What year was Metroid Prime Hunters 5 released? [/INST] SELECT SUM(year) FROM table_name_7 WHERE title = "metroid prime hunters 5" </s> |
What platform was used for the game directed by Bryan Walker after 2006? | CREATE TABLE table_name_45 (platform_s_ VARCHAR, year VARCHAR, director VARCHAR) | SELECT platform_s_ FROM table_name_45 WHERE year > 2006 AND director = "bryan walker" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (platform_s_ VARCHAR, year VARCHAR, director VARCHAR) Question: What platform was used for the game directed by Bryan Walker after 2006? [/INST] SELECT platform_s_ FROM table_name_45 WHERE year > 2... |
What 3ds game did Naohiko Aoyama direct? | CREATE TABLE table_name_72 (title VARCHAR, platform_s_ VARCHAR, director VARCHAR) | SELECT title FROM table_name_72 WHERE platform_s_ = "3ds" AND director = "naohiko aoyama" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (title VARCHAR, platform_s_ VARCHAR, director VARCHAR) Question: What 3ds game did Naohiko Aoyama direct? [/INST] SELECT title FROM table_name_72 WHERE platform_s_ = "3ds" AND director = "naohiko a... |
What was the score when the loss was hideo nomo (3–5)? | CREATE TABLE table_name_57 (score VARCHAR, loss VARCHAR) | SELECT score FROM table_name_57 WHERE loss = "hideo nomo (3–5)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (score VARCHAR, loss VARCHAR) Question: What was the score when the loss was hideo nomo (3–5)? [/INST] SELECT score FROM table_name_57 WHERE loss = "hideo nomo (3–5)" </s> |
What was the score on may 19? | CREATE TABLE table_name_77 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_77 WHERE date = "may 19" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (score VARCHAR, date VARCHAR) Question: What was the score on may 19? [/INST] SELECT score FROM table_name_77 WHERE date = "may 19" </s> |
Name of the highest Pick is also a Round greater than 5 and Player as Tom Ivey? | CREATE TABLE table_name_9 (pick INTEGER, round VARCHAR, player VARCHAR) | SELECT MAX(pick) FROM table_name_9 WHERE round > 5 AND player = "tom ivey" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (pick INTEGER, round VARCHAR, player VARCHAR) Question: Name of the highest Pick is also a Round greater than 5 and Player as Tom Ivey? [/INST] SELECT MAX(pick) FROM table_name_9 WHERE round > 5 AND... |
What Nationality is the Pick that is 116? | CREATE TABLE table_name_92 (nationality VARCHAR, pick VARCHAR) | SELECT nationality FROM table_name_92 WHERE pick = 116 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (nationality VARCHAR, pick VARCHAR) Question: What Nationality is the Pick that is 116? [/INST] SELECT nationality FROM table_name_92 WHERE pick = 116 </s> |
What is the total of Pick with a Position of n/a and Greg Wendt as Player with a Round less than 6? | CREATE TABLE table_name_61 (pick INTEGER, round VARCHAR, position VARCHAR, player VARCHAR) | SELECT SUM(pick) FROM table_name_61 WHERE position = "n/a" AND player = "greg wendt" AND round < 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (pick INTEGER, round VARCHAR, position VARCHAR, player VARCHAR) Question: What is the total of Pick with a Position of n/a and Greg Wendt as Player with a Round less than 6? [/INST] SELECT SUM(pick... |
What was the score at 3:27? | CREATE TABLE table_name_8 (score VARCHAR, time VARCHAR) | SELECT score FROM table_name_8 WHERE time = "3:27" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (score VARCHAR, time VARCHAR) Question: What was the score at 3:27? [/INST] SELECT score FROM table_name_8 WHERE time = "3:27" </s> |
What is the cardinal direction of Monday in English? | CREATE TABLE table_name_84 (cardinal_direction VARCHAR, english VARCHAR) | SELECT cardinal_direction FROM table_name_84 WHERE english = "monday" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (cardinal_direction VARCHAR, english VARCHAR) Question: What is the cardinal direction of Monday in English? [/INST] SELECT cardinal_direction FROM table_name_84 WHERE english = "monday" </s> |
What is the cardinal direction northwest in English? | CREATE TABLE table_name_31 (english VARCHAR, cardinal_direction VARCHAR) | SELECT english FROM table_name_31 WHERE cardinal_direction = "northwest" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (english VARCHAR, cardinal_direction VARCHAR) Question: What is the cardinal direction northwest in English? [/INST] SELECT english FROM table_name_31 WHERE cardinal_direction = "northwest" </s> |
What is the sign of Burmese taninganwe တနင်္ဂနွေ? | CREATE TABLE table_name_87 (sign VARCHAR, burmese VARCHAR) | SELECT sign FROM table_name_87 WHERE burmese = "taninganwe တနင်္ဂနွေ" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (sign VARCHAR, burmese VARCHAR) Question: What is the sign of Burmese taninganwe တနင်္ဂနွေ? [/INST] SELECT sign FROM table_name_87 WHERE burmese = "taninganwe တနင်္ဂနွေ" </s> |
What is the cardinal direction of Wednesday p.m. in English? | CREATE TABLE table_name_90 (cardinal_direction VARCHAR, english VARCHAR) | SELECT cardinal_direction FROM table_name_90 WHERE english = "wednesday p.m." | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (cardinal_direction VARCHAR, english VARCHAR) Question: What is the cardinal direction of Wednesday p.m. in English? [/INST] SELECT cardinal_direction FROM table_name_90 WHERE english = "wednesday ... |
What is the sign of the Burmese taninganwe တနင်္ဂနွေ? | CREATE TABLE table_name_94 (sign VARCHAR, burmese VARCHAR) | SELECT sign FROM table_name_94 WHERE burmese = "taninganwe တနင်္ဂနွေ" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (sign VARCHAR, burmese VARCHAR) Question: What is the sign of the Burmese taninganwe တနင်္ဂနွေ? [/INST] SELECT sign FROM table_name_94 WHERE burmese = "taninganwe တနင်္ဂနွေ" </s> |
On January 5 who was the home team? | CREATE TABLE table_name_68 (home VARCHAR, date VARCHAR) | SELECT home FROM table_name_68 WHERE date = "january 5" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (home VARCHAR, date VARCHAR) Question: On January 5 who was the home team? [/INST] SELECT home FROM table_name_68 WHERE date = "january 5" </s> |
What was the Pick Number when the position was wide receiver, the college was Southern Miss with an overall less than 186? | CREATE TABLE table_name_54 (pick__number INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR) | SELECT AVG(pick__number) FROM table_name_54 WHERE position = "wide receiver" AND college = "southern miss" AND overall < 186 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (pick__number INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR) Question: What was the Pick Number when the position was wide receiver, the college was Southern Miss with an overall less... |
Let's say position was linebacker with a pick number less than 5, what was the highest round? | CREATE TABLE table_name_61 (round INTEGER, position VARCHAR, pick__number VARCHAR) | SELECT MAX(round) FROM table_name_61 WHERE position = "linebacker" AND pick__number > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (round INTEGER, position VARCHAR, pick__number VARCHAR) Question: Let's say position was linebacker with a pick number less than 5, what was the highest round? [/INST] SELECT MAX(round) FROM table_... |
What transfer window has baptista as the name? | CREATE TABLE table_name_44 (transfer_window VARCHAR, name VARCHAR) | SELECT transfer_window FROM table_name_44 WHERE name = "baptista" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (transfer_window VARCHAR, name VARCHAR) Question: What transfer window has baptista as the name? [/INST] SELECT transfer_window FROM table_name_44 WHERE name = "baptista" </s> |
What country has a loan as the type? | CREATE TABLE table_name_6 (country VARCHAR, type VARCHAR) | SELECT country FROM table_name_6 WHERE type = "loan" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (country VARCHAR, type VARCHAR) Question: What country has a loan as the type? [/INST] SELECT country FROM table_name_6 WHERE type = "loan" </s> |
What type has song as the name? | CREATE TABLE table_name_7 (type VARCHAR, name VARCHAR) | SELECT type FROM table_name_7 WHERE name = "song" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (type VARCHAR, name VARCHAR) Question: What type has song as the name? [/INST] SELECT type FROM table_name_7 WHERE name = "song" </s> |
What ends has transferred as the type? | CREATE TABLE table_name_92 (ends VARCHAR, type VARCHAR) | SELECT ends FROM table_name_92 WHERE type = "transferred" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (ends VARCHAR, type VARCHAR) Question: What ends has transferred as the type? [/INST] SELECT ends FROM table_name_92 WHERE type = "transferred" </s> |
What moving has fra as the country? | CREATE TABLE table_name_63 (moving_from VARCHAR, country VARCHAR) | SELECT moving_from FROM table_name_63 WHERE country = "fra" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (moving_from VARCHAR, country VARCHAR) Question: What moving has fra as the country? [/INST] SELECT moving_from FROM table_name_63 WHERE country = "fra" </s> |
What transfer window has bra as the country, with £3.4m as the transfer fee? | CREATE TABLE table_name_79 (transfer_window VARCHAR, country VARCHAR, transfer_fee VARCHAR) | SELECT transfer_window FROM table_name_79 WHERE country = "bra" AND transfer_fee = "£3.4m" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (transfer_window VARCHAR, country VARCHAR, transfer_fee VARCHAR) Question: What transfer window has bra as the country, with £3.4m as the transfer fee? [/INST] SELECT transfer_window FROM table_nam... |
Which Incumbent has a District of massachusetts 2? | CREATE TABLE table_name_62 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_name_62 WHERE district = "massachusetts 2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (incumbent VARCHAR, district VARCHAR) Question: Which Incumbent has a District of massachusetts 2? [/INST] SELECT incumbent FROM table_name_62 WHERE district = "massachusetts 2" </s> |
Which Incumbent has a District of massachusetts 8? | CREATE TABLE table_name_47 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_name_47 WHERE district = "massachusetts 8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (incumbent VARCHAR, district VARCHAR) Question: Which Incumbent has a District of massachusetts 8? [/INST] SELECT incumbent FROM table_name_47 WHERE district = "massachusetts 8" </s> |
Which District has a First elected larger than 1858? | CREATE TABLE table_name_21 (district VARCHAR, first_elected INTEGER) | SELECT district FROM table_name_21 WHERE first_elected > 1858 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (district VARCHAR, first_elected INTEGER) Question: Which District has a First elected larger than 1858? [/INST] SELECT district FROM table_name_21 WHERE first_elected > 1858 </s> |
What episode has a manual motorcycle transmissions section D? | CREATE TABLE table_name_20 (episode INTEGER, segment_d VARCHAR) | SELECT SUM(episode) FROM table_name_20 WHERE segment_d = "manual motorcycle transmissions" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (episode INTEGER, segment_d VARCHAR) Question: What episode has a manual motorcycle transmissions section D? [/INST] SELECT SUM(episode) FROM table_name_20 WHERE segment_d = "manual motorcycle tra... |
What segment A is associated with a Segment C of paint chip cards? | CREATE TABLE table_name_31 (segment_a VARCHAR, segment_c VARCHAR) | SELECT segment_a FROM table_name_31 WHERE segment_c = "paint chip cards" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (segment_a VARCHAR, segment_c VARCHAR) Question: What segment A is associated with a Segment C of paint chip cards? [/INST] SELECT segment_a FROM table_name_31 WHERE segment_c = "paint chip cards" ... |
What segment A is associated with a Segment D of manual motorcycle transmissions? | CREATE TABLE table_name_76 (segment_a VARCHAR, segment_d VARCHAR) | SELECT segment_a FROM table_name_76 WHERE segment_d = "manual motorcycle transmissions" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (segment_a VARCHAR, segment_d VARCHAR) Question: What segment A is associated with a Segment D of manual motorcycle transmissions? [/INST] SELECT segment_a FROM table_name_76 WHERE segment_d = "man... |
What is shown for Austria when Croatia shows Ireland? | CREATE TABLE table_name_13 (austria VARCHAR, croatia VARCHAR) | SELECT austria FROM table_name_13 WHERE croatia = "ireland" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (austria VARCHAR, croatia VARCHAR) Question: What is shown for Austria when Croatia shows Ireland? [/INST] SELECT austria FROM table_name_13 WHERE croatia = "ireland" </s> |
What is the smallest number for 102 when Friendly of friendly, and an Austria of greece? | CREATE TABLE table_name_78 (austria VARCHAR) | SELECT MIN(102) FROM table_name_78 WHERE "friendly" = "friendly" AND austria = "greece" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (austria VARCHAR) Question: What is the smallest number for 102 when Friendly of friendly, and an Austria of greece? [/INST] SELECT MIN(102) FROM table_name_78 WHERE "friendly" = "friendly" AND aus... |
What is the Losing bonus with an extra try bonus? | CREATE TABLE table_name_89 (losing_bonus VARCHAR, try_bonus VARCHAR) | SELECT losing_bonus FROM table_name_89 WHERE try_bonus = "try bonus" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (losing_bonus VARCHAR, try_bonus VARCHAR) Question: What is the Losing bonus with an extra try bonus? [/INST] SELECT losing_bonus FROM table_name_89 WHERE try_bonus = "try bonus" </s> |
What did the loss come from a Club of mumbles rfc? | CREATE TABLE table_name_92 (lost VARCHAR, club VARCHAR) | SELECT lost FROM table_name_92 WHERE club = "mumbles rfc" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (lost VARCHAR, club VARCHAR) Question: What did the loss come from a Club of mumbles rfc? [/INST] SELECT lost FROM table_name_92 WHERE club = "mumbles rfc" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.