instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
What is the Week of the game against the Minnesota Vikings? | CREATE TABLE table_name_66 (week INTEGER, opponent VARCHAR) | SELECT MIN(week) FROM table_name_66 WHERE opponent = "minnesota vikings" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (week INTEGER, opponent VARCHAR) Question: What is the Week of the game against the Minnesota Vikings? [/INST] SELECT MIN(week) FROM table_name_66 WHERE opponent = "minnesota vikings" </s> |
What is the Week of the game against Green Bay Packers? | CREATE TABLE table_name_71 (week INTEGER, opponent VARCHAR) | SELECT AVG(week) FROM table_name_71 WHERE opponent = "green bay packers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (week INTEGER, opponent VARCHAR) Question: What is the Week of the game against Green Bay Packers? [/INST] SELECT AVG(week) FROM table_name_71 WHERE opponent = "green bay packers" </s> |
What is the Attendance of the game with a Result of L 20-14? | CREATE TABLE table_name_46 (attendance VARCHAR, result VARCHAR) | SELECT attendance FROM table_name_46 WHERE result = "l 20-14" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (attendance VARCHAR, result VARCHAR) Question: What is the Attendance of the game with a Result of L 20-14? [/INST] SELECT attendance FROM table_name_46 WHERE result = "l 20-14" </s> |
What is the Week number on October 5, 2003? | CREATE TABLE table_name_93 (week INTEGER, date VARCHAR) | SELECT MIN(week) FROM table_name_93 WHERE date = "october 5, 2003" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (week INTEGER, date VARCHAR) Question: What is the Week number on October 5, 2003? [/INST] SELECT MIN(week) FROM table_name_93 WHERE date = "october 5, 2003" </s> |
What is the Week number with an Attendance of 62,123? | CREATE TABLE table_name_78 (week VARCHAR, attendance VARCHAR) | SELECT COUNT(week) FROM table_name_78 WHERE attendance = "62,123" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (week VARCHAR, attendance VARCHAR) Question: What is the Week number with an Attendance of 62,123? [/INST] SELECT COUNT(week) FROM table_name_78 WHERE attendance = "62,123" </s> |
How many households are in Ottawa? | CREATE TABLE table_name_58 (number_of_households INTEGER, county VARCHAR) | SELECT SUM(number_of_households) FROM table_name_58 WHERE county = "ottawa" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (number_of_households INTEGER, county VARCHAR) Question: How many households are in Ottawa? [/INST] SELECT SUM(number_of_households) FROM table_name_58 WHERE county = "ottawa" </s> |
What is the sum of enrollments for schools located in Culver? | CREATE TABLE table_name_28 (enrollment INTEGER, location VARCHAR) | SELECT SUM(enrollment) FROM table_name_28 WHERE location = "culver" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (enrollment INTEGER, location VARCHAR) Question: What is the sum of enrollments for schools located in Culver? [/INST] SELECT SUM(enrollment) FROM table_name_28 WHERE location = "culver" </s> |
Which year did the school with enrollment of 413 join? | CREATE TABLE table_name_46 (year_joined VARCHAR, enrollment VARCHAR) | SELECT year_joined FROM table_name_46 WHERE enrollment = 413 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (year_joined VARCHAR, enrollment VARCHAR) Question: Which year did the school with enrollment of 413 join? [/INST] SELECT year_joined FROM table_name_46 WHERE enrollment = 413 </s> |
How many years was Reasons to be Pretty nominated for best play? | CREATE TABLE table_name_83 (year VARCHAR, category VARCHAR) | SELECT COUNT(year) FROM table_name_83 WHERE category = "best play" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (year VARCHAR, category VARCHAR) Question: How many years was Reasons to be Pretty nominated for best play? [/INST] SELECT COUNT(year) FROM table_name_83 WHERE category = "best play" </s> |
What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play? | CREATE TABLE table_name_56 (year INTEGER, category VARCHAR) | SELECT MIN(year) FROM table_name_56 WHERE category = "best performance by a leading actor in a play" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (year INTEGER, category VARCHAR) Question: What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play? [/INST] SELECT MIN(year) FROM table_name... |
What is the match report from the game played on 28 february 2009? | CREATE TABLE table_name_23 (match_report VARCHAR, date VARCHAR) | SELECT match_report FROM table_name_23 WHERE date = "28 february 2009" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (match_report VARCHAR, date VARCHAR) Question: What is the match report from the game played on 28 february 2009? [/INST] SELECT match_report FROM table_name_23 WHERE date = "28 february 2009" </s> |
What is the match report from the game played on 25 april 2009? | CREATE TABLE table_name_4 (match_report VARCHAR, date VARCHAR) | SELECT match_report FROM table_name_4 WHERE date = "25 april 2009" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (match_report VARCHAR, date VARCHAR) Question: What is the match report from the game played on 25 april 2009? [/INST] SELECT match_report FROM table_name_4 WHERE date = "25 april 2009" </s> |
Where was the game played on 3 january 2009 against east fife? | CREATE TABLE table_name_2 (venue VARCHAR, opponents VARCHAR, date VARCHAR) | SELECT venue FROM table_name_2 WHERE opponents = "east fife" AND date = "3 january 2009" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (venue VARCHAR, opponents VARCHAR, date VARCHAR) Question: Where was the game played on 3 january 2009 against east fife? [/INST] SELECT venue FROM table_name_2 WHERE opponents = "east fife" AND dat... |
What is the match report for the game that was played on 23 august 2008 in stark's park during the second division competition? | CREATE TABLE table_name_13 (match_report VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR) | SELECT match_report FROM table_name_13 WHERE venue = "stark's park" AND competition = "second division" AND date = "23 august 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (match_report VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR) Question: What is the match report for the game that was played on 23 august 2008 in stark's park during the second division... |
What is the match report for the game played at forthbank stadium against stirling albion? | CREATE TABLE table_name_29 (match_report VARCHAR, opponents VARCHAR, venue VARCHAR) | SELECT match_report FROM table_name_29 WHERE opponents = "stirling albion" AND venue = "forthbank stadium" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (match_report VARCHAR, opponents VARCHAR, venue VARCHAR) Question: What is the match report for the game played at forthbank stadium against stirling albion? [/INST] SELECT match_report FROM table_... |
What is average quantity, when DRG number is 99 011? | CREATE TABLE table_name_85 (quantity INTEGER, drg_number_s_ VARCHAR) | SELECT AVG(quantity) FROM table_name_85 WHERE drg_number_s_ = "99 011" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (quantity INTEGER, drg_number_s_ VARCHAR) Question: What is average quantity, when DRG number is 99 011? [/INST] SELECT AVG(quantity) FROM table_name_85 WHERE drg_number_s_ = "99 011" </s> |
Which railway number has 3 quantity? | CREATE TABLE table_name_19 (railway_number_s_ VARCHAR, quantity VARCHAR) | SELECT railway_number_s_ FROM table_name_19 WHERE quantity = 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (railway_number_s_ VARCHAR, quantity VARCHAR) Question: Which railway number has 3 quantity? [/INST] SELECT railway_number_s_ FROM table_name_19 WHERE quantity = 3 </s> |
Which DRG number has xxx railway number? | CREATE TABLE table_name_32 (drg_number_s_ VARCHAR, railway_number_s_ VARCHAR) | SELECT drg_number_s_ FROM table_name_32 WHERE railway_number_s_ = "xxx" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (drg_number_s_ VARCHAR, railway_number_s_ VARCHAR) Question: Which DRG number has xxx railway number? [/INST] SELECT drg_number_s_ FROM table_name_32 WHERE railway_number_s_ = "xxx" </s> |
Which quantity has Axle arrangement (UIC)bauart of c n2t, and DRG number 99 093? | CREATE TABLE table_name_58 (quantity VARCHAR, axle_arrangement___uic___bauart VARCHAR, drg_number_s_ VARCHAR) | SELECT quantity FROM table_name_58 WHERE axle_arrangement___uic___bauart = "c n2t" AND drg_number_s_ = "99 093" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (quantity VARCHAR, axle_arrangement___uic___bauart VARCHAR, drg_number_s_ VARCHAR) Question: Which quantity has Axle arrangement (UIC)bauart of c n2t, and DRG number 99 093? [/INST] SELECT quantity... |
What song came out on March 8, 2008? | CREATE TABLE table_name_8 (song VARCHAR, date VARCHAR) | SELECT song FROM table_name_8 WHERE date = "march 8, 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (song VARCHAR, date VARCHAR) Question: What song came out on March 8, 2008? [/INST] SELECT song FROM table_name_8 WHERE date = "march 8, 2008" </s> |
What was the topic of the show on March 15, 2008? | CREATE TABLE table_name_5 (topic_of_the_show VARCHAR, date VARCHAR) | SELECT topic_of_the_show FROM table_name_5 WHERE date = "march 15, 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (topic_of_the_show VARCHAR, date VARCHAR) Question: What was the topic of the show on March 15, 2008? [/INST] SELECT topic_of_the_show FROM table_name_5 WHERE date = "march 15, 2008" </s> |
When against is more than 1244 with less than 8 losses, what is the average of wins? | CREATE TABLE table_name_82 (wins INTEGER, against VARCHAR, losses VARCHAR) | SELECT AVG(wins) FROM table_name_82 WHERE against > 1244 AND losses < 8 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (wins INTEGER, against VARCHAR, losses VARCHAR) Question: When against is more than 1244 with less than 8 losses, what is the average of wins? [/INST] SELECT AVG(wins) FROM table_name_82 WHERE agai... |
What is the name of the mill located on Anawan Street with a reference number larger than 8? | CREATE TABLE table_name_76 (name VARCHAR, ref_number VARCHAR, location VARCHAR) | SELECT name FROM table_name_76 WHERE ref_number > 8 AND location = "anawan street" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (name VARCHAR, ref_number VARCHAR, location VARCHAR) Question: What is the name of the mill located on Anawan Street with a reference number larger than 8? [/INST] SELECT name FROM table_name_76 WH... |
What is the name of the mill constructed of red brick in 1910 with a reference number lower than 55? | CREATE TABLE table_name_7 (name VARCHAR, construction VARCHAR, ref_number VARCHAR, built VARCHAR) | SELECT name FROM table_name_7 WHERE ref_number < 55 AND built = 1910 AND construction = "red brick" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (name VARCHAR, construction VARCHAR, ref_number VARCHAR, built VARCHAR) Question: What is the name of the mill constructed of red brick in 1910 with a reference number lower than 55? [/INST] SELECT ... |
What is the location of the Durfee Mill No. 1, built before 1872 ? | CREATE TABLE table_name_7 (location VARCHAR, built VARCHAR, name VARCHAR) | SELECT location FROM table_name_7 WHERE built < 1872 AND name = "durfee mill no. 1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (location VARCHAR, built VARCHAR, name VARCHAR) Question: What is the location of the Durfee Mill No. 1, built before 1872 ? [/INST] SELECT location FROM table_name_7 WHERE built < 1872 AND name = "... |
What is the location of the mill with a reference number of 44? | CREATE TABLE table_name_99 (location VARCHAR, ref_number VARCHAR) | SELECT location FROM table_name_99 WHERE ref_number = 44 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (location VARCHAR, ref_number VARCHAR) Question: What is the location of the mill with a reference number of 44? [/INST] SELECT location FROM table_name_99 WHERE ref_number = 44 </s> |
Which Construction is named of fu-hsing? | CREATE TABLE table_name_89 (construction VARCHAR, name__wade_giles_ VARCHAR) | SELECT construction FROM table_name_89 WHERE name__wade_giles_ = "fu-hsing" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (construction VARCHAR, name__wade_giles_ VARCHAR) Question: Which Construction is named of fu-hsing? [/INST] SELECT construction FROM table_name_89 WHERE name__wade_giles_ = "fu-hsing" </s> |
which Construction is named heng-hai? | CREATE TABLE table_name_69 (construction VARCHAR, name__wade_giles_ VARCHAR) | SELECT construction FROM table_name_69 WHERE name__wade_giles_ = "heng-hai" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (construction VARCHAR, name__wade_giles_ VARCHAR) Question: which Construction is named heng-hai? [/INST] SELECT construction FROM table_name_69 WHERE name__wade_giles_ = "heng-hai" </s> |
Who has a Construction of 1873, foochow navy yard? | CREATE TABLE table_name_33 (characters VARCHAR, construction VARCHAR) | SELECT characters FROM table_name_33 WHERE construction = "1873, foochow navy yard" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (characters VARCHAR, construction VARCHAR) Question: Who has a Construction of 1873, foochow navy yard? [/INST] SELECT characters FROM table_name_33 WHERE construction = "1873, foochow navy yard" ... |
Which Name (pinyin) is named fu-ching? | CREATE TABLE table_name_64 (name__pinyin_ VARCHAR, name__wade_giles_ VARCHAR) | SELECT name__pinyin_ FROM table_name_64 WHERE name__wade_giles_ = "fu-ching" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (name__pinyin_ VARCHAR, name__wade_giles_ VARCHAR) Question: Which Name (pinyin) is named fu-ching? [/INST] SELECT name__pinyin_ FROM table_name_64 WHERE name__wade_giles_ = "fu-ching" </s> |
Who has a Construction of 1870, foochow navy yard, and a Name (Wade Giles) of fu-hsing? | CREATE TABLE table_name_1 (characters VARCHAR, construction VARCHAR, name__wade_giles_ VARCHAR) | SELECT characters FROM table_name_1 WHERE construction = "1870, foochow navy yard" AND name__wade_giles_ = "fu-hsing" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (characters VARCHAR, construction VARCHAR, name__wade_giles_ VARCHAR) Question: Who has a Construction of 1870, foochow navy yard, and a Name (Wade Giles) of fu-hsing? [/INST] SELECT characters FROM... |
Which Label has a Release of liebesgrüsse aus ost-berlin? | CREATE TABLE table_name_16 (label VARCHAR, release VARCHAR) | SELECT label FROM table_name_16 WHERE release = "liebesgrüsse aus ost-berlin" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (label VARCHAR, release VARCHAR) Question: Which Label has a Release of liebesgrüsse aus ost-berlin? [/INST] SELECT label FROM table_name_16 WHERE release = "liebesgrüsse aus ost-berlin" </s> |
What is the rank of the person with more than 5 games played? | CREATE TABLE table_name_20 (rank INTEGER, games_played INTEGER) | SELECT SUM(rank) FROM table_name_20 WHERE games_played > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (rank INTEGER, games_played INTEGER) Question: What is the rank of the person with more than 5 games played? [/INST] SELECT SUM(rank) FROM table_name_20 WHERE games_played > 5 </s> |
How many golds have a bronze greater than 1, a silver greater than 1, with total as the rank? | CREATE TABLE table_name_61 (gold VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR) | SELECT COUNT(gold) FROM table_name_61 WHERE bronze > 1 AND silver > 1 AND rank = "total" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (gold VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR) Question: How many golds have a bronze greater than 1, a silver greater than 1, with total as the rank? [/INST] SELECT COUNT(gold) FROM ... |
How many golds have a bronze greater than 1, total as the nation, and a silver less than 18? | CREATE TABLE table_name_27 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, nation VARCHAR) | SELECT COUNT(gold) FROM table_name_27 WHERE bronze > 1 AND nation = "total" AND silver < 18 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, nation VARCHAR) Question: How many golds have a bronze greater than 1, total as the nation, and a silver less than 18? [/INST] SELECT COUNT(gold) FROM... |
How many bronzes have west germany as the nation? | CREATE TABLE table_name_51 (bronze INTEGER, nation VARCHAR) | SELECT SUM(bronze) FROM table_name_51 WHERE nation = "west germany" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (bronze INTEGER, nation VARCHAR) Question: How many bronzes have west germany as the nation? [/INST] SELECT SUM(bronze) FROM table_name_51 WHERE nation = "west germany" </s> |
How many golds have denmark as the nation, with a total less than 1? | CREATE TABLE table_name_86 (gold VARCHAR, nation VARCHAR, total VARCHAR) | SELECT COUNT(gold) FROM table_name_86 WHERE nation = "denmark" AND total < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (gold VARCHAR, nation VARCHAR, total VARCHAR) Question: How many golds have denmark as the nation, with a total less than 1? [/INST] SELECT COUNT(gold) FROM table_name_86 WHERE nation = "denmark" A... |
How many totals have 1 for the gold, 12 for the rank, and a sliver greater than 0? | CREATE TABLE table_name_60 (total VARCHAR, silver VARCHAR, gold VARCHAR, rank VARCHAR) | SELECT COUNT(total) FROM table_name_60 WHERE gold = 1 AND rank = "12" AND silver > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (total VARCHAR, silver VARCHAR, gold VARCHAR, rank VARCHAR) Question: How many totals have 1 for the gold, 12 for the rank, and a sliver greater than 0? [/INST] SELECT COUNT(total) FROM table_name_... |
What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the rank, with a gold less than 0? | CREATE TABLE table_name_15 (silver INTEGER, gold VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR) | SELECT MIN(silver) FROM table_name_15 WHERE bronze = 1 AND total = 1 AND rank = "17" AND gold < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (silver INTEGER, gold VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR) Question: What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the rank, with a gold less than 0? [... |
What is the First Publisher prior to 1999? | CREATE TABLE table_name_31 (first_publisher VARCHAR, year INTEGER) | SELECT first_publisher FROM table_name_31 WHERE year < 1999 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (first_publisher VARCHAR, year INTEGER) Question: What is the First Publisher prior to 1999? [/INST] SELECT first_publisher FROM table_name_31 WHERE year < 1999 </s> |
What is the ISBN in 1999? | CREATE TABLE table_name_48 (isbn VARCHAR, year VARCHAR) | SELECT isbn FROM table_name_48 WHERE year = 1999 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (isbn VARCHAR, year VARCHAR) Question: What is the ISBN in 1999? [/INST] SELECT isbn FROM table_name_48 WHERE year = 1999 </s> |
What is the ISBN of Japanese Title of 霧の訪問者 (kiri no hōmonsha)? | CREATE TABLE table_name_54 (isbn VARCHAR, japanese_title VARCHAR) | SELECT isbn FROM table_name_54 WHERE japanese_title = "霧の訪問者 (kiri no hōmonsha)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (isbn VARCHAR, japanese_title VARCHAR) Question: What is the ISBN of Japanese Title of 霧の訪問者 (kiri no hōmonsha)? [/INST] SELECT isbn FROM table_name_54 WHERE japanese_title = "霧の訪問者 (kiri no hōmons... |
What is the First Publisher in 2007? | CREATE TABLE table_name_8 (first_publisher VARCHAR, year VARCHAR) | SELECT first_publisher FROM table_name_8 WHERE year = 2007 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (first_publisher VARCHAR, year VARCHAR) Question: What is the First Publisher in 2007? [/INST] SELECT first_publisher FROM table_name_8 WHERE year = 2007 </s> |
What is the Year of Kodansha Novels' Tokyo Nightmare? | CREATE TABLE table_name_80 (year VARCHAR, first_publisher VARCHAR, english_title VARCHAR) | SELECT year FROM table_name_80 WHERE first_publisher = "kodansha novels" AND english_title = "tokyo nightmare" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (year VARCHAR, first_publisher VARCHAR, english_title VARCHAR) Question: What is the Year of Kodansha Novels' Tokyo Nightmare? [/INST] SELECT year FROM table_name_80 WHERE first_publisher = "kodans... |
What Year has an ISBN OF ISBN 4-06-182042-7? | CREATE TABLE table_name_37 (year INTEGER, isbn VARCHAR) | SELECT AVG(year) FROM table_name_37 WHERE isbn = "isbn 4-06-182042-7" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (year INTEGER, isbn VARCHAR) Question: What Year has an ISBN OF ISBN 4-06-182042-7? [/INST] SELECT AVG(year) FROM table_name_37 WHERE isbn = "isbn 4-06-182042-7" </s> |
What is the bronze number for the nation with less than 0 gold? | CREATE TABLE table_name_53 (bronze INTEGER, gold INTEGER) | SELECT MIN(bronze) FROM table_name_53 WHERE gold < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (bronze INTEGER, gold INTEGER) Question: What is the bronze number for the nation with less than 0 gold? [/INST] SELECT MIN(bronze) FROM table_name_53 WHERE gold < 0 </s> |
What is the January climate figure for Eastman? | CREATE TABLE table_name_26 (january VARCHAR, region VARCHAR) | SELECT january FROM table_name_26 WHERE region = "eastman" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (january VARCHAR, region VARCHAR) Question: What is the January climate figure for Eastman? [/INST] SELECT january FROM table_name_26 WHERE region = "eastman" </s> |
In what city is the July temperature 23/9°c (73/48°f)? | CREATE TABLE table_name_49 (city VARCHAR, july VARCHAR) | SELECT city FROM table_name_49 WHERE july = "23/9°c (73/48°f)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (city VARCHAR, july VARCHAR) Question: In what city is the July temperature 23/9°c (73/48°f)? [/INST] SELECT city FROM table_name_49 WHERE july = "23/9°c (73/48°f)" </s> |
What is the July temperature where the annual precipitation is 514mm (20.2in)? | CREATE TABLE table_name_23 (july VARCHAR, annual_precipitation VARCHAR) | SELECT july FROM table_name_23 WHERE annual_precipitation = "514mm (20.2in)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (july VARCHAR, annual_precipitation VARCHAR) Question: What is the July temperature where the annual precipitation is 514mm (20.2in)? [/INST] SELECT july FROM table_name_23 WHERE annual_precipitati... |
What is the July temperature where plant hardiness zone is 2B and January figure is −12/−23°c (10-9°f)? | CREATE TABLE table_name_32 (july VARCHAR, plant_hardiness_zone VARCHAR, january VARCHAR) | SELECT july FROM table_name_32 WHERE plant_hardiness_zone = "2b" AND january = "−12/−23°c (10-9°f)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (july VARCHAR, plant_hardiness_zone VARCHAR, january VARCHAR) Question: What is the July temperature where plant hardiness zone is 2B and January figure is −12/−23°c (10-9°f)? [/INST] SELECT july F... |
What is the plant hardiness zone in the Northern region where the annual precipitation is 443mm (17.4in)? | CREATE TABLE table_name_36 (plant_hardiness_zone VARCHAR, region VARCHAR, annual_precipitation VARCHAR) | SELECT plant_hardiness_zone FROM table_name_36 WHERE region = "northern" AND annual_precipitation = "443mm (17.4in)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (plant_hardiness_zone VARCHAR, region VARCHAR, annual_precipitation VARCHAR) Question: What is the plant hardiness zone in the Northern region where the annual precipitation is 443mm (17.4in)? [/IN... |
In what city is the plant hardiness zone 2B and January temp is −12/−23°c (10/-9°f)? | CREATE TABLE table_name_52 (city VARCHAR, plant_hardiness_zone VARCHAR, january VARCHAR) | SELECT city FROM table_name_52 WHERE plant_hardiness_zone = "2b" AND january = "−12/−23°c (10/-9°f)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (city VARCHAR, plant_hardiness_zone VARCHAR, january VARCHAR) Question: In what city is the plant hardiness zone 2B and January temp is −12/−23°c (10/-9°f)? [/INST] SELECT city FROM table_name_52 W... |
What is the Total Apps listing for Paul Wilson? | CREATE TABLE table_name_78 (total_apps VARCHAR, name VARCHAR) | SELECT total_apps FROM table_name_78 WHERE name = "paul wilson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (total_apps VARCHAR, name VARCHAR) Question: What is the Total Apps listing for Paul Wilson? [/INST] SELECT total_apps FROM table_name_78 WHERE name = "paul wilson" </s> |
Who was the winner at Milan Circuit Race? | CREATE TABLE table_name_84 (winner VARCHAR, course VARCHAR) | SELECT winner FROM table_name_84 WHERE course = "milan circuit race" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (winner VARCHAR, course VARCHAR) Question: Who was the winner at Milan Circuit Race? [/INST] SELECT winner FROM table_name_84 WHERE course = "milan circuit race" </s> |
Who was the winner at Rest Day course? | CREATE TABLE table_name_67 (winner VARCHAR, course VARCHAR) | SELECT winner FROM table_name_67 WHERE course = "rest day" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (winner VARCHAR, course VARCHAR) Question: Who was the winner at Rest Day course? [/INST] SELECT winner FROM table_name_67 WHERE course = "rest day" </s> |
What's the type on Sestri Levante to Riomaggiore? | CREATE TABLE table_name_39 (type VARCHAR, course VARCHAR) | SELECT type FROM table_name_39 WHERE course = "sestri levante to riomaggiore" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (type VARCHAR, course VARCHAR) Question: What's the type on Sestri Levante to Riomaggiore? [/INST] SELECT type FROM table_name_39 WHERE course = "sestri levante to riomaggiore" </s> |
Which player competed in 12 events? | CREATE TABLE table_name_49 (player VARCHAR, events VARCHAR) | SELECT player FROM table_name_49 WHERE events = 12 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (player VARCHAR, events VARCHAR) Question: Which player competed in 12 events? [/INST] SELECT player FROM table_name_49 WHERE events = 12 </s> |
what is the highest finishes when the points is less than 337, the stage wins is 2 and the wins is more than 0? | CREATE TABLE table_name_48 (finishes INTEGER, wins VARCHAR, points VARCHAR, stage_wins VARCHAR) | SELECT MAX(finishes) FROM table_name_48 WHERE points < 337 AND stage_wins = 2 AND wins > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (finishes INTEGER, wins VARCHAR, points VARCHAR, stage_wins VARCHAR) Question: what is the highest finishes when the points is less than 337, the stage wins is 2 and the wins is more than 0? [/INST... |
what is the average starts when the chassis is focus rs wrc 08 and finishes is more than 27? | CREATE TABLE table_name_94 (starts INTEGER, chassis VARCHAR, finishes VARCHAR) | SELECT AVG(starts) FROM table_name_94 WHERE chassis = "focus rs wrc 08" AND finishes > 27 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (starts INTEGER, chassis VARCHAR, finishes VARCHAR) Question: what is the average starts when the chassis is focus rs wrc 08 and finishes is more than 27? [/INST] SELECT AVG(starts) FROM table_name... |
what is the finishes when points is more than 337 and starts is more than 26? | CREATE TABLE table_name_90 (finishes INTEGER, points VARCHAR, starts VARCHAR) | SELECT SUM(finishes) FROM table_name_90 WHERE points > 337 AND starts > 26 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (finishes INTEGER, points VARCHAR, starts VARCHAR) Question: what is the finishes when points is more than 337 and starts is more than 26? [/INST] SELECT SUM(finishes) FROM table_name_90 WHERE poin... |
what is the average starts when the podiums is more than 0, stage wins is more than 39 and points is more than 456? | CREATE TABLE table_name_35 (starts INTEGER, points VARCHAR, podiums VARCHAR, stage_wins VARCHAR) | SELECT AVG(starts) FROM table_name_35 WHERE podiums > 0 AND stage_wins > 39 AND points > 456 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (starts INTEGER, points VARCHAR, podiums VARCHAR, stage_wins VARCHAR) Question: what is the average starts when the podiums is more than 0, stage wins is more than 39 and points is more than 456? [... |
Which School has a Mascot of squires? | CREATE TABLE table_name_35 (school VARCHAR, mascot VARCHAR) | SELECT school FROM table_name_35 WHERE mascot = "squires" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (school VARCHAR, mascot VARCHAR) Question: Which School has a Mascot of squires? [/INST] SELECT school FROM table_name_35 WHERE mascot = "squires" </s> |
Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norsemen? | CREATE TABLE table_name_43 (school VARCHAR, mascot VARCHAR, _number___county VARCHAR, ihsaa_football_class VARCHAR) | SELECT school FROM table_name_43 WHERE _number___county = "85 wabash" AND ihsaa_football_class = "a" AND mascot = "norsemen" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (school VARCHAR, mascot VARCHAR, _number___county VARCHAR, ihsaa_football_class VARCHAR) Question: Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norse... |
Which IHSAA Football Class has a School of whitko? | CREATE TABLE table_name_99 (ihsaa_football_class VARCHAR, school VARCHAR) | SELECT ihsaa_football_class FROM table_name_99 WHERE school = "whitko" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (ihsaa_football_class VARCHAR, school VARCHAR) Question: Which IHSAA Football Class has a School of whitko? [/INST] SELECT ihsaa_football_class FROM table_name_99 WHERE school = "whitko" </s> |
Which IHSAA Football Class has a Location of wabash, and a School of wabash? | CREATE TABLE table_name_50 (ihsaa_football_class VARCHAR, location VARCHAR, school VARCHAR) | SELECT ihsaa_football_class FROM table_name_50 WHERE location = "wabash" AND school = "wabash" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (ihsaa_football_class VARCHAR, location VARCHAR, school VARCHAR) Question: Which IHSAA Football Class has a Location of wabash, and a School of wabash? [/INST] SELECT ihsaa_football_class FROM tabl... |
With a Total of more than 149, what is Davis Love III's To par? | CREATE TABLE table_name_88 (to_par INTEGER, player VARCHAR, total VARCHAR) | SELECT AVG(to_par) FROM table_name_88 WHERE player = "davis love iii" AND total > 149 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (to_par INTEGER, player VARCHAR, total VARCHAR) Question: With a Total of more than 149, what is Davis Love III's To par? [/INST] SELECT AVG(to_par) FROM table_name_88 WHERE player = "davis love ii... |
What is the Total of the Player with a To par of 6 and Year won after 1993? | CREATE TABLE table_name_87 (total INTEGER, year_won VARCHAR, to_par VARCHAR) | SELECT MIN(total) FROM table_name_87 WHERE year_won > 1993 AND to_par = 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (total INTEGER, year_won VARCHAR, to_par VARCHAR) Question: What is the Total of the Player with a To par of 6 and Year won after 1993? [/INST] SELECT MIN(total) FROM table_name_87 WHERE year_won >... |
What is the Year won of Davis Love III with a Total of less than 149? | CREATE TABLE table_name_93 (year_won VARCHAR, player VARCHAR, total VARCHAR) | SELECT COUNT(year_won) FROM table_name_93 WHERE player = "davis love iii" AND total < 149 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (year_won VARCHAR, player VARCHAR, total VARCHAR) Question: What is the Year won of Davis Love III with a Total of less than 149? [/INST] SELECT COUNT(year_won) FROM table_name_93 WHERE player = "d... |
What is the genre of the Mass Effect game? | CREATE TABLE table_name_14 (genre VARCHAR, game VARCHAR) | SELECT genre FROM table_name_14 WHERE game = "mass effect" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (genre VARCHAR, game VARCHAR) Question: What is the genre of the Mass Effect game? [/INST] SELECT genre FROM table_name_14 WHERE game = "mass effect" </s> |
What is the genre of the game from 2006? | CREATE TABLE table_name_72 (genre VARCHAR, year VARCHAR) | SELECT genre FROM table_name_72 WHERE year = "2006" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (genre VARCHAR, year VARCHAR) Question: What is the genre of the game from 2006? [/INST] SELECT genre FROM table_name_72 WHERE year = "2006" </s> |
What is the genre of the game developed by Nintendo EAD? | CREATE TABLE table_name_85 (genre VARCHAR, developer_s_ VARCHAR) | SELECT genre FROM table_name_85 WHERE developer_s_ = "nintendo ead" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (genre VARCHAR, developer_s_ VARCHAR) Question: What is the genre of the game developed by Nintendo EAD? [/INST] SELECT genre FROM table_name_85 WHERE developer_s_ = "nintendo ead" </s> |
What is the platform of the game built in 2006? | CREATE TABLE table_name_53 (platform_s_ VARCHAR, year VARCHAR) | SELECT platform_s_ FROM table_name_53 WHERE year = "2006" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (platform_s_ VARCHAR, year VARCHAR) Question: What is the platform of the game built in 2006? [/INST] SELECT platform_s_ FROM table_name_53 WHERE year = "2006" </s> |
What game was developed by Ubisoft Montreal? | CREATE TABLE table_name_53 (game VARCHAR, developer_s_ VARCHAR) | SELECT game FROM table_name_53 WHERE developer_s_ = "ubisoft montreal" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (game VARCHAR, developer_s_ VARCHAR) Question: What game was developed by Ubisoft Montreal? [/INST] SELECT game FROM table_name_53 WHERE developer_s_ = "ubisoft montreal" </s> |
What is the genre for Portal 2? | CREATE TABLE table_name_32 (genre VARCHAR, game VARCHAR) | SELECT genre FROM table_name_32 WHERE game = "portal 2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (genre VARCHAR, game VARCHAR) Question: What is the genre for Portal 2? [/INST] SELECT genre FROM table_name_32 WHERE game = "portal 2" </s> |
Which platforms can you play Portal 2 on? | CREATE TABLE table_name_88 (platform_s_ VARCHAR, game VARCHAR) | SELECT platform_s_ FROM table_name_88 WHERE game = "portal 2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (platform_s_ VARCHAR, game VARCHAR) Question: Which platforms can you play Portal 2 on? [/INST] SELECT platform_s_ FROM table_name_88 WHERE game = "portal 2" </s> |
What event had the 1500m freestyle? | CREATE TABLE table_name_4 (meet VARCHAR, event VARCHAR) | SELECT meet FROM table_name_4 WHERE event = "1500m freestyle" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (meet VARCHAR, event VARCHAR) Question: What event had the 1500m freestyle? [/INST] SELECT meet FROM table_name_4 WHERE event = "1500m freestyle" </s> |
Who is from italy has 0 giro wins, 0 young rider and less than 3 maglia rosa? | CREATE TABLE table_name_92 (name VARCHAR, maglia_rosa VARCHAR, young_rider VARCHAR, country VARCHAR, giro_wins VARCHAR) | SELECT name FROM table_name_92 WHERE country = "italy" AND giro_wins = 0 AND young_rider = 0 AND maglia_rosa < 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (name VARCHAR, maglia_rosa VARCHAR, young_rider VARCHAR, country VARCHAR, giro_wins VARCHAR) Question: Who is from italy has 0 giro wins, 0 young rider and less than 3 maglia rosa? [/INST] SELECT n... |
How many bronze medals for the United Kingdom when the silver was less than 0? | CREATE TABLE table_name_18 (bronze INTEGER, nation VARCHAR, silver VARCHAR) | SELECT AVG(bronze) FROM table_name_18 WHERE nation = "united kingdom" AND silver < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (bronze INTEGER, nation VARCHAR, silver VARCHAR) Question: How many bronze medals for the United Kingdom when the silver was less than 0? [/INST] SELECT AVG(bronze) FROM table_name_18 WHERE nation ... |
How many bronze medals for West Germany having a total more than 2? | CREATE TABLE table_name_65 (bronze VARCHAR, total VARCHAR, nation VARCHAR) | SELECT COUNT(bronze) FROM table_name_65 WHERE total > 2 AND nation = "west germany" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (bronze VARCHAR, total VARCHAR, nation VARCHAR) Question: How many bronze medals for West Germany having a total more than 2? [/INST] SELECT COUNT(bronze) FROM table_name_65 WHERE total > 2 AND nat... |
What is the amount of silver for rank 11 having less than 0 gold? | CREATE TABLE table_name_21 (silver INTEGER, rank VARCHAR, gold VARCHAR) | SELECT MIN(silver) FROM table_name_21 WHERE rank = "11" AND gold < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (silver INTEGER, rank VARCHAR, gold VARCHAR) Question: What is the amount of silver for rank 11 having less than 0 gold? [/INST] SELECT MIN(silver) FROM table_name_21 WHERE rank = "11" AND gold < 0... |
What rank is Bulgaria with less than 3 silver and more than 1 bronze? | CREATE TABLE table_name_44 (rank VARCHAR, nation VARCHAR, silver VARCHAR, bronze VARCHAR) | SELECT rank FROM table_name_44 WHERE silver < 3 AND bronze > 1 AND nation = "bulgaria" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (rank VARCHAR, nation VARCHAR, silver VARCHAR, bronze VARCHAR) Question: What rank is Bulgaria with less than 3 silver and more than 1 bronze? [/INST] SELECT rank FROM table_name_44 WHERE silver < ... |
What is the mountains classification when stage is 17? | CREATE TABLE table_name_60 (mountains_classification VARCHAR, stage VARCHAR) | SELECT mountains_classification FROM table_name_60 WHERE stage = "17" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (mountains_classification VARCHAR, stage VARCHAR) Question: What is the mountains classification when stage is 17? [/INST] SELECT mountains_classification FROM table_name_60 WHERE stage = "17" </s> |
Who was the winner when points classification is Robbie Mcewen, and a Mountains classification is José Rujano? | CREATE TABLE table_name_45 (winner VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR) | SELECT winner FROM table_name_45 WHERE points_classification = "robbie mcewen" AND mountains_classification = "josé rujano" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (winner VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR) Question: Who was the winner when points classification is Robbie Mcewen, and a Mountains classification is José Ru... |
What is the Trofeo Fast Team when stage is 19? | CREATE TABLE table_name_34 (trofeo_fast_team VARCHAR, stage VARCHAR) | SELECT trofeo_fast_team FROM table_name_34 WHERE stage = "19" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (trofeo_fast_team VARCHAR, stage VARCHAR) Question: What is the Trofeo Fast Team when stage is 19? [/INST] SELECT trofeo_fast_team FROM table_name_34 WHERE stage = "19" </s> |
What is the points classification when the Intergiro classification is Sven Krauß, and the mountains classification is koldo gil, Trofeo Super Team is Liquigas-Bianchi, and stage is 9? | CREATE TABLE table_name_19 (points_classification VARCHAR, stage VARCHAR, trofeo_super_team VARCHAR, intergiro_classification VARCHAR, mountains_classification VARCHAR) | SELECT points_classification FROM table_name_19 WHERE intergiro_classification = "sven krauß" AND mountains_classification = "koldo gil" AND trofeo_super_team = "liquigas-bianchi" AND stage = "9" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (points_classification VARCHAR, stage VARCHAR, trofeo_super_team VARCHAR, intergiro_classification VARCHAR, mountains_classification VARCHAR) Question: What is the points classification when the In... |
What is the Intergiro classification when the points classification is Paolo Bettini, Trofeo Super Team is Davitamon-Lotto, and the Mountains classification is José Rujano? | CREATE TABLE table_name_16 (intergiro_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR, trofeo_super_team VARCHAR) | SELECT intergiro_classification FROM table_name_16 WHERE points_classification = "paolo bettini" AND trofeo_super_team = "davitamon-lotto" AND mountains_classification = "josé rujano" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (intergiro_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR, trofeo_super_team VARCHAR) Question: What is the Intergiro classification when the points classif... |
What is the Stage when the points classification is Danilo Di Luca, Mountains classification is José Rujano, and general classification is Danilo Di Luca? | CREATE TABLE table_name_67 (stage VARCHAR, general_classification VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR) | SELECT stage FROM table_name_67 WHERE points_classification = "danilo di luca" AND mountains_classification = "josé rujano" AND general_classification = "danilo di luca" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (stage VARCHAR, general_classification VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR) Question: What is the Stage when the points classification is Danilo Di Luca, Mounta... |
What is the average GEO ID with a latitude less than 46.57958, a latitude of -102.109898 and more than 35.99 square miles of land? | CREATE TABLE table_name_4 (geo_id INTEGER, land___sqmi__ VARCHAR, latitude VARCHAR, longitude VARCHAR) | SELECT AVG(geo_id) FROM table_name_4 WHERE latitude < 46.57958 AND longitude = -102.109898 AND land___sqmi__ > 35.99 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (geo_id INTEGER, land___sqmi__ VARCHAR, latitude VARCHAR, longitude VARCHAR) Question: What is the average GEO ID with a latitude less than 46.57958, a latitude of -102.109898 and more than 35.99 sq... |
What GEO ID has a longitude of -102.693028? | CREATE TABLE table_name_83 (geo_id VARCHAR, longitude VARCHAR) | SELECT geo_id FROM table_name_83 WHERE longitude = -102.693028 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (geo_id VARCHAR, longitude VARCHAR) Question: What GEO ID has a longitude of -102.693028? [/INST] SELECT geo_id FROM table_name_83 WHERE longitude = -102.693028 </s> |
What is the highest latitude when there are more than 0.518 square miles of water, a longitude less than -99.830606, and a population of 18? | CREATE TABLE table_name_69 (latitude INTEGER, pop__2010_ VARCHAR, water__sqmi_ VARCHAR, longitude VARCHAR) | SELECT MAX(latitude) FROM table_name_69 WHERE water__sqmi_ > 0.518 AND longitude < -99.830606 AND pop__2010_ = 18 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (latitude INTEGER, pop__2010_ VARCHAR, water__sqmi_ VARCHAR, longitude VARCHAR) Question: What is the highest latitude when there are more than 0.518 square miles of water, a longitude less than -9... |
What is the average lane for Australia? | CREATE TABLE table_name_30 (lane INTEGER, nationality VARCHAR) | SELECT AVG(lane) FROM table_name_30 WHERE nationality = "australia" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (lane INTEGER, nationality VARCHAR) Question: What is the average lane for Australia? [/INST] SELECT AVG(lane) FROM table_name_30 WHERE nationality = "australia" </s> |
What is the highest rank for Josefin Lillhage? | CREATE TABLE table_name_54 (rank INTEGER, name VARCHAR) | SELECT MAX(rank) FROM table_name_54 WHERE name = "josefin lillhage" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (rank INTEGER, name VARCHAR) Question: What is the highest rank for Josefin Lillhage? [/INST] SELECT MAX(rank) FROM table_name_54 WHERE name = "josefin lillhage" </s> |
What was the attendance for the final quarter (1)? | CREATE TABLE table_name_97 (attendance VARCHAR, final VARCHAR) | SELECT attendance FROM table_name_97 WHERE final = "quarter (1)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (attendance VARCHAR, final VARCHAR) Question: What was the attendance for the final quarter (1)? [/INST] SELECT attendance FROM table_name_97 WHERE final = "quarter (1)" </s> |
What stadium had the score 1 - 1 dodd 38'? | CREATE TABLE table_name_21 (stadium VARCHAR, score VARCHAR) | SELECT stadium FROM table_name_21 WHERE score = "1 - 1 dodd 38'" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (stadium VARCHAR, score VARCHAR) Question: What stadium had the score 1 - 1 dodd 38'? [/INST] SELECT stadium FROM table_name_21 WHERE score = "1 - 1 dodd 38'" </s> |
What method was used in the Pride 17 event? | CREATE TABLE table_name_78 (method VARCHAR, event VARCHAR) | SELECT method FROM table_name_78 WHERE event = "pride 17" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (method VARCHAR, event VARCHAR) Question: What method was used in the Pride 17 event? [/INST] SELECT method FROM table_name_78 WHERE event = "pride 17" </s> |
What is the Rank of the building that has a Highest floor larger than 50? | CREATE TABLE table_name_57 (rank VARCHAR, highest_floor INTEGER) | SELECT rank FROM table_name_57 WHERE highest_floor > 50 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (rank VARCHAR, highest_floor INTEGER) Question: What is the Rank of the building that has a Highest floor larger than 50? [/INST] SELECT rank FROM table_name_57 WHERE highest_floor > 50 </s> |
what is the most free when the total is 81.167 and the rank is higher than 23? | CREATE TABLE table_name_87 (free INTEGER, total VARCHAR, rank VARCHAR) | SELECT MAX(free) FROM table_name_87 WHERE total = 81.167 AND rank > 23 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (free INTEGER, total VARCHAR, rank VARCHAR) Question: what is the most free when the total is 81.167 and the rank is higher than 23? [/INST] SELECT MAX(free) FROM table_name_87 WHERE total = 81.167... |
How many tracks have an unformatted capacity per side of 2000kb? | CREATE TABLE table_name_7 (tracks VARCHAR, unformatted_capacity_per_side VARCHAR) | SELECT COUNT(tracks) FROM table_name_7 WHERE unformatted_capacity_per_side = "2000kb" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (tracks VARCHAR, unformatted_capacity_per_side VARCHAR) Question: How many tracks have an unformatted capacity per side of 2000kb? [/INST] SELECT COUNT(tracks) FROM table_name_7 WHERE unformatted_ca... |
What is the unformatted capacity per side if the size is 8in? | CREATE TABLE table_name_42 (unformatted_capacity_per_side VARCHAR, size VARCHAR) | SELECT unformatted_capacity_per_side FROM table_name_42 WHERE size = "8in" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (unformatted_capacity_per_side VARCHAR, size VARCHAR) Question: What is the unformatted capacity per side if the size is 8in? [/INST] SELECT unformatted_capacity_per_side FROM table_name_42 WHERE s... |
How many tracks have a single density? | CREATE TABLE table_name_93 (tracks VARCHAR, density VARCHAR) | SELECT COUNT(tracks) FROM table_name_93 WHERE density = "single" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (tracks VARCHAR, density VARCHAR) Question: How many tracks have a single density? [/INST] SELECT COUNT(tracks) FROM table_name_93 WHERE density = "single" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.