instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
What is the venue when the year is after 2001 for the summer olympics?
|
CREATE TABLE table_name_56 (venue VARCHAR, year VARCHAR, competition VARCHAR)
|
SELECT venue FROM table_name_56 WHERE year > 2001 AND competition = "summer olympics"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (venue VARCHAR, year VARCHAR, competition VARCHAR) Question: What is the venue when the year is after 2001 for the summer olympics? [/INST] SELECT venue FROM table_name_56 WHERE year > 2001 AND competition = "summer olympics" </s>
|
What is the total attendance for the August 8 game?
|
CREATE TABLE table_name_48 (attendance INTEGER, date VARCHAR)
|
SELECT SUM(attendance) FROM table_name_48 WHERE date = "august 8"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (attendance INTEGER, date VARCHAR) Question: What is the total attendance for the August 8 game? [/INST] SELECT SUM(attendance) FROM table_name_48 WHERE date = "august 8" </s>
|
Which opponent led to a 56-59 record?
|
CREATE TABLE table_name_53 (opponent VARCHAR, record VARCHAR)
|
SELECT opponent FROM table_name_53 WHERE record = "56-59"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (opponent VARCHAR, record VARCHAR) Question: Which opponent led to a 56-59 record? [/INST] SELECT opponent FROM table_name_53 WHERE record = "56-59" </s>
|
Where did they play that the score was 22-12?
|
CREATE TABLE table_name_21 (venue VARCHAR, result VARCHAR)
|
SELECT venue FROM table_name_21 WHERE result = "22-12"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (venue VARCHAR, result VARCHAR) Question: Where did they play that the score was 22-12? [/INST] SELECT venue FROM table_name_21 WHERE result = "22-12" </s>
|
What language is spoken after 2007 for the role of urvashi mathur?
|
CREATE TABLE table_name_56 (language VARCHAR, year VARCHAR, role VARCHAR)
|
SELECT language FROM table_name_56 WHERE year > 2007 AND role = "urvashi mathur"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (language VARCHAR, year VARCHAR, role VARCHAR) Question: What language is spoken after 2007 for the role of urvashi mathur? [/INST] SELECT language FROM table_name_56 WHERE year > 2007 AND role = "urvashi mathur" </s>
|
What role is spoken in hindi in 2011?
|
CREATE TABLE table_name_26 (role VARCHAR, language VARCHAR, year VARCHAR)
|
SELECT role FROM table_name_26 WHERE language = "hindi" AND year = 2011
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (role VARCHAR, language VARCHAR, year VARCHAR) Question: What role is spoken in hindi in 2011? [/INST] SELECT role FROM table_name_26 WHERE language = "hindi" AND year = 2011 </s>
|
What is the note section for the role with a language of hindi and a title of miley naa miley hum?
|
CREATE TABLE table_name_30 (notes VARCHAR, language VARCHAR, title VARCHAR)
|
SELECT notes FROM table_name_30 WHERE language = "hindi" AND title = "miley naa miley hum"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (notes VARCHAR, language VARCHAR, title VARCHAR) Question: What is the note section for the role with a language of hindi and a title of miley naa miley hum? [/INST] SELECT notes FROM table_name_30 WHERE language = "hindi" AND title = "miley naa miley hum" </s>
|
What is the title of the song that has a translation of Without Me?
|
CREATE TABLE table_name_38 (title VARCHAR, english_translation VARCHAR)
|
SELECT title FROM table_name_38 WHERE english_translation = "without me"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (title VARCHAR, english_translation VARCHAR) Question: What is the title of the song that has a translation of Without Me? [/INST] SELECT title FROM table_name_38 WHERE english_translation = "without me" </s>
|
what is the molecules when the percent mass is 1.0?
|
CREATE TABLE table_name_8 (molecules VARCHAR, percent_of_mass VARCHAR)
|
SELECT molecules FROM table_name_8 WHERE percent_of_mass = "1.0"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (molecules VARCHAR, percent_of_mass VARCHAR) Question: what is the molecules when the percent mass is 1.0? [/INST] SELECT molecules FROM table_name_8 WHERE percent_of_mass = "1.0" </s>
|
what is the mol.weight (daltons) when the percent of mass is 1.5?
|
CREATE TABLE table_name_47 (molweight__daltons_ VARCHAR, percent_of_mass VARCHAR)
|
SELECT molweight__daltons_ FROM table_name_47 WHERE percent_of_mass = "1.5"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (molweight__daltons_ VARCHAR, percent_of_mass VARCHAR) Question: what is the mol.weight (daltons) when the percent of mass is 1.5? [/INST] SELECT molweight__daltons_ FROM table_name_47 WHERE percent_of_mass = "1.5" </s>
|
what is the perfect of mass when the molecules is 1.74e14*?
|
CREATE TABLE table_name_58 (percent_of_mass VARCHAR, molecules VARCHAR)
|
SELECT percent_of_mass FROM table_name_58 WHERE molecules = "1.74e14*"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (percent_of_mass VARCHAR, molecules VARCHAR) Question: what is the perfect of mass when the molecules is 1.74e14*? [/INST] SELECT percent_of_mass FROM table_name_58 WHERE molecules = "1.74e14*" </s>
|
what is the percent of mass when the mol.weight (daltons) is 1e11?
|
CREATE TABLE table_name_21 (percent_of_mass VARCHAR, molweight__daltons_ VARCHAR)
|
SELECT percent_of_mass FROM table_name_21 WHERE molweight__daltons_ = "1e11"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (percent_of_mass VARCHAR, molweight__daltons_ VARCHAR) Question: what is the percent of mass when the mol.weight (daltons) is 1e11? [/INST] SELECT percent_of_mass FROM table_name_21 WHERE molweight__daltons_ = "1e11" </s>
|
How many people attended the game when the away team was dynamo kyiv, and a Home team of torpedo zaporizhia?
|
CREATE TABLE table_name_31 (attendance VARCHAR, away_team VARCHAR, home_team VARCHAR)
|
SELECT attendance FROM table_name_31 WHERE away_team = "dynamo kyiv" AND home_team = "torpedo zaporizhia"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (attendance VARCHAR, away_team VARCHAR, home_team VARCHAR) Question: How many people attended the game when the away team was dynamo kyiv, and a Home team of torpedo zaporizhia? [/INST] SELECT attendance FROM table_name_31 WHERE away_team = "dynamo kyiv" AND home_team = "torpedo zaporizhia" </s>
|
What was the round when the home team was chornomorets odessa?
|
CREATE TABLE table_name_55 (round VARCHAR, home_team VARCHAR)
|
SELECT round FROM table_name_55 WHERE home_team = "chornomorets odessa"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (round VARCHAR, home_team VARCHAR) Question: What was the round when the home team was chornomorets odessa? [/INST] SELECT round FROM table_name_55 WHERE home_team = "chornomorets odessa" </s>
|
What is the rank when the game was at dnipro stadium , kremenchuk?
|
CREATE TABLE table_name_55 (rank VARCHAR, location VARCHAR)
|
SELECT rank FROM table_name_55 WHERE location = "dnipro stadium , kremenchuk"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (rank VARCHAR, location VARCHAR) Question: What is the rank when the game was at dnipro stadium , kremenchuk? [/INST] SELECT rank FROM table_name_55 WHERE location = "dnipro stadium , kremenchuk" </s>
|
What are the lowest points for the engines of the Lamborghini v12 and the Chassis on Minardi m191b?
|
CREATE TABLE table_name_48 (points INTEGER, engine VARCHAR, chassis VARCHAR)
|
SELECT MIN(points) FROM table_name_48 WHERE engine = "lamborghini v12" AND chassis = "minardi m191b"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (points INTEGER, engine VARCHAR, chassis VARCHAR) Question: What are the lowest points for the engines of the Lamborghini v12 and the Chassis on Minardi m191b? [/INST] SELECT MIN(points) FROM table_name_48 WHERE engine = "lamborghini v12" AND chassis = "minardi m191b" </s>
|
What is the Chassis from before 1997 with a Lamborghini v12 engine?
|
CREATE TABLE table_name_98 (chassis VARCHAR, year VARCHAR, engine VARCHAR)
|
SELECT chassis FROM table_name_98 WHERE year < 1997 AND engine = "lamborghini v12"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (chassis VARCHAR, year VARCHAR, engine VARCHAR) Question: What is the Chassis from before 1997 with a Lamborghini v12 engine? [/INST] SELECT chassis FROM table_name_98 WHERE year < 1997 AND engine = "lamborghini v12" </s>
|
What is the total of the year with a point larger than 0 or the Chassis of Minardi m190?
|
CREATE TABLE table_name_32 (year INTEGER, chassis VARCHAR, points VARCHAR)
|
SELECT SUM(year) FROM table_name_32 WHERE chassis = "minardi m190" 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, chassis VARCHAR, points VARCHAR) Question: What is the total of the year with a point larger than 0 or the Chassis of Minardi m190? [/INST] SELECT SUM(year) FROM table_name_32 WHERE chassis = "minardi m190" AND points > 0 </s>
|
What are the lowest points from 1992 with a Chassis of Minardi m192?
|
CREATE TABLE table_name_89 (points INTEGER, year VARCHAR, chassis VARCHAR)
|
SELECT MIN(points) FROM table_name_89 WHERE year = 1992 AND chassis = "minardi m192"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (points INTEGER, year VARCHAR, chassis VARCHAR) Question: What are the lowest points from 1992 with a Chassis of Minardi m192? [/INST] SELECT MIN(points) FROM table_name_89 WHERE year = 1992 AND chassis = "minardi m192" </s>
|
What Entrant has 0 points and from 1997?
|
CREATE TABLE table_name_67 (entrant VARCHAR, points VARCHAR, year VARCHAR)
|
SELECT entrant FROM table_name_67 WHERE points = 0 AND year = 1997
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (entrant VARCHAR, points VARCHAR, year VARCHAR) Question: What Entrant has 0 points and from 1997? [/INST] SELECT entrant FROM table_name_67 WHERE points = 0 AND year = 1997 </s>
|
What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area?
|
CREATE TABLE table_name_98 (roll VARCHAR, area VARCHAR, decile VARCHAR, authority VARCHAR)
|
SELECT COUNT(roll) FROM table_name_98 WHERE decile = 7 AND authority = "state" AND area = "macraes flat"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (roll VARCHAR, area VARCHAR, decile VARCHAR, authority VARCHAR) Question: What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area? [/INST] SELECT COUNT(roll) FROM table_name_98 WHERE decile = 7 AND authority = "state" AND area = "macraes flat" </s>
|
What year has a decile more than 6, in the Waikouaiti area?
|
CREATE TABLE table_name_78 (years VARCHAR, decile VARCHAR, area VARCHAR)
|
SELECT years FROM table_name_78 WHERE decile > 6 AND area = "waikouaiti"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (years VARCHAR, decile VARCHAR, area VARCHAR) Question: What year has a decile more than 6, in the Waikouaiti area? [/INST] SELECT years FROM table_name_78 WHERE decile > 6 AND area = "waikouaiti" </s>
|
What place did the Nashville Metros place in the 1994/95 Season?
|
CREATE TABLE table_name_64 (regular_season VARCHAR, year VARCHAR)
|
SELECT regular_season FROM table_name_64 WHERE year = "1994/95"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (regular_season VARCHAR, year VARCHAR) Question: What place did the Nashville Metros place in the 1994/95 Season? [/INST] SELECT regular_season FROM table_name_64 WHERE year = "1994/95" </s>
|
What years did the Nashville Metros have Usisl Indoor League?
|
CREATE TABLE table_name_63 (year VARCHAR, league VARCHAR)
|
SELECT year FROM table_name_63 WHERE league = "usisl indoor"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (year VARCHAR, league VARCHAR) Question: What years did the Nashville Metros have Usisl Indoor League? [/INST] SELECT year FROM table_name_63 WHERE league = "usisl indoor" </s>
|
Which Round has kim eun-ha as an Opponent?
|
CREATE TABLE table_name_37 (round VARCHAR, opponent VARCHAR)
|
SELECT round FROM table_name_37 WHERE opponent = "kim eun-ha"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (round VARCHAR, opponent VARCHAR) Question: Which Round has kim eun-ha as an Opponent? [/INST] SELECT round FROM table_name_37 WHERE opponent = "kim eun-ha" </s>
|
Which kind of Edition that has a Surface of clay, and Park Sung-Hee as an opponent?
|
CREATE TABLE table_name_95 (edition VARCHAR, surface VARCHAR, opponent VARCHAR)
|
SELECT edition FROM table_name_95 WHERE surface = "clay" AND opponent = "park sung-hee"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (edition VARCHAR, surface VARCHAR, opponent VARCHAR) Question: Which kind of Edition that has a Surface of clay, and Park Sung-Hee as an opponent? [/INST] SELECT edition FROM table_name_95 WHERE surface = "clay" AND opponent = "park sung-hee" </s>
|
What is the highest gold number count where a county had over 9 golds and 10 silvers?
|
CREATE TABLE table_name_87 (gold INTEGER, total VARCHAR, silver VARCHAR)
|
SELECT MAX(gold) FROM table_name_87 WHERE total > 9 AND silver > 10
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (gold INTEGER, total VARCHAR, silver VARCHAR) Question: What is the highest gold number count where a county had over 9 golds and 10 silvers? [/INST] SELECT MAX(gold) FROM table_name_87 WHERE total > 9 AND silver > 10 </s>
|
How many bronze medals did the country with 7 medals and over 5 silver medals receive?
|
CREATE TABLE table_name_88 (bronze INTEGER, total VARCHAR, silver VARCHAR)
|
SELECT SUM(bronze) FROM table_name_88 WHERE total = 7 AND silver > 5
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (bronze INTEGER, total VARCHAR, silver VARCHAR) Question: How many bronze medals did the country with 7 medals and over 5 silver medals receive? [/INST] SELECT SUM(bronze) FROM table_name_88 WHERE total = 7 AND silver > 5 </s>
|
Name the date for venue of lord's
|
CREATE TABLE table_name_78 (date VARCHAR, venue VARCHAR)
|
SELECT date FROM table_name_78 WHERE venue = "lord's"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (date VARCHAR, venue VARCHAR) Question: Name the date for venue of lord's [/INST] SELECT date FROM table_name_78 WHERE venue = "lord's" </s>
|
Name the result for venue of lord's
|
CREATE TABLE table_name_82 (result VARCHAR, venue VARCHAR)
|
SELECT result FROM table_name_82 WHERE venue = "lord's"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (result VARCHAR, venue VARCHAR) Question: Name the result for venue of lord's [/INST] SELECT result FROM table_name_82 WHERE venue = "lord's" </s>
|
Name the date for result of eng by 23 runs
|
CREATE TABLE table_name_24 (date VARCHAR, result VARCHAR)
|
SELECT date FROM table_name_24 WHERE result = "eng by 23 runs"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (date VARCHAR, result VARCHAR) Question: Name the date for result of eng by 23 runs [/INST] SELECT date FROM table_name_24 WHERE result = "eng by 23 runs" </s>
|
Name the date for result of draw, and venue of edgbaston
|
CREATE TABLE table_name_37 (date VARCHAR, result VARCHAR, venue VARCHAR)
|
SELECT date FROM table_name_37 WHERE result = "draw" AND venue = "edgbaston"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (date VARCHAR, result VARCHAR, venue VARCHAR) Question: Name the date for result of draw, and venue of edgbaston [/INST] SELECT date FROM table_name_37 WHERE result = "draw" AND venue = "edgbaston" </s>
|
What is the total number of weeks that the Seahawks had a record of 5-5?
|
CREATE TABLE table_name_73 (week VARCHAR, record VARCHAR)
|
SELECT COUNT(week) FROM table_name_73 WHERE record = "5-5"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (week VARCHAR, record VARCHAR) Question: What is the total number of weeks that the Seahawks had a record of 5-5? [/INST] SELECT COUNT(week) FROM table_name_73 WHERE record = "5-5" </s>
|
Who has 1 win, 1 loss, and has played 2 matches?
|
CREATE TABLE table_name_77 (name VARCHAR, matches VARCHAR, wins VARCHAR, losses VARCHAR)
|
SELECT name FROM table_name_77 WHERE wins = "1" AND losses = "1" AND matches = "2"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (name VARCHAR, matches VARCHAR, wins VARCHAR, losses VARCHAR) Question: Who has 1 win, 1 loss, and has played 2 matches? [/INST] SELECT name FROM table_name_77 WHERE wins = "1" AND losses = "1" AND matches = "2" </s>
|
Who has 5 losses and has played 11 matches?
|
CREATE TABLE table_name_47 (name VARCHAR, losses VARCHAR, matches VARCHAR)
|
SELECT name FROM table_name_47 WHERE losses = "5" AND matches = "11"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (name VARCHAR, losses VARCHAR, matches VARCHAR) Question: Who has 5 losses and has played 11 matches? [/INST] SELECT name FROM table_name_47 WHERE losses = "5" AND matches = "11" </s>
|
How many matches has Mohammad Al-Shamlan played when there is 1 win?
|
CREATE TABLE table_name_43 (matches VARCHAR, wins VARCHAR, name VARCHAR)
|
SELECT matches FROM table_name_43 WHERE wins = "1" AND name = "mohammad al-shamlan"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (matches VARCHAR, wins VARCHAR, name VARCHAR) Question: How many matches has Mohammad Al-Shamlan played when there is 1 win? [/INST] SELECT matches FROM table_name_43 WHERE wins = "1" AND name = "mohammad al-shamlan" </s>
|
How many matches were played when there was 1 draw and 1 win?
|
CREATE TABLE table_name_92 (matches VARCHAR, draws VARCHAR, wins VARCHAR)
|
SELECT matches FROM table_name_92 WHERE draws = "1" AND wins = "1"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (matches VARCHAR, draws VARCHAR, wins VARCHAR) Question: How many matches were played when there was 1 draw and 1 win? [/INST] SELECT matches FROM table_name_92 WHERE draws = "1" AND wins = "1" </s>
|
Name the played with lost of 5
|
CREATE TABLE table_name_65 (played VARCHAR, lost VARCHAR)
|
SELECT played FROM table_name_65 WHERE lost = "5"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (played VARCHAR, lost VARCHAR) Question: Name the played with lost of 5 [/INST] SELECT played FROM table_name_65 WHERE lost = "5" </s>
|
Name the played with points against of points against
|
CREATE TABLE table_name_95 (played VARCHAR, points_against VARCHAR)
|
SELECT played FROM table_name_95 WHERE points_against = "points against"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (played VARCHAR, points_against VARCHAR) Question: Name the played with points against of points against [/INST] SELECT played FROM table_name_95 WHERE points_against = "points against" </s>
|
Name the tries with tries against of 38
|
CREATE TABLE table_name_35 (tries_for VARCHAR, tries_against VARCHAR)
|
SELECT tries_for FROM table_name_35 WHERE tries_against = "38"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (tries_for VARCHAR, tries_against VARCHAR) Question: Name the tries with tries against of 38 [/INST] SELECT tries_for FROM table_name_35 WHERE tries_against = "38" </s>
|
Name the points against when tries against is 51 and points is 52 with played of 22
|
CREATE TABLE table_name_91 (points_against VARCHAR, tries_against VARCHAR, played VARCHAR, points VARCHAR)
|
SELECT points_against FROM table_name_91 WHERE played = "22" AND points = "52" AND tries_against = "51"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (points_against VARCHAR, tries_against VARCHAR, played VARCHAR, points VARCHAR) Question: Name the points against when tries against is 51 and points is 52 with played of 22 [/INST] SELECT points_against FROM table_name_91 WHERE played = "22" AND points = "52" AND tries_against = "51" </s>
|
Name the points against for cwmllynfell rfc
|
CREATE TABLE table_name_27 (points_against VARCHAR, club VARCHAR)
|
SELECT points_against FROM table_name_27 WHERE club = "cwmllynfell rfc"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (points_against VARCHAR, club VARCHAR) Question: Name the points against for cwmllynfell rfc [/INST] SELECT points_against FROM table_name_27 WHERE club = "cwmllynfell rfc" </s>
|
What is lead for the Election Results polling firm and has a PSOE of 39.6% 175?
|
CREATE TABLE table_name_8 (lead VARCHAR, polling_firm VARCHAR, psoe VARCHAR)
|
SELECT lead FROM table_name_8 WHERE polling_firm = "election results" AND psoe = "39.6% 175"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (lead VARCHAR, polling_firm VARCHAR, psoe VARCHAR) Question: What is lead for the Election Results polling firm and has a PSOE of 39.6% 175? [/INST] SELECT lead FROM table_name_8 WHERE polling_firm = "election results" AND psoe = "39.6% 175" </s>
|
What is the PSOE for the Local Elections polling firm?
|
CREATE TABLE table_name_78 (psoe VARCHAR, polling_firm VARCHAR)
|
SELECT psoe FROM table_name_78 WHERE polling_firm = "local elections"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (psoe VARCHAR, polling_firm VARCHAR) Question: What is the PSOE for the Local Elections polling firm? [/INST] SELECT psoe FROM table_name_78 WHERE polling_firm = "local elections" </s>
|
Which date has a PSOE of 36.1%?
|
CREATE TABLE table_name_86 (date VARCHAR, psoe VARCHAR)
|
SELECT date FROM table_name_86 WHERE psoe = "36.1%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (date VARCHAR, psoe VARCHAR) Question: Which date has a PSOE of 36.1%? [/INST] SELECT date FROM table_name_86 WHERE psoe = "36.1%" </s>
|
Name the height with 9 floors
|
CREATE TABLE table_name_80 (height_ft___m VARCHAR, floors VARCHAR)
|
SELECT height_ft___m FROM table_name_80 WHERE floors = 9
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (height_ft___m VARCHAR, floors VARCHAR) Question: Name the height with 9 floors [/INST] SELECT height_ft___m FROM table_name_80 WHERE floors = 9 </s>
|
Name the years as tallest when floors are larger than 18
|
CREATE TABLE table_name_4 (years_as_tallest VARCHAR, floors INTEGER)
|
SELECT years_as_tallest FROM table_name_4 WHERE floors > 18
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (years_as_tallest VARCHAR, floors INTEGER) Question: Name the years as tallest when floors are larger than 18 [/INST] SELECT years_as_tallest FROM table_name_4 WHERE floors > 18 </s>
|
Tell me the name that has 17 floors
|
CREATE TABLE table_name_25 (name VARCHAR, floors VARCHAR)
|
SELECT name FROM table_name_25 WHERE floors = 17
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (name VARCHAR, floors VARCHAR) Question: Tell me the name that has 17 floors [/INST] SELECT name FROM table_name_25 WHERE floors = 17 </s>
|
Which was the position for overall less than 254, round less than 5 and pick number less than 13?
|
CREATE TABLE table_name_64 (position VARCHAR, pick__number VARCHAR, overall VARCHAR, round VARCHAR)
|
SELECT position FROM table_name_64 WHERE overall < 254 AND round < 5 AND pick__number < 13
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (position VARCHAR, pick__number VARCHAR, overall VARCHAR, round VARCHAR) Question: Which was the position for overall less than 254, round less than 5 and pick number less than 13? [/INST] SELECT position FROM table_name_64 WHERE overall < 254 AND round < 5 AND pick__number < 13 </s>
|
Name the round having an overall of 6
|
CREATE TABLE table_name_84 (round VARCHAR, overall VARCHAR)
|
SELECT round FROM table_name_84 WHERE overall = 6
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (round VARCHAR, overall VARCHAR) Question: Name the round having an overall of 6 [/INST] SELECT round FROM table_name_84 WHERE overall = 6 </s>
|
Name the position of the player from college of virginia
|
CREATE TABLE table_name_96 (position VARCHAR, college VARCHAR)
|
SELECT position FROM table_name_96 WHERE college = "virginia"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (position VARCHAR, college VARCHAR) Question: Name the position of the player from college of virginia [/INST] SELECT position FROM table_name_96 WHERE college = "virginia" </s>
|
What was the date of the game that had a goal of 3?
|
CREATE TABLE table_name_48 (date VARCHAR, goal VARCHAR)
|
SELECT date FROM table_name_48 WHERE goal = 3
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (date VARCHAR, goal VARCHAR) Question: What was the date of the game that had a goal of 3? [/INST] SELECT date FROM table_name_48 WHERE goal = 3 </s>
|
What was the date of the game that had a goal of 4?
|
CREATE TABLE table_name_58 (date VARCHAR, goal VARCHAR)
|
SELECT date FROM table_name_58 WHERE goal = 4
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (date VARCHAR, goal VARCHAR) Question: What was the date of the game that had a goal of 4? [/INST] SELECT date FROM table_name_58 WHERE goal = 4 </s>
|
What is the highest rank of a swimmer in lane 5?
|
CREATE TABLE table_name_20 (rank INTEGER, lane VARCHAR)
|
SELECT MAX(rank) FROM table_name_20 WHERE lane = 5
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (rank INTEGER, lane VARCHAR) Question: What is the highest rank of a swimmer in lane 5? [/INST] SELECT MAX(rank) FROM table_name_20 WHERE lane = 5 </s>
|
What is the lowest rank of Jens Kruppa in a lane larger than 2?
|
CREATE TABLE table_name_28 (rank INTEGER, name VARCHAR, lane VARCHAR)
|
SELECT MIN(rank) FROM table_name_28 WHERE name = "jens kruppa" AND lane > 2
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (rank INTEGER, name VARCHAR, lane VARCHAR) Question: What is the lowest rank of Jens Kruppa in a lane larger than 2? [/INST] SELECT MIN(rank) FROM table_name_28 WHERE name = "jens kruppa" AND lane > 2 </s>
|
Which nationality has a lane of 6 and a rank smaller than 6?
|
CREATE TABLE table_name_33 (nationality VARCHAR, rank VARCHAR, lane VARCHAR)
|
SELECT nationality FROM table_name_33 WHERE rank < 6 AND lane = 6
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (nationality VARCHAR, rank VARCHAR, lane VARCHAR) Question: Which nationality has a lane of 6 and a rank smaller than 6? [/INST] SELECT nationality FROM table_name_33 WHERE rank < 6 AND lane = 6 </s>
|
What is Tony Jacklin's total?
|
CREATE TABLE table_name_33 (total VARCHAR, player VARCHAR)
|
SELECT total FROM table_name_33 WHERE player = "tony jacklin"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (total VARCHAR, player VARCHAR) Question: What is Tony Jacklin's total? [/INST] SELECT total FROM table_name_33 WHERE player = "tony jacklin" </s>
|
What was Todd Hamilton's to par?
|
CREATE TABLE table_name_9 (to_par VARCHAR, player VARCHAR)
|
SELECT to_par FROM table_name_9 WHERE player = "todd hamilton"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (to_par VARCHAR, player VARCHAR) Question: What was Todd Hamilton's to par? [/INST] SELECT to_par FROM table_name_9 WHERE player = "todd hamilton" </s>
|
When was a game won with more than 11 to par?
|
CREATE TABLE table_name_6 (year_s__won VARCHAR, to_par INTEGER)
|
SELECT year_s__won FROM table_name_6 WHERE to_par > 11
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (year_s__won VARCHAR, to_par INTEGER) Question: When was a game won with more than 11 to par? [/INST] SELECT year_s__won FROM table_name_6 WHERE to_par > 11 </s>
|
Where is the place that has a Callsign of DWRJ-FM?
|
CREATE TABLE table_name_77 (location VARCHAR, callsign VARCHAR)
|
SELECT location FROM table_name_77 WHERE callsign = "dwrj-fm"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (location VARCHAR, callsign VARCHAR) Question: Where is the place that has a Callsign of DWRJ-FM? [/INST] SELECT location FROM table_name_77 WHERE callsign = "dwrj-fm" </s>
|
Which Power has Location in metro manila
|
CREATE TABLE table_name_75 (power__kw_ VARCHAR, location VARCHAR)
|
SELECT power__kw_ FROM table_name_75 WHERE location = "metro manila"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (power__kw_ VARCHAR, location VARCHAR) Question: Which Power has Location in metro manila [/INST] SELECT power__kw_ FROM table_name_75 WHERE location = "metro manila" </s>
|
Which tier of the tournament has Mont de Marson in it?
|
CREATE TABLE table_name_61 (tier VARCHAR, tournament VARCHAR)
|
SELECT tier FROM table_name_61 WHERE tournament = "mont de marson"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (tier VARCHAR, tournament VARCHAR) Question: Which tier of the tournament has Mont de Marson in it? [/INST] SELECT tier FROM table_name_61 WHERE tournament = "mont de marson" </s>
|
Which date has opponents, Akgul Amanmuradova Nina Bratchikova, in the final?
|
CREATE TABLE table_name_65 (date VARCHAR, opponents_in_the_final VARCHAR)
|
SELECT date FROM table_name_65 WHERE opponents_in_the_final = "akgul amanmuradova nina bratchikova"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (date VARCHAR, opponents_in_the_final VARCHAR) Question: Which date has opponents, Akgul Amanmuradova Nina Bratchikova, in the final? [/INST] SELECT date FROM table_name_65 WHERE opponents_in_the_final = "akgul amanmuradova nina bratchikova" </s>
|
Which date has opponents, Claire De Gubernatis Alexandra Dulgheru, in the final?
|
CREATE TABLE table_name_20 (date VARCHAR, opponents_in_the_final VARCHAR)
|
SELECT date FROM table_name_20 WHERE opponents_in_the_final = "claire de gubernatis alexandra dulgheru"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (date VARCHAR, opponents_in_the_final VARCHAR) Question: Which date has opponents, Claire De Gubernatis Alexandra Dulgheru, in the final? [/INST] SELECT date FROM table_name_20 WHERE opponents_in_the_final = "claire de gubernatis alexandra dulgheru" </s>
|
What is the score in the touranament of Antalya-Belek?
|
CREATE TABLE table_name_66 (score VARCHAR, tournament VARCHAR)
|
SELECT score FROM table_name_66 WHERE tournament = "antalya-belek"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (score VARCHAR, tournament VARCHAR) Question: What is the score in the touranament of Antalya-Belek? [/INST] SELECT score FROM table_name_66 WHERE tournament = "antalya-belek" </s>
|
Which date has the tier of Itf $10k?
|
CREATE TABLE table_name_66 (date VARCHAR, tier VARCHAR)
|
SELECT date FROM table_name_66 WHERE tier = "itf $10k"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (date VARCHAR, tier VARCHAR) Question: Which date has the tier of Itf $10k? [/INST] SELECT date FROM table_name_66 WHERE tier = "itf $10k" </s>
|
What is the score vs. all when the score vs. Terran is 159?
|
CREATE TABLE table_name_72 (vs_all VARCHAR, vs_terran VARCHAR)
|
SELECT vs_all FROM table_name_72 WHERE vs_terran = "159"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (vs_all VARCHAR, vs_terran VARCHAR) Question: What is the score vs. all when the score vs. Terran is 159? [/INST] SELECT vs_all FROM table_name_72 WHERE vs_terran = "159" </s>
|
What is the score vs. Protoss when the score vs. Terran is 10 wins?
|
CREATE TABLE table_name_97 (vs_protoss VARCHAR, vs_terran VARCHAR)
|
SELECT vs_protoss FROM table_name_97 WHERE vs_terran = "10 wins"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (vs_protoss VARCHAR, vs_terran VARCHAR) Question: What is the score vs. Protoss when the score vs. Terran is 10 wins? [/INST] SELECT vs_protoss FROM table_name_97 WHERE vs_terran = "10 wins" </s>
|
What is the score vs. Terran when the score vs. Zerg is 69?
|
CREATE TABLE table_name_12 (vs_terran VARCHAR, vs_zerg VARCHAR)
|
SELECT vs_terran FROM table_name_12 WHERE vs_zerg = "69"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (vs_terran VARCHAR, vs_zerg VARCHAR) Question: What is the score vs. Terran when the score vs. Zerg is 69? [/INST] SELECT vs_terran FROM table_name_12 WHERE vs_zerg = "69" </s>
|
What occurrs as of September 1, 2012 when the value for vs. all is 65.47%?
|
CREATE TABLE table_name_61 (as_of_september_1 VARCHAR, _2012 VARCHAR, vs_all VARCHAR)
|
SELECT as_of_september_1, _2012 FROM table_name_61 WHERE vs_all = "65.47%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (as_of_september_1 VARCHAR, _2012 VARCHAR, vs_all VARCHAR) Question: What occurrs as of September 1, 2012 when the value for vs. all is 65.47%? [/INST] SELECT as_of_september_1, _2012 FROM table_name_61 WHERE vs_all = "65.47%" </s>
|
What is the record of the opponent that has a bye?
|
CREATE TABLE table_name_35 (record VARCHAR, opponent VARCHAR)
|
SELECT record FROM table_name_35 WHERE opponent = "bye"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (record VARCHAR, opponent VARCHAR) Question: What is the record of the opponent that has a bye? [/INST] SELECT record FROM table_name_35 WHERE opponent = "bye" </s>
|
What was the average total medals received by Roland Hayes School when there were 0 gold medals?
|
CREATE TABLE table_name_99 (total_medals INTEGER, gold_medals VARCHAR, ensemble VARCHAR)
|
SELECT AVG(total_medals) FROM table_name_99 WHERE gold_medals = 0 AND ensemble = "roland hayes school"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (total_medals INTEGER, gold_medals VARCHAR, ensemble VARCHAR) Question: What was the average total medals received by Roland Hayes School when there were 0 gold medals? [/INST] SELECT AVG(total_medals) FROM table_name_99 WHERE gold_medals = 0 AND ensemble = "roland hayes school" </s>
|
What was the total number of medals received by James Logan High School when it received less than 1 silver medal?
|
CREATE TABLE table_name_42 (total_medals VARCHAR, ensemble VARCHAR, silver_medals VARCHAR)
|
SELECT COUNT(total_medals) FROM table_name_42 WHERE ensemble = "james logan high school" AND silver_medals < 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (total_medals VARCHAR, ensemble VARCHAR, silver_medals VARCHAR) Question: What was the total number of medals received by James Logan High School when it received less than 1 silver medal? [/INST] SELECT COUNT(total_medals) FROM table_name_42 WHERE ensemble = "james logan high school" AND silver_medals < 1 </s>
|
What is the highest number of bronze medals received by an ensemble who received fewer than 0 gold medals?
|
CREATE TABLE table_name_77 (bronze_medals INTEGER, gold_medals INTEGER)
|
SELECT MAX(bronze_medals) FROM table_name_77 WHERE gold_medals < 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (bronze_medals INTEGER, gold_medals INTEGER) Question: What is the highest number of bronze medals received by an ensemble who received fewer than 0 gold medals? [/INST] SELECT MAX(bronze_medals) FROM table_name_77 WHERE gold_medals < 0 </s>
|
What was the Score of the 2008 Africa Cup of Nations Competition?
|
CREATE TABLE table_name_3 (score VARCHAR, competition VARCHAR)
|
SELECT score FROM table_name_3 WHERE competition = "2008 africa cup of nations"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (score VARCHAR, competition VARCHAR) Question: What was the Score of the 2008 Africa Cup of Nations Competition? [/INST] SELECT score FROM table_name_3 WHERE competition = "2008 africa cup of nations" </s>
|
Name the most goals with losses less than 15 and position more than 8 with points of 42+4
|
CREATE TABLE table_name_18 (goals_for INTEGER, points VARCHAR, losses VARCHAR, position VARCHAR)
|
SELECT MAX(goals_for) FROM table_name_18 WHERE losses < 15 AND position > 8 AND points = "42+4"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (goals_for INTEGER, points VARCHAR, losses VARCHAR, position VARCHAR) Question: Name the most goals with losses less than 15 and position more than 8 with points of 42+4 [/INST] SELECT MAX(goals_for) FROM table_name_18 WHERE losses < 15 AND position > 8 AND points = "42+4" </s>
|
Name the average goals against for draws of 8 and wins more than 22 with losses less than 12
|
CREATE TABLE table_name_92 (goals_against INTEGER, wins VARCHAR, draws VARCHAR, losses VARCHAR)
|
SELECT AVG(goals_against) FROM table_name_92 WHERE draws = 8 AND losses < 12 AND wins > 22
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (goals_against INTEGER, wins VARCHAR, draws VARCHAR, losses VARCHAR) Question: Name the average goals against for draws of 8 and wins more than 22 with losses less than 12 [/INST] SELECT AVG(goals_against) FROM table_name_92 WHERE draws = 8 AND losses < 12 AND wins > 22 </s>
|
Name the least wins for goal difference being less than -20 with position less than 20 and goals for of 35
|
CREATE TABLE table_name_19 (wins INTEGER, goal_difference VARCHAR, position VARCHAR, goals_for VARCHAR)
|
SELECT MIN(wins) FROM table_name_19 WHERE position < 20 AND goals_for = 35 AND goal_difference < -20
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (wins INTEGER, goal_difference VARCHAR, position VARCHAR, goals_for VARCHAR) Question: Name the least wins for goal difference being less than -20 with position less than 20 and goals for of 35 [/INST] SELECT MIN(wins) FROM table_name_19 WHERE position < 20 AND goals_for = 35 AND goal_difference < -20 </s>
|
Name the average losses for draws larger than 6 and played more than 38
|
CREATE TABLE table_name_58 (losses INTEGER, draws VARCHAR, played VARCHAR)
|
SELECT AVG(losses) FROM table_name_58 WHERE draws > 6 AND played > 38
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (losses INTEGER, draws VARCHAR, played VARCHAR) Question: Name the average losses for draws larger than 6 and played more than 38 [/INST] SELECT AVG(losses) FROM table_name_58 WHERE draws > 6 AND played > 38 </s>
|
Name the least goals against for played more than 38
|
CREATE TABLE table_name_4 (goals_against INTEGER, played INTEGER)
|
SELECT MIN(goals_against) FROM table_name_4 WHERE played > 38
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (goals_against INTEGER, played INTEGER) Question: Name the least goals against for played more than 38 [/INST] SELECT MIN(goals_against) FROM table_name_4 WHERE played > 38 </s>
|
After 1961, who as the Entrant when the engine was a Ferrari v8, and when the points were lower than 23?
|
CREATE TABLE table_name_64 (entrant VARCHAR, points VARCHAR, year VARCHAR, engine VARCHAR)
|
SELECT entrant FROM table_name_64 WHERE year > 1961 AND engine = "ferrari v8" AND points < 23
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (entrant VARCHAR, points VARCHAR, year VARCHAR, engine VARCHAR) Question: After 1961, who as the Entrant when the engine was a Ferrari v8, and when the points were lower than 23? [/INST] SELECT entrant FROM table_name_64 WHERE year > 1961 AND engine = "ferrari v8" AND points < 23 </s>
|
What is was the Chassis in 1967?
|
CREATE TABLE table_name_38 (chassis VARCHAR, year VARCHAR)
|
SELECT chassis FROM table_name_38 WHERE year = 1967
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (chassis VARCHAR, year VARCHAR) Question: What is was the Chassis in 1967? [/INST] SELECT chassis FROM table_name_38 WHERE year = 1967 </s>
|
In 1962, what was the total number of points, when the Engine was Ferrari v6?
|
CREATE TABLE table_name_97 (points VARCHAR, engine VARCHAR, year VARCHAR)
|
SELECT COUNT(points) FROM table_name_97 WHERE engine = "ferrari v6" AND year = 1962
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (points VARCHAR, engine VARCHAR, year VARCHAR) Question: In 1962, what was the total number of points, when the Engine was Ferrari v6? [/INST] SELECT COUNT(points) FROM table_name_97 WHERE engine = "ferrari v6" AND year = 1962 </s>
|
In 1961, what was the Chassis when the points were lower than 6?
|
CREATE TABLE table_name_51 (chassis VARCHAR, points VARCHAR, year VARCHAR)
|
SELECT chassis FROM table_name_51 WHERE points < 6 AND year = 1961
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (chassis VARCHAR, points VARCHAR, year VARCHAR) Question: In 1961, what was the Chassis when the points were lower than 6? [/INST] SELECT chassis FROM table_name_51 WHERE points < 6 AND year = 1961 </s>
|
What was the sum of the years, when the entrant was Scuderia Ferrari, and when the Chassis was Ferrari 312/66?
|
CREATE TABLE table_name_68 (year INTEGER, entrant VARCHAR, chassis VARCHAR)
|
SELECT SUM(year) FROM table_name_68 WHERE entrant = "scuderia ferrari" AND chassis = "ferrari 312/66"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (year INTEGER, entrant VARCHAR, chassis VARCHAR) Question: What was the sum of the years, when the entrant was Scuderia Ferrari, and when the Chassis was Ferrari 312/66? [/INST] SELECT SUM(year) FROM table_name_68 WHERE entrant = "scuderia ferrari" AND chassis = "ferrari 312/66" </s>
|
What was the sum of the years, when the entrant was Scuderia Centro Sud, and when there were 6 points?
|
CREATE TABLE table_name_69 (year INTEGER, entrant VARCHAR, points VARCHAR)
|
SELECT SUM(year) FROM table_name_69 WHERE entrant = "scuderia centro sud" AND points = 6
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (year INTEGER, entrant VARCHAR, points VARCHAR) Question: What was the sum of the years, when the entrant was Scuderia Centro Sud, and when there were 6 points? [/INST] SELECT SUM(year) FROM table_name_69 WHERE entrant = "scuderia centro sud" AND points = 6 </s>
|
In the tkkm o manawatu coed school in kelvin grove, what is the Authority listed/
|
CREATE TABLE table_name_93 (authority VARCHAR, name VARCHAR, gender VARCHAR, area VARCHAR)
|
SELECT authority FROM table_name_93 WHERE gender = "coed" AND area = "kelvin grove" AND name = "tkkm o manawatu"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (authority VARCHAR, name VARCHAR, gender VARCHAR, area VARCHAR) Question: In the tkkm o manawatu coed school in kelvin grove, what is the Authority listed/ [/INST] SELECT authority FROM table_name_93 WHERE gender = "coed" AND area = "kelvin grove" AND name = "tkkm o manawatu" </s>
|
which Authority has a coed school with a decile greater than 4, with a 150 roll?
|
CREATE TABLE table_name_49 (authority VARCHAR, roll VARCHAR, gender VARCHAR, decile VARCHAR)
|
SELECT authority FROM table_name_49 WHERE gender = "coed" AND decile > 4 AND roll = "150"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (authority VARCHAR, roll VARCHAR, gender VARCHAR, decile VARCHAR) Question: which Authority has a coed school with a decile greater than 4, with a 150 roll? [/INST] SELECT authority FROM table_name_49 WHERE gender = "coed" AND decile > 4 AND roll = "150" </s>
|
Name the language for trotta
|
CREATE TABLE table_name_68 (language VARCHAR, original_title VARCHAR)
|
SELECT language FROM table_name_68 WHERE original_title = "trotta"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (language VARCHAR, original_title VARCHAR) Question: Name the language for trotta [/INST] SELECT language FROM table_name_68 WHERE original_title = "trotta" </s>
|
Name the original title directed by luis buñuel
|
CREATE TABLE table_name_85 (original_title VARCHAR, director VARCHAR)
|
SELECT original_title FROM table_name_85 WHERE director = "luis buñuel"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (original_title VARCHAR, director VARCHAR) Question: Name the original title directed by luis buñuel [/INST] SELECT original_title FROM table_name_85 WHERE director = "luis buñuel" </s>
|
Name the original title directed by sudhendu roy
|
CREATE TABLE table_name_79 (original_title VARCHAR, director VARCHAR)
|
SELECT original_title FROM table_name_79 WHERE director = "sudhendu roy"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (original_title VARCHAR, director VARCHAR) Question: Name the original title directed by sudhendu roy [/INST] SELECT original_title FROM table_name_79 WHERE director = "sudhendu roy" </s>
|
Name the film title that is spanish from peru
|
CREATE TABLE table_name_78 (film_title_used_in_nomination VARCHAR, language VARCHAR, country VARCHAR)
|
SELECT film_title_used_in_nomination FROM table_name_78 WHERE language = "spanish" AND country = "peru"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (film_title_used_in_nomination VARCHAR, language VARCHAR, country VARCHAR) Question: Name the film title that is spanish from peru [/INST] SELECT film_title_used_in_nomination FROM table_name_78 WHERE language = "spanish" AND country = "peru" </s>
|
Name the langauge for switzerland
|
CREATE TABLE table_name_96 (language VARCHAR, country VARCHAR)
|
SELECT language FROM table_name_96 WHERE country = "switzerland"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (language VARCHAR, country VARCHAR) Question: Name the langauge for switzerland [/INST] SELECT language FROM table_name_96 WHERE country = "switzerland" </s>
|
What is the Total with 0 Silver and Gold, 1 Bronze and Rank larger than 2?
|
CREATE TABLE table_name_54 (total INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR, bronze VARCHAR)
|
SELECT MIN(total) FROM table_name_54 WHERE rank > 2 AND bronze = 1 AND silver > 0 AND gold < 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (total INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR, bronze VARCHAR) Question: What is the Total with 0 Silver and Gold, 1 Bronze and Rank larger than 2? [/INST] SELECT MIN(total) FROM table_name_54 WHERE rank > 2 AND bronze = 1 AND silver > 0 AND gold < 0 </s>
|
How many Bronze medals were received by the nation that Ranked less than 5 and received more than 2 Gold medals, less than 4 Silver medals with a Total of 9 medals?
|
CREATE TABLE table_name_70 (bronze INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR, gold VARCHAR)
|
SELECT AVG(bronze) FROM table_name_70 WHERE rank < 5 AND gold > 2 AND total = 9 AND silver < 4
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (bronze INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR, gold VARCHAR) Question: How many Bronze medals were received by the nation that Ranked less than 5 and received more than 2 Gold medals, less than 4 Silver medals with a Total of 9 medals? [/INST] SELECT AVG(bronze) FROM table_name_70 WHERE rank < 5 AND gold > 2 AND total = 9 AND silver < 4 </s>
|
which order of bat belongs to the family of vespertilionidae and includes the northern long-eared myotis?
|
CREATE TABLE table_name_26 (order VARCHAR, family VARCHAR, name VARCHAR)
|
SELECT order FROM table_name_26 WHERE family = "vespertilionidae" AND name = "northern long-eared myotis"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (order VARCHAR, family VARCHAR, name VARCHAR) Question: which order of bat belongs to the family of vespertilionidae and includes the northern long-eared myotis? [/INST] SELECT order FROM table_name_26 WHERE family = "vespertilionidae" AND name = "northern long-eared myotis" </s>
|
What year has WSC class?
|
CREATE TABLE table_name_42 (year VARCHAR, class VARCHAR)
|
SELECT year FROM table_name_42 WHERE class = "wsc"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (year VARCHAR, class VARCHAR) Question: What year has WSC class? [/INST] SELECT year FROM table_name_42 WHERE class = "wsc" </s>
|
Which race has D. Beadman for the jockey and a 4th place result?
|
CREATE TABLE table_name_27 (race VARCHAR, jockey VARCHAR, result VARCHAR)
|
SELECT race FROM table_name_27 WHERE jockey = "d. beadman" AND result = "4th"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (race VARCHAR, jockey VARCHAR, result VARCHAR) Question: Which race has D. Beadman for the jockey and a 4th place result? [/INST] SELECT race FROM table_name_27 WHERE jockey = "d. beadman" AND result = "4th" </s>
|
Who is the 1st member in the 1884 by-election?
|
CREATE TABLE table_name_7 (election VARCHAR)
|
SELECT 1 AS st_member FROM table_name_7 WHERE election = "1884 by-election"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (election VARCHAR) Question: Who is the 1st member in the 1884 by-election? [/INST] SELECT 1 AS st_member FROM table_name_7 WHERE election = "1884 by-election" </s>
|
What is the 2nd party in the 1874 election?
|
CREATE TABLE table_name_16 (election VARCHAR)
|
SELECT 2 AS nd_party FROM table_name_16 WHERE election = "1874"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (election VARCHAR) Question: What is the 2nd party in the 1874 election? [/INST] SELECT 2 AS nd_party FROM table_name_16 WHERE election = "1874" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.