instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
On the date of June 8 what was the record?
CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_32 WHERE date = "june 8"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR) Question: On the date of June 8 what was the record? [/INST] SELECT record FROM table_name_32 WHERE date = "june 8" </s>
On the date of June 15 what was the score?
CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_32 WHERE date = "june 15"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR) Question: On the date of June 15 what was the score? [/INST] SELECT score FROM table_name_32 WHERE date = "june 15" </s>
What College/junior/club had a player of United States nationality drafted by the Toronto Maple Leafs?
CREATE TABLE table_name_12 (college_junior_club_team VARCHAR, nhl_team VARCHAR, nationality VARCHAR)
SELECT college_junior_club_team FROM table_name_12 WHERE nhl_team = "toronto maple leafs" AND nationality = "united states"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (college_junior_club_team VARCHAR, nhl_team VARCHAR, nationality VARCHAR) Question: What College/junior/club had a player of United States nationality drafted by the Toronto Maple Leafs? [/INST] SELECT college_junior_club_team FROM table_name_12 WHERE nhl_team = "toronto maple leafs" AND nationality = "united states" </s>
What is the college/junior/club team of the defence player drafted by the New York Rangers?
CREATE TABLE table_name_43 (college_junior_club_team VARCHAR, nhl_team VARCHAR, position VARCHAR)
SELECT college_junior_club_team FROM table_name_43 WHERE nhl_team = "new york rangers" AND position = "defence"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (college_junior_club_team VARCHAR, nhl_team VARCHAR, position VARCHAR) Question: What is the college/junior/club team of the defence player drafted by the New York Rangers? [/INST] SELECT college_junior_club_team FROM table_name_43 WHERE nhl_team = "new york rangers" AND position = "defence" </s>
What is the rank of the cadillac northstar lmp02 chassis?
CREATE TABLE table_name_78 (rank VARCHAR, chassis VARCHAR)
SELECT rank FROM table_name_78 WHERE chassis = "cadillac northstar lmp02"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (rank VARCHAR, chassis VARCHAR) Question: What is the rank of the cadillac northstar lmp02 chassis? [/INST] SELECT rank FROM table_name_78 WHERE chassis = "cadillac northstar lmp02" </s>
What is the entrant for the audi 3.6l turbo v8 engine and ranked 3rd with 163 points?
CREATE TABLE table_name_1 (entrant VARCHAR, points VARCHAR, engine VARCHAR, rank VARCHAR)
SELECT entrant FROM table_name_1 WHERE engine = "audi 3.6l turbo v8" AND rank = "3rd" AND points = 163
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (entrant VARCHAR, points VARCHAR, engine VARCHAR, rank VARCHAR) Question: What is the entrant for the audi 3.6l turbo v8 engine and ranked 3rd with 163 points? [/INST] SELECT entrant FROM table_name_1 WHERE engine = "audi 3.6l turbo v8" AND rank = "3rd" AND points = 163 </s>
What is the rank with more than 123 points, an audi r8 chassis, and a lmp900 class?
CREATE TABLE table_name_75 (rank VARCHAR, class VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT rank FROM table_name_75 WHERE points > 123 AND chassis = "audi r8" AND class = "lmp900"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (rank VARCHAR, class VARCHAR, points VARCHAR, chassis VARCHAR) Question: What is the rank with more than 123 points, an audi r8 chassis, and a lmp900 class? [/INST] SELECT rank FROM table_name_75 WHERE points > 123 AND chassis = "audi r8" AND class = "lmp900" </s>
What is the engine for the bmw motorsport entrant with 123 points before 2004?
CREATE TABLE table_name_57 (engine VARCHAR, points VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT engine FROM table_name_57 WHERE year < 2004 AND entrant = "bmw motorsport" AND points = 123
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (engine VARCHAR, points VARCHAR, year VARCHAR, entrant VARCHAR) Question: What is the engine for the bmw motorsport entrant with 123 points before 2004? [/INST] SELECT engine FROM table_name_57 WHERE year < 2004 AND entrant = "bmw motorsport" AND points = 123 </s>
Which points have a Combined elapsed time of 175d 20h 46m 04s?
CREATE TABLE table_name_97 (points VARCHAR, combined_elapsed_time VARCHAR)
SELECT points FROM table_name_97 WHERE combined_elapsed_time = "175d 20h 46m 04s"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (points VARCHAR, combined_elapsed_time VARCHAR) Question: Which points have a Combined elapsed time of 175d 20h 46m 04s? [/INST] SELECT points FROM table_name_97 WHERE combined_elapsed_time = "175d 20h 46m 04s" </s>
Which yacht name has a Combined elapsed time of 179d 11h 58m 14s?
CREATE TABLE table_name_50 (yacht_name VARCHAR, combined_elapsed_time VARCHAR)
SELECT yacht_name FROM table_name_50 WHERE combined_elapsed_time = "179d 11h 58m 14s"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (yacht_name VARCHAR, combined_elapsed_time VARCHAR) Question: Which yacht name has a Combined elapsed time of 179d 11h 58m 14s? [/INST] SELECT yacht_name FROM table_name_50 WHERE combined_elapsed_time = "179d 11h 58m 14s" </s>
Which skipper has 78 points?
CREATE TABLE table_name_90 (skipper VARCHAR, points VARCHAR)
SELECT skipper FROM table_name_90 WHERE points = "78"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (skipper VARCHAR, points VARCHAR) Question: Which skipper has 78 points? [/INST] SELECT skipper FROM table_name_90 WHERE points = "78" </s>
Which Overall place has a Yacht name of lg flatron?
CREATE TABLE table_name_57 (overall_place VARCHAR, yacht_name VARCHAR)
SELECT overall_place FROM table_name_57 WHERE yacht_name = "lg flatron"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (overall_place VARCHAR, yacht_name VARCHAR) Question: Which Overall place has a Yacht name of lg flatron? [/INST] SELECT overall_place FROM table_name_57 WHERE yacht_name = "lg flatron" </s>
Which Combined elapsed time has a Skipper of stephen wilkins?
CREATE TABLE table_name_17 (combined_elapsed_time VARCHAR, skipper VARCHAR)
SELECT combined_elapsed_time FROM table_name_17 WHERE skipper = "stephen wilkins"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (combined_elapsed_time VARCHAR, skipper VARCHAR) Question: Which Combined elapsed time has a Skipper of stephen wilkins? [/INST] SELECT combined_elapsed_time FROM table_name_17 WHERE skipper = "stephen wilkins" </s>
Before the year 1988, what is the lowest number of points that entrant Coloni SpA scored?
CREATE TABLE table_name_84 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_84 WHERE entrant = "coloni spa" AND year < 1988
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (points INTEGER, entrant VARCHAR, year VARCHAR) Question: Before the year 1988, what is the lowest number of points that entrant Coloni SpA scored? [/INST] SELECT MIN(points) FROM table_name_84 WHERE entrant = "coloni spa" AND year < 1988 </s>
Which chassis used by the entrant Automobiles Gonfaronnaises Sportives scored 0 points?
CREATE TABLE table_name_65 (chassis VARCHAR, points VARCHAR, entrant VARCHAR)
SELECT chassis FROM table_name_65 WHERE points = 0 AND entrant = "automobiles gonfaronnaises sportives"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (chassis VARCHAR, points VARCHAR, entrant VARCHAR) Question: Which chassis used by the entrant Automobiles Gonfaronnaises Sportives scored 0 points? [/INST] SELECT chassis FROM table_name_65 WHERE points = 0 AND entrant = "automobiles gonfaronnaises sportives" </s>
Who was the entrant before 1988?
CREATE TABLE table_name_41 (entrant VARCHAR, year INTEGER)
SELECT entrant FROM table_name_41 WHERE year < 1988
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (entrant VARCHAR, year INTEGER) Question: Who was the entrant before 1988? [/INST] SELECT entrant FROM table_name_41 WHERE year < 1988 </s>
Which engine was used in 1987?
CREATE TABLE table_name_89 (engine VARCHAR, year VARCHAR)
SELECT engine FROM table_name_89 WHERE year = 1987
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (engine VARCHAR, year VARCHAR) Question: Which engine was used in 1987? [/INST] SELECT engine FROM table_name_89 WHERE year = 1987 </s>
What league did they play in 2001?
CREATE TABLE table_name_39 (league VARCHAR, year VARCHAR)
SELECT league FROM table_name_39 WHERE year = 2001
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (league VARCHAR, year VARCHAR) Question: What league did they play in 2001? [/INST] SELECT league FROM table_name_39 WHERE year = 2001 </s>
What open cup did they play in when they finished 2nd, northeast in the reg. season?
CREATE TABLE table_name_21 (open_cup VARCHAR, reg_season VARCHAR)
SELECT open_cup FROM table_name_21 WHERE reg_season = "2nd, northeast"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (open_cup VARCHAR, reg_season VARCHAR) Question: What open cup did they play in when they finished 2nd, northeast in the reg. season? [/INST] SELECT open_cup FROM table_name_21 WHERE reg_season = "2nd, northeast" </s>
What is the week with a date of October 9, 1983, and attendance smaller than 40,492?
CREATE TABLE table_name_27 (week VARCHAR, date VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_27 WHERE date = "october 9, 1983" AND attendance < 40 OFFSET 492 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (week VARCHAR, date VARCHAR, attendance VARCHAR) Question: What is the week with a date of October 9, 1983, and attendance smaller than 40,492? [/INST] SELECT COUNT(week) FROM table_name_27 WHERE date = "october 9, 1983" AND attendance < 40 OFFSET 492 ROWS </s>
What is the lowest attendance with week 14?
CREATE TABLE table_name_30 (attendance INTEGER, week VARCHAR)
SELECT MIN(attendance) FROM table_name_30 WHERE week = 14
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (attendance INTEGER, week VARCHAR) Question: What is the lowest attendance with week 14? [/INST] SELECT MIN(attendance) FROM table_name_30 WHERE week = 14 </s>
Where did the Oakland Raiders play in week 12 of their 1976 season?
CREATE TABLE table_name_90 (game_site VARCHAR, week VARCHAR)
SELECT game_site FROM table_name_90 WHERE week = 12
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (game_site VARCHAR, week VARCHAR) Question: Where did the Oakland Raiders play in week 12 of their 1976 season? [/INST] SELECT game_site FROM table_name_90 WHERE week = 12 </s>
How many years did Barclay Nordica Arrows BMW enter with Cosworth v8 engine?
CREATE TABLE table_name_43 (year INTEGER, entrant VARCHAR, engine VARCHAR)
SELECT SUM(year) FROM table_name_43 WHERE entrant = "barclay nordica arrows bmw" AND engine = "cosworth v8"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (year INTEGER, entrant VARCHAR, engine VARCHAR) Question: How many years did Barclay Nordica Arrows BMW enter with Cosworth v8 engine? [/INST] SELECT SUM(year) FROM table_name_43 WHERE entrant = "barclay nordica arrows bmw" AND engine = "cosworth v8" </s>
How many years did barclay nordica arrows bmw enter with a bmw str-4 t/c engine with less than 1 point?
CREATE TABLE table_name_98 (year INTEGER, points VARCHAR, engine VARCHAR, entrant VARCHAR)
SELECT SUM(year) FROM table_name_98 WHERE engine = "bmw str-4 t/c" AND entrant = "barclay nordica arrows bmw" AND points < 1
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (year INTEGER, points VARCHAR, engine VARCHAR, entrant VARCHAR) Question: How many years did barclay nordica arrows bmw enter with a bmw str-4 t/c engine with less than 1 point? [/INST] SELECT SUM(year) FROM table_name_98 WHERE engine = "bmw str-4 t/c" AND entrant = "barclay nordica arrows bmw" AND points < 1 </s>
How many years was ensign n180b a Chassis with 4 points?
CREATE TABLE table_name_12 (year INTEGER, points VARCHAR, chassis VARCHAR)
SELECT SUM(year) FROM table_name_12 WHERE points = 4 AND chassis = "ensign n180b"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (year INTEGER, points VARCHAR, chassis VARCHAR) Question: How many years was ensign n180b a Chassis with 4 points? [/INST] SELECT SUM(year) FROM table_name_12 WHERE points = 4 AND chassis = "ensign n180b" </s>
What is the division record for the Indians?
CREATE TABLE table_name_26 (division_record VARCHAR, team VARCHAR)
SELECT division_record FROM table_name_26 WHERE team = "indians"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (division_record VARCHAR, team VARCHAR) Question: What is the division record for the Indians? [/INST] SELECT division_record FROM table_name_26 WHERE team = "indians" </s>
What is the overall record of Indian River?
CREATE TABLE table_name_17 (overall_record VARCHAR, school VARCHAR)
SELECT overall_record FROM table_name_17 WHERE school = "indian river"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (overall_record VARCHAR, school VARCHAR) Question: What is the overall record of Indian River? [/INST] SELECT overall_record FROM table_name_17 WHERE school = "indian river" </s>
What was the season outcome of Lake Forest?
CREATE TABLE table_name_43 (season_outcome VARCHAR, school VARCHAR)
SELECT season_outcome FROM table_name_43 WHERE school = "lake forest"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (season_outcome VARCHAR, school VARCHAR) Question: What was the season outcome of Lake Forest? [/INST] SELECT season_outcome FROM table_name_43 WHERE school = "lake forest" </s>
How many Deciles are coed?
CREATE TABLE table_name_51 (decile VARCHAR, gender VARCHAR)
SELECT COUNT(decile) FROM table_name_51 WHERE gender = "coed"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (decile VARCHAR, gender VARCHAR) Question: How many Deciles are coed? [/INST] SELECT COUNT(decile) FROM table_name_51 WHERE gender = "coed" </s>
Which is the lowest Decile that is coed?
CREATE TABLE table_name_94 (decile INTEGER, gender VARCHAR)
SELECT MIN(decile) FROM table_name_94 WHERE gender = "coed"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (decile INTEGER, gender VARCHAR) Question: Which is the lowest Decile that is coed? [/INST] SELECT MIN(decile) FROM table_name_94 WHERE gender = "coed" </s>
What are the years for Kawerau Putauaki School?
CREATE TABLE table_name_98 (years VARCHAR, name VARCHAR)
SELECT years FROM table_name_98 WHERE name = "kawerau putauaki school"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (years VARCHAR, name VARCHAR) Question: What are the years for Kawerau Putauaki School? [/INST] SELECT years FROM table_name_98 WHERE name = "kawerau putauaki school" </s>
What is the round or race of the winning driver Charles Hollings and what was his pole position?
CREATE TABLE table_name_32 (round___race VARCHAR, winning_driver VARCHAR, pole_position VARCHAR)
SELECT round___race FROM table_name_32 WHERE winning_driver = "charles hollings" AND pole_position = "charles hollings"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (round___race VARCHAR, winning_driver VARCHAR, pole_position VARCHAR) Question: What is the round or race of the winning driver Charles Hollings and what was his pole position? [/INST] SELECT round___race FROM table_name_32 WHERE winning_driver = "charles hollings" AND pole_position = "charles hollings" </s>
What was the earliest year in which long jump was performed in the world indoor Championships in 5th position?
CREATE TABLE table_name_69 (year INTEGER, position VARCHAR, performance VARCHAR, competition VARCHAR)
SELECT MIN(year) FROM table_name_69 WHERE performance = "long jump" AND competition = "world indoor championships" AND position = "5th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (year INTEGER, position VARCHAR, performance VARCHAR, competition VARCHAR) Question: What was the earliest year in which long jump was performed in the world indoor Championships in 5th position? [/INST] SELECT MIN(year) FROM table_name_69 WHERE performance = "long jump" AND competition = "world indoor championships" AND position = "5th" </s>
What was the latest year in which she took 4th position in Budapest, Hungary?
CREATE TABLE table_name_12 (year INTEGER, position VARCHAR, venue VARCHAR)
SELECT MAX(year) FROM table_name_12 WHERE position = "4th" AND venue = "budapest, hungary"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (year INTEGER, position VARCHAR, venue VARCHAR) Question: What was the latest year in which she took 4th position in Budapest, Hungary? [/INST] SELECT MAX(year) FROM table_name_12 WHERE position = "4th" AND venue = "budapest, hungary" </s>
Which astronaut went on the Apollo 16 mission at the age of 36y 6m 18d to step on the moon?
CREATE TABLE table_name_20 (name VARCHAR, mission VARCHAR, age_at_first_step VARCHAR)
SELECT name FROM table_name_20 WHERE mission = "apollo 16" AND age_at_first_step = "36y 6m 18d"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (name VARCHAR, mission VARCHAR, age_at_first_step VARCHAR) Question: Which astronaut went on the Apollo 16 mission at the age of 36y 6m 18d to step on the moon? [/INST] SELECT name FROM table_name_20 WHERE mission = "apollo 16" AND age_at_first_step = "36y 6m 18d" </s>
David Scott went on which mission?
CREATE TABLE table_name_8 (mission VARCHAR, name VARCHAR)
SELECT mission FROM table_name_8 WHERE name = "david scott"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (mission VARCHAR, name VARCHAR) Question: David Scott went on which mission? [/INST] SELECT mission FROM table_name_8 WHERE name = "david scott" </s>
The astronaut who was 37y 8m 4d when making a first step on the moon was in which service?
CREATE TABLE table_name_65 (service VARCHAR, age_at_first_step VARCHAR)
SELECT service FROM table_name_65 WHERE age_at_first_step = "37y 8m 4d"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (service VARCHAR, age_at_first_step VARCHAR) Question: The astronaut who was 37y 8m 4d when making a first step on the moon was in which service? [/INST] SELECT service FROM table_name_65 WHERE age_at_first_step = "37y 8m 4d" </s>
Pete Conrad was on the Apollo 12 mission but also had what Lunar EVA dates?
CREATE TABLE table_name_27 (lunar_eva_dates VARCHAR, mission VARCHAR, name VARCHAR)
SELECT lunar_eva_dates FROM table_name_27 WHERE mission = "apollo 12" AND name = "pete conrad"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (lunar_eva_dates VARCHAR, mission VARCHAR, name VARCHAR) Question: Pete Conrad was on the Apollo 12 mission but also had what Lunar EVA dates? [/INST] SELECT lunar_eva_dates FROM table_name_27 WHERE mission = "apollo 12" AND name = "pete conrad" </s>
The Apollo astronaut who was 38y 9m 7d when first stepping on the moon is who?
CREATE TABLE table_name_27 (born VARCHAR, age_at_first_step VARCHAR)
SELECT born FROM table_name_27 WHERE age_at_first_step = "38y 9m 7d"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (born VARCHAR, age_at_first_step VARCHAR) Question: The Apollo astronaut who was 38y 9m 7d when first stepping on the moon is who? [/INST] SELECT born FROM table_name_27 WHERE age_at_first_step = "38y 9m 7d" </s>
Which class has a year prior to 2011 and audi r15 tdi as the chassis?
CREATE TABLE table_name_72 (class VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT class FROM table_name_72 WHERE year < 2011 AND chassis = "audi r15 tdi"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (class VARCHAR, year VARCHAR, chassis VARCHAR) Question: Which class has a year prior to 2011 and audi r15 tdi as the chassis? [/INST] SELECT class FROM table_name_72 WHERE year < 2011 AND chassis = "audi r15 tdi" </s>
Which engine has a year later than 2006 and 60 as the points?
CREATE TABLE table_name_51 (engine VARCHAR, year VARCHAR, points VARCHAR)
SELECT engine FROM table_name_51 WHERE year > 2006 AND points = "60"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (engine VARCHAR, year VARCHAR, points VARCHAR) Question: Which engine has a year later than 2006 and 60 as the points? [/INST] SELECT engine FROM table_name_51 WHERE year > 2006 AND points = "60" </s>
How many years has an engine of audi 3.6l turbo v8 and 1st as the rank with an audi r8r as the chassis?
CREATE TABLE table_name_10 (year VARCHAR, chassis VARCHAR, engine VARCHAR, rank VARCHAR)
SELECT COUNT(year) FROM table_name_10 WHERE engine = "audi 3.6l turbo v8" AND rank = "1st" AND chassis = "audi r8r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (year VARCHAR, chassis VARCHAR, engine VARCHAR, rank VARCHAR) Question: How many years has an engine of audi 3.6l turbo v8 and 1st as the rank with an audi r8r as the chassis? [/INST] SELECT COUNT(year) FROM table_name_10 WHERE engine = "audi 3.6l turbo v8" AND rank = "1st" AND chassis = "audi r8r" </s>
Which entrant has 25th as the rank?
CREATE TABLE table_name_22 (entrant VARCHAR, rank VARCHAR)
SELECT entrant FROM table_name_22 WHERE rank = "25th"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (entrant VARCHAR, rank VARCHAR) Question: Which entrant has 25th as the rank? [/INST] SELECT entrant FROM table_name_22 WHERE rank = "25th" </s>
What is the average year Rich Beem had a to par less than 17?
CREATE TABLE table_name_20 (year_won INTEGER, player VARCHAR, to_par VARCHAR)
SELECT AVG(year_won) FROM table_name_20 WHERE player = "rich beem" AND to_par < 17
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (year_won INTEGER, player VARCHAR, to_par VARCHAR) Question: What is the average year Rich Beem had a to par less than 17? [/INST] SELECT AVG(year_won) FROM table_name_20 WHERE player = "rich beem" AND to_par < 17 </s>
What is the earliest year won with a total bigger than 156?
CREATE TABLE table_name_81 (year_won INTEGER, total INTEGER)
SELECT MIN(year_won) FROM table_name_81 WHERE total > 156
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (year_won INTEGER, total INTEGER) Question: What is the earliest year won with a total bigger than 156? [/INST] SELECT MIN(year_won) FROM table_name_81 WHERE total > 156 </s>
What is the total for Bob Tway for the year won before 2002 with a to par bigger than 7?
CREATE TABLE table_name_2 (total VARCHAR, to_par VARCHAR, year_won VARCHAR, player VARCHAR)
SELECT COUNT(total) FROM table_name_2 WHERE year_won < 2002 AND player = "bob tway" AND to_par > 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (total VARCHAR, to_par VARCHAR, year_won VARCHAR, player VARCHAR) Question: What is the total for Bob Tway for the year won before 2002 with a to par bigger than 7? [/INST] SELECT COUNT(total) FROM table_name_2 WHERE year_won < 2002 AND player = "bob tway" AND to_par > 7 </s>
What is the to par for Paul Azinger from the United States after 1986 for a total bigger than 145?
CREATE TABLE table_name_72 (to_par VARCHAR, total VARCHAR, player VARCHAR, country VARCHAR, year_won VARCHAR)
SELECT COUNT(to_par) FROM table_name_72 WHERE country = "united states" AND year_won > 1986 AND player = "paul azinger" AND total > 145
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (to_par VARCHAR, total VARCHAR, player VARCHAR, country VARCHAR, year_won VARCHAR) Question: What is the to par for Paul Azinger from the United States after 1986 for a total bigger than 145? [/INST] SELECT COUNT(to_par) FROM table_name_72 WHERE country = "united states" AND year_won > 1986 AND player = "paul azinger" AND total > 145 </s>
What is the earliest year won Paul Azinger had with a to par higher than 5?
CREATE TABLE table_name_12 (year_won INTEGER, player VARCHAR, to_par VARCHAR)
SELECT MIN(year_won) FROM table_name_12 WHERE player = "paul azinger" AND to_par > 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (year_won INTEGER, player VARCHAR, to_par VARCHAR) Question: What is the earliest year won Paul Azinger had with a to par higher than 5? [/INST] SELECT MIN(year_won) FROM table_name_12 WHERE player = "paul azinger" AND to_par > 5 </s>
What is the year won by Australia with a to par bigger than 16?
CREATE TABLE table_name_22 (year_won VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT COUNT(year_won) FROM table_name_22 WHERE country = "australia" AND to_par > 16
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (year_won VARCHAR, country VARCHAR, to_par VARCHAR) Question: What is the year won by Australia with a to par bigger than 16? [/INST] SELECT COUNT(year_won) FROM table_name_22 WHERE country = "australia" AND to_par > 16 </s>
What is the Lifespan when the Representative is Theodore F. Kluttz?
CREATE TABLE table_name_96 (lifespan VARCHAR, representative VARCHAR)
SELECT lifespan FROM table_name_96 WHERE representative = "theodore f. kluttz"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (lifespan VARCHAR, representative VARCHAR) Question: What is the Lifespan when the Representative is Theodore F. Kluttz? [/INST] SELECT lifespan FROM table_name_96 WHERE representative = "theodore f. kluttz" </s>
What week's game had a result of l 35–37?
CREATE TABLE table_name_88 (week VARCHAR, result VARCHAR)
SELECT week FROM table_name_88 WHERE result = "l 35–37"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (week VARCHAR, result VARCHAR) Question: What week's game had a result of l 35–37? [/INST] SELECT week FROM table_name_88 WHERE result = "l 35–37" </s>
What year was trio brdeact wind allass the entrant?
CREATE TABLE table_name_16 (year VARCHAR, entrant VARCHAR)
SELECT year FROM table_name_16 WHERE entrant = "trio brdeact wind allass"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (year VARCHAR, entrant VARCHAR) Question: What year was trio brdeact wind allass the entrant? [/INST] SELECT year FROM table_name_16 WHERE entrant = "trio brdeact wind allass" </s>
What is the year when kurtis kraft 500f was the chassis?
CREATE TABLE table_name_46 (year INTEGER, chassis VARCHAR)
SELECT SUM(year) FROM table_name_46 WHERE chassis = "kurtis kraft 500f"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (year INTEGER, chassis VARCHAR) Question: What is the year when kurtis kraft 500f was the chassis? [/INST] SELECT SUM(year) FROM table_name_46 WHERE chassis = "kurtis kraft 500f" </s>
What is the earliest year when the points were more than 0?
CREATE TABLE table_name_38 (year INTEGER, points INTEGER)
SELECT MIN(year) FROM table_name_38 WHERE points > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (year INTEGER, points INTEGER) Question: What is the earliest year when the points were more than 0? [/INST] SELECT MIN(year) FROM table_name_38 WHERE points > 0 </s>
What's the school name in Balclutha that has a Decile of 7 and a roll larger than 186?
CREATE TABLE table_name_91 (name VARCHAR, roll VARCHAR, area VARCHAR, decile VARCHAR)
SELECT name FROM table_name_91 WHERE area = "balclutha" AND decile < 7 AND roll > 186
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (name VARCHAR, roll VARCHAR, area VARCHAR, decile VARCHAR) Question: What's the school name in Balclutha that has a Decile of 7 and a roll larger than 186? [/INST] SELECT name FROM table_name_91 WHERE area = "balclutha" AND decile < 7 AND roll > 186 </s>
Which school in Balclutha has a roll smaller than 55?
CREATE TABLE table_name_52 (name VARCHAR, area VARCHAR, roll VARCHAR)
SELECT name FROM table_name_52 WHERE area = "balclutha" AND roll < 55
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (name VARCHAR, area VARCHAR, roll VARCHAR) Question: Which school in Balclutha has a roll smaller than 55? [/INST] SELECT name FROM table_name_52 WHERE area = "balclutha" AND roll < 55 </s>
When has winnipeg jets with a Score of 4–6?
CREATE TABLE table_name_82 (date VARCHAR, home VARCHAR, score VARCHAR)
SELECT date FROM table_name_82 WHERE home = "winnipeg jets" AND score = "4–6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (date VARCHAR, home VARCHAR, score VARCHAR) Question: When has winnipeg jets with a Score of 4–6? [/INST] SELECT date FROM table_name_82 WHERE home = "winnipeg jets" AND score = "4–6" </s>
When is Edmonton Oilers in?
CREATE TABLE table_name_99 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_99 WHERE home = "edmonton oilers"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (date VARCHAR, home VARCHAR) Question: When is Edmonton Oilers in? [/INST] SELECT date FROM table_name_99 WHERE home = "edmonton oilers" </s>
What is the Score that has a Winnipeg Jets as Visitor on april 7?
CREATE TABLE table_name_10 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT score FROM table_name_10 WHERE visitor = "winnipeg jets" AND date = "april 7"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (score VARCHAR, visitor VARCHAR, date VARCHAR) Question: What is the Score that has a Winnipeg Jets as Visitor on april 7? [/INST] SELECT score FROM table_name_10 WHERE visitor = "winnipeg jets" AND date = "april 7" </s>
What is the Score on April 6?
CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_71 WHERE date = "april 6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR) Question: What is the Score on April 6? [/INST] SELECT score FROM table_name_71 WHERE date = "april 6" </s>
When has a Record of 1–0?
CREATE TABLE table_name_52 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_52 WHERE record = "1–0"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (date VARCHAR, record VARCHAR) Question: When has a Record of 1–0? [/INST] SELECT date FROM table_name_52 WHERE record = "1–0" </s>
What is the LLWS when the Year is 2003?
CREATE TABLE table_name_37 (llws VARCHAR, year VARCHAR)
SELECT llws FROM table_name_37 WHERE year = 2003
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (llws VARCHAR, year VARCHAR) Question: What is the LLWS when the Year is 2003? [/INST] SELECT llws FROM table_name_37 WHERE year = 2003 </s>
What is the earliest Year when the City is Peabody?
CREATE TABLE table_name_2 (year INTEGER, city VARCHAR)
SELECT MIN(year) FROM table_name_2 WHERE city = "peabody"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (year INTEGER, city VARCHAR) Question: What is the earliest Year when the City is Peabody? [/INST] SELECT MIN(year) FROM table_name_2 WHERE city = "peabody" </s>
What is the total number of Years when the LLWS is 4th place, and when the City is Westport?
CREATE TABLE table_name_19 (year VARCHAR, llws VARCHAR, city VARCHAR)
SELECT COUNT(year) FROM table_name_19 WHERE llws = "4th place" AND city = "westport"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (year VARCHAR, llws VARCHAR, city VARCHAR) Question: What is the total number of Years when the LLWS is 4th place, and when the City is Westport? [/INST] SELECT COUNT(year) FROM table_name_19 WHERE llws = "4th place" AND city = "westport" </s>
What team has Pony as the kit manufacturer and Gary Mabbutt as the captain?
CREATE TABLE table_name_9 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR)
SELECT team FROM table_name_9 WHERE kit_manufacturer = "pony" AND captain = "gary mabbutt"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR) Question: What team has Pony as the kit manufacturer and Gary Mabbutt as the captain? [/INST] SELECT team FROM table_name_9 WHERE kit_manufacturer = "pony" AND captain = "gary mabbutt" </s>
Who is the manager 1 for Leeds United?
CREATE TABLE table_name_95 (manager_1 VARCHAR, team VARCHAR)
SELECT manager_1 FROM table_name_95 WHERE team = "leeds united"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (manager_1 VARCHAR, team VARCHAR) Question: Who is the manager 1 for Leeds United? [/INST] SELECT manager_1 FROM table_name_95 WHERE team = "leeds united" </s>
What is the team with a Pony kit manufacturer and Julian Dicks as the captain?
CREATE TABLE table_name_27 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR)
SELECT team FROM table_name_27 WHERE kit_manufacturer = "pony" AND captain = "julian dicks"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR) Question: What is the team with a Pony kit manufacturer and Julian Dicks as the captain? [/INST] SELECT team FROM table_name_27 WHERE kit_manufacturer = "pony" AND captain = "julian dicks" </s>
What team has a kit manufacturer of Umbro and Eric Cantona as captain?
CREATE TABLE table_name_41 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR)
SELECT team FROM table_name_41 WHERE kit_manufacturer = "umbro" AND captain = "eric cantona"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR) Question: What team has a kit manufacturer of Umbro and Eric Cantona as captain? [/INST] SELECT team FROM table_name_41 WHERE kit_manufacturer = "umbro" AND captain = "eric cantona" </s>
Who is the manager 1 with Puma as the kit manufacturer and Puma as the shirt sponsor?
CREATE TABLE table_name_29 (manager_1 VARCHAR, kit_manufacturer VARCHAR, shirt_sponsor VARCHAR)
SELECT manager_1 FROM table_name_29 WHERE kit_manufacturer = "puma" AND shirt_sponsor = "puma"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (manager_1 VARCHAR, kit_manufacturer VARCHAR, shirt_sponsor VARCHAR) Question: Who is the manager 1 with Puma as the kit manufacturer and Puma as the shirt sponsor? [/INST] SELECT manager_1 FROM table_name_29 WHERE kit_manufacturer = "puma" AND shirt_sponsor = "puma" </s>
What is the kit manufacturer with Walkers as the shirt sponsor?
CREATE TABLE table_name_1 (kit_manufacturer VARCHAR, shirt_sponsor VARCHAR)
SELECT kit_manufacturer FROM table_name_1 WHERE shirt_sponsor = "walkers"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (kit_manufacturer VARCHAR, shirt_sponsor VARCHAR) Question: What is the kit manufacturer with Walkers as the shirt sponsor? [/INST] SELECT kit_manufacturer FROM table_name_1 WHERE shirt_sponsor = "walkers" </s>
Name the average points for dallara 3087 lola t88/50 and year before 1988
CREATE TABLE table_name_63 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT AVG(points) FROM table_name_63 WHERE chassis = "dallara 3087 lola t88/50" AND year < 1988
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (points INTEGER, chassis VARCHAR, year VARCHAR) Question: Name the average points for dallara 3087 lola t88/50 and year before 1988 [/INST] SELECT AVG(points) FROM table_name_63 WHERE chassis = "dallara 3087 lola t88/50" AND year < 1988 </s>
Name the sum of points for 1992
CREATE TABLE table_name_38 (points INTEGER, year VARCHAR)
SELECT SUM(points) FROM table_name_38 WHERE year = 1992
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (points INTEGER, year VARCHAR) Question: Name the sum of points for 1992 [/INST] SELECT SUM(points) FROM table_name_38 WHERE year = 1992 </s>
Name the points for year more than 1987
CREATE TABLE table_name_56 (points VARCHAR, year INTEGER)
SELECT points FROM table_name_56 WHERE year > 1987
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (points VARCHAR, year INTEGER) Question: Name the points for year more than 1987 [/INST] SELECT points FROM table_name_56 WHERE year > 1987 </s>
Name the year for points less than 20 and chassis of dallara 3087
CREATE TABLE table_name_62 (year VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT year FROM table_name_62 WHERE points < 20 AND chassis = "dallara 3087"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (year VARCHAR, points VARCHAR, chassis VARCHAR) Question: Name the year for points less than 20 and chassis of dallara 3087 [/INST] SELECT year FROM table_name_62 WHERE points < 20 AND chassis = "dallara 3087" </s>
What is the most apps that a has a total season and 3 goals?
CREATE TABLE table_name_22 (apps INTEGER, season VARCHAR, goals VARCHAR)
SELECT MAX(apps) FROM table_name_22 WHERE season = "total" AND goals > 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (apps INTEGER, season VARCHAR, goals VARCHAR) Question: What is the most apps that a has a total season and 3 goals? [/INST] SELECT MAX(apps) FROM table_name_22 WHERE season = "total" AND goals > 3 </s>
What is the final number of apps with 2 goals?
CREATE TABLE table_name_90 (apps VARCHAR, goals VARCHAR)
SELECT COUNT(apps) FROM table_name_90 WHERE goals = 2
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (apps VARCHAR, goals VARCHAR) Question: What is the final number of apps with 2 goals? [/INST] SELECT COUNT(apps) FROM table_name_90 WHERE goals = 2 </s>
What date did the episode with a weekly ranking of 14 air?
CREATE TABLE table_name_62 (airdate VARCHAR, bbc_one_weekly_ranking VARCHAR)
SELECT airdate FROM table_name_62 WHERE bbc_one_weekly_ranking = 14
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (airdate VARCHAR, bbc_one_weekly_ranking VARCHAR) Question: What date did the episode with a weekly ranking of 14 air? [/INST] SELECT airdate FROM table_name_62 WHERE bbc_one_weekly_ranking = 14 </s>
What is the total number of total viewers with a share of 18.8% and a weekly ranking under 16?
CREATE TABLE table_name_84 (total_viewers VARCHAR, share VARCHAR, bbc_one_weekly_ranking VARCHAR)
SELECT COUNT(total_viewers) FROM table_name_84 WHERE share = "18.8%" AND bbc_one_weekly_ranking < 16
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (total_viewers VARCHAR, share VARCHAR, bbc_one_weekly_ranking VARCHAR) Question: What is the total number of total viewers with a share of 18.8% and a weekly ranking under 16? [/INST] SELECT COUNT(total_viewers) FROM table_name_84 WHERE share = "18.8%" AND bbc_one_weekly_ranking < 16 </s>
Who has 37 grids?
CREATE TABLE table_name_36 (rider VARCHAR, grid VARCHAR)
SELECT rider FROM table_name_36 WHERE grid = 37
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (rider VARCHAR, grid VARCHAR) Question: Who has 37 grids? [/INST] SELECT rider FROM table_name_36 WHERE grid = 37 </s>
What is the average grid with more than 23 laps?
CREATE TABLE table_name_78 (grid INTEGER, laps INTEGER)
SELECT AVG(grid) FROM table_name_78 WHERE laps > 23
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (grid INTEGER, laps INTEGER) Question: What is the average grid with more than 23 laps? [/INST] SELECT AVG(grid) FROM table_name_78 WHERE laps > 23 </s>
What is the average grid with more than 23 laps?
CREATE TABLE table_name_56 (grid INTEGER, laps INTEGER)
SELECT AVG(grid) FROM table_name_56 WHERE laps > 23
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (grid INTEGER, laps INTEGER) Question: What is the average grid with more than 23 laps? [/INST] SELECT AVG(grid) FROM table_name_56 WHERE laps > 23 </s>
What is the average decile for te puru school?
CREATE TABLE table_name_84 (decile INTEGER, name VARCHAR)
SELECT AVG(decile) FROM table_name_84 WHERE name = "te puru school"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (decile INTEGER, name VARCHAR) Question: What is the average decile for te puru school? [/INST] SELECT AVG(decile) FROM table_name_84 WHERE name = "te puru school" </s>
What is the total decile with an Area of whitianga, and a Roll smaller than 835?
CREATE TABLE table_name_64 (decile INTEGER, area VARCHAR, roll VARCHAR)
SELECT SUM(decile) FROM table_name_64 WHERE area = "whitianga" AND roll < 835
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (decile INTEGER, area VARCHAR, roll VARCHAR) Question: What is the total decile with an Area of whitianga, and a Roll smaller than 835? [/INST] SELECT SUM(decile) FROM table_name_64 WHERE area = "whitianga" AND roll < 835 </s>
Which name has an Area of kennedy bay?
CREATE TABLE table_name_50 (name VARCHAR, area VARCHAR)
SELECT name FROM table_name_50 WHERE area = "kennedy bay"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (name VARCHAR, area VARCHAR) Question: Which name has an Area of kennedy bay? [/INST] SELECT name FROM table_name_50 WHERE area = "kennedy bay" </s>
Which years have a Decile larger than 4, and an Area of thames?
CREATE TABLE table_name_55 (years VARCHAR, decile VARCHAR, area VARCHAR)
SELECT years FROM table_name_55 WHERE decile > 4 AND area = "thames"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (years VARCHAR, decile VARCHAR, area VARCHAR) Question: Which years have a Decile larger than 4, and an Area of thames? [/INST] SELECT years FROM table_name_55 WHERE decile > 4 AND area = "thames" </s>
Which Authority has a Decile smaller than 6, and an Area of opoutere?
CREATE TABLE table_name_68 (authority VARCHAR, decile VARCHAR, area VARCHAR)
SELECT authority FROM table_name_68 WHERE decile < 6 AND area = "opoutere"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (authority VARCHAR, decile VARCHAR, area VARCHAR) Question: Which Authority has a Decile smaller than 6, and an Area of opoutere? [/INST] SELECT authority FROM table_name_68 WHERE decile < 6 AND area = "opoutere" </s>
Which gender has Years of 1–8, an Authority of state, a Roll less than 184, and a Name of matatoki school?
CREATE TABLE table_name_17 (gender VARCHAR, name VARCHAR, roll VARCHAR, years VARCHAR, authority VARCHAR)
SELECT gender FROM table_name_17 WHERE years = "1–8" AND authority = "state" AND roll < 184 AND name = "matatoki school"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (gender VARCHAR, name VARCHAR, roll VARCHAR, years VARCHAR, authority VARCHAR) Question: Which gender has Years of 1–8, an Authority of state, a Roll less than 184, and a Name of matatoki school? [/INST] SELECT gender FROM table_name_17 WHERE years = "1–8" AND authority = "state" AND roll < 184 AND name = "matatoki school" </s>
What was the tournament that resulted in a winning score of –4 (71-72-72-69=284)?
CREATE TABLE table_name_34 (tournament VARCHAR, winning_score VARCHAR)
SELECT tournament FROM table_name_34 WHERE winning_score = –4(71 - 72 - 72 - 69 = 284)
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (tournament VARCHAR, winning_score VARCHAR) Question: What was the tournament that resulted in a winning score of –4 (71-72-72-69=284)? [/INST] SELECT tournament FROM table_name_34 WHERE winning_score = –4(71 - 72 - 72 - 69 = 284) </s>
What was the winning score of the event where Brian Kamm was the runner-up?
CREATE TABLE table_name_47 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT winning_score FROM table_name_47 WHERE runner_s__up = "brian kamm"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (winning_score VARCHAR, runner_s__up VARCHAR) Question: What was the winning score of the event where Brian Kamm was the runner-up? [/INST] SELECT winning_score FROM table_name_47 WHERE runner_s__up = "brian kamm" </s>
Who was the runner-up for the event that ended with a winning score of –15 (66-67-70-70=273)?
CREATE TABLE table_name_27 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT runner_s__up FROM table_name_27 WHERE winning_score = –15(66 - 67 - 70 - 70 = 273)
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (runner_s__up VARCHAR, winning_score VARCHAR) Question: Who was the runner-up for the event that ended with a winning score of –15 (66-67-70-70=273)? [/INST] SELECT runner_s__up FROM table_name_27 WHERE winning_score = –15(66 - 67 - 70 - 70 = 273) </s>
On what date was the Nike Colorado Classic held?
CREATE TABLE table_name_39 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_39 WHERE tournament = "nike colorado classic"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (date VARCHAR, tournament VARCHAR) Question: On what date was the Nike Colorado Classic held? [/INST] SELECT date FROM table_name_39 WHERE tournament = "nike colorado classic" </s>
What was the winning score of the Buy.com Siouxland Open?
CREATE TABLE table_name_57 (winning_score VARCHAR, tournament VARCHAR)
SELECT winning_score FROM table_name_57 WHERE tournament = "buy.com siouxland open"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (winning_score VARCHAR, tournament VARCHAR) Question: What was the winning score of the Buy.com Siouxland Open? [/INST] SELECT winning_score FROM table_name_57 WHERE tournament = "buy.com siouxland open" </s>
What is the total with lower than rank 8, and higher than 27.6 score and 13.8 difficulty?
CREATE TABLE table_name_63 (total INTEGER, difficulty_score VARCHAR, rank VARCHAR, routine_score VARCHAR)
SELECT MIN(total) FROM table_name_63 WHERE rank > 8 AND routine_score > 27.6 AND difficulty_score = "13.8"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (total INTEGER, difficulty_score VARCHAR, rank VARCHAR, routine_score VARCHAR) Question: What is the total with lower than rank 8, and higher than 27.6 score and 13.8 difficulty? [/INST] SELECT MIN(total) FROM table_name_63 WHERE rank > 8 AND routine_score > 27.6 AND difficulty_score = "13.8" </s>
What is the average medal total of the country who had 0 silver medals and participated in less than 15 games?
CREATE TABLE table_name_41 (total INTEGER, games VARCHAR, silver VARCHAR)
SELECT AVG(total) FROM table_name_41 WHERE games < 15 AND silver < 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (total INTEGER, games VARCHAR, silver VARCHAR) Question: What is the average medal total of the country who had 0 silver medals and participated in less than 15 games? [/INST] SELECT AVG(total) FROM table_name_41 WHERE games < 15 AND silver < 0 </s>
What is the least Points with Chassis of forti fg01b forti fg03, and a year less than 1996?
CREATE TABLE table_name_41 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_41 WHERE chassis = "forti fg01b forti fg03" AND year < 1996
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (points INTEGER, chassis VARCHAR, year VARCHAR) Question: What is the least Points with Chassis of forti fg01b forti fg03, and a year less than 1996? [/INST] SELECT MIN(points) FROM table_name_41 WHERE chassis = "forti fg01b forti fg03" AND year < 1996 </s>
What is the lowest year for an engine of ford zetec-r v8, and points greater than 0?
CREATE TABLE table_name_47 (year INTEGER, engine VARCHAR, points VARCHAR)
SELECT MIN(year) FROM table_name_47 WHERE engine = "ford zetec-r v8" AND points > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (year INTEGER, engine VARCHAR, points VARCHAR) Question: What is the lowest year for an engine of ford zetec-r v8, and points greater than 0? [/INST] SELECT MIN(year) FROM table_name_47 WHERE engine = "ford zetec-r v8" AND points > 0 </s>
What are the average points for an engine of ford zetec-r v8?
CREATE TABLE table_name_63 (points INTEGER, engine VARCHAR)
SELECT AVG(points) FROM table_name_63 WHERE engine = "ford zetec-r v8"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (points INTEGER, engine VARCHAR) Question: What are the average points for an engine of ford zetec-r v8? [/INST] SELECT AVG(points) FROM table_name_63 WHERE engine = "ford zetec-r v8" </s>
Name the years for elsthorpe school
CREATE TABLE table_name_78 (years VARCHAR, name VARCHAR)
SELECT years FROM table_name_78 WHERE name = "elsthorpe school"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (years VARCHAR, name VARCHAR) Question: Name the years for elsthorpe school [/INST] SELECT years FROM table_name_78 WHERE name = "elsthorpe school" </s>
Name the total number of roll for st joseph's school when decile is less than 5
CREATE TABLE table_name_19 (roll VARCHAR, name VARCHAR, decile VARCHAR)
SELECT COUNT(roll) FROM table_name_19 WHERE name = "st joseph's school" AND decile < 5
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (roll VARCHAR, name VARCHAR, decile VARCHAR) Question: Name the total number of roll for st joseph's school when decile is less than 5 [/INST] SELECT COUNT(roll) FROM table_name_19 WHERE name = "st joseph's school" AND decile < 5 </s>
Name the gender for elsthorpe school
CREATE TABLE table_name_63 (gender VARCHAR, name VARCHAR)
SELECT gender FROM table_name_63 WHERE name = "elsthorpe school"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (gender VARCHAR, name VARCHAR) Question: Name the gender for elsthorpe school [/INST] SELECT gender FROM table_name_63 WHERE name = "elsthorpe school" </s>