instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
What is the location for the first division, Sun Pegasus Club? | CREATE TABLE table_name_25 (location VARCHAR, league_division VARCHAR, club VARCHAR) | SELECT location FROM table_name_25 WHERE league_division = "first division" AND club = "sun pegasus" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (location VARCHAR, league_division VARCHAR, club VARCHAR) Question: What is the location for the first division, Sun Pegasus Club? [/INST] SELECT location FROM table_name_25 WHERE league_division =... |
What division is Sai Kung in? | CREATE TABLE table_name_29 (league_division VARCHAR, club VARCHAR) | SELECT league_division FROM table_name_29 WHERE club = "sai kung" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (league_division VARCHAR, club VARCHAR) Question: What division is Sai Kung in? [/INST] SELECT league_division FROM table_name_29 WHERE club = "sai kung" </s> |
What league is Sun Source in? | CREATE TABLE table_name_6 (league_division VARCHAR, club VARCHAR) | SELECT league_division FROM table_name_6 WHERE club = "sun source" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (league_division VARCHAR, club VARCHAR) Question: What league is Sun Source in? [/INST] SELECT league_division FROM table_name_6 WHERE club = "sun source" </s> |
What was the model that had years 2004-? | CREATE TABLE table_name_26 (model VARCHAR, years VARCHAR) | SELECT model FROM table_name_26 WHERE years = "2004-" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (model VARCHAR, years VARCHAR) Question: What was the model that had years 2004-? [/INST] SELECT model FROM table_name_26 WHERE years = "2004-" </s> |
What was the torque@rpm of the sl 65 amg? | CREATE TABLE table_name_75 (torque VARCHAR, model VARCHAR) | SELECT torque AS @rpm FROM table_name_75 WHERE model = "sl 65 amg" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (torque VARCHAR, model VARCHAR) Question: What was the torque@rpm of the sl 65 amg? [/INST] SELECT torque AS @rpm FROM table_name_75 WHERE model = "sl 65 amg" </s> |
What was the model that had years 2004-? | CREATE TABLE table_name_67 (model VARCHAR, years VARCHAR) | SELECT model FROM table_name_67 WHERE years = "2004-" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (model VARCHAR, years VARCHAR) Question: What was the model that had years 2004-? [/INST] SELECT model FROM table_name_67 WHERE years = "2004-" </s> |
What is the IHSAA Class for football for the team joining in 1968? | CREATE TABLE table_name_15 (ihsaa_class VARCHAR, year_joined VARCHAR) | SELECT ihsaa_class AS Football FROM table_name_15 WHERE year_joined = 1968 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (ihsaa_class VARCHAR, year_joined VARCHAR) Question: What is the IHSAA Class for football for the team joining in 1968? [/INST] SELECT ihsaa_class AS Football FROM table_name_15 WHERE year_joined =... |
What is the IHSAA class for Tipton? | CREATE TABLE table_name_3 (ihsaa_class VARCHAR, school VARCHAR) | SELECT ihsaa_class FROM table_name_3 WHERE school = "tipton" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (ihsaa_class VARCHAR, school VARCHAR) Question: What is the IHSAA class for Tipton? [/INST] SELECT ihsaa_class FROM table_name_3 WHERE school = "tipton" </s> |
What is the rank for the person with time 11.14? | CREATE TABLE table_name_54 (rank INTEGER, time___sec__ VARCHAR) | SELECT AVG(rank) FROM table_name_54 WHERE time___sec__ = 11.14 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (rank INTEGER, time___sec__ VARCHAR) Question: What is the rank for the person with time 11.14? [/INST] SELECT AVG(rank) FROM table_name_54 WHERE time___sec__ = 11.14 </s> |
What is the rank when time is 11.15 and lane is bigger than 7 with notes Q, PB? | CREATE TABLE table_name_76 (rank INTEGER, lane VARCHAR, notes VARCHAR, time___sec__ VARCHAR) | SELECT SUM(rank) FROM table_name_76 WHERE notes = "q, pb" AND time___sec__ = 11.15 AND lane > 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (rank INTEGER, lane VARCHAR, notes VARCHAR, time___sec__ VARCHAR) Question: What is the rank when time is 11.15 and lane is bigger than 7 with notes Q, PB? [/INST] SELECT SUM(rank) FROM table_name_... |
What is the lane for notes Q, SB and time less than 11.22? | CREATE TABLE table_name_31 (lane INTEGER, notes VARCHAR, time___sec__ VARCHAR) | SELECT SUM(lane) FROM table_name_31 WHERE notes = "q, sb" AND time___sec__ < 11.22 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (lane INTEGER, notes VARCHAR, time___sec__ VARCHAR) Question: What is the lane for notes Q, SB and time less than 11.22? [/INST] SELECT SUM(lane) FROM table_name_31 WHERE notes = "q, sb" AND time__... |
Which athlete is ranked less than 5 with time over 11.22? | CREATE TABLE table_name_15 (athlete VARCHAR, time___sec__ VARCHAR, rank VARCHAR) | SELECT athlete FROM table_name_15 WHERE time___sec__ > 11.22 AND rank < 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (athlete VARCHAR, time___sec__ VARCHAR, rank VARCHAR) Question: Which athlete is ranked less than 5 with time over 11.22? [/INST] SELECT athlete FROM table_name_15 WHERE time___sec__ > 11.22 AND ra... |
How many lanes does Australia have with a reaction smaller than 0.138? | CREATE TABLE table_name_55 (lane VARCHAR, nationality VARCHAR, reaction VARCHAR) | SELECT COUNT(lane) FROM table_name_55 WHERE nationality = "australia" AND reaction < 0.138 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (lane VARCHAR, nationality VARCHAR, reaction VARCHAR) Question: How many lanes does Australia have with a reaction smaller than 0.138? [/INST] SELECT COUNT(lane) FROM table_name_55 WHERE nationalit... |
Who had a reaction larger than 0.17400000000000002 and a lane larger than 6? | CREATE TABLE table_name_80 (name VARCHAR, reaction VARCHAR, lane VARCHAR) | SELECT name FROM table_name_80 WHERE reaction > 0.17400000000000002 AND lane > 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (name VARCHAR, reaction VARCHAR, lane VARCHAR) Question: Who had a reaction larger than 0.17400000000000002 and a lane larger than 6? [/INST] SELECT name FROM table_name_80 WHERE reaction > 0.17400... |
The ship MS Vistafjord has what in service for NAL? | CREATE TABLE table_name_10 (in_service_for_nal VARCHAR, ship VARCHAR) | SELECT in_service_for_nal FROM table_name_10 WHERE ship = "ms vistafjord" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (in_service_for_nal VARCHAR, ship VARCHAR) Question: The ship MS Vistafjord has what in service for NAL? [/INST] SELECT in_service_for_nal FROM table_name_10 WHERE ship = "ms vistafjord" </s> |
The ship SSBergensfjord built before 1973 has what tonnage? | CREATE TABLE table_name_90 (tonnage VARCHAR, built VARCHAR, ship VARCHAR) | SELECT tonnage FROM table_name_90 WHERE built < 1973 AND ship = "ssbergensfjord" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (tonnage VARCHAR, built VARCHAR, ship VARCHAR) Question: The ship SSBergensfjord built before 1973 has what tonnage? [/INST] SELECT tonnage FROM table_name_90 WHERE built < 1973 AND ship = "ssberge... |
Which nationality has a time of 50.92? | CREATE TABLE table_name_52 (nationality VARCHAR, time VARCHAR) | SELECT nationality FROM table_name_52 WHERE time = 50.92 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (nationality VARCHAR, time VARCHAR) Question: Which nationality has a time of 50.92? [/INST] SELECT nationality FROM table_name_52 WHERE time = 50.92 </s> |
What is the time with fewer than 5 lanes for the United States? | CREATE TABLE table_name_82 (time INTEGER, lane VARCHAR, nationality VARCHAR) | SELECT SUM(time) FROM table_name_82 WHERE lane < 5 AND nationality = "united states" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (time INTEGER, lane VARCHAR, nationality VARCHAR) Question: What is the time with fewer than 5 lanes for the United States? [/INST] SELECT SUM(time) FROM table_name_82 WHERE lane < 5 AND nationalit... |
Which Att-Cmp has a GP-GS of 7-1? | CREATE TABLE table_name_21 (att_cmp VARCHAR, gp_gs VARCHAR) | SELECT att_cmp FROM table_name_21 WHERE gp_gs = "7-1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (att_cmp VARCHAR, gp_gs VARCHAR) Question: Which Att-Cmp has a GP-GS of 7-1? [/INST] SELECT att_cmp FROM table_name_21 WHERE gp_gs = "7-1" </s> |
Which Att-Cmp has a TD-INT of 7-8? | CREATE TABLE table_name_21 (att_cmp VARCHAR, td_int VARCHAR) | SELECT att_cmp FROM table_name_21 WHERE td_int = "7-8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (att_cmp VARCHAR, td_int VARCHAR) Question: Which Att-Cmp has a TD-INT of 7-8? [/INST] SELECT att_cmp FROM table_name_21 WHERE td_int = "7-8" </s> |
Which TD-INT has an Effic larger than 111.4? | CREATE TABLE table_name_87 (td_int VARCHAR, effic INTEGER) | SELECT td_int FROM table_name_87 WHERE effic > 111.4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (td_int VARCHAR, effic INTEGER) Question: Which TD-INT has an Effic larger than 111.4? [/INST] SELECT td_int FROM table_name_87 WHERE effic > 111.4 </s> |
What is the total number of losses with less than 6 wins and less than 0 draws? | CREATE TABLE table_name_94 (losses VARCHAR, wins VARCHAR, draws VARCHAR) | SELECT COUNT(losses) FROM table_name_94 WHERE wins < 6 AND draws < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (losses VARCHAR, wins VARCHAR, draws VARCHAR) Question: What is the total number of losses with less than 6 wins and less than 0 draws? [/INST] SELECT COUNT(losses) FROM table_name_94 WHERE wins < ... |
What is the average number of against with less than 10 losses, more than 0 draws, and more than 7 wins? | CREATE TABLE table_name_74 (against INTEGER, wins VARCHAR, losses VARCHAR, draws VARCHAR) | SELECT AVG(against) FROM table_name_74 WHERE losses < 10 AND draws > 0 AND wins > 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (against INTEGER, wins VARCHAR, losses VARCHAR, draws VARCHAR) Question: What is the average number of against with less than 10 losses, more than 0 draws, and more than 7 wins? [/INST] SELECT AVG(... |
What is the total number of byes with more than 0 losses and 1526 against? | CREATE TABLE table_name_31 (byes VARCHAR, losses VARCHAR, against VARCHAR) | SELECT COUNT(byes) FROM table_name_31 WHERE losses > 0 AND against = 1526 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (byes VARCHAR, losses VARCHAR, against VARCHAR) Question: What is the total number of byes with more than 0 losses and 1526 against? [/INST] SELECT COUNT(byes) FROM table_name_31 WHERE losses > 0 A... |
What is the lowest number of draws with more than 2 byes? | CREATE TABLE table_name_81 (draws INTEGER, byes INTEGER) | SELECT MIN(draws) FROM table_name_81 WHERE byes > 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (draws INTEGER, byes INTEGER) Question: What is the lowest number of draws with more than 2 byes? [/INST] SELECT MIN(draws) FROM table_name_81 WHERE byes > 2 </s> |
What is the lowest against of the wimmera fl warrack eagles, which have less than 16 wins? | CREATE TABLE table_name_33 (against INTEGER, wins VARCHAR, wimmera_fl VARCHAR) | SELECT MIN(against) FROM table_name_33 WHERE wins < 16 AND wimmera_fl = "warrack eagles" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (against INTEGER, wins VARCHAR, wimmera_fl VARCHAR) Question: What is the lowest against of the wimmera fl warrack eagles, which have less than 16 wins? [/INST] SELECT MIN(against) FROM table_name_... |
How many races did the German racer that won less than 10 races ride? | CREATE TABLE table_name_94 (races_ridden VARCHAR, nationality VARCHAR, races_won VARCHAR) | SELECT COUNT(races_ridden) FROM table_name_94 WHERE nationality = "german" AND races_won < 10 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (races_ridden VARCHAR, nationality VARCHAR, races_won VARCHAR) Question: How many races did the German racer that won less than 10 races ride? [/INST] SELECT COUNT(races_ridden) FROM table_name_94 ... |
What is the average win as a percentage of German racer Rudi Altig, who has ridden in over 79 races? | CREATE TABLE table_name_50 (win_average INTEGER, races_ridden VARCHAR, nationality VARCHAR, name VARCHAR) | SELECT AVG(win_average) FROM table_name_50 WHERE nationality = "german" AND name = "rudi altig" AND races_ridden > 79 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (win_average INTEGER, races_ridden VARCHAR, nationality VARCHAR, name VARCHAR) Question: What is the average win as a percentage of German racer Rudi Altig, who has ridden in over 79 races? [/INST]... |
what is the highest top-5 when cuts made is more than 39? | CREATE TABLE table_name_40 (top_5 INTEGER, cuts_made INTEGER) | SELECT MAX(top_5) FROM table_name_40 WHERE cuts_made > 39 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (top_5 INTEGER, cuts_made INTEGER) Question: what is the highest top-5 when cuts made is more than 39? [/INST] SELECT MAX(top_5) FROM table_name_40 WHERE cuts_made > 39 </s> |
what is the highest events when wins is more than 0 and cuts made is more than 14? | CREATE TABLE table_name_64 (events INTEGER, wins VARCHAR, cuts_made VARCHAR) | SELECT MAX(events) FROM table_name_64 WHERE wins > 0 AND cuts_made > 14 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (events INTEGER, wins VARCHAR, cuts_made VARCHAR) Question: what is the highest events when wins is more than 0 and cuts made is more than 14? [/INST] SELECT MAX(events) FROM table_name_64 WHERE wi... |
what is the highest top-5 when wins is more than 1? | CREATE TABLE table_name_97 (top_5 INTEGER, wins INTEGER) | SELECT MAX(top_5) FROM table_name_97 WHERE wins > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (top_5 INTEGER, wins INTEGER) Question: what is the highest top-5 when wins is more than 1? [/INST] SELECT MAX(top_5) FROM table_name_97 WHERE wins > 1 </s> |
How many times is the tournament the masters tournament and the top-10 is less than 2? | CREATE TABLE table_name_6 (top_5 VARCHAR, tournament VARCHAR, top_10 VARCHAR) | SELECT COUNT(top_5) FROM table_name_6 WHERE tournament = "masters tournament" AND top_10 < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (top_5 VARCHAR, tournament VARCHAR, top_10 VARCHAR) Question: How many times is the tournament the masters tournament and the top-10 is less than 2? [/INST] SELECT COUNT(top_5) FROM table_name_6 WHE... |
What ran has noel patterson as the rider? | CREATE TABLE table_name_40 (rank VARCHAR, rider VARCHAR) | SELECT rank FROM table_name_40 WHERE rider = "noel patterson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (rank VARCHAR, rider VARCHAR) Question: What ran has noel patterson as the rider? [/INST] SELECT rank FROM table_name_40 WHERE rider = "noel patterson" </s> |
What time has jules croft as the rider? | CREATE TABLE table_name_15 (time VARCHAR, rider VARCHAR) | SELECT time FROM table_name_15 WHERE rider = "jules croft" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (time VARCHAR, rider VARCHAR) Question: What time has jules croft as the rider? [/INST] SELECT time FROM table_name_15 WHERE rider = "jules croft" </s> |
What team has adam barclay as the rider? | CREATE TABLE table_name_79 (team VARCHAR, rider VARCHAR) | SELECT team FROM table_name_79 WHERE rider = "adam barclay" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (team VARCHAR, rider VARCHAR) Question: What team has adam barclay as the rider? [/INST] SELECT team FROM table_name_79 WHERE rider = "adam barclay" </s> |
What Round has h/a hurst | CREATE TABLE table_name_26 (round VARCHAR, h___a VARCHAR) | SELECT round FROM table_name_26 WHERE h___a = "hurst" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (round VARCHAR, h___a VARCHAR) Question: What Round has h/a hurst [/INST] SELECT round FROM table_name_26 WHERE h___a = "hurst" </s> |
what game ended f-a with a round of round 1 replay | CREATE TABLE table_name_63 (result_f___a VARCHAR, round VARCHAR) | SELECT result_f___a FROM table_name_63 WHERE round = "round 1 replay" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (result_f___a VARCHAR, round VARCHAR) Question: what game ended f-a with a round of round 1 replay [/INST] SELECT result_f___a FROM table_name_63 WHERE round = "round 1 replay" </s> |
what is the h/a round of round 2 | CREATE TABLE table_name_34 (h___a VARCHAR, round VARCHAR) | SELECT h___a FROM table_name_34 WHERE round = "round 2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (h___a VARCHAR, round VARCHAR) Question: what is the h/a round of round 2 [/INST] SELECT h___a FROM table_name_34 WHERE round = "round 2" </s> |
What was the Role/Episode after 2006 with Ellen Burstyn as a recipient and nominee? | CREATE TABLE table_name_21 (role_episode VARCHAR, year VARCHAR, recipients_and_nominees VARCHAR) | SELECT role_episode FROM table_name_21 WHERE year > 2006 AND recipients_and_nominees = "ellen burstyn" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (role_episode VARCHAR, year VARCHAR, recipients_and_nominees VARCHAR) Question: What was the Role/Episode after 2006 with Ellen Burstyn as a recipient and nominee? [/INST] SELECT role_episode FROM ... |
For which Category was Outstanding Main Title Design a Recipient and nominee? | CREATE TABLE table_name_71 (category VARCHAR, recipients_and_nominees VARCHAR) | SELECT category FROM table_name_71 WHERE recipients_and_nominees = "outstanding main title design" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (category VARCHAR, recipients_and_nominees VARCHAR) Question: For which Category was Outstanding Main Title Design a Recipient and nominee? [/INST] SELECT category FROM table_name_71 WHERE recipien... |
Which Category was from before 2009 with a Role/Episode of Libby Goldstein and Junie Lowry-Johnson? | CREATE TABLE table_name_60 (category VARCHAR, year VARCHAR, role_episode VARCHAR) | SELECT category FROM table_name_60 WHERE year < 2009 AND role_episode = "libby goldstein and junie lowry-johnson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (category VARCHAR, year VARCHAR, role_episode VARCHAR) Question: Which Category was from before 2009 with a Role/Episode of Libby Goldstein and Junie Lowry-Johnson? [/INST] SELECT category FROM tab... |
Which Category were Libby Goldstein and Junie Lowry-Johnson recipients and nominees for? | CREATE TABLE table_name_50 (category VARCHAR, recipients_and_nominees VARCHAR) | SELECT category FROM table_name_50 WHERE recipients_and_nominees = "libby goldstein and junie lowry-johnson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (category VARCHAR, recipients_and_nominees VARCHAR) Question: Which Category were Libby Goldstein and Junie Lowry-Johnson recipients and nominees for? [/INST] SELECT category FROM table_name_50 WHE... |
what is the highest runners when the jockey is frankie dettori and the placing is higher than 1? | CREATE TABLE table_name_68 (runners INTEGER, jockey VARCHAR, placing VARCHAR) | SELECT MAX(runners) FROM table_name_68 WHERE jockey = "frankie dettori" AND placing > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (runners INTEGER, jockey VARCHAR, placing VARCHAR) Question: what is the highest runners when the jockey is frankie dettori and the placing is higher than 1? [/INST] SELECT MAX(runners) FROM table_... |
what is the race when the jockey is frankie dettori, the margin is more than 3 and the course is yarmouth? | CREATE TABLE table_name_48 (race VARCHAR, course VARCHAR, jockey VARCHAR, margin VARCHAR) | SELECT race FROM table_name_48 WHERE jockey = "frankie dettori" AND margin > 3 AND course = "yarmouth" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (race VARCHAR, course VARCHAR, jockey VARCHAR, margin VARCHAR) Question: what is the race when the jockey is frankie dettori, the margin is more than 3 and the course is yarmouth? [/INST] SELECT ra... |
Who is the Partner in the match with a Score of 6-4, 2-6, 7-6? | CREATE TABLE table_name_52 (partnering VARCHAR, score VARCHAR) | SELECT partnering FROM table_name_52 WHERE score = "6-4, 2-6, 7-6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (partnering VARCHAR, score VARCHAR) Question: Who is the Partner in the match with a Score of 6-4, 2-6, 7-6? [/INST] SELECT partnering FROM table_name_52 WHERE score = "6-4, 2-6, 7-6" </s> |
what is the competition when the result is won and the date is september 13, 1996? | CREATE TABLE table_name_87 (competition VARCHAR, result VARCHAR, date VARCHAR) | SELECT competition FROM table_name_87 WHERE result = "won" AND date = "september 13, 1996" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (competition VARCHAR, result VARCHAR, date VARCHAR) Question: what is the competition when the result is won and the date is september 13, 1996? [/INST] SELECT competition FROM table_name_87 WHERE ... |
what is the date when the competition is 1996 tiger cup and the result is drew? | CREATE TABLE table_name_60 (date VARCHAR, competition VARCHAR, result VARCHAR) | SELECT date FROM table_name_60 WHERE competition = "1996 tiger cup" AND result = "drew" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (date VARCHAR, competition VARCHAR, result VARCHAR) Question: what is the date when the competition is 1996 tiger cup and the result is drew? [/INST] SELECT date FROM table_name_60 WHERE competitio... |
what is the score when the competition is 1995 southeast asian games? | CREATE TABLE table_name_1 (score VARCHAR, competition VARCHAR) | SELECT score FROM table_name_1 WHERE competition = "1995 southeast asian games" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (score VARCHAR, competition VARCHAR) Question: what is the score when the competition is 1995 southeast asian games? [/INST] SELECT score FROM table_name_1 WHERE competition = "1995 southeast asian ... |
what is the result when the venue is singapore on september 8, 1996? | CREATE TABLE table_name_37 (result VARCHAR, venue VARCHAR, date VARCHAR) | SELECT result FROM table_name_37 WHERE venue = "singapore" AND date = "september 8, 1996" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (result VARCHAR, venue VARCHAR, date VARCHAR) Question: what is the result when the venue is singapore on september 8, 1996? [/INST] SELECT result FROM table_name_37 WHERE venue = "singapore" AND d... |
what is the competition when the result is won and the score is 8-0? | CREATE TABLE table_name_11 (competition VARCHAR, result VARCHAR, score VARCHAR) | SELECT competition FROM table_name_11 WHERE result = "won" AND score = "8-0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (competition VARCHAR, result VARCHAR, score VARCHAR) Question: what is the competition when the result is won and the score is 8-0? [/INST] SELECT competition FROM table_name_11 WHERE result = "won... |
Waht laps have points smaller than 1, and a team of dale coyne racing, and the grid larger than 13? | CREATE TABLE table_name_87 (laps VARCHAR, grid VARCHAR, points VARCHAR, team VARCHAR) | SELECT laps FROM table_name_87 WHERE points < 1 AND team = "dale coyne racing" AND grid > 13 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (laps VARCHAR, grid VARCHAR, points VARCHAR, team VARCHAR) Question: Waht laps have points smaller than 1, and a team of dale coyne racing, and the grid larger than 13? [/INST] SELECT laps FROM tab... |
What is the total number of laps for a team of team player's, and has a grid of 9, and points larger than 10? | CREATE TABLE table_name_12 (laps VARCHAR, points VARCHAR, team VARCHAR, grid VARCHAR) | SELECT COUNT(laps) FROM table_name_12 WHERE team = "team player's" AND grid = 9 AND points > 10 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (laps VARCHAR, points VARCHAR, team VARCHAR, grid VARCHAR) Question: What is the total number of laps for a team of team player's, and has a grid of 9, and points larger than 10? [/INST] SELECT COU... |
What is the lowest points for a time/retired of +30.7 secs, and laps smaller than 165? | CREATE TABLE table_name_70 (points INTEGER, time_retired VARCHAR, laps VARCHAR) | SELECT MIN(points) FROM table_name_70 WHERE time_retired = "+30.7 secs" AND laps < 165 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (points INTEGER, time_retired VARCHAR, laps VARCHAR) Question: What is the lowest points for a time/retired of +30.7 secs, and laps smaller than 165? [/INST] SELECT MIN(points) FROM table_name_70 W... |
Who was the team 2 in the game with a team 1 of Liege Basket? | CREATE TABLE table_name_88 (team__number2 VARCHAR, team__number1 VARCHAR) | SELECT team__number2 FROM table_name_88 WHERE team__number1 = "liege basket" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (team__number2 VARCHAR, team__number1 VARCHAR) Question: Who was the team 2 in the game with a team 1 of Liege Basket? [/INST] SELECT team__number2 FROM table_name_88 WHERE team__number1 = "liege b... |
What was the 2nd leg score in the matchup with a team 2 of KK Borac? | CREATE TABLE table_name_77 (team__number2 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_77 WHERE team__number2 = "kk borac" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (team__number2 VARCHAR) Question: What was the 2nd leg score in the matchup with a team 2 of KK Borac? [/INST] SELECT 2 AS nd_leg FROM table_name_77 WHERE team__number2 = "kk borac" </s> |
What are the serial numbers for the locomotives of Class 4-8-4 — oooooooo — northern? | CREATE TABLE table_name_28 (serial_numbers VARCHAR, class VARCHAR) | SELECT serial_numbers FROM table_name_28 WHERE class = "4-8-4 — oooooooo — northern" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (serial_numbers VARCHAR, class VARCHAR) Question: What are the serial numbers for the locomotives of Class 4-8-4 — oooooooo — northern? [/INST] SELECT serial_numbers FROM table_name_28 WHERE class ... |
What is the fleet number for the model with Serial number 68056? | CREATE TABLE table_name_27 (fleet_number_s_ VARCHAR, serial_numbers VARCHAR) | SELECT fleet_number_s_ FROM table_name_27 WHERE serial_numbers = "68056" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (fleet_number_s_ VARCHAR, serial_numbers VARCHAR) Question: What is the fleet number for the model with Serial number 68056? [/INST] SELECT fleet_number_s_ FROM table_name_27 WHERE serial_numbers =... |
What is the serial number of the model made in 1930? | CREATE TABLE table_name_82 (serial_numbers VARCHAR, year_made VARCHAR) | SELECT serial_numbers FROM table_name_82 WHERE year_made = "1930" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (serial_numbers VARCHAR, year_made VARCHAR) Question: What is the serial number of the model made in 1930? [/INST] SELECT serial_numbers FROM table_name_82 WHERE year_made = "1930" </s> |
What is the wheel arrangement for the model that was retired in 1955? | CREATE TABLE table_name_75 (wheel_arrangement VARCHAR, year_s__retired VARCHAR) | SELECT wheel_arrangement FROM table_name_75 WHERE year_s__retired = "1955" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (wheel_arrangement VARCHAR, year_s__retired VARCHAR) Question: What is the wheel arrangement for the model that was retired in 1955? [/INST] SELECT wheel_arrangement FROM table_name_75 WHERE year_s... |
What is the lowest number of matches that has a Clubs of 46 → 32? | CREATE TABLE table_name_99 (matches INTEGER, clubs VARCHAR) | SELECT MIN(matches) FROM table_name_99 WHERE clubs = "46 → 32" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (matches INTEGER, clubs VARCHAR) Question: What is the lowest number of matches that has a Clubs of 46 → 32? [/INST] SELECT MIN(matches) FROM table_name_99 WHERE clubs = "46 → 32" </s> |
What is the highest number of matches that has a round of Third Round? | CREATE TABLE table_name_22 (matches INTEGER, round VARCHAR) | SELECT MAX(matches) FROM table_name_22 WHERE round = "third round" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (matches INTEGER, round VARCHAR) Question: What is the highest number of matches that has a round of Third Round? [/INST] SELECT MAX(matches) FROM table_name_22 WHERE round = "third round" </s> |
What is the prize money for the final round? | CREATE TABLE table_name_58 (prize_money VARCHAR, round VARCHAR) | SELECT prize_money FROM table_name_58 WHERE round = "final" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (prize_money VARCHAR, round VARCHAR) Question: What is the prize money for the final round? [/INST] SELECT prize_money FROM table_name_58 WHERE round = "final" </s> |
What is the date for the row with a new entries this round of 44? | CREATE TABLE table_name_71 (date VARCHAR, new_entries_this_round VARCHAR) | SELECT date FROM table_name_71 WHERE new_entries_this_round = "44" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (date VARCHAR, new_entries_this_round VARCHAR) Question: What is the date for the row with a new entries this round of 44? [/INST] SELECT date FROM table_name_71 WHERE new_entries_this_round = "44"... |
Which Against has Wins of 11, and Losses smaller than 7? | CREATE TABLE table_name_97 (against INTEGER, wins VARCHAR, losses VARCHAR) | SELECT AVG(against) FROM table_name_97 WHERE wins = 11 AND losses < 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (against INTEGER, wins VARCHAR, losses VARCHAR) Question: Which Against has Wins of 11, and Losses smaller than 7? [/INST] SELECT AVG(against) FROM table_name_97 WHERE wins = 11 AND losses < 7 </s> |
Which Draws have Losses larger than 8, and a Hampden FL of terang-mortlake? | CREATE TABLE table_name_18 (draws VARCHAR, losses VARCHAR, hampden_fl VARCHAR) | SELECT draws FROM table_name_18 WHERE losses > 8 AND hampden_fl = "terang-mortlake" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (draws VARCHAR, losses VARCHAR, hampden_fl VARCHAR) Question: Which Draws have Losses larger than 8, and a Hampden FL of terang-mortlake? [/INST] SELECT draws FROM table_name_18 WHERE losses > 8 AN... |
Which Byes have Losses smaller than 4? | CREATE TABLE table_name_38 (byes INTEGER, losses INTEGER) | SELECT AVG(byes) FROM table_name_38 WHERE losses < 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (byes INTEGER, losses INTEGER) Question: Which Byes have Losses smaller than 4? [/INST] SELECT AVG(byes) FROM table_name_38 WHERE losses < 4 </s> |
What's the total draws when the losses are less than 10, less than 2 byes, and 13 wins? | CREATE TABLE table_name_39 (draws VARCHAR, byes VARCHAR, losses VARCHAR, wins VARCHAR) | SELECT COUNT(draws) FROM table_name_39 WHERE losses < 10 AND wins = 13 AND byes < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (draws VARCHAR, byes VARCHAR, losses VARCHAR, wins VARCHAR) Question: What's the total draws when the losses are less than 10, less than 2 byes, and 13 wins? [/INST] SELECT COUNT(draws) FROM table_... |
What's the total draws for Ararat when the byes are less than 2? | CREATE TABLE table_name_97 (draws INTEGER, wimmera_fl VARCHAR, byes VARCHAR) | SELECT SUM(draws) FROM table_name_97 WHERE wimmera_fl = "ararat" AND byes < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (draws INTEGER, wimmera_fl VARCHAR, byes VARCHAR) Question: What's the total draws for Ararat when the byes are less than 2? [/INST] SELECT SUM(draws) FROM table_name_97 WHERE wimmera_fl = "ararat"... |
What's the total losses when there are 8 wins and less than 2 byes? | CREATE TABLE table_name_91 (losses INTEGER, wins VARCHAR, byes VARCHAR) | SELECT SUM(losses) FROM table_name_91 WHERE wins = 8 AND byes < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (losses INTEGER, wins VARCHAR, byes VARCHAR) Question: What's the total losses when there are 8 wins and less than 2 byes? [/INST] SELECT SUM(losses) FROM table_name_91 WHERE wins = 8 AND byes < 2 ... |
What's the least losses for Horsham Saints with more than 13 wins and less than 1211 against? | CREATE TABLE table_name_24 (losses INTEGER, wins VARCHAR, against VARCHAR, wimmera_fl VARCHAR) | SELECT MIN(losses) FROM table_name_24 WHERE against < 1211 AND wimmera_fl = "horsham saints" AND wins > 13 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (losses INTEGER, wins VARCHAR, against VARCHAR, wimmera_fl VARCHAR) Question: What's the least losses for Horsham Saints with more than 13 wins and less than 1211 against? [/INST] SELECT MIN(losses... |
What are the draws when the losses are less than 1? | CREATE TABLE table_name_30 (draws INTEGER, losses INTEGER) | SELECT SUM(draws) FROM table_name_30 WHERE losses < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (draws INTEGER, losses INTEGER) Question: What are the draws when the losses are less than 1? [/INST] SELECT SUM(draws) FROM table_name_30 WHERE losses < 1 </s> |
What are the amount of wins when the draws are less than 0 and the against is 1348? | CREATE TABLE table_name_82 (wins INTEGER, against VARCHAR, draws VARCHAR) | SELECT MIN(wins) FROM table_name_82 WHERE against = 1348 AND draws < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (wins INTEGER, against VARCHAR, draws VARCHAR) Question: What are the amount of wins when the draws are less than 0 and the against is 1348? [/INST] SELECT MIN(wins) FROM table_name_82 WHERE agains... |
What was the total city area for vehari city with a serial number bigger than 36? | CREATE TABLE table_name_1 (city_area_km_2__ VARCHAR, headquartered_city VARCHAR, serial_no VARCHAR) | SELECT COUNT(city_area_km_2__) FROM table_name_1 WHERE headquartered_city = "vehari city" AND serial_no > 36 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (city_area_km_2__ VARCHAR, headquartered_city VARCHAR, serial_no VARCHAR) Question: What was the total city area for vehari city with a serial number bigger than 36? [/INST] SELECT COUNT(city_area_k... |
What was the lowest city population for the district of rajanpur district with a area of 6 km squared and a serial number less than 29? | CREATE TABLE table_name_15 (city_population__2009_ INTEGER, serial_no VARCHAR, city_area_km_2__ VARCHAR, district VARCHAR) | SELECT MIN(city_population__2009_) FROM table_name_15 WHERE city_area_km_2__ = 6 AND district = "rajanpur district" AND serial_no < 29 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (city_population__2009_ INTEGER, serial_no VARCHAR, city_area_km_2__ VARCHAR, district VARCHAR) Question: What was the lowest city population for the district of rajanpur district with a area of 6 ... |
What is the sum of the serial numbers for narowal city? | CREATE TABLE table_name_22 (serial_no INTEGER, headquartered_city VARCHAR) | SELECT SUM(serial_no) FROM table_name_22 WHERE headquartered_city = "narowal city" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (serial_no INTEGER, headquartered_city VARCHAR) Question: What is the sum of the serial numbers for narowal city? [/INST] SELECT SUM(serial_no) FROM table_name_22 WHERE headquartered_city = "narowa... |
What is the sum of the area for the bahawalnagar district with a population more than 134,936? | CREATE TABLE table_name_32 (city_area_km_2__ INTEGER, district VARCHAR, city_population__2009_ VARCHAR) | SELECT SUM(city_area_km_2__) FROM table_name_32 WHERE district = "bahawalnagar district" AND city_population__2009_ > 134 OFFSET 936 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (city_area_km_2__ INTEGER, district VARCHAR, city_population__2009_ VARCHAR) Question: What is the sum of the area for the bahawalnagar district with a population more than 134,936? [/INST] SELECT ... |
What district was the city with an area smaller than 12 square kilometers and a serial number of 35? | CREATE TABLE table_name_9 (district VARCHAR, city_area_km_2__ VARCHAR, serial_no VARCHAR) | SELECT district FROM table_name_9 WHERE city_area_km_2__ < 12 AND serial_no = 35 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (district VARCHAR, city_area_km_2__ VARCHAR, serial_no VARCHAR) Question: What district was the city with an area smaller than 12 square kilometers and a serial number of 35? [/INST] SELECT district... |
After pick number 158, what is the next round a USC player was picked? | CREATE TABLE table_name_20 (round INTEGER, school VARCHAR, pick VARCHAR) | SELECT MIN(round) FROM table_name_20 WHERE school = "usc" AND pick > 158 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (round INTEGER, school VARCHAR, pick VARCHAR) Question: After pick number 158, what is the next round a USC player was picked? [/INST] SELECT MIN(round) FROM table_name_20 WHERE school = "usc" AND ... |
Jim Obradovich, picked after round 2, but before pick 183, plays what position? | CREATE TABLE table_name_88 (position VARCHAR, player VARCHAR, round VARCHAR, pick VARCHAR) | SELECT position FROM table_name_88 WHERE round > 2 AND pick < 183 AND player = "jim obradovich" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (position VARCHAR, player VARCHAR, round VARCHAR, pick VARCHAR) Question: Jim Obradovich, picked after round 2, but before pick 183, plays what position? [/INST] SELECT position FROM table_name_88 ... |
What time has q as the notes, and Australia as the country? | CREATE TABLE table_name_95 (time VARCHAR, notes VARCHAR, country VARCHAR) | SELECT time FROM table_name_95 WHERE notes = "q" AND country = "australia" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (time VARCHAR, notes VARCHAR, country VARCHAR) Question: What time has q as the notes, and Australia as the country? [/INST] SELECT time FROM table_name_95 WHERE notes = "q" AND country = "australi... |
What notes have a rank greater than 2, with mexico as the country? | CREATE TABLE table_name_64 (notes VARCHAR, rank VARCHAR, country VARCHAR) | SELECT notes FROM table_name_64 WHERE rank > 2 AND country = "mexico" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (notes VARCHAR, rank VARCHAR, country VARCHAR) Question: What notes have a rank greater than 2, with mexico as the country? [/INST] SELECT notes FROM table_name_64 WHERE rank > 2 AND country = "mex... |
What is the sum of bronzes for teams with more than 0 silver and a total under 1? | CREATE TABLE table_name_22 (bronze INTEGER, silver VARCHAR, total VARCHAR) | SELECT SUM(bronze) FROM table_name_22 WHERE silver > 0 AND total < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (bronze INTEGER, silver VARCHAR, total VARCHAR) Question: What is the sum of bronzes for teams with more than 0 silver and a total under 1? [/INST] SELECT SUM(bronze) FROM table_name_22 WHERE silve... |
What is the average number of golds for teams with 1 bronze, less than 3 silver, and a total over 2? | CREATE TABLE table_name_55 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR) | SELECT AVG(gold) FROM table_name_55 WHERE bronze = 1 AND total > 2 AND silver < 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR) Question: What is the average number of golds for teams with 1 bronze, less than 3 silver, and a total over 2? [/INST] SELECT AVG(gold)... |
What type of yacht has a LOA of 15.15 metres? | CREATE TABLE table_name_94 (yacht VARCHAR, loa__metres_ VARCHAR) | SELECT yacht AS Type FROM table_name_94 WHERE loa__metres_ = 15.15 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (yacht VARCHAR, loa__metres_ VARCHAR) Question: What type of yacht has a LOA of 15.15 metres? [/INST] SELECT yacht AS Type FROM table_name_94 WHERE loa__metres_ = 15.15 </s> |
What Soap Opera with the character Teemu Luotola? | CREATE TABLE table_name_81 (soap_opera VARCHAR, character VARCHAR) | SELECT soap_opera FROM table_name_81 WHERE character = "teemu luotola" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (soap_opera VARCHAR, character VARCHAR) Question: What Soap Opera with the character Teemu Luotola? [/INST] SELECT soap_opera FROM table_name_81 WHERE character = "teemu luotola" </s> |
What beer has a record of 4.08? | CREATE TABLE table_name_67 (beer VARCHAR, recorded VARCHAR) | SELECT beer FROM table_name_67 WHERE recorded = 4.08 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (beer VARCHAR, recorded VARCHAR) Question: What beer has a record of 4.08? [/INST] SELECT beer FROM table_name_67 WHERE recorded = 4.08 </s> |
Which round has an Opposing Team of manchester united? | CREATE TABLE table_name_64 (round VARCHAR, opposing_team VARCHAR) | SELECT round FROM table_name_64 WHERE opposing_team = "manchester united" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (round VARCHAR, opposing_team VARCHAR) Question: Which round has an Opposing Team of manchester united? [/INST] SELECT round FROM table_name_64 WHERE opposing_team = "manchester united" </s> |
Which Date has an Against larger than 0? | CREATE TABLE table_name_28 (date VARCHAR, against INTEGER) | SELECT date FROM table_name_28 WHERE against > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (date VARCHAR, against INTEGER) Question: Which Date has an Against larger than 0? [/INST] SELECT date FROM table_name_28 WHERE against > 0 </s> |
Which Against has a Round of fourth round? | CREATE TABLE table_name_69 (against INTEGER, round VARCHAR) | SELECT MIN(against) FROM table_name_69 WHERE round = "fourth round" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (against INTEGER, round VARCHAR) Question: Which Against has a Round of fourth round? [/INST] SELECT MIN(against) FROM table_name_69 WHERE round = "fourth round" </s> |
What was the venue on 17/02/2008? | CREATE TABLE table_name_1 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_1 WHERE date = "17/02/2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (venue VARCHAR, date VARCHAR) Question: What was the venue on 17/02/2008? [/INST] SELECT venue FROM table_name_1 WHERE date = "17/02/2008" </s> |
What is the average quantity for coaches manufactured in 1921/23, and had 40 seats? | CREATE TABLE table_name_87 (quantity INTEGER, year_s__of_manufacture VARCHAR, seats VARCHAR) | SELECT AVG(quantity) FROM table_name_87 WHERE year_s__of_manufacture = "1921/23" AND seats = "40" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (quantity INTEGER, year_s__of_manufacture VARCHAR, seats VARCHAR) Question: What is the average quantity for coaches manufactured in 1921/23, and had 40 seats? [/INST] SELECT AVG(quantity) FROM tab... |
Which class to 1928 value had years of manufacture of 1921/23 and class from 1928 of BCi-21? | CREATE TABLE table_name_21 (class_to_1928 VARCHAR, year_s__of_manufacture VARCHAR, class_from_1928 VARCHAR) | SELECT class_to_1928 FROM table_name_21 WHERE year_s__of_manufacture = "1921/23" AND class_from_1928 = "bci-21" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (class_to_1928 VARCHAR, year_s__of_manufacture VARCHAR, class_from_1928 VARCHAR) Question: Which class to 1928 value had years of manufacture of 1921/23 and class from 1928 of BCi-21? [/INST] SELEC... |
What is the smallest quantity having a Class to 1928 of BDi-21? | CREATE TABLE table_name_79 (quantity INTEGER, class_to_1928 VARCHAR) | SELECT MIN(quantity) FROM table_name_79 WHERE class_to_1928 = "bdi-21" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (quantity INTEGER, class_to_1928 VARCHAR) Question: What is the smallest quantity having a Class to 1928 of BDi-21? [/INST] SELECT MIN(quantity) FROM table_name_79 WHERE class_to_1928 = "bdi-21" </... |
Which class from 1928 had a class to 1928 of BDi-21? | CREATE TABLE table_name_88 (class_from_1928 VARCHAR, class_to_1928 VARCHAR) | SELECT class_from_1928 FROM table_name_88 WHERE class_to_1928 = "bdi-21" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (class_from_1928 VARCHAR, class_to_1928 VARCHAR) Question: Which class from 1928 had a class to 1928 of BDi-21? [/INST] SELECT class_from_1928 FROM table_name_88 WHERE class_to_1928 = "bdi-21" </s> |
What were the remarks for the coach having a class from 1928 of Cid-21B? | CREATE TABLE table_name_99 (remarks VARCHAR, class_from_1928 VARCHAR) | SELECT remarks FROM table_name_99 WHERE class_from_1928 = "cid-21b" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (remarks VARCHAR, class_from_1928 VARCHAR) Question: What were the remarks for the coach having a class from 1928 of Cid-21B? [/INST] SELECT remarks FROM table_name_99 WHERE class_from_1928 = "cid-... |
Which B Score has a Total larger than 15.325, and an A Score smaller than 6.4? | CREATE TABLE table_name_2 (b_score INTEGER, total VARCHAR, a_score VARCHAR) | SELECT SUM(b_score) FROM table_name_2 WHERE total > 15.325 AND a_score < 6.4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (b_score INTEGER, total VARCHAR, a_score VARCHAR) Question: Which B Score has a Total larger than 15.325, and an A Score smaller than 6.4? [/INST] SELECT SUM(b_score) FROM table_name_2 WHERE total >... |
Which Total has an A Score of 6.5, and a Position larger than 5? | CREATE TABLE table_name_79 (total INTEGER, a_score VARCHAR, position VARCHAR) | SELECT MIN(total) FROM table_name_79 WHERE a_score = 6.5 AND position > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (total INTEGER, a_score VARCHAR, position VARCHAR) Question: Which Total has an A Score of 6.5, and a Position larger than 5? [/INST] SELECT MIN(total) FROM table_name_79 WHERE a_score = 6.5 AND po... |
What is the date of week 11? | CREATE TABLE table_name_20 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_20 WHERE week = 11 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (date VARCHAR, week VARCHAR) Question: What is the date of week 11? [/INST] SELECT date FROM table_name_20 WHERE week = 11 </s> |
What is the latest week when the chicago bears are the opponent? | CREATE TABLE table_name_27 (week INTEGER, opponent VARCHAR) | SELECT MAX(week) FROM table_name_27 WHERE opponent = "chicago bears" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (week INTEGER, opponent VARCHAR) Question: What is the latest week when the chicago bears are the opponent? [/INST] SELECT MAX(week) FROM table_name_27 WHERE opponent = "chicago bears" </s> |
What song placed higher than#4? | CREATE TABLE table_name_41 (song VARCHAR, place INTEGER) | SELECT song FROM table_name_41 WHERE place > 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (song VARCHAR, place INTEGER) Question: What song placed higher than#4? [/INST] SELECT song FROM table_name_41 WHERE place > 4 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.