instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
What was the date of the game for the HartlePool United team? | CREATE TABLE table_name_27 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_27 WHERE home_team = "hartlepool united" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (date VARCHAR, home_team VARCHAR) Question: What was the date of the game for the HartlePool United team? [/INST] SELECT date FROM table_name_27 WHERE home_team = "hartlepool united" </s> |
What is the number of tickets sold and available for the concert at Long Beach Arena? | CREATE TABLE table_name_18 (tickets_sold___available VARCHAR, venue VARCHAR) | SELECT tickets_sold___available FROM table_name_18 WHERE venue = "long beach arena" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (tickets_sold___available VARCHAR, venue VARCHAR) Question: What is the number of tickets sold and available for the concert at Long Beach Arena? [/INST] SELECT tickets_sold___available FROM table_... |
Which city has a venue of the Arco Arena? | CREATE TABLE table_name_42 (city VARCHAR, venue VARCHAR) | SELECT city FROM table_name_42 WHERE venue = "arco arena" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (city VARCHAR, venue VARCHAR) Question: Which city has a venue of the Arco Arena? [/INST] SELECT city FROM table_name_42 WHERE venue = "arco arena" </s> |
What is the lowest round that has kazushi sakuraba as the opponent? | CREATE TABLE table_name_92 (round INTEGER, opponent VARCHAR) | SELECT MIN(round) FROM table_name_92 WHERE opponent = "kazushi sakuraba" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (round INTEGER, opponent VARCHAR) Question: What is the lowest round that has kazushi sakuraba as the opponent? [/INST] SELECT MIN(round) FROM table_name_92 WHERE opponent = "kazushi sakuraba" </s> |
Japan (JPN) with a total of less than 5, has what average gold medals? | CREATE TABLE table_name_51 (gold INTEGER, nation VARCHAR, total VARCHAR) | SELECT AVG(gold) FROM table_name_51 WHERE nation = "japan (jpn)" AND total < 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (gold INTEGER, nation VARCHAR, total VARCHAR) Question: Japan (JPN) with a total of less than 5, has what average gold medals? [/INST] SELECT AVG(gold) FROM table_name_51 WHERE nation = "japan (jpn... |
What is the average bronze medal when gold is greater than 0, and there is less than 0 silver medals? | CREATE TABLE table_name_86 (bronze INTEGER, gold VARCHAR, silver VARCHAR) | SELECT AVG(bronze) FROM table_name_86 WHERE gold > 0 AND silver < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (bronze INTEGER, gold VARCHAR, silver VARCHAR) Question: What is the average bronze medal when gold is greater than 0, and there is less than 0 silver medals? [/INST] SELECT AVG(bronze) FROM table_... |
What is the sum of bronze medals when the rank is greater than 2, and less than 2 total medals with silver medals being more than 0? | CREATE TABLE table_name_2 (bronze VARCHAR, silver VARCHAR, rank VARCHAR, total VARCHAR) | SELECT COUNT(bronze) FROM table_name_2 WHERE rank > 2 AND total < 2 AND silver > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (bronze VARCHAR, silver VARCHAR, rank VARCHAR, total VARCHAR) Question: What is the sum of bronze medals when the rank is greater than 2, and less than 2 total medals with silver medals being more t... |
With a greater than 4 rank, and the silver medal greater than 0, and the bronze medal less than 1, what is the average total? | CREATE TABLE table_name_23 (total INTEGER, bronze VARCHAR, rank VARCHAR, silver VARCHAR) | SELECT AVG(total) FROM table_name_23 WHERE rank > 4 AND silver > 0 AND bronze < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (total INTEGER, bronze VARCHAR, rank VARCHAR, silver VARCHAR) Question: With a greater than 4 rank, and the silver medal greater than 0, and the bronze medal less than 1, what is the average total?... |
What is the fewest gold medals when the bronze medals is greater than 5? | CREATE TABLE table_name_49 (gold INTEGER, bronze INTEGER) | SELECT MIN(gold) FROM table_name_49 WHERE bronze > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (gold INTEGER, bronze INTEGER) Question: What is the fewest gold medals when the bronze medals is greater than 5? [/INST] SELECT MIN(gold) FROM table_name_49 WHERE bronze > 5 </s> |
What is the player when the team is oakland raiders? | CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR) | SELECT player FROM table_name_89 WHERE team = "oakland raiders" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR) Question: What is the player when the team is oakland raiders? [/INST] SELECT player FROM table_name_89 WHERE team = "oakland raiders" </s> |
What is the team when the college is virginia tech? | CREATE TABLE table_name_30 (team VARCHAR, college VARCHAR) | SELECT team FROM table_name_30 WHERE college = "virginia tech" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (team VARCHAR, college VARCHAR) Question: What is the team when the college is virginia tech? [/INST] SELECT team FROM table_name_30 WHERE college = "virginia tech" </s> |
What college has a team of new york jets? | CREATE TABLE table_name_74 (college VARCHAR, team VARCHAR) | SELECT college FROM table_name_74 WHERE team = "new york jets" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (college VARCHAR, team VARCHAR) Question: What college has a team of new york jets? [/INST] SELECT college FROM table_name_74 WHERE team = "new york jets" </s> |
What team has a pick larger than 30, when the college is saginaw valley state? | CREATE TABLE table_name_74 (team VARCHAR, pick VARCHAR, college VARCHAR) | SELECT team FROM table_name_74 WHERE pick > 30 AND college = "saginaw valley state" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (team VARCHAR, pick VARCHAR, college VARCHAR) Question: What team has a pick larger than 30, when the college is saginaw valley state? [/INST] SELECT team FROM table_name_74 WHERE pick > 30 AND col... |
What is the highest pick when the college is saginaw valley state? | CREATE TABLE table_name_61 (pick INTEGER, college VARCHAR) | SELECT MAX(pick) FROM table_name_61 WHERE college = "saginaw valley state" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (pick INTEGER, college VARCHAR) Question: What is the highest pick when the college is saginaw valley state? [/INST] SELECT MAX(pick) FROM table_name_61 WHERE college = "saginaw valley state" </s> |
what is the record when the opponent is akiko inoue? | CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_37 WHERE opponent = "akiko inoue" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR) Question: what is the record when the opponent is akiko inoue? [/INST] SELECT record FROM table_name_37 WHERE opponent = "akiko inoue" </s> |
what is the even when the location is tokyo, japan and the record is 6-1? | CREATE TABLE table_name_7 (event VARCHAR, location VARCHAR, record VARCHAR) | SELECT event FROM table_name_7 WHERE location = "tokyo, japan" AND record = "6-1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (event VARCHAR, location VARCHAR, record VARCHAR) Question: what is the even when the location is tokyo, japan and the record is 6-1? [/INST] SELECT event FROM table_name_7 WHERE location = "tokyo, ... |
Which range includes Mount Fukushima, and is ranked 38? | CREATE TABLE table_name_7 (range VARCHAR, name VARCHAR, rank VARCHAR) | SELECT range FROM table_name_7 WHERE name = "mount fukushima" AND rank = 38 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (range VARCHAR, name VARCHAR, rank VARCHAR) Question: Which range includes Mount Fukushima, and is ranked 38? [/INST] SELECT range FROM table_name_7 WHERE name = "mount fukushima" AND rank = 38 </s> |
What is the altitude (meters) is associated with the Name Mount Launoit, with the range as Belgica Mountains? | CREATE TABLE table_name_93 (altitude__meters_ INTEGER, range VARCHAR, name VARCHAR) | SELECT SUM(altitude__meters_) FROM table_name_93 WHERE range = "belgica mountains" AND name = "mount launoit" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (altitude__meters_ INTEGER, range VARCHAR, name VARCHAR) Question: What is the altitude (meters) is associated with the Name Mount Launoit, with the range as Belgica Mountains? [/INST] SELECT SUM(a... |
What is the Altitude (meters) associated with a rank smaller than 10, and the range Mühlig-Hofmann Mountains? | CREATE TABLE table_name_72 (altitude__meters_ VARCHAR, range VARCHAR, rank VARCHAR) | SELECT COUNT(altitude__meters_) FROM table_name_72 WHERE range = "mühlig-hofmann mountains" AND rank < 10 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (altitude__meters_ VARCHAR, range VARCHAR, rank VARCHAR) Question: What is the Altitude (meters) associated with a rank smaller than 10, and the range Mühlig-Hofmann Mountains? [/INST] SELECT COUNT... |
What name is associated with a rank greater than 69, an altitude (meters) smaller than 2154, and a range of Sivorgfjella? | CREATE TABLE table_name_79 (name VARCHAR, altitude__meters_ VARCHAR, range VARCHAR, rank VARCHAR) | SELECT name FROM table_name_79 WHERE range = "sivorgfjella" AND rank > 69 AND altitude__meters_ < 2154 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (name VARCHAR, altitude__meters_ VARCHAR, range VARCHAR, rank VARCHAR) Question: What name is associated with a rank greater than 69, an altitude (meters) smaller than 2154, and a range of Sivorgfj... |
What name is associated with a rank of less than 24, and an altitude (meters) of 3085? | CREATE TABLE table_name_41 (name VARCHAR, rank VARCHAR, altitude__meters_ VARCHAR) | SELECT name FROM table_name_41 WHERE rank < 24 AND altitude__meters_ = 3085 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (name VARCHAR, rank VARCHAR, altitude__meters_ VARCHAR) Question: What name is associated with a rank of less than 24, and an altitude (meters) of 3085? [/INST] SELECT name FROM table_name_41 WHERE... |
What is the primary conference with a IHSAA Football Class of A, at South Decatur school? | CREATE TABLE table_name_56 (primary_conference VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) | SELECT primary_conference FROM table_name_56 WHERE ihsaa_football_class = "a" AND school = "south decatur" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (primary_conference VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) Question: What is the primary conference with a IHSAA Football Class of A, at South Decatur school? [/INST] SELECT primary... |
What is the Location with a county of 30 Hancock? | CREATE TABLE table_name_28 (location VARCHAR, county VARCHAR) | SELECT location FROM table_name_28 WHERE county = "30 hancock" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (location VARCHAR, county VARCHAR) Question: What is the Location with a county of 30 Hancock? [/INST] SELECT location FROM table_name_28 WHERE county = "30 hancock" </s> |
What county has an IHSAA Football Class of A, and a Mascot of royals? | CREATE TABLE table_name_36 (county VARCHAR, ihsaa_football_class VARCHAR, mascot VARCHAR) | SELECT county FROM table_name_36 WHERE ihsaa_football_class = "a" AND mascot = "royals" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (county VARCHAR, ihsaa_football_class VARCHAR, mascot VARCHAR) Question: What county has an IHSAA Football Class of A, and a Mascot of royals? [/INST] SELECT county FROM table_name_36 WHERE ihsaa_f... |
What school has a county of 69 ripley? | CREATE TABLE table_name_74 (school VARCHAR, county VARCHAR) | SELECT school FROM table_name_74 WHERE county = "69 ripley" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (school VARCHAR, county VARCHAR) Question: What school has a county of 69 ripley? [/INST] SELECT school FROM table_name_74 WHERE county = "69 ripley" </s> |
What is the enrollment for the school with the mascot of the Fighting '59ers? | CREATE TABLE table_name_9 (enrollment VARCHAR, mascot VARCHAR) | SELECT enrollment FROM table_name_9 WHERE mascot = "fighting '59ers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (enrollment VARCHAR, mascot VARCHAR) Question: What is the enrollment for the school with the mascot of the Fighting '59ers? [/INST] SELECT enrollment FROM table_name_9 WHERE mascot = "fighting '59e... |
What nation has a total less than 2, silver of 1 and bronze less than 1? | CREATE TABLE table_name_32 (nation VARCHAR, silver VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT nation FROM table_name_32 WHERE total < 2 AND bronze < 1 AND silver = 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (nation VARCHAR, silver VARCHAR, total VARCHAR, bronze VARCHAR) Question: What nation has a total less than 2, silver of 1 and bronze less than 1? [/INST] SELECT nation FROM table_name_32 WHERE tot... |
What's the total with silver being less than 0, less than 1 gold, and 3 bronze? | CREATE TABLE table_name_25 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR) | SELECT SUM(total) FROM table_name_25 WHERE bronze = 3 AND gold < 1 AND silver < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR) Question: What's the total with silver being less than 0, less than 1 gold, and 3 bronze? [/INST] SELECT SUM(total) FROM table_name_25 ... |
What's Australia's time in the heat more than 4? | CREATE TABLE table_name_43 (time VARCHAR, heat VARCHAR, nationality VARCHAR) | SELECT time FROM table_name_43 WHERE heat > 4 AND nationality = "australia" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (time VARCHAR, heat VARCHAR, nationality VARCHAR) Question: What's Australia's time in the heat more than 4? [/INST] SELECT time FROM table_name_43 WHERE heat > 4 AND nationality = "australia" </s> |
What's Sara Isakovič's lane number that had a heat of 3? | CREATE TABLE table_name_43 (lane INTEGER, heat VARCHAR, name VARCHAR) | SELECT SUM(lane) FROM table_name_43 WHERE heat = 3 AND name = "sara isakovič" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (lane INTEGER, heat VARCHAR, name VARCHAR) Question: What's Sara Isakovič's lane number that had a heat of 3? [/INST] SELECT SUM(lane) FROM table_name_43 WHERE heat = 3 AND name = "sara isakovič" <... |
What's the heat that was timed 2:08.54? | CREATE TABLE table_name_64 (heat VARCHAR, time VARCHAR) | SELECT COUNT(heat) FROM table_name_64 WHERE time = "2:08.54" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (heat VARCHAR, time VARCHAR) Question: What's the heat that was timed 2:08.54? [/INST] SELECT COUNT(heat) FROM table_name_64 WHERE time = "2:08.54" </s> |
Who is the Director of Fish Tales? | CREATE TABLE table_name_94 (director VARCHAR, title VARCHAR) | SELECT director FROM table_name_94 WHERE title = "fish tales" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (director VARCHAR, title VARCHAR) Question: Who is the Director of Fish Tales? [/INST] SELECT director FROM table_name_94 WHERE title = "fish tales" </s> |
What was released on 1936-08-29? | CREATE TABLE table_name_40 (title VARCHAR, release_date VARCHAR) | SELECT title FROM table_name_40 WHERE release_date = "1936-08-29" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (title VARCHAR, release_date VARCHAR) Question: What was released on 1936-08-29? [/INST] SELECT title FROM table_name_40 WHERE release_date = "1936-08-29" </s> |
What is the release date of Milk and Money? | CREATE TABLE table_name_50 (release_date VARCHAR, title VARCHAR) | SELECT release_date FROM table_name_50 WHERE title = "milk and money" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (release_date VARCHAR, title VARCHAR) Question: What is the release date of Milk and Money? [/INST] SELECT release_date FROM table_name_50 WHERE title = "milk and money" </s> |
What is the release date of I Wanna Play House? | CREATE TABLE table_name_95 (release_date VARCHAR, title VARCHAR) | SELECT release_date FROM table_name_95 WHERE title = "i wanna play house" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (release_date VARCHAR, title VARCHAR) Question: What is the release date of I Wanna Play House? [/INST] SELECT release_date FROM table_name_95 WHERE title = "i wanna play house" </s> |
Who is the director of Little Beau Porky? | CREATE TABLE table_name_31 (director VARCHAR, title VARCHAR) | SELECT director FROM table_name_31 WHERE title = "little beau porky" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (director VARCHAR, title VARCHAR) Question: Who is the director of Little Beau Porky? [/INST] SELECT director FROM table_name_31 WHERE title = "little beau porky" </s> |
What is the release date of The Blow Out? | CREATE TABLE table_name_59 (release_date VARCHAR, title VARCHAR) | SELECT release_date FROM table_name_59 WHERE title = "the blow out" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (release_date VARCHAR, title VARCHAR) Question: What is the release date of The Blow Out? [/INST] SELECT release_date FROM table_name_59 WHERE title = "the blow out" </s> |
Who was the author for company Buzz Productions Theater? | CREATE TABLE table_name_18 (author VARCHAR, company VARCHAR) | SELECT author FROM table_name_18 WHERE company = "buzz productions theater" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (author VARCHAR, company VARCHAR) Question: Who was the author for company Buzz Productions Theater? [/INST] SELECT author FROM table_name_18 WHERE company = "buzz productions theater" </s> |
What country had the play Cyclops? | CREATE TABLE table_name_15 (country VARCHAR, play VARCHAR) | SELECT country FROM table_name_15 WHERE play = "cyclops" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (country VARCHAR, play VARCHAR) Question: What country had the play Cyclops? [/INST] SELECT country FROM table_name_15 WHERE play = "cyclops" </s> |
What country had the play Medea? | CREATE TABLE table_name_5 (country VARCHAR, play VARCHAR) | SELECT country FROM table_name_5 WHERE play = "medea" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (country VARCHAR, play VARCHAR) Question: What country had the play Medea? [/INST] SELECT country FROM table_name_5 WHERE play = "medea" </s> |
What play is from the country Belgium? | CREATE TABLE table_name_18 (play VARCHAR, country VARCHAR) | SELECT play FROM table_name_18 WHERE country = "belgium" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (play VARCHAR, country VARCHAR) Question: What play is from the country Belgium? [/INST] SELECT play FROM table_name_18 WHERE country = "belgium" </s> |
What play has a base of Athens and was written by Aeschylus? | CREATE TABLE table_name_67 (play VARCHAR, author VARCHAR, base VARCHAR) | SELECT play FROM table_name_67 WHERE author = "aeschylus" AND base = "athens" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (play VARCHAR, author VARCHAR, base VARCHAR) Question: What play has a base of Athens and was written by Aeschylus? [/INST] SELECT play FROM table_name_67 WHERE author = "aeschylus" AND base = "ath... |
What is the company from Greece with author Aeschylus? | CREATE TABLE table_name_45 (company VARCHAR, country VARCHAR, author VARCHAR) | SELECT company FROM table_name_45 WHERE country = "greece" AND author = "aeschylus" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (company VARCHAR, country VARCHAR, author VARCHAR) Question: What is the company from Greece with author Aeschylus? [/INST] SELECT company FROM table_name_45 WHERE country = "greece" AND author = "... |
What is the coaster name that was opened in 1978, and have wooden track? | CREATE TABLE table_name_40 (coaster_name VARCHAR, year_opened VARCHAR, track VARCHAR) | SELECT coaster_name FROM table_name_40 WHERE year_opened = "1978" AND track = "wooden" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (coaster_name VARCHAR, year_opened VARCHAR, track VARCHAR) Question: What is the coaster name that was opened in 1978, and have wooden track? [/INST] SELECT coaster_name FROM table_name_40 WHERE ye... |
Which year opened has le monstre coaster? | CREATE TABLE table_name_57 (year_opened VARCHAR, coaster_name VARCHAR) | SELECT year_opened FROM table_name_57 WHERE coaster_name = "le monstre" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (year_opened VARCHAR, coaster_name VARCHAR) Question: Which year opened has le monstre coaster? [/INST] SELECT year_opened FROM table_name_57 WHERE coaster_name = "le monstre" </s> |
Which coaster is located in sandusky, Ohio? | CREATE TABLE table_name_87 (coaster_name VARCHAR, location VARCHAR) | SELECT coaster_name FROM table_name_87 WHERE location = "sandusky, ohio" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (coaster_name VARCHAR, location VARCHAR) Question: Which coaster is located in sandusky, Ohio? [/INST] SELECT coaster_name FROM table_name_87 WHERE location = "sandusky, ohio" </s> |
Which year opened is located in west mifflin, pennsylvania? | CREATE TABLE table_name_50 (year_opened VARCHAR, location VARCHAR) | SELECT year_opened FROM table_name_50 WHERE location = "west mifflin, pennsylvania" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (year_opened VARCHAR, location VARCHAR) Question: Which year opened is located in west mifflin, pennsylvania? [/INST] SELECT year_opened FROM table_name_50 WHERE location = "west mifflin, pennsylva... |
What is the lowest league cup goals for the entry with fa cup goals greater than 0 and FA cup apps larger than 2? | CREATE TABLE table_name_14 (league_cup_goals INTEGER, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR) | SELECT MIN(league_cup_goals) FROM table_name_14 WHERE fa_cup_goals > 0 AND fa_cup_apps > 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (league_cup_goals INTEGER, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR) Question: What is the lowest league cup goals for the entry with fa cup goals greater than 0 and FA cup apps larger than 2? [/I... |
What is the sum of league cup appearances for the players with FA cup goals larger than 0 and FA cup appearances less than 2? | CREATE TABLE table_name_63 (league_cup_apps INTEGER, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR) | SELECT SUM(league_cup_apps) FROM table_name_63 WHERE fa_cup_goals > 0 AND fa_cup_apps < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (league_cup_apps INTEGER, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR) Question: What is the sum of league cup appearances for the players with FA cup goals larger than 0 and FA cup appearances less ... |
What is the highest league cup appearances for the player with league cup goals of 0, and FA cup appearances of 2, and 4 league goals? | CREATE TABLE table_name_81 (league_cup_apps INTEGER, league_goals VARCHAR, league_cup_goals VARCHAR, fa_cup_apps VARCHAR) | SELECT MAX(league_cup_apps) FROM table_name_81 WHERE league_cup_goals = 0 AND fa_cup_apps = 2 AND league_goals = 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (league_cup_apps INTEGER, league_goals VARCHAR, league_cup_goals VARCHAR, fa_cup_apps VARCHAR) Question: What is the highest league cup appearances for the player with league cup goals of 0, and FA... |
What game was played at Omni Coliseum with a w 105-95 score? | CREATE TABLE table_name_32 (game VARCHAR, location_attendance VARCHAR, score VARCHAR) | SELECT game FROM table_name_32 WHERE location_attendance = "omni coliseum" AND score = "w 105-95" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (game VARCHAR, location_attendance VARCHAR, score VARCHAR) Question: What game was played at Omni Coliseum with a w 105-95 score? [/INST] SELECT game FROM table_name_32 WHERE location_attendance = ... |
When did the team have a 10-8 record? | CREATE TABLE table_name_26 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_26 WHERE record = "10-8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (date VARCHAR, record VARCHAR) Question: When did the team have a 10-8 record? [/INST] SELECT date FROM table_name_26 WHERE record = "10-8" </s> |
When was 11-8 the record? | CREATE TABLE table_name_43 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_43 WHERE record = "11-8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (date VARCHAR, record VARCHAR) Question: When was 11-8 the record? [/INST] SELECT date FROM table_name_43 WHERE record = "11-8" </s> |
What is the total number for the position that has less than 2 draws, less than 9 losses and more than 24? | CREATE TABLE table_name_24 (position VARCHAR, points VARCHAR, drawn VARCHAR, lost VARCHAR) | SELECT COUNT(position) FROM table_name_24 WHERE drawn < 2 AND lost < 9 AND points > 24 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (position VARCHAR, points VARCHAR, drawn VARCHAR, lost VARCHAR) Question: What is the total number for the position that has less than 2 draws, less than 9 losses and more than 24? [/INST] SELECT C... |
What is the highest played with more than 0 draws, less than 3 losses, and less than 27 points? | CREATE TABLE table_name_62 (played INTEGER, points VARCHAR, drawn VARCHAR, lost VARCHAR) | SELECT MAX(played) FROM table_name_62 WHERE drawn > 0 AND lost < 3 AND points < 27 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (played INTEGER, points VARCHAR, drawn VARCHAR, lost VARCHAR) Question: What is the highest played with more than 0 draws, less than 3 losses, and less than 27 points? [/INST] SELECT MAX(played) FR... |
What is the total number played with 8 points and a position more than 6? | CREATE TABLE table_name_90 (played VARCHAR, points VARCHAR, position VARCHAR) | SELECT COUNT(played) FROM table_name_90 WHERE points = 8 AND position > 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (played VARCHAR, points VARCHAR, position VARCHAR) Question: What is the total number played with 8 points and a position more than 6? [/INST] SELECT COUNT(played) FROM table_name_90 WHERE points =... |
What is the total number played with 1 drawn, and less than 7 points? | CREATE TABLE table_name_71 (played VARCHAR, drawn VARCHAR, points VARCHAR) | SELECT COUNT(played) FROM table_name_71 WHERE drawn = 1 AND points < 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (played VARCHAR, drawn VARCHAR, points VARCHAR) Question: What is the total number played with 1 drawn, and less than 7 points? [/INST] SELECT COUNT(played) FROM table_name_71 WHERE drawn = 1 AND p... |
What is the most silver when bronze is more than 1 and total is more than 48? | CREATE TABLE table_name_40 (silver INTEGER, bronze VARCHAR, total VARCHAR) | SELECT MAX(silver) FROM table_name_40 WHERE bronze > 1 AND total > 48 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (silver INTEGER, bronze VARCHAR, total VARCHAR) Question: What is the most silver when bronze is more than 1 and total is more than 48? [/INST] SELECT MAX(silver) FROM table_name_40 WHERE bronze > ... |
what is the most bronze when the total is 9? | CREATE TABLE table_name_94 (bronze INTEGER, total VARCHAR) | SELECT MAX(bronze) FROM table_name_94 WHERE total = 9 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (bronze INTEGER, total VARCHAR) Question: what is the most bronze when the total is 9? [/INST] SELECT MAX(bronze) FROM table_name_94 WHERE total = 9 </s> |
what is the least bronze when the nation is soviet union and the total is less than 11? | CREATE TABLE table_name_51 (bronze INTEGER, nation VARCHAR, total VARCHAR) | SELECT MIN(bronze) FROM table_name_51 WHERE nation = "soviet union" AND total < 11 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (bronze INTEGER, nation VARCHAR, total VARCHAR) Question: what is the least bronze when the nation is soviet union and the total is less than 11? [/INST] SELECT MIN(bronze) FROM table_name_51 WHERE... |
What is the category when Hy Conrad nominated in 2003? | CREATE TABLE table_name_84 (category VARCHAR, nominee_s_ VARCHAR, year VARCHAR) | SELECT category FROM table_name_84 WHERE nominee_s_ = "hy conrad" AND year = 2003 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (category VARCHAR, nominee_s_ VARCHAR, year VARCHAR) Question: What is the category when Hy Conrad nominated in 2003? [/INST] SELECT category FROM table_name_84 WHERE nominee_s_ = "hy conrad" AND y... |
What is the long figure when gain is less than 0? | CREATE TABLE table_name_28 (long INTEGER, gain INTEGER) | SELECT AVG(long) FROM table_name_28 WHERE gain < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (long INTEGER, gain INTEGER) Question: What is the long figure when gain is less than 0? [/INST] SELECT AVG(long) FROM table_name_28 WHERE gain < 0 </s> |
What is the loss when the average/gain is less than 16.7, gain is 104 and long is larger than 4? | CREATE TABLE table_name_12 (loss INTEGER, gain VARCHAR, avg_g VARCHAR, long VARCHAR) | SELECT AVG(loss) FROM table_name_12 WHERE avg_g < 16.7 AND long > 4 AND gain = 104 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (loss INTEGER, gain VARCHAR, avg_g VARCHAR, long VARCHAR) Question: What is the loss when the average/gain is less than 16.7, gain is 104 and long is larger than 4? [/INST] SELECT AVG(loss) FROM ta... |
What is the time for Estonia with sc/d notes? | CREATE TABLE table_name_9 (time VARCHAR, notes VARCHAR, country VARCHAR) | SELECT time FROM table_name_9 WHERE notes = "sc/d" AND country = "estonia" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (time VARCHAR, notes VARCHAR, country VARCHAR) Question: What is the time for Estonia with sc/d notes? [/INST] SELECT time FROM table_name_9 WHERE notes = "sc/d" AND country = "estonia" </s> |
What is the time for the rank after 5 with sc/d notes? | CREATE TABLE table_name_55 (time VARCHAR, notes VARCHAR, rank VARCHAR) | SELECT time FROM table_name_55 WHERE notes = "sc/d" AND rank > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (time VARCHAR, notes VARCHAR, rank VARCHAR) Question: What is the time for the rank after 5 with sc/d notes? [/INST] SELECT time FROM table_name_55 WHERE notes = "sc/d" AND rank > 5 </s> |
What was Law Hiu Fung's time? | CREATE TABLE table_name_26 (time VARCHAR, athlete VARCHAR) | SELECT time FROM table_name_26 WHERE athlete = "law hiu fung" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (time VARCHAR, athlete VARCHAR) Question: What was Law Hiu Fung's time? [/INST] SELECT time FROM table_name_26 WHERE athlete = "law hiu fung" </s> |
What is the time for the rank after 5 with sc/d notes? | CREATE TABLE table_name_27 (time VARCHAR, notes VARCHAR, rank VARCHAR) | SELECT time FROM table_name_27 WHERE notes = "sc/d" AND rank > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (time VARCHAR, notes VARCHAR, rank VARCHAR) Question: What is the time for the rank after 5 with sc/d notes? [/INST] SELECT time FROM table_name_27 WHERE notes = "sc/d" AND rank > 5 </s> |
What is the highest rank for a 6:52.70 time and notes of sa/b? | CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR) | SELECT MAX(rank) FROM table_name_56 WHERE notes = "sa/b" AND time = "6:52.70" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR) Question: What is the highest rank for a 6:52.70 time and notes of sa/b? [/INST] SELECT MAX(rank) FROM table_name_56 WHERE notes = "sa/b" AND time = "6:5... |
What is the lowest rank that has paul biedermann as the name? | CREATE TABLE table_name_31 (rank INTEGER, name VARCHAR) | SELECT MIN(rank) FROM table_name_31 WHERE name = "paul biedermann" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (rank INTEGER, name VARCHAR) Question: What is the lowest rank that has paul biedermann as the name? [/INST] SELECT MIN(rank) FROM table_name_31 WHERE name = "paul biedermann" </s> |
What nationality has 2 as the rank? | CREATE TABLE table_name_32 (nationality VARCHAR, rank VARCHAR) | SELECT nationality FROM table_name_32 WHERE rank = 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (nationality VARCHAR, rank VARCHAR) Question: What nationality has 2 as the rank? [/INST] SELECT nationality FROM table_name_32 WHERE rank = 2 </s> |
What is the highest lane that has nimrod shapira bar-or as the name? | CREATE TABLE table_name_38 (lane INTEGER, name VARCHAR) | SELECT MAX(lane) FROM table_name_38 WHERE name = "nimrod shapira bar-or" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (lane INTEGER, name VARCHAR) Question: What is the highest lane that has nimrod shapira bar-or as the name? [/INST] SELECT MAX(lane) FROM table_name_38 WHERE name = "nimrod shapira bar-or" </s> |
What is the latest year they were nominated? | CREATE TABLE table_name_44 (year INTEGER, result VARCHAR) | SELECT MAX(year) FROM table_name_44 WHERE result = "nominated" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (year INTEGER, result VARCHAR) Question: What is the latest year they were nominated? [/INST] SELECT MAX(year) FROM table_name_44 WHERE result = "nominated" </s> |
What is the result of the choice tv actor: drama category? | CREATE TABLE table_name_22 (result VARCHAR, category VARCHAR) | SELECT result FROM table_name_22 WHERE category = "choice tv actor: drama" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (result VARCHAR, category VARCHAR) Question: What is the result of the choice tv actor: drama category? [/INST] SELECT result FROM table_name_22 WHERE category = "choice tv actor: drama" </s> |
Which Drawn has a Position smaller than 8, and a Played smaller than 14? | CREATE TABLE table_name_85 (drawn INTEGER, position VARCHAR, played VARCHAR) | SELECT MAX(drawn) FROM table_name_85 WHERE position < 8 AND played < 14 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (drawn INTEGER, position VARCHAR, played VARCHAR) Question: Which Drawn has a Position smaller than 8, and a Played smaller than 14? [/INST] SELECT MAX(drawn) FROM table_name_85 WHERE position < 8 ... |
Which Points have a Drawn smaller than 2, and a Lost of 12, and a Name of ev bad wörishofen? | CREATE TABLE table_name_24 (points INTEGER, name VARCHAR, drawn VARCHAR, lost VARCHAR) | SELECT MAX(points) FROM table_name_24 WHERE drawn < 2 AND lost = 12 AND name = "ev bad wörishofen" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (points INTEGER, name VARCHAR, drawn VARCHAR, lost VARCHAR) Question: Which Points have a Drawn smaller than 2, and a Lost of 12, and a Name of ev bad wörishofen? [/INST] SELECT MAX(points) FROM ta... |
What place did Lee Westwood finish in? | CREATE TABLE table_name_74 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_74 WHERE player = "lee westwood" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (place VARCHAR, player VARCHAR) Question: What place did Lee Westwood finish in? [/INST] SELECT place FROM table_name_74 WHERE player = "lee westwood" </s> |
What is the to par score of the player that had a score of 67-68=135? | CREATE TABLE table_name_15 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_15 WHERE score = 67 - 68 = 135 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (to_par VARCHAR, score VARCHAR) Question: What is the to par score of the player that had a score of 67-68=135? [/INST] SELECT to_par FROM table_name_15 WHERE score = 67 - 68 = 135 </s> |
What Televote Points had a Final Points score of 2? | CREATE TABLE table_name_43 (televote_points VARCHAR, final_points VARCHAR) | SELECT televote_points FROM table_name_43 WHERE final_points = "2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (televote_points VARCHAR, final_points VARCHAR) Question: What Televote Points had a Final Points score of 2? [/INST] SELECT televote_points FROM table_name_43 WHERE final_points = "2" </s> |
Which Draw had 8 Televote Points? | CREATE TABLE table_name_43 (draw VARCHAR, televote_points VARCHAR) | SELECT COUNT(draw) FROM table_name_43 WHERE televote_points = "8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (draw VARCHAR, televote_points VARCHAR) Question: Which Draw had 8 Televote Points? [/INST] SELECT COUNT(draw) FROM table_name_43 WHERE televote_points = "8" </s> |
What was the Jury Points value when there were 3 Televote Points? | CREATE TABLE table_name_5 (jury_points VARCHAR, televote_points VARCHAR) | SELECT jury_points FROM table_name_5 WHERE televote_points = "3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (jury_points VARCHAR, televote_points VARCHAR) Question: What was the Jury Points value when there were 3 Televote Points? [/INST] SELECT jury_points FROM table_name_5 WHERE televote_points = "3" </... |
Which player was +4 to par and won the Open in 1995? | CREATE TABLE table_name_3 (player VARCHAR, to_par VARCHAR, year_s__won VARCHAR) | SELECT player FROM table_name_3 WHERE to_par = "+4" AND year_s__won = "1995" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (player VARCHAR, to_par VARCHAR, year_s__won VARCHAR) Question: Which player was +4 to par and won the Open in 1995? [/INST] SELECT player FROM table_name_3 WHERE to_par = "+4" AND year_s__won = "19... |
Which player has a to par of +8? | CREATE TABLE table_name_81 (player VARCHAR, to_par VARCHAR) | SELECT player FROM table_name_81 WHERE to_par = "+8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (player VARCHAR, to_par VARCHAR) Question: Which player has a to par of +8? [/INST] SELECT player FROM table_name_81 WHERE to_par = "+8" </s> |
What country is ranked smaller than 2? | CREATE TABLE table_name_16 (country VARCHAR, rank INTEGER) | SELECT country FROM table_name_16 WHERE rank < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (country VARCHAR, rank INTEGER) Question: What country is ranked smaller than 2? [/INST] SELECT country FROM table_name_16 WHERE rank < 2 </s> |
What is the rank when the time is 6:50.48? | CREATE TABLE table_name_70 (rank VARCHAR, time VARCHAR) | SELECT rank FROM table_name_70 WHERE time = "6:50.48" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (rank VARCHAR, time VARCHAR) Question: What is the rank when the time is 6:50.48? [/INST] SELECT rank FROM table_name_70 WHERE time = "6:50.48" </s> |
What is the highest rank with the notes of sa/b, and a time of 6:39.07? | CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR) | SELECT MAX(rank) FROM table_name_56 WHERE notes = "sa/b" AND time = "6:39.07" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR) Question: What is the highest rank with the notes of sa/b, and a time of 6:39.07? [/INST] SELECT MAX(rank) FROM table_name_56 WHERE notes = "sa/b" AND ti... |
What shows for notes when rank is more than 4, and country is South Korea? | CREATE TABLE table_name_31 (notes VARCHAR, rank VARCHAR, country VARCHAR) | SELECT notes FROM table_name_31 WHERE rank > 4 AND country = "south korea" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (notes VARCHAR, rank VARCHAR, country VARCHAR) Question: What shows for notes when rank is more than 4, and country is South Korea? [/INST] SELECT notes FROM table_name_31 WHERE rank > 4 AND countr... |
What is the First Issue date of Bamboo Blade? | CREATE TABLE table_name_89 (first_issue VARCHAR, title VARCHAR) | SELECT first_issue FROM table_name_89 WHERE title = "bamboo blade" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (first_issue VARCHAR, title VARCHAR) Question: What is the First Issue date of Bamboo Blade? [/INST] SELECT first_issue FROM table_name_89 WHERE title = "bamboo blade" </s> |
What is the First issue date of the title with a Last Issue of July 2010? | CREATE TABLE table_name_1 (first_issue VARCHAR, last_issue VARCHAR) | SELECT first_issue FROM table_name_1 WHERE last_issue = "july 2010" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (first_issue VARCHAR, last_issue VARCHAR) Question: What is the First issue date of the title with a Last Issue of July 2010? [/INST] SELECT first_issue FROM table_name_1 WHERE last_issue = "july 20... |
What is the First Issue date of Soul Eater? | CREATE TABLE table_name_85 (first_issue VARCHAR, title VARCHAR) | SELECT first_issue FROM table_name_85 WHERE title = "soul eater" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (first_issue VARCHAR, title VARCHAR) Question: What is the First Issue date of Soul Eater? [/INST] SELECT first_issue FROM table_name_85 WHERE title = "soul eater" </s> |
What is the Author of the Title with a First Issue of September 2010? | CREATE TABLE table_name_87 (author VARCHAR, first_issue VARCHAR) | SELECT author FROM table_name_87 WHERE first_issue = "september 2010" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (author VARCHAR, first_issue VARCHAR) Question: What is the Author of the Title with a First Issue of September 2010? [/INST] SELECT author FROM table_name_87 WHERE first_issue = "september 2010" <... |
What is the Author of the Title with an Ongoing Last Issue? | CREATE TABLE table_name_1 (author VARCHAR, last_issue VARCHAR) | SELECT author FROM table_name_1 WHERE last_issue = "ongoing" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (author VARCHAR, last_issue VARCHAR) Question: What is the Author of the Title with an Ongoing Last Issue? [/INST] SELECT author FROM table_name_1 WHERE last_issue = "ongoing" </s> |
What is the highest number of losses for Presidente Hayes, when the draws were more than 4? | CREATE TABLE table_name_61 (losses INTEGER, team VARCHAR, draws VARCHAR) | SELECT MAX(losses) FROM table_name_61 WHERE team = "presidente hayes" AND draws > 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (losses INTEGER, team VARCHAR, draws VARCHAR) Question: What is the highest number of losses for Presidente Hayes, when the draws were more than 4? [/INST] SELECT MAX(losses) FROM table_name_61 WHE... |
What is the number of wins when position was larger than 6, and conceded was smaller than 19? | CREATE TABLE table_name_90 (wins VARCHAR, position VARCHAR, conceded VARCHAR) | SELECT COUNT(wins) FROM table_name_90 WHERE position > 6 AND conceded < 19 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (wins VARCHAR, position VARCHAR, conceded VARCHAR) Question: What is the number of wins when position was larger than 6, and conceded was smaller than 19? [/INST] SELECT COUNT(wins) FROM table_name... |
What is the number of losses when there were less than 4 draws, and points were 9? | CREATE TABLE table_name_36 (losses VARCHAR, draws VARCHAR, points VARCHAR) | SELECT losses FROM table_name_36 WHERE draws < 4 AND points = 9 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (losses VARCHAR, draws VARCHAR, points VARCHAR) Question: What is the number of losses when there were less than 4 draws, and points were 9? [/INST] SELECT losses FROM table_name_36 WHERE draws < 4... |
What is the number of wins when scored was less than 26, and conceded was larger than 23? | CREATE TABLE table_name_25 (wins INTEGER, scored VARCHAR, conceded VARCHAR) | SELECT SUM(wins) FROM table_name_25 WHERE scored < 26 AND conceded > 23 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (wins INTEGER, scored VARCHAR, conceded VARCHAR) Question: What is the number of wins when scored was less than 26, and conceded was larger than 23? [/INST] SELECT SUM(wins) FROM table_name_25 WHER... |
What was the series in season 2009? | CREATE TABLE table_name_61 (series VARCHAR, season VARCHAR) | SELECT series FROM table_name_61 WHERE season = 2009 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (series VARCHAR, season VARCHAR) Question: What was the series in season 2009? [/INST] SELECT series FROM table_name_61 WHERE season = 2009 </s> |
What was the lowest amount of wins before season 2009 for 97 points? | CREATE TABLE table_name_67 (wins INTEGER, points VARCHAR, season VARCHAR) | SELECT MIN(wins) FROM table_name_67 WHERE points = 97 AND season < 2009 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (wins INTEGER, points VARCHAR, season VARCHAR) Question: What was the lowest amount of wins before season 2009 for 97 points? [/INST] SELECT MIN(wins) FROM table_name_67 WHERE points = 97 AND seaso... |
How many wins had a podium larger than 6 after season 2008? | CREATE TABLE table_name_29 (wins VARCHAR, season VARCHAR, podiums VARCHAR) | SELECT COUNT(wins) FROM table_name_29 WHERE season > 2008 AND podiums > 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (wins VARCHAR, season VARCHAR, podiums VARCHAR) Question: How many wins had a podium larger than 6 after season 2008? [/INST] SELECT COUNT(wins) FROM table_name_29 WHERE season > 2008 AND podiums >... |
what is the date for the week larger than 1 and the opponent detroit lions? | CREATE TABLE table_name_23 (date VARCHAR, week VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_23 WHERE week > 1 AND opponent = "detroit lions" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (date VARCHAR, week VARCHAR, opponent VARCHAR) Question: what is the date for the week larger than 1 and the opponent detroit lions? [/INST] SELECT date FROM table_name_23 WHERE week > 1 AND oppone... |
what is the lowest week when the attendance is 54,714? | CREATE TABLE table_name_41 (week INTEGER, attendance VARCHAR) | SELECT MIN(week) FROM table_name_41 WHERE attendance = 54 OFFSET 714 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (week INTEGER, attendance VARCHAR) Question: what is the lowest week when the attendance is 54,714? [/INST] SELECT MIN(week) FROM table_name_41 WHERE attendance = 54 OFFSET 714 ROWS </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.