instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
On what date was the rocket a TBD with a satellite of GPS IIIA-1?
|
CREATE TABLE table_name_16 (date VARCHAR, rocket VARCHAR, satellite VARCHAR)
|
SELECT date FROM table_name_16 WHERE rocket = "tbd" AND satellite = "gps iiia-1"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (date VARCHAR, rocket VARCHAR, satellite VARCHAR) Question: On what date was the rocket a TBD with a satellite of GPS IIIA-1? [/INST] SELECT date FROM table_name_16 WHERE rocket = "tbd" AND satellite = "gps iiia-1" </s>
|
Which type is a satellite of GPS IIIA-2?
|
CREATE TABLE table_name_54 (type VARCHAR, satellite VARCHAR)
|
SELECT type FROM table_name_54 WHERE satellite = "gps iiia-2"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (type VARCHAR, satellite VARCHAR) Question: Which type is a satellite of GPS IIIA-2? [/INST] SELECT type FROM table_name_54 WHERE satellite = "gps iiia-2" </s>
|
What was the launch site for a satellite of GPS IIIA-2?
|
CREATE TABLE table_name_74 (launch_site VARCHAR, satellite VARCHAR)
|
SELECT launch_site FROM table_name_74 WHERE satellite = "gps iiia-2"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (launch_site VARCHAR, satellite VARCHAR) Question: What was the launch site for a satellite of GPS IIIA-2? [/INST] SELECT launch_site FROM table_name_74 WHERE satellite = "gps iiia-2" </s>
|
What is Choreographer(s), when Chosen is Mary Murphy, and when Style is Contemporary?
|
CREATE TABLE table_name_36 (choreographer_s_ VARCHAR, chosen_by VARCHAR, style VARCHAR)
|
SELECT choreographer_s_ FROM table_name_36 WHERE chosen_by = "mary murphy" AND style = "contemporary"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (choreographer_s_ VARCHAR, chosen_by VARCHAR, style VARCHAR) Question: What is Choreographer(s), when Chosen is Mary Murphy, and when Style is Contemporary? [/INST] SELECT choreographer_s_ FROM table_name_36 WHERE chosen_by = "mary murphy" AND style = "contemporary" </s>
|
What is Chosen By, when Couple is Katee Shean Joshua Allen, and when Choreographer(s) is Nakul Dev Mahajan?
|
CREATE TABLE table_name_10 (chosen_by VARCHAR, couple VARCHAR, choreographer_s_ VARCHAR)
|
SELECT chosen_by FROM table_name_10 WHERE couple = "katee shean joshua allen" AND choreographer_s_ = "nakul dev mahajan"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (chosen_by VARCHAR, couple VARCHAR, choreographer_s_ VARCHAR) Question: What is Chosen By, when Couple is Katee Shean Joshua Allen, and when Choreographer(s) is Nakul Dev Mahajan? [/INST] SELECT chosen_by FROM table_name_10 WHERE couple = "katee shean joshua allen" AND choreographer_s_ = "nakul dev mahajan" </s>
|
What is Style, when Choreographer(s) is Dave Scott?
|
CREATE TABLE table_name_17 (style VARCHAR, choreographer_s_ VARCHAR)
|
SELECT style FROM table_name_17 WHERE choreographer_s_ = "dave scott"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (style VARCHAR, choreographer_s_ VARCHAR) Question: What is Style, when Choreographer(s) is Dave Scott? [/INST] SELECT style FROM table_name_17 WHERE choreographer_s_ = "dave scott" </s>
|
What is Couple, when Choreographer(s) is Nakul Dev Mahajan?
|
CREATE TABLE table_name_13 (couple VARCHAR, choreographer_s_ VARCHAR)
|
SELECT couple FROM table_name_13 WHERE choreographer_s_ = "nakul dev mahajan"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (couple VARCHAR, choreographer_s_ VARCHAR) Question: What is Couple, when Choreographer(s) is Nakul Dev Mahajan? [/INST] SELECT couple FROM table_name_13 WHERE choreographer_s_ = "nakul dev mahajan" </s>
|
What is the average number for Northgate which commenced its construction before 1951?
|
CREATE TABLE table_name_42 (number_on_map INTEGER, name VARCHAR, construction_commenced VARCHAR)
|
SELECT AVG(number_on_map) FROM table_name_42 WHERE name = "northgate" AND construction_commenced < 1951
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (number_on_map INTEGER, name VARCHAR, construction_commenced VARCHAR) Question: What is the average number for Northgate which commenced its construction before 1951? [/INST] SELECT AVG(number_on_map) FROM table_name_42 WHERE name = "northgate" AND construction_commenced < 1951 </s>
|
What is the lowest population for the neighborhood with the color blue that commenced its construction before 1987?
|
CREATE TABLE table_name_20 (population INTEGER, colour VARCHAR, construction_commenced VARCHAR)
|
SELECT MIN(population) FROM table_name_20 WHERE colour = "blue" AND construction_commenced < 1987
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (population INTEGER, colour VARCHAR, construction_commenced VARCHAR) Question: What is the lowest population for the neighborhood with the color blue that commenced its construction before 1987? [/INST] SELECT MIN(population) FROM table_name_20 WHERE colour = "blue" AND construction_commenced < 1987 </s>
|
What is the sum of Top-25 when there are more than 0 wins?
|
CREATE TABLE table_name_46 (top_25 INTEGER, wins INTEGER)
|
SELECT SUM(top_25) FROM table_name_46 WHERE wins > 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (top_25 INTEGER, wins INTEGER) Question: What is the sum of Top-25 when there are more than 0 wins? [/INST] SELECT SUM(top_25) FROM table_name_46 WHERE wins > 0 </s>
|
What is the lowest Top-10 when the Top-25 is 6, and a Tournament of u.s. open, and a Cut made larger than 9?
|
CREATE TABLE table_name_44 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR, tournament VARCHAR)
|
SELECT MIN(top_10) FROM table_name_44 WHERE top_25 = 6 AND tournament = "u.s. open" AND cuts_made > 9
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR, tournament VARCHAR) Question: What is the lowest Top-10 when the Top-25 is 6, and a Tournament of u.s. open, and a Cut made larger than 9? [/INST] SELECT MIN(top_10) FROM table_name_44 WHERE top_25 = 6 AND tournament = "u.s. open" AND cuts_made > 9 </s>
|
What is the lowest Top-25 when events shows 12, the top-5 is 1, and less than 11 cuts?
|
CREATE TABLE table_name_63 (top_25 INTEGER, cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR)
|
SELECT MIN(top_25) FROM table_name_63 WHERE events = 12 AND top_5 = 1 AND cuts_made < 11
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (top_25 INTEGER, cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR) Question: What is the lowest Top-25 when events shows 12, the top-5 is 1, and less than 11 cuts? [/INST] SELECT MIN(top_25) FROM table_name_63 WHERE events = 12 AND top_5 = 1 AND cuts_made < 11 </s>
|
What is the Enrollment at Onalaska?
|
CREATE TABLE table_name_93 (enrollment INTEGER, location VARCHAR)
|
SELECT MAX(enrollment) FROM table_name_93 WHERE location = "onalaska"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (enrollment INTEGER, location VARCHAR) Question: What is the Enrollment at Onalaska? [/INST] SELECT MAX(enrollment) FROM table_name_93 WHERE location = "onalaska" </s>
|
What Public Institution is in Black River Falls?
|
CREATE TABLE table_name_80 (institution VARCHAR, affiliation VARCHAR, location VARCHAR)
|
SELECT institution FROM table_name_80 WHERE affiliation = "public" AND location = "black river falls"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (institution VARCHAR, affiliation VARCHAR, location VARCHAR) Question: What Public Institution is in Black River Falls? [/INST] SELECT institution FROM table_name_80 WHERE affiliation = "public" AND location = "black river falls" </s>
|
What is the total number of Block for the Player with less than 85 Weight and more than 187 Height?
|
CREATE TABLE table_name_73 (block VARCHAR, weight VARCHAR, height VARCHAR)
|
SELECT COUNT(block) FROM table_name_73 WHERE weight < 85 AND height > 187
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (block VARCHAR, weight VARCHAR, height VARCHAR) Question: What is the total number of Block for the Player with less than 85 Weight and more than 187 Height? [/INST] SELECT COUNT(block) FROM table_name_73 WHERE weight < 85 AND height > 187 </s>
|
What is the Name of the player with less than 342 Block, less than 87 Weight and Height more than 187?
|
CREATE TABLE table_name_50 (name VARCHAR, height VARCHAR, block VARCHAR, weight VARCHAR)
|
SELECT name FROM table_name_50 WHERE block < 342 AND weight < 87 AND height > 187
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (name VARCHAR, height VARCHAR, block VARCHAR, weight VARCHAR) Question: What is the Name of the player with less than 342 Block, less than 87 Weight and Height more than 187? [/INST] SELECT name FROM table_name_50 WHERE block < 342 AND weight < 87 AND height > 187 </s>
|
What is the Weight of the player with a Block larger than 328, Spike greater than 375 and Height larger than 207?
|
CREATE TABLE table_name_28 (weight VARCHAR, spike VARCHAR, block VARCHAR, height VARCHAR)
|
SELECT COUNT(weight) FROM table_name_28 WHERE block > 328 AND height > 207 AND spike > 375
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (weight VARCHAR, spike VARCHAR, block VARCHAR, height VARCHAR) Question: What is the Weight of the player with a Block larger than 328, Spike greater than 375 and Height larger than 207? [/INST] SELECT COUNT(weight) FROM table_name_28 WHERE block > 328 AND height > 207 AND spike > 375 </s>
|
What is the Result with a Category of album of the year in a Year that is 2011?
|
CREATE TABLE table_name_47 (result VARCHAR, category VARCHAR, year VARCHAR)
|
SELECT result FROM table_name_47 WHERE category = "album of the year" AND year = 2011
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (result VARCHAR, category VARCHAR, year VARCHAR) Question: What is the Result with a Category of album of the year in a Year that is 2011? [/INST] SELECT result FROM table_name_47 WHERE category = "album of the year" AND year = 2011 </s>
|
What is Season, when Name is Tony Boy Espinosa?
|
CREATE TABLE table_name_57 (season VARCHAR, name VARCHAR)
|
SELECT season FROM table_name_57 WHERE name = "tony boy espinosa"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (season VARCHAR, name VARCHAR) Question: What is Season, when Name is Tony Boy Espinosa? [/INST] SELECT season FROM table_name_57 WHERE name = "tony boy espinosa" </s>
|
What is the average Number, when Position is Forward?
|
CREATE TABLE table_name_13 (number INTEGER, position VARCHAR)
|
SELECT AVG(number) FROM table_name_13 WHERE position = "forward"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (number INTEGER, position VARCHAR) Question: What is the average Number, when Position is Forward? [/INST] SELECT AVG(number) FROM table_name_13 WHERE position = "forward" </s>
|
What is the lowest Number, when School/Club Team is Misamis Institute?
|
CREATE TABLE table_name_30 (number INTEGER, school_club_team VARCHAR)
|
SELECT MIN(number) FROM table_name_30 WHERE school_club_team = "misamis institute"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (number INTEGER, school_club_team VARCHAR) Question: What is the lowest Number, when School/Club Team is Misamis Institute? [/INST] SELECT MIN(number) FROM table_name_30 WHERE school_club_team = "misamis institute" </s>
|
What is School/Club Team, when Season is 2006-2012?
|
CREATE TABLE table_name_79 (school_club_team VARCHAR, season VARCHAR)
|
SELECT school_club_team FROM table_name_79 WHERE season = "2006-2012"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (school_club_team VARCHAR, season VARCHAR) Question: What is School/Club Team, when Season is 2006-2012? [/INST] SELECT school_club_team FROM table_name_79 WHERE season = "2006-2012" </s>
|
What is Acquisition via, when Season is 2006-2012?
|
CREATE TABLE table_name_50 (acquisition_via VARCHAR, season VARCHAR)
|
SELECT acquisition_via FROM table_name_50 WHERE season = "2006-2012"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (acquisition_via VARCHAR, season VARCHAR) Question: What is Acquisition via, when Season is 2006-2012? [/INST] SELECT acquisition_via FROM table_name_50 WHERE season = "2006-2012" </s>
|
What is Set 4, when Set 1 is 19-25, and when Set 2 is 23-25?
|
CREATE TABLE table_name_33 (set_4 VARCHAR, set_1 VARCHAR, set_2 VARCHAR)
|
SELECT set_4 FROM table_name_33 WHERE set_1 = "19-25" AND set_2 = "23-25"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (set_4 VARCHAR, set_1 VARCHAR, set_2 VARCHAR) Question: What is Set 4, when Set 1 is 19-25, and when Set 2 is 23-25? [/INST] SELECT set_4 FROM table_name_33 WHERE set_1 = "19-25" AND set_2 = "23-25" </s>
|
What is Set 1, when Set 4 is NA, when Score is 3-0, and when Set 2 is 29-27?
|
CREATE TABLE table_name_30 (set_1 VARCHAR, set_2 VARCHAR, set_4 VARCHAR, score VARCHAR)
|
SELECT set_1 FROM table_name_30 WHERE set_4 = "na" AND score = "3-0" AND set_2 = "29-27"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (set_1 VARCHAR, set_2 VARCHAR, set_4 VARCHAR, score VARCHAR) Question: What is Set 1, when Set 4 is NA, when Score is 3-0, and when Set 2 is 29-27? [/INST] SELECT set_1 FROM table_name_30 WHERE set_4 = "na" AND score = "3-0" AND set_2 = "29-27" </s>
|
What is Set 2, when Date is May 31?
|
CREATE TABLE table_name_67 (set_2 VARCHAR, date VARCHAR)
|
SELECT set_2 FROM table_name_67 WHERE date = "may 31"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (set_2 VARCHAR, date VARCHAR) Question: What is Set 2, when Date is May 31? [/INST] SELECT set_2 FROM table_name_67 WHERE date = "may 31" </s>
|
What is Set 1, when Set 2 is 17-25?
|
CREATE TABLE table_name_22 (set_1 VARCHAR, set_2 VARCHAR)
|
SELECT set_1 FROM table_name_22 WHERE set_2 = "17-25"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (set_1 VARCHAR, set_2 VARCHAR) Question: What is Set 1, when Set 2 is 17-25? [/INST] SELECT set_1 FROM table_name_22 WHERE set_2 = "17-25" </s>
|
What is Set 3, when Set 4 is 25-21, and when Date is Jun 14?
|
CREATE TABLE table_name_79 (set_3 VARCHAR, set_4 VARCHAR, date VARCHAR)
|
SELECT set_3 FROM table_name_79 WHERE set_4 = "25-21" AND date = "jun 14"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (set_3 VARCHAR, set_4 VARCHAR, date VARCHAR) Question: What is Set 3, when Set 4 is 25-21, and when Date is Jun 14? [/INST] SELECT set_3 FROM table_name_79 WHERE set_4 = "25-21" AND date = "jun 14" </s>
|
What were the total number of Events, when the Top-5 was less than 2, and when the Top-25 was less than 3?
|
CREATE TABLE table_name_23 (events VARCHAR, top_5 VARCHAR, top_25 VARCHAR)
|
SELECT COUNT(events) FROM table_name_23 WHERE top_5 < 2 AND top_25 < 3
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (events VARCHAR, top_5 VARCHAR, top_25 VARCHAR) Question: What were the total number of Events, when the Top-5 was less than 2, and when the Top-25 was less than 3? [/INST] SELECT COUNT(events) FROM table_name_23 WHERE top_5 < 2 AND top_25 < 3 </s>
|
What was the total number of Top-25 values, for which Cuts made was 62, and for which Wins were less than 1?
|
CREATE TABLE table_name_37 (top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR)
|
SELECT COUNT(top_25) FROM table_name_37 WHERE cuts_made = 62 AND wins < 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR) Question: What was the total number of Top-25 values, for which Cuts made was 62, and for which Wins were less than 1? [/INST] SELECT COUNT(top_25) FROM table_name_37 WHERE cuts_made = 62 AND wins < 1 </s>
|
What was the total number of Cuts made, when Top-5 was greater than 3, and when Events were 85?
|
CREATE TABLE table_name_79 (cuts_made VARCHAR, top_5 VARCHAR, events VARCHAR)
|
SELECT COUNT(cuts_made) FROM table_name_79 WHERE top_5 > 3 AND events = 85
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (cuts_made VARCHAR, top_5 VARCHAR, events VARCHAR) Question: What was the total number of Cuts made, when Top-5 was greater than 3, and when Events were 85? [/INST] SELECT COUNT(cuts_made) FROM table_name_79 WHERE top_5 > 3 AND events = 85 </s>
|
What was the sum of Events, when Wins were less than 1, when Top-25 was 3, and when Top-5 was less than 1?
|
CREATE TABLE table_name_57 (events INTEGER, top_5 VARCHAR, wins VARCHAR, top_25 VARCHAR)
|
SELECT SUM(events) FROM table_name_57 WHERE wins < 1 AND top_25 = 3 AND top_5 < 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (events INTEGER, top_5 VARCHAR, wins VARCHAR, top_25 VARCHAR) Question: What was the sum of Events, when Wins were less than 1, when Top-25 was 3, and when Top-5 was less than 1? [/INST] SELECT SUM(events) FROM table_name_57 WHERE wins < 1 AND top_25 = 3 AND top_5 < 1 </s>
|
What was the highest Top-10, when the Top-5 was greater than 3, when the Cuts made were 20, and when the Top-25 was more than 10?
|
CREATE TABLE table_name_77 (top_10 INTEGER, top_25 VARCHAR, top_5 VARCHAR, cuts_made VARCHAR)
|
SELECT MAX(top_10) FROM table_name_77 WHERE top_5 > 3 AND cuts_made = 20 AND top_25 > 10
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (top_10 INTEGER, top_25 VARCHAR, top_5 VARCHAR, cuts_made VARCHAR) Question: What was the highest Top-10, when the Top-5 was greater than 3, when the Cuts made were 20, and when the Top-25 was more than 10? [/INST] SELECT MAX(top_10) FROM table_name_77 WHERE top_5 > 3 AND cuts_made = 20 AND top_25 > 10 </s>
|
What was the lowest Top-10, when the Wins were 0, when the Top-25 was 12, and when the Events were less than 23?
|
CREATE TABLE table_name_4 (top_10 INTEGER, events VARCHAR, wins VARCHAR, top_25 VARCHAR)
|
SELECT MIN(top_10) FROM table_name_4 WHERE wins = 0 AND top_25 = 12 AND events < 23
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (top_10 INTEGER, events VARCHAR, wins VARCHAR, top_25 VARCHAR) Question: What was the lowest Top-10, when the Wins were 0, when the Top-25 was 12, and when the Events were less than 23? [/INST] SELECT MIN(top_10) FROM table_name_4 WHERE wins = 0 AND top_25 = 12 AND events < 23 </s>
|
What is the average Against when the drawn is more than 2 and the Difference of- 17, and a Played smaller than 20?
|
CREATE TABLE table_name_88 (against INTEGER, played VARCHAR, drawn VARCHAR, difference VARCHAR)
|
SELECT AVG(against) FROM table_name_88 WHERE drawn > 2 AND difference = "- 17" AND played < 20
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (against INTEGER, played VARCHAR, drawn VARCHAR, difference VARCHAR) Question: What is the average Against when the drawn is more than 2 and the Difference of- 17, and a Played smaller than 20? [/INST] SELECT AVG(against) FROM table_name_88 WHERE drawn > 2 AND difference = "- 17" AND played < 20 </s>
|
What is the number of Position when the team was são paulo railway and the against is less than 46?
|
CREATE TABLE table_name_28 (position VARCHAR, team VARCHAR, against VARCHAR)
|
SELECT COUNT(position) FROM table_name_28 WHERE team = "são paulo railway" AND against < 46
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (position VARCHAR, team VARCHAR, against VARCHAR) Question: What is the number of Position when the team was são paulo railway and the against is less than 46? [/INST] SELECT COUNT(position) FROM table_name_28 WHERE team = "são paulo railway" AND against < 46 </s>
|
What is the Team when the lost is less than 13, and the position is less than 4, with a Difference of 42?
|
CREATE TABLE table_name_58 (team VARCHAR, difference VARCHAR, lost VARCHAR, position VARCHAR)
|
SELECT team FROM table_name_58 WHERE lost < 13 AND position < 4 AND difference = "42"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (team VARCHAR, difference VARCHAR, lost VARCHAR, position VARCHAR) Question: What is the Team when the lost is less than 13, and the position is less than 4, with a Difference of 42? [/INST] SELECT team FROM table_name_58 WHERE lost < 13 AND position < 4 AND difference = "42" </s>
|
What is the sum of Played when the drawn is less than 2 and against is more than 29?
|
CREATE TABLE table_name_35 (played INTEGER, drawn VARCHAR, against VARCHAR)
|
SELECT SUM(played) FROM table_name_35 WHERE drawn < 2 AND against > 29
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (played INTEGER, drawn VARCHAR, against VARCHAR) Question: What is the sum of Played when the drawn is less than 2 and against is more than 29? [/INST] SELECT SUM(played) FROM table_name_35 WHERE drawn < 2 AND against > 29 </s>
|
Which Wins has a Byes larger than 0?
|
CREATE TABLE table_name_65 (wins INTEGER, byes INTEGER)
|
SELECT MAX(wins) FROM table_name_65 WHERE byes > 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (wins INTEGER, byes INTEGER) Question: Which Wins has a Byes larger than 0? [/INST] SELECT MAX(wins) FROM table_name_65 WHERE byes > 0 </s>
|
Which Against has a Peel of waroona, and a Byes larger than 0?
|
CREATE TABLE table_name_55 (against INTEGER, peel VARCHAR, byes VARCHAR)
|
SELECT MAX(against) FROM table_name_55 WHERE peel = "waroona" AND byes > 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (against INTEGER, peel VARCHAR, byes VARCHAR) Question: Which Against has a Peel of waroona, and a Byes larger than 0? [/INST] SELECT MAX(against) FROM table_name_55 WHERE peel = "waroona" AND byes > 0 </s>
|
Which Draws has a Wins smaller than 17, and an Against smaller than 1158?
|
CREATE TABLE table_name_64 (draws VARCHAR, wins VARCHAR, against VARCHAR)
|
SELECT COUNT(draws) FROM table_name_64 WHERE wins < 17 AND against < 1158
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (draws VARCHAR, wins VARCHAR, against VARCHAR) Question: Which Draws has a Wins smaller than 17, and an Against smaller than 1158? [/INST] SELECT COUNT(draws) FROM table_name_64 WHERE wins < 17 AND against < 1158 </s>
|
Which Draws has an Against larger than 1158, and a Wins of 9, and a Losses smaller than 9?
|
CREATE TABLE table_name_74 (draws INTEGER, losses VARCHAR, against VARCHAR, wins VARCHAR)
|
SELECT SUM(draws) FROM table_name_74 WHERE against > 1158 AND wins = 9 AND losses < 9
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (draws INTEGER, losses VARCHAR, against VARCHAR, wins VARCHAR) Question: Which Draws has an Against larger than 1158, and a Wins of 9, and a Losses smaller than 9? [/INST] SELECT SUM(draws) FROM table_name_74 WHERE against > 1158 AND wins = 9 AND losses < 9 </s>
|
Which Losses has a Wins of 6, and an Against smaller than 1741?
|
CREATE TABLE table_name_56 (losses INTEGER, wins VARCHAR, against VARCHAR)
|
SELECT MIN(losses) FROM table_name_56 WHERE wins = 6 AND against < 1741
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (losses INTEGER, wins VARCHAR, against VARCHAR) Question: Which Losses has a Wins of 6, and an Against smaller than 1741? [/INST] SELECT MIN(losses) FROM table_name_56 WHERE wins = 6 AND against < 1741 </s>
|
What venue was the game played in when the winner was the atlanta hawks (11)?
|
CREATE TABLE table_name_81 (venue VARCHAR, winner VARCHAR)
|
SELECT venue FROM table_name_81 WHERE winner = "atlanta hawks (11)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (venue VARCHAR, winner VARCHAR) Question: What venue was the game played in when the winner was the atlanta hawks (11)? [/INST] SELECT venue FROM table_name_81 WHERE winner = "atlanta hawks (11)" </s>
|
What team was the loser when the result was 119–113?
|
CREATE TABLE table_name_83 (loser VARCHAR, result VARCHAR)
|
SELECT loser FROM table_name_83 WHERE result = "119–113"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (loser VARCHAR, result VARCHAR) Question: What team was the loser when the result was 119–113? [/INST] SELECT loser FROM table_name_83 WHERE result = "119–113" </s>
|
What is the Loser when the winner was los angeles lakers (10)?
|
CREATE TABLE table_name_18 (loser VARCHAR, winner VARCHAR)
|
SELECT loser FROM table_name_18 WHERE winner = "los angeles lakers (10)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (loser VARCHAR, winner VARCHAR) Question: What is the Loser when the winner was los angeles lakers (10)? [/INST] SELECT loser FROM table_name_18 WHERE winner = "los angeles lakers (10)" </s>
|
What is the Venue when the result was 88–87?
|
CREATE TABLE table_name_78 (venue VARCHAR, result VARCHAR)
|
SELECT venue FROM table_name_78 WHERE result = "88–87"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (venue VARCHAR, result VARCHAR) Question: What is the Venue when the result was 88–87? [/INST] SELECT venue FROM table_name_78 WHERE result = "88–87" </s>
|
What team was the winner when the result was 90–86?
|
CREATE TABLE table_name_35 (winner VARCHAR, result VARCHAR)
|
SELECT winner FROM table_name_35 WHERE result = "90–86"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (winner VARCHAR, result VARCHAR) Question: What team was the winner when the result was 90–86? [/INST] SELECT winner FROM table_name_35 WHERE result = "90–86" </s>
|
What is the Result when the memphis grizzlies ( 2) were the loser?
|
CREATE TABLE table_name_10 (result VARCHAR, loser VARCHAR)
|
SELECT result FROM table_name_10 WHERE loser = "memphis grizzlies ( 2)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (result VARCHAR, loser VARCHAR) Question: What is the Result when the memphis grizzlies ( 2) were the loser? [/INST] SELECT result FROM table_name_10 WHERE loser = "memphis grizzlies ( 2)" </s>
|
What year was the Win percentage 60%?
|
CREATE TABLE table_name_77 (years VARCHAR, win_percentage VARCHAR)
|
SELECT years FROM table_name_77 WHERE win_percentage = "60%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (years VARCHAR, win_percentage VARCHAR) Question: What year was the Win percentage 60%? [/INST] SELECT years FROM table_name_77 WHERE win_percentage = "60%" </s>
|
What is the total number of Tests when the lost is less than 9 for sir fred allen?
|
CREATE TABLE table_name_43 (tests VARCHAR, lost VARCHAR, name VARCHAR)
|
SELECT COUNT(tests) FROM table_name_43 WHERE lost < 9 AND name = "sir fred allen"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (tests VARCHAR, lost VARCHAR, name VARCHAR) Question: What is the total number of Tests when the lost is less than 9 for sir fred allen? [/INST] SELECT COUNT(tests) FROM table_name_43 WHERE lost < 9 AND name = "sir fred allen" </s>
|
What is the Win percentage where there were 5 lost and 0 is drew?
|
CREATE TABLE table_name_62 (win_percentage VARCHAR, lost VARCHAR, drew VARCHAR)
|
SELECT win_percentage FROM table_name_62 WHERE lost = 5 AND drew = 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (win_percentage VARCHAR, lost VARCHAR, drew VARCHAR) Question: What is the Win percentage where there were 5 lost and 0 is drew? [/INST] SELECT win_percentage FROM table_name_62 WHERE lost = 5 AND drew = 0 </s>
|
How many Campeonato Paulistas had a campeonato brasileiro of more than 2, an others number of more than 0, and a copa sudamericana of more than 5?
|
CREATE TABLE table_name_72 (campeonato_paulista VARCHAR, copa_sudamericana VARCHAR, campeonato_brasileiro VARCHAR, others VARCHAR)
|
SELECT COUNT(campeonato_paulista) FROM table_name_72 WHERE campeonato_brasileiro > 2 AND others > 0 AND copa_sudamericana > 5
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (campeonato_paulista VARCHAR, copa_sudamericana VARCHAR, campeonato_brasileiro VARCHAR, others VARCHAR) Question: How many Campeonato Paulistas had a campeonato brasileiro of more than 2, an others number of more than 0, and a copa sudamericana of more than 5? [/INST] SELECT COUNT(campeonato_paulista) FROM table_name_72 WHERE campeonato_brasileiro > 2 AND others > 0 AND copa_sudamericana > 5 </s>
|
What is the largest copa sudamericana number when the others number is less than 0?
|
CREATE TABLE table_name_80 (copa_sudamericana INTEGER, others INTEGER)
|
SELECT MAX(copa_sudamericana) FROM table_name_80 WHERE others < 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (copa_sudamericana INTEGER, others INTEGER) Question: What is the largest copa sudamericana number when the others number is less than 0? [/INST] SELECT MAX(copa_sudamericana) FROM table_name_80 WHERE others < 0 </s>
|
Which Unit has Authors of dalla vecchia, wild, & reitner?
|
CREATE TABLE table_name_65 (unit VARCHAR, authors VARCHAR)
|
SELECT unit FROM table_name_65 WHERE authors = "dalla vecchia, wild, & reitner"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (unit VARCHAR, authors VARCHAR) Question: Which Unit has Authors of dalla vecchia, wild, & reitner? [/INST] SELECT unit FROM table_name_65 WHERE authors = "dalla vecchia, wild, & reitner" </s>
|
Where is two medicine formation?
|
CREATE TABLE table_name_46 (location VARCHAR, unit VARCHAR)
|
SELECT location FROM table_name_46 WHERE unit = "two medicine formation"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (location VARCHAR, unit VARCHAR) Question: Where is two medicine formation? [/INST] SELECT location FROM table_name_46 WHERE unit = "two medicine formation" </s>
|
What is varricchio's unit?
|
CREATE TABLE table_name_75 (unit VARCHAR, authors VARCHAR)
|
SELECT unit FROM table_name_75 WHERE authors = "varricchio"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (unit VARCHAR, authors VARCHAR) Question: What is varricchio's unit? [/INST] SELECT unit FROM table_name_75 WHERE authors = "varricchio" </s>
|
Which authors have a Unit of densuș-ciula formation?
|
CREATE TABLE table_name_42 (authors VARCHAR, unit VARCHAR)
|
SELECT authors FROM table_name_42 WHERE unit = "densuș-ciula formation"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (authors VARCHAR, unit VARCHAR) Question: Which authors have a Unit of densuș-ciula formation? [/INST] SELECT authors FROM table_name_42 WHERE unit = "densuș-ciula formation" </s>
|
Which Status has a Unit of daohugou beds?
|
CREATE TABLE table_name_55 (status VARCHAR, unit VARCHAR)
|
SELECT status FROM table_name_55 WHERE unit = "daohugou beds"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (status VARCHAR, unit VARCHAR) Question: Which Status has a Unit of daohugou beds? [/INST] SELECT status FROM table_name_55 WHERE unit = "daohugou beds" </s>
|
What is varricchio's status?
|
CREATE TABLE table_name_75 (status VARCHAR, authors VARCHAR)
|
SELECT status FROM table_name_75 WHERE authors = "varricchio"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (status VARCHAR, authors VARCHAR) Question: What is varricchio's status? [/INST] SELECT status FROM table_name_75 WHERE authors = "varricchio" </s>
|
What is the points average when the tied is greater than 8, less than 82 games and the coach of Bryan Mclay † Morris Lallo ‡ Gerry Moore ‡, and greater than 322 goals?
|
CREATE TABLE table_name_13 (points INTEGER, goals_against VARCHAR, coach VARCHAR, tied VARCHAR, games VARCHAR)
|
SELECT AVG(points) FROM table_name_13 WHERE tied > 8 AND games < 82 AND coach = "bryan mclay † morris lallo ‡ gerry moore ‡" AND goals_against > 322
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (points INTEGER, goals_against VARCHAR, coach VARCHAR, tied VARCHAR, games VARCHAR) Question: What is the points average when the tied is greater than 8, less than 82 games and the coach of Bryan Mclay † Morris Lallo ‡ Gerry Moore ‡, and greater than 322 goals? [/INST] SELECT AVG(points) FROM table_name_13 WHERE tied > 8 AND games < 82 AND coach = "bryan mclay † morris lallo ‡ gerry moore ‡" AND goals_against > 322 </s>
|
What are the most games when the points are 100 and goals for less than 356?
|
CREATE TABLE table_name_23 (games INTEGER, points VARCHAR, goals_for VARCHAR)
|
SELECT MAX(games) FROM table_name_23 WHERE points = 100 AND goals_for < 356
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (games INTEGER, points VARCHAR, goals_for VARCHAR) Question: What are the most games when the points are 100 and goals for less than 356? [/INST] SELECT MAX(games) FROM table_name_23 WHERE points = 100 AND goals_for < 356 </s>
|
What is the most points when the goals against are 354 and games less than 82?
|
CREATE TABLE table_name_49 (points INTEGER, goals_against VARCHAR, games VARCHAR)
|
SELECT MAX(points) FROM table_name_49 WHERE goals_against = 354 AND games < 82
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (points INTEGER, goals_against VARCHAR, games VARCHAR) Question: What is the most points when the goals against are 354 and games less than 82? [/INST] SELECT MAX(points) FROM table_name_49 WHERE goals_against = 354 AND games < 82 </s>
|
For games less than 70 and goals for greater than 335 what is the most points?
|
CREATE TABLE table_name_85 (points INTEGER, goals_for VARCHAR, games VARCHAR)
|
SELECT MAX(points) FROM table_name_85 WHERE goals_for > 335 AND games < 70
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (points INTEGER, goals_for VARCHAR, games VARCHAR) Question: For games less than 70 and goals for greater than 335 what is the most points? [/INST] SELECT MAX(points) FROM table_name_85 WHERE goals_for > 335 AND games < 70 </s>
|
What is Gold, when Total is less than 4, when Silver is 1, and when Bronze is 1?
|
CREATE TABLE table_name_71 (gold VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR)
|
SELECT gold FROM table_name_71 WHERE total < 4 AND silver = "1" AND bronze = "1"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (gold VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR) Question: What is Gold, when Total is less than 4, when Silver is 1, and when Bronze is 1? [/INST] SELECT gold FROM table_name_71 WHERE total < 4 AND silver = "1" AND bronze = "1" </s>
|
What is Silver, when Total is greater than 4, when Bronze is 2, and when Rank is greater than 1?
|
CREATE TABLE table_name_51 (silver VARCHAR, rank VARCHAR, total VARCHAR, bronze VARCHAR)
|
SELECT silver FROM table_name_51 WHERE total > 4 AND bronze = "2" AND rank > 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (silver VARCHAR, rank VARCHAR, total VARCHAR, bronze VARCHAR) Question: What is Silver, when Total is greater than 4, when Bronze is 2, and when Rank is greater than 1? [/INST] SELECT silver FROM table_name_51 WHERE total > 4 AND bronze = "2" AND rank > 1 </s>
|
Who was on the Socialist Labor ticket that had Arthur Levitt as the Liberal Ticket?
|
CREATE TABLE table_name_60 (socialist_labor_ticket VARCHAR, liberal_ticket VARCHAR)
|
SELECT socialist_labor_ticket FROM table_name_60 WHERE liberal_ticket = "arthur levitt"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (socialist_labor_ticket VARCHAR, liberal_ticket VARCHAR) Question: Who was on the Socialist Labor ticket that had Arthur Levitt as the Liberal Ticket? [/INST] SELECT socialist_labor_ticket FROM table_name_60 WHERE liberal_ticket = "arthur levitt" </s>
|
Robert S. Flanzer was the Free Libertarian ticket with who listed as the Liberal Ticket?
|
CREATE TABLE table_name_51 (liberal_ticket VARCHAR, free_libertarian_ticket VARCHAR)
|
SELECT liberal_ticket FROM table_name_51 WHERE free_libertarian_ticket = "robert s. flanzer"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (liberal_ticket VARCHAR, free_libertarian_ticket VARCHAR) Question: Robert S. Flanzer was the Free Libertarian ticket with who listed as the Liberal Ticket? [/INST] SELECT liberal_ticket FROM table_name_51 WHERE free_libertarian_ticket = "robert s. flanzer" </s>
|
The Liberal Ticket listed which candidate when Jack A. Martin was listed on the Free Libertarian Ticket?
|
CREATE TABLE table_name_21 (liberal_ticket VARCHAR, free_libertarian_ticket VARCHAR)
|
SELECT liberal_ticket FROM table_name_21 WHERE free_libertarian_ticket = "jack a. martin"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (liberal_ticket VARCHAR, free_libertarian_ticket VARCHAR) Question: The Liberal Ticket listed which candidate when Jack A. Martin was listed on the Free Libertarian Ticket? [/INST] SELECT liberal_ticket FROM table_name_21 WHERE free_libertarian_ticket = "jack a. martin" </s>
|
The person who is on the Democratic ticket for the position of Office of U.S. Senator was who?
|
CREATE TABLE table_name_68 (democratic_ticket VARCHAR, office VARCHAR)
|
SELECT democratic_ticket FROM table_name_68 WHERE office = "u.s. senator"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (democratic_ticket VARCHAR, office VARCHAR) Question: The person who is on the Democratic ticket for the position of Office of U.S. Senator was who? [/INST] SELECT democratic_ticket FROM table_name_68 WHERE office = "u.s. senator" </s>
|
Leland W. Schubert, Free Libertarian ticket, had who listed on the Democratic ticket?
|
CREATE TABLE table_name_56 (democratic_ticket VARCHAR, free_libertarian_ticket VARCHAR)
|
SELECT democratic_ticket FROM table_name_56 WHERE free_libertarian_ticket = "leland w. schubert"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (democratic_ticket VARCHAR, free_libertarian_ticket VARCHAR) Question: Leland W. Schubert, Free Libertarian ticket, had who listed on the Democratic ticket? [/INST] SELECT democratic_ticket FROM table_name_56 WHERE free_libertarian_ticket = "leland w. schubert" </s>
|
What is the lowest Extras for Chamara Kapugedera, with an E.R. less than 4.59?
|
CREATE TABLE table_name_50 (extras INTEGER, name VARCHAR, er VARCHAR)
|
SELECT MIN(extras) FROM table_name_50 WHERE name = "chamara kapugedera" AND er < 4.59
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (extras INTEGER, name VARCHAR, er VARCHAR) Question: What is the lowest Extras for Chamara Kapugedera, with an E.R. less than 4.59? [/INST] SELECT MIN(extras) FROM table_name_50 WHERE name = "chamara kapugedera" AND er < 4.59 </s>
|
What is the highest Extras with an E.R. of 4.59, and more than 101 Runs Conceded?
|
CREATE TABLE table_name_9 (extras INTEGER, er VARCHAR, runs_conceded VARCHAR)
|
SELECT MAX(extras) FROM table_name_9 WHERE er = 4.59 AND runs_conceded > 101
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (extras INTEGER, er VARCHAR, runs_conceded VARCHAR) Question: What is the highest Extras with an E.R. of 4.59, and more than 101 Runs Conceded? [/INST] SELECT MAX(extras) FROM table_name_9 WHERE er = 4.59 AND runs_conceded > 101 </s>
|
What is the average Extras for Muttiah Muralitharan, with less than 353 Runs Conceded?
|
CREATE TABLE table_name_38 (extras INTEGER, name VARCHAR, runs_conceded VARCHAR)
|
SELECT AVG(extras) FROM table_name_38 WHERE name = "muttiah muralitharan" AND runs_conceded < 353
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (extras INTEGER, name VARCHAR, runs_conceded VARCHAR) Question: What is the average Extras for Muttiah Muralitharan, with less than 353 Runs Conceded? [/INST] SELECT AVG(extras) FROM table_name_38 WHERE name = "muttiah muralitharan" AND runs_conceded < 353 </s>
|
What is the highest Extras for Farveez Maharoof, with more than 4 wickets?
|
CREATE TABLE table_name_79 (extras INTEGER, name VARCHAR, wickets VARCHAR)
|
SELECT MAX(extras) FROM table_name_79 WHERE name = "farveez maharoof" AND wickets > 4
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (extras INTEGER, name VARCHAR, wickets VARCHAR) Question: What is the highest Extras for Farveez Maharoof, with more than 4 wickets? [/INST] SELECT MAX(extras) FROM table_name_79 WHERE name = "farveez maharoof" AND wickets > 4 </s>
|
What is the total number of Maidens when E.R. is less than 9.5, and a Overs Bowled larger than 57, and a Wickets of 9?
|
CREATE TABLE table_name_95 (maidens VARCHAR, wickets VARCHAR, er VARCHAR, overs_bowled VARCHAR)
|
SELECT COUNT(maidens) FROM table_name_95 WHERE er < 9.5 AND overs_bowled > 57 AND wickets = 9
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (maidens VARCHAR, wickets VARCHAR, er VARCHAR, overs_bowled VARCHAR) Question: What is the total number of Maidens when E.R. is less than 9.5, and a Overs Bowled larger than 57, and a Wickets of 9? [/INST] SELECT COUNT(maidens) FROM table_name_95 WHERE er < 9.5 AND overs_bowled > 57 AND wickets = 9 </s>
|
How many FA Cups on average have a larger total than 32 and a larger league than 24?
|
CREATE TABLE table_name_15 (fa_cup INTEGER, total VARCHAR, league VARCHAR)
|
SELECT AVG(fa_cup) FROM table_name_15 WHERE total > 32 AND league > 24
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (fa_cup INTEGER, total VARCHAR, league VARCHAR) Question: How many FA Cups on average have a larger total than 32 and a larger league than 24? [/INST] SELECT AVG(fa_cup) FROM table_name_15 WHERE total > 32 AND league > 24 </s>
|
How many FA Trophies had a total of 27, 2 FA cups, and a league larger than 24?
|
CREATE TABLE table_name_82 (fa_trophy INTEGER, league VARCHAR, total VARCHAR, fa_cup VARCHAR)
|
SELECT SUM(fa_trophy) FROM table_name_82 WHERE total = 27 AND fa_cup = 2 AND league > 24
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (fa_trophy INTEGER, league VARCHAR, total VARCHAR, fa_cup VARCHAR) Question: How many FA Trophies had a total of 27, 2 FA cups, and a league larger than 24? [/INST] SELECT SUM(fa_trophy) FROM table_name_82 WHERE total = 27 AND fa_cup = 2 AND league > 24 </s>
|
What is the year built of the home with a built status and a 42 m. height?
|
CREATE TABLE table_name_41 (status VARCHAR, height VARCHAR)
|
SELECT "built" FROM table_name_41 WHERE status = "built" AND height = "42 m."
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (status VARCHAR, height VARCHAR) Question: What is the year built of the home with a built status and a 42 m. height? [/INST] SELECT "built" FROM table_name_41 WHERE status = "built" AND height = "42 m." </s>
|
What is the height of the home with stories greater than 22 and built in 2009?
|
CREATE TABLE table_name_34 (height VARCHAR, stories VARCHAR, built VARCHAR)
|
SELECT height FROM table_name_34 WHERE stories > 22 AND built = "2009"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (height VARCHAR, stories VARCHAR, built VARCHAR) Question: What is the height of the home with stories greater than 22 and built in 2009? [/INST] SELECT height FROM table_name_34 WHERE stories > 22 AND built = "2009" </s>
|
What is the highest number of stories in homes with a height of 42 m.?
|
CREATE TABLE table_name_7 (stories INTEGER, height VARCHAR)
|
SELECT MAX(stories) FROM table_name_7 WHERE height = "42 m."
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (stories INTEGER, height VARCHAR) Question: What is the highest number of stories in homes with a height of 42 m.? [/INST] SELECT MAX(stories) FROM table_name_7 WHERE height = "42 m." </s>
|
When the game is listed as 2, what is the score?
|
CREATE TABLE table_name_81 (score VARCHAR, game VARCHAR)
|
SELECT score FROM table_name_81 WHERE game = 2
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (score VARCHAR, game VARCHAR) Question: When the game is listed as 2, what is the score? [/INST] SELECT score FROM table_name_81 WHERE game = 2 </s>
|
What is the latest November date with an Opponent of @ Pittsburgh Pirates and the game is more than 3?
|
CREATE TABLE table_name_55 (november INTEGER, opponent VARCHAR, game VARCHAR)
|
SELECT MAX(november) FROM table_name_55 WHERE opponent = "@ pittsburgh pirates" AND game > 3
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (november INTEGER, opponent VARCHAR, game VARCHAR) Question: What is the latest November date with an Opponent of @ Pittsburgh Pirates and the game is more than 3? [/INST] SELECT MAX(november) FROM table_name_55 WHERE opponent = "@ pittsburgh pirates" AND game > 3 </s>
|
When the record is listed as 2-0-0, and the November date is less than 27, what is the sum of the game?
|
CREATE TABLE table_name_71 (game INTEGER, november VARCHAR, record VARCHAR)
|
SELECT SUM(game) FROM table_name_71 WHERE november < 27 AND record = "2-0-0"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (game INTEGER, november VARCHAR, record VARCHAR) Question: When the record is listed as 2-0-0, and the November date is less than 27, what is the sum of the game? [/INST] SELECT SUM(game) FROM table_name_71 WHERE november < 27 AND record = "2-0-0" </s>
|
What was the lowest number of Total Foreign-born (millions) people, when the number of people Born in a non EU state (millions) was 6.415?
|
CREATE TABLE table_name_38 (total_foreign_born__millions_ INTEGER, born_in_a_non_eu_state__millions_ VARCHAR)
|
SELECT MIN(total_foreign_born__millions_) FROM table_name_38 WHERE born_in_a_non_eu_state__millions_ = 6.415
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (total_foreign_born__millions_ INTEGER, born_in_a_non_eu_state__millions_ VARCHAR) Question: What was the lowest number of Total Foreign-born (millions) people, when the number of people Born in a non EU state (millions) was 6.415? [/INST] SELECT MIN(total_foreign_born__millions_) FROM table_name_38 WHERE born_in_a_non_eu_state__millions_ = 6.415 </s>
|
What was the average number of people born in other EU states in millions, when the total number of foreign-born people in millions was 0.5, and when the total population in millions was less than 5.534?
|
CREATE TABLE table_name_57 (born_in_other_eu_state__millions_ INTEGER, total_foreign_born__millions_ VARCHAR, total_population__millions_ VARCHAR)
|
SELECT AVG(born_in_other_eu_state__millions_) FROM table_name_57 WHERE total_foreign_born__millions_ = 0.5 AND total_population__millions_ < 5.534
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (born_in_other_eu_state__millions_ INTEGER, total_foreign_born__millions_ VARCHAR, total_population__millions_ VARCHAR) Question: What was the average number of people born in other EU states in millions, when the total number of foreign-born people in millions was 0.5, and when the total population in millions was less than 5.534? [/INST] SELECT AVG(born_in_other_eu_state__millions_) FROM table_name_57 WHERE total_foreign_born__millions_ = 0.5 AND total_population__millions_ < 5.534 </s>
|
What was the average number of people born in other EU states in millions, when the number of people born in a non EU state in millions was 31.368, and when the total population in millions was higher than 501.098?
|
CREATE TABLE table_name_88 (born_in_other_eu_state__millions_ INTEGER, born_in_a_non_eu_state__millions_ VARCHAR, total_population__millions_ VARCHAR)
|
SELECT AVG(born_in_other_eu_state__millions_) FROM table_name_88 WHERE born_in_a_non_eu_state__millions_ = 31.368 AND total_population__millions_ > 501.098
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (born_in_other_eu_state__millions_ INTEGER, born_in_a_non_eu_state__millions_ VARCHAR, total_population__millions_ VARCHAR) Question: What was the average number of people born in other EU states in millions, when the number of people born in a non EU state in millions was 31.368, and when the total population in millions was higher than 501.098? [/INST] SELECT AVG(born_in_other_eu_state__millions_) FROM table_name_88 WHERE born_in_a_non_eu_state__millions_ = 31.368 AND total_population__millions_ > 501.098 </s>
|
How many people were born in a non EU state (in millions), when the Total population (in millions) was 62.008?
|
CREATE TABLE table_name_32 (born_in_a_non_eu_state__millions_ VARCHAR, total_population__millions_ VARCHAR)
|
SELECT born_in_a_non_eu_state__millions_ FROM table_name_32 WHERE total_population__millions_ = 62.008
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (born_in_a_non_eu_state__millions_ VARCHAR, total_population__millions_ VARCHAR) Question: How many people were born in a non EU state (in millions), when the Total population (in millions) was 62.008? [/INST] SELECT born_in_a_non_eu_state__millions_ FROM table_name_32 WHERE total_population__millions_ = 62.008 </s>
|
What away team has tottenham hotspur as the home team?
|
CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR)
|
SELECT away_team FROM table_name_67 WHERE home_team = "tottenham hotspur"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR) Question: What away team has tottenham hotspur as the home team? [/INST] SELECT away_team FROM table_name_67 WHERE home_team = "tottenham hotspur" </s>
|
What is the Tamil Name of the Thaipusam holiday?
|
CREATE TABLE table_name_96 (tamil_name VARCHAR, english_name VARCHAR)
|
SELECT tamil_name FROM table_name_96 WHERE english_name = "thaipusam"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (tamil_name VARCHAR, english_name VARCHAR) Question: What is the Tamil Name of the Thaipusam holiday? [/INST] SELECT tamil_name FROM table_name_96 WHERE english_name = "thaipusam" </s>
|
What is the Tamil Name of சந்திர புத்தாண்டு (தினம் 2)?
|
CREATE TABLE table_name_80 (type VARCHAR, tamil_name VARCHAR)
|
SELECT type FROM table_name_80 WHERE tamil_name = "சந்திர புத்தாண்டு (தினம் 2)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (type VARCHAR, tamil_name VARCHAR) Question: What is the Tamil Name of சந்திர புத்தாண்டு (தினம் 2)? [/INST] SELECT type FROM table_name_80 WHERE tamil_name = "சந்திர புத்தாண்டு (தினம் 2)" </s>
|
What is the Chinese Type Chinese Name of the holiday with a Tamil Name of சந்திர புத்தாண்டு (தினம் 3)?
|
CREATE TABLE table_name_25 (chinese_name VARCHAR, type VARCHAR, tamil_name VARCHAR)
|
SELECT chinese_name FROM table_name_25 WHERE type = "chinese" AND tamil_name = "சந்திர புத்தாண்டு (தினம் 3)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (chinese_name VARCHAR, type VARCHAR, tamil_name VARCHAR) Question: What is the Chinese Type Chinese Name of the holiday with a Tamil Name of சந்திர புத்தாண்டு (தினம் 3)? [/INST] SELECT chinese_name FROM table_name_25 WHERE type = "chinese" AND tamil_name = "சந்திர புத்தாண்டு (தினம் 3)" </s>
|
Who was second for the United States team?
|
CREATE TABLE table_name_35 (second VARCHAR, nation VARCHAR)
|
SELECT second FROM table_name_35 WHERE nation = "united states"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (second VARCHAR, nation VARCHAR) Question: Who was second for the United States team? [/INST] SELECT second FROM table_name_35 WHERE nation = "united states" </s>
|
Yumie Hayashi was third for which club?
|
CREATE TABLE table_name_23 (club VARCHAR, third VARCHAR)
|
SELECT club FROM table_name_23 WHERE third = "yumie hayashi"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (club VARCHAR, third VARCHAR) Question: Yumie Hayashi was third for which club? [/INST] SELECT club FROM table_name_23 WHERE third = "yumie hayashi" </s>
|
Who was Switzerland's alternate?
|
CREATE TABLE table_name_86 (alternate VARCHAR, nation VARCHAR)
|
SELECT alternate FROM table_name_86 WHERE nation = "switzerland"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (alternate VARCHAR, nation VARCHAR) Question: Who was Switzerland's alternate? [/INST] SELECT alternate FROM table_name_86 WHERE nation = "switzerland" </s>
|
Which club was from Great Britain?
|
CREATE TABLE table_name_27 (club VARCHAR, nation VARCHAR)
|
SELECT club FROM table_name_27 WHERE nation = "great britain"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (club VARCHAR, nation VARCHAR) Question: Which club was from Great Britain? [/INST] SELECT club FROM table_name_27 WHERE nation = "great britain" </s>
|
Glenys Bakker was second for which nation?
|
CREATE TABLE table_name_74 (nation VARCHAR, second VARCHAR)
|
SELECT nation FROM table_name_74 WHERE second = "glenys bakker"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (nation VARCHAR, second VARCHAR) Question: Glenys Bakker was second for which nation? [/INST] SELECT nation FROM table_name_74 WHERE second = "glenys bakker" </s>
|
Rosa Pompanin was second for which club?
|
CREATE TABLE table_name_64 (club VARCHAR, second VARCHAR)
|
SELECT club FROM table_name_64 WHERE second = "rosa pompanin"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (club VARCHAR, second VARCHAR) Question: Rosa Pompanin was second for which club? [/INST] SELECT club FROM table_name_64 WHERE second = "rosa pompanin" </s>
|
What date was the Singapore Gross 1999?
|
CREATE TABLE table_name_18 (date VARCHAR, singapore_gross VARCHAR)
|
SELECT date FROM table_name_18 WHERE singapore_gross = "1999"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (date VARCHAR, singapore_gross VARCHAR) Question: What date was the Singapore Gross 1999? [/INST] SELECT date FROM table_name_18 WHERE singapore_gross = "1999" </s>
|
What is the name of the producer that produced a film with a production cost of $1,000,000?
|
CREATE TABLE table_name_71 (producer VARCHAR, production_cost VARCHAR)
|
SELECT producer FROM table_name_71 WHERE production_cost = "$1,000,000"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (producer VARCHAR, production_cost VARCHAR) Question: What is the name of the producer that produced a film with a production cost of $1,000,000? [/INST] SELECT producer FROM table_name_71 WHERE production_cost = "$1,000,000" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.