instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
What call sign is licensed in soledad, california?
|
CREATE TABLE table_name_65 (call_sign VARCHAR, city_of_license VARCHAR)
|
SELECT call_sign FROM table_name_65 WHERE city_of_license = "soledad, california"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (call_sign VARCHAR, city_of_license VARCHAR) Question: What call sign is licensed in soledad, california? [/INST] SELECT call_sign FROM table_name_65 WHERE city_of_license = "soledad, california" </s>
|
What is the MHZ frequency in carmel, california with an ERP W over 10?
|
CREATE TABLE table_name_53 (frequency_mhz INTEGER, city_of_license VARCHAR, erp_w VARCHAR)
|
SELECT AVG(frequency_mhz) FROM table_name_53 WHERE city_of_license = "carmel, california" AND erp_w > 10
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (frequency_mhz INTEGER, city_of_license VARCHAR, erp_w VARCHAR) Question: What is the MHZ frequency in carmel, california with an ERP W over 10? [/INST] SELECT AVG(frequency_mhz) FROM table_name_53 WHERE city_of_license = "carmel, california" AND erp_w > 10 </s>
|
What class has a MHZ frequency under 103.1 licensed in morro bay, california?
|
CREATE TABLE table_name_4 (class VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)
|
SELECT class FROM table_name_4 WHERE frequency_mhz < 103.1 AND city_of_license = "morro bay, california"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (class VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR) Question: What class has a MHZ frequency under 103.1 licensed in morro bay, california? [/INST] SELECT class FROM table_name_4 WHERE frequency_mhz < 103.1 AND city_of_license = "morro bay, california" </s>
|
How many averages have recs smaller than 26, and a Player of reggie brown, and a Long smaller than 40?
|
CREATE TABLE table_name_45 (avg VARCHAR, long VARCHAR, rec VARCHAR, player VARCHAR)
|
SELECT COUNT(avg) FROM table_name_45 WHERE rec < 26 AND player = "reggie brown" AND long < 40
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (avg VARCHAR, long VARCHAR, rec VARCHAR, player VARCHAR) Question: How many averages have recs smaller than 26, and a Player of reggie brown, and a Long smaller than 40? [/INST] SELECT COUNT(avg) FROM table_name_45 WHERE rec < 26 AND player = "reggie brown" AND long < 40 </s>
|
Which Yards has an Avg larger than 7, and a Long smaller than 60, and a Rec larger than 19, and a Player of correll buckhalter?
|
CREATE TABLE table_name_90 (yards INTEGER, player VARCHAR, rec VARCHAR, avg VARCHAR, long VARCHAR)
|
SELECT AVG(yards) FROM table_name_90 WHERE avg > 7 AND long < 60 AND rec > 19 AND player = "correll buckhalter"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (yards INTEGER, player VARCHAR, rec VARCHAR, avg VARCHAR, long VARCHAR) Question: Which Yards has an Avg larger than 7, and a Long smaller than 60, and a Rec larger than 19, and a Player of correll buckhalter? [/INST] SELECT AVG(yards) FROM table_name_90 WHERE avg > 7 AND long < 60 AND rec > 19 AND player = "correll buckhalter" </s>
|
Which Yards have an avg of 11.8, and a Player of brent celek, and a Long larger than 44?
|
CREATE TABLE table_name_2 (yards INTEGER, long VARCHAR, avg VARCHAR, player VARCHAR)
|
SELECT AVG(yards) FROM table_name_2 WHERE avg = 11.8 AND player = "brent celek" AND long > 44
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (yards INTEGER, long VARCHAR, avg VARCHAR, player VARCHAR) Question: Which Yards have an avg of 11.8, and a Player of brent celek, and a Long larger than 44? [/INST] SELECT AVG(yards) FROM table_name_2 WHERE avg = 11.8 AND player = "brent celek" AND long > 44 </s>
|
Which Yards is the highest one that has a Rec smaller than 54, and a Long smaller than 5, and a Player of todd herremans, and an Avg larger than 1?
|
CREATE TABLE table_name_51 (yards INTEGER, avg VARCHAR, player VARCHAR, rec VARCHAR, long VARCHAR)
|
SELECT MAX(yards) FROM table_name_51 WHERE rec < 54 AND long < 5 AND player = "todd herremans" AND avg > 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (yards INTEGER, avg VARCHAR, player VARCHAR, rec VARCHAR, long VARCHAR) Question: Which Yards is the highest one that has a Rec smaller than 54, and a Long smaller than 5, and a Player of todd herremans, and an Avg larger than 1? [/INST] SELECT MAX(yards) FROM table_name_51 WHERE rec < 54 AND long < 5 AND player = "todd herremans" AND avg > 1 </s>
|
What is the high rebounds with a record that is 18-14?
|
CREATE TABLE table_name_44 (high_rebounds VARCHAR, record VARCHAR)
|
SELECT high_rebounds FROM table_name_44 WHERE record = "18-14"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (high_rebounds VARCHAR, record VARCHAR) Question: What is the high rebounds with a record that is 18-14? [/INST] SELECT high_rebounds FROM table_name_44 WHERE record = "18-14" </s>
|
What are the high points from a game of 30?
|
CREATE TABLE table_name_59 (high_points VARCHAR, game VARCHAR)
|
SELECT high_points FROM table_name_59 WHERE game = 30
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (high_points VARCHAR, game VARCHAR) Question: What are the high points from a game of 30? [/INST] SELECT high_points FROM table_name_59 WHERE game = 30 </s>
|
What is the score for the game against Malacca at the Klfa Stadium, Cheras?
|
CREATE TABLE table_name_96 (score VARCHAR, opponent VARCHAR, venue VARCHAR)
|
SELECT score FROM table_name_96 WHERE opponent = "malacca" AND venue = "klfa stadium, cheras"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (score VARCHAR, opponent VARCHAR, venue VARCHAR) Question: What is the score for the game against Malacca at the Klfa Stadium, Cheras? [/INST] SELECT score FROM table_name_96 WHERE opponent = "malacca" AND venue = "klfa stadium, cheras" </s>
|
Which date held the match at the City Stadium, Georgetown?
|
CREATE TABLE table_name_7 (date VARCHAR, venue VARCHAR)
|
SELECT date FROM table_name_7 WHERE venue = "city stadium, georgetown"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (date VARCHAR, venue VARCHAR) Question: Which date held the match at the City Stadium, Georgetown? [/INST] SELECT date FROM table_name_7 WHERE venue = "city stadium, georgetown" </s>
|
Which competition had an opponent of Police at the Selayang Stadium?
|
CREATE TABLE table_name_31 (competition VARCHAR, opponent VARCHAR, venue VARCHAR)
|
SELECT competition FROM table_name_31 WHERE opponent = "police" AND venue = "selayang stadium"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (competition VARCHAR, opponent VARCHAR, venue VARCHAR) Question: Which competition had an opponent of Police at the Selayang Stadium? [/INST] SELECT competition FROM table_name_31 WHERE opponent = "police" AND venue = "selayang stadium" </s>
|
What the average amount of field goals Clark has if he has less than 3 touch downs and less than 5 points?
|
CREATE TABLE table_name_25 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR, player VARCHAR)
|
SELECT AVG(field_goals) FROM table_name_25 WHERE touchdowns < 3 AND player = "clark" AND points < 5
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR, player VARCHAR) Question: What the average amount of field goals Clark has if he has less than 3 touch downs and less than 5 points? [/INST] SELECT AVG(field_goals) FROM table_name_25 WHERE touchdowns < 3 AND player = "clark" AND points < 5 </s>
|
How many points does Tom Hammond have if he has more than 12 points?
|
CREATE TABLE table_name_12 (points INTEGER, player VARCHAR, extra_points VARCHAR)
|
SELECT SUM(points) FROM table_name_12 WHERE player = "tom hammond" AND extra_points > 12
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (points INTEGER, player VARCHAR, extra_points VARCHAR) Question: How many points does Tom Hammond have if he has more than 12 points? [/INST] SELECT SUM(points) FROM table_name_12 WHERE player = "tom hammond" AND extra_points > 12 </s>
|
Who had the lowest field goals if they had 12 touchdowns and more than 72 points?
|
CREATE TABLE table_name_40 (field_goals INTEGER, touchdowns VARCHAR, points VARCHAR)
|
SELECT MIN(field_goals) FROM table_name_40 WHERE touchdowns = 12 AND points > 72
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (field_goals INTEGER, touchdowns VARCHAR, points VARCHAR) Question: Who had the lowest field goals if they had 12 touchdowns and more than 72 points? [/INST] SELECT MIN(field_goals) FROM table_name_40 WHERE touchdowns = 12 AND points > 72 </s>
|
What is the lowest earnings of Lee Trevino who has 28 wins?
|
CREATE TABLE table_name_49 (earnings___ INTEGER, wins VARCHAR, player VARCHAR)
|
SELECT MIN(earnings___) AS $__ FROM table_name_49 WHERE wins = 28 AND player = "lee trevino"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (earnings___ INTEGER, wins VARCHAR, player VARCHAR) Question: What is the lowest earnings of Lee Trevino who has 28 wins? [/INST] SELECT MIN(earnings___) AS $__ FROM table_name_49 WHERE wins = 28 AND player = "lee trevino" </s>
|
Where is the location of attendance for the Date of december 14?
|
CREATE TABLE table_name_1 (location_attendance VARCHAR, date VARCHAR)
|
SELECT location_attendance FROM table_name_1 WHERE date = "december 14"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (location_attendance VARCHAR, date VARCHAR) Question: Where is the location of attendance for the Date of december 14? [/INST] SELECT location_attendance FROM table_name_1 WHERE date = "december 14" </s>
|
What team has a high score with tracy mcgrady (24)?
|
CREATE TABLE table_name_70 (team VARCHAR, high_points VARCHAR)
|
SELECT team FROM table_name_70 WHERE high_points = "tracy mcgrady (24)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (team VARCHAR, high_points VARCHAR) Question: What team has a high score with tracy mcgrady (24)? [/INST] SELECT team FROM table_name_70 WHERE high_points = "tracy mcgrady (24)" </s>
|
What location has an attendance and a score of l 90–91 (ot)?
|
CREATE TABLE table_name_28 (location_attendance VARCHAR, score VARCHAR)
|
SELECT location_attendance FROM table_name_28 WHERE score = "l 90–91 (ot)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (location_attendance VARCHAR, score VARCHAR) Question: What location has an attendance and a score of l 90–91 (ot)? [/INST] SELECT location_attendance FROM table_name_28 WHERE score = "l 90–91 (ot)" </s>
|
What team has a Score of l 88–94 (ot)?
|
CREATE TABLE table_name_98 (team VARCHAR, score VARCHAR)
|
SELECT team FROM table_name_98 WHERE score = "l 88–94 (ot)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (team VARCHAR, score VARCHAR) Question: What team has a Score of l 88–94 (ot)? [/INST] SELECT team FROM table_name_98 WHERE score = "l 88–94 (ot)" </s>
|
What score has hard (i) as the surface, and Columbus, Ohio as the tournament?
|
CREATE TABLE table_name_26 (score VARCHAR, surface VARCHAR, tournament VARCHAR)
|
SELECT score FROM table_name_26 WHERE surface = "hard (i)" AND tournament = "columbus, ohio"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (score VARCHAR, surface VARCHAR, tournament VARCHAR) Question: What score has hard (i) as the surface, and Columbus, Ohio as the tournament? [/INST] SELECT score FROM table_name_26 WHERE surface = "hard (i)" AND tournament = "columbus, ohio" </s>
|
What opponent in the final has rockford, Illinois as the tournament?
|
CREATE TABLE table_name_12 (opponent_in_the_final VARCHAR, tournament VARCHAR)
|
SELECT opponent_in_the_final FROM table_name_12 WHERE tournament = "rockford, illinois"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (opponent_in_the_final VARCHAR, tournament VARCHAR) Question: What opponent in the final has rockford, Illinois as the tournament? [/INST] SELECT opponent_in_the_final FROM table_name_12 WHERE tournament = "rockford, illinois" </s>
|
What score has zadar as the tournament?
|
CREATE TABLE table_name_27 (score VARCHAR, tournament VARCHAR)
|
SELECT score FROM table_name_27 WHERE tournament = "zadar"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (score VARCHAR, tournament VARCHAR) Question: What score has zadar as the tournament? [/INST] SELECT score FROM table_name_27 WHERE tournament = "zadar" </s>
|
Players of amanda coetzer and marcos ondruska is what team?
|
CREATE TABLE table_name_19 (team VARCHAR, players VARCHAR)
|
SELECT team FROM table_name_19 WHERE players = "amanda coetzer and marcos ondruska"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (team VARCHAR, players VARCHAR) Question: Players of amanda coetzer and marcos ondruska is what team? [/INST] SELECT team FROM table_name_19 WHERE players = "amanda coetzer and marcos ondruska" </s>
|
Players of judith wiesner and alex antonitsch had what match w-l?
|
CREATE TABLE table_name_64 (matches_w_l VARCHAR, players VARCHAR)
|
SELECT matches_w_l FROM table_name_64 WHERE players = "judith wiesner and alex antonitsch"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (matches_w_l VARCHAR, players VARCHAR) Question: Players of judith wiesner and alex antonitsch had what match w-l? [/INST] SELECT matches_w_l FROM table_name_64 WHERE players = "judith wiesner and alex antonitsch" </s>
|
Placing of 3 had what match w-l?
|
CREATE TABLE table_name_20 (matches_w_l VARCHAR, placing VARCHAR)
|
SELECT matches_w_l FROM table_name_20 WHERE placing = 3
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (matches_w_l VARCHAR, placing VARCHAR) Question: Placing of 3 had what match w-l? [/INST] SELECT matches_w_l FROM table_name_20 WHERE placing = 3 </s>
|
Matches W-L of 1-2, and a Team of spain had what seeding?
|
CREATE TABLE table_name_41 (seeding VARCHAR, matches_w_l VARCHAR, team VARCHAR)
|
SELECT seeding FROM table_name_41 WHERE matches_w_l = "1-2" AND team = "spain"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (seeding VARCHAR, matches_w_l VARCHAR, team VARCHAR) Question: Matches W-L of 1-2, and a Team of spain had what seeding? [/INST] SELECT seeding FROM table_name_41 WHERE matches_w_l = "1-2" AND team = "spain" </s>
|
Notes of bbc radio 4, and a Director of peter kavanagh includes which average year?
|
CREATE TABLE table_name_67 (year INTEGER, notes VARCHAR, director VARCHAR)
|
SELECT AVG(year) FROM table_name_67 WHERE notes = "bbc radio 4" AND director = "peter kavanagh"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (year INTEGER, notes VARCHAR, director VARCHAR) Question: Notes of bbc radio 4, and a Director of peter kavanagh includes which average year? [/INST] SELECT AVG(year) FROM table_name_67 WHERE notes = "bbc radio 4" AND director = "peter kavanagh" </s>
|
Title of the angry brigade involves which lowest year?
|
CREATE TABLE table_name_49 (year INTEGER, title VARCHAR)
|
SELECT MIN(year) FROM table_name_49 WHERE title = "the angry brigade"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (year INTEGER, title VARCHAR) Question: Title of the angry brigade involves which lowest year? [/INST] SELECT MIN(year) FROM table_name_49 WHERE title = "the angry brigade" </s>
|
Year larger than 2008 includes which notes?
|
CREATE TABLE table_name_35 (notes VARCHAR, year INTEGER)
|
SELECT notes FROM table_name_35 WHERE year > 2008
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (notes VARCHAR, year INTEGER) Question: Year larger than 2008 includes which notes? [/INST] SELECT notes FROM table_name_35 WHERE year > 2008 </s>
|
Notes of bbc radio 3, and a Title of carnival involves which director?
|
CREATE TABLE table_name_74 (director VARCHAR, notes VARCHAR, title VARCHAR)
|
SELECT director FROM table_name_74 WHERE notes = "bbc radio 3" AND title = "carnival"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (director VARCHAR, notes VARCHAR, title VARCHAR) Question: Notes of bbc radio 3, and a Title of carnival involves which director? [/INST] SELECT director FROM table_name_74 WHERE notes = "bbc radio 3" AND title = "carnival" </s>
|
What was the song choice when the theme was free choice and Adeleye made it through to bootcamp?
|
CREATE TABLE table_name_26 (song_choice VARCHAR, theme VARCHAR, result VARCHAR)
|
SELECT song_choice FROM table_name_26 WHERE theme = "free choice" AND result = "through to bootcamp"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (song_choice VARCHAR, theme VARCHAR, result VARCHAR) Question: What was the song choice when the theme was free choice and Adeleye made it through to bootcamp? [/INST] SELECT song_choice FROM table_name_26 WHERE theme = "free choice" AND result = "through to bootcamp" </s>
|
What was the result of week 2?
|
CREATE TABLE table_name_93 (result VARCHAR, week VARCHAR)
|
SELECT result FROM table_name_93 WHERE week = "week 2"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (result VARCHAR, week VARCHAR) Question: What was the result of week 2? [/INST] SELECT result FROM table_name_93 WHERE week = "week 2" </s>
|
What was the theme for week 3?
|
CREATE TABLE table_name_38 (theme VARCHAR, week VARCHAR)
|
SELECT theme FROM table_name_38 WHERE week = "week 3"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (theme VARCHAR, week VARCHAR) Question: What was the theme for week 3? [/INST] SELECT theme FROM table_name_38 WHERE week = "week 3" </s>
|
What was the theme for the final showdown (week 3)?
|
CREATE TABLE table_name_93 (theme VARCHAR, week VARCHAR)
|
SELECT theme FROM table_name_93 WHERE week = "final showdown (week 3)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (theme VARCHAR, week VARCHAR) Question: What was the theme for the final showdown (week 3)? [/INST] SELECT theme FROM table_name_93 WHERE week = "final showdown (week 3)" </s>
|
What was the score of Game 2 in the series against the Florida Panthers?
|
CREATE TABLE table_name_17 (score VARCHAR, opponent VARCHAR, game VARCHAR)
|
SELECT score FROM table_name_17 WHERE opponent = "florida panthers" AND game = 2
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (score VARCHAR, opponent VARCHAR, game VARCHAR) Question: What was the score of Game 2 in the series against the Florida Panthers? [/INST] SELECT score FROM table_name_17 WHERE opponent = "florida panthers" AND game = 2 </s>
|
What was the score of the game that led to a 7-5 record?
|
CREATE TABLE table_name_91 (score VARCHAR, record VARCHAR)
|
SELECT score FROM table_name_91 WHERE record = "7-5"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (score VARCHAR, record VARCHAR) Question: What was the score of the game that led to a 7-5 record? [/INST] SELECT score FROM table_name_91 WHERE record = "7-5" </s>
|
Which player is a tight end with a round higher than 3?
|
CREATE TABLE table_name_4 (name VARCHAR, position VARCHAR, round VARCHAR)
|
SELECT name FROM table_name_4 WHERE position = "tight end" AND round > 3
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (name VARCHAR, position VARCHAR, round VARCHAR) Question: Which player is a tight end with a round higher than 3? [/INST] SELECT name FROM table_name_4 WHERE position = "tight end" AND round > 3 </s>
|
What position does the College of Louisiana State have?
|
CREATE TABLE table_name_89 (position VARCHAR, college VARCHAR)
|
SELECT position FROM table_name_89 WHERE college = "louisiana state"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (position VARCHAR, college VARCHAR) Question: What position does the College of Louisiana State have? [/INST] SELECT position FROM table_name_89 WHERE college = "louisiana state" </s>
|
How many rounds does Jamaal Charles have?
|
CREATE TABLE table_name_13 (round VARCHAR, name VARCHAR)
|
SELECT COUNT(round) FROM table_name_13 WHERE name = "jamaal charles"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (round VARCHAR, name VARCHAR) Question: How many rounds does Jamaal Charles have? [/INST] SELECT COUNT(round) FROM table_name_13 WHERE name = "jamaal charles" </s>
|
Who was the opponent that also has a save of Smith (26)?
|
CREATE TABLE table_name_53 (opponent VARCHAR, save VARCHAR)
|
SELECT opponent FROM table_name_53 WHERE save = "smith (26)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (opponent VARCHAR, save VARCHAR) Question: Who was the opponent that also has a save of Smith (26)? [/INST] SELECT opponent FROM table_name_53 WHERE save = "smith (26)" </s>
|
Which score has a save of Smith (25)?
|
CREATE TABLE table_name_47 (score VARCHAR, save VARCHAR)
|
SELECT score FROM table_name_47 WHERE save = "smith (25)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (score VARCHAR, save VARCHAR) Question: Which score has a save of Smith (25)? [/INST] SELECT score FROM table_name_47 WHERE save = "smith (25)" </s>
|
Which circuit is on July 24?
|
CREATE TABLE table_name_77 (circuit VARCHAR, date VARCHAR)
|
SELECT circuit FROM table_name_77 WHERE date = "july 24"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (circuit VARCHAR, date VARCHAR) Question: Which circuit is on July 24? [/INST] SELECT circuit FROM table_name_77 WHERE date = "july 24" </s>
|
On which date was the GT class at Monterey Sports Car Grand Prix?
|
CREATE TABLE table_name_8 (date VARCHAR, class VARCHAR, race VARCHAR)
|
SELECT date FROM table_name_8 WHERE class = "gt" AND race = "monterey sports car grand prix"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (date VARCHAR, class VARCHAR, race VARCHAR) Question: On which date was the GT class at Monterey Sports Car Grand Prix? [/INST] SELECT date FROM table_name_8 WHERE class = "gt" AND race = "monterey sports car grand prix" </s>
|
What was the length for GT class at Portland International Raceway?
|
CREATE TABLE table_name_22 (length VARCHAR, class VARCHAR, circuit VARCHAR)
|
SELECT length FROM table_name_22 WHERE class = "gt" AND circuit = "portland international raceway"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (length VARCHAR, class VARCHAR, circuit VARCHAR) Question: What was the length for GT class at Portland International Raceway? [/INST] SELECT length FROM table_name_22 WHERE class = "gt" AND circuit = "portland international raceway" </s>
|
On what date did Contac 12 Hours of Sebring take place?
|
CREATE TABLE table_name_21 (date VARCHAR, race VARCHAR)
|
SELECT date FROM table_name_21 WHERE race = "contac 12 hours of sebring"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (date VARCHAR, race VARCHAR) Question: On what date did Contac 12 Hours of Sebring take place? [/INST] SELECT date FROM table_name_21 WHERE race = "contac 12 hours of sebring" </s>
|
Which Opponent has an Attendance of 24,791?
|
CREATE TABLE table_name_94 (opponent VARCHAR, attendance VARCHAR)
|
SELECT opponent FROM table_name_94 WHERE attendance = "24,791"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (opponent VARCHAR, attendance VARCHAR) Question: Which Opponent has an Attendance of 24,791? [/INST] SELECT opponent FROM table_name_94 WHERE attendance = "24,791" </s>
|
Which Score has Opponent of mariners and a Record of 24–25?
|
CREATE TABLE table_name_91 (score VARCHAR, opponent VARCHAR, record VARCHAR)
|
SELECT score FROM table_name_91 WHERE opponent = "mariners" AND record = "24–25"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (score VARCHAR, opponent VARCHAR, record VARCHAR) Question: Which Score has Opponent of mariners and a Record of 24–25? [/INST] SELECT score FROM table_name_91 WHERE opponent = "mariners" AND record = "24–25" </s>
|
When is Record of 16–16 taken?
|
CREATE TABLE table_name_6 (date VARCHAR, record VARCHAR)
|
SELECT date FROM table_name_6 WHERE record = "16–16"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (date VARCHAR, record VARCHAR) Question: When is Record of 16–16 taken? [/INST] SELECT date FROM table_name_6 WHERE record = "16–16" </s>
|
What was the score of the game with a record of 7–10–3–1?
|
CREATE TABLE table_name_2 (score VARCHAR, record VARCHAR)
|
SELECT score FROM table_name_2 WHERE record = "7–10–3–1"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (score VARCHAR, record VARCHAR) Question: What was the score of the game with a record of 7–10–3–1? [/INST] SELECT score FROM table_name_2 WHERE record = "7–10–3–1" </s>
|
Which Year Ended has a Passenger Load Factor (%) larger than 72.8, and a Revenue (€m) smaller than 906.8?
|
CREATE TABLE table_name_80 (year_ended VARCHAR, passenger_load_factor___percentage_ VARCHAR, revenue__€m_ VARCHAR)
|
SELECT year_ended FROM table_name_80 WHERE passenger_load_factor___percentage_ > 72.8 AND revenue__€m_ < 906.8
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (year_ended VARCHAR, passenger_load_factor___percentage_ VARCHAR, revenue__€m_ VARCHAR) Question: Which Year Ended has a Passenger Load Factor (%) larger than 72.8, and a Revenue (€m) smaller than 906.8? [/INST] SELECT year_ended FROM table_name_80 WHERE passenger_load_factor___percentage_ > 72.8 AND revenue__€m_ < 906.8 </s>
|
What Passenger Load Factor (%) that has a Revenue (€m) less than 958.6 and a Profit / (Loss) Before Tax (€m) of 1.1?
|
CREATE TABLE table_name_86 (passenger_load_factor___percentage_ VARCHAR, revenue__€m_ VARCHAR, profit____loss__before_tax__€m_ VARCHAR)
|
SELECT passenger_load_factor___percentage_ FROM table_name_86 WHERE revenue__€m_ < 958.6 AND profit____loss__before_tax__€m_ = "1.1"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (passenger_load_factor___percentage_ VARCHAR, revenue__€m_ VARCHAR, profit____loss__before_tax__€m_ VARCHAR) Question: What Passenger Load Factor (%) that has a Revenue (€m) less than 958.6 and a Profit / (Loss) Before Tax (€m) of 1.1? [/INST] SELECT passenger_load_factor___percentage_ FROM table_name_86 WHERE revenue__€m_ < 958.6 AND profit____loss__before_tax__€m_ = "1.1" </s>
|
Which First used has a Quantity of 26?
|
CREATE TABLE table_name_84 (first_used VARCHAR, quantity VARCHAR)
|
SELECT first_used FROM table_name_84 WHERE quantity = 26
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (first_used VARCHAR, quantity VARCHAR) Question: Which First used has a Quantity of 26? [/INST] SELECT first_used FROM table_name_84 WHERE quantity = 26 </s>
|
Which Designation has a Manufacturer of siemens, and a Quantity of 52?
|
CREATE TABLE table_name_56 (designation VARCHAR, manufacturer VARCHAR, quantity VARCHAR)
|
SELECT designation FROM table_name_56 WHERE manufacturer = "siemens" AND quantity = 52
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (designation VARCHAR, manufacturer VARCHAR, quantity VARCHAR) Question: Which Designation has a Manufacturer of siemens, and a Quantity of 52? [/INST] SELECT designation FROM table_name_56 WHERE manufacturer = "siemens" AND quantity = 52 </s>
|
Which Designation has a Quantity of 52?
|
CREATE TABLE table_name_84 (designation VARCHAR, quantity VARCHAR)
|
SELECT designation FROM table_name_84 WHERE quantity = 52
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (designation VARCHAR, quantity VARCHAR) Question: Which Designation has a Quantity of 52? [/INST] SELECT designation FROM table_name_84 WHERE quantity = 52 </s>
|
Which Quantity has a Designation of type 4?
|
CREATE TABLE table_name_82 (quantity INTEGER, designation VARCHAR)
|
SELECT AVG(quantity) FROM table_name_82 WHERE designation = "type 4"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (quantity INTEGER, designation VARCHAR) Question: Which Quantity has a Designation of type 4? [/INST] SELECT AVG(quantity) FROM table_name_82 WHERE designation = "type 4" </s>
|
Which model number does bombardier manufacture?
|
CREATE TABLE table_name_28 (model_no VARCHAR, manufacturer VARCHAR)
|
SELECT model_no FROM table_name_28 WHERE manufacturer = "bombardier"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (model_no VARCHAR, manufacturer VARCHAR) Question: Which model number does bombardier manufacture? [/INST] SELECT model_no FROM table_name_28 WHERE manufacturer = "bombardier" </s>
|
Which Car numbers have a First used of currently on order?
|
CREATE TABLE table_name_37 (car_numbers VARCHAR, first_used VARCHAR)
|
SELECT car_numbers FROM table_name_37 WHERE first_used = "currently on order"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (car_numbers VARCHAR, first_used VARCHAR) Question: Which Car numbers have a First used of currently on order? [/INST] SELECT car_numbers FROM table_name_37 WHERE first_used = "currently on order" </s>
|
What was the year elected in District 17?
|
CREATE TABLE table_name_87 (elected INTEGER, district VARCHAR)
|
SELECT MIN(elected) FROM table_name_87 WHERE district = 17
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (elected INTEGER, district VARCHAR) Question: What was the year elected in District 17? [/INST] SELECT MIN(elected) FROM table_name_87 WHERE district = 17 </s>
|
What was the year elected in District 15?
|
CREATE TABLE table_name_56 (elected VARCHAR, district VARCHAR)
|
SELECT elected FROM table_name_56 WHERE district = 15
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (elected VARCHAR, district VARCHAR) Question: What was the year elected in District 15? [/INST] SELECT elected FROM table_name_56 WHERE district = 15 </s>
|
What year was Incumbent Ed Towns elected with a district smaller than 10?
|
CREATE TABLE table_name_19 (elected INTEGER, incumbent VARCHAR, district VARCHAR)
|
SELECT AVG(elected) FROM table_name_19 WHERE incumbent = "ed towns" AND district < 10
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (elected INTEGER, incumbent VARCHAR, district VARCHAR) Question: What year was Incumbent Ed Towns elected with a district smaller than 10? [/INST] SELECT AVG(elected) FROM table_name_19 WHERE incumbent = "ed towns" AND district < 10 </s>
|
What party has a district of 28 and was elected after 1983?
|
CREATE TABLE table_name_98 (party VARCHAR, elected VARCHAR, district VARCHAR)
|
SELECT party FROM table_name_98 WHERE elected > 1983 AND district = 28
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (party VARCHAR, elected VARCHAR, district VARCHAR) Question: What party has a district of 28 and was elected after 1983? [/INST] SELECT party FROM table_name_98 WHERE elected > 1983 AND district = 28 </s>
|
What's the elected year of Nydia Velazquez in a district bigger than 2 and a democrat?
|
CREATE TABLE table_name_69 (elected INTEGER, incumbent VARCHAR, party VARCHAR, district VARCHAR)
|
SELECT AVG(elected) FROM table_name_69 WHERE party = "democrat" AND district > 2 AND incumbent = "nydia velazquez"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (elected INTEGER, incumbent VARCHAR, party VARCHAR, district VARCHAR) Question: What's the elected year of Nydia Velazquez in a district bigger than 2 and a democrat? [/INST] SELECT AVG(elected) FROM table_name_69 WHERE party = "democrat" AND district > 2 AND incumbent = "nydia velazquez" </s>
|
Name the least year for goalscore of ortiz and goals more than 25
|
CREATE TABLE table_name_81 (year INTEGER, top_goalscorer VARCHAR, goals VARCHAR)
|
SELECT MIN(year) FROM table_name_81 WHERE top_goalscorer = "ortiz" AND goals > 25
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (year INTEGER, top_goalscorer VARCHAR, goals VARCHAR) Question: Name the least year for goalscore of ortiz and goals more than 25 [/INST] SELECT MIN(year) FROM table_name_81 WHERE top_goalscorer = "ortiz" AND goals > 25 </s>
|
What was the date of the game when St. Louis was the visiting team?
|
CREATE TABLE table_name_17 (date VARCHAR, visitor VARCHAR)
|
SELECT date FROM table_name_17 WHERE visitor = "st. louis"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (date VARCHAR, visitor VARCHAR) Question: What was the date of the game when St. Louis was the visiting team? [/INST] SELECT date FROM table_name_17 WHERE visitor = "st. louis" </s>
|
What was the record at the game with a score of 7–5?
|
CREATE TABLE table_name_42 (record VARCHAR, score VARCHAR)
|
SELECT record FROM table_name_42 WHERE score = "7–5"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (record VARCHAR, score VARCHAR) Question: What was the record at the game with a score of 7–5? [/INST] SELECT record FROM table_name_42 WHERE score = "7–5" </s>
|
What position shows for canada, and an NHL team of new york islanders, and a Pick # of 113?
|
CREATE TABLE table_name_29 (position VARCHAR, pick__number VARCHAR, nationality VARCHAR, nhl_team VARCHAR)
|
SELECT position FROM table_name_29 WHERE nationality = "canada" AND nhl_team = "new york islanders" AND pick__number = "113"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (position VARCHAR, pick__number VARCHAR, nationality VARCHAR, nhl_team VARCHAR) Question: What position shows for canada, and an NHL team of new york islanders, and a Pick # of 113? [/INST] SELECT position FROM table_name_29 WHERE nationality = "canada" AND nhl_team = "new york islanders" AND pick__number = "113" </s>
|
What is the Position for the brandon wheat kings (wchl)?
|
CREATE TABLE table_name_92 (position VARCHAR, college_junior_club_team VARCHAR)
|
SELECT position FROM table_name_92 WHERE college_junior_club_team = "brandon wheat kings (wchl)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (position VARCHAR, college_junior_club_team VARCHAR) Question: What is the Position for the brandon wheat kings (wchl)? [/INST] SELECT position FROM table_name_92 WHERE college_junior_club_team = "brandon wheat kings (wchl)" </s>
|
What is the Nationality for the university of wisconsin (wcha), and a Player of bob lundeen?
|
CREATE TABLE table_name_30 (nationality VARCHAR, college_junior_club_team VARCHAR, player VARCHAR)
|
SELECT nationality FROM table_name_30 WHERE college_junior_club_team = "university of wisconsin (wcha)" AND player = "bob lundeen"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (nationality VARCHAR, college_junior_club_team VARCHAR, player VARCHAR) Question: What is the Nationality for the university of wisconsin (wcha), and a Player of bob lundeen? [/INST] SELECT nationality FROM table_name_30 WHERE college_junior_club_team = "university of wisconsin (wcha)" AND player = "bob lundeen" </s>
|
What is the Pick # for brent meeke?
|
CREATE TABLE table_name_45 (pick__number VARCHAR, player VARCHAR)
|
SELECT pick__number FROM table_name_45 WHERE player = "brent meeke"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (pick__number VARCHAR, player VARCHAR) Question: What is the Pick # for brent meeke? [/INST] SELECT pick__number FROM table_name_45 WHERE player = "brent meeke" </s>
|
What is the NHL team of dave murphy?
|
CREATE TABLE table_name_29 (nhl_team VARCHAR, player VARCHAR)
|
SELECT nhl_team FROM table_name_29 WHERE player = "dave murphy"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (nhl_team VARCHAR, player VARCHAR) Question: What is the NHL team of dave murphy? [/INST] SELECT nhl_team FROM table_name_29 WHERE player = "dave murphy" </s>
|
What Nationality had a Pick # of 117?
|
CREATE TABLE table_name_91 (nationality VARCHAR, pick__number VARCHAR)
|
SELECT nationality FROM table_name_91 WHERE pick__number = "117"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (nationality VARCHAR, pick__number VARCHAR) Question: What Nationality had a Pick # of 117? [/INST] SELECT nationality FROM table_name_91 WHERE pick__number = "117" </s>
|
On what Date of the race was Nesta Carter the Athlete?
|
CREATE TABLE table_name_46 (date VARCHAR, athlete VARCHAR)
|
SELECT date FROM table_name_46 WHERE athlete = "nesta carter"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (date VARCHAR, athlete VARCHAR) Question: On what Date of the race was Nesta Carter the Athlete? [/INST] SELECT date FROM table_name_46 WHERE athlete = "nesta carter" </s>
|
What is the Athlete of the race with a Time of 9.78?
|
CREATE TABLE table_name_14 (athlete VARCHAR, time VARCHAR)
|
SELECT athlete FROM table_name_14 WHERE time = 9.78
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (athlete VARCHAR, time VARCHAR) Question: What is the Athlete of the race with a Time of 9.78? [/INST] SELECT athlete FROM table_name_14 WHERE time = 9.78 </s>
|
Which area 2006 km² has an area 1996 km² smaller than 17.31?
|
CREATE TABLE table_name_38 (area_2006_km² INTEGER, area_1996_km² INTEGER)
|
SELECT MAX(area_2006_km²) FROM table_name_38 WHERE area_1996_km² < 17.31
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (area_2006_km² INTEGER, area_1996_km² INTEGER) Question: Which area 2006 km² has an area 1996 km² smaller than 17.31? [/INST] SELECT MAX(area_2006_km²) FROM table_name_38 WHERE area_1996_km² < 17.31 </s>
|
Which area 2006 km² has an area 1996 km² of 26.39, and a pop 2006 smaller than 18,610?
|
CREATE TABLE table_name_94 (area_2006_km² INTEGER, area_1996_km² VARCHAR, pop_2006 VARCHAR)
|
SELECT MIN(area_2006_km²) FROM table_name_94 WHERE area_1996_km² = 26.39 AND pop_2006 < 18 OFFSET 610 ROWS
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (area_2006_km² INTEGER, area_1996_km² VARCHAR, pop_2006 VARCHAR) Question: Which area 2006 km² has an area 1996 km² of 26.39, and a pop 2006 smaller than 18,610? [/INST] SELECT MIN(area_2006_km²) FROM table_name_94 WHERE area_1996_km² = 26.39 AND pop_2006 < 18 OFFSET 610 ROWS </s>
|
Which area 2006 km² has a city of sopot, and an area 1996 km² smaller than 17.31?
|
CREATE TABLE table_name_22 (area_2006_km² INTEGER, city VARCHAR, area_1996_km² VARCHAR)
|
SELECT MAX(area_2006_km²) FROM table_name_22 WHERE city = "sopot" AND area_1996_km² < 17.31
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (area_2006_km² INTEGER, city VARCHAR, area_1996_km² VARCHAR) Question: Which area 2006 km² has a city of sopot, and an area 1996 km² smaller than 17.31? [/INST] SELECT MAX(area_2006_km²) FROM table_name_22 WHERE city = "sopot" AND area_1996_km² < 17.31 </s>
|
Which area 1996 km² has a pop 1999 of 17,510, and an area 2006 km² larger than 30?
|
CREATE TABLE table_name_91 (area_1996_km² INTEGER, pop_1999 VARCHAR, area_2006_km² VARCHAR)
|
SELECT MAX(area_1996_km²) FROM table_name_91 WHERE pop_1999 = "17,510" AND area_2006_km² > 30
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (area_1996_km² INTEGER, pop_1999 VARCHAR, area_2006_km² VARCHAR) Question: Which area 1996 km² has a pop 1999 of 17,510, and an area 2006 km² larger than 30? [/INST] SELECT MAX(area_1996_km²) FROM table_name_91 WHERE pop_1999 = "17,510" AND area_2006_km² > 30 </s>
|
What is the highest playoffs that has tampa bay as the team?
|
CREATE TABLE table_name_79 (playoffs INTEGER, teams VARCHAR)
|
SELECT MAX(playoffs) FROM table_name_79 WHERE teams = "tampa bay"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (playoffs INTEGER, teams VARCHAR) Question: What is the highest playoffs that has tampa bay as the team? [/INST] SELECT MAX(playoffs) FROM table_name_79 WHERE teams = "tampa bay" </s>
|
What rank has 123 as the total?
|
CREATE TABLE table_name_96 (rank VARCHAR, total VARCHAR)
|
SELECT rank FROM table_name_96 WHERE total = 123
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (rank VARCHAR, total VARCHAR) Question: What rank has 123 as the total? [/INST] SELECT rank FROM table_name_96 WHERE total = 123 </s>
|
What teams have 1/2/2011 as the streak end?
|
CREATE TABLE table_name_35 (teams VARCHAR, streak_end VARCHAR)
|
SELECT teams FROM table_name_35 WHERE streak_end = "1/2/2011"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (teams VARCHAR, streak_end VARCHAR) Question: What teams have 1/2/2011 as the streak end? [/INST] SELECT teams FROM table_name_35 WHERE streak_end = "1/2/2011" </s>
|
What streak start has a total less than 79, 22t as the rank, and tampa bay as the teams?
|
CREATE TABLE table_name_28 (streak_start VARCHAR, teams VARCHAR, total VARCHAR, rank VARCHAR)
|
SELECT streak_start FROM table_name_28 WHERE total < 79 AND rank = "22t" AND teams = "tampa bay"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (streak_start VARCHAR, teams VARCHAR, total VARCHAR, rank VARCHAR) Question: What streak start has a total less than 79, 22t as the rank, and tampa bay as the teams? [/INST] SELECT streak_start FROM table_name_28 WHERE total < 79 AND rank = "22t" AND teams = "tampa bay" </s>
|
What was the method for the UFC Fight Night 10 event?
|
CREATE TABLE table_name_11 (method VARCHAR, event VARCHAR)
|
SELECT method FROM table_name_11 WHERE event = "ufc fight night 10"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (method VARCHAR, event VARCHAR) Question: What was the method for the UFC Fight Night 10 event? [/INST] SELECT method FROM table_name_11 WHERE event = "ufc fight night 10" </s>
|
What was the result for the M-1 Selection Europe event?
|
CREATE TABLE table_name_60 (res VARCHAR, event VARCHAR)
|
SELECT res FROM table_name_60 WHERE event = "m-1 selection europe"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (res VARCHAR, event VARCHAR) Question: What was the result for the M-1 Selection Europe event? [/INST] SELECT res FROM table_name_60 WHERE event = "m-1 selection europe" </s>
|
Who was the opponent that led to a record of 23-5?
|
CREATE TABLE table_name_55 (opponent VARCHAR, record VARCHAR)
|
SELECT opponent FROM table_name_55 WHERE record = "23-5"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (opponent VARCHAR, record VARCHAR) Question: Who was the opponent that led to a record of 23-5? [/INST] SELECT opponent FROM table_name_55 WHERE record = "23-5" </s>
|
What is the number of Silver medals with 2 Bronze and 0 Gold?
|
CREATE TABLE table_name_78 (silver VARCHAR, bronze VARCHAR, gold VARCHAR)
|
SELECT COUNT(silver) FROM table_name_78 WHERE bronze = 2 AND gold < 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (silver VARCHAR, bronze VARCHAR, gold VARCHAR) Question: What is the number of Silver medals with 2 Bronze and 0 Gold? [/INST] SELECT COUNT(silver) FROM table_name_78 WHERE bronze = 2 AND gold < 0 </s>
|
what team was the 1st leg champion of sakalai
|
CREATE TABLE table_name_98 (champion VARCHAR)
|
SELECT 1 AS st_leg FROM table_name_98 WHERE champion = "sakalai"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (champion VARCHAR) Question: what team was the 1st leg champion of sakalai [/INST] SELECT 1 AS st_leg FROM table_name_98 WHERE champion = "sakalai" </s>
|
what season did the juventus win
|
CREATE TABLE table_name_54 (season VARCHAR, champion VARCHAR)
|
SELECT season FROM table_name_54 WHERE champion = "juventus"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (season VARCHAR, champion VARCHAR) Question: what season did the juventus win [/INST] SELECT season FROM table_name_54 WHERE champion = "juventus" </s>
|
What's the average Year that has Points that's smaller than 9 with a Rank of 24th?
|
CREATE TABLE table_name_71 (year INTEGER, points VARCHAR, rank VARCHAR)
|
SELECT AVG(year) FROM table_name_71 WHERE points < 9 AND rank = "24th"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (year INTEGER, points VARCHAR, rank VARCHAR) Question: What's the average Year that has Points that's smaller than 9 with a Rank of 24th? [/INST] SELECT AVG(year) FROM table_name_71 WHERE points < 9 AND rank = "24th" </s>
|
Who has a Rank larger than 3 with a speed of 119.838mph?
|
CREATE TABLE table_name_12 (rider VARCHAR, rank VARCHAR, speed VARCHAR)
|
SELECT rider FROM table_name_12 WHERE rank > 3 AND speed = "119.838mph"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (rider VARCHAR, rank VARCHAR, speed VARCHAR) Question: Who has a Rank larger than 3 with a speed of 119.838mph? [/INST] SELECT rider FROM table_name_12 WHERE rank > 3 AND speed = "119.838mph" </s>
|
Which Team has a Time of 1:14.51.73?
|
CREATE TABLE table_name_31 (team VARCHAR, time VARCHAR)
|
SELECT team FROM table_name_31 WHERE time = "1:14.51.73"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (team VARCHAR, time VARCHAR) Question: Which Team has a Time of 1:14.51.73? [/INST] SELECT team FROM table_name_31 WHERE time = "1:14.51.73" </s>
|
Which Speed has a Rank smaller than 9 in kawasaki zx6 600cc Team?
|
CREATE TABLE table_name_6 (speed VARCHAR, rank VARCHAR, team VARCHAR)
|
SELECT speed FROM table_name_6 WHERE rank < 9 AND team = "kawasaki zx6 600cc"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (speed VARCHAR, rank VARCHAR, team VARCHAR) Question: Which Speed has a Rank smaller than 9 in kawasaki zx6 600cc Team? [/INST] SELECT speed FROM table_name_6 WHERE rank < 9 AND team = "kawasaki zx6 600cc" </s>
|
WHich Speed has a Rank of 2?
|
CREATE TABLE table_name_59 (speed VARCHAR, rank VARCHAR)
|
SELECT speed FROM table_name_59 WHERE rank = 2
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (speed VARCHAR, rank VARCHAR) Question: WHich Speed has a Rank of 2? [/INST] SELECT speed FROM table_name_59 WHERE rank = 2 </s>
|
What is the total of Game with an Opponent of @ Hartford Whalers and February that's larger than 19?
|
CREATE TABLE table_name_49 (game INTEGER, opponent VARCHAR, february VARCHAR)
|
SELECT SUM(game) FROM table_name_49 WHERE opponent = "@ hartford whalers" AND february > 19
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (game INTEGER, opponent VARCHAR, february VARCHAR) Question: What is the total of Game with an Opponent of @ Hartford Whalers and February that's larger than 19? [/INST] SELECT SUM(game) FROM table_name_49 WHERE opponent = "@ hartford whalers" AND february > 19 </s>
|
Which Opponent has a February larger than 7 and Record of 37-16-4?
|
CREATE TABLE table_name_3 (opponent VARCHAR, february VARCHAR, record VARCHAR)
|
SELECT opponent FROM table_name_3 WHERE february > 7 AND record = "37-16-4"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (opponent VARCHAR, february VARCHAR, record VARCHAR) Question: Which Opponent has a February larger than 7 and Record of 37-16-4? [/INST] SELECT opponent FROM table_name_3 WHERE february > 7 AND record = "37-16-4" </s>
|
What is listed as the highest February with a Record of 34-14-4 and Game that's larger than 52?
|
CREATE TABLE table_name_51 (february INTEGER, record VARCHAR, game VARCHAR)
|
SELECT MAX(february) FROM table_name_51 WHERE record = "34-14-4" AND game > 52
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (february INTEGER, record VARCHAR, game VARCHAR) Question: What is listed as the highest February with a Record of 34-14-4 and Game that's larger than 52? [/INST] SELECT MAX(february) FROM table_name_51 WHERE record = "34-14-4" AND game > 52 </s>
|
Which Opponent has a Game larger than 56 and February of 24?
|
CREATE TABLE table_name_89 (opponent VARCHAR, game VARCHAR, february VARCHAR)
|
SELECT opponent FROM table_name_89 WHERE game > 56 AND february = 24
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (opponent VARCHAR, game VARCHAR, february VARCHAR) Question: Which Opponent has a Game larger than 56 and February of 24? [/INST] SELECT opponent FROM table_name_89 WHERE game > 56 AND february = 24 </s>
|
Which Extra points is the lowest one that has a Player of rheinschild, and Touchdowns larger than 1?
|
CREATE TABLE table_name_26 (extra_points INTEGER, player VARCHAR, touchdowns VARCHAR)
|
SELECT MIN(extra_points) FROM table_name_26 WHERE player = "rheinschild" AND touchdowns > 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (extra_points INTEGER, player VARCHAR, touchdowns VARCHAR) Question: Which Extra points is the lowest one that has a Player of rheinschild, and Touchdowns larger than 1? [/INST] SELECT MIN(extra_points) FROM table_name_26 WHERE player = "rheinschild" AND touchdowns > 1 </s>
|
What result has mario & karina as the couple?
|
CREATE TABLE table_name_76 (result VARCHAR, couple VARCHAR)
|
SELECT result FROM table_name_76 WHERE couple = "mario & karina"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (result VARCHAR, couple VARCHAR) Question: What result has mario & karina as the couple? [/INST] SELECT result FROM table_name_76 WHERE couple = "mario & karina" </s>
|
Which Time has a Set 2 of 20–25, and a Date of 05 jun?
|
CREATE TABLE table_name_15 (time VARCHAR, set_2 VARCHAR, date VARCHAR)
|
SELECT time FROM table_name_15 WHERE set_2 = "20–25" AND date = "05 jun"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (time VARCHAR, set_2 VARCHAR, date VARCHAR) Question: Which Time has a Set 2 of 20–25, and a Date of 05 jun? [/INST] SELECT time FROM table_name_15 WHERE set_2 = "20–25" AND date = "05 jun" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.