instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
What's listed for Elevatated that has Cardinalatial title of Priest of SS. XII Apostoli?
CREATE TABLE table_name_77 (elevated VARCHAR, cardinalatial_title VARCHAR)
SELECT elevated FROM table_name_77 WHERE cardinalatial_title = "priest of ss. xii apostoli"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (elevated VARCHAR, cardinalatial_title VARCHAR) Question: What's listed for Elevatated that has Cardinalatial title of Priest of SS. XII Apostoli? [/INST] SELECT elevated FROM table_name_77 WHERE c...
What Elector has the Place of birth of San Severino?
CREATE TABLE table_name_33 (elector VARCHAR, place_of_birth VARCHAR)
SELECT elector FROM table_name_33 WHERE place_of_birth = "san severino"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (elector VARCHAR, place_of_birth VARCHAR) Question: What Elector has the Place of birth of San Severino? [/INST] SELECT elector FROM table_name_33 WHERE place_of_birth = "san severino" </s>
What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca, and the Electo rof Pandolfo?
CREATE TABLE table_name_40 (cardinalatial_title VARCHAR, elector VARCHAR, elevated VARCHAR, place_of_birth VARCHAR)
SELECT cardinalatial_title FROM table_name_40 WHERE elevated = "december 18, 1182" AND place_of_birth = "lucca" AND elector = "pandolfo"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (cardinalatial_title VARCHAR, elector VARCHAR, elevated VARCHAR, place_of_birth VARCHAR) Question: What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca,...
What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento?
CREATE TABLE table_name_25 (elevated VARCHAR, cardinalatial_title VARCHAR)
SELECT elevated FROM table_name_25 WHERE cardinalatial_title = "priest of s. eusebio and archbishop of benevento"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (elevated VARCHAR, cardinalatial_title VARCHAR) Question: What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento? [/INST] SELECT elevated FROM...
What Elector has the Place of Birth listed as Bavaria?
CREATE TABLE table_name_4 (elector VARCHAR, place_of_birth VARCHAR)
SELECT elector FROM table_name_4 WHERE place_of_birth = "bavaria"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (elector VARCHAR, place_of_birth VARCHAR) Question: What Elector has the Place of Birth listed as Bavaria? [/INST] SELECT elector FROM table_name_4 WHERE place_of_birth = "bavaria" </s>
What are the total apps that have 41 as the League apps, with total goals greater than 1?
CREATE TABLE table_name_16 (total_apps VARCHAR, league_apps VARCHAR, total_goals VARCHAR)
SELECT total_apps FROM table_name_16 WHERE league_apps = "41" AND total_goals > 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (total_apps VARCHAR, league_apps VARCHAR, total_goals VARCHAR) Question: What are the total apps that have 41 as the League apps, with total goals greater than 1? [/INST] SELECT total_apps FROM tab...
What are the average league goals that have 2 (1) as the total apps?
CREATE TABLE table_name_18 (league_goals INTEGER, total_apps VARCHAR)
SELECT AVG(league_goals) FROM table_name_18 WHERE total_apps = "2 (1)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (league_goals INTEGER, total_apps VARCHAR) Question: What are the average league goals that have 2 (1) as the total apps? [/INST] SELECT AVG(league_goals) FROM table_name_18 WHERE total_apps = "2 (...
What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0?
CREATE TABLE table_name_46 (league_goals INTEGER, name VARCHAR, fa_cup_apps VARCHAR)
SELECT MAX(league_goals) FROM table_name_46 WHERE name = "barry endean" AND fa_cup_apps > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (league_goals INTEGER, name VARCHAR, fa_cup_apps VARCHAR) Question: What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0? [/INST] SELECT MAX(league_g...
Which school left in 1968 and has the team name of Panthers?
CREATE TABLE table_name_81 (school VARCHAR, team_name VARCHAR, year_left VARCHAR)
SELECT school FROM table_name_81 WHERE team_name = "panthers" AND year_left = "1968"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (school VARCHAR, team_name VARCHAR, year_left VARCHAR) Question: Which school left in 1968 and has the team name of Panthers? [/INST] SELECT school FROM table_name_81 WHERE team_name = "panthers" A...
What year did a team from North Dearborn leave?
CREATE TABLE table_name_89 (year_left VARCHAR, school VARCHAR)
SELECT year_left FROM table_name_89 WHERE school = "north dearborn"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (year_left VARCHAR, school VARCHAR) Question: What year did a team from North Dearborn leave? [/INST] SELECT year_left FROM table_name_89 WHERE school = "north dearborn" </s>
Which city has a school of North Vernon and a county of 40 Jennings?
CREATE TABLE table_name_48 (city VARCHAR, county VARCHAR, school VARCHAR)
SELECT city FROM table_name_48 WHERE county = "40 jennings" AND school = "north vernon"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (city VARCHAR, county VARCHAR, school VARCHAR) Question: Which city has a school of North Vernon and a county of 40 Jennings? [/INST] SELECT city FROM table_name_48 WHERE county = "40 jennings" AND...
What year did a school from Jennings County join?
CREATE TABLE table_name_5 (year_joined VARCHAR, school VARCHAR)
SELECT year_joined FROM table_name_5 WHERE school = "jennings county"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (year_joined VARCHAR, school VARCHAR) Question: What year did a school from Jennings County join? [/INST] SELECT year_joined FROM table_name_5 WHERE school = "jennings county" </s>
Which school are the Red Devils from?
CREATE TABLE table_name_24 (school VARCHAR, team_name VARCHAR)
SELECT school FROM table_name_24 WHERE team_name = "red devils"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (school VARCHAR, team_name VARCHAR) Question: Which school are the Red Devils from? [/INST] SELECT school FROM table_name_24 WHERE team_name = "red devils" </s>
Which school comes from Brookville?
CREATE TABLE table_name_57 (school VARCHAR, city VARCHAR)
SELECT school FROM table_name_57 WHERE city = "brookville"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (school VARCHAR, city VARCHAR) Question: Which school comes from Brookville? [/INST] SELECT school FROM table_name_57 WHERE city = "brookville" </s>
What's the lowest rank of Lane 3?
CREATE TABLE table_name_70 (rank INTEGER, lane VARCHAR)
SELECT MIN(rank) FROM table_name_70 WHERE lane = 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (rank INTEGER, lane VARCHAR) Question: What's the lowest rank of Lane 3? [/INST] SELECT MIN(rank) FROM table_name_70 WHERE lane = 3 </s>
What's the highest lane of rank 4 with a time less than 24.72?
CREATE TABLE table_name_62 (lane INTEGER, time VARCHAR, rank VARCHAR)
SELECT MAX(lane) FROM table_name_62 WHERE time < 24.72 AND rank = 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (lane INTEGER, time VARCHAR, rank VARCHAR) Question: What's the highest lane of rank 4 with a time less than 24.72? [/INST] SELECT MAX(lane) FROM table_name_62 WHERE time < 24.72 AND rank = 4 </s>
What's the time of Britta Steffen in a lane less than 4?
CREATE TABLE table_name_50 (time INTEGER, lane VARCHAR, name VARCHAR)
SELECT SUM(time) FROM table_name_50 WHERE lane < 4 AND name = "britta steffen"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (time INTEGER, lane VARCHAR, name VARCHAR) Question: What's the time of Britta Steffen in a lane less than 4? [/INST] SELECT SUM(time) FROM table_name_50 WHERE lane < 4 AND name = "britta steffen" ...
What's the lowest rank of the United States with a time less than 24.63?
CREATE TABLE table_name_74 (rank INTEGER, nationality VARCHAR, time VARCHAR)
SELECT MIN(rank) FROM table_name_74 WHERE nationality = "united states" AND time < 24.63
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (rank INTEGER, nationality VARCHAR, time VARCHAR) Question: What's the lowest rank of the United States with a time less than 24.63? [/INST] SELECT MIN(rank) FROM table_name_74 WHERE nationality = ...
What's the duration of the Archers with Norman Painting as an actor?
CREATE TABLE table_name_98 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR)
SELECT duration FROM table_name_98 WHERE soap_opera = "the archers" AND actor = "norman painting"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR) Question: What's the duration of the Archers with Norman Painting as an actor? [/INST] SELECT duration FROM table_name_98 WHERE soap_opera = "t...
What's the duration of the Archers with Pauline Seville acting?
CREATE TABLE table_name_45 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR)
SELECT duration FROM table_name_45 WHERE soap_opera = "the archers" AND actor = "pauline seville"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR) Question: What's the duration of the Archers with Pauline Seville acting? [/INST] SELECT duration FROM table_name_45 WHERE soap_opera = "the ar...
Who's the actor for the Archers having a character of Martha Woodford?
CREATE TABLE table_name_14 (actor VARCHAR, soap_opera VARCHAR, character VARCHAR)
SELECT actor FROM table_name_14 WHERE soap_opera = "the archers" AND character = "martha woodford"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (actor VARCHAR, soap_opera VARCHAR, character VARCHAR) Question: Who's the actor for the Archers having a character of Martha Woodford? [/INST] SELECT actor FROM table_name_14 WHERE soap_opera = "t...
Who's the character when Margot Boyd was acting?
CREATE TABLE table_name_34 (character VARCHAR, actor VARCHAR)
SELECT character FROM table_name_34 WHERE actor = "margot boyd"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (character VARCHAR, actor VARCHAR) Question: Who's the character when Margot Boyd was acting? [/INST] SELECT character FROM table_name_34 WHERE actor = "margot boyd" </s>
What were the notes for the time of 6:34.51?
CREATE TABLE table_name_56 (notes VARCHAR, time VARCHAR)
SELECT notes FROM table_name_56 WHERE time = "6:34.51"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (notes VARCHAR, time VARCHAR) Question: What were the notes for the time of 6:34.51? [/INST] SELECT notes FROM table_name_56 WHERE time = "6:34.51" </s>
What is the rank for the rowers with the time of 6:24.35?
CREATE TABLE table_name_51 (rank VARCHAR, time VARCHAR)
SELECT rank FROM table_name_51 WHERE time = "6:24.35"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (rank VARCHAR, time VARCHAR) Question: What is the rank for the rowers with the time of 6:24.35? [/INST] SELECT rank FROM table_name_51 WHERE time = "6:24.35" </s>
Which rowers represented portugal and had notes of r?
CREATE TABLE table_name_14 (rowers VARCHAR, notes VARCHAR, country VARCHAR)
SELECT rowers FROM table_name_14 WHERE notes = "r" AND country = "portugal"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (rowers VARCHAR, notes VARCHAR, country VARCHAR) Question: Which rowers represented portugal and had notes of r? [/INST] SELECT rowers FROM table_name_14 WHERE notes = "r" AND country = "portugal" ...
Which rowers represented the country of portugal?
CREATE TABLE table_name_4 (rowers VARCHAR, country VARCHAR)
SELECT rowers FROM table_name_4 WHERE country = "portugal"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (rowers VARCHAR, country VARCHAR) Question: Which rowers represented the country of portugal? [/INST] SELECT rowers FROM table_name_4 WHERE country = "portugal" </s>
what is the average races when points is 9 and poles is less than 0?
CREATE TABLE table_name_61 (races INTEGER, points VARCHAR, poles VARCHAR)
SELECT AVG(races) FROM table_name_61 WHERE points = "9" AND poles < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (races INTEGER, points VARCHAR, poles VARCHAR) Question: what is the average races when points is 9 and poles is less than 0? [/INST] SELECT AVG(races) FROM table_name_61 WHERE points = "9" AND pol...
what is the series when wins is less than 3, points is 9 and podiums is 1?
CREATE TABLE table_name_7 (series VARCHAR, podiums VARCHAR, wins VARCHAR, points VARCHAR)
SELECT series FROM table_name_7 WHERE wins < 3 AND points = "9" AND podiums = 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (series VARCHAR, podiums VARCHAR, wins VARCHAR, points VARCHAR) Question: what is the series when wins is less than 3, points is 9 and podiums is 1? [/INST] SELECT series FROM table_name_7 WHERE win...
how many times is races more than 14, position is 9th and wins less than 0?
CREATE TABLE table_name_48 (season VARCHAR, wins VARCHAR, races VARCHAR, position VARCHAR)
SELECT COUNT(season) FROM table_name_48 WHERE races > 14 AND position = "9th" AND wins < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (season VARCHAR, wins VARCHAR, races VARCHAR, position VARCHAR) Question: how many times is races more than 14, position is 9th and wins less than 0? [/INST] SELECT COUNT(season) FROM table_name_48...
Who was the runner-up during the Mac Ice Classic?
CREATE TABLE table_name_51 (runner_up_skip VARCHAR, event VARCHAR)
SELECT runner_up_skip FROM table_name_51 WHERE event = "mac ice classic"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (runner_up_skip VARCHAR, event VARCHAR) Question: Who was the runner-up during the Mac Ice Classic? [/INST] SELECT runner_up_skip FROM table_name_51 WHERE event = "mac ice classic" </s>
What's the date when Stu Harris was the Runner-up?
CREATE TABLE table_name_58 (date VARCHAR, runner_up_skip VARCHAR)
SELECT date FROM table_name_58 WHERE runner_up_skip = "stu harris"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (date VARCHAR, runner_up_skip VARCHAR) Question: What's the date when Stu Harris was the Runner-up? [/INST] SELECT date FROM table_name_58 WHERE runner_up_skip = "stu harris" </s>
What's the location of the Ramada Perth Masters event?
CREATE TABLE table_name_33 (location VARCHAR, event VARCHAR)
SELECT location FROM table_name_33 WHERE event = "ramada perth masters"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (location VARCHAR, event VARCHAR) Question: What's the location of the Ramada Perth Masters event? [/INST] SELECT location FROM table_name_33 WHERE event = "ramada perth masters" </s>
What's the location of the National event with Kevin Martin winning?
CREATE TABLE table_name_49 (location VARCHAR, winning_skip VARCHAR, event VARCHAR)
SELECT location FROM table_name_49 WHERE winning_skip = "kevin martin" AND event = "the national"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (location VARCHAR, winning_skip VARCHAR, event VARCHAR) Question: What's the location of the National event with Kevin Martin winning? [/INST] SELECT location FROM table_name_49 WHERE winning_skip ...
What's the event that happened in Gander, Newfoundland and Labrador with Randy Ferbey runner-up?
CREATE TABLE table_name_91 (event VARCHAR, runner_up_skip VARCHAR, location VARCHAR)
SELECT event FROM table_name_91 WHERE runner_up_skip = "randy ferbey" AND location = "gander, newfoundland and labrador"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (event VARCHAR, runner_up_skip VARCHAR, location VARCHAR) Question: What's the event that happened in Gander, Newfoundland and Labrador with Randy Ferbey runner-up? [/INST] SELECT event FROM table_...
What's the location of the National event?
CREATE TABLE table_name_97 (location VARCHAR, event VARCHAR)
SELECT location FROM table_name_97 WHERE event = "the national"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (location VARCHAR, event VARCHAR) Question: What's the location of the National event? [/INST] SELECT location FROM table_name_97 WHERE event = "the national" </s>
Which Arena has a Date of october 10?
CREATE TABLE table_name_13 (arena VARCHAR, date VARCHAR)
SELECT arena FROM table_name_13 WHERE date = "october 10"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (arena VARCHAR, date VARCHAR) Question: Which Arena has a Date of october 10? [/INST] SELECT arena FROM table_name_13 WHERE date = "october 10" </s>
Which Attendance has a Score of 4–3, and Points smaller than 5?
CREATE TABLE table_name_13 (attendance INTEGER, score VARCHAR, points VARCHAR)
SELECT MAX(attendance) FROM table_name_13 WHERE score = "4–3" AND points < 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (attendance INTEGER, score VARCHAR, points VARCHAR) Question: Which Attendance has a Score of 4–3, and Points smaller than 5? [/INST] SELECT MAX(attendance) FROM table_name_13 WHERE score = "4–3" A...
Which Attendance has an Arena of arrowhead pond of anaheim, and Points smaller than 5?
CREATE TABLE table_name_20 (attendance VARCHAR, arena VARCHAR, points VARCHAR)
SELECT attendance FROM table_name_20 WHERE arena = "arrowhead pond of anaheim" AND points < 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (attendance VARCHAR, arena VARCHAR, points VARCHAR) Question: Which Attendance has an Arena of arrowhead pond of anaheim, and Points smaller than 5? [/INST] SELECT attendance FROM table_name_20 WHE...
How much Attendance has an Arena of arrowhead pond of anaheim, and Points of 5?
CREATE TABLE table_name_30 (attendance INTEGER, arena VARCHAR, points VARCHAR)
SELECT SUM(attendance) FROM table_name_30 WHERE arena = "arrowhead pond of anaheim" AND points = 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (attendance INTEGER, arena VARCHAR, points VARCHAR) Question: How much Attendance has an Arena of arrowhead pond of anaheim, and Points of 5? [/INST] SELECT SUM(attendance) FROM table_name_30 WHERE...
How much 1969 has a 1967 smaller than 0.73, and a 1964 larger than 0.07?
CREATE TABLE table_name_18 (Id VARCHAR)
SELECT COUNT(1969) FROM table_name_18 WHERE 1967 < 0.73 AND 1964 > 0.07
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (Id VARCHAR) Question: How much 1969 has a 1967 smaller than 0.73, and a 1964 larger than 0.07? [/INST] SELECT COUNT(1969) FROM table_name_18 WHERE 1967 < 0.73 AND 1964 > 0.07 </s>
Which 1964 has a Country of united states, and a 1969 smaller than 7.3?
CREATE TABLE table_name_85 (country VARCHAR)
SELECT MIN(1964) FROM table_name_85 WHERE country = "united states" AND 1969 < 7.3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (country VARCHAR) Question: Which 1964 has a Country of united states, and a 1969 smaller than 7.3? [/INST] SELECT MIN(1964) FROM table_name_85 WHERE country = "united states" AND 1969 < 7.3 </s>
Which 1965 has a 1962 of 0.35000000000000003, and a 1967 smaller than 0.53?
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT MIN(1965) FROM table_name_38 WHERE 1962 = 0.35000000000000003 AND 1967 < 0.53
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (Id VARCHAR) Question: Which 1965 has a 1962 of 0.35000000000000003, and a 1967 smaller than 0.53? [/INST] SELECT MIN(1965) FROM table_name_38 WHERE 1962 = 0.35000000000000003 AND 1967 < 0.53 </s>
What is Bev Risman's Cross Code Debut?
CREATE TABLE table_name_68 (cross_code_debut VARCHAR, player VARCHAR)
SELECT cross_code_debut FROM table_name_68 WHERE player = "bev risman"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (cross_code_debut VARCHAR, player VARCHAR) Question: What is Bev Risman's Cross Code Debut? [/INST] SELECT cross_code_debut FROM table_name_68 WHERE player = "bev risman" </s>
What is the Player with a Cross Code Debut of RL Test GB v France?
CREATE TABLE table_name_25 (player VARCHAR, cross_code_debut VARCHAR)
SELECT player FROM table_name_25 WHERE cross_code_debut = "rl test gb v france"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (player VARCHAR, cross_code_debut VARCHAR) Question: What is the Player with a Cross Code Debut of RL Test GB v France? [/INST] SELECT player FROM table_name_25 WHERE cross_code_debut = "rl test gb...
In what Year is Keith Smith's Cross Code Debut RL Test v Wales?
CREATE TABLE table_name_73 (year VARCHAR, cross_code_debut VARCHAR, player VARCHAR)
SELECT year FROM table_name_73 WHERE cross_code_debut = "rl test v wales" AND player = "keith smith"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (year VARCHAR, cross_code_debut VARCHAR, player VARCHAR) Question: In what Year is Keith Smith's Cross Code Debut RL Test v Wales? [/INST] SELECT year FROM table_name_73 WHERE cross_code_debut = "r...
What is the Date of the Int'l Debut of 1967?
CREATE TABLE table_name_66 (date VARCHAR, year VARCHAR)
SELECT date FROM table_name_66 WHERE year = "1967"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (date VARCHAR, year VARCHAR) Question: What is the Date of the Int'l Debut of 1967? [/INST] SELECT date FROM table_name_66 WHERE year = "1967" </s>
What is the Player in the Int'l Debut of 1974?
CREATE TABLE table_name_41 (player VARCHAR, year VARCHAR)
SELECT player FROM table_name_41 WHERE year = "1974"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (player VARCHAR, year VARCHAR) Question: What is the Player in the Int'l Debut of 1974? [/INST] SELECT player FROM table_name_41 WHERE year = "1974" </s>
What lane has a time of 24.83 and a heat less than 11?
CREATE TABLE table_name_73 (lane INTEGER, time VARCHAR, heat VARCHAR)
SELECT SUM(lane) FROM table_name_73 WHERE time = "24.83" AND heat < 11
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (lane INTEGER, time VARCHAR, heat VARCHAR) Question: What lane has a time of 24.83 and a heat less than 11? [/INST] SELECT SUM(lane) FROM table_name_73 WHERE time = "24.83" AND heat < 11 </s>
What is the total number of heat for Chinyere Pigot?
CREATE TABLE table_name_94 (heat VARCHAR, name VARCHAR)
SELECT COUNT(heat) FROM table_name_94 WHERE name = "chinyere pigot"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (heat VARCHAR, name VARCHAR) Question: What is the total number of heat for Chinyere Pigot? [/INST] SELECT COUNT(heat) FROM table_name_94 WHERE name = "chinyere pigot" </s>
What is the name for lane 1, from Mauritius?
CREATE TABLE table_name_69 (name VARCHAR, lane VARCHAR, nationality VARCHAR)
SELECT name FROM table_name_69 WHERE lane = 1 AND nationality = "mauritius"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (name VARCHAR, lane VARCHAR, nationality VARCHAR) Question: What is the name for lane 1, from Mauritius? [/INST] SELECT name FROM table_name_69 WHERE lane = 1 AND nationality = "mauritius" </s>
Who won in 1988 with a total less than 287?
CREATE TABLE table_name_21 (player VARCHAR, total VARCHAR, year_s__won VARCHAR)
SELECT player FROM table_name_21 WHERE total < 287 AND year_s__won = "1988"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (player VARCHAR, total VARCHAR, year_s__won VARCHAR) Question: Who won in 1988 with a total less than 287? [/INST] SELECT player FROM table_name_21 WHERE total < 287 AND year_s__won = "1988" </s>
What country is Larry Mize from?
CREATE TABLE table_name_21 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_21 WHERE player = "larry mize"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (country VARCHAR, player VARCHAR) Question: What country is Larry Mize from? [/INST] SELECT country FROM table_name_21 WHERE player = "larry mize" </s>
What is the lowest number of bronze medals for a nation with fewer than 1 total medal?
CREATE TABLE table_name_87 (bronze INTEGER, total INTEGER)
SELECT MIN(bronze) FROM table_name_87 WHERE total < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (bronze INTEGER, total INTEGER) Question: What is the lowest number of bronze medals for a nation with fewer than 1 total medal? [/INST] SELECT MIN(bronze) FROM table_name_87 WHERE total < 1 </s>
What team is Frank Hulbert on?
CREATE TABLE table_name_26 (team VARCHAR, rider VARCHAR)
SELECT team FROM table_name_26 WHERE rider = "frank hulbert"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (team VARCHAR, rider VARCHAR) Question: What team is Frank Hulbert on? [/INST] SELECT team FROM table_name_26 WHERE rider = "frank hulbert" </s>
What was Martin Geiger's rank?
CREATE TABLE table_name_95 (rank VARCHAR, rider VARCHAR)
SELECT rank FROM table_name_95 WHERE rider = "martin geiger"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (rank VARCHAR, rider VARCHAR) Question: What was Martin Geiger's rank? [/INST] SELECT rank FROM table_name_95 WHERE rider = "martin geiger" </s>
What was Tom Silver's rank?
CREATE TABLE table_name_86 (rank VARCHAR, rider VARCHAR)
SELECT rank FROM table_name_86 WHERE rider = "tom silver"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (rank VARCHAR, rider VARCHAR) Question: What was Tom Silver's rank? [/INST] SELECT rank FROM table_name_86 WHERE rider = "tom silver" </s>
Who was the player with a debut of age 18 v plymouth , 14 august 2012, and born in Portsmouth?
CREATE TABLE table_name_97 (player VARCHAR, debut VARCHAR, born VARCHAR)
SELECT player FROM table_name_97 WHERE debut = "age 18 v plymouth , 14 august 2012" AND born = "portsmouth"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (player VARCHAR, debut VARCHAR, born VARCHAR) Question: Who was the player with a debut of age 18 v plymouth , 14 august 2012, and born in Portsmouth? [/INST] SELECT player FROM table_name_97 WHERE...
Where was the player whose Current Club Elfsborg born?
CREATE TABLE table_name_63 (born VARCHAR, current_club VARCHAR)
SELECT born FROM table_name_63 WHERE current_club = "elfsborg"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (born VARCHAR, current_club VARCHAR) Question: Where was the player whose Current Club Elfsborg born? [/INST] SELECT born FROM table_name_63 WHERE current_club = "elfsborg" </s>
What is the debut for the person born in Poole?
CREATE TABLE table_name_82 (debut VARCHAR, born VARCHAR)
SELECT debut FROM table_name_82 WHERE born = "poole"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (debut VARCHAR, born VARCHAR) Question: What is the debut for the person born in Poole? [/INST] SELECT debut FROM table_name_82 WHERE born = "poole" </s>
What is the club for Sam Magri?
CREATE TABLE table_name_9 (current_club VARCHAR, player VARCHAR)
SELECT current_club FROM table_name_9 WHERE player = "sam magri"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (current_club VARCHAR, player VARCHAR) Question: What is the club for Sam Magri? [/INST] SELECT current_club FROM table_name_9 WHERE player = "sam magri" </s>
What is the name of the manager of the Atlético Baleares?
CREATE TABLE table_name_54 (manager VARCHAR, current_club VARCHAR)
SELECT manager FROM table_name_54 WHERE current_club = "atlético baleares"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (manager VARCHAR, current_club VARCHAR) Question: What is the name of the manager of the Atlético Baleares? [/INST] SELECT manager FROM table_name_54 WHERE current_club = "atlético baleares" </s>
Who was the best blocker for the year that has a League Champion of queens of pain, and a C.A.N.T.S.L.E.E.P. Award of chassis crass (brooklyn)?
CREATE TABLE table_name_94 (best_blocker VARCHAR, league_champion VARCHAR, cantsleep_award VARCHAR)
SELECT best_blocker FROM table_name_94 WHERE league_champion = "queens of pain" AND cantsleep_award = "chassis crass (brooklyn)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (best_blocker VARCHAR, league_champion VARCHAR, cantsleep_award VARCHAR) Question: Who was the best blocker for the year that has a League Champion of queens of pain, and a C.A.N.T.S.L.E.E.P. Award...
Which Arena has Points larger than 28, and a Date of december 14?
CREATE TABLE table_name_2 (arena VARCHAR, points VARCHAR, date VARCHAR)
SELECT arena FROM table_name_2 WHERE points > 28 AND date = "december 14"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (arena VARCHAR, points VARCHAR, date VARCHAR) Question: Which Arena has Points larger than 28, and a Date of december 14? [/INST] SELECT arena FROM table_name_2 WHERE points > 28 AND date = "decembe...
How many Points have an Arena of bell centre?
CREATE TABLE table_name_39 (points VARCHAR, arena VARCHAR)
SELECT COUNT(points) FROM table_name_39 WHERE arena = "bell centre"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (points VARCHAR, arena VARCHAR) Question: How many Points have an Arena of bell centre? [/INST] SELECT COUNT(points) FROM table_name_39 WHERE arena = "bell centre" </s>
How much Attendance has a Loss of divis (0–3–0), and Points smaller than 38?
CREATE TABLE table_name_86 (attendance INTEGER, loss VARCHAR, points VARCHAR)
SELECT SUM(attendance) FROM table_name_86 WHERE loss = "divis (0–3–0)" AND points < 38
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (attendance INTEGER, loss VARCHAR, points VARCHAR) Question: How much Attendance has a Loss of divis (0–3–0), and Points smaller than 38? [/INST] SELECT SUM(attendance) FROM table_name_86 WHERE los...
What 2nd run has a less than 6 rank, and 3 as the total?
CREATE TABLE table_name_69 (rank VARCHAR, total VARCHAR)
SELECT 2 AS nd_run FROM table_name_69 WHERE rank < 6 AND total = 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (rank VARCHAR, total VARCHAR) Question: What 2nd run has a less than 6 rank, and 3 as the total? [/INST] SELECT 2 AS nd_run FROM table_name_69 WHERE rank < 6 AND total = 3 </s>
What is the sum number of year when Call of Duty 4: Modern Warfare was the game?
CREATE TABLE table_name_55 (year VARCHAR, game VARCHAR)
SELECT COUNT(year) FROM table_name_55 WHERE game = "call of duty 4: modern warfare"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (year VARCHAR, game VARCHAR) Question: What is the sum number of year when Call of Duty 4: Modern Warfare was the game? [/INST] SELECT COUNT(year) FROM table_name_55 WHERE game = "call of duty 4: m...
What is the earliest year when action was the genre?
CREATE TABLE table_name_35 (year INTEGER, genre VARCHAR)
SELECT MIN(year) FROM table_name_35 WHERE genre = "action"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (year INTEGER, genre VARCHAR) Question: What is the earliest year when action was the genre? [/INST] SELECT MIN(year) FROM table_name_35 WHERE genre = "action" </s>
What is the smallest year when Ubisoft Montreal was the developer (s)?
CREATE TABLE table_name_38 (year INTEGER, developer_s_ VARCHAR)
SELECT MIN(year) FROM table_name_38 WHERE developer_s_ = "ubisoft montreal"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (year INTEGER, developer_s_ VARCHAR) Question: What is the smallest year when Ubisoft Montreal was the developer (s)? [/INST] SELECT MIN(year) FROM table_name_38 WHERE developer_s_ = "ubisoft montr...
What is the latest year when Call of Duty 4: Modern Warfare was the game?
CREATE TABLE table_name_63 (year INTEGER, game VARCHAR)
SELECT MAX(year) FROM table_name_63 WHERE game = "call of duty 4: modern warfare"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (year INTEGER, game VARCHAR) Question: What is the latest year when Call of Duty 4: Modern Warfare was the game? [/INST] SELECT MAX(year) FROM table_name_63 WHERE game = "call of duty 4: modern war...
Who was Lieutenant Governor to the governor that left office on January 14, 1929?
CREATE TABLE table_name_21 (Lieutenant VARCHAR, left_office VARCHAR)
SELECT Lieutenant AS governor FROM table_name_21 WHERE left_office = "january 14, 1929"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (Lieutenant VARCHAR, left_office VARCHAR) Question: Who was Lieutenant Governor to the governor that left office on January 14, 1929? [/INST] SELECT Lieutenant AS governor FROM table_name_21 WHERE ...
Which governor took office on January 8, 1877?
CREATE TABLE table_name_88 (governor VARCHAR, took_office VARCHAR)
SELECT governor FROM table_name_88 WHERE took_office = "january 8, 1877"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (governor VARCHAR, took_office VARCHAR) Question: Which governor took office on January 8, 1877? [/INST] SELECT governor FROM table_name_88 WHERE took_office = "january 8, 1877" </s>
Who was lieutenant governor to the governor that left office on October 16, 2000?
CREATE TABLE table_name_90 (Lieutenant VARCHAR, left_office VARCHAR)
SELECT Lieutenant AS governor FROM table_name_90 WHERE left_office = "october 16, 2000"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (Lieutenant VARCHAR, left_office VARCHAR) Question: Who was lieutenant governor to the governor that left office on October 16, 2000? [/INST] SELECT Lieutenant AS governor FROM table_name_90 WHERE ...
How many terms did the governor that left office on August 4, 1825 serve?
CREATE TABLE table_name_46 (terms VARCHAR, left_office VARCHAR)
SELECT terms FROM table_name_46 WHERE left_office = "august 4, 1825"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (terms VARCHAR, left_office VARCHAR) Question: How many terms did the governor that left office on August 4, 1825 serve? [/INST] SELECT terms FROM table_name_46 WHERE left_office = "august 4, 1825"...
Which IHSAA Class has a School of shakamak?
CREATE TABLE table_name_84 (ihsaa_class VARCHAR, school VARCHAR)
SELECT ihsaa_class FROM table_name_84 WHERE school = "shakamak"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (ihsaa_class VARCHAR, school VARCHAR) Question: Which IHSAA Class has a School of shakamak? [/INST] SELECT ihsaa_class FROM table_name_84 WHERE school = "shakamak" </s>
Which County has a School of bloomfield?
CREATE TABLE table_name_32 (county VARCHAR, school VARCHAR)
SELECT county FROM table_name_32 WHERE school = "bloomfield"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (county VARCHAR, school VARCHAR) Question: Which County has a School of bloomfield? [/INST] SELECT county FROM table_name_32 WHERE school = "bloomfield" </s>
How much Enrollment has a School of shakamak?
CREATE TABLE table_name_56 (enrollment VARCHAR, school VARCHAR)
SELECT COUNT(enrollment) FROM table_name_56 WHERE school = "shakamak"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (enrollment VARCHAR, school VARCHAR) Question: How much Enrollment has a School of shakamak? [/INST] SELECT COUNT(enrollment) FROM table_name_56 WHERE school = "shakamak" </s>
Which IHSAA Class has a Mascot of bulldogs?
CREATE TABLE table_name_10 (ihsaa_class VARCHAR, mascot VARCHAR)
SELECT ihsaa_class FROM table_name_10 WHERE mascot = "bulldogs"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (ihsaa_class VARCHAR, mascot VARCHAR) Question: Which IHSAA Class has a Mascot of bulldogs? [/INST] SELECT ihsaa_class FROM table_name_10 WHERE mascot = "bulldogs" </s>
What's the 1996 if 1986 has a 1R?
CREATE TABLE table_name_53 (Id VARCHAR)
SELECT 1996 FROM table_name_53 WHERE 1986 = "1r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (Id VARCHAR) Question: What's the 1996 if 1986 has a 1R? [/INST] SELECT 1996 FROM table_name_53 WHERE 1986 = "1r" </s>
What's the 1986 if 1991 has a QF and 1998 has a 3R?
CREATE TABLE table_name_51 (Id VARCHAR)
SELECT 1986 FROM table_name_51 WHERE 1991 = "qf" AND 1998 = "3r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (Id VARCHAR) Question: What's the 1986 if 1991 has a QF and 1998 has a 3R? [/INST] SELECT 1986 FROM table_name_51 WHERE 1991 = "qf" AND 1998 = "3r" </s>
What's the 1997 if 1993 has a 1R, 1995 has a 3R, and 1999 has a 1R?
CREATE TABLE table_name_99 (Id VARCHAR)
SELECT 1997 FROM table_name_99 WHERE 1999 = "1r" AND 1995 = "3r" AND 1993 = "1r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (Id VARCHAR) Question: What's the 1997 if 1993 has a 1R, 1995 has a 3R, and 1999 has a 1R? [/INST] SELECT 1997 FROM table_name_99 WHERE 1999 = "1r" AND 1995 = "3r" AND 1993 = "1r" </s>
What's the 1994 if 1995 has a 1R?
CREATE TABLE table_name_84 (Id VARCHAR)
SELECT 1994 FROM table_name_84 WHERE 1995 = "1r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (Id VARCHAR) Question: What's the 1994 if 1995 has a 1R? [/INST] SELECT 1994 FROM table_name_84 WHERE 1995 = "1r" </s>
What's the tournament when 1992 is A?
CREATE TABLE table_name_6 (tournament VARCHAR)
SELECT tournament FROM table_name_6 WHERE 1992 = "a"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (tournament VARCHAR) Question: What's the tournament when 1992 is A? [/INST] SELECT tournament FROM table_name_6 WHERE 1992 = "a" </s>
What's the 1997 when 1992 is QF, 1995 is 1R, and 1999 is 1R?
CREATE TABLE table_name_72 (Id VARCHAR)
SELECT 1997 FROM table_name_72 WHERE 1999 = "1r" AND 1992 = "qf" AND 1995 = "1r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (Id VARCHAR) Question: What's the 1997 when 1992 is QF, 1995 is 1R, and 1999 is 1R? [/INST] SELECT 1997 FROM table_name_72 WHERE 1999 = "1r" AND 1992 = "qf" AND 1995 = "1r" </s>
What's the most league cup apps for Jimmy Lawson having 0 league cup goals?
CREATE TABLE table_name_74 (league_cup_apps INTEGER, league_cup_goals VARCHAR, name VARCHAR)
SELECT MAX(league_cup_apps) FROM table_name_74 WHERE league_cup_goals = 0 AND name = "jimmy lawson"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (league_cup_apps INTEGER, league_cup_goals VARCHAR, name VARCHAR) Question: What's the most league cup apps for Jimmy Lawson having 0 league cup goals? [/INST] SELECT MAX(league_cup_apps) FROM tabl...
What's the total goals for Alan Sweeney having 0 FA Cup goals and fewer than 0 League Cup apps?
CREATE TABLE table_name_91 (total_goals INTEGER, league_cup_apps VARCHAR, fa_cup_goals VARCHAR, name VARCHAR)
SELECT AVG(total_goals) FROM table_name_91 WHERE fa_cup_goals = 0 AND name = "alan sweeney" AND league_cup_apps < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (total_goals INTEGER, league_cup_apps VARCHAR, fa_cup_goals VARCHAR, name VARCHAR) Question: What's the total goals for Alan Sweeney having 0 FA Cup goals and fewer than 0 League Cup apps? [/INST] ...
What's the total number of league cup apps when the league goals were less than 0?
CREATE TABLE table_name_15 (league_cup_apps VARCHAR, league_goals INTEGER)
SELECT COUNT(league_cup_apps) FROM table_name_15 WHERE league_goals < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (league_cup_apps VARCHAR, league_goals INTEGER) Question: What's the total number of league cup apps when the league goals were less than 0? [/INST] SELECT COUNT(league_cup_apps) FROM table_name_15...
Where was the September 3 game?
CREATE TABLE table_name_15 (location VARCHAR, date VARCHAR)
SELECT location FROM table_name_15 WHERE date = "september 3"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (location VARCHAR, date VARCHAR) Question: Where was the September 3 game? [/INST] SELECT location FROM table_name_15 WHERE date = "september 3" </s>
Which game was on September 12?
CREATE TABLE table_name_2 (game VARCHAR, date VARCHAR)
SELECT game FROM table_name_2 WHERE date = "september 12"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (game VARCHAR, date VARCHAR) Question: Which game was on September 12? [/INST] SELECT game FROM table_name_2 WHERE date = "september 12" </s>
What is cork's rank?
CREATE TABLE table_name_4 (rank VARCHAR, county VARCHAR)
SELECT rank FROM table_name_4 WHERE county = "cork"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (rank VARCHAR, county VARCHAR) Question: What is cork's rank? [/INST] SELECT rank FROM table_name_4 WHERE county = "cork" </s>
How many totals does cork have whose rank is larger than 2?
CREATE TABLE table_name_27 (total INTEGER, county VARCHAR, rank VARCHAR)
SELECT SUM(total) FROM table_name_27 WHERE county = "cork" AND rank > 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (total INTEGER, county VARCHAR, rank VARCHAR) Question: How many totals does cork have whose rank is larger than 2? [/INST] SELECT SUM(total) FROM table_name_27 WHERE county = "cork" AND rank > 2 <...
Which Matches have a Tally of 1-38?
CREATE TABLE table_name_7 (matches VARCHAR, tally VARCHAR)
SELECT matches FROM table_name_7 WHERE tally = "1-38"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (matches VARCHAR, tally VARCHAR) Question: Which Matches have a Tally of 1-38? [/INST] SELECT matches FROM table_name_7 WHERE tally = "1-38" </s>
How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals?
CREATE TABLE table_name_7 (silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT silver FROM table_name_7 WHERE bronze > 0 AND total < 54 AND nation = "spain"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR) Question: How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals? [/INST] SELECT ...
What was the highest number of gold medals when there were 0 silver medals?
CREATE TABLE table_name_78 (gold INTEGER, silver INTEGER)
SELECT MAX(gold) FROM table_name_78 WHERE silver < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (gold INTEGER, silver INTEGER) Question: What was the highest number of gold medals when there were 0 silver medals? [/INST] SELECT MAX(gold) FROM table_name_78 WHERE silver < 0 </s>
What's Brazil's rank when it has notes of R?
CREATE TABLE table_name_4 (rank VARCHAR, notes VARCHAR, country VARCHAR)
SELECT COUNT(rank) FROM table_name_4 WHERE notes = "r" AND country = "brazil"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (rank VARCHAR, notes VARCHAR, country VARCHAR) Question: What's Brazil's rank when it has notes of R? [/INST] SELECT COUNT(rank) FROM table_name_4 WHERE notes = "r" AND country = "brazil" </s>
Which Peak Position has a Date of 10 june 1998?
CREATE TABLE table_name_21 (peak_position VARCHAR, date VARCHAR)
SELECT peak_position FROM table_name_21 WHERE date = "10 june 1998"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (peak_position VARCHAR, date VARCHAR) Question: Which Peak Position has a Date of 10 june 1998? [/INST] SELECT peak_position FROM table_name_21 WHERE date = "10 june 1998" </s>
What Report is on June 3, 2000?
CREATE TABLE table_name_85 (report VARCHAR, date VARCHAR)
SELECT report FROM table_name_85 WHERE date = "june 3, 2000"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (report VARCHAR, date VARCHAR) Question: What Report is on June 3, 2000? [/INST] SELECT report FROM table_name_85 WHERE date = "june 3, 2000" </s>
What is the Report on November 15, 2000?
CREATE TABLE table_name_18 (report VARCHAR, date VARCHAR)
SELECT report FROM table_name_18 WHERE date = "november 15, 2000"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (report VARCHAR, date VARCHAR) Question: What is the Report on November 15, 2000? [/INST] SELECT report FROM table_name_18 WHERE date = "november 15, 2000" </s>
What is the Score on October 7, 2000?
CREATE TABLE table_name_45 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_45 WHERE date = "october 7, 2000"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (score VARCHAR, date VARCHAR) Question: What is the Score on October 7, 2000? [/INST] SELECT score FROM table_name_45 WHERE date = "october 7, 2000" </s>
What is the figure for Santo Domingo, Dominican for the world record in the clean & jerk?
CREATE TABLE table_name_79 (santo_domingo_ VARCHAR, _dominican VARCHAR, world_record VARCHAR)
SELECT santo_domingo_, _dominican FROM table_name_79 WHERE world_record = "clean & jerk"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (santo_domingo_ VARCHAR, _dominican VARCHAR, world_record VARCHAR) Question: What is the figure for Santo Domingo, Dominican for the world record in the clean & jerk? [/INST] SELECT santo_domingo_,...