context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_42 (points INTEGER, year VARCHAR, class VARCHAR)
SELECT SUM(points) FROM table_name_42 WHERE year > 1959 AND class = "250cc"
What is the sum of Points, when Year is after 1959, and when Class is 250cc?
<s>[INST]What is the sum of Points, when Year is after 1959, and when Class is 250cc? Context: CREATE TABLE table_name_42 (points INTEGER, year VARCHAR, class VARCHAR)[/INST]SELECT SUM(points) FROM table_name_42 WHERE year > 1959 AND class = "250cc"</s>
CREATE TABLE table_name_88 (year INTEGER, points VARCHAR, entrant VARCHAR)
SELECT MIN(year) FROM table_name_88 WHERE points = "0" AND entrant = "scuderia ferrari"
What was the earliest year that Scuderia Ferrari was an entrant with 0 points?
<s>[INST]What was the earliest year that Scuderia Ferrari was an entrant with 0 points? Context: CREATE TABLE table_name_88 (year INTEGER, points VARCHAR, entrant VARCHAR)[/INST]SELECT MIN(year) FROM table_name_88 WHERE points = "0" AND entrant = "scuderia ferrari"</s>
CREATE TABLE table_name_75 (rank INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT MIN(rank) FROM table_name_75 WHERE bronze > 1 AND gold < 4
What is the rank of the nation that has more than 1 Bronze medals and fewer than 4 Gold medals?
<s>[INST]What is the rank of the nation that has more than 1 Bronze medals and fewer than 4 Gold medals? Context: CREATE TABLE table_name_75 (rank INTEGER, bronze VARCHAR, gold VARCHAR)[/INST]SELECT MIN(rank) FROM table_name_75 WHERE bronze > 1 AND gold < 4</s>
CREATE TABLE table_name_10 (week_5 VARCHAR, week_1 VARCHAR)
SELECT week_5 FROM table_name_10 WHERE week_1 = "mysti sherwood"
What Week 5 has a Week 1 of mysti sherwood?
<s>[INST]What Week 5 has a Week 1 of mysti sherwood? Context: CREATE TABLE table_name_10 (week_5 VARCHAR, week_1 VARCHAR)[/INST]SELECT week_5 FROM table_name_10 WHERE week_1 = "mysti sherwood"</s>
CREATE TABLE table_name_80 (league_goals INTEGER, fa_cup_apps VARCHAR, total_goals VARCHAR)
SELECT AVG(league_goals) FROM table_name_80 WHERE fa_cup_apps = "2" AND total_goals < 0
Which League Goals have FA Cup Apps of 2, and Total Goals smaller than 0?
<s>[INST]Which League Goals have FA Cup Apps of 2, and Total Goals smaller than 0? Context: CREATE TABLE table_name_80 (league_goals INTEGER, fa_cup_apps VARCHAR, total_goals VARCHAR)[/INST]SELECT AVG(league_goals) FROM table_name_80 WHERE fa_cup_apps = "2" AND total_goals < 0</s>
CREATE TABLE table_name_59 (winner VARCHAR, series VARCHAR)
SELECT winner FROM table_name_59 WHERE series = "atcc round 6"
WHAT IS THE WINNER WITH ATCC ROUND 6?
<s>[INST]WHAT IS THE WINNER WITH ATCC ROUND 6? Context: CREATE TABLE table_name_59 (winner VARCHAR, series VARCHAR)[/INST]SELECT winner FROM table_name_59 WHERE series = "atcc round 6"</s>
CREATE TABLE table_name_66 (points_won INTEGER, total_matches VARCHAR, total_w_l_h VARCHAR)
SELECT MIN(points_won) FROM table_name_66 WHERE total_matches = 4 AND total_w_l_h = "4-0-0"
Can you tell me the lowest Points won that has the Total matches of 4, and the Total W-L-H of 4-0-0?
<s>[INST]Can you tell me the lowest Points won that has the Total matches of 4, and the Total W-L-H of 4-0-0? Context: CREATE TABLE table_name_66 (points_won INTEGER, total_matches VARCHAR, total_w_l_h VARCHAR)[/INST]SELECT MIN(points_won) FROM table_name_66 WHERE total_matches = 4 AND total_w_l_h = "4-0-0"</s>
CREATE TABLE table_name_38 (tournament VARCHAR)
SELECT tournament FROM table_name_38 WHERE 2011 = "nh"
Which Tournament was played in NH in 2011?
<s>[INST]Which Tournament was played in NH in 2011? Context: CREATE TABLE table_name_38 (tournament VARCHAR)[/INST]SELECT tournament FROM table_name_38 WHERE 2011 = "nh"</s>
CREATE TABLE table_11622896_1 (location VARCHAR)
SELECT MAX(1 AS st_prize__) AS $__ FROM table_11622896_1 WHERE location = "South Carolina"
What is the largest 1st prize( $ ) at the South Carolina location?
<s>[INST]What is the largest 1st prize( $ ) at the South Carolina location? Context: CREATE TABLE table_11622896_1 (location VARCHAR)[/INST]SELECT MAX(1 AS st_prize__) AS $__ FROM table_11622896_1 WHERE location = "South Carolina"</s>
CREATE TABLE table_2668243_17 (result VARCHAR, candidates VARCHAR)
SELECT result FROM table_2668243_17 WHERE candidates = "James Lent (J) 52.3% Silas Wood (AJ) 47.7%"
Name the result for james lent (j) 52.3% silas wood (aj) 47.7%
<s>[INST]Name the result for james lent (j) 52.3% silas wood (aj) 47.7% Context: CREATE TABLE table_2668243_17 (result VARCHAR, candidates VARCHAR)[/INST]SELECT result FROM table_2668243_17 WHERE candidates = "James Lent (J) 52.3% Silas Wood (AJ) 47.7%"</s>
CREATE TABLE table_name_36 (secr_numbers VARCHAR, class VARCHAR)
SELECT secr_numbers FROM table_name_36 WHERE class = "b1"
Which SECR numbers have a class of b1?
<s>[INST]Which SECR numbers have a class of b1? Context: CREATE TABLE table_name_36 (secr_numbers VARCHAR, class VARCHAR)[/INST]SELECT secr_numbers FROM table_name_36 WHERE class = "b1"</s>
CREATE TABLE program (name VARCHAR, launch VARCHAR)
SELECT name FROM program ORDER BY launch
list all the names of programs, ordering by launch time.
<s>[INST]list all the names of programs, ordering by launch time. Context: CREATE TABLE program (name VARCHAR, launch VARCHAR)[/INST]SELECT name FROM program ORDER BY launch</s>
CREATE TABLE table_name_7 (club_team VARCHAR, player VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT club_team FROM table_name_7 WHERE position = "(d)" AND nationality = "canada" AND player = "andrew macwilliam"
Which Club Team has a Position of (d), a Nationality of canada, and a Player of andrew macwilliam?
<s>[INST]Which Club Team has a Position of (d), a Nationality of canada, and a Player of andrew macwilliam? Context: CREATE TABLE table_name_7 (club_team VARCHAR, player VARCHAR, position VARCHAR, nationality VARCHAR)[/INST]SELECT club_team FROM table_name_7 WHERE position = "(d)" AND nationality = "canada" AND player ...
CREATE TABLE table_name_94 (played INTEGER, goals_against VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR)
SELECT AVG(played) FROM table_name_94 WHERE position < 4 AND wins > 16 AND points = 38 AND goals_against > 35
Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35?
<s>[INST]Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35? Context: CREATE TABLE table_name_94 (played INTEGER, goals_against VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR)[/INST]SELECT AVG(played) FROM table_name_94 WHERE position < 4 AND...
CREATE TABLE table_name_76 (event VARCHAR, position VARCHAR, year VARCHAR)
SELECT event FROM table_name_76 WHERE position = "4th" AND year = 2007
Which event had 4th place and took place in the year 2007?
<s>[INST]Which event had 4th place and took place in the year 2007? Context: CREATE TABLE table_name_76 (event VARCHAR, position VARCHAR, year VARCHAR)[/INST]SELECT event FROM table_name_76 WHERE position = "4th" AND year = 2007</s>
CREATE TABLE table_name_80 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_80 WHERE week = 6
What date was the week 6 game played on?
<s>[INST]What date was the week 6 game played on? Context: CREATE TABLE table_name_80 (date VARCHAR, week VARCHAR)[/INST]SELECT date FROM table_name_80 WHERE week = 6</s>
CREATE TABLE table_name_16 (bronze INTEGER, rank VARCHAR, total VARCHAR, gold VARCHAR)
SELECT AVG(bronze) FROM table_name_16 WHERE total > 1 AND gold < 2 AND rank = 2
How many bronze's on average for nations with over 1 total, less than 2 golds, ranked 2nd?
<s>[INST]How many bronze's on average for nations with over 1 total, less than 2 golds, ranked 2nd? Context: CREATE TABLE table_name_16 (bronze INTEGER, rank VARCHAR, total VARCHAR, gold VARCHAR)[/INST]SELECT AVG(bronze) FROM table_name_16 WHERE total > 1 AND gold < 2 AND rank = 2</s>
CREATE TABLE table_name_76 (rank INTEGER, silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT MAX(rank) FROM table_name_76 WHERE gold = 0 AND bronze < 4 AND total = 2 AND silver > 1
What is the maximum rank when there is 0 gold, and the bronze is less than 4, and the silver is greater than 1, and 2 as the total?
<s>[INST]What is the maximum rank when there is 0 gold, and the bronze is less than 4, and the silver is greater than 1, and 2 as the total? Context: CREATE TABLE table_name_76 (rank INTEGER, silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)[/INST]SELECT MAX(rank) FROM table_name_76 WHERE gold = 0 AND bronze...
CREATE TABLE table_name_15 (capacity VARCHAR, stadium VARCHAR)
SELECT capacity FROM table_name_15 WHERE stadium = "city park stadium"
Tell me the capacity for city park stadium
<s>[INST]Tell me the capacity for city park stadium Context: CREATE TABLE table_name_15 (capacity VARCHAR, stadium VARCHAR)[/INST]SELECT capacity FROM table_name_15 WHERE stadium = "city park stadium"</s>
CREATE TABLE table_name_59 (fa_cup_goals INTEGER, name VARCHAR, total_goals VARCHAR)
SELECT SUM(fa_cup_goals) FROM table_name_59 WHERE name = "david mirfin" AND total_goals < 1
I want to know the sum of fa cup goals for david mirfin and total goals less than 1
<s>[INST]I want to know the sum of fa cup goals for david mirfin and total goals less than 1 Context: CREATE TABLE table_name_59 (fa_cup_goals INTEGER, name VARCHAR, total_goals VARCHAR)[/INST]SELECT SUM(fa_cup_goals) FROM table_name_59 WHERE name = "david mirfin" AND total_goals < 1</s>
CREATE TABLE table_1876825_5 (written_by VARCHAR, no_in_series VARCHAR)
SELECT written_by FROM table_1876825_5 WHERE no_in_series = 74
Who wrote episode 74?
<s>[INST]Who wrote episode 74? Context: CREATE TABLE table_1876825_5 (written_by VARCHAR, no_in_series VARCHAR)[/INST]SELECT written_by FROM table_1876825_5 WHERE no_in_series = 74</s>
CREATE TABLE table_name_96 (natural_change VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, crude_death_rate__per_1000_ VARCHAR)
SELECT natural_change FROM table_name_96 WHERE crude_birth_rate__per_1000_ < 11.4 AND crude_death_rate__per_1000_ > 12.1 AND deaths = "4 376"
What is the national change where crude birth rate is less than 11.4, crude death rate is more than 12.1 and deaths are 4 376?
<s>[INST]What is the national change where crude birth rate is less than 11.4, crude death rate is more than 12.1 and deaths are 4 376? Context: CREATE TABLE table_name_96 (natural_change VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, crude_death_rate__per_1000_ VARCHAR)[/INST]SELECT natural_change FROM ...
CREATE TABLE film (title VARCHAR, film_id VARCHAR, rental_rate VARCHAR); CREATE TABLE inventory (film_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR)
SELECT title, film_id FROM film WHERE rental_rate = 0.99 INTERSECT SELECT T1.title, T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id HAVING COUNT(*) < 3
Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id.
<s>[INST]Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id. Context: CREATE TABLE film (title VARCHAR, film_id VARCHAR, rental_rate VARCHAR); CREATE TABLE inventory (film_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR)[/INST]SELECT title, film_id FROM...
CREATE TABLE table_14904221_1 (mens_singles VARCHAR, year VARCHAR)
SELECT mens_singles FROM table_14904221_1 WHERE year = 1994
WHo won men's singles in 1994?
<s>[INST]WHo won men's singles in 1994? Context: CREATE TABLE table_14904221_1 (mens_singles VARCHAR, year VARCHAR)[/INST]SELECT mens_singles FROM table_14904221_1 WHERE year = 1994</s>
CREATE TABLE table_name_82 (wins INTEGER, against VARCHAR, losses VARCHAR)
SELECT AVG(wins) FROM table_name_82 WHERE against > 1244 AND losses < 8
When against is more than 1244 with less than 8 losses, what is the average of wins?
<s>[INST]When against is more than 1244 with less than 8 losses, what is the average of wins? Context: CREATE TABLE table_name_82 (wins INTEGER, against VARCHAR, losses VARCHAR)[/INST]SELECT AVG(wins) FROM table_name_82 WHERE against > 1244 AND losses < 8</s>
CREATE TABLE table_name_55 (nadal INTEGER, round VARCHAR, tournament VARCHAR)
SELECT MAX(nadal) FROM table_name_55 WHERE round = "final" AND tournament = "miami"
What was the nadal in Miami in the final round?
<s>[INST]What was the nadal in Miami in the final round? Context: CREATE TABLE table_name_55 (nadal INTEGER, round VARCHAR, tournament VARCHAR)[/INST]SELECT MAX(nadal) FROM table_name_55 WHERE round = "final" AND tournament = "miami"</s>
CREATE TABLE table_name_88 (club_province VARCHAR, caps VARCHAR, player VARCHAR)
SELECT club_province FROM table_name_88 WHERE caps > 15 AND player = "chris cusiter"
Which Club or province has a caps larger than 15 and has Chris Cusiter playing for them?
<s>[INST]Which Club or province has a caps larger than 15 and has Chris Cusiter playing for them? Context: CREATE TABLE table_name_88 (club_province VARCHAR, caps VARCHAR, player VARCHAR)[/INST]SELECT club_province FROM table_name_88 WHERE caps > 15 AND player = "chris cusiter"</s>
CREATE TABLE Templates (Template_ID VARCHAR, Template_Type_Code VARCHAR); CREATE TABLE Documents (Template_ID VARCHAR)
SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'
How many documents are using the template with type code 'PPT'?
<s>[INST]How many documents are using the template with type code 'PPT'? Context: CREATE TABLE Templates (Template_ID VARCHAR, Template_Type_Code VARCHAR); CREATE TABLE Documents (Template_ID VARCHAR)[/INST]SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Ty...
CREATE TABLE table_name_63 (goberman VARCHAR, date VARCHAR)
SELECT goberman FROM table_name_63 WHERE date = "april 28–april 30, 2008"
Which Goberman has a Date of april 28–april 30, 2008?
<s>[INST]Which Goberman has a Date of april 28–april 30, 2008? Context: CREATE TABLE table_name_63 (goberman VARCHAR, date VARCHAR)[/INST]SELECT goberman FROM table_name_63 WHERE date = "april 28–april 30, 2008"</s>
CREATE TABLE table_2791668_1 (title VARCHAR, directed_by VARCHAR, no_in_season VARCHAR)
SELECT title FROM table_2791668_1 WHERE directed_by = "Michael Pressman" AND no_in_season < 10.0
what is the name of the episode whose director is Michael Pressman and the number of that episode in that season is less than 10.0?
<s>[INST]what is the name of the episode whose director is Michael Pressman and the number of that episode in that season is less than 10.0? Context: CREATE TABLE table_2791668_1 (title VARCHAR, directed_by VARCHAR, no_in_season VARCHAR)[/INST]SELECT title FROM table_2791668_1 WHERE directed_by = "Michael Pressman" AN...
CREATE TABLE table_name_23 (call_sign VARCHAR, erp_w VARCHAR)
SELECT call_sign FROM table_name_23 WHERE erp_w = 75
Which Call sign has an ERP W of 75?
<s>[INST]Which Call sign has an ERP W of 75? Context: CREATE TABLE table_name_23 (call_sign VARCHAR, erp_w VARCHAR)[/INST]SELECT call_sign FROM table_name_23 WHERE erp_w = 75</s>
CREATE TABLE table_name_10 (attendance INTEGER, result VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_10 WHERE result = "w 14-3" AND week > 10
What was the largest number of people in attendance of the game with a W 14-3 result after week 10?
<s>[INST]What was the largest number of people in attendance of the game with a W 14-3 result after week 10? Context: CREATE TABLE table_name_10 (attendance INTEGER, result VARCHAR, week VARCHAR)[/INST]SELECT MAX(attendance) FROM table_name_10 WHERE result = "w 14-3" AND week > 10</s>
CREATE TABLE table_name_65 (year VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT year FROM table_name_65 WHERE outcome = "runner-up" AND score = "4–6, 6–4, [8–10]"
In what year was Xavier Malisse the runner-up with scores of 4–6, 6–4, [8–10]?
<s>[INST]In what year was Xavier Malisse the runner-up with scores of 4–6, 6–4, [8–10]? Context: CREATE TABLE table_name_65 (year VARCHAR, outcome VARCHAR, score VARCHAR)[/INST]SELECT year FROM table_name_65 WHERE outcome = "runner-up" AND score = "4–6, 6–4, [8–10]"</s>
CREATE TABLE table_name_83 (rank VARCHAR, total VARCHAR, gold VARCHAR)
SELECT rank FROM table_name_83 WHERE total > 2 AND gold = 2
What is the rank of the country with more than 2 medals, and 2 gold medals?
<s>[INST]What is the rank of the country with more than 2 medals, and 2 gold medals? Context: CREATE TABLE table_name_83 (rank VARCHAR, total VARCHAR, gold VARCHAR)[/INST]SELECT rank FROM table_name_83 WHERE total > 2 AND gold = 2</s>
CREATE TABLE table_1620397_5 (doctor VARCHAR, series_sorted VARCHAR)
SELECT doctor FROM table_1620397_5 WHERE series_sorted = "6EB/B"
What was the doctor for sorted series 6eb/b?
<s>[INST]What was the doctor for sorted series 6eb/b? Context: CREATE TABLE table_1620397_5 (doctor VARCHAR, series_sorted VARCHAR)[/INST]SELECT doctor FROM table_1620397_5 WHERE series_sorted = "6EB/B"</s>
CREATE TABLE table_24938621_3 (production_code VARCHAR, written_by VARCHAR)
SELECT production_code FROM table_24938621_3 WHERE written_by = "Cathryn Humphris"
What is the production code of the episode written by Cathryn Humphris?
<s>[INST]What is the production code of the episode written by Cathryn Humphris? Context: CREATE TABLE table_24938621_3 (production_code VARCHAR, written_by VARCHAR)[/INST]SELECT production_code FROM table_24938621_3 WHERE written_by = "Cathryn Humphris"</s>
CREATE TABLE table_name_91 (draws INTEGER, wins VARCHAR, position VARCHAR, points VARCHAR, conceded VARCHAR)
SELECT MIN(draws) FROM table_name_91 WHERE points < 15 AND conceded > 10 AND position > 8 AND wins = 1
Which Draws has Points smaller than 15, and a Conceded larger than 10, and a Position larger than 8, and Wins of 1?
<s>[INST]Which Draws has Points smaller than 15, and a Conceded larger than 10, and a Position larger than 8, and Wins of 1? Context: CREATE TABLE table_name_91 (draws INTEGER, wins VARCHAR, position VARCHAR, points VARCHAR, conceded VARCHAR)[/INST]SELECT MIN(draws) FROM table_name_91 WHERE points < 15 AND conceded > 1...
CREATE TABLE table_name_76 (game_site VARCHAR, week VARCHAR, result VARCHAR)
SELECT game_site FROM table_name_76 WHERE week > 13 AND result = "l 20–0"
Which game site has a Week bigger than 13, and a Result of l 20–0?
<s>[INST]Which game site has a Week bigger than 13, and a Result of l 20–0? Context: CREATE TABLE table_name_76 (game_site VARCHAR, week VARCHAR, result VARCHAR)[/INST]SELECT game_site FROM table_name_76 WHERE week > 13 AND result = "l 20–0"</s>
CREATE TABLE table_name_94 (matches VARCHAR, rank VARCHAR)
SELECT COUNT(matches) FROM table_name_94 WHERE rank = 2
Which Matches have a Rank of 2?
<s>[INST]Which Matches have a Rank of 2? Context: CREATE TABLE table_name_94 (matches VARCHAR, rank VARCHAR)[/INST]SELECT COUNT(matches) FROM table_name_94 WHERE rank = 2</s>
CREATE TABLE table_name_59 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_59 WHERE chassis = "m16" AND year > 2006
What is the low point total after 2006 with an m16 chassis?
<s>[INST]What is the low point total after 2006 with an m16 chassis? Context: CREATE TABLE table_name_59 (points INTEGER, chassis VARCHAR, year VARCHAR)[/INST]SELECT MIN(points) FROM table_name_59 WHERE chassis = "m16" AND year > 2006</s>
CREATE TABLE table_2409041_5 (written_by VARCHAR, original_air_date VARCHAR)
SELECT written_by FROM table_2409041_5 WHERE original_air_date = "January 15, 1993"
Who wrote the episode that originally aired on January 15, 1993?
<s>[INST]Who wrote the episode that originally aired on January 15, 1993? Context: CREATE TABLE table_2409041_5 (written_by VARCHAR, original_air_date VARCHAR)[/INST]SELECT written_by FROM table_2409041_5 WHERE original_air_date = "January 15, 1993"</s>
CREATE TABLE table_name_23 (losses VARCHAR, geelong_fl VARCHAR, wins VARCHAR)
SELECT COUNT(losses) FROM table_name_23 WHERE geelong_fl = "newtown & chilwell" AND wins > 11
How many Losses have a Geelong FL of newtown & chilwell, and more than 11 wins?
<s>[INST]How many Losses have a Geelong FL of newtown & chilwell, and more than 11 wins? Context: CREATE TABLE table_name_23 (losses VARCHAR, geelong_fl VARCHAR, wins VARCHAR)[/INST]SELECT COUNT(losses) FROM table_name_23 WHERE geelong_fl = "newtown & chilwell" AND wins > 11</s>
CREATE TABLE table_name_16 (class VARCHAR, year_made VARCHAR)
SELECT class FROM table_name_16 WHERE year_made = "1899–1900"
What is the Class of 1899–1900?
<s>[INST]What is the Class of 1899–1900? Context: CREATE TABLE table_name_16 (class VARCHAR, year_made VARCHAR)[/INST]SELECT class FROM table_name_16 WHERE year_made = "1899–1900"</s>
CREATE TABLE table_name_71 (race_1 VARCHAR, team VARCHAR, race_3 VARCHAR)
SELECT race_1 FROM table_name_71 WHERE team = "dick johnson racing" AND race_3 = "dnf"
What is Race 1, when Team is "Dick Johnson Racing", and when Race 3 is "DNF"?
<s>[INST]What is Race 1, when Team is "Dick Johnson Racing", and when Race 3 is "DNF"? Context: CREATE TABLE table_name_71 (race_1 VARCHAR, team VARCHAR, race_3 VARCHAR)[/INST]SELECT race_1 FROM table_name_71 WHERE team = "dick johnson racing" AND race_3 = "dnf"</s>
CREATE TABLE table_name_77 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_77 WHERE attendance = "90,287"
Who was the opponent for the game that had 90,287 in attendance?
<s>[INST]Who was the opponent for the game that had 90,287 in attendance? Context: CREATE TABLE table_name_77 (opponent VARCHAR, attendance VARCHAR)[/INST]SELECT opponent FROM table_name_77 WHERE attendance = "90,287"</s>
CREATE TABLE table_name_9 (position VARCHAR, lost VARCHAR, drawn VARCHAR, difference VARCHAR)
SELECT COUNT(position) FROM table_name_9 WHERE drawn = 9 AND difference = "5" AND lost < 14
How many positions have 9 as a drawn, 5 as a difference, with a lost less than 14?
<s>[INST]How many positions have 9 as a drawn, 5 as a difference, with a lost less than 14? Context: CREATE TABLE table_name_9 (position VARCHAR, lost VARCHAR, drawn VARCHAR, difference VARCHAR)[/INST]SELECT COUNT(position) FROM table_name_9 WHERE drawn = 9 AND difference = "5" AND lost < 14</s>
CREATE TABLE table_13836704_6 (rank VARCHAR, freight___metric_tonnes__ VARCHAR)
SELECT rank FROM table_13836704_6 WHERE freight___metric_tonnes__ = 23791
What is the rank of the airport with a freight ( metric tonnes ) of 23791?
<s>[INST]What is the rank of the airport with a freight ( metric tonnes ) of 23791? Context: CREATE TABLE table_13836704_6 (rank VARCHAR, freight___metric_tonnes__ VARCHAR)[/INST]SELECT rank FROM table_13836704_6 WHERE freight___metric_tonnes__ = 23791</s>
CREATE TABLE table_name_50 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_50 WHERE result = "7-1"
Which venue had the result 7-1?
<s>[INST]Which venue had the result 7-1? Context: CREATE TABLE table_name_50 (venue VARCHAR, result VARCHAR)[/INST]SELECT venue FROM table_name_50 WHERE result = "7-1"</s>
CREATE TABLE table_27184837_1 (asia VARCHAR, programs VARCHAR)
SELECT asia FROM table_27184837_1 WHERE programs = "Radio Stations"
How many radio stations were built in Asia?
<s>[INST]How many radio stations were built in Asia? Context: CREATE TABLE table_27184837_1 (asia VARCHAR, programs VARCHAR)[/INST]SELECT asia FROM table_27184837_1 WHERE programs = "Radio Stations"</s>
CREATE TABLE table_12679326_1 (district VARCHAR, committee VARCHAR, party VARCHAR)
SELECT district FROM table_12679326_1 WHERE committee = "Economic Matters" AND party = "Democratic"
What are the districts represented by the Democratic Party and a Committee in Economic Matters?
<s>[INST]What are the districts represented by the Democratic Party and a Committee in Economic Matters? Context: CREATE TABLE table_12679326_1 (district VARCHAR, committee VARCHAR, party VARCHAR)[/INST]SELECT district FROM table_12679326_1 WHERE committee = "Economic Matters" AND party = "Democratic"</s>
CREATE TABLE table_name_34 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT SUM(silver) FROM table_name_34 WHERE nation = "liechtenstein" AND bronze > 4
Tell me the sum of silver for liechtenstein and bronze more than 4
<s>[INST]Tell me the sum of silver for liechtenstein and bronze more than 4 Context: CREATE TABLE table_name_34 (silver INTEGER, nation VARCHAR, bronze VARCHAR)[/INST]SELECT SUM(silver) FROM table_name_34 WHERE nation = "liechtenstein" AND bronze > 4</s>
CREATE TABLE table_name_6 (season VARCHAR, goals VARCHAR, apps VARCHAR, country VARCHAR, team VARCHAR)
SELECT season FROM table_name_6 WHERE country = "china" AND team = "dalian shide" AND apps > 8 AND goals = 2
What is Season, when Country is China, when Team is Dalian Shide, when Apps is greater than 8, and when Goals is 2?
<s>[INST]What is Season, when Country is China, when Team is Dalian Shide, when Apps is greater than 8, and when Goals is 2? Context: CREATE TABLE table_name_6 (season VARCHAR, goals VARCHAR, apps VARCHAR, country VARCHAR, team VARCHAR)[/INST]SELECT season FROM table_name_6 WHERE country = "china" AND team = "dalian sh...
CREATE TABLE table_name_64 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_64 WHERE date = "november 8, 2001"
What was the final score of the November 8, 2001 game?
<s>[INST]What was the final score of the November 8, 2001 game? Context: CREATE TABLE table_name_64 (result VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_64 WHERE date = "november 8, 2001"</s>
CREATE TABLE table_14608759_1 (result VARCHAR, week VARCHAR)
SELECT result FROM table_14608759_1 WHERE week = 4
What are week 4 results?
<s>[INST]What are week 4 results? Context: CREATE TABLE table_14608759_1 (result VARCHAR, week VARCHAR)[/INST]SELECT result FROM table_14608759_1 WHERE week = 4</s>
CREATE TABLE table_15284274_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT written_by FROM table_15284274_1 WHERE directed_by = "Peter Woeste"
Who wrote the episode directed by Peter Woeste?
<s>[INST]Who wrote the episode directed by Peter Woeste? Context: CREATE TABLE table_15284274_1 (written_by VARCHAR, directed_by VARCHAR)[/INST]SELECT written_by FROM table_15284274_1 WHERE directed_by = "Peter Woeste"</s>
CREATE TABLE table_name_55 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_55 WHERE date = "march 27"
What is the score March 27?
<s>[INST]What is the score March 27? Context: CREATE TABLE table_name_55 (score VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_55 WHERE date = "march 27"</s>
CREATE TABLE table_name_97 (order__number VARCHAR, original_artist VARCHAR)
SELECT order__number FROM table_name_97 WHERE original_artist = "aretha franklin"
What is the order number that has Aretha Franklin as the original artist?
<s>[INST]What is the order number that has Aretha Franklin as the original artist? Context: CREATE TABLE table_name_97 (order__number VARCHAR, original_artist VARCHAR)[/INST]SELECT order__number FROM table_name_97 WHERE original_artist = "aretha franklin"</s>
CREATE TABLE table_15887683_6 (television_service VARCHAR, content VARCHAR)
SELECT television_service FROM table_15887683_6 WHERE content = "Primafila Hot Club"
Name the television service when primafila hot club
<s>[INST]Name the television service when primafila hot club Context: CREATE TABLE table_15887683_6 (television_service VARCHAR, content VARCHAR)[/INST]SELECT television_service FROM table_15887683_6 WHERE content = "Primafila Hot Club"</s>
CREATE TABLE table_name_63 (ties INTEGER, team VARCHAR, win_pct VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT AVG(ties) FROM table_name_63 WHERE losses < 3 AND wins < 5 AND win_pct = "0.800" AND team = "detroit lions"
What is the average number of ties for the Detroit Lions team when they have fewer than 5 wins, fewer than 3 losses, and a win percentage of 0.800?
<s>[INST]What is the average number of ties for the Detroit Lions team when they have fewer than 5 wins, fewer than 3 losses, and a win percentage of 0.800? Context: CREATE TABLE table_name_63 (ties INTEGER, team VARCHAR, win_pct VARCHAR, losses VARCHAR, wins VARCHAR)[/INST]SELECT AVG(ties) FROM table_name_63 WHERE los...
CREATE TABLE table_14563349_11 (opponent VARCHAR, location VARCHAR)
SELECT opponent FROM table_14563349_11 WHERE location = "Riverfront Stadium"
Who was the opposing team played at Riverfront Stadium?
<s>[INST]Who was the opposing team played at Riverfront Stadium? Context: CREATE TABLE table_14563349_11 (opponent VARCHAR, location VARCHAR)[/INST]SELECT opponent FROM table_14563349_11 WHERE location = "Riverfront Stadium"</s>
CREATE TABLE table_12095519_1 (frequency VARCHAR, origin VARCHAR)
SELECT frequency FROM table_12095519_1 WHERE origin = "Sealdah"
How often does a train leave sealdah?
<s>[INST]How often does a train leave sealdah? Context: CREATE TABLE table_12095519_1 (frequency VARCHAR, origin VARCHAR)[/INST]SELECT frequency FROM table_12095519_1 WHERE origin = "Sealdah"</s>
CREATE TABLE table_name_97 (city VARCHAR, capacity VARCHAR)
SELECT city FROM table_name_97 WHERE capacity = "41,311"
What is the name of the city with a capacity of 41,311?
<s>[INST]What is the name of the city with a capacity of 41,311? Context: CREATE TABLE table_name_97 (city VARCHAR, capacity VARCHAR)[/INST]SELECT city FROM table_name_97 WHERE capacity = "41,311"</s>
CREATE TABLE table_23186738_9 (game INTEGER, date VARCHAR)
SELECT MIN(game) FROM table_23186738_9 WHERE date = "March 20"
Name the least game for march 20
<s>[INST]Name the least game for march 20 Context: CREATE TABLE table_23186738_9 (game INTEGER, date VARCHAR)[/INST]SELECT MIN(game) FROM table_23186738_9 WHERE date = "March 20"</s>
CREATE TABLE table_name_43 (tie_no VARCHAR, attendance VARCHAR)
SELECT tie_no FROM table_name_43 WHERE attendance = "11,997"
How many ties are there where attendance is 11,997?
<s>[INST]How many ties are there where attendance is 11,997? Context: CREATE TABLE table_name_43 (tie_no VARCHAR, attendance VARCHAR)[/INST]SELECT tie_no FROM table_name_43 WHERE attendance = "11,997"</s>
CREATE TABLE table_name_64 (points_for VARCHAR, club VARCHAR)
SELECT points_for FROM table_name_64 WHERE club = "tycroes rfc"
What is Points For, when Club is "Tycroes RFC"?
<s>[INST]What is Points For, when Club is "Tycroes RFC"? Context: CREATE TABLE table_name_64 (points_for VARCHAR, club VARCHAR)[/INST]SELECT points_for FROM table_name_64 WHERE club = "tycroes rfc"</s>
CREATE TABLE table_name_93 (week VARCHAR, attendance VARCHAR)
SELECT week FROM table_name_93 WHERE attendance = "51,265"
Which week had an attendance of 51,265?
<s>[INST]Which week had an attendance of 51,265? Context: CREATE TABLE table_name_93 (week VARCHAR, attendance VARCHAR)[/INST]SELECT week FROM table_name_93 WHERE attendance = "51,265"</s>
CREATE TABLE table_name_10 (goal VARCHAR, venue VARCHAR, date VARCHAR)
SELECT COUNT(goal) FROM table_name_10 WHERE venue = "panama city" AND date = "11 febrero 2006"
At the venue of panama city, on 11 Febrero 2006, how many goals were scored?
<s>[INST]At the venue of panama city, on 11 Febrero 2006, how many goals were scored? Context: CREATE TABLE table_name_10 (goal VARCHAR, venue VARCHAR, date VARCHAR)[/INST]SELECT COUNT(goal) FROM table_name_10 WHERE venue = "panama city" AND date = "11 febrero 2006"</s>
CREATE TABLE table_22801165_1 (date VARCHAR, cowboys_points VARCHAR)
SELECT date FROM table_22801165_1 WHERE cowboys_points = 13
When did the Cowboys score 13 points in 1966?
<s>[INST]When did the Cowboys score 13 points in 1966? Context: CREATE TABLE table_22801165_1 (date VARCHAR, cowboys_points VARCHAR)[/INST]SELECT date FROM table_22801165_1 WHERE cowboys_points = 13</s>
CREATE TABLE table_name_70 (tries_against VARCHAR, points_for VARCHAR)
SELECT tries_against FROM table_name_70 WHERE points_for = "475"
What is the tries against when the points are 475?
<s>[INST]What is the tries against when the points are 475? Context: CREATE TABLE table_name_70 (tries_against VARCHAR, points_for VARCHAR)[/INST]SELECT tries_against FROM table_name_70 WHERE points_for = "475"</s>
CREATE TABLE table_22719663_3 (number VARCHAR, height VARCHAR)
SELECT number FROM table_22719663_3 WHERE height = "6-6"
What was the number of the player that was 6-6?
<s>[INST]What was the number of the player that was 6-6? Context: CREATE TABLE table_22719663_3 (number VARCHAR, height VARCHAR)[/INST]SELECT number FROM table_22719663_3 WHERE height = "6-6"</s>
CREATE TABLE table_name_16 (money___ INTEGER, score VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_16 WHERE score = 75 - 74 - 72 - 67 = 288
What is the most money for the score 75-74-72-67=288?
<s>[INST]What is the most money for the score 75-74-72-67=288? Context: CREATE TABLE table_name_16 (money___ INTEGER, score VARCHAR)[/INST]SELECT MAX(money___) AS $__ FROM table_name_16 WHERE score = 75 - 74 - 72 - 67 = 288</s>
CREATE TABLE table_name_4 (money___$__ VARCHAR, place VARCHAR, player VARCHAR)
SELECT money___$__ FROM table_name_4 WHERE place = "t1" AND player = "jack fleck"
Which money has player Jack Fleck with t1 place?
<s>[INST]Which money has player Jack Fleck with t1 place? Context: CREATE TABLE table_name_4 (money___$__ VARCHAR, place VARCHAR, player VARCHAR)[/INST]SELECT money___$__ FROM table_name_4 WHERE place = "t1" AND player = "jack fleck"</s>
CREATE TABLE table_name_17 (company_or_product_name VARCHAR, episode VARCHAR, money_requested__£_ VARCHAR)
SELECT company_or_product_name FROM table_name_17 WHERE episode = "episode 11" AND money_requested__£_ = "70,000"
Which Company or Product name requested £70,000 on Episode 11?
<s>[INST]Which Company or Product name requested £70,000 on Episode 11? Context: CREATE TABLE table_name_17 (company_or_product_name VARCHAR, episode VARCHAR, money_requested__£_ VARCHAR)[/INST]SELECT company_or_product_name FROM table_name_17 WHERE episode = "episode 11" AND money_requested__£_ = "70,000"</s>
CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR, skill_id VARCHAR); CREATE TABLE Part_Faults (fault_short_name VARCHAR, part_fault_id VARCHAR); CREATE TABLE Skills (skill_description VARCHAR, skill_id VARCHAR)
SELECT T1.fault_short_name, T3.skill_description FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id = T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id
For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description.
<s>[INST]For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description. Context: CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR, skill_id VARCHAR); CREATE TABLE Part_Faults (fault_short_name VARCHAR, part_fault_i...
CREATE TABLE table_name_76 (initial_syllable_open_semi_open_unstressed_vowels VARCHAR)
SELECT 17 AS th_c FROM table_name_76 WHERE initial_syllable_open_semi_open_unstressed_vowels = "o /ɵ/"
What is 17th c., when Initial-Syllable Open/Semi-Open Unstressed Vowels is "o /ɵ/"?
<s>[INST]What is 17th c., when Initial-Syllable Open/Semi-Open Unstressed Vowels is "o /ɵ/"? Context: CREATE TABLE table_name_76 (initial_syllable_open_semi_open_unstressed_vowels VARCHAR)[/INST]SELECT 17 AS th_c FROM table_name_76 WHERE initial_syllable_open_semi_open_unstressed_vowels = "o /ɵ/"</s>
CREATE TABLE table_name_43 (total VARCHAR, mls_cup VARCHAR, us_open_cup VARCHAR)
SELECT COUNT(total) FROM table_name_43 WHERE mls_cup = 4 AND us_open_cup > 1
What is the total where there are 4 MLS Cups and more US Open Cups than 1?
<s>[INST]What is the total where there are 4 MLS Cups and more US Open Cups than 1? Context: CREATE TABLE table_name_43 (total VARCHAR, mls_cup VARCHAR, us_open_cup VARCHAR)[/INST]SELECT COUNT(total) FROM table_name_43 WHERE mls_cup = 4 AND us_open_cup > 1</s>
CREATE TABLE table_name_55 (attendance VARCHAR, points VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_55 WHERE points = 53 AND date = "march 6"
What was the attendance for the March 6 game, where one of the teams had 53 points.
<s>[INST]What was the attendance for the March 6 game, where one of the teams had 53 points. Context: CREATE TABLE table_name_55 (attendance VARCHAR, points VARCHAR, date VARCHAR)[/INST]SELECT attendance FROM table_name_55 WHERE points = 53 AND date = "march 6"</s>
CREATE TABLE journalist (Years_working INTEGER)
SELECT AVG(Years_working) FROM journalist
What is the average number of years spent working as a journalist?
<s>[INST]What is the average number of years spent working as a journalist? Context: CREATE TABLE journalist (Years_working INTEGER)[/INST]SELECT AVG(Years_working) FROM journalist</s>
CREATE TABLE table_name_31 (position VARCHAR, school_club_team VARCHAR)
SELECT position FROM table_name_31 WHERE school_club_team = "florida international"
What position did the player from Florida International play?
<s>[INST]What position did the player from Florida International play? Context: CREATE TABLE table_name_31 (position VARCHAR, school_club_team VARCHAR)[/INST]SELECT position FROM table_name_31 WHERE school_club_team = "florida international"</s>
CREATE TABLE table_name_49 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_49 WHERE player = "wally armstrong"
What was the score of Wally Armstrong?
<s>[INST]What was the score of Wally Armstrong? Context: CREATE TABLE table_name_49 (score VARCHAR, player VARCHAR)[/INST]SELECT score FROM table_name_49 WHERE player = "wally armstrong"</s>
CREATE TABLE table_13741576_4 (drawn VARCHAR, club VARCHAR)
SELECT drawn FROM table_13741576_4 WHERE club = "Llandaff RFC"
Name the drawn for llandaff rfc
<s>[INST]Name the drawn for llandaff rfc Context: CREATE TABLE table_13741576_4 (drawn VARCHAR, club VARCHAR)[/INST]SELECT drawn FROM table_13741576_4 WHERE club = "Llandaff RFC"</s>
CREATE TABLE table_name_87 (language VARCHAR, translator VARCHAR)
SELECT language FROM table_name_87 WHERE translator = "ritah meltser and amatsyah porat"
What is the language for translators ritah meltser and amatsyah porat?
<s>[INST]What is the language for translators ritah meltser and amatsyah porat? Context: CREATE TABLE table_name_87 (language VARCHAR, translator VARCHAR)[/INST]SELECT language FROM table_name_87 WHERE translator = "ritah meltser and amatsyah porat"</s>
CREATE TABLE table_name_74 (date VARCHAR, outcome VARCHAR, opponents_in_the_final VARCHAR)
SELECT date FROM table_name_74 WHERE outcome = "runner-up" AND opponents_in_the_final = "tom gullikson butch walts"
Which date has the tom gullikson butch walts final, and who was the runner-up?
<s>[INST]Which date has the tom gullikson butch walts final, and who was the runner-up? Context: CREATE TABLE table_name_74 (date VARCHAR, outcome VARCHAR, opponents_in_the_final VARCHAR)[/INST]SELECT date FROM table_name_74 WHERE outcome = "runner-up" AND opponents_in_the_final = "tom gullikson butch walts"</s>
CREATE TABLE table_name_68 (surface VARCHAR, year VARCHAR)
SELECT surface FROM table_name_68 WHERE year = 1996
What was the surface in 1996?
<s>[INST]What was the surface in 1996? Context: CREATE TABLE table_name_68 (surface VARCHAR, year VARCHAR)[/INST]SELECT surface FROM table_name_68 WHERE year = 1996</s>
CREATE TABLE table_name_45 (first_elected VARCHAR, result VARCHAR, district VARCHAR)
SELECT first_elected FROM table_name_45 WHERE result = "re-elected" AND district = "south carolina 1"
What is the first date of election for the incumbent that was re-elected in the South Carolina 1 district?
<s>[INST]What is the first date of election for the incumbent that was re-elected in the South Carolina 1 district? Context: CREATE TABLE table_name_45 (first_elected VARCHAR, result VARCHAR, district VARCHAR)[/INST]SELECT first_elected FROM table_name_45 WHERE result = "re-elected" AND district = "south carolina 1"</s...
CREATE TABLE table_name_89 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, intergiro_classification VARCHAR)
SELECT winner FROM table_name_89 WHERE points_classification = "adriano baffi" AND intergiro_classification = "ján svorada" AND stage = "13"
Name the winner for adriano baffi and integiro classification of ján svorada for stage of 13
<s>[INST]Name the winner for adriano baffi and integiro classification of ján svorada for stage of 13 Context: CREATE TABLE table_name_89 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, intergiro_classification VARCHAR)[/INST]SELECT winner FROM table_name_89 WHERE points_classification = "adriano baffi" ...
CREATE TABLE musical (Nominee VARCHAR, Award VARCHAR)
SELECT Nominee FROM musical WHERE Award = "Tony Award" INTERSECT SELECT Nominee FROM musical WHERE Award = "Drama Desk Award"
Show the nominees that have nominated musicals for both "Tony Award" and "Drama Desk Award".
<s>[INST]Show the nominees that have nominated musicals for both "Tony Award" and "Drama Desk Award". Context: CREATE TABLE musical (Nominee VARCHAR, Award VARCHAR)[/INST]SELECT Nominee FROM musical WHERE Award = "Tony Award" INTERSECT SELECT Nominee FROM musical WHERE Award = "Drama Desk Award"</s>
CREATE TABLE table_name_55 (drawn VARCHAR, played VARCHAR, points_against VARCHAR)
SELECT drawn FROM table_name_55 WHERE played = "18" AND points_against = "478"
What is Drawn, when Played is "18", and when Points Against is "478"?
<s>[INST]What is Drawn, when Played is "18", and when Points Against is "478"? Context: CREATE TABLE table_name_55 (drawn VARCHAR, played VARCHAR, points_against VARCHAR)[/INST]SELECT drawn FROM table_name_55 WHERE played = "18" AND points_against = "478"</s>
CREATE TABLE table_name_99 (goals_for INTEGER, goal_difference VARCHAR, losses VARCHAR)
SELECT AVG(goals_for) FROM table_name_99 WHERE goal_difference = 8 AND losses < 12
What is the average amount of goals that have a goal difference or 8 and the losses are smaller than 12?
<s>[INST]What is the average amount of goals that have a goal difference or 8 and the losses are smaller than 12? Context: CREATE TABLE table_name_99 (goals_for INTEGER, goal_difference VARCHAR, losses VARCHAR)[/INST]SELECT AVG(goals_for) FROM table_name_99 WHERE goal_difference = 8 AND losses < 12</s>
CREATE TABLE table_name_4 (crowd VARCHAR, venue VARCHAR)
SELECT crowd FROM table_name_4 WHERE venue = "windy hill"
What is the listed crowd at windy hill?
<s>[INST]What is the listed crowd at windy hill? Context: CREATE TABLE table_name_4 (crowd VARCHAR, venue VARCHAR)[/INST]SELECT crowd FROM table_name_4 WHERE venue = "windy hill"</s>
CREATE TABLE table_name_83 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_83 WHERE time_retired = "+2 laps" AND laps < 51
What is the average Grid that has a Time/Retired of +2 laps, and under 51 laps?
<s>[INST]What is the average Grid that has a Time/Retired of +2 laps, and under 51 laps? Context: CREATE TABLE table_name_83 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)[/INST]SELECT AVG(grid) FROM table_name_83 WHERE time_retired = "+2 laps" AND laps < 51</s>
CREATE TABLE table_17672470_19 (stage VARCHAR, winner VARCHAR)
SELECT COUNT(stage) FROM table_17672470_19 WHERE winner = "Robbie McEwen"
How many stages were won by Robbie McEwen?
<s>[INST]How many stages were won by Robbie McEwen? Context: CREATE TABLE table_17672470_19 (stage VARCHAR, winner VARCHAR)[/INST]SELECT COUNT(stage) FROM table_17672470_19 WHERE winner = "Robbie McEwen"</s>
CREATE TABLE table_27756164_8 (location_attendance VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_27756164_8 WHERE team = "Chicago"
When the team is chicago what is the location attendence?
<s>[INST]When the team is chicago what is the location attendence? Context: CREATE TABLE table_27756164_8 (location_attendance VARCHAR, team VARCHAR)[/INST]SELECT location_attendance FROM table_27756164_8 WHERE team = "Chicago"</s>
CREATE TABLE table_name_84 (category VARCHAR, nominee_s_ VARCHAR, year VARCHAR)
SELECT category FROM table_name_84 WHERE nominee_s_ = "hy conrad" AND year = 2003
What is the category when Hy Conrad nominated in 2003?
<s>[INST]What is the category when Hy Conrad nominated in 2003? Context: CREATE TABLE table_name_84 (category VARCHAR, nominee_s_ VARCHAR, year VARCHAR)[/INST]SELECT category FROM table_name_84 WHERE nominee_s_ = "hy conrad" AND year = 2003</s>
CREATE TABLE stadium (city VARCHAR, opening_year INTEGER)
SELECT COUNT(DISTINCT city) FROM stadium WHERE opening_year < 2006
How many cities have a stadium that was opened before the year of 2006?
<s>[INST]How many cities have a stadium that was opened before the year of 2006? Context: CREATE TABLE stadium (city VARCHAR, opening_year INTEGER)[/INST]SELECT COUNT(DISTINCT city) FROM stadium WHERE opening_year < 2006</s>
CREATE TABLE table_12784134_1 (participle VARCHAR, verbal_noun VARCHAR)
SELECT participle FROM table_12784134_1 WHERE verbal_noun = "i-bil-tze"
What's the participle when the verbal noun is i-bil-tze?
<s>[INST]What's the participle when the verbal noun is i-bil-tze? Context: CREATE TABLE table_12784134_1 (participle VARCHAR, verbal_noun VARCHAR)[/INST]SELECT participle FROM table_12784134_1 WHERE verbal_noun = "i-bil-tze"</s>
CREATE TABLE table_261642_3 (r__ω_km_ VARCHAR, frequency__hz_ VARCHAR)
SELECT r__ω_km_ FROM table_261642_3 WHERE frequency__hz_ = "10k"
What is the r (ω/km) when the frequency is 10k?
<s>[INST]What is the r (ω/km) when the frequency is 10k? Context: CREATE TABLE table_261642_3 (r__ω_km_ VARCHAR, frequency__hz_ VARCHAR)[/INST]SELECT r__ω_km_ FROM table_261642_3 WHERE frequency__hz_ = "10k"</s>
CREATE TABLE institution (institution_id VARCHAR, building_id VARCHAR); CREATE TABLE building (building_id VARCHAR, floors VARCHAR); CREATE TABLE protein (institution_id VARCHAR)
SELECT COUNT(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id JOIN building AS T3 ON T3.building_id = T1.building_id WHERE T3.floors >= 20
How many proteins are associated with an institution in a building with at least 20 floors?
<s>[INST]How many proteins are associated with an institution in a building with at least 20 floors? Context: CREATE TABLE institution (institution_id VARCHAR, building_id VARCHAR); CREATE TABLE building (building_id VARCHAR, floors VARCHAR); CREATE TABLE protein (institution_id VARCHAR)[/INST]SELECT COUNT(*) FROM inst...
CREATE TABLE table_1805919_1 (english_translation VARCHAR, traditional_chinese VARCHAR)
SELECT english_translation FROM table_1805919_1 WHERE traditional_chinese = "哀郢"
What is the English translation of 哀郢?
<s>[INST]What is the English translation of 哀郢? Context: CREATE TABLE table_1805919_1 (english_translation VARCHAR, traditional_chinese VARCHAR)[/INST]SELECT english_translation FROM table_1805919_1 WHERE traditional_chinese = "哀郢"</s>
CREATE TABLE table_name_92 (lost INTEGER, points VARCHAR, games VARCHAR)
SELECT AVG(lost) FROM table_name_92 WHERE points = 6 AND games < 5
Where the games are smaller than 5 and the points are 6, what is the average lost?
<s>[INST]Where the games are smaller than 5 and the points are 6, what is the average lost? Context: CREATE TABLE table_name_92 (lost INTEGER, points VARCHAR, games VARCHAR)[/INST]SELECT AVG(lost) FROM table_name_92 WHERE points = 6 AND games < 5</s>