context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_69 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_69 WHERE entrant = "alfa romeo spa" AND driver = "luigi fagioli"
In what rounds did Luigi Fagioli drive for Alfa Romeo SPA?
<s>[INST]In what rounds did Luigi Fagioli drive for Alfa Romeo SPA? Context: CREATE TABLE table_name_69 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR)[/INST]SELECT rounds FROM table_name_69 WHERE entrant = "alfa romeo spa" AND driver = "luigi fagioli"</s>
CREATE TABLE table_name_87 (djurgården_scorers VARCHAR, score VARCHAR)
SELECT djurgården_scorers FROM table_name_87 WHERE score = "2-1"
What are the Djurgården scorers that have a Score of 2-1?
<s>[INST]What are the Djurgården scorers that have a Score of 2-1? Context: CREATE TABLE table_name_87 (djurgården_scorers VARCHAR, score VARCHAR)[/INST]SELECT djurgården_scorers FROM table_name_87 WHERE score = "2-1"</s>
CREATE TABLE table_name_75 (round_of_16 VARCHAR, quarterfinal VARCHAR, round_of_32 VARCHAR)
SELECT round_of_16 FROM table_name_75 WHERE quarterfinal = "did not advance" AND round_of_32 = "n/a"
When the round of 32 was n/a and quarterfinal was did not advance, what was the round of 16?
<s>[INST]When the round of 32 was n/a and quarterfinal was did not advance, what was the round of 16? Context: CREATE TABLE table_name_75 (round_of_16 VARCHAR, quarterfinal VARCHAR, round_of_32 VARCHAR)[/INST]SELECT round_of_16 FROM table_name_75 WHERE quarterfinal = "did not advance" AND round_of_32 = "n/a"</s>
CREATE TABLE table_name_80 (year VARCHAR, works_no VARCHAR)
SELECT year FROM table_name_80 WHERE works_no = "2040-2049"
In what Year is the Works No. 2040-2049?
<s>[INST]In what Year is the Works No. 2040-2049? Context: CREATE TABLE table_name_80 (year VARCHAR, works_no VARCHAR)[/INST]SELECT year FROM table_name_80 WHERE works_no = "2040-2049"</s>
CREATE TABLE table_name_3 (round VARCHAR, position VARCHAR, pick VARCHAR)
SELECT COUNT(round) FROM table_name_3 WHERE position = "lb" AND pick < 25
Which Round has a Position of lb, and a Pick smaller than 25?
<s>[INST]Which Round has a Position of lb, and a Pick smaller than 25? Context: CREATE TABLE table_name_3 (round VARCHAR, position VARCHAR, pick VARCHAR)[/INST]SELECT COUNT(round) FROM table_name_3 WHERE position = "lb" AND pick < 25</s>
CREATE TABLE table_21258_1 (crude_death_rate VARCHAR, deaths VARCHAR)
SELECT crude_death_rate FROM table_21258_1 WHERE deaths = "106 000"
Among deaths 106 000 how many is crude rate.
<s>[INST]Among deaths 106 000 how many is crude rate. Context: CREATE TABLE table_21258_1 (crude_death_rate VARCHAR, deaths VARCHAR)[/INST]SELECT crude_death_rate FROM table_21258_1 WHERE deaths = "106 000"</s>
CREATE TABLE table_name_58 (original_air_date VARCHAR, no_in_series INTEGER)
SELECT original_air_date FROM table_name_58 WHERE no_in_series > 3
What the air dates for the episodes are episode 3 in the series?
<s>[INST]What the air dates for the episodes are episode 3 in the series? Context: CREATE TABLE table_name_58 (original_air_date VARCHAR, no_in_series INTEGER)[/INST]SELECT original_air_date FROM table_name_58 WHERE no_in_series > 3</s>
CREATE TABLE table_name_74 (club VARCHAR, scorer VARCHAR, league_cup_goals VARCHAR, league_goals VARCHAR)
SELECT club FROM table_name_74 WHERE league_cup_goals = 0 AND league_goals = "11" AND scorer = "joe laidlaw"
Which Club has a League Cup goals of 0, and a League goals of 11, and a Scorer of joe laidlaw?
<s>[INST]Which Club has a League Cup goals of 0, and a League goals of 11, and a Scorer of joe laidlaw? Context: CREATE TABLE table_name_74 (club VARCHAR, scorer VARCHAR, league_cup_goals VARCHAR, league_goals VARCHAR)[/INST]SELECT club FROM table_name_74 WHERE league_cup_goals = 0 AND league_goals = "11" AND scorer = "joe laidlaw"</s>
CREATE TABLE table_25691838_6 (the_wørd VARCHAR, episode__number VARCHAR)
SELECT COUNT(the_wørd) FROM table_25691838_6 WHERE episode__number = 727
What was the number of "The Word" segments for episode number 727?
<s>[INST]What was the number of "The Word" segments for episode number 727? Context: CREATE TABLE table_25691838_6 (the_wørd VARCHAR, episode__number VARCHAR)[/INST]SELECT COUNT(the_wørd) FROM table_25691838_6 WHERE episode__number = 727</s>
CREATE TABLE table_name_73 (no_in_season VARCHAR, directed_by VARCHAR, no_in_series VARCHAR)
SELECT COUNT(no_in_season) FROM table_name_73 WHERE directed_by = "robert berlinger" AND no_in_series = 30
What is the total number in the season for the #30 Robert Berlinger series?
<s>[INST]What is the total number in the season for the #30 Robert Berlinger series? Context: CREATE TABLE table_name_73 (no_in_season VARCHAR, directed_by VARCHAR, no_in_series VARCHAR)[/INST]SELECT COUNT(no_in_season) FROM table_name_73 WHERE directed_by = "robert berlinger" AND no_in_series = 30</s>
CREATE TABLE table_1341690_20 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341690_20 WHERE district = "Maryland 7"
List all results where the voting district is Maryland 7.
<s>[INST]List all results where the voting district is Maryland 7. Context: CREATE TABLE table_1341690_20 (result VARCHAR, district VARCHAR)[/INST]SELECT result FROM table_1341690_20 WHERE district = "Maryland 7"</s>
CREATE TABLE table_name_43 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_43 WHERE venue = "mcg"
Who is the home team that played at MCG?
<s>[INST]Who is the home team that played at MCG? Context: CREATE TABLE table_name_43 (home_team VARCHAR, venue VARCHAR)[/INST]SELECT home_team AS score FROM table_name_43 WHERE venue = "mcg"</s>
CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (country VARCHAR, artist_name VARCHAR)
SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) LIMIT 1
Find the country of origin for the artist who made the least number of songs?
<s>[INST]Find the country of origin for the artist who made the least number of songs? Context: CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (country VARCHAR, artist_name VARCHAR)[/INST]SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) LIMIT 1</s>
CREATE TABLE table_name_19 (game VARCHAR, opponent VARCHAR)
SELECT game FROM table_name_19 WHERE opponent = "miami heat"
Can you tell me the Game that has the Opponent of miami heat?
<s>[INST]Can you tell me the Game that has the Opponent of miami heat? Context: CREATE TABLE table_name_19 (game VARCHAR, opponent VARCHAR)[/INST]SELECT game FROM table_name_19 WHERE opponent = "miami heat"</s>
CREATE TABLE table_name_42 (player VARCHAR, position VARCHAR, pick__number VARCHAR)
SELECT player FROM table_name_42 WHERE position = "defence" AND pick__number = "6"
Which player has a Position of defence, and a Pick # of 6?
<s>[INST]Which player has a Position of defence, and a Pick # of 6? Context: CREATE TABLE table_name_42 (player VARCHAR, position VARCHAR, pick__number VARCHAR)[/INST]SELECT player FROM table_name_42 WHERE position = "defence" AND pick__number = "6"</s>
CREATE TABLE table_name_67 (club VARCHAR, points VARCHAR)
SELECT club FROM table_name_67 WHERE points = "56"
What club had 56 points?
<s>[INST]What club had 56 points? Context: CREATE TABLE table_name_67 (club VARCHAR, points VARCHAR)[/INST]SELECT club FROM table_name_67 WHERE points = "56"</s>
CREATE TABLE table_2668416_7 (district VARCHAR, party VARCHAR, candidates VARCHAR)
SELECT district FROM table_2668416_7 WHERE party = "Federalist" AND candidates = "William Craik (F) 51.0% Benjamin Edwards 49.0%"
What is the district for the party federalist and the candidates are william craik (f) 51.0% benjamin edwards 49.0%?
<s>[INST]What is the district for the party federalist and the candidates are william craik (f) 51.0% benjamin edwards 49.0%? Context: CREATE TABLE table_2668416_7 (district VARCHAR, party VARCHAR, candidates VARCHAR)[/INST]SELECT district FROM table_2668416_7 WHERE party = "Federalist" AND candidates = "William Craik (F) 51.0% Benjamin Edwards 49.0%"</s>
CREATE TABLE table_name_7 (election VARCHAR)
SELECT 1 AS st_member FROM table_name_7 WHERE election = "1884 by-election"
Who is the 1st member in the 1884 by-election?
<s>[INST]Who is the 1st member in the 1884 by-election? Context: CREATE TABLE table_name_7 (election VARCHAR)[/INST]SELECT 1 AS st_member FROM table_name_7 WHERE election = "1884 by-election"</s>
CREATE TABLE table_name_96 (place VARCHAR, points VARCHAR)
SELECT COUNT(place) FROM table_name_96 WHERE points = 33
How many places have more than 33 points?
<s>[INST]How many places have more than 33 points? Context: CREATE TABLE table_name_96 (place VARCHAR, points VARCHAR)[/INST]SELECT COUNT(place) FROM table_name_96 WHERE points = 33</s>
CREATE TABLE table_name_95 (pos VARCHAR, team VARCHAR)
SELECT pos FROM table_name_95 WHERE team = "arena motorsports international"
What was the final position of Arena Motorsports International?
<s>[INST]What was the final position of Arena Motorsports International? Context: CREATE TABLE table_name_95 (pos VARCHAR, team VARCHAR)[/INST]SELECT pos FROM table_name_95 WHERE team = "arena motorsports international"</s>
CREATE TABLE table_15463188_17 (school_club_team VARCHAR, season VARCHAR, acquisition_via VARCHAR)
SELECT school_club_team FROM table_15463188_17 WHERE season = "2012" AND acquisition_via = "Trade"
What was the school/club team whose season was in 2012 and were acquired via trade?
<s>[INST]What was the school/club team whose season was in 2012 and were acquired via trade? Context: CREATE TABLE table_15463188_17 (school_club_team VARCHAR, season VARCHAR, acquisition_via VARCHAR)[/INST]SELECT school_club_team FROM table_15463188_17 WHERE season = "2012" AND acquisition_via = "Trade"</s>
CREATE TABLE publication (Price VARCHAR, Publisher VARCHAR)
SELECT Price FROM publication WHERE Publisher = "Person" OR Publisher = "Wiley"
Show the prices of publications whose publisher is either "Person" or "Wiley"
<s>[INST]Show the prices of publications whose publisher is either "Person" or "Wiley" Context: CREATE TABLE publication (Price VARCHAR, Publisher VARCHAR)[/INST]SELECT Price FROM publication WHERE Publisher = "Person" OR Publisher = "Wiley"</s>
CREATE TABLE table_2683116_1 (communes VARCHAR, enrolled VARCHAR)
SELECT communes FROM table_2683116_1 WHERE enrolled = 174946
What communes have enrolled values of 174946?
<s>[INST]What communes have enrolled values of 174946? Context: CREATE TABLE table_2683116_1 (communes VARCHAR, enrolled VARCHAR)[/INST]SELECT communes FROM table_2683116_1 WHERE enrolled = 174946</s>
CREATE TABLE table_name_64 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_64 WHERE date = "may 26"
What was the record for May 26?
<s>[INST]What was the record for May 26? Context: CREATE TABLE table_name_64 (record VARCHAR, date VARCHAR)[/INST]SELECT record FROM table_name_64 WHERE date = "may 26"</s>
CREATE TABLE table_11963536_11 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_11963536_11 WHERE date = "May 11"
What was the high assist total on May 11?
<s>[INST]What was the high assist total on May 11? Context: CREATE TABLE table_11963536_11 (high_assists VARCHAR, date VARCHAR)[/INST]SELECT high_assists FROM table_11963536_11 WHERE date = "May 11"</s>
CREATE TABLE table_10716893_3 (pre_race_analyst VARCHAR, lap_by_lap VARCHAR)
SELECT COUNT(pre_race_analyst) FROM table_10716893_3 WHERE lap_by_lap = "Allen Bestwick"
How many pre-race analysis occur when Allen Bestwick does the lap-by-lap?
<s>[INST]How many pre-race analysis occur when Allen Bestwick does the lap-by-lap? Context: CREATE TABLE table_10716893_3 (pre_race_analyst VARCHAR, lap_by_lap VARCHAR)[/INST]SELECT COUNT(pre_race_analyst) FROM table_10716893_3 WHERE lap_by_lap = "Allen Bestwick"</s>
CREATE TABLE table_name_6 (founded INTEGER, club VARCHAR, capacity VARCHAR)
SELECT SUM(founded) FROM table_name_6 WHERE club = "stade tunisien" AND capacity > 18 OFFSET 000
How many foundeds have stade tunisien as the club, with a capacity greater than 18,000?
<s>[INST]How many foundeds have stade tunisien as the club, with a capacity greater than 18,000? Context: CREATE TABLE table_name_6 (founded INTEGER, club VARCHAR, capacity VARCHAR)[/INST]SELECT SUM(founded) FROM table_name_6 WHERE club = "stade tunisien" AND capacity > 18 OFFSET 000</s>
CREATE TABLE table_22297198_3 (team VARCHAR, outgoing_manager VARCHAR)
SELECT COUNT(team) FROM table_22297198_3 WHERE outgoing_manager = "Farhad Kazemi"
How many teams did Farhad Kazemi leave?
<s>[INST]How many teams did Farhad Kazemi leave? Context: CREATE TABLE table_22297198_3 (team VARCHAR, outgoing_manager VARCHAR)[/INST]SELECT COUNT(team) FROM table_22297198_3 WHERE outgoing_manager = "Farhad Kazemi"</s>
CREATE TABLE table_name_62 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT MAX(total) FROM table_name_62 WHERE silver = 1 AND gold < 0
What is the highest total medals when there were 0 gold medals and 1 silver?
<s>[INST]What is the highest total medals when there were 0 gold medals and 1 silver? Context: CREATE TABLE table_name_62 (total INTEGER, silver VARCHAR, gold VARCHAR)[/INST]SELECT MAX(total) FROM table_name_62 WHERE silver = 1 AND gold < 0</s>
CREATE TABLE table_name_26 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_26 WHERE record = "10-8"
When did the team have a 10-8 record?
<s>[INST]When did the team have a 10-8 record? Context: CREATE TABLE table_name_26 (date VARCHAR, record VARCHAR)[/INST]SELECT date FROM table_name_26 WHERE record = "10-8"</s>
CREATE TABLE table_name_82 (senator VARCHAR, district VARCHAR, party VARCHAR, home_town VARCHAR)
SELECT senator FROM table_name_82 WHERE party = "republican" AND home_town = "houston" AND district = 7
Which Senator has a Party of republican, a Home Town of houston, and a District of 7?
<s>[INST]Which Senator has a Party of republican, a Home Town of houston, and a District of 7? Context: CREATE TABLE table_name_82 (senator VARCHAR, district VARCHAR, party VARCHAR, home_town VARCHAR)[/INST]SELECT senator FROM table_name_82 WHERE party = "republican" AND home_town = "houston" AND district = 7</s>
CREATE TABLE table_name_9 (li_fes_2 VARCHAR, type VARCHAR)
SELECT li_fes_2 FROM table_name_9 WHERE type = "nominal voltage"
What is Li-FeS 2, when Type is Nominal Voltage?
<s>[INST]What is Li-FeS 2, when Type is Nominal Voltage? Context: CREATE TABLE table_name_9 (li_fes_2 VARCHAR, type VARCHAR)[/INST]SELECT li_fes_2 FROM table_name_9 WHERE type = "nominal voltage"</s>
CREATE TABLE table_1449176_1 (population VARCHAR, common_of VARCHAR)
SELECT COUNT(population) FROM table_1449176_1 WHERE common_of = "Settimo Torinese"
How may population figures are given for Settimo Torinese
<s>[INST]How may population figures are given for Settimo Torinese Context: CREATE TABLE table_1449176_1 (population VARCHAR, common_of VARCHAR)[/INST]SELECT COUNT(population) FROM table_1449176_1 WHERE common_of = "Settimo Torinese"</s>
CREATE TABLE table_name_73 (title VARCHAR, date VARCHAR, artist VARCHAR)
SELECT title FROM table_name_73 WHERE date = 2001 AND artist = "mellow"
Which title was created in 2001 by Mellow?
<s>[INST]Which title was created in 2001 by Mellow? Context: CREATE TABLE table_name_73 (title VARCHAR, date VARCHAR, artist VARCHAR)[/INST]SELECT title FROM table_name_73 WHERE date = 2001 AND artist = "mellow"</s>
CREATE TABLE table_name_90 (score VARCHAR, high_points VARCHAR)
SELECT score FROM table_name_90 WHERE high_points = "douglas (15)"
Which Score has High points of douglas (15)?
<s>[INST]Which Score has High points of douglas (15)? Context: CREATE TABLE table_name_90 (score VARCHAR, high_points VARCHAR)[/INST]SELECT score FROM table_name_90 WHERE high_points = "douglas (15)"</s>
CREATE TABLE table_name_76 (alabama VARCHAR, mississippi_st VARCHAR)
SELECT alabama FROM table_name_76 WHERE mississippi_st = "walt harris"
Who was the Alabama player associated with Walt Harris?
<s>[INST]Who was the Alabama player associated with Walt Harris? Context: CREATE TABLE table_name_76 (alabama VARCHAR, mississippi_st VARCHAR)[/INST]SELECT alabama FROM table_name_76 WHERE mississippi_st = "walt harris"</s>
CREATE TABLE table_name_9 (extras INTEGER, er VARCHAR, runs_conceded VARCHAR)
SELECT MAX(extras) FROM table_name_9 WHERE er = 4.59 AND runs_conceded > 101
What is the highest Extras with an E.R. of 4.59, and more than 101 Runs Conceded?
<s>[INST]What is the highest Extras with an E.R. of 4.59, and more than 101 Runs Conceded? Context: CREATE TABLE table_name_9 (extras INTEGER, er VARCHAR, runs_conceded VARCHAR)[/INST]SELECT MAX(extras) FROM table_name_9 WHERE er = 4.59 AND runs_conceded > 101</s>
CREATE TABLE table_name_73 (viewers__m_ VARCHAR, rank___number_ VARCHAR, share VARCHAR, rating VARCHAR)
SELECT viewers__m_ FROM table_name_73 WHERE share = 1 AND rating > 0.7000000000000001 AND rank___number_ = "100/102"
How many vieweres for the episode with a share of 1, a Rating larger than 0.7000000000000001, and a Rank (#) of 100/102?
<s>[INST]How many vieweres for the episode with a share of 1, a Rating larger than 0.7000000000000001, and a Rank (#) of 100/102? Context: CREATE TABLE table_name_73 (viewers__m_ VARCHAR, rank___number_ VARCHAR, share VARCHAR, rating VARCHAR)[/INST]SELECT viewers__m_ FROM table_name_73 WHERE share = 1 AND rating > 0.7000000000000001 AND rank___number_ = "100/102"</s>
CREATE TABLE table_name_67 (laps INTEGER, start VARCHAR, finish VARCHAR)
SELECT MAX(laps) FROM table_name_67 WHERE start = "33" AND finish = "18"
How many laps were completed with a start of 33, and a finish of 18?
<s>[INST]How many laps were completed with a start of 33, and a finish of 18? Context: CREATE TABLE table_name_67 (laps INTEGER, start VARCHAR, finish VARCHAR)[/INST]SELECT MAX(laps) FROM table_name_67 WHERE start = "33" AND finish = "18"</s>
CREATE TABLE payments (amount_due INTEGER)
SELECT AVG(amount_due) FROM payments
What is the average amount due for all the payments?
<s>[INST]What is the average amount due for all the payments? Context: CREATE TABLE payments (amount_due INTEGER)[/INST]SELECT AVG(amount_due) FROM payments</s>
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_39 WHERE away_team = "footscray"
What was the home teams score against the away team footscray?
<s>[INST]What was the home teams score against the away team footscray? Context: CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)[/INST]SELECT home_team AS score FROM table_name_39 WHERE away_team = "footscray"</s>
CREATE TABLE table_name_91 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_91 WHERE date = "august 19"
What was the loss for August 19?
<s>[INST]What was the loss for August 19? Context: CREATE TABLE table_name_91 (loss VARCHAR, date VARCHAR)[/INST]SELECT loss FROM table_name_91 WHERE date = "august 19"</s>
CREATE TABLE table_name_18 (attendance INTEGER, week VARCHAR)
SELECT MIN(attendance) FROM table_name_18 WHERE week = 5
What is the smallest attendance in week 5?
<s>[INST]What is the smallest attendance in week 5? Context: CREATE TABLE table_name_18 (attendance INTEGER, week VARCHAR)[/INST]SELECT MIN(attendance) FROM table_name_18 WHERE week = 5</s>
CREATE TABLE table_name_81 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_81 WHERE home = "atlanta"
What was the date of the game when Atlanta was the home team?
<s>[INST]What was the date of the game when Atlanta was the home team? Context: CREATE TABLE table_name_81 (date VARCHAR, home VARCHAR)[/INST]SELECT date FROM table_name_81 WHERE home = "atlanta"</s>
CREATE TABLE table_26013618_1 (date_established VARCHAR, name_of_the_nature_reserve VARCHAR)
SELECT date_established FROM table_26013618_1 WHERE name_of_the_nature_reserve = "Stellbrookmoor"
When was Stellbrookmoor established?
<s>[INST]When was Stellbrookmoor established? Context: CREATE TABLE table_26013618_1 (date_established VARCHAR, name_of_the_nature_reserve VARCHAR)[/INST]SELECT date_established FROM table_26013618_1 WHERE name_of_the_nature_reserve = "Stellbrookmoor"</s>
CREATE TABLE table_17632217_1 (season INTEGER)
SELECT MIN(season) FROM table_17632217_1
What is the lowest season?
<s>[INST]What is the lowest season? Context: CREATE TABLE table_17632217_1 (season INTEGER)[/INST]SELECT MIN(season) FROM table_17632217_1</s>
CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course VARCHAR, Course_ID VARCHAR)
SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID
Show names of teachers and the courses they are arranged to teach.
<s>[INST]Show names of teachers and the courses they are arranged to teach. Context: CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course VARCHAR, Course_ID VARCHAR)[/INST]SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID</s>
CREATE TABLE table_name_81 (points INTEGER, lost VARCHAR, games VARCHAR)
SELECT MAX(points) FROM table_name_81 WHERE lost < 1 AND games > 7
Which Points have a Lost smaller than 1, and Games larger than 7?
<s>[INST]Which Points have a Lost smaller than 1, and Games larger than 7? Context: CREATE TABLE table_name_81 (points INTEGER, lost VARCHAR, games VARCHAR)[/INST]SELECT MAX(points) FROM table_name_81 WHERE lost < 1 AND games > 7</s>
CREATE TABLE table_name_48 (label VARCHAR, year VARCHAR, formats VARCHAR, format VARCHAR)
SELECT label FROM table_name_48 WHERE formats = "cd" AND format = "album" AND year = 2008
Tell me the label for formats of cd and album and year of 2008
<s>[INST]Tell me the label for formats of cd and album and year of 2008 Context: CREATE TABLE table_name_48 (label VARCHAR, year VARCHAR, formats VARCHAR, format VARCHAR)[/INST]SELECT label FROM table_name_48 WHERE formats = "cd" AND format = "album" AND year = 2008</s>
CREATE TABLE table_name_54 (finish VARCHAR, player VARCHAR)
SELECT finish FROM table_name_54 WHERE player = "tom weiskopf"
What was Tom Weiskopf's Finish?
<s>[INST]What was Tom Weiskopf's Finish? Context: CREATE TABLE table_name_54 (finish VARCHAR, player VARCHAR)[/INST]SELECT finish FROM table_name_54 WHERE player = "tom weiskopf"</s>
CREATE TABLE table_name_41 (byes VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT COUNT(byes) FROM table_name_41 WHERE losses = 13 AND wins < 5
What is the total number of byes that has 13 losses and wins less than 5?
<s>[INST]What is the total number of byes that has 13 losses and wins less than 5? Context: CREATE TABLE table_name_41 (byes VARCHAR, losses VARCHAR, wins VARCHAR)[/INST]SELECT COUNT(byes) FROM table_name_41 WHERE losses = 13 AND wins < 5</s>
CREATE TABLE table_name_18 (team VARCHAR, carries VARCHAR, week VARCHAR)
SELECT team FROM table_name_18 WHERE carries = 19 AND week > 13
Which Team has 19 Carries, and a Week larger than 13?
<s>[INST]Which Team has 19 Carries, and a Week larger than 13? Context: CREATE TABLE table_name_18 (team VARCHAR, carries VARCHAR, week VARCHAR)[/INST]SELECT team FROM table_name_18 WHERE carries = 19 AND week > 13</s>
CREATE TABLE table_name_57 (position INTEGER, points VARCHAR, drawn VARCHAR)
SELECT SUM(position) FROM table_name_57 WHERE points = 15 AND drawn < 3
How many positions have 15 for the points, with a drawn less than 3?
<s>[INST]How many positions have 15 for the points, with a drawn less than 3? Context: CREATE TABLE table_name_57 (position INTEGER, points VARCHAR, drawn VARCHAR)[/INST]SELECT SUM(position) FROM table_name_57 WHERE points = 15 AND drawn < 3</s>
CREATE TABLE table_28744929_1 (acc_football_titles VARCHAR, nickname VARCHAR)
SELECT acc_football_titles FROM table_28744929_1 WHERE nickname = "Tar Heels"
how many acc football titles have been won by the institution nicknamed tar heels?
<s>[INST]how many acc football titles have been won by the institution nicknamed tar heels? Context: CREATE TABLE table_28744929_1 (acc_football_titles VARCHAR, nickname VARCHAR)[/INST]SELECT acc_football_titles FROM table_28744929_1 WHERE nickname = "Tar Heels"</s>
CREATE TABLE table_10416547_1 (major_instrument_s_ VARCHAR, duration VARCHAR)
SELECT major_instrument_s_ FROM table_10416547_1 WHERE duration = "4:32"
What is the major instrument of the song that lasts 4:32?
<s>[INST]What is the major instrument of the song that lasts 4:32? Context: CREATE TABLE table_10416547_1 (major_instrument_s_ VARCHAR, duration VARCHAR)[/INST]SELECT major_instrument_s_ FROM table_10416547_1 WHERE duration = "4:32"</s>
CREATE TABLE table_29942205_1 (miss_international INTEGER, rank VARCHAR)
SELECT MIN(miss_international) FROM table_29942205_1 WHERE rank = 1
How many women has reached the title of Miss International representing the country ranked as number 1?
<s>[INST]How many women has reached the title of Miss International representing the country ranked as number 1? Context: CREATE TABLE table_29942205_1 (miss_international INTEGER, rank VARCHAR)[/INST]SELECT MIN(miss_international) FROM table_29942205_1 WHERE rank = 1</s>
CREATE TABLE table_20683381_3 (against___percentage_ VARCHAR, ±_yes_side_2008___percentage_ VARCHAR)
SELECT against___percentage_ FROM table_20683381_3 WHERE ±_yes_side_2008___percentage_ = "+18.1"
When +18.1 is the ± yes side 2008 percentage what is the percentage of against?
<s>[INST]When +18.1 is the ± yes side 2008 percentage what is the percentage of against? Context: CREATE TABLE table_20683381_3 (against___percentage_ VARCHAR, ±_yes_side_2008___percentage_ VARCHAR)[/INST]SELECT against___percentage_ FROM table_20683381_3 WHERE ±_yes_side_2008___percentage_ = "+18.1"</s>
CREATE TABLE table_name_7 (round INTEGER, pick VARCHAR, name VARCHAR)
SELECT MAX(round) FROM table_name_7 WHERE pick < 10 AND name = "tory nixon"
Which Round is the highest one that has a Pick smaller than 10, and a Name of tory nixon?
<s>[INST]Which Round is the highest one that has a Pick smaller than 10, and a Name of tory nixon? Context: CREATE TABLE table_name_7 (round INTEGER, pick VARCHAR, name VARCHAR)[/INST]SELECT MAX(round) FROM table_name_7 WHERE pick < 10 AND name = "tory nixon"</s>
CREATE TABLE table_name_87 (total INTEGER)
SELECT MAX(total) FROM table_name_87 WHERE 2013 = "6th"
What is the total of 2013 with 6th?
<s>[INST]What is the total of 2013 with 6th? Context: CREATE TABLE table_name_87 (total INTEGER)[/INST]SELECT MAX(total) FROM table_name_87 WHERE 2013 = "6th"</s>
CREATE TABLE table_name_59 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_59 WHERE away_team = "altrincham"
What is the tie no for the away team altrincham?
<s>[INST]What is the tie no for the away team altrincham? Context: CREATE TABLE table_name_59 (tie_no VARCHAR, away_team VARCHAR)[/INST]SELECT tie_no FROM table_name_59 WHERE away_team = "altrincham"</s>
CREATE TABLE table_name_89 (Id VARCHAR)
SELECT 2011 FROM table_name_89 WHERE 2009 = "a" AND 2013 = "4r"
What is the value for 2011 when `a` is the value for 2009, and 4r is the value for 2013?
<s>[INST]What is the value for 2011 when `a` is the value for 2009, and 4r is the value for 2013? Context: CREATE TABLE table_name_89 (Id VARCHAR)[/INST]SELECT 2011 FROM table_name_89 WHERE 2009 = "a" AND 2013 = "4r"</s>
CREATE TABLE table_name_48 (wins VARCHAR, draws INTEGER)
SELECT COUNT(wins) FROM table_name_48 WHERE draws < 2
What is the total number of Wins, when Draws is less than 2?
<s>[INST]What is the total number of Wins, when Draws is less than 2? Context: CREATE TABLE table_name_48 (wins VARCHAR, draws INTEGER)[/INST]SELECT COUNT(wins) FROM table_name_48 WHERE draws < 2</s>
CREATE TABLE table_23286112_12 (location_attendance VARCHAR, game VARCHAR)
SELECT location_attendance FROM table_23286112_12 WHERE game = 5
Where was game number 5 played?
<s>[INST]Where was game number 5 played? Context: CREATE TABLE table_23286112_12 (location_attendance VARCHAR, game VARCHAR)[/INST]SELECT location_attendance FROM table_23286112_12 WHERE game = 5</s>
CREATE TABLE table_name_78 (engine VARCHAR, displacement VARCHAR, model VARCHAR)
SELECT engine FROM table_name_78 WHERE displacement = "1,585 cc" AND model = "90i"
Which of the engines has a displacement of 1,585 cc, with a model number of 90i?
<s>[INST]Which of the engines has a displacement of 1,585 cc, with a model number of 90i? Context: CREATE TABLE table_name_78 (engine VARCHAR, displacement VARCHAR, model VARCHAR)[/INST]SELECT engine FROM table_name_78 WHERE displacement = "1,585 cc" AND model = "90i"</s>
CREATE TABLE table_28178756_1 (date VARCHAR, driver VARCHAR)
SELECT date FROM table_28178756_1 WHERE driver = "Tommy Ellis"
On what day did tommy ellis drive?
<s>[INST]On what day did tommy ellis drive? Context: CREATE TABLE table_28178756_1 (date VARCHAR, driver VARCHAR)[/INST]SELECT date FROM table_28178756_1 WHERE driver = "Tommy Ellis"</s>
CREATE TABLE table_name_40 (position VARCHAR, event VARCHAR, venue VARCHAR)
SELECT position FROM table_name_40 WHERE event = "60 m" AND venue = "budapest , hungary"
What is Position, when Event is 60 m, and when Venue is Budapest , Hungary?
<s>[INST]What is Position, when Event is 60 m, and when Venue is Budapest , Hungary? Context: CREATE TABLE table_name_40 (position VARCHAR, event VARCHAR, venue VARCHAR)[/INST]SELECT position FROM table_name_40 WHERE event = "60 m" AND venue = "budapest , hungary"</s>
CREATE TABLE table_name_54 (stolen_ends INTEGER, skip VARCHAR)
SELECT MAX(stolen_ends) FROM table_name_54 WHERE skip = "ludmila privivkova"
What is the highest Stolen Ends when ludmila privivkova shows for skip?
<s>[INST]What is the highest Stolen Ends when ludmila privivkova shows for skip? Context: CREATE TABLE table_name_54 (stolen_ends INTEGER, skip VARCHAR)[/INST]SELECT MAX(stolen_ends) FROM table_name_54 WHERE skip = "ludmila privivkova"</s>
CREATE TABLE table_name_29 (score VARCHAR, team VARCHAR)
SELECT score FROM table_name_29 WHERE team = "@ memphis"
What is Score, when Team is "@ Memphis"?
<s>[INST]What is Score, when Team is "@ Memphis"? Context: CREATE TABLE table_name_29 (score VARCHAR, team VARCHAR)[/INST]SELECT score FROM table_name_29 WHERE team = "@ memphis"</s>
CREATE TABLE table_11173827_1 (english_title VARCHAR, finale VARCHAR, peak VARCHAR)
SELECT english_title FROM table_11173827_1 WHERE finale = 33 AND peak = 42
What is the english title that has finale as 33 and peak as 42?
<s>[INST]What is the english title that has finale as 33 and peak as 42? Context: CREATE TABLE table_11173827_1 (english_title VARCHAR, finale VARCHAR, peak VARCHAR)[/INST]SELECT english_title FROM table_11173827_1 WHERE finale = 33 AND peak = 42</s>
CREATE TABLE table_29171931_3 (outgoing_head_coach VARCHAR, manner_of_departure VARCHAR)
SELECT outgoing_head_coach FROM table_29171931_3 WHERE manner_of_departure = "Gardening leave 1"
Who are the outgoing head coaches whose manner of departure is Gardening Leave 1?
<s>[INST]Who are the outgoing head coaches whose manner of departure is Gardening Leave 1? Context: CREATE TABLE table_29171931_3 (outgoing_head_coach VARCHAR, manner_of_departure VARCHAR)[/INST]SELECT outgoing_head_coach FROM table_29171931_3 WHERE manner_of_departure = "Gardening leave 1"</s>
CREATE TABLE table_name_89 (stadium VARCHAR, home_team VARCHAR)
SELECT stadium FROM table_name_89 WHERE home_team = "dallas cowboys 21"
In what stadium was the home team Dallas Cowboys 21?
<s>[INST]In what stadium was the home team Dallas Cowboys 21? Context: CREATE TABLE table_name_89 (stadium VARCHAR, home_team VARCHAR)[/INST]SELECT stadium FROM table_name_89 WHERE home_team = "dallas cowboys 21"</s>
CREATE TABLE table_name_66 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_66 WHERE game = 54
What was their record bfore game 54?
<s>[INST]What was their record bfore game 54? Context: CREATE TABLE table_name_66 (record VARCHAR, game VARCHAR)[/INST]SELECT record FROM table_name_66 WHERE game = 54</s>
CREATE TABLE table_name_87 (year INTEGER, co_singer VARCHAR, film_name VARCHAR)
SELECT MIN(year) FROM table_name_87 WHERE co_singer = "solo" AND film_name = "bhagya debata"
Which year has the Co-singer solo and a Film name of bhagya debata?
<s>[INST]Which year has the Co-singer solo and a Film name of bhagya debata? Context: CREATE TABLE table_name_87 (year INTEGER, co_singer VARCHAR, film_name VARCHAR)[/INST]SELECT MIN(year) FROM table_name_87 WHERE co_singer = "solo" AND film_name = "bhagya debata"</s>
CREATE TABLE volume (Issue_Date VARCHAR, Weeks_on_Top VARCHAR)
SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top LIMIT 1
What is the issue date of the volume with the minimum weeks on top?
<s>[INST]What is the issue date of the volume with the minimum weeks on top? Context: CREATE TABLE volume (Issue_Date VARCHAR, Weeks_on_Top VARCHAR)[/INST]SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top LIMIT 1</s>
CREATE TABLE table_name_64 (set_4 VARCHAR, date VARCHAR, set_3 VARCHAR)
SELECT set_4 FROM table_name_64 WHERE date = "jun 27" AND set_3 = "17-25"
What is Set 4, when Date is Jun 27, and when Set 3 is 17-25?
<s>[INST]What is Set 4, when Date is Jun 27, and when Set 3 is 17-25? Context: CREATE TABLE table_name_64 (set_4 VARCHAR, date VARCHAR, set_3 VARCHAR)[/INST]SELECT set_4 FROM table_name_64 WHERE date = "jun 27" AND set_3 = "17-25"</s>
CREATE TABLE table_name_21 (date VARCHAR, race_title VARCHAR)
SELECT date FROM table_name_21 WHERE race_title = "lakeside"
Name the date for race title lakeside
<s>[INST]Name the date for race title lakeside Context: CREATE TABLE table_name_21 (date VARCHAR, race_title VARCHAR)[/INST]SELECT date FROM table_name_21 WHERE race_title = "lakeside"</s>
CREATE TABLE table_name_85 (german VARCHAR, macedonian VARCHAR)
SELECT german FROM table_name_85 WHERE macedonian = "беше слушнал/-а/-о"
What's the German Pluperfect when the Macedonian is беше слушнал/-а/-о?
<s>[INST]What's the German Pluperfect when the Macedonian is беше слушнал/-а/-о? Context: CREATE TABLE table_name_85 (german VARCHAR, macedonian VARCHAR)[/INST]SELECT german FROM table_name_85 WHERE macedonian = "беше слушнал/-а/-о"</s>
CREATE TABLE table_name_57 (goals VARCHAR, since VARCHAR, app_gs_sub_ VARCHAR)
SELECT goals FROM table_name_57 WHERE since < 2007 AND app_gs_sub_ = "97 (69/28)"
Name the goals with since less than 2007 and App(GS/Sub) of 97 (69/28)
<s>[INST]Name the goals with since less than 2007 and App(GS/Sub) of 97 (69/28) Context: CREATE TABLE table_name_57 (goals VARCHAR, since VARCHAR, app_gs_sub_ VARCHAR)[/INST]SELECT goals FROM table_name_57 WHERE since < 2007 AND app_gs_sub_ = "97 (69/28)"</s>
CREATE TABLE table_name_6 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT margin_of_victory FROM table_name_6 WHERE tournament = "ebel european masters swiss open"
What was Olazabal's margin of victory int he Ebel European Masters Swiss Open?
<s>[INST]What was Olazabal's margin of victory int he Ebel European Masters Swiss Open? Context: CREATE TABLE table_name_6 (margin_of_victory VARCHAR, tournament VARCHAR)[/INST]SELECT margin_of_victory FROM table_name_6 WHERE tournament = "ebel european masters swiss open"</s>
CREATE TABLE table_name_45 (death VARCHAR, name VARCHAR)
SELECT death FROM table_name_45 WHERE name = "elisabeth of valois"
When did elisabeth of valois die?
<s>[INST]When did elisabeth of valois die? Context: CREATE TABLE table_name_45 (death VARCHAR, name VARCHAR)[/INST]SELECT death FROM table_name_45 WHERE name = "elisabeth of valois"</s>
CREATE TABLE table_name_48 (date VARCHAR, satellite VARCHAR)
SELECT date FROM table_name_48 WHERE satellite = "gps iif-7"
What is the date of the gps iif-7 satellite?
<s>[INST]What is the date of the gps iif-7 satellite? Context: CREATE TABLE table_name_48 (date VARCHAR, satellite VARCHAR)[/INST]SELECT date FROM table_name_48 WHERE satellite = "gps iif-7"</s>
CREATE TABLE table_17382360_7 (team VARCHAR, date VARCHAR)
SELECT team FROM table_17382360_7 WHERE date = "February 18"
what team play in february 18 in the supersonic season
<s>[INST]what team play in february 18 in the supersonic season Context: CREATE TABLE table_17382360_7 (team VARCHAR, date VARCHAR)[/INST]SELECT team FROM table_17382360_7 WHERE date = "February 18"</s>
CREATE TABLE table_name_19 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_19 WHERE away_team = "essendon"
On what date does Essendon play as the away team?
<s>[INST]On what date does Essendon play as the away team? Context: CREATE TABLE table_name_19 (date VARCHAR, away_team VARCHAR)[/INST]SELECT date FROM table_name_19 WHERE away_team = "essendon"</s>
CREATE TABLE table_name_38 (role VARCHAR, year VARCHAR)
SELECT role FROM table_name_38 WHERE year = 2005
Tell me the role for 2005
<s>[INST]Tell me the role for 2005 Context: CREATE TABLE table_name_38 (role VARCHAR, year VARCHAR)[/INST]SELECT role FROM table_name_38 WHERE year = 2005</s>
CREATE TABLE staff (gender VARCHAR)
SELECT gender FROM staff GROUP BY gender ORDER BY COUNT(*) DESC LIMIT 1
Which gender makes up the majority of the staff?
<s>[INST]Which gender makes up the majority of the staff? Context: CREATE TABLE staff (gender VARCHAR)[/INST]SELECT gender FROM staff GROUP BY gender ORDER BY COUNT(*) DESC LIMIT 1</s>
CREATE TABLE table_1342013_5 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342013_5 WHERE incumbent = "Harlan Hagen"
What district does Harlan Hagen represent?
<s>[INST]What district does Harlan Hagen represent? Context: CREATE TABLE table_1342013_5 (district VARCHAR, incumbent VARCHAR)[/INST]SELECT district FROM table_1342013_5 WHERE incumbent = "Harlan Hagen"</s>
CREATE TABLE table_name_11 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_11 WHERE result = "7-2"
Where was the game with result 7-2 played?
<s>[INST]Where was the game with result 7-2 played? Context: CREATE TABLE table_name_11 (venue VARCHAR, result VARCHAR)[/INST]SELECT venue FROM table_name_11 WHERE result = "7-2"</s>
CREATE TABLE table_name_66 (high_points VARCHAR, record VARCHAR)
SELECT high_points FROM table_name_66 WHERE record = "31–48"
What is the name of the player with the High points when there was a Record of 31–48?
<s>[INST]What is the name of the player with the High points when there was a Record of 31–48? Context: CREATE TABLE table_name_66 (high_points VARCHAR, record VARCHAR)[/INST]SELECT high_points FROM table_name_66 WHERE record = "31–48"</s>
CREATE TABLE table_name_18 (games INTEGER, team VARCHAR, drawn VARCHAR)
SELECT MAX(games) FROM table_name_18 WHERE team = "czechoslovakia" AND drawn > 0
How many games does team Czechoslovakia have that had a drawn greater than 0?
<s>[INST]How many games does team Czechoslovakia have that had a drawn greater than 0? Context: CREATE TABLE table_name_18 (games INTEGER, team VARCHAR, drawn VARCHAR)[/INST]SELECT MAX(games) FROM table_name_18 WHERE team = "czechoslovakia" AND drawn > 0</s>
CREATE TABLE protein (institution_id VARCHAR); CREATE TABLE institution (institution_id VARCHAR)
SELECT COUNT(*) FROM institution WHERE NOT institution_id IN (SELECT institution_id FROM protein)
How many institutions do not have an associated protein in our record?
<s>[INST]How many institutions do not have an associated protein in our record? Context: CREATE TABLE protein (institution_id VARCHAR); CREATE TABLE institution (institution_id VARCHAR)[/INST]SELECT COUNT(*) FROM institution WHERE NOT institution_id IN (SELECT institution_id FROM protein)</s>
CREATE TABLE table_name_73 (team VARCHAR, kitmaker VARCHAR, shirt_sponsor VARCHAR)
SELECT team FROM table_name_73 WHERE kitmaker = "saller" AND shirt_sponsor = "krombacher"
Which team uses the kitmaker Saller and has Krombacher as their shirt sponsor?
<s>[INST]Which team uses the kitmaker Saller and has Krombacher as their shirt sponsor? Context: CREATE TABLE table_name_73 (team VARCHAR, kitmaker VARCHAR, shirt_sponsor VARCHAR)[/INST]SELECT team FROM table_name_73 WHERE kitmaker = "saller" AND shirt_sponsor = "krombacher"</s>
CREATE TABLE table_name_81 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR)
SELECT race_title FROM table_name_81 WHERE winner = "glenn seton" AND circuit = "sandown international raceway"
What race did Glenn Seton win on the Sandown International Raceway circuit?
<s>[INST]What race did Glenn Seton win on the Sandown International Raceway circuit? Context: CREATE TABLE table_name_81 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR)[/INST]SELECT race_title FROM table_name_81 WHERE winner = "glenn seton" AND circuit = "sandown international raceway"</s>
CREATE TABLE table_name_42 (level INTEGER, example_name VARCHAR, number_of_hus__approximate_ VARCHAR)
SELECT AVG(level) FROM table_name_42 WHERE example_name = "lower snake" AND number_of_hus__approximate_ < 370
What is the mean level number when the example name is lower snake and the approximate number is hus is less than 370?
<s>[INST]What is the mean level number when the example name is lower snake and the approximate number is hus is less than 370? Context: CREATE TABLE table_name_42 (level INTEGER, example_name VARCHAR, number_of_hus__approximate_ VARCHAR)[/INST]SELECT AVG(level) FROM table_name_42 WHERE example_name = "lower snake" AND number_of_hus__approximate_ < 370</s>
CREATE TABLE table_name_14 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_14 WHERE player = "anders forsbrand"
What is Anders Forsbrand's Place?
<s>[INST]What is Anders Forsbrand's Place? Context: CREATE TABLE table_name_14 (place VARCHAR, player VARCHAR)[/INST]SELECT place FROM table_name_14 WHERE player = "anders forsbrand"</s>
CREATE TABLE has_amenity (amenid VARCHAR, dormid VARCHAR); CREATE TABLE dorm_amenity (amenity_name VARCHAR, amenid VARCHAR); CREATE TABLE dorm (dormid VARCHAR, dorm_name VARCHAR)
SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T2.amenid = T1.amenid JOIN dorm AS T3 ON T2.dormid = T3.dormid WHERE T3.dorm_name = 'Anonymous Donor Hall' ORDER BY T1.amenity_name
List name of all amenities which Anonymous Donor Hall has, and sort the results in alphabetic order.
<s>[INST]List name of all amenities which Anonymous Donor Hall has, and sort the results in alphabetic order. Context: CREATE TABLE has_amenity (amenid VARCHAR, dormid VARCHAR); CREATE TABLE dorm_amenity (amenity_name VARCHAR, amenid VARCHAR); CREATE TABLE dorm (dormid VARCHAR, dorm_name VARCHAR)[/INST]SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T2.amenid = T1.amenid JOIN dorm AS T3 ON T2.dormid = T3.dormid WHERE T3.dorm_name = 'Anonymous Donor Hall' ORDER BY T1.amenity_name</s>
CREATE TABLE table_1132568_3 (rd VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)
SELECT rd FROM table_1132568_3 WHERE fastest_lap = "Michael Schumacher" AND constructor = "Ferrari" AND pole_position = "Michael Schumacher"
What are the numbers for the raceways that are constructed by Ferrari, with Michael Schumacher holding the fastest lap and pole position?
<s>[INST]What are the numbers for the raceways that are constructed by Ferrari, with Michael Schumacher holding the fastest lap and pole position? Context: CREATE TABLE table_1132568_3 (rd VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)[/INST]SELECT rd FROM table_1132568_3 WHERE fastest_lap = "Michael Schumacher" AND constructor = "Ferrari" AND pole_position = "Michael Schumacher"</s>
CREATE TABLE table_name_36 (player VARCHAR, from_club VARCHAR)
SELECT player FROM table_name_36 WHERE from_club = "atlético madrid"
Which Player had a From club of atlético madrid?
<s>[INST]Which Player had a From club of atlético madrid? Context: CREATE TABLE table_name_36 (player VARCHAR, from_club VARCHAR)[/INST]SELECT player FROM table_name_36 WHERE from_club = "atlético madrid"</s>
CREATE TABLE table_26173063_2 (ramtha VARCHAR, jeel VARCHAR, hussein VARCHAR)
SELECT ramtha FROM table_26173063_2 WHERE jeel = "1-0" AND hussein = "1-0"
What is ramtha when jeel is 1-0 and hussein is 1-0?
<s>[INST]What is ramtha when jeel is 1-0 and hussein is 1-0? Context: CREATE TABLE table_26173063_2 (ramtha VARCHAR, jeel VARCHAR, hussein VARCHAR)[/INST]SELECT ramtha FROM table_26173063_2 WHERE jeel = "1-0" AND hussein = "1-0"</s>
CREATE TABLE student (city_code VARCHAR)
SELECT COUNT(*), city_code FROM student GROUP BY city_code HAVING COUNT(*) > 1
Find the number of students for the cities where have more than one student.
<s>[INST]Find the number of students for the cities where have more than one student. Context: CREATE TABLE student (city_code VARCHAR)[/INST]SELECT COUNT(*), city_code FROM student GROUP BY city_code HAVING COUNT(*) > 1</s>
CREATE TABLE table_name_82 (background VARCHAR, hometown VARCHAR)
SELECT background FROM table_name_82 WHERE hometown = "barrington, illinois"
What is the Background of the Candidate from Barrington, Illinois?
<s>[INST]What is the Background of the Candidate from Barrington, Illinois? Context: CREATE TABLE table_name_82 (background VARCHAR, hometown VARCHAR)[/INST]SELECT background FROM table_name_82 WHERE hometown = "barrington, illinois"</s>