instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
What is the sum of PTS when there is a PCT smaller than 0.1? | CREATE TABLE table_name_11 (pts INTEGER, pct INTEGER) | SELECT SUM(pts) FROM table_name_11 WHERE pct < 0.1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (pts INTEGER, pct INTEGER) Question: What is the sum of PTS when there is a PCT smaller than 0.1? [/INST] SELECT SUM(pts) FROM table_name_11 WHERE pct < 0.1 </s> |
What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19? | CREATE TABLE table_name_48 (coach VARCHAR, loss VARCHAR, pct VARCHAR, pts VARCHAR) | SELECT coach FROM table_name_48 WHERE pct > 0.1 AND pts > 9 AND loss = 19 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (coach VARCHAR, loss VARCHAR, pct VARCHAR, pts VARCHAR) Question: What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19? [/INST] SELECT coach FROM table_name_48 WHERE pct > 0.1 AND pts > 9 AND loss = 19 </s> |
What's the name of spain rank greater than 2? | CREATE TABLE table_name_59 (name VARCHAR, rank VARCHAR, nationality VARCHAR) | SELECT name FROM table_name_59 WHERE rank > 2 AND nationality = "spain" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (name VARCHAR, rank VARCHAR, nationality VARCHAR) Question: What's the name of spain rank greater than 2? [/INST] SELECT name FROM table_name_59 WHERE rank > 2 AND nationality = "spain" </s> |
Spain had what time with lanes smaller than 4? | CREATE TABLE table_name_84 (time VARCHAR, lane VARCHAR, nationality VARCHAR) | SELECT time FROM table_name_84 WHERE lane < 4 AND nationality = "spain" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (time VARCHAR, lane VARCHAR, nationality VARCHAR) Question: Spain had what time with lanes smaller than 4? [/INST] SELECT time FROM table_name_84 WHERE lane < 4 AND nationality = "spain" </s> |
What's the smallest rank of noriko inada? | CREATE TABLE table_name_76 (rank INTEGER, name VARCHAR) | SELECT MIN(rank) FROM table_name_76 WHERE name = "noriko inada" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (rank INTEGER, name VARCHAR) Question: What's the smallest rank of noriko inada? [/INST] SELECT MIN(rank) FROM table_name_76 WHERE name = "noriko inada" </s> |
How many total losses have teams that played more than 30 games? | CREATE TABLE table_name_34 (lost VARCHAR, played INTEGER) | SELECT COUNT(lost) FROM table_name_34 WHERE played > 30 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (lost VARCHAR, played INTEGER) Question: How many total losses have teams that played more than 30 games? [/INST] SELECT COUNT(lost) FROM table_name_34 WHERE played > 30 </s> |
What is the number of the rank when the time is 2:15.98, in a lane larger than 7? | CREATE TABLE table_name_55 (rank VARCHAR, time VARCHAR, lane VARCHAR) | SELECT COUNT(rank) FROM table_name_55 WHERE time = "2:15.98" AND lane > 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (rank VARCHAR, time VARCHAR, lane VARCHAR) Question: What is the number of the rank when the time is 2:15.98, in a lane larger than 7? [/INST] SELECT COUNT(rank) FROM table_name_55 WHERE time = "2:15.98" AND lane > 7 </s> |
What is the number of the rank for the name of Chen Yan in a lane less than 2? | CREATE TABLE table_name_89 (rank VARCHAR, name VARCHAR, lane VARCHAR) | SELECT COUNT(rank) FROM table_name_89 WHERE name = "chen yan" AND lane < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (rank VARCHAR, name VARCHAR, lane VARCHAR) Question: What is the number of the rank for the name of Chen Yan in a lane less than 2? [/INST] SELECT COUNT(rank) FROM table_name_89 WHERE name = "chen yan" AND lane < 2 </s> |
What is the smallest lane for rank 6? | CREATE TABLE table_name_64 (lane INTEGER, rank VARCHAR) | SELECT MIN(lane) FROM table_name_64 WHERE rank = 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (lane INTEGER, rank VARCHAR) Question: What is the smallest lane for rank 6? [/INST] SELECT MIN(lane) FROM table_name_64 WHERE rank = 6 </s> |
What's the total for a league cup less than 1? | CREATE TABLE table_name_30 (league VARCHAR, total INTEGER) | SELECT COUNT(league) AS Cup FROM table_name_30 WHERE total < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (league VARCHAR, total INTEGER) Question: What's the total for a league cup less than 1? [/INST] SELECT COUNT(league) AS Cup FROM table_name_30 WHERE total < 1 </s> |
What's the FA Cup that has a league less than 1? | CREATE TABLE table_name_3 (fa_cup INTEGER, league INTEGER) | SELECT SUM(fa_cup) FROM table_name_3 WHERE league < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (fa_cup INTEGER, league INTEGER) Question: What's the FA Cup that has a league less than 1? [/INST] SELECT SUM(fa_cup) FROM table_name_3 WHERE league < 1 </s> |
Which town has the most villages with the hanzi 南流乡 and a population larger than 24,802? | CREATE TABLE table_name_92 (villages INTEGER, hanzi VARCHAR, population VARCHAR) | SELECT MAX(villages) FROM table_name_92 WHERE hanzi = "南流乡" AND population > 24 OFFSET 802 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (villages INTEGER, hanzi VARCHAR, population VARCHAR) Question: Which town has the most villages with the hanzi 南流乡 and a population larger than 24,802? [/INST] SELECT MAX(villages) FROM table_name_92 WHERE hanzi = "南流乡" AND population > 24 OFFSET 802 ROWS </s> |
What position did lap 296 come in? | CREATE TABLE table_name_41 (pos VARCHAR, laps VARCHAR) | SELECT pos FROM table_name_41 WHERE laps = 296 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (pos VARCHAR, laps VARCHAR) Question: What position did lap 296 come in? [/INST] SELECT pos FROM table_name_41 WHERE laps = 296 </s> |
How many games did the Club that has a try bonus of 4 and 391 points against play ? | CREATE TABLE table_name_21 (played VARCHAR, try_bonus VARCHAR, points_against VARCHAR) | SELECT played FROM table_name_21 WHERE try_bonus = "4" AND points_against = "391" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (played VARCHAR, try_bonus VARCHAR, points_against VARCHAR) Question: How many games did the Club that has a try bonus of 4 and 391 points against play ? [/INST] SELECT played FROM table_name_21 WHERE try_bonus = "4" AND points_against = "391" </s> |
How many points against did Carmarthen Athletic RFC have when they played 22 games ? | CREATE TABLE table_name_32 (points_against VARCHAR, played VARCHAR, club VARCHAR) | SELECT points_against FROM table_name_32 WHERE played = "22" AND club = "carmarthen athletic rfc" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (points_against VARCHAR, played VARCHAR, club VARCHAR) Question: How many points against did Carmarthen Athletic RFC have when they played 22 games ? [/INST] SELECT points_against FROM table_name_32 WHERE played = "22" AND club = "carmarthen athletic rfc" </s> |
Which club lost 10 games ? | CREATE TABLE table_name_93 (club VARCHAR, lost VARCHAR) | SELECT club FROM table_name_93 WHERE lost = "10" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (club VARCHAR, lost VARCHAR) Question: Which club lost 10 games ? [/INST] SELECT club FROM table_name_93 WHERE lost = "10" </s> |
How many points for did the club that had 77 tries for have ? | CREATE TABLE table_name_43 (points_for VARCHAR, tries_for VARCHAR) | SELECT points_for FROM table_name_43 WHERE tries_for = "77" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (points_for VARCHAR, tries_for VARCHAR) Question: How many points for did the club that had 77 tries for have ? [/INST] SELECT points_for FROM table_name_43 WHERE tries_for = "77" </s> |
Which club has a try bonus of 2 ? | CREATE TABLE table_name_8 (club VARCHAR, try_bonus VARCHAR) | SELECT club FROM table_name_8 WHERE try_bonus = "2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (club VARCHAR, try_bonus VARCHAR) Question: Which club has a try bonus of 2 ? [/INST] SELECT club FROM table_name_8 WHERE try_bonus = "2" </s> |
Name the most attendance for october 11 | CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR) | SELECT MAX(attendance) FROM table_name_75 WHERE date = "october 11" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR) Question: Name the most attendance for october 11 [/INST] SELECT MAX(attendance) FROM table_name_75 WHERE date = "october 11" </s> |
Name the visitor for october 19 | CREATE TABLE table_name_52 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_52 WHERE date = "october 19" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (visitor VARCHAR, date VARCHAR) Question: Name the visitor for october 19 [/INST] SELECT visitor FROM table_name_52 WHERE date = "october 19" </s> |
The highest year for the series titled dragon laws ii: kidnapped is what? | CREATE TABLE table_name_12 (year INTEGER, series_title VARCHAR) | SELECT MAX(year) FROM table_name_12 WHERE series_title = "dragon laws ii: kidnapped" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (year INTEGER, series_title VARCHAR) Question: The highest year for the series titled dragon laws ii: kidnapped is what? [/INST] SELECT MAX(year) FROM table_name_12 WHERE series_title = "dragon laws ii: kidnapped" </s> |
The series titled dragon laws i: the undercover has what role? | CREATE TABLE table_name_73 (role VARCHAR, series_title VARCHAR) | SELECT role FROM table_name_73 WHERE series_title = "dragon laws i: the undercover" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (role VARCHAR, series_title VARCHAR) Question: The series titled dragon laws i: the undercover has what role? [/INST] SELECT role FROM table_name_73 WHERE series_title = "dragon laws i: the undercover" </s> |
Which athlete has the fastest time of 15.82? | CREATE TABLE table_name_7 (athlete VARCHAR, fastest_time__s_ VARCHAR) | SELECT athlete FROM table_name_7 WHERE fastest_time__s_ = 15.82 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (athlete VARCHAR, fastest_time__s_ VARCHAR) Question: Which athlete has the fastest time of 15.82? [/INST] SELECT athlete FROM table_name_7 WHERE fastest_time__s_ = 15.82 </s> |
What is the total number of years that an entrant had more than 0 points? | CREATE TABLE table_name_87 (year VARCHAR, points INTEGER) | SELECT COUNT(year) FROM table_name_87 WHERE points > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (year VARCHAR, points INTEGER) Question: What is the total number of years that an entrant had more than 0 points? [/INST] SELECT COUNT(year) FROM table_name_87 WHERE points > 0 </s> |
Name the total number of years for brm straight-4 | CREATE TABLE table_name_65 (year VARCHAR, engine VARCHAR) | SELECT COUNT(year) FROM table_name_65 WHERE engine = "brm straight-4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (year VARCHAR, engine VARCHAR) Question: Name the total number of years for brm straight-4 [/INST] SELECT COUNT(year) FROM table_name_65 WHERE engine = "brm straight-4" </s> |
Name the total number of points for chassis of bmw t269 (f2) | CREATE TABLE table_name_2 (points VARCHAR, chassis VARCHAR) | SELECT COUNT(points) FROM table_name_2 WHERE chassis = "bmw t269 (f2)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (points VARCHAR, chassis VARCHAR) Question: Name the total number of points for chassis of bmw t269 (f2) [/INST] SELECT COUNT(points) FROM table_name_2 WHERE chassis = "bmw t269 (f2)" </s> |
Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0? | CREATE TABLE table_name_43 (promotions INTEGER, team VARCHAR, relegations VARCHAR) | SELECT MAX(promotions) FROM table_name_43 WHERE team = "pallacanestro messina" AND relegations > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (promotions INTEGER, team VARCHAR, relegations VARCHAR) Question: Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0? [/INST] SELECT MAX(promotions) FROM table_name_43 WHERE team = "pallacanestro messina" AND relegations > 0 </s> |
What are the lowest points with a Chassis of zakspeed 841, and a Year smaller than 1985? | CREATE TABLE table_name_32 (points INTEGER, chassis VARCHAR, year VARCHAR) | SELECT MIN(points) FROM table_name_32 WHERE chassis = "zakspeed 841" AND year < 1985 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (points INTEGER, chassis VARCHAR, year VARCHAR) Question: What are the lowest points with a Chassis of zakspeed 841, and a Year smaller than 1985? [/INST] SELECT MIN(points) FROM table_name_32 WHERE chassis = "zakspeed 841" AND year < 1985 </s> |
What is the lowest year with tyres in g and less than 0 points? | CREATE TABLE table_name_32 (year INTEGER, tyres VARCHAR, points VARCHAR) | SELECT MIN(year) FROM table_name_32 WHERE tyres = "g" AND points < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (year INTEGER, tyres VARCHAR, points VARCHAR) Question: What is the lowest year with tyres in g and less than 0 points? [/INST] SELECT MIN(year) FROM table_name_32 WHERE tyres = "g" AND points < 0 </s> |
Which year has an Engine(s) of yamaha v8? | CREATE TABLE table_name_6 (year VARCHAR, engine_s_ VARCHAR) | SELECT year FROM table_name_6 WHERE engine_s_ = "yamaha v8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (year VARCHAR, engine_s_ VARCHAR) Question: Which year has an Engine(s) of yamaha v8? [/INST] SELECT year FROM table_name_6 WHERE engine_s_ = "yamaha v8" </s> |
What are the average points with a Chassis of zakspeed 881? | CREATE TABLE table_name_40 (points INTEGER, chassis VARCHAR) | SELECT AVG(points) FROM table_name_40 WHERE chassis = "zakspeed 881" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (points INTEGER, chassis VARCHAR) Question: What are the average points with a Chassis of zakspeed 881? [/INST] SELECT AVG(points) FROM table_name_40 WHERE chassis = "zakspeed 881" </s> |
Which League has a Venue of martin luther king, jr. recreation center? | CREATE TABLE table_name_95 (league VARCHAR, venue VARCHAR) | SELECT league FROM table_name_95 WHERE venue = "martin luther king, jr. recreation center" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (league VARCHAR, venue VARCHAR) Question: Which League has a Venue of martin luther king, jr. recreation center? [/INST] SELECT league FROM table_name_95 WHERE venue = "martin luther king, jr. recreation center" </s> |
Which Championships (Years) have a League of milb, florida state league, and a Venue of ed smith stadium? | CREATE TABLE table_name_96 (championships__years_ VARCHAR, league VARCHAR, venue VARCHAR) | SELECT championships__years_ FROM table_name_96 WHERE league = "milb, florida state league" AND venue = "ed smith stadium" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (championships__years_ VARCHAR, league VARCHAR, venue VARCHAR) Question: Which Championships (Years) have a League of milb, florida state league, and a Venue of ed smith stadium? [/INST] SELECT championships__years_ FROM table_name_96 WHERE league = "milb, florida state league" AND venue = "ed smith stadium" </s> |
Which Sport has a League of continental basketball league, and a Venue of avalon middle school? | CREATE TABLE table_name_11 (sport VARCHAR, league VARCHAR, venue VARCHAR) | SELECT sport FROM table_name_11 WHERE league = "continental basketball league" AND venue = "avalon middle school" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (sport VARCHAR, league VARCHAR, venue VARCHAR) Question: Which Sport has a League of continental basketball league, and a Venue of avalon middle school? [/INST] SELECT sport FROM table_name_11 WHERE league = "continental basketball league" AND venue = "avalon middle school" </s> |
Which Venue has a Sport of baseball, Championships (Years) of 0, a League of milb, florida state league, and a Club of jupiter hammerheads? | CREATE TABLE table_name_38 (venue VARCHAR, club VARCHAR, league VARCHAR, sport VARCHAR, championships__years_ VARCHAR) | SELECT venue FROM table_name_38 WHERE sport = "baseball" AND championships__years_ = "0" AND league = "milb, florida state league" AND club = "jupiter hammerheads" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (venue VARCHAR, club VARCHAR, league VARCHAR, sport VARCHAR, championships__years_ VARCHAR) Question: Which Venue has a Sport of baseball, Championships (Years) of 0, a League of milb, florida state league, and a Club of jupiter hammerheads? [/INST] SELECT venue FROM table_name_38 WHERE sport = "baseball" AND championships__years_ = "0" AND league = "milb, florida state league" AND club = "jupiter hammerheads" </s> |
Which club has a League of american basketball association, and a Venue of tba? | CREATE TABLE table_name_86 (club VARCHAR, league VARCHAR, venue VARCHAR) | SELECT club FROM table_name_86 WHERE league = "american basketball association" AND venue = "tba" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (club VARCHAR, league VARCHAR, venue VARCHAR) Question: Which club has a League of american basketball association, and a Venue of tba? [/INST] SELECT club FROM table_name_86 WHERE league = "american basketball association" AND venue = "tba" </s> |
Which area has Years of 1–8, a Decile smaller than 7, and a Name of waikari school? | CREATE TABLE table_name_71 (area VARCHAR, name VARCHAR, years VARCHAR, decile VARCHAR) | SELECT area FROM table_name_71 WHERE years = "1–8" AND decile < 7 AND name = "waikari school" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (area VARCHAR, name VARCHAR, years VARCHAR, decile VARCHAR) Question: Which area has Years of 1–8, a Decile smaller than 7, and a Name of waikari school? [/INST] SELECT area FROM table_name_71 WHERE years = "1–8" AND decile < 7 AND name = "waikari school" </s> |
What is the average decile with Years of 1–8, and an Area of waipara? | CREATE TABLE table_name_98 (decile INTEGER, years VARCHAR, area VARCHAR) | SELECT AVG(decile) FROM table_name_98 WHERE years = "1–8" AND area = "waipara" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (decile INTEGER, years VARCHAR, area VARCHAR) Question: What is the average decile with Years of 1–8, and an Area of waipara? [/INST] SELECT AVG(decile) FROM table_name_98 WHERE years = "1–8" AND area = "waipara" </s> |
Which area has Years of 1–8, and a Name of broomfield school? | CREATE TABLE table_name_9 (area VARCHAR, years VARCHAR, name VARCHAR) | SELECT area FROM table_name_9 WHERE years = "1–8" AND name = "broomfield school" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (area VARCHAR, years VARCHAR, name VARCHAR) Question: Which area has Years of 1–8, and a Name of broomfield school? [/INST] SELECT area FROM table_name_9 WHERE years = "1–8" AND name = "broomfield school" </s> |
What is the smallest roll with a Decile larger than 6, and a Name of broomfield school? | CREATE TABLE table_name_40 (roll INTEGER, decile VARCHAR, name VARCHAR) | SELECT MIN(roll) FROM table_name_40 WHERE decile > 6 AND name = "broomfield school" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (roll INTEGER, decile VARCHAR, name VARCHAR) Question: What is the smallest roll with a Decile larger than 6, and a Name of broomfield school? [/INST] SELECT MIN(roll) FROM table_name_40 WHERE decile > 6 AND name = "broomfield school" </s> |
Which name has a Roll of 270? | CREATE TABLE table_name_97 (name VARCHAR, roll VARCHAR) | SELECT name FROM table_name_97 WHERE roll = 270 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (name VARCHAR, roll VARCHAR) Question: Which name has a Roll of 270? [/INST] SELECT name FROM table_name_97 WHERE roll = 270 </s> |
Who directed the episode written by Dan Serafin and aired on July 23, 2008? | CREATE TABLE table_name_52 (directed_by VARCHAR, written_by VARCHAR, original_airdate VARCHAR) | SELECT directed_by FROM table_name_52 WHERE written_by = "dan serafin" AND original_airdate = "july 23, 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (directed_by VARCHAR, written_by VARCHAR, original_airdate VARCHAR) Question: Who directed the episode written by Dan Serafin and aired on July 23, 2008? [/INST] SELECT directed_by FROM table_name_52 WHERE written_by = "dan serafin" AND original_airdate = "july 23, 2008" </s> |
What is the title of the episode originally aired on February 2, 2008? | CREATE TABLE table_name_65 (title VARCHAR, original_airdate VARCHAR) | SELECT title FROM table_name_65 WHERE original_airdate = "february 2, 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (title VARCHAR, original_airdate VARCHAR) Question: What is the title of the episode originally aired on February 2, 2008? [/INST] SELECT title FROM table_name_65 WHERE original_airdate = "february 2, 2008" </s> |
How much money did James Seddon request? | CREATE TABLE table_name_2 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR) | SELECT money_requested__£_ FROM table_name_2 WHERE entrepreneur_s_ = "james seddon" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR) Question: How much money did James Seddon request? [/INST] SELECT money_requested__£_ FROM table_name_2 WHERE entrepreneur_s_ = "james seddon" </s> |
Which Entrepreneur(s) first aired on 24 August 2006? | CREATE TABLE table_name_28 (entrepreneur_s_ VARCHAR, first_aired VARCHAR) | SELECT entrepreneur_s_ FROM table_name_28 WHERE first_aired = "24 august 2006" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (entrepreneur_s_ VARCHAR, first_aired VARCHAR) Question: Which Entrepreneur(s) first aired on 24 August 2006? [/INST] SELECT entrepreneur_s_ FROM table_name_28 WHERE first_aired = "24 august 2006" </s> |
Which Entrepreneur(s) have mixalbum? | CREATE TABLE table_name_69 (entrepreneur_s_ VARCHAR, company_or_product_name VARCHAR) | SELECT entrepreneur_s_ FROM table_name_69 WHERE company_or_product_name = "mixalbum" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (entrepreneur_s_ VARCHAR, company_or_product_name VARCHAR) Question: Which Entrepreneur(s) have mixalbum? [/INST] SELECT entrepreneur_s_ FROM table_name_69 WHERE company_or_product_name = "mixalbum" </s> |
How much money did Ian Chamings request? | CREATE TABLE table_name_78 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR) | SELECT money_requested__£_ FROM table_name_78 WHERE entrepreneur_s_ = "ian chamings" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR) Question: How much money did Ian Chamings request? [/INST] SELECT money_requested__£_ FROM table_name_78 WHERE entrepreneur_s_ = "ian chamings" </s> |
Which Investing Dragon(s) requested 100,000 in money and has autosafe? | CREATE TABLE table_name_74 (investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR, company_or_product_name VARCHAR) | SELECT investing_dragon_s_ FROM table_name_74 WHERE money_requested__£_ = "100,000" AND company_or_product_name = "autosafe" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR, company_or_product_name VARCHAR) Question: Which Investing Dragon(s) requested 100,000 in money and has autosafe? [/INST] SELECT investing_dragon_s_ FROM table_name_74 WHERE money_requested__£_ = "100,000" AND company_or_product_name = "autosafe" </s> |
How tall is the Anqing Bridge which opened prior to 2011? | CREATE TABLE table_name_8 (height_of_bridge_structure VARCHAR, opened VARCHAR, name VARCHAR) | SELECT height_of_bridge_structure FROM table_name_8 WHERE opened < 2011 AND name = "anqing bridge" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (height_of_bridge_structure VARCHAR, opened VARCHAR, name VARCHAR) Question: How tall is the Anqing Bridge which opened prior to 2011? [/INST] SELECT height_of_bridge_structure FROM table_name_8 WHERE opened < 2011 AND name = "anqing bridge" </s> |
Where did the cable-stayed Badong Bridge open in 2005? | CREATE TABLE table_name_18 (location VARCHAR, name VARCHAR, type VARCHAR, opened VARCHAR) | SELECT location FROM table_name_18 WHERE type = "cable-stayed" AND opened = 2005 AND name = "badong bridge" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (location VARCHAR, name VARCHAR, type VARCHAR, opened VARCHAR) Question: Where did the cable-stayed Badong Bridge open in 2005? [/INST] SELECT location FROM table_name_18 WHERE type = "cable-stayed" AND opened = 2005 AND name = "badong bridge" </s> |
Name the average year for janaprakal chandruang | CREATE TABLE table_name_53 (year INTEGER, performing_arts VARCHAR) | SELECT AVG(year) FROM table_name_53 WHERE performing_arts = "janaprakal chandruang" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (year INTEGER, performing_arts VARCHAR) Question: Name the average year for janaprakal chandruang [/INST] SELECT AVG(year) FROM table_name_53 WHERE performing_arts = "janaprakal chandruang" </s> |
Name the literature for pradit prasarttong | CREATE TABLE table_name_72 (literature VARCHAR, performing_arts VARCHAR) | SELECT literature FROM table_name_72 WHERE performing_arts = "pradit prasarttong" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (literature VARCHAR, performing_arts VARCHAR) Question: Name the literature for pradit prasarttong [/INST] SELECT literature FROM table_name_72 WHERE performing_arts = "pradit prasarttong" </s> |
What was the first year Fabrice Soulier was a runner-up? | CREATE TABLE table_name_43 (year INTEGER, runner_up VARCHAR) | SELECT MIN(year) FROM table_name_43 WHERE runner_up = "fabrice soulier" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (year INTEGER, runner_up VARCHAR) Question: What was the first year Fabrice Soulier was a runner-up? [/INST] SELECT MIN(year) FROM table_name_43 WHERE runner_up = "fabrice soulier" </s> |
How many entrants were there in 2011? | CREATE TABLE table_name_21 (entrants VARCHAR, year VARCHAR) | SELECT COUNT(entrants) FROM table_name_21 WHERE year = 2011 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (entrants VARCHAR, year VARCHAR) Question: How many entrants were there in 2011? [/INST] SELECT COUNT(entrants) FROM table_name_21 WHERE year = 2011 </s> |
What was the rank of Bobby Grim when he finished 1059 laps? | CREATE TABLE table_name_95 (rank VARCHAR, laps VARCHAR) | SELECT rank FROM table_name_95 WHERE laps = 1059 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (rank VARCHAR, laps VARCHAR) Question: What was the rank of Bobby Grim when he finished 1059 laps? [/INST] SELECT rank FROM table_name_95 WHERE laps = 1059 </s> |
What is the rd., time of the match with a win result, a tko type, and Carlos Molina as the opponent? | CREATE TABLE table_name_43 (rd VARCHAR, _time VARCHAR, opponent VARCHAR, res VARCHAR, type VARCHAR) | SELECT rd, _time FROM table_name_43 WHERE res = "win" AND type = "tko" AND opponent = "carlos molina" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (rd VARCHAR, _time VARCHAR, opponent VARCHAR, res VARCHAR, type VARCHAR) Question: What is the rd., time of the match with a win result, a tko type, and Carlos Molina as the opponent? [/INST] SELECT rd, _time FROM table_name_43 WHERE res = "win" AND type = "tko" AND opponent = "carlos molina" </s> |
What is the record of the match on 2009-07-18? | CREATE TABLE table_name_21 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_21 WHERE date = "2009-07-18" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (record VARCHAR, date VARCHAR) Question: What is the record of the match on 2009-07-18? [/INST] SELECT record FROM table_name_21 WHERE date = "2009-07-18" </s> |
What is the type of the match with a win result and Michael Gomez as the opponent? | CREATE TABLE table_name_79 (type VARCHAR, res VARCHAR, opponent VARCHAR) | SELECT type FROM table_name_79 WHERE res = "win" AND opponent = "michael gomez" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (type VARCHAR, res VARCHAR, opponent VARCHAR) Question: What is the type of the match with a win result and Michael Gomez as the opponent? [/INST] SELECT type FROM table_name_79 WHERE res = "win" AND opponent = "michael gomez" </s> |
What were the goals when the caps were set at 48? | CREATE TABLE table_name_66 (goals VARCHAR, caps VARCHAR) | SELECT goals FROM table_name_66 WHERE caps = 48 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (goals VARCHAR, caps VARCHAR) Question: What were the goals when the caps were set at 48? [/INST] SELECT goals FROM table_name_66 WHERE caps = 48 </s> |
How many caps did the player Mile Sterjovski have? | CREATE TABLE table_name_22 (caps VARCHAR, player VARCHAR) | SELECT caps FROM table_name_22 WHERE player = "mile sterjovski" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (caps VARCHAR, player VARCHAR) Question: How many caps did the player Mile Sterjovski have? [/INST] SELECT caps FROM table_name_22 WHERE player = "mile sterjovski" </s> |
What are the goals of Mile Sterjovski as a player? | CREATE TABLE table_name_59 (goals VARCHAR, player VARCHAR) | SELECT goals FROM table_name_59 WHERE player = "mile sterjovski" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (goals VARCHAR, player VARCHAR) Question: What are the goals of Mile Sterjovski as a player? [/INST] SELECT goals FROM table_name_59 WHERE player = "mile sterjovski" </s> |
How many caps did Mitchell Duke have overall? | CREATE TABLE table_name_32 (caps VARCHAR, player VARCHAR) | SELECT COUNT(caps) FROM table_name_32 WHERE player = "mitchell duke" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (caps VARCHAR, player VARCHAR) Question: How many caps did Mitchell Duke have overall? [/INST] SELECT COUNT(caps) FROM table_name_32 WHERE player = "mitchell duke" </s> |
Which opponent has a Date of 16 february 2003? | CREATE TABLE table_name_83 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_83 WHERE date = "16 february 2003" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (opponent VARCHAR, date VARCHAR) Question: Which opponent has a Date of 16 february 2003? [/INST] SELECT opponent FROM table_name_83 WHERE date = "16 february 2003" </s> |
Which date has an A venue with an Opponent of stoke city? | CREATE TABLE table_name_61 (date VARCHAR, venue VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_61 WHERE venue = "a" AND opponent = "stoke city" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (date VARCHAR, venue VARCHAR, opponent VARCHAR) Question: Which date has an A venue with an Opponent of stoke city? [/INST] SELECT date FROM table_name_61 WHERE venue = "a" AND opponent = "stoke city" </s> |
Which opponent has a Round of r5? | CREATE TABLE table_name_51 (opponent VARCHAR, round VARCHAR) | SELECT opponent FROM table_name_51 WHERE round = "r5" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (opponent VARCHAR, round VARCHAR) Question: Which opponent has a Round of r5? [/INST] SELECT opponent FROM table_name_51 WHERE round = "r5" </s> |
Which Scorers have a Venue of A, and an Opponent of arsenal? | CREATE TABLE table_name_41 (scorers VARCHAR, venue VARCHAR, opponent VARCHAR) | SELECT scorers FROM table_name_41 WHERE venue = "a" AND opponent = "arsenal" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (scorers VARCHAR, venue VARCHAR, opponent VARCHAR) Question: Which Scorers have a Venue of A, and an Opponent of arsenal? [/INST] SELECT scorers FROM table_name_41 WHERE venue = "a" AND opponent = "arsenal" </s> |
Which Opponent has a Round of qf replay? | CREATE TABLE table_name_22 (opponent VARCHAR, round VARCHAR) | SELECT opponent FROM table_name_22 WHERE round = "qf replay" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (opponent VARCHAR, round VARCHAR) Question: Which Opponent has a Round of qf replay? [/INST] SELECT opponent FROM table_name_22 WHERE round = "qf replay" </s> |
Who took the loss on the April 6 game? | CREATE TABLE table_name_84 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_84 WHERE date = "april 6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (loss VARCHAR, date VARCHAR) Question: Who took the loss on the April 6 game? [/INST] SELECT loss FROM table_name_84 WHERE date = "april 6" </s> |
What was the record after the April 15 game? | CREATE TABLE table_name_75 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_75 WHERE date = "april 15" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (record VARCHAR, date VARCHAR) Question: What was the record after the April 15 game? [/INST] SELECT record FROM table_name_75 WHERE date = "april 15" </s> |
Who was the opponent that led to a 10-13 record? | CREATE TABLE table_name_38 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_38 WHERE record = "10-13" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (opponent VARCHAR, record VARCHAR) Question: Who was the opponent that led to a 10-13 record? [/INST] SELECT opponent FROM table_name_38 WHERE record = "10-13" </s> |
What is the record after the April 6 game? | CREATE TABLE table_name_14 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_14 WHERE date = "april 6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (record VARCHAR, date VARCHAR) Question: What is the record after the April 6 game? [/INST] SELECT record FROM table_name_14 WHERE date = "april 6" </s> |
What was the score for the April 12 game? | CREATE TABLE table_name_73 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_73 WHERE date = "april 12" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (score VARCHAR, date VARCHAR) Question: What was the score for the April 12 game? [/INST] SELECT score FROM table_name_73 WHERE date = "april 12" </s> |
What team has the most wins with at least 18 goals and less than 5 losses? | CREATE TABLE table_name_85 (wins INTEGER, goals_for VARCHAR, losses VARCHAR) | SELECT MAX(wins) FROM table_name_85 WHERE goals_for = 18 AND losses < 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (wins INTEGER, goals_for VARCHAR, losses VARCHAR) Question: What team has the most wins with at least 18 goals and less than 5 losses? [/INST] SELECT MAX(wins) FROM table_name_85 WHERE goals_for = 18 AND losses < 5 </s> |
How many times has the Cornwall HC team, that has scored more than 18 goals, lost ? | CREATE TABLE table_name_12 (losses VARCHAR, team VARCHAR, goals_for VARCHAR) | SELECT COUNT(losses) FROM table_name_12 WHERE team = "cornwall hc" AND goals_for > 18 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (losses VARCHAR, team VARCHAR, goals_for VARCHAR) Question: How many times has the Cornwall HC team, that has scored more than 18 goals, lost ? [/INST] SELECT COUNT(losses) FROM table_name_12 WHERE team = "cornwall hc" AND goals_for > 18 </s> |
What is the series number that has a production code of 50021–50025? | CREATE TABLE table_name_19 (number_in_series INTEGER, production_code VARCHAR) | SELECT MAX(number_in_series) FROM table_name_19 WHERE production_code = "50021–50025" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (number_in_series INTEGER, production_code VARCHAR) Question: What is the series number that has a production code of 50021–50025? [/INST] SELECT MAX(number_in_series) FROM table_name_19 WHERE production_code = "50021–50025" </s> |
Which county team has jimmy finn as the player? | CREATE TABLE table_name_88 (county_team VARCHAR, player VARCHAR) | SELECT county_team FROM table_name_88 WHERE player = "jimmy finn" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (county_team VARCHAR, player VARCHAR) Question: Which county team has jimmy finn as the player? [/INST] SELECT county_team FROM table_name_88 WHERE player = "jimmy finn" </s> |
How many team numbers have john keane as the player? | CREATE TABLE table_name_93 (team_number VARCHAR, player VARCHAR) | SELECT COUNT(team_number) FROM table_name_93 WHERE player = "john keane" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (team_number VARCHAR, player VARCHAR) Question: How many team numbers have john keane as the player? [/INST] SELECT COUNT(team_number) FROM table_name_93 WHERE player = "john keane" </s> |
Which position has john keane as the player? | CREATE TABLE table_name_15 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_15 WHERE player = "john keane" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (position VARCHAR, player VARCHAR) Question: Which position has john keane as the player? [/INST] SELECT position FROM table_name_15 WHERE player = "john keane" </s> |
What was the loss of the game when the record was 27-17? | CREATE TABLE table_name_61 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_61 WHERE record = "27-17" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (loss VARCHAR, record VARCHAR) Question: What was the loss of the game when the record was 27-17? [/INST] SELECT loss FROM table_name_61 WHERE record = "27-17" </s> |
What are the smallest goals with wins smaller than 16, and a Draws larger than 14? | CREATE TABLE table_name_48 (goals_against INTEGER, wins VARCHAR, draws VARCHAR) | SELECT MIN(goals_against) FROM table_name_48 WHERE wins < 16 AND draws > 14 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (goals_against INTEGER, wins VARCHAR, draws VARCHAR) Question: What are the smallest goals with wins smaller than 16, and a Draws larger than 14? [/INST] SELECT MIN(goals_against) FROM table_name_48 WHERE wins < 16 AND draws > 14 </s> |
What are the average wins with a Points of 42-2, and Goals against of 67, and Played smaller than 44? | CREATE TABLE table_name_86 (wins INTEGER, played VARCHAR, points VARCHAR, goals_against VARCHAR) | SELECT AVG(wins) FROM table_name_86 WHERE points = "42-2" AND goals_against = 67 AND played < 44 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (wins INTEGER, played VARCHAR, points VARCHAR, goals_against VARCHAR) Question: What are the average wins with a Points of 42-2, and Goals against of 67, and Played smaller than 44? [/INST] SELECT AVG(wins) FROM table_name_86 WHERE points = "42-2" AND goals_against = 67 AND played < 44 </s> |
Which average wins have a Club of barcelona atlètic, and Goals for larger than 56? | CREATE TABLE table_name_59 (wins INTEGER, club VARCHAR, goals_for VARCHAR) | SELECT AVG(wins) FROM table_name_59 WHERE club = "barcelona atlètic" AND goals_for > 56 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (wins INTEGER, club VARCHAR, goals_for VARCHAR) Question: Which average wins have a Club of barcelona atlètic, and Goals for larger than 56? [/INST] SELECT AVG(wins) FROM table_name_59 WHERE club = "barcelona atlètic" AND goals_for > 56 </s> |
Which lowest position has goals against smaller than 78, Points of 42-2, and Wins larger than 15? | CREATE TABLE table_name_63 (position INTEGER, wins VARCHAR, goals_against VARCHAR, points VARCHAR) | SELECT MIN(position) FROM table_name_63 WHERE goals_against < 78 AND points = "42-2" AND wins > 15 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (position INTEGER, wins VARCHAR, goals_against VARCHAR, points VARCHAR) Question: Which lowest position has goals against smaller than 78, Points of 42-2, and Wins larger than 15? [/INST] SELECT MIN(position) FROM table_name_63 WHERE goals_against < 78 AND points = "42-2" AND wins > 15 </s> |
Which lowest played has a Position of 2, and Goals against larger than 53? | CREATE TABLE table_name_6 (played INTEGER, position VARCHAR, goals_against VARCHAR) | SELECT MIN(played) FROM table_name_6 WHERE position = 2 AND goals_against > 53 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (played INTEGER, position VARCHAR, goals_against VARCHAR) Question: Which lowest played has a Position of 2, and Goals against larger than 53? [/INST] SELECT MIN(played) FROM table_name_6 WHERE position = 2 AND goals_against > 53 </s> |
How many goal differences have Played larger than 44? | CREATE TABLE table_name_99 (goal_difference INTEGER, played INTEGER) | SELECT SUM(goal_difference) FROM table_name_99 WHERE played > 44 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (goal_difference INTEGER, played INTEGER) Question: How many goal differences have Played larger than 44? [/INST] SELECT SUM(goal_difference) FROM table_name_99 WHERE played > 44 </s> |
What year was the race in Vienna, Austria? | CREATE TABLE table_name_72 (year INTEGER, venue VARCHAR) | SELECT MIN(year) FROM table_name_72 WHERE venue = "vienna, austria" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (year INTEGER, venue VARCHAR) Question: What year was the race in Vienna, Austria? [/INST] SELECT MIN(year) FROM table_name_72 WHERE venue = "vienna, austria" </s> |
What event (Extra) in 2002 did the competitor compete in and place 8th? | CREATE TABLE table_name_80 (extra VARCHAR, year VARCHAR, result VARCHAR) | SELECT extra FROM table_name_80 WHERE year = 2002 AND result = "8th" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (extra VARCHAR, year VARCHAR, result VARCHAR) Question: What event (Extra) in 2002 did the competitor compete in and place 8th? [/INST] SELECT extra FROM table_name_80 WHERE year = 2002 AND result = "8th" </s> |
Where was the Olympic Games held? | CREATE TABLE table_name_29 (venue VARCHAR, tournament VARCHAR) | SELECT venue FROM table_name_29 WHERE tournament = "olympic games" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (venue VARCHAR, tournament VARCHAR) Question: Where was the Olympic Games held? [/INST] SELECT venue FROM table_name_29 WHERE tournament = "olympic games" </s> |
That is the value for Try bonus when the value for Points is 418? | CREATE TABLE table_name_82 (try_bonus VARCHAR, points_for VARCHAR) | SELECT try_bonus FROM table_name_82 WHERE points_for = "418" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (try_bonus VARCHAR, points_for VARCHAR) Question: That is the value for Try bonus when the value for Points is 418? [/INST] SELECT try_bonus FROM table_name_82 WHERE points_for = "418" </s> |
What is the Club, when the value for Played is 22, and when the value for Tries is 41? | CREATE TABLE table_name_44 (club VARCHAR, played VARCHAR, tries_for VARCHAR) | SELECT club FROM table_name_44 WHERE played = "22" AND tries_for = "41" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (club VARCHAR, played VARCHAR, tries_for VARCHAR) Question: What is the Club, when the value for Played is 22, and when the value for Tries is 41? [/INST] SELECT club FROM table_name_44 WHERE played = "22" AND tries_for = "41" </s> |
What is the value for Drawn, when the value for Losing bonus is 6? | CREATE TABLE table_name_12 (drawn VARCHAR, losing_bonus VARCHAR) | SELECT drawn FROM table_name_12 WHERE losing_bonus = "6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (drawn VARCHAR, losing_bonus VARCHAR) Question: What is the value for Drawn, when the value for Losing bonus is 6? [/INST] SELECT drawn FROM table_name_12 WHERE losing_bonus = "6" </s> |
What is the value for Lost, when the value for Try bonus is 2, and when the value for Losing bonus is 4? | CREATE TABLE table_name_35 (lost VARCHAR, try_bonus VARCHAR, losing_bonus VARCHAR) | SELECT lost FROM table_name_35 WHERE try_bonus = "2" AND losing_bonus = "4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (lost VARCHAR, try_bonus VARCHAR, losing_bonus VARCHAR) Question: What is the value for Lost, when the value for Try bonus is 2, and when the value for Losing bonus is 4? [/INST] SELECT lost FROM table_name_35 WHERE try_bonus = "2" AND losing_bonus = "4" </s> |
What is the Losing bonus, when the value for Points is 43? | CREATE TABLE table_name_61 (losing_bonus VARCHAR, points VARCHAR) | SELECT losing_bonus FROM table_name_61 WHERE points = "43" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (losing_bonus VARCHAR, points VARCHAR) Question: What is the Losing bonus, when the value for Points is 43? [/INST] SELECT losing_bonus FROM table_name_61 WHERE points = "43" </s> |
What is the Club, when the value for Lost is 9, and when the value for Tries is 55? | CREATE TABLE table_name_8 (club VARCHAR, lost VARCHAR, tries_for VARCHAR) | SELECT club FROM table_name_8 WHERE lost = "9" AND tries_for = "55" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (club VARCHAR, lost VARCHAR, tries_for VARCHAR) Question: What is the Club, when the value for Lost is 9, and when the value for Tries is 55? [/INST] SELECT club FROM table_name_8 WHERE lost = "9" AND tries_for = "55" </s> |
What is the largest draw with 37 games from England? | CREATE TABLE table_name_65 (drawn INTEGER, nationality VARCHAR, games VARCHAR) | SELECT MAX(drawn) FROM table_name_65 WHERE nationality = "england" AND games = 37 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (drawn INTEGER, nationality VARCHAR, games VARCHAR) Question: What is the largest draw with 37 games from England? [/INST] SELECT MAX(drawn) FROM table_name_65 WHERE nationality = "england" AND games = 37 </s> |
How many draws have a Cambridge United career of 2008–2009 and less than 13 losses? | CREATE TABLE table_name_2 (drawn VARCHAR, cambridge_united_career VARCHAR, lost VARCHAR) | SELECT COUNT(drawn) FROM table_name_2 WHERE cambridge_united_career = "2008–2009" AND lost < 13 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (drawn VARCHAR, cambridge_united_career VARCHAR, lost VARCHAR) Question: How many draws have a Cambridge United career of 2008–2009 and less than 13 losses? [/INST] SELECT COUNT(drawn) FROM table_name_2 WHERE cambridge_united_career = "2008–2009" AND lost < 13 </s> |
What was the record at the game when the score was 1–0? | CREATE TABLE table_name_66 (record VARCHAR, score VARCHAR) | SELECT record FROM table_name_66 WHERE score = "1–0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (record VARCHAR, score VARCHAR) Question: What was the record at the game when the score was 1–0? [/INST] SELECT record FROM table_name_66 WHERE score = "1–0" </s> |
What was the score of the game when the record was 19–13–3? | CREATE TABLE table_name_92 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_92 WHERE record = "19–13–3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (score VARCHAR, record VARCHAR) Question: What was the score of the game when the record was 19–13–3? [/INST] SELECT score FROM table_name_92 WHERE record = "19–13–3" </s> |
Who was the visiting team when the score was 1–3? | CREATE TABLE table_name_16 (visitor VARCHAR, score VARCHAR) | SELECT visitor FROM table_name_16 WHERE score = "1–3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (visitor VARCHAR, score VARCHAR) Question: Who was the visiting team when the score was 1–3? [/INST] SELECT visitor FROM table_name_16 WHERE score = "1–3" </s> |
Who was the home team when there was a record of 20–13–3? | CREATE TABLE table_name_52 (home VARCHAR, record VARCHAR) | SELECT home FROM table_name_52 WHERE record = "20–13–3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (home VARCHAR, record VARCHAR) Question: Who was the home team when there was a record of 20–13–3? [/INST] SELECT home FROM table_name_52 WHERE record = "20–13–3" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.