context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_78 (rank INTEGER, react VARCHAR, lane VARCHAR)
SELECT AVG(rank) FROM table_name_78 WHERE react = 0.17300000000000001 AND lane < 5
What is the average ranking for a react of 0.17300000000000001 and less than 5 lanes?
<s>[INST]What is the average ranking for a react of 0.17300000000000001 and less than 5 lanes? Context: CREATE TABLE table_name_78 (rank INTEGER, react VARCHAR, lane VARCHAR)[/INST]SELECT AVG(rank) FROM table_name_78 WHERE react = 0.17300000000000001 AND lane < 5</s>
CREATE TABLE table_12962773_2 (position VARCHAR, player VARCHAR)
SELECT position FROM table_12962773_2 WHERE player = "Yotam Halperin"
What's Yotam Halperin's position?
<s>[INST]What's Yotam Halperin's position? Context: CREATE TABLE table_12962773_2 (position VARCHAR, player VARCHAR)[/INST]SELECT position FROM table_12962773_2 WHERE player = "Yotam Halperin"</s>
CREATE TABLE table_name_32 (head_of_household VARCHAR, married_filing_jointly_or_qualified_widow_er_ VARCHAR)
SELECT head_of_household FROM table_name_32 WHERE married_filing_jointly_or_qualified_widow_er_ = "$137,051–$208,850"
Name the head of household for married filing jointly or qualified widow(er) being $137,051–$208,850
<s>[INST]Name the head of household for married filing jointly or qualified widow(er) being $137,051–$208,850 Context: CREATE TABLE table_name_32 (head_of_household VARCHAR, married_filing_jointly_or_qualified_widow_er_ VARCHAR)[/INST]SELECT head_of_household FROM table_name_32 WHERE married_filing_jointly_or_qualified_widow_er_ = "$137,051–$208,850"</s>
CREATE TABLE table_24353141_1 (original_1st_us_tour_cast VARCHAR, original_tokyo___seoul_tour_cast VARCHAR)
SELECT original_1st_us_tour_cast FROM table_24353141_1 WHERE original_tokyo___seoul_tour_cast = "Thomas Hettrick"
While the original toyko/seoul tour cast included thomas hettrick, who was in the original 1st us tour cast?
<s>[INST]While the original toyko/seoul tour cast included thomas hettrick, who was in the original 1st us tour cast? Context: CREATE TABLE table_24353141_1 (original_1st_us_tour_cast VARCHAR, original_tokyo___seoul_tour_cast VARCHAR)[/INST]SELECT original_1st_us_tour_cast FROM table_24353141_1 WHERE original_tokyo___seoul_tour_cast = "Thomas Hettrick"</s>
CREATE TABLE table_name_14 (japan VARCHAR, title VARCHAR)
SELECT japan FROM table_name_14 WHERE title = "jigsaw land: japan graffiti"
Tell me japan for jigsaw land: japan graffiti
<s>[INST]Tell me japan for jigsaw land: japan graffiti Context: CREATE TABLE table_name_14 (japan VARCHAR, title VARCHAR)[/INST]SELECT japan FROM table_name_14 WHERE title = "jigsaw land: japan graffiti"</s>
CREATE TABLE table_name_63 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_63 WHERE opponent = "daniel elsner"
What Tournament was against Daniel Elsner?
<s>[INST]What Tournament was against Daniel Elsner? Context: CREATE TABLE table_name_63 (tournament VARCHAR, opponent VARCHAR)[/INST]SELECT tournament FROM table_name_63 WHERE opponent = "daniel elsner"</s>
CREATE TABLE table_name_11 (december VARCHAR, opponent VARCHAR)
SELECT COUNT(december) FROM table_name_11 WHERE opponent = "boston bruins"
What is the day in December of the game against the Boston Bruins?
<s>[INST]What is the day in December of the game against the Boston Bruins? Context: CREATE TABLE table_name_11 (december VARCHAR, opponent VARCHAR)[/INST]SELECT COUNT(december) FROM table_name_11 WHERE opponent = "boston bruins"</s>
CREATE TABLE table_name_88 (blank_ends VARCHAR, stolen_ends VARCHAR, ends_won VARCHAR, ends_lost VARCHAR)
SELECT blank_ends FROM table_name_88 WHERE ends_won < 39 AND ends_lost > 35 AND stolen_ends = 4
What is the Blank Ends when there are less than 39 ends won and, more than 35 ends lost, and 4 stolen ends.
<s>[INST]What is the Blank Ends when there are less than 39 ends won and, more than 35 ends lost, and 4 stolen ends. Context: CREATE TABLE table_name_88 (blank_ends VARCHAR, stolen_ends VARCHAR, ends_won VARCHAR, ends_lost VARCHAR)[/INST]SELECT blank_ends FROM table_name_88 WHERE ends_won < 39 AND ends_lost > 35 AND stolen_ends = 4</s>
CREATE TABLE table_name_99 (points INTEGER, february VARCHAR, game VARCHAR, score VARCHAR)
SELECT AVG(points) FROM table_name_99 WHERE game < 60 AND score = "2–0" AND february > 1
Which Points have a Game smaller than 60, and a Score of 2–0, and a February larger than 1?
<s>[INST]Which Points have a Game smaller than 60, and a Score of 2–0, and a February larger than 1? Context: CREATE TABLE table_name_99 (points INTEGER, february VARCHAR, game VARCHAR, score VARCHAR)[/INST]SELECT AVG(points) FROM table_name_99 WHERE game < 60 AND score = "2–0" AND february > 1</s>
CREATE TABLE problem_log (problem_log_id VARCHAR, log_entry_description VARCHAR)
SELECT problem_log_id, log_entry_description FROM problem_log
List all the log ids and their descriptions from the problem logs.
<s>[INST]List all the log ids and their descriptions from the problem logs. Context: CREATE TABLE problem_log (problem_log_id VARCHAR, log_entry_description VARCHAR)[/INST]SELECT problem_log_id, log_entry_description FROM problem_log</s>
CREATE TABLE table_name_30 (opponent VARCHAR, round INTEGER)
SELECT opponent FROM table_name_30 WHERE round > 2
Who was the opponent when the round was more than 2?
<s>[INST]Who was the opponent when the round was more than 2? Context: CREATE TABLE table_name_30 (opponent VARCHAR, round INTEGER)[/INST]SELECT opponent FROM table_name_30 WHERE round > 2</s>
CREATE TABLE table_24160890_3 (conference VARCHAR, regular_season_winner VARCHAR)
SELECT conference AS Tournament FROM table_24160890_3 WHERE regular_season_winner = "Troy"
When troy is the regular season winner what is the conference tournament?
<s>[INST]When troy is the regular season winner what is the conference tournament? Context: CREATE TABLE table_24160890_3 (conference VARCHAR, regular_season_winner VARCHAR)[/INST]SELECT conference AS Tournament FROM table_24160890_3 WHERE regular_season_winner = "Troy"</s>
CREATE TABLE table_name_54 (silver VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT silver FROM table_name_54 WHERE gold > 12 AND bronze = 11
How many silver medals were won by the participant(s) that had more than 12 gold medals and 11 bronze medals?
<s>[INST]How many silver medals were won by the participant(s) that had more than 12 gold medals and 11 bronze medals? Context: CREATE TABLE table_name_54 (silver VARCHAR, gold VARCHAR, bronze VARCHAR)[/INST]SELECT silver FROM table_name_54 WHERE gold > 12 AND bronze = 11</s>
CREATE TABLE table_name_14 (year INTEGER, nominee VARCHAR, result VARCHAR)
SELECT AVG(year) FROM table_name_14 WHERE nominee = "—" AND result = "nominated"
What year has a Nominee of —, and a Result of nominated?
<s>[INST]What year has a Nominee of —, and a Result of nominated? Context: CREATE TABLE table_name_14 (year INTEGER, nominee VARCHAR, result VARCHAR)[/INST]SELECT AVG(year) FROM table_name_14 WHERE nominee = "—" AND result = "nominated"</s>
CREATE TABLE table_name_33 (failures INTEGER, orbital_regime VARCHAR, launches VARCHAR)
SELECT SUM(failures) FROM table_name_33 WHERE orbital_regime = "heliocentric orbit" AND launches < 1
What is the total failures of heliocentric orbit orbital regimes and launches less than 1?
<s>[INST]What is the total failures of heliocentric orbit orbital regimes and launches less than 1? Context: CREATE TABLE table_name_33 (failures INTEGER, orbital_regime VARCHAR, launches VARCHAR)[/INST]SELECT SUM(failures) FROM table_name_33 WHERE orbital_regime = "heliocentric orbit" AND launches < 1</s>
CREATE TABLE table_27902171_4 (date VARCHAR, team VARCHAR)
SELECT date FROM table_27902171_4 WHERE team = "Phoenix Suns"
What day did they play the phoenix suns?
<s>[INST]What day did they play the phoenix suns? Context: CREATE TABLE table_27902171_4 (date VARCHAR, team VARCHAR)[/INST]SELECT date FROM table_27902171_4 WHERE team = "Phoenix Suns"</s>
CREATE TABLE table_name_97 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_97 WHERE venue = "princes park"
What was the away team that played at Princes Park?
<s>[INST]What was the away team that played at Princes Park? Context: CREATE TABLE table_name_97 (away_team VARCHAR, venue VARCHAR)[/INST]SELECT away_team FROM table_name_97 WHERE venue = "princes park"</s>
CREATE TABLE table_name_13 (goals_against VARCHAR, goals_for VARCHAR, goal_difference VARCHAR, wins VARCHAR)
SELECT COUNT(goals_against) FROM table_name_13 WHERE goal_difference = 0 AND wins = 12 AND goals_for > 44
How many "goals against" were scored at the club that had a "goal difference" of 0, 12 wins, and more than 44 goals?
<s>[INST]How many "goals against" were scored at the club that had a "goal difference" of 0, 12 wins, and more than 44 goals? Context: CREATE TABLE table_name_13 (goals_against VARCHAR, goals_for VARCHAR, goal_difference VARCHAR, wins VARCHAR)[/INST]SELECT COUNT(goals_against) FROM table_name_13 WHERE goal_difference = 0 AND wins = 12 AND goals_for > 44</s>
CREATE TABLE table_name_7 (hdd_capacity VARCHAR, _number_fdd VARCHAR, fdd_capacity__each_ VARCHAR)
SELECT hdd_capacity FROM table_name_7 WHERE _number_fdd > 0 AND fdd_capacity__each_ = "710kb"
Tell me the HDD capacity for # FDD larger than 0 when FDD capacity is 710kb
<s>[INST]Tell me the HDD capacity for # FDD larger than 0 when FDD capacity is 710kb Context: CREATE TABLE table_name_7 (hdd_capacity VARCHAR, _number_fdd VARCHAR, fdd_capacity__each_ VARCHAR)[/INST]SELECT hdd_capacity FROM table_name_7 WHERE _number_fdd > 0 AND fdd_capacity__each_ = "710kb"</s>
CREATE TABLE table_1620397_2 (series_sorted VARCHAR, released VARCHAR)
SELECT COUNT(series_sorted) FROM table_1620397_2 WHERE released = "April 2010"
Name the total number of series sorted for when released is april 2010
<s>[INST]Name the total number of series sorted for when released is april 2010 Context: CREATE TABLE table_1620397_2 (series_sorted VARCHAR, released VARCHAR)[/INST]SELECT COUNT(series_sorted) FROM table_1620397_2 WHERE released = "April 2010"</s>
CREATE TABLE table_24224647_2 (year_premiered INTEGER, main_presenter VARCHAR)
SELECT MAX(year_premiered) FROM table_24224647_2 WHERE main_presenter = "Benjamin Castaldi"
What is the highest year premiered when Benjamin Castaldi is main presenter?
<s>[INST]What is the highest year premiered when Benjamin Castaldi is main presenter? Context: CREATE TABLE table_24224647_2 (year_premiered INTEGER, main_presenter VARCHAR)[/INST]SELECT MAX(year_premiered) FROM table_24224647_2 WHERE main_presenter = "Benjamin Castaldi"</s>
CREATE TABLE table_name_26 (Id VARCHAR)
SELECT AVG(2006) FROM table_name_26 WHERE 2010 = 417.9 AND 2011 > 426.7
What is the average 2006 value with a 2010 value of 417.9 and a 2011 value greater than 426.7?
<s>[INST]What is the average 2006 value with a 2010 value of 417.9 and a 2011 value greater than 426.7? Context: CREATE TABLE table_name_26 (Id VARCHAR)[/INST]SELECT AVG(2006) FROM table_name_26 WHERE 2010 = 417.9 AND 2011 > 426.7</s>
CREATE TABLE table_name_45 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_45 WHERE date = "1/11"
How many people attended the match on 1/11?
<s>[INST]How many people attended the match on 1/11? Context: CREATE TABLE table_name_45 (attendance VARCHAR, date VARCHAR)[/INST]SELECT attendance FROM table_name_45 WHERE date = "1/11"</s>
CREATE TABLE table_name_6 (streak VARCHAR, game VARCHAR)
SELECT streak FROM table_name_6 WHERE game = "2"
What is the streak for game 2?
<s>[INST]What is the streak for game 2? Context: CREATE TABLE table_name_6 (streak VARCHAR, game VARCHAR)[/INST]SELECT streak FROM table_name_6 WHERE game = "2"</s>
CREATE TABLE table_name_36 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_36 WHERE tie_no = "19"
On what Date is Tie no 19?
<s>[INST]On what Date is Tie no 19? Context: CREATE TABLE table_name_36 (date VARCHAR, tie_no VARCHAR)[/INST]SELECT date FROM table_name_36 WHERE tie_no = "19"</s>
CREATE TABLE table_name_11 (performance VARCHAR, season VARCHAR, place VARCHAR)
SELECT performance FROM table_name_11 WHERE season = 1999 AND place = "bydgoszcz, poland"
What was the performance length of the 1999 season in bydgoszcz, poland?
<s>[INST]What was the performance length of the 1999 season in bydgoszcz, poland? Context: CREATE TABLE table_name_11 (performance VARCHAR, season VARCHAR, place VARCHAR)[/INST]SELECT performance FROM table_name_11 WHERE season = 1999 AND place = "bydgoszcz, poland"</s>
CREATE TABLE table_name_81 (year VARCHAR, opening VARCHAR)
SELECT year FROM table_name_81 WHERE opening = "e34 nimzo-indian defence"
Which year had e34 Nimzo-Indian defence is the opening?
<s>[INST]Which year had e34 Nimzo-Indian defence is the opening? Context: CREATE TABLE table_name_81 (year VARCHAR, opening VARCHAR)[/INST]SELECT year FROM table_name_81 WHERE opening = "e34 nimzo-indian defence"</s>
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)
SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) DESC LIMIT 1
Find the name and id of the item with the highest average rating.
<s>[INST]Find the name and id of the item with the highest average rating. Context: CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)[/INST]SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) DESC LIMIT 1</s>
CREATE TABLE table_name_40 (time VARCHAR, laps VARCHAR, rider VARCHAR)
SELECT time FROM table_name_40 WHERE laps < 28 AND rider = "nicky hayden"
Which Time has Laps smaller than 28, and a Rider of nicky hayden?
<s>[INST]Which Time has Laps smaller than 28, and a Rider of nicky hayden? Context: CREATE TABLE table_name_40 (time VARCHAR, laps VARCHAR, rider VARCHAR)[/INST]SELECT time FROM table_name_40 WHERE laps < 28 AND rider = "nicky hayden"</s>
CREATE TABLE table_name_20 (premier_league INTEGER, UEfa_cup VARCHAR, fa_cup VARCHAR, total VARCHAR)
SELECT SUM(premier_league) FROM table_name_20 WHERE fa_cup = 0 AND total = 1 AND UEfa_cup > 1
How much Premier League has an FA Cup of 0, and a Total of 1, and a UEFA Cup larger than 1?
<s>[INST]How much Premier League has an FA Cup of 0, and a Total of 1, and a UEFA Cup larger than 1? Context: CREATE TABLE table_name_20 (premier_league INTEGER, UEfa_cup VARCHAR, fa_cup VARCHAR, total VARCHAR)[/INST]SELECT SUM(premier_league) FROM table_name_20 WHERE fa_cup = 0 AND total = 1 AND UEfa_cup > 1</s>
CREATE TABLE table_1342218_11 (first_elected VARCHAR, candidates VARCHAR)
SELECT first_elected FROM table_1342218_11 WHERE candidates = "William M. Wheeler (D) Unopposed"
What year was first elected william m. wheeler (d) unopposed?
<s>[INST]What year was first elected william m. wheeler (d) unopposed? Context: CREATE TABLE table_1342218_11 (first_elected VARCHAR, candidates VARCHAR)[/INST]SELECT first_elected FROM table_1342218_11 WHERE candidates = "William M. Wheeler (D) Unopposed"</s>
CREATE TABLE table_name_4 (attendance INTEGER, opponent VARCHAR, venue VARCHAR)
SELECT MAX(attendance) FROM table_name_4 WHERE opponent = "tamworth" AND venue = "home"
Name the most attendance for tamworth with home venue
<s>[INST]Name the most attendance for tamworth with home venue Context: CREATE TABLE table_name_4 (attendance INTEGER, opponent VARCHAR, venue VARCHAR)[/INST]SELECT MAX(attendance) FROM table_name_4 WHERE opponent = "tamworth" AND venue = "home"</s>
CREATE TABLE table_24463470_1 (unlock_order INTEGER, circuit VARCHAR)
SELECT MIN(unlock_order) FROM table_24463470_1 WHERE circuit = "Athens"
What is the lowest unlock order for the athens circuit?
<s>[INST]What is the lowest unlock order for the athens circuit? Context: CREATE TABLE table_24463470_1 (unlock_order INTEGER, circuit VARCHAR)[/INST]SELECT MIN(unlock_order) FROM table_24463470_1 WHERE circuit = "Athens"</s>
CREATE TABLE ship (Name VARCHAR, Tonnage VARCHAR)
SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1
What is the name of the ship with the largest tonnage?
<s>[INST]What is the name of the ship with the largest tonnage? Context: CREATE TABLE ship (Name VARCHAR, Tonnage VARCHAR)[/INST]SELECT Name FROM ship ORDER BY Tonnage DESC LIMIT 1</s>
CREATE TABLE table_1277350_1 (sunday_sōl__sun_ VARCHAR, friday_venus__venus_ VARCHAR)
SELECT sunday_sōl__sun_ FROM table_1277350_1 WHERE friday_venus__venus_ = "vernes"
what's the sunday sōl (sun) with friday venus (venus) being vernes
<s>[INST]what's the sunday sōl (sun) with friday venus (venus) being vernes Context: CREATE TABLE table_1277350_1 (sunday_sōl__sun_ VARCHAR, friday_venus__venus_ VARCHAR)[/INST]SELECT sunday_sōl__sun_ FROM table_1277350_1 WHERE friday_venus__venus_ = "vernes"</s>
CREATE TABLE table_name_9 (latitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR)
SELECT SUM(latitude) FROM table_name_9 WHERE water__sqmi_ = 0.267 AND ansi_code > 1759605
How much Latitude has a Water (sqmi) of 0.267, and an ANSI code larger than 1759605?
<s>[INST]How much Latitude has a Water (sqmi) of 0.267, and an ANSI code larger than 1759605? Context: CREATE TABLE table_name_9 (latitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR)[/INST]SELECT SUM(latitude) FROM table_name_9 WHERE water__sqmi_ = 0.267 AND ansi_code > 1759605</s>
CREATE TABLE table_name_97 (season VARCHAR, play_offs VARCHAR, pos VARCHAR)
SELECT season FROM table_name_97 WHERE play_offs = "quarter-final" AND pos = "4th"
Tell me the season for quarter-final position of 4th
<s>[INST]Tell me the season for quarter-final position of 4th Context: CREATE TABLE table_name_97 (season VARCHAR, play_offs VARCHAR, pos VARCHAR)[/INST]SELECT season FROM table_name_97 WHERE play_offs = "quarter-final" AND pos = "4th"</s>
CREATE TABLE table_name_70 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR)
SELECT transfer_fee FROM table_name_70 WHERE transfer_window = "summer" AND name = "assoumani"
What is the transfer fee of assoumani, who has a summer transfer window?
<s>[INST]What is the transfer fee of assoumani, who has a summer transfer window? Context: CREATE TABLE table_name_70 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR)[/INST]SELECT transfer_fee FROM table_name_70 WHERE transfer_window = "summer" AND name = "assoumani"</s>
CREATE TABLE table_name_95 (Id VARCHAR)
SELECT 2007 FROM table_name_95 WHERE 2008 = "sf" AND 2010 = "f"
What in 2007 has a 2008 of sf, and a 2010 of f?
<s>[INST]What in 2007 has a 2008 of sf, and a 2010 of f? Context: CREATE TABLE table_name_95 (Id VARCHAR)[/INST]SELECT 2007 FROM table_name_95 WHERE 2008 = "sf" AND 2010 = "f"</s>
CREATE TABLE table_20061872_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT year__ceremony_ FROM table_20061872_1 WHERE original_title = "Här har du ditt liv"
When was the film Här har du ditt liv used in nomination?
<s>[INST]When was the film Här har du ditt liv used in nomination? Context: CREATE TABLE table_20061872_1 (year__ceremony_ VARCHAR, original_title VARCHAR)[/INST]SELECT year__ceremony_ FROM table_20061872_1 WHERE original_title = "Här har du ditt liv"</s>
CREATE TABLE table_name_16 (winner VARCHAR, college VARCHAR)
SELECT winner FROM table_name_16 WHERE college = "kentucky"
What is Winner, when College is "Kentucky"?
<s>[INST]What is Winner, when College is "Kentucky"? Context: CREATE TABLE table_name_16 (winner VARCHAR, college VARCHAR)[/INST]SELECT winner FROM table_name_16 WHERE college = "kentucky"</s>
CREATE TABLE table_224616_1 (location_of_venue VARCHAR, venue VARCHAR)
SELECT location_of_venue FROM table_224616_1 WHERE venue = "Bellerive country Club"
Where is the Bellerive Country Club venue located?
<s>[INST]Where is the Bellerive Country Club venue located? Context: CREATE TABLE table_224616_1 (location_of_venue VARCHAR, venue VARCHAR)[/INST]SELECT location_of_venue FROM table_224616_1 WHERE venue = "Bellerive country Club"</s>
CREATE TABLE table_name_66 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_66 WHERE result = "w20-0"
On which date was the result w20-0?
<s>[INST]On which date was the result w20-0? Context: CREATE TABLE table_name_66 (date VARCHAR, result VARCHAR)[/INST]SELECT date FROM table_name_66 WHERE result = "w20-0"</s>
CREATE TABLE table_15467476_3 (points_difference VARCHAR, tries_for VARCHAR)
SELECT COUNT(points_difference) FROM table_15467476_3 WHERE tries_for = "21"
How many teams have 21 tries for?
<s>[INST]How many teams have 21 tries for? Context: CREATE TABLE table_15467476_3 (points_difference VARCHAR, tries_for VARCHAR)[/INST]SELECT COUNT(points_difference) FROM table_15467476_3 WHERE tries_for = "21"</s>
CREATE TABLE table_197286_4 (further_cities VARCHAR, direction VARCHAR, country VARCHAR)
SELECT further_cities FROM table_197286_4 WHERE direction = "East" AND country = "Romania"
Name the further cities for east romania
<s>[INST]Name the further cities for east romania Context: CREATE TABLE table_197286_4 (further_cities VARCHAR, direction VARCHAR, country VARCHAR)[/INST]SELECT further_cities FROM table_197286_4 WHERE direction = "East" AND country = "Romania"</s>
CREATE TABLE table_name_50 (perth VARCHAR, auckland VARCHAR, gold_coast VARCHAR)
SELECT perth FROM table_name_50 WHERE auckland = "yes" AND gold_coast = "yes"
Which Perth has Auckland yes and Gold Coast yes?
<s>[INST]Which Perth has Auckland yes and Gold Coast yes? Context: CREATE TABLE table_name_50 (perth VARCHAR, auckland VARCHAR, gold_coast VARCHAR)[/INST]SELECT perth FROM table_name_50 WHERE auckland = "yes" AND gold_coast = "yes"</s>
CREATE TABLE table_name_65 (lineup VARCHAR, competition VARCHAR, match VARCHAR)
SELECT lineup FROM table_name_65 WHERE competition = "group stage" AND match = "12"
What was the lineup for match 12 that had a competition of Group Stage?
<s>[INST]What was the lineup for match 12 that had a competition of Group Stage? Context: CREATE TABLE table_name_65 (lineup VARCHAR, competition VARCHAR, match VARCHAR)[/INST]SELECT lineup FROM table_name_65 WHERE competition = "group stage" AND match = "12"</s>
CREATE TABLE table_name_45 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_45 WHERE score = 66 - 72 - 70 = 207
Which country was the player from who scored 66-72-70=207?
<s>[INST]Which country was the player from who scored 66-72-70=207? Context: CREATE TABLE table_name_45 (country VARCHAR, score VARCHAR)[/INST]SELECT country FROM table_name_45 WHERE score = 66 - 72 - 70 = 207</s>
CREATE TABLE Employees (role_code VARCHAR, employee_name VARCHAR); CREATE TABLE ROLES (role_name VARCHAR, role_description VARCHAR, role_code VARCHAR)
SELECT T2.role_name, T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = "Ebba"
What is the role name and role description for employee called Ebba?
<s>[INST]What is the role name and role description for employee called Ebba? Context: CREATE TABLE Employees (role_code VARCHAR, employee_name VARCHAR); CREATE TABLE ROLES (role_name VARCHAR, role_description VARCHAR, role_code VARCHAR)[/INST]SELECT T2.role_name, T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = "Ebba"</s>
CREATE TABLE table_name_96 (cuts_made INTEGER, wins VARCHAR, top_5 VARCHAR)
SELECT AVG(cuts_made) FROM table_name_96 WHERE wins = 2 AND top_5 < 7
How many vuts made for a player with 2 wins and under 7 top 5s?
<s>[INST]How many vuts made for a player with 2 wins and under 7 top 5s? Context: CREATE TABLE table_name_96 (cuts_made INTEGER, wins VARCHAR, top_5 VARCHAR)[/INST]SELECT AVG(cuts_made) FROM table_name_96 WHERE wins = 2 AND top_5 < 7</s>
CREATE TABLE table_name_5 (rank INTEGER, name VARCHAR, appearances VARCHAR)
SELECT SUM(rank) FROM table_name_5 WHERE name = "fernando cavenaghi" AND appearances < 7
What was the sum of ranks of those called Fernando Cavenaghi who appeared less than 7.
<s>[INST]What was the sum of ranks of those called Fernando Cavenaghi who appeared less than 7. Context: CREATE TABLE table_name_5 (rank INTEGER, name VARCHAR, appearances VARCHAR)[/INST]SELECT SUM(rank) FROM table_name_5 WHERE name = "fernando cavenaghi" AND appearances < 7</s>
CREATE TABLE table_name_98 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_98 WHERE result = "0-3"
Which Opponent has a Result of 0-3?
<s>[INST]Which Opponent has a Result of 0-3? Context: CREATE TABLE table_name_98 (opponent VARCHAR, result VARCHAR)[/INST]SELECT opponent FROM table_name_98 WHERE result = "0-3"</s>
CREATE TABLE table_name_54 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_54 WHERE home_team = "manchester united"
Who was the away team when the home team Manchester United played?
<s>[INST]Who was the away team when the home team Manchester United played? Context: CREATE TABLE table_name_54 (away_team VARCHAR, home_team VARCHAR)[/INST]SELECT away_team FROM table_name_54 WHERE home_team = "manchester united"</s>
CREATE TABLE table_name_18 (round INTEGER, opponent VARCHAR)
SELECT AVG(round) FROM table_name_18 WHERE opponent = "kevin manderson"
What is the average round of the match with kevin manderson as the opponent?
<s>[INST]What is the average round of the match with kevin manderson as the opponent? Context: CREATE TABLE table_name_18 (round INTEGER, opponent VARCHAR)[/INST]SELECT AVG(round) FROM table_name_18 WHERE opponent = "kevin manderson"</s>
CREATE TABLE table_24620684_2 (us_national_average_electric_mix VARCHAR, dirty_electric_grid_rocky_mountains__denver_ VARCHAR)
SELECT us_national_average_electric_mix FROM table_24620684_2 WHERE dirty_electric_grid_rocky_mountains__denver_ = "380 g/mi (236 g/km)"
When 380 g/mi (236 g/km) is the dirty electric grid rocky mountains (denver) what is the u.s national average electric mix?
<s>[INST]When 380 g/mi (236 g/km) is the dirty electric grid rocky mountains (denver) what is the u.s national average electric mix? Context: CREATE TABLE table_24620684_2 (us_national_average_electric_mix VARCHAR, dirty_electric_grid_rocky_mountains__denver_ VARCHAR)[/INST]SELECT us_national_average_electric_mix FROM table_24620684_2 WHERE dirty_electric_grid_rocky_mountains__denver_ = "380 g/mi (236 g/km)"</s>
CREATE TABLE table_name_84 (rank INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT SUM(rank) FROM table_name_84 WHERE nation = "hungary (hun)" AND bronze < 0
What is the total rank of Hungary (HUN) when the bronze medals were less than 0?
<s>[INST]What is the total rank of Hungary (HUN) when the bronze medals were less than 0? Context: CREATE TABLE table_name_84 (rank INTEGER, nation VARCHAR, bronze VARCHAR)[/INST]SELECT SUM(rank) FROM table_name_84 WHERE nation = "hungary (hun)" AND bronze < 0</s>
CREATE TABLE table_name_99 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_99 WHERE home = "deportes savio"
What is the Score when Deportes Savio is the Home team?
<s>[INST]What is the Score when Deportes Savio is the Home team? Context: CREATE TABLE table_name_99 (score VARCHAR, home VARCHAR)[/INST]SELECT score FROM table_name_99 WHERE home = "deportes savio"</s>
CREATE TABLE table_name_74 (score VARCHAR, event VARCHAR)
SELECT score FROM table_name_74 WHERE event = "constructionjobs.com classic"
Which Score has an Event of constructionjobs.com classic?
<s>[INST]Which Score has an Event of constructionjobs.com classic? Context: CREATE TABLE table_name_74 (score VARCHAR, event VARCHAR)[/INST]SELECT score FROM table_name_74 WHERE event = "constructionjobs.com classic"</s>
CREATE TABLE table_24334163_1 (Winners INTEGER, total_money_won VARCHAR)
SELECT MAX(Winners) AS group_legs_won FROM table_24334163_1 WHERE total_money_won = "£21,850"
What is the highest amount of group legs won when the prize money was £21,850?
<s>[INST]What is the highest amount of group legs won when the prize money was £21,850? Context: CREATE TABLE table_24334163_1 (Winners INTEGER, total_money_won VARCHAR)[/INST]SELECT MAX(Winners) AS group_legs_won FROM table_24334163_1 WHERE total_money_won = "£21,850"</s>
CREATE TABLE table_23308178_6 (location VARCHAR, record VARCHAR)
SELECT location FROM table_23308178_6 WHERE record = "20-6-6"
Where was the game played when the record was 20-6-6?
<s>[INST]Where was the game played when the record was 20-6-6? Context: CREATE TABLE table_23308178_6 (location VARCHAR, record VARCHAR)[/INST]SELECT location FROM table_23308178_6 WHERE record = "20-6-6"</s>
CREATE TABLE table_name_92 (place VARCHAR, to_par VARCHAR)
SELECT place FROM table_name_92 WHERE to_par = "–4"
What Place has a To par of –4?
<s>[INST]What Place has a To par of –4? Context: CREATE TABLE table_name_92 (place VARCHAR, to_par VARCHAR)[/INST]SELECT place FROM table_name_92 WHERE to_par = "–4"</s>
CREATE TABLE table_name_46 (country VARCHAR, place VARCHAR)
SELECT country FROM table_name_46 WHERE place = "1"
What is the Country, when Place is "1"?
<s>[INST]What is the Country, when Place is "1"? Context: CREATE TABLE table_name_46 (country VARCHAR, place VARCHAR)[/INST]SELECT country FROM table_name_46 WHERE place = "1"</s>
CREATE TABLE table_name_37 (company VARCHAR, incorporated_in VARCHAR, type VARCHAR, principal_activities VARCHAR)
SELECT company FROM table_name_37 WHERE type = "joint venture" AND principal_activities = "cargo airline" AND incorporated_in = "china"
Which company's type is joint venture, and has principle activities listed as Cargo Airline and an incorporation of China?
<s>[INST]Which company's type is joint venture, and has principle activities listed as Cargo Airline and an incorporation of China? Context: CREATE TABLE table_name_37 (company VARCHAR, incorporated_in VARCHAR, type VARCHAR, principal_activities VARCHAR)[/INST]SELECT company FROM table_name_37 WHERE type = "joint venture" AND principal_activities = "cargo airline" AND incorporated_in = "china"</s>
CREATE TABLE table_name_80 (points INTEGER, against VARCHAR, played VARCHAR)
SELECT MIN(points) FROM table_name_80 WHERE against = 50 AND played < 20
What is the lowest Points when against is 50, and there are less than 20 played?
<s>[INST]What is the lowest Points when against is 50, and there are less than 20 played? Context: CREATE TABLE table_name_80 (points INTEGER, against VARCHAR, played VARCHAR)[/INST]SELECT MIN(points) FROM table_name_80 WHERE against = 50 AND played < 20</s>
CREATE TABLE table_14345690_3 (exited VARCHAR, finished VARCHAR)
SELECT COUNT(exited) FROM table_14345690_3 WHERE finished = "9th"
How many people finished 9th?
<s>[INST]How many people finished 9th? Context: CREATE TABLE table_14345690_3 (exited VARCHAR, finished VARCHAR)[/INST]SELECT COUNT(exited) FROM table_14345690_3 WHERE finished = "9th"</s>
CREATE TABLE table_name_21 (category VARCHAR, year INTEGER)
SELECT category FROM table_name_21 WHERE year < 2012
What is a category before 2012?
<s>[INST]What is a category before 2012? Context: CREATE TABLE table_name_21 (category VARCHAR, year INTEGER)[/INST]SELECT category FROM table_name_21 WHERE year < 2012</s>
CREATE TABLE table_name_86 (drawn INTEGER, points VARCHAR, lost VARCHAR)
SELECT MIN(drawn) FROM table_name_86 WHERE points = 2 AND lost < 6
What is the fewest drawn matches for teams with 2 points and fewer than 6 losses?
<s>[INST]What is the fewest drawn matches for teams with 2 points and fewer than 6 losses? Context: CREATE TABLE table_name_86 (drawn INTEGER, points VARCHAR, lost VARCHAR)[/INST]SELECT MIN(drawn) FROM table_name_86 WHERE points = 2 AND lost < 6</s>
CREATE TABLE table_16677738_1 (gore_hundred INTEGER, spelthorne_hundred VARCHAR)
SELECT MAX(gore_hundred) FROM table_16677738_1 WHERE spelthorne_hundred = 12743
When 12743 is the spelthorne what is the largest gore hundred?
<s>[INST]When 12743 is the spelthorne what is the largest gore hundred? Context: CREATE TABLE table_16677738_1 (gore_hundred INTEGER, spelthorne_hundred VARCHAR)[/INST]SELECT MAX(gore_hundred) FROM table_16677738_1 WHERE spelthorne_hundred = 12743</s>
CREATE TABLE table_290017_1 (subdivision_name___ru____gost_ VARCHAR, subdivision_name___be____bgn_pcgn_ VARCHAR)
SELECT subdivision_name___ru____gost_ FROM table_290017_1 WHERE subdivision_name___be____bgn_pcgn_ = "Hrodzenskaya voblasts'"
What are the subdivision names (RU) where the subdivision name (BE) is Hrodzenskaya Voblasts'?
<s>[INST]What are the subdivision names (RU) where the subdivision name (BE) is Hrodzenskaya Voblasts'? Context: CREATE TABLE table_290017_1 (subdivision_name___ru____gost_ VARCHAR, subdivision_name___be____bgn_pcgn_ VARCHAR)[/INST]SELECT subdivision_name___ru____gost_ FROM table_290017_1 WHERE subdivision_name___be____bgn_pcgn_ = "Hrodzenskaya voblasts'"</s>
CREATE TABLE table_name_25 (long INTEGER, yards VARCHAR, avg VARCHAR, rec VARCHAR)
SELECT SUM(long) FROM table_name_25 WHERE avg > 9.8 AND rec < 5 AND yards < 20
Name the sum of long for avg more than 9.8 with rec less than 5 and yards less than 20
<s>[INST]Name the sum of long for avg more than 9.8 with rec less than 5 and yards less than 20 Context: CREATE TABLE table_name_25 (long INTEGER, yards VARCHAR, avg VARCHAR, rec VARCHAR)[/INST]SELECT SUM(long) FROM table_name_25 WHERE avg > 9.8 AND rec < 5 AND yards < 20</s>
CREATE TABLE table_299121_2 (season VARCHAR)
SELECT season AS premiere FROM table_299121_2 WHERE season = "3rd"
When was the 3rd season premiere originally aired?
<s>[INST]When was the 3rd season premiere originally aired? Context: CREATE TABLE table_299121_2 (season VARCHAR)[/INST]SELECT season AS premiere FROM table_299121_2 WHERE season = "3rd"</s>
CREATE TABLE table_name_23 (launched VARCHAR, commissioned VARCHAR)
SELECT launched FROM table_name_23 WHERE commissioned = "august 31, 1964"
Tell me the launched for august 31, 1964
<s>[INST]Tell me the launched for august 31, 1964 Context: CREATE TABLE table_name_23 (launched VARCHAR, commissioned VARCHAR)[/INST]SELECT launched FROM table_name_23 WHERE commissioned = "august 31, 1964"</s>
CREATE TABLE table_name_3 (date VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_3 WHERE catalog = "alca-275"
On what date was the record with catalog ALCA-275 released?
<s>[INST]On what date was the record with catalog ALCA-275 released? Context: CREATE TABLE table_name_3 (date VARCHAR, catalog VARCHAR)[/INST]SELECT date FROM table_name_3 WHERE catalog = "alca-275"</s>
CREATE TABLE table_name_73 (points INTEGER, game VARCHAR, record VARCHAR)
SELECT SUM(points) FROM table_name_73 WHERE game < 8 AND record = "1–0–0"
Which Points have a Game smaller than 8, and a Record of 1–0–0?
<s>[INST]Which Points have a Game smaller than 8, and a Record of 1–0–0? Context: CREATE TABLE table_name_73 (points INTEGER, game VARCHAR, record VARCHAR)[/INST]SELECT SUM(points) FROM table_name_73 WHERE game < 8 AND record = "1–0–0"</s>
CREATE TABLE table_name_65 (season VARCHAR, losses VARCHAR)
SELECT season FROM table_name_65 WHERE losses = "30"
Which season has Losses of 30?
<s>[INST]Which season has Losses of 30? Context: CREATE TABLE table_name_65 (season VARCHAR, losses VARCHAR)[/INST]SELECT season FROM table_name_65 WHERE losses = "30"</s>
CREATE TABLE table_22167196_1 (dfb_pokal VARCHAR, player VARCHAR)
SELECT COUNT(dfb_pokal) FROM table_22167196_1 WHERE player = "Kevin-Prince Boateng"
How many dfb-pokal did kevin-prince boateng have?
<s>[INST]How many dfb-pokal did kevin-prince boateng have? Context: CREATE TABLE table_22167196_1 (dfb_pokal VARCHAR, player VARCHAR)[/INST]SELECT COUNT(dfb_pokal) FROM table_22167196_1 WHERE player = "Kevin-Prince Boateng"</s>
CREATE TABLE table_name_94 (weeks_on_top INTEGER, issue_date_s_ VARCHAR)
SELECT SUM(weeks_on_top) FROM table_name_94 WHERE issue_date_s_ = "20 november"
Which Weeks on Top have an Issue Date(s) of 20 november?
<s>[INST]Which Weeks on Top have an Issue Date(s) of 20 november? Context: CREATE TABLE table_name_94 (weeks_on_top INTEGER, issue_date_s_ VARCHAR)[/INST]SELECT SUM(weeks_on_top) FROM table_name_94 WHERE issue_date_s_ = "20 november"</s>
CREATE TABLE table_name_63 (title VARCHAR, start_of_reign VARCHAR)
SELECT title FROM table_name_63 WHERE start_of_reign = 1999
What is the title of the person who started their reign in 1999?
<s>[INST]What is the title of the person who started their reign in 1999? Context: CREATE TABLE table_name_63 (title VARCHAR, start_of_reign VARCHAR)[/INST]SELECT title FROM table_name_63 WHERE start_of_reign = 1999</s>
CREATE TABLE table_name_43 (qual VARCHAR, rank VARCHAR, grid VARCHAR)
SELECT qual FROM table_name_43 WHERE rank > 28 AND grid > 23
Which qual has rank of more than 28 and a grid number that is bigger than 23?
<s>[INST]Which qual has rank of more than 28 and a grid number that is bigger than 23? Context: CREATE TABLE table_name_43 (qual VARCHAR, rank VARCHAR, grid VARCHAR)[/INST]SELECT qual FROM table_name_43 WHERE rank > 28 AND grid > 23</s>
CREATE TABLE table_name_77 (surface VARCHAR, score_in_the_final VARCHAR)
SELECT surface FROM table_name_77 WHERE score_in_the_final = "4–6, 3–6"
Which surface has a score in the final of 4–6, 3–6?
<s>[INST]Which surface has a score in the final of 4–6, 3–6? Context: CREATE TABLE table_name_77 (surface VARCHAR, score_in_the_final VARCHAR)[/INST]SELECT surface FROM table_name_77 WHERE score_in_the_final = "4–6, 3–6"</s>
CREATE TABLE table_name_22 (bronze INTEGER, total VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT SUM(bronze) FROM table_name_22 WHERE silver = 0 AND gold = 0 AND nation = "denmark" AND total > 1
How many Bronzes that has a Silver of 0, and a Gold of 0, and a Nation of denmark, and a Total larger than 1?
<s>[INST]How many Bronzes that has a Silver of 0, and a Gold of 0, and a Nation of denmark, and a Total larger than 1? Context: CREATE TABLE table_name_22 (bronze INTEGER, total VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR)[/INST]SELECT SUM(bronze) FROM table_name_22 WHERE silver = 0 AND gold = 0 AND nation = "denmark" AND total > 1</s>
CREATE TABLE table_18626383_2 (height__cm_ VARCHAR, contestant VARCHAR)
SELECT COUNT(height__cm_) FROM table_18626383_2 WHERE contestant = "Valora Roucek"
When valora roucek is the contestant how many heights in centimeters are there?
<s>[INST]When valora roucek is the contestant how many heights in centimeters are there? Context: CREATE TABLE table_18626383_2 (height__cm_ VARCHAR, contestant VARCHAR)[/INST]SELECT COUNT(height__cm_) FROM table_18626383_2 WHERE contestant = "Valora Roucek"</s>
CREATE TABLE table_name_13 (date_of_birth VARCHAR, position_s_ VARCHAR, seasons VARCHAR)
SELECT date_of_birth FROM table_name_13 WHERE position_s_ = "goalkeeper" AND seasons = "1st"
What is the date of birth of the goalkeeper from the 1st season?
<s>[INST]What is the date of birth of the goalkeeper from the 1st season? Context: CREATE TABLE table_name_13 (date_of_birth VARCHAR, position_s_ VARCHAR, seasons VARCHAR)[/INST]SELECT date_of_birth FROM table_name_13 WHERE position_s_ = "goalkeeper" AND seasons = "1st"</s>
CREATE TABLE table_name_62 (runner_up INTEGER, university VARCHAR, total_championships VARCHAR)
SELECT AVG(runner_up) FROM table_name_62 WHERE university = "national university" AND total_championships > 2
What is the average number of runner-up that National University, which has more than 2 total championships, has?
<s>[INST]What is the average number of runner-up that National University, which has more than 2 total championships, has? Context: CREATE TABLE table_name_62 (runner_up INTEGER, university VARCHAR, total_championships VARCHAR)[/INST]SELECT AVG(runner_up) FROM table_name_62 WHERE university = "national university" AND total_championships > 2</s>
CREATE TABLE table_13762472_5 (high_points VARCHAR, record VARCHAR)
SELECT high_points FROM table_13762472_5 WHERE record = "24-17"
Who had the high point total when the team was 24-17?
<s>[INST]Who had the high point total when the team was 24-17? Context: CREATE TABLE table_13762472_5 (high_points VARCHAR, record VARCHAR)[/INST]SELECT high_points FROM table_13762472_5 WHERE record = "24-17"</s>
CREATE TABLE table_name_15 (home_port VARCHAR, ship VARCHAR)
SELECT home_port FROM table_name_15 WHERE ship = "kansas city"
Name the home port for kansas city
<s>[INST]Name the home port for kansas city Context: CREATE TABLE table_name_15 (home_port VARCHAR, ship VARCHAR)[/INST]SELECT home_port FROM table_name_15 WHERE ship = "kansas city"</s>
CREATE TABLE table_name_4 (lost INTEGER, drawn VARCHAR, position VARCHAR, points VARCHAR)
SELECT MIN(lost) FROM table_name_4 WHERE position > 2 AND points = 4 AND drawn > 2
What is the smallest number of losses for a position greater than 2 with 4 points and more than 2 draws?
<s>[INST]What is the smallest number of losses for a position greater than 2 with 4 points and more than 2 draws? Context: CREATE TABLE table_name_4 (lost INTEGER, drawn VARCHAR, position VARCHAR, points VARCHAR)[/INST]SELECT MIN(lost) FROM table_name_4 WHERE position > 2 AND points = 4 AND drawn > 2</s>
CREATE TABLE table_name_16 (res VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_16 WHERE round < 3 AND opponent = "gil rael"
What was the result when there were less than 3 rounds against Gil Rael?
<s>[INST]What was the result when there were less than 3 rounds against Gil Rael? Context: CREATE TABLE table_name_16 (res VARCHAR, round VARCHAR, opponent VARCHAR)[/INST]SELECT res FROM table_name_16 WHERE round < 3 AND opponent = "gil rael"</s>
CREATE TABLE table_name_49 (result VARCHAR, competition VARCHAR)
SELECT result FROM table_name_49 WHERE competition = "2006 world cup qualification"
what is the result of the competition in 2006 world cup qualification?
<s>[INST]what is the result of the competition in 2006 world cup qualification? Context: CREATE TABLE table_name_49 (result VARCHAR, competition VARCHAR)[/INST]SELECT result FROM table_name_49 WHERE competition = "2006 world cup qualification"</s>
CREATE TABLE table_name_4 (floors INTEGER, completed VARCHAR, rank VARCHAR)
SELECT MIN(floors) FROM table_name_4 WHERE completed < 1970 AND rank > 14
What is the lowest amount of floors in the building completed before 1970 ranked more than 14?
<s>[INST]What is the lowest amount of floors in the building completed before 1970 ranked more than 14? Context: CREATE TABLE table_name_4 (floors INTEGER, completed VARCHAR, rank VARCHAR)[/INST]SELECT MIN(floors) FROM table_name_4 WHERE completed < 1970 AND rank > 14</s>
CREATE TABLE table_name_58 (safari VARCHAR, period VARCHAR)
SELECT safari FROM table_name_58 WHERE period = "2012 q4"
What safari has 2012 q4 as the period?
<s>[INST]What safari has 2012 q4 as the period? Context: CREATE TABLE table_name_58 (safari VARCHAR, period VARCHAR)[/INST]SELECT safari FROM table_name_58 WHERE period = "2012 q4"</s>
CREATE TABLE table_name_23 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_23 WHERE date = "september 30, 1990"
Who was the opponent team on September 30, 1990?
<s>[INST]Who was the opponent team on September 30, 1990? Context: CREATE TABLE table_name_23 (opponent VARCHAR, date VARCHAR)[/INST]SELECT opponent FROM table_name_23 WHERE date = "september 30, 1990"</s>
CREATE TABLE table_17319931_1 (laps INTEGER, driver VARCHAR)
SELECT MAX(laps) FROM table_17319931_1 WHERE driver = "Darren Manning"
What is the highest number of laps for Darren Manning?
<s>[INST]What is the highest number of laps for Darren Manning? Context: CREATE TABLE table_17319931_1 (laps INTEGER, driver VARCHAR)[/INST]SELECT MAX(laps) FROM table_17319931_1 WHERE driver = "Darren Manning"</s>
CREATE TABLE table_name_7 (place VARCHAR, artist VARCHAR, draw VARCHAR, points VARCHAR)
SELECT place FROM table_name_7 WHERE draw > 2 AND points < 139 AND artist = "midnight band"
In what place is the artist Midnight Band with a draw larger than 2 and less than 139 points.
<s>[INST]In what place is the artist Midnight Band with a draw larger than 2 and less than 139 points. Context: CREATE TABLE table_name_7 (place VARCHAR, artist VARCHAR, draw VARCHAR, points VARCHAR)[/INST]SELECT place FROM table_name_7 WHERE draw > 2 AND points < 139 AND artist = "midnight band"</s>
CREATE TABLE table_18424435_3 (directed_by VARCHAR, us_air_date VARCHAR)
SELECT directed_by FROM table_18424435_3 WHERE us_air_date = "February 27, 2009"
Who directed the episode aired on February 27, 2009?
<s>[INST]Who directed the episode aired on February 27, 2009? Context: CREATE TABLE table_18424435_3 (directed_by VARCHAR, us_air_date VARCHAR)[/INST]SELECT directed_by FROM table_18424435_3 WHERE us_air_date = "February 27, 2009"</s>
CREATE TABLE assignedto (project VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR, hours INTEGER)
SELECT COUNT(*), T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name
Find the number of scientists involved for the projects that require more than 300 hours.
<s>[INST]Find the number of scientists involved for the projects that require more than 300 hours. Context: CREATE TABLE assignedto (project VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR, hours INTEGER)[/INST]SELECT COUNT(*), T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name</s>
CREATE TABLE table_name_4 (opponent VARCHAR, score VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_4 WHERE score = "9 - 6" AND attendance > 31 OFFSET 293
Who was the opponent of the game that 31,293 people attended that had a final score of 9 - 6.
<s>[INST]Who was the opponent of the game that 31,293 people attended that had a final score of 9 - 6. Context: CREATE TABLE table_name_4 (opponent VARCHAR, score VARCHAR, attendance VARCHAR)[/INST]SELECT opponent FROM table_name_4 WHERE score = "9 - 6" AND attendance > 31 OFFSET 293</s>
CREATE TABLE table_name_10 (round INTEGER, position VARCHAR, overall VARCHAR)
SELECT SUM(round) FROM table_name_10 WHERE position = "ls" AND overall > 230
What was the sum of the rounds for the player who had a position of LS and an overall draft pick bigger than 230?
<s>[INST]What was the sum of the rounds for the player who had a position of LS and an overall draft pick bigger than 230? Context: CREATE TABLE table_name_10 (round INTEGER, position VARCHAR, overall VARCHAR)[/INST]SELECT SUM(round) FROM table_name_10 WHERE position = "ls" AND overall > 230</s>
CREATE TABLE table_name_93 (races INTEGER, pole VARCHAR, season VARCHAR, flaps VARCHAR, podiums VARCHAR)
SELECT SUM(races) FROM table_name_93 WHERE flaps = 0 AND podiums > 0 AND season = "2008" AND pole < 1
WHAT ARE THE RACES WHEN FLAPS ARE ZERO, PODIUMS ARE LARGER THAN 0, SEASON IS 2008, AND POLE SMALLER THAN 1?
<s>[INST]WHAT ARE THE RACES WHEN FLAPS ARE ZERO, PODIUMS ARE LARGER THAN 0, SEASON IS 2008, AND POLE SMALLER THAN 1? Context: CREATE TABLE table_name_93 (races INTEGER, pole VARCHAR, season VARCHAR, flaps VARCHAR, podiums VARCHAR)[/INST]SELECT SUM(races) FROM table_name_93 WHERE flaps = 0 AND podiums > 0 AND season = "2008" AND pole < 1</s>
CREATE TABLE table_name_5 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_5 WHERE home_team = "hawthorn"
What was the away teams score when Hawthorn played as the home team?
<s>[INST]What was the away teams score when Hawthorn played as the home team? Context: CREATE TABLE table_name_5 (away_team VARCHAR, home_team VARCHAR)[/INST]SELECT away_team AS score FROM table_name_5 WHERE home_team = "hawthorn"</s>