instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
Who is the artist that drew higher than 4? | CREATE TABLE table_name_33 (artist VARCHAR, draw INTEGER) | SELECT artist FROM table_name_33 WHERE draw > 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (artist VARCHAR, draw INTEGER) Question: Who is the artist that drew higher than 4? [/INST] SELECT artist FROM table_name_33 WHERE draw > 4 </s> |
What's the total starts with more points than 1 and the driver is Nasser Al-Attiyah? | CREATE TABLE table_name_47 (starts VARCHAR, driver VARCHAR, points VARCHAR) | SELECT COUNT(starts) FROM table_name_47 WHERE driver = "nasser al-attiyah" AND points > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (starts VARCHAR, driver VARCHAR, points VARCHAR) Question: What's the total starts with more points than 1 and the driver is Nasser Al-Attiyah? [/INST] SELECT COUNT(starts) FROM table_name_47 WHERE... |
What's the smallest number of podiums having more than 6 starts and 5 finishes? | CREATE TABLE table_name_82 (podiums INTEGER, finishes VARCHAR, starts VARCHAR) | SELECT MIN(podiums) FROM table_name_82 WHERE finishes = 5 AND starts > 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (podiums INTEGER, finishes VARCHAR, starts VARCHAR) Question: What's the smallest number of podiums having more than 6 starts and 5 finishes? [/INST] SELECT MIN(podiums) FROM table_name_82 WHERE fi... |
What's the number of stage wins for Federico Villagra having more than 1 finish, less than 8 starts and less than 1 podium? | CREATE TABLE table_name_41 (stage_wins VARCHAR, starts VARCHAR, driver VARCHAR, finishes VARCHAR, podiums VARCHAR) | SELECT COUNT(stage_wins) FROM table_name_41 WHERE finishes > 1 AND podiums < 1 AND driver = "federico villagra" AND starts < 8 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (stage_wins VARCHAR, starts VARCHAR, driver VARCHAR, finishes VARCHAR, podiums VARCHAR) Question: What's the number of stage wins for Federico Villagra having more than 1 finish, less than 8 starts... |
What's the finishes for Lambros Athanassoulas having 0 podiums and 0 stage wins? | CREATE TABLE table_name_57 (finishes INTEGER, driver VARCHAR, podiums VARCHAR, stage_wins VARCHAR) | SELECT SUM(finishes) FROM table_name_57 WHERE podiums = 0 AND stage_wins = 0 AND driver = "lambros athanassoulas" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (finishes INTEGER, driver VARCHAR, podiums VARCHAR, stage_wins VARCHAR) Question: What's the finishes for Lambros Athanassoulas having 0 podiums and 0 stage wins? [/INST] SELECT SUM(finishes) FROM ... |
What is the average number of electorates (2003) reserved for sc with a constituency number of 50? | CREATE TABLE table_name_80 (number_of_electorates__2003_ INTEGER, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) | SELECT AVG(number_of_electorates__2003_) FROM table_name_80 WHERE reserved_for___sc___st__none_ = "sc" AND constituency_number = "50" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (number_of_electorates__2003_ INTEGER, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) Question: What is the average number of electorates (2003) reserved for sc with a constitu... |
Which Finals have a Pre-Season larger than 0? | CREATE TABLE table_name_52 (finals INTEGER, pre_season INTEGER) | SELECT MIN(finals) FROM table_name_52 WHERE pre_season > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (finals INTEGER, pre_season INTEGER) Question: Which Finals have a Pre-Season larger than 0? [/INST] SELECT MIN(finals) FROM table_name_52 WHERE pre_season > 0 </s> |
How much A-League has a Pre-Season larger than 0? | CREATE TABLE table_name_85 (a_league VARCHAR, pre_season INTEGER) | SELECT COUNT(a_league) FROM table_name_85 WHERE pre_season > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (a_league VARCHAR, pre_season INTEGER) Question: How much A-League has a Pre-Season larger than 0? [/INST] SELECT COUNT(a_league) FROM table_name_85 WHERE pre_season > 0 </s> |
What is the last issue entry for Aron's Absurd Armada? | CREATE TABLE table_name_49 (last_issue VARCHAR, title VARCHAR) | SELECT last_issue FROM table_name_49 WHERE title = "aron's absurd armada" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (last_issue VARCHAR, title VARCHAR) Question: What is the last issue entry for Aron's Absurd Armada? [/INST] SELECT last_issue FROM table_name_49 WHERE title = "aron's absurd armada" </s> |
What is the title that was first published in August 2010? | CREATE TABLE table_name_39 (title VARCHAR, first_issue VARCHAR) | SELECT title FROM table_name_39 WHERE first_issue = "august 2010" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (title VARCHAR, first_issue VARCHAR) Question: What is the title that was first published in August 2010? [/INST] SELECT title FROM table_name_39 WHERE first_issue = "august 2010" </s> |
What is the title that was first published in February 2009 and is still ongoing? | CREATE TABLE table_name_44 (title VARCHAR, last_issue VARCHAR, first_issue VARCHAR) | SELECT title FROM table_name_44 WHERE last_issue = "ongoing" AND first_issue = "february 2009" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (title VARCHAR, last_issue VARCHAR, first_issue VARCHAR) Question: What is the title that was first published in February 2009 and is still ongoing? [/INST] SELECT title FROM table_name_44 WHERE la... |
What is the last issue entry of Time and Again? | CREATE TABLE table_name_55 (last_issue VARCHAR, title VARCHAR) | SELECT last_issue FROM table_name_55 WHERE title = "time and again" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (last_issue VARCHAR, title VARCHAR) Question: What is the last issue entry of Time and Again? [/INST] SELECT last_issue FROM table_name_55 WHERE title = "time and again" </s> |
What the rank of the Virgin Islands athlete with react under 0.168? | CREATE TABLE table_name_44 (rank VARCHAR, react VARCHAR, nationality VARCHAR) | SELECT rank FROM table_name_44 WHERE react < 0.168 AND nationality = "virgin islands" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (rank VARCHAR, react VARCHAR, nationality VARCHAR) Question: What the rank of the Virgin Islands athlete with react under 0.168? [/INST] SELECT rank FROM table_name_44 WHERE react < 0.168 AND natio... |
What is the lowest rank for Chris Brown with react greater than 0.244? | CREATE TABLE table_name_44 (rank INTEGER, athlete VARCHAR, react VARCHAR) | SELECT MIN(rank) FROM table_name_44 WHERE athlete = "chris brown" AND react > 0.244 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (rank INTEGER, athlete VARCHAR, react VARCHAR) Question: What is the lowest rank for Chris Brown with react greater than 0.244? [/INST] SELECT MIN(rank) FROM table_name_44 WHERE athlete = "chris br... |
What is the highest rank of an athlete from Belgium with react greater than 0.162? | CREATE TABLE table_name_38 (rank INTEGER, nationality VARCHAR, react VARCHAR) | SELECT MAX(rank) FROM table_name_38 WHERE nationality = "belgium" AND react > 0.162 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (rank INTEGER, nationality VARCHAR, react VARCHAR) Question: What is the highest rank of an athlete from Belgium with react greater than 0.162? [/INST] SELECT MAX(rank) FROM table_name_38 WHERE nat... |
What's the 2008 that has 3.4 in 2009 and more than 2.9 in 2005? | CREATE TABLE table_name_35 (Id VARCHAR) | SELECT MAX(2008) FROM table_name_35 WHERE 2009 = 3.4 AND 2005 > 2.9 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (Id VARCHAR) Question: What's the 2008 that has 3.4 in 2009 and more than 2.9 in 2005? [/INST] SELECT MAX(2008) FROM table_name_35 WHERE 2009 = 3.4 AND 2005 > 2.9 </s> |
What's the 2006 if there's less than 6.7 in 2007 and less than 3.4 in 2009? | CREATE TABLE table_name_46 (Id VARCHAR) | SELECT SUM(2006) FROM table_name_46 WHERE 2007 < 6.7 AND 2009 < 3.4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (Id VARCHAR) Question: What's the 2006 if there's less than 6.7 in 2007 and less than 3.4 in 2009? [/INST] SELECT SUM(2006) FROM table_name_46 WHERE 2007 < 6.7 AND 2009 < 3.4 </s> |
What's the total in 2005 if there's more than 10.2 in 2006, less than 29.5 in 2007, more than 4.9 in 2009 and less than 43.8 in 2010? | CREATE TABLE table_name_1 (Id VARCHAR) | SELECT COUNT(2005) FROM table_name_1 WHERE 2010 < 43.8 AND 2007 < 29.5 AND 2009 > 4.9 AND 2006 > 10.2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (Id VARCHAR) Question: What's the total in 2005 if there's more than 10.2 in 2006, less than 29.5 in 2007, more than 4.9 in 2009 and less than 43.8 in 2010? [/INST] SELECT COUNT(2005) FROM table_nam... |
What is the 2009 when there's 11.8 in 2005 and less than 12.6 in 2006? | CREATE TABLE table_name_45 (Id VARCHAR) | SELECT MIN(2009) FROM table_name_45 WHERE 2005 = 11.8 AND 2006 < 12.6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (Id VARCHAR) Question: What is the 2009 when there's 11.8 in 2005 and less than 12.6 in 2006? [/INST] SELECT MIN(2009) FROM table_name_45 WHERE 2005 = 11.8 AND 2006 < 12.6 </s> |
What's the 2005 of TV3 when there is less than 42 in 2007 and less than 29.5 in 2010? | CREATE TABLE table_name_36 (tv_station__operator_ VARCHAR) | SELECT MAX(2005) FROM table_name_36 WHERE 2007 < 42 AND tv_station__operator_ = "tv3" AND 2010 < 29.5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (tv_station__operator_ VARCHAR) Question: What's the 2005 of TV3 when there is less than 42 in 2007 and less than 29.5 in 2010? [/INST] SELECT MAX(2005) FROM table_name_36 WHERE 2007 < 42 AND tv_st... |
What date had Alexander Krasnorutskiy as a partner with a score of 6β3, 4β6, 6β2? | CREATE TABLE table_name_2 (date VARCHAR, partner VARCHAR, score VARCHAR) | SELECT date FROM table_name_2 WHERE partner = "alexander krasnorutskiy" AND score = "6β3, 4β6, 6β2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (date VARCHAR, partner VARCHAR, score VARCHAR) Question: What date had Alexander Krasnorutskiy as a partner with a score of 6β3, 4β6, 6β2? [/INST] SELECT date FROM table_name_2 WHERE partner = "alex... |
Which IHSAA Class has a Mascot of eagles, and a City of evansville? | CREATE TABLE table_name_93 (ihsaa_class VARCHAR, mascot VARCHAR, city VARCHAR) | SELECT ihsaa_class FROM table_name_93 WHERE mascot = "eagles" AND city = "evansville" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (ihsaa_class VARCHAR, mascot VARCHAR, city VARCHAR) Question: Which IHSAA Class has a Mascot of eagles, and a City of evansville? [/INST] SELECT ihsaa_class FROM table_name_93 WHERE mascot = "eagle... |
Which City has a School of indianapolis brebeuf? | CREATE TABLE table_name_54 (city VARCHAR, school VARCHAR) | SELECT city FROM table_name_54 WHERE school = "indianapolis brebeuf" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (city VARCHAR, school VARCHAR) Question: Which City has a School of indianapolis brebeuf? [/INST] SELECT city FROM table_name_54 WHERE school = "indianapolis brebeuf" </s> |
How much Enrollment has a School of indianapolis tindley? | CREATE TABLE table_name_32 (enrollment VARCHAR, school VARCHAR) | SELECT COUNT(enrollment) FROM table_name_32 WHERE school = "indianapolis tindley" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (enrollment VARCHAR, school VARCHAR) Question: How much Enrollment has a School of indianapolis tindley? [/INST] SELECT COUNT(enrollment) FROM table_name_32 WHERE school = "indianapolis tindley" </... |
Which County has an IHSAA Class of aaaa, and a Mascot of cardinals? | CREATE TABLE table_name_70 (county VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR) | SELECT county FROM table_name_70 WHERE ihsaa_class = "aaaa" AND mascot = "cardinals" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (county VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR) Question: Which County has an IHSAA Class of aaaa, and a Mascot of cardinals? [/INST] SELECT county FROM table_name_70 WHERE ihsaa_class = "aaa... |
How many Total Goals values have 0 League Cup Goals? | CREATE TABLE table_name_27 (total_goals VARCHAR, league_cup_goals INTEGER) | SELECT COUNT(total_goals) FROM table_name_27 WHERE league_cup_goals < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (total_goals VARCHAR, league_cup_goals INTEGER) Question: How many Total Goals values have 0 League Cup Goals? [/INST] SELECT COUNT(total_goals) FROM table_name_27 WHERE league_cup_goals < 0 </s> |
What is the smallest number of FA Cup Goals for players with 4 FA Cup Appearances, 49 Total Appearances, and more than 17 total goals? | CREATE TABLE table_name_55 (fa_cup_goals INTEGER, total_goals VARCHAR, fa_cup_apps VARCHAR, total_apps VARCHAR) | SELECT MIN(fa_cup_goals) FROM table_name_55 WHERE fa_cup_apps = "4" AND total_apps = "49" AND total_goals > 17 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (fa_cup_goals INTEGER, total_goals VARCHAR, fa_cup_apps VARCHAR, total_apps VARCHAR) Question: What is the smallest number of FA Cup Goals for players with 4 FA Cup Appearances, 49 Total Appearance... |
What is the average number of League Goals for palyers with 0 FA Cup Goals? | CREATE TABLE table_name_26 (league_goals INTEGER, fa_cup_goals INTEGER) | SELECT AVG(league_goals) FROM table_name_26 WHERE fa_cup_goals < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (league_goals INTEGER, fa_cup_goals INTEGER) Question: What is the average number of League Goals for palyers with 0 FA Cup Goals? [/INST] SELECT AVG(league_goals) FROM table_name_26 WHERE fa_cup_g... |
what is the highest silver when the total is 4 and bronze is less than 1? | CREATE TABLE table_name_54 (silver INTEGER, total VARCHAR, bronze VARCHAR) | SELECT MAX(silver) FROM table_name_54 WHERE total = "4" AND bronze < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (silver INTEGER, total VARCHAR, bronze VARCHAR) Question: what is the highest silver when the total is 4 and bronze is less than 1? [/INST] SELECT MAX(silver) FROM table_name_54 WHERE total = "4" A... |
what is the gold when the bronze is 1, total is 6 and silver is less than 3? | CREATE TABLE table_name_2 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR) | SELECT SUM(gold) FROM table_name_2 WHERE bronze = 1 AND total = "6" AND silver < 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR) Question: what is the gold when the bronze is 1, total is 6 and silver is less than 3? [/INST] SELECT SUM(gold) FROM table_name_2 WHERE ... |
What is province of community with height larger than 1.8 and is in el cibao region? | CREATE TABLE table_name_82 (province VARCHAR, _community VARCHAR, geographical_regions VARCHAR, height VARCHAR) | SELECT province, _community FROM table_name_82 WHERE geographical_regions = "el cibao" AND height > 1.8 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (province VARCHAR, _community VARCHAR, geographical_regions VARCHAR, height VARCHAR) Question: What is province of community with height larger than 1.8 and is in el cibao region? [/INST] SELECT pr... |
What contestant is from santo domingo este and has height smaller than 1.79? | CREATE TABLE table_name_7 (contestant VARCHAR, height VARCHAR, hometown VARCHAR) | SELECT contestant FROM table_name_7 WHERE height < 1.79 AND hometown = "santo domingo este" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (contestant VARCHAR, height VARCHAR, hometown VARCHAR) Question: What contestant is from santo domingo este and has height smaller than 1.79? [/INST] SELECT contestant FROM table_name_7 WHERE height... |
what is the previous conference when the year joined is 1932 and the mascot is tigers? | CREATE TABLE table_name_46 (previous_conference VARCHAR, year_joined VARCHAR, mascot VARCHAR) | SELECT previous_conference FROM table_name_46 WHERE year_joined = "1932" AND mascot = "tigers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (previous_conference VARCHAR, year_joined VARCHAR, mascot VARCHAR) Question: what is the previous conference when the year joined is 1932 and the mascot is tigers? [/INST] SELECT previous_conferenc... |
what is the school when the location is rochester? | CREATE TABLE table_name_60 (school VARCHAR, location VARCHAR) | SELECT school FROM table_name_60 WHERE location = "rochester" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (school VARCHAR, location VARCHAR) Question: what is the school when the location is rochester? [/INST] SELECT school FROM table_name_60 WHERE location = "rochester" </s> |
what is the location when the school is muncie burris? | CREATE TABLE table_name_71 (location VARCHAR, school VARCHAR) | SELECT location FROM table_name_71 WHERE school = "muncie burris" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (location VARCHAR, school VARCHAR) Question: what is the location when the school is muncie burris? [/INST] SELECT location FROM table_name_71 WHERE school = "muncie burris" </s> |
what is the mascot when the school is warsaw? | CREATE TABLE table_name_25 (mascot VARCHAR, school VARCHAR) | SELECT mascot FROM table_name_25 WHERE school = "warsaw" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (mascot VARCHAR, school VARCHAR) Question: what is the mascot when the school is warsaw? [/INST] SELECT mascot FROM table_name_25 WHERE school = "warsaw" </s> |
what is the mascot when the county is 43 kosciusko? | CREATE TABLE table_name_82 (mascot VARCHAR, county VARCHAR) | SELECT mascot FROM table_name_82 WHERE county = "43 kosciusko" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (mascot VARCHAR, county VARCHAR) Question: what is the mascot when the county is 43 kosciusko? [/INST] SELECT mascot FROM table_name_82 WHERE county = "43 kosciusko" </s> |
what is the county when the year left is 1998? | CREATE TABLE table_name_36 (county VARCHAR, year_left VARCHAR) | SELECT county FROM table_name_36 WHERE year_left = "1998" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (county VARCHAR, year_left VARCHAR) Question: what is the county when the year left is 1998? [/INST] SELECT county FROM table_name_36 WHERE year_left = "1998" </s> |
which Film has a Category of best actress β musical or comedy, and a Lost to of nicole kidman ( moulin rouge! )? | CREATE TABLE table_name_23 (film VARCHAR, category VARCHAR, lost_to VARCHAR) | SELECT film FROM table_name_23 WHERE category = "best actress β musical or comedy" AND lost_to = "nicole kidman ( moulin rouge! )" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (film VARCHAR, category VARCHAR, lost_to VARCHAR) Question: which Film has a Category of best actress β musical or comedy, and a Lost to of nicole kidman ( moulin rouge! )? [/INST] SELECT film FROM... |
which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )? | CREATE TABLE table_name_40 (category VARCHAR, result VARCHAR, lost_to VARCHAR) | SELECT category FROM table_name_40 WHERE result = "nominated" AND lost_to = "jennifer westfeldt ( kissing jessica stein )" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (category VARCHAR, result VARCHAR, lost_to VARCHAR) Question: which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )? [/INST] SELECT category FROM t... |
Which the Lost to is in 2000 | CREATE TABLE table_name_35 (lost_to VARCHAR, year VARCHAR) | SELECT lost_to FROM table_name_35 WHERE year = 2000 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (lost_to VARCHAR, year VARCHAR) Question: Which the Lost to is in 2000 [/INST] SELECT lost_to FROM table_name_35 WHERE year = 2000 </s> |
What is the average attendance for games against the Pittsburgh Steelers when the opponents scored more than 0 points? | CREATE TABLE table_name_2 (attendance INTEGER, opponent VARCHAR, opponents VARCHAR) | SELECT AVG(attendance) FROM table_name_2 WHERE opponent = "pittsburgh steelers" AND opponents > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (attendance INTEGER, opponent VARCHAR, opponents VARCHAR) Question: What is the average attendance for games against the Pittsburgh Steelers when the opponents scored more than 0 points? [/INST] SEL... |
Who is the team that has a pick less than 154 and an offensive guard position? | CREATE TABLE table_name_8 (team VARCHAR, position VARCHAR, pick VARCHAR) | SELECT team FROM table_name_8 WHERE position = "offensive guard" AND pick < 154 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (team VARCHAR, position VARCHAR, pick VARCHAR) Question: Who is the team that has a pick less than 154 and an offensive guard position? [/INST] SELECT team FROM table_name_8 WHERE position = "offens... |
What is the Attendance of Game 24? | CREATE TABLE table_name_94 (attendance INTEGER, game VARCHAR) | SELECT SUM(attendance) FROM table_name_94 WHERE game = 24 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (attendance INTEGER, game VARCHAR) Question: What is the Attendance of Game 24? [/INST] SELECT SUM(attendance) FROM table_name_94 WHERE game = 24 </s> |
What is the Venue of Game 41 with a Score FβA of 1β2? | CREATE TABLE table_name_91 (venue VARCHAR, score_f_a VARCHAR, game VARCHAR) | SELECT venue FROM table_name_91 WHERE score_f_a = "1β2" AND game = 41 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (venue VARCHAR, score_f_a VARCHAR, game VARCHAR) Question: What is the Venue of Game 41 with a Score FβA of 1β2? [/INST] SELECT venue FROM table_name_91 WHERE score_f_a = "1β2" AND game = 41 </s> |
Who are the opponents in the February 19, 1996 final? | CREATE TABLE table_name_30 (opponents_in_the_final VARCHAR, date VARCHAR) | SELECT opponents_in_the_final FROM table_name_30 WHERE date = "february 19, 1996" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (opponents_in_the_final VARCHAR, date VARCHAR) Question: Who are the opponents in the February 19, 1996 final? [/INST] SELECT opponents_in_the_final FROM table_name_30 WHERE date = "february 19, 19... |
What was the final score on March 22, 1993? | CREATE TABLE table_name_24 (score_in_the_final VARCHAR, date VARCHAR) | SELECT score_in_the_final FROM table_name_24 WHERE date = "march 22, 1993" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (score_in_the_final VARCHAR, date VARCHAR) Question: What was the final score on March 22, 1993? [/INST] SELECT score_in_the_final FROM table_name_24 WHERE date = "march 22, 1993" </s> |
What is the outcome on June 9, 1997? | CREATE TABLE table_name_57 (outcome VARCHAR, date VARCHAR) | SELECT outcome FROM table_name_57 WHERE date = "june 9, 1997" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (outcome VARCHAR, date VARCHAR) Question: What is the outcome on June 9, 1997? [/INST] SELECT outcome FROM table_name_57 WHERE date = "june 9, 1997" </s> |
What school has an IHSAA Class of aaa, and their mascot is Tiger Cubs? | CREATE TABLE table_name_50 (school VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR) | SELECT school FROM table_name_50 WHERE ihsaa_class = "aaa" AND mascot = "tiger cubs" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (school VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR) Question: What school has an IHSAA Class of aaa, and their mascot is Tiger Cubs? [/INST] SELECT school FROM table_name_50 WHERE ihsaa_class = ... |
What is the IHSAA Football Class for county 67 putnam at Greencastle? | CREATE TABLE table_name_16 (ihsaa_football_class VARCHAR, county VARCHAR, school VARCHAR) | SELECT ihsaa_football_class FROM table_name_16 WHERE county = "67 putnam" AND school = "greencastle" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (ihsaa_football_class VARCHAR, county VARCHAR, school VARCHAR) Question: What is the IHSAA Football Class for county 67 putnam at Greencastle? [/INST] SELECT ihsaa_football_class FROM table_name_16... |
What school has more than 533 enrolled and is an IHSAA Football Class of aa? | CREATE TABLE table_name_27 (school VARCHAR, enrollment VARCHAR, ihsaa_football_class VARCHAR) | SELECT school FROM table_name_27 WHERE enrollment > 533 AND ihsaa_football_class = "aa" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (school VARCHAR, enrollment VARCHAR, ihsaa_football_class VARCHAR) Question: What school has more than 533 enrolled and is an IHSAA Football Class of aa? [/INST] SELECT school FROM table_name_27 WH... |
Where is the IHSAA Class of aaa school with more than 590 enrolled? | CREATE TABLE table_name_1 (location VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR) | SELECT location FROM table_name_1 WHERE ihsaa_class = "aaa" AND enrollment > 590 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (location VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR) Question: Where is the IHSAA Class of aaa school with more than 590 enrolled? [/INST] SELECT location FROM table_name_1 WHERE ihsaa_class ... |
Which location has 111 as the days held? | CREATE TABLE table_name_4 (location VARCHAR, days_held VARCHAR) | SELECT location FROM table_name_4 WHERE days_held = "111" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (location VARCHAR, days_held VARCHAR) Question: Which location has 111 as the days held? [/INST] SELECT location FROM table_name_4 WHERE days_held = "111" </s> |
What days held has 1 as the reign with eden black as the wrestlers? | CREATE TABLE table_name_2 (days_held VARCHAR, reign VARCHAR, wrestlers VARCHAR) | SELECT days_held FROM table_name_2 WHERE reign = "1" AND wrestlers = "eden black" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (days_held VARCHAR, reign VARCHAR, wrestlers VARCHAR) Question: What days held has 1 as the reign with eden black as the wrestlers? [/INST] SELECT days_held FROM table_name_2 WHERE reign = "1" AND w... |
What wrestlers have summer brawl 2006 as the event? | CREATE TABLE table_name_71 (wrestlers VARCHAR, event VARCHAR) | SELECT wrestlers FROM table_name_71 WHERE event = "summer brawl 2006" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (wrestlers VARCHAR, event VARCHAR) Question: What wrestlers have summer brawl 2006 as the event? [/INST] SELECT wrestlers FROM table_name_71 WHERE event = "summer brawl 2006" </s> |
What is the average amount of points larger than 154 laps? | CREATE TABLE table_name_87 (points INTEGER, laps INTEGER) | SELECT AVG(points) FROM table_name_87 WHERE laps > 154 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (points INTEGER, laps INTEGER) Question: What is the average amount of points larger than 154 laps? [/INST] SELECT AVG(points) FROM table_name_87 WHERE laps > 154 </s> |
What home team played against Crystal Palace? | CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_68 WHERE away_team = "crystal palace" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR) Question: What home team played against Crystal Palace? [/INST] SELECT home_team FROM table_name_68 WHERE away_team = "crystal palace" </s> |
What is the lowest win % with a 0-2 record and more than 2 apps? | CREATE TABLE table_name_39 (win__percentage INTEGER, record VARCHAR, apps VARCHAR) | SELECT MIN(win__percentage) FROM table_name_39 WHERE record = "0-2" AND apps > 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (win__percentage INTEGER, record VARCHAR, apps VARCHAR) Question: What is the lowest win % with a 0-2 record and more than 2 apps? [/INST] SELECT MIN(win__percentage) FROM table_name_39 WHERE recor... |
What is the lowest apps for rank 3 and 0% wins? | CREATE TABLE table_name_33 (apps INTEGER, rank VARCHAR, win__percentage VARCHAR) | SELECT MIN(apps) FROM table_name_33 WHERE rank = 3 AND win__percentage < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (apps INTEGER, rank VARCHAR, win__percentage VARCHAR) Question: What is the lowest apps for rank 3 and 0% wins? [/INST] SELECT MIN(apps) FROM table_name_33 WHERE rank = 3 AND win__percentage < 0 </... |
What artist had a peak position under 2, and more than 200,000 in sales? | CREATE TABLE table_name_87 (artist VARCHAR, peak_position VARCHAR, sales VARCHAR) | SELECT artist FROM table_name_87 WHERE peak_position < 2 AND sales > 200 OFFSET 000 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (artist VARCHAR, peak_position VARCHAR, sales VARCHAR) Question: What artist had a peak position under 2, and more than 200,000 in sales? [/INST] SELECT artist FROM table_name_87 WHERE peak_positio... |
Which points has place smaller than 2? | CREATE TABLE table_name_39 (points VARCHAR, place INTEGER) | SELECT points FROM table_name_39 WHERE place < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (points VARCHAR, place INTEGER) Question: Which points has place smaller than 2? [/INST] SELECT points FROM table_name_39 WHERE place < 2 </s> |
What's the size of Centerville in 89 Wayne county with an IHSAA class of AA in the year before 1974? | CREATE TABLE table_name_61 (size VARCHAR, school VARCHAR, _number___county VARCHAR, year_joined VARCHAR, ihsaa_class VARCHAR) | SELECT size FROM table_name_61 WHERE year_joined < 1974 AND ihsaa_class = "aa" AND _number___county = "89 wayne" AND school = "centerville" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (size VARCHAR, school VARCHAR, _number___county VARCHAR, year_joined VARCHAR, ihsaa_class VARCHAR) Question: What's the size of Centerville in 89 Wayne county with an IHSAA class of AA in the year ... |
What's the year that Hagerstown joined? | CREATE TABLE table_name_66 (year_joined VARCHAR, school VARCHAR) | SELECT year_joined FROM table_name_66 WHERE school = "hagerstown" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (year_joined VARCHAR, school VARCHAR) Question: What's the year that Hagerstown joined? [/INST] SELECT year_joined FROM table_name_66 WHERE school = "hagerstown" </s> |
What county is Fountain City? | CREATE TABLE table_name_8 (_number___county VARCHAR, location VARCHAR) | SELECT _number___county FROM table_name_8 WHERE location = "fountain city" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (_number___county VARCHAR, location VARCHAR) Question: What county is Fountain City? [/INST] SELECT _number___county FROM table_name_8 WHERE location = "fountain city" </s> |
What's the previous conference of Fountain City with a size more than 287? | CREATE TABLE table_name_88 (previous_conference VARCHAR, size VARCHAR, location VARCHAR) | SELECT previous_conference FROM table_name_88 WHERE size > 287 AND location = "fountain city" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (previous_conference VARCHAR, size VARCHAR, location VARCHAR) Question: What's the previous conference of Fountain City with a size more than 287? [/INST] SELECT previous_conference FROM table_name... |
What is the social democrat released on October 10, 1999? | CREATE TABLE table_name_94 (social_democratic VARCHAR, date_released VARCHAR) | SELECT social_democratic FROM table_name_94 WHERE date_released = "october 10, 1999" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (social_democratic VARCHAR, date_released VARCHAR) Question: What is the social democrat released on October 10, 1999? [/INST] SELECT social_democratic FROM table_name_94 WHERE date_released = "oct... |
What is the green-communist with a 15.5% lead? | CREATE TABLE table_name_82 (green_communist VARCHAR, lead VARCHAR) | SELECT green_communist FROM table_name_82 WHERE lead = "15.5%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (green_communist VARCHAR, lead VARCHAR) Question: What is the green-communist with a 15.5% lead? [/INST] SELECT green_communist FROM table_name_82 WHERE lead = "15.5%" </s> |
What is the left bloc with a 49.0% socialist? | CREATE TABLE table_name_33 (left_bloc VARCHAR, socialist VARCHAR) | SELECT left_bloc FROM table_name_33 WHERE socialist = "49.0%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (left_bloc VARCHAR, socialist VARCHAR) Question: What is the left bloc with a 49.0% socialist? [/INST] SELECT left_bloc FROM table_name_33 WHERE socialist = "49.0%" </s> |
Which polling institute has a 30.7% for social democratic? | CREATE TABLE table_name_81 (polling_institute VARCHAR, social_democratic VARCHAR) | SELECT polling_institute FROM table_name_81 WHERE social_democratic = "30.7%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (polling_institute VARCHAR, social_democratic VARCHAR) Question: Which polling institute has a 30.7% for social democratic? [/INST] SELECT polling_institute FROM table_name_81 WHERE social_democrat... |
What is the week with w 31-21 result? | CREATE TABLE table_name_7 (week VARCHAR, result VARCHAR) | SELECT week FROM table_name_7 WHERE result = "w 31-21" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (week VARCHAR, result VARCHAR) Question: What is the week with w 31-21 result? [/INST] SELECT week FROM table_name_7 WHERE result = "w 31-21" </s> |
In week 7, what was the average attendance? | CREATE TABLE table_name_74 (attendance INTEGER, week VARCHAR) | SELECT AVG(attendance) FROM table_name_74 WHERE week = 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (attendance INTEGER, week VARCHAR) Question: In week 7, what was the average attendance? [/INST] SELECT AVG(attendance) FROM table_name_74 WHERE week = 7 </s> |
Who was the opponent on september 10, 1979? | CREATE TABLE table_name_28 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_28 WHERE date = "september 10, 1979" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (opponent VARCHAR, date VARCHAR) Question: Who was the opponent on september 10, 1979? [/INST] SELECT opponent FROM table_name_28 WHERE date = "september 10, 1979" </s> |
When was twenty released? | CREATE TABLE table_name_16 (date_of_release VARCHAR, title VARCHAR) | SELECT date_of_release FROM table_name_16 WHERE title = "twenty" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (date_of_release VARCHAR, title VARCHAR) Question: When was twenty released? [/INST] SELECT date_of_release FROM table_name_16 WHERE title = "twenty" </s> |
On what date was god & guns released? | CREATE TABLE table_name_15 (date_of_release VARCHAR, title VARCHAR) | SELECT date_of_release FROM table_name_15 WHERE title = "god & guns" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (date_of_release VARCHAR, title VARCHAR) Question: On what date was god & guns released? [/INST] SELECT date_of_release FROM table_name_15 WHERE title = "god & guns" </s> |
What was the Billboard peak for the album released on September 12, 2000 by sanctuary? | CREATE TABLE table_name_93 (billboard_peak VARCHAR, label VARCHAR, date_of_release VARCHAR) | SELECT billboard_peak FROM table_name_93 WHERE label = "sanctuary" AND date_of_release = "september 12, 2000" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (billboard_peak VARCHAR, label VARCHAR, date_of_release VARCHAR) Question: What was the Billboard peak for the album released on September 12, 2000 by sanctuary? [/INST] SELECT billboard_peak FROM ... |
Where did god & guns peak on the Billboard? | CREATE TABLE table_name_52 (billboard_peak VARCHAR, title VARCHAR) | SELECT billboard_peak FROM table_name_52 WHERE title = "god & guns" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (billboard_peak VARCHAR, title VARCHAR) Question: Where did god & guns peak on the Billboard? [/INST] SELECT billboard_peak FROM table_name_52 WHERE title = "god & guns" </s> |
What was the Billboard peak for the album released on February 2, 1976 by MCA? | CREATE TABLE table_name_95 (billboard_peak VARCHAR, label VARCHAR, date_of_release VARCHAR) | SELECT billboard_peak FROM table_name_95 WHERE label = "mca" AND date_of_release = "february 2, 1976" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (billboard_peak VARCHAR, label VARCHAR, date_of_release VARCHAR) Question: What was the Billboard peak for the album released on February 2, 1976 by MCA? [/INST] SELECT billboard_peak FROM table_na... |
What venue was the tour match against eastern province played at with more than 0 against? | CREATE TABLE table_name_31 (venue VARCHAR, opposing_team VARCHAR, status VARCHAR, against VARCHAR) | SELECT venue FROM table_name_31 WHERE status = "tour match" AND against > 0 AND opposing_team = "eastern province" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (venue VARCHAR, opposing_team VARCHAR, status VARCHAR, against VARCHAR) Question: What venue was the tour match against eastern province played at with more than 0 against? [/INST] SELECT venue FRO... |
What is the status of the game where there was more than 22 against? | CREATE TABLE table_name_20 (status VARCHAR, against INTEGER) | SELECT status FROM table_name_20 WHERE against > 22 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (status VARCHAR, against INTEGER) Question: What is the status of the game where there was more than 22 against? [/INST] SELECT status FROM table_name_20 WHERE against > 22 </s> |
In which game did the opponents score 14 points? | CREATE TABLE table_name_41 (game VARCHAR, opponents VARCHAR) | SELECT game FROM table_name_41 WHERE opponents = "14" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (game VARCHAR, opponents VARCHAR) Question: In which game did the opponents score 14 points? [/INST] SELECT game FROM table_name_41 WHERE opponents = "14" </s> |
What was the streak after the game on Dec. 12? | CREATE TABLE table_name_18 (streak VARCHAR, date VARCHAR) | SELECT streak FROM table_name_18 WHERE date = "dec. 12" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (streak VARCHAR, date VARCHAR) Question: What was the streak after the game on Dec. 12? [/INST] SELECT streak FROM table_name_18 WHERE date = "dec. 12" </s> |
What's the AMT 3.0 when it has a feature of Vlan Settings for Intel AMT Network Interfaces? | CREATE TABLE table_name_76 (amt_30__desktop_ VARCHAR, feature VARCHAR) | SELECT amt_30__desktop_ FROM table_name_76 WHERE feature = "vlan settings for intel amt network interfaces" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (amt_30__desktop_ VARCHAR, feature VARCHAR) Question: What's the AMT 3.0 when it has a feature of Vlan Settings for Intel AMT Network Interfaces? [/INST] SELECT amt_30__desktop_ FROM table_name_76 ... |
What is the number of silver when bronze is 0, and rank is less than 2? | CREATE TABLE table_name_5 (silver INTEGER, bronze VARCHAR, rank VARCHAR) | SELECT SUM(silver) FROM table_name_5 WHERE bronze = 0 AND rank < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (silver INTEGER, bronze VARCHAR, rank VARCHAR) Question: What is the number of silver when bronze is 0, and rank is less than 2? [/INST] SELECT SUM(silver) FROM table_name_5 WHERE bronze = 0 AND ran... |
What is the silver when the Total is 1, and Gold is 1? | CREATE TABLE table_name_64 (silver INTEGER, total VARCHAR, gold VARCHAR) | SELECT AVG(silver) FROM table_name_64 WHERE total = 1 AND gold = 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (silver INTEGER, total VARCHAR, gold VARCHAR) Question: What is the silver when the Total is 1, and Gold is 1? [/INST] SELECT AVG(silver) FROM table_name_64 WHERE total = 1 AND gold = 1 </s> |
What is the number of silver when the total is less than 1? | CREATE TABLE table_name_35 (silver VARCHAR, total INTEGER) | SELECT COUNT(silver) FROM table_name_35 WHERE total < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (silver VARCHAR, total INTEGER) Question: What is the number of silver when the total is less than 1? [/INST] SELECT COUNT(silver) FROM table_name_35 WHERE total < 1 </s> |
What is the largest silver number when the rank is smaller than 1? | CREATE TABLE table_name_92 (silver INTEGER, rank INTEGER) | SELECT MAX(silver) FROM table_name_92 WHERE rank < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (silver INTEGER, rank INTEGER) Question: What is the largest silver number when the rank is smaller than 1? [/INST] SELECT MAX(silver) FROM table_name_92 WHERE rank < 1 </s> |
What is the number of bronze when the total is smaller than 1? | CREATE TABLE table_name_58 (bronze INTEGER, total INTEGER) | SELECT AVG(bronze) FROM table_name_58 WHERE total < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (bronze INTEGER, total INTEGER) Question: What is the number of bronze when the total is smaller than 1? [/INST] SELECT AVG(bronze) FROM table_name_58 WHERE total < 1 </s> |
What is the highest number of bronze when silver is larger than 0, rank is larger than 3? | CREATE TABLE table_name_69 (bronze INTEGER, silver VARCHAR, rank VARCHAR) | SELECT MAX(bronze) FROM table_name_69 WHERE silver > 0 AND rank > 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (bronze INTEGER, silver VARCHAR, rank VARCHAR) Question: What is the highest number of bronze when silver is larger than 0, rank is larger than 3? [/INST] SELECT MAX(bronze) FROM table_name_69 WHER... |
What is the lowest number of silvers for countries in rank 12 with more than 0 bronze? | CREATE TABLE table_name_73 (silver INTEGER, rank VARCHAR, bronze VARCHAR) | SELECT MIN(silver) FROM table_name_73 WHERE rank = "12" AND bronze > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (silver INTEGER, rank VARCHAR, bronze VARCHAR) Question: What is the lowest number of silvers for countries in rank 12 with more than 0 bronze? [/INST] SELECT MIN(silver) FROM table_name_73 WHERE r... |
What is the most number of silvers for teams in rank 5 with more than 6 total medals? | CREATE TABLE table_name_43 (silver INTEGER, rank VARCHAR, total VARCHAR) | SELECT MAX(silver) FROM table_name_43 WHERE rank = "5" AND total > 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (silver INTEGER, rank VARCHAR, total VARCHAR) Question: What is the most number of silvers for teams in rank 5 with more than 6 total medals? [/INST] SELECT MAX(silver) FROM table_name_43 WHERE ran... |
What is the fewest number of golds for teams with a total of 3 and fewer than 2 silvers? | CREATE TABLE table_name_59 (gold INTEGER, total VARCHAR, silver VARCHAR) | SELECT MIN(gold) FROM table_name_59 WHERE total = 3 AND silver < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (gold INTEGER, total VARCHAR, silver VARCHAR) Question: What is the fewest number of golds for teams with a total of 3 and fewer than 2 silvers? [/INST] SELECT MIN(gold) FROM table_name_59 WHERE to... |
What's the number of wins when the flags were less than 8 and 52.11% of wins? | CREATE TABLE table_name_60 (wins VARCHAR, percentage_wins VARCHAR, flags VARCHAR) | SELECT COUNT(wins) FROM table_name_60 WHERE percentage_wins = "52.11%" AND flags < 8 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (wins VARCHAR, percentage_wins VARCHAR, flags VARCHAR) Question: What's the number of wins when the flags were less than 8 and 52.11% of wins? [/INST] SELECT COUNT(wins) FROM table_name_60 WHERE pe... |
What's the most flags that had 473 wins and less than 633 losses? | CREATE TABLE table_name_90 (flags INTEGER, wins VARCHAR, losses VARCHAR) | SELECT MAX(flags) FROM table_name_90 WHERE wins = 473 AND losses < 633 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (flags INTEGER, wins VARCHAR, losses VARCHAR) Question: What's the most flags that had 473 wins and less than 633 losses? [/INST] SELECT MAX(flags) FROM table_name_90 WHERE wins = 473 AND losses < ... |
How many wins did South Warrnambool have that had more than 6 flags and a draw greater than 10? | CREATE TABLE table_name_77 (wins VARCHAR, club VARCHAR, flags VARCHAR, draws VARCHAR) | SELECT wins FROM table_name_77 WHERE flags > 6 AND draws > 10 AND club = "south warrnambool" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (wins VARCHAR, club VARCHAR, flags VARCHAR, draws VARCHAR) Question: How many wins did South Warrnambool have that had more than 6 flags and a draw greater than 10? [/INST] SELECT wins FROM table_n... |
What are the losses of Warrnambool with a draw less than 19? | CREATE TABLE table_name_8 (losses INTEGER, club VARCHAR, draws VARCHAR) | SELECT AVG(losses) FROM table_name_8 WHERE club = "warrnambool" AND draws < 19 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (losses INTEGER, club VARCHAR, draws VARCHAR) Question: What are the losses of Warrnambool with a draw less than 19? [/INST] SELECT AVG(losses) FROM table_name_8 WHERE club = "warrnambool" AND draws... |
What is the Location of the Competition with a Rank-Final of 10? | CREATE TABLE table_name_63 (location VARCHAR, rank_final VARCHAR) | SELECT location FROM table_name_63 WHERE rank_final = "10" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (location VARCHAR, rank_final VARCHAR) Question: What is the Location of the Competition with a Rank-Final of 10? [/INST] SELECT location FROM table_name_63 WHERE rank_final = "10" </s> |
How many gold medals for Bulgaria (BUL) with 2 silvers and a less than 18 rank? | CREATE TABLE table_name_61 (gold INTEGER, rank VARCHAR, silver VARCHAR, nation VARCHAR) | SELECT SUM(gold) FROM table_name_61 WHERE silver = 2 AND nation = "bulgaria (bul)" AND rank < 18 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (gold INTEGER, rank VARCHAR, silver VARCHAR, nation VARCHAR) Question: How many gold medals for Bulgaria (BUL) with 2 silvers and a less than 18 rank? [/INST] SELECT SUM(gold) FROM table_name_61 WH... |
What's the most bronze medals for Great Britain (GBR) with more than 1 silver and ranked more than 6? | CREATE TABLE table_name_35 (bronze INTEGER, silver VARCHAR, rank VARCHAR, nation VARCHAR) | SELECT MAX(bronze) FROM table_name_35 WHERE rank > 6 AND nation = "great britain (gbr)" AND silver > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (bronze INTEGER, silver VARCHAR, rank VARCHAR, nation VARCHAR) Question: What's the most bronze medals for Great Britain (GBR) with more than 1 silver and ranked more than 6? [/INST] SELECT MAX(bro... |
What's the total silver medals having less than 2 gold and 2 bronze? | CREATE TABLE table_name_29 (silver VARCHAR, bronze VARCHAR, gold VARCHAR) | SELECT COUNT(silver) FROM table_name_29 WHERE bronze = 2 AND gold < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (silver VARCHAR, bronze VARCHAR, gold VARCHAR) Question: What's the total silver medals having less than 2 gold and 2 bronze? [/INST] SELECT COUNT(silver) FROM table_name_29 WHERE bronze = 2 AND go... |
Which Name has a Championship larger than 2, and a Total larger than 4, and an FA Cup larger than 0? | CREATE TABLE table_name_72 (name VARCHAR, fa_cup VARCHAR, championship VARCHAR, total VARCHAR) | SELECT name FROM table_name_72 WHERE championship > 2 AND total > 4 AND fa_cup > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (name VARCHAR, fa_cup VARCHAR, championship VARCHAR, total VARCHAR) Question: Which Name has a Championship larger than 2, and a Total larger than 4, and an FA Cup larger than 0? [/INST] SELECT nam... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.