context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_8 (theatre VARCHAR, _studio VARCHAR, _or_network VARCHAR, role VARCHAR)
SELECT theatre, _studio, _or_network FROM table_name_8 WHERE role = "peter p. peters"
What was the theatre where Peter P. Peters is the role?
<s>[INST]What was the theatre where Peter P. Peters is the role? Context: CREATE TABLE table_name_8 (theatre VARCHAR, _studio VARCHAR, _or_network VARCHAR, role VARCHAR)[/INST]SELECT theatre, _studio, _or_network FROM table_name_8 WHERE role = "peter p. peters"</s>
CREATE TABLE table_name_69 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT MAX(points) FROM table_name_69 WHERE entrant = "first racing" AND year > 1987
after 1987 and entrant of first racing what is the highest points?
<s>[INST]after 1987 and entrant of first racing what is the highest points? Context: CREATE TABLE table_name_69 (points INTEGER, entrant VARCHAR, year VARCHAR)[/INST]SELECT MAX(points) FROM table_name_69 WHERE entrant = "first racing" AND year > 1987</s>
CREATE TABLE table_name_96 (season VARCHAR, third VARCHAR)
SELECT season FROM table_name_96 WHERE third = "shawn rojeski"
what is the season when the third is shawn rojeski?
<s>[INST]what is the season when the third is shawn rojeski? Context: CREATE TABLE table_name_96 (season VARCHAR, third VARCHAR)[/INST]SELECT season FROM table_name_96 WHERE third = "shawn rojeski"</s>
CREATE TABLE table_name_42 (format VARCHAR, conference VARCHAR)
SELECT format FROM table_name_42 WHERE conference = "conference iii"
What format has conference iii as the conference?
<s>[INST]What format has conference iii as the conference? Context: CREATE TABLE table_name_42 (format VARCHAR, conference VARCHAR)[/INST]SELECT format FROM table_name_42 WHERE conference = "conference iii"</s>
CREATE TABLE table_name_54 (total INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT MIN(total) FROM table_name_54 WHERE rank > 2 AND bronze = 1 AND silver > 0 AND gold < 0
What is the Total with 0 Silver and Gold, 1 Bronze and Rank larger than 2?
<s>[INST]What is the Total with 0 Silver and Gold, 1 Bronze and Rank larger than 2? Context: CREATE TABLE table_name_54 (total INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR, bronze VARCHAR)[/INST]SELECT MIN(total) FROM table_name_54 WHERE rank > 2 AND bronze = 1 AND silver > 0 AND gold < 0</s>
CREATE TABLE customer (cust_name VARCHAR, credit_score INTEGER)
SELECT cust_name FROM customer WHERE credit_score < (SELECT AVG(credit_score) FROM customer)
Find the name of customers whose credit score is below the average credit scores of all customers.
<s>[INST]Find the name of customers whose credit score is below the average credit scores of all customers. Context: CREATE TABLE customer (cust_name VARCHAR, credit_score INTEGER)[/INST]SELECT cust_name FROM customer WHERE credit_score < (SELECT AVG(credit_score) FROM customer)</s>
CREATE TABLE table_name_13 (league INTEGER, club VARCHAR, play_offs VARCHAR)
SELECT MIN(league) FROM table_name_13 WHERE club = "aldershot town" AND play_offs < 0
Which of the lowest leagues had Aldershot town as a club when the play-offs number was less than 0?
<s>[INST]Which of the lowest leagues had Aldershot town as a club when the play-offs number was less than 0? Context: CREATE TABLE table_name_13 (league INTEGER, club VARCHAR, play_offs VARCHAR)[/INST]SELECT MIN(league) FROM table_name_13 WHERE club = "aldershot town" AND play_offs < 0</s>
CREATE TABLE table_name_82 (oberliga_südwest VARCHAR, oberliga_bayern VARCHAR)
SELECT oberliga_südwest FROM table_name_82 WHERE oberliga_bayern = "fc schweinfurt 05"
Which Oberliga Südwest has an Oberliga Bayern of fc schweinfurt 05?
<s>[INST]Which Oberliga Südwest has an Oberliga Bayern of fc schweinfurt 05? Context: CREATE TABLE table_name_82 (oberliga_südwest VARCHAR, oberliga_bayern VARCHAR)[/INST]SELECT oberliga_südwest FROM table_name_82 WHERE oberliga_bayern = "fc schweinfurt 05"</s>
CREATE TABLE table_191105_3 (subject VARCHAR, performed_by VARCHAR)
SELECT subject FROM table_191105_3 WHERE performed_by = "Jaime Aff and Christine Langner"
WHen jaime aff and christine langner are the performers what is the subject?
<s>[INST]WHen jaime aff and christine langner are the performers what is the subject? Context: CREATE TABLE table_191105_3 (subject VARCHAR, performed_by VARCHAR)[/INST]SELECT subject FROM table_191105_3 WHERE performed_by = "Jaime Aff and Christine Langner"</s>
CREATE TABLE table_19149550_9 (bangladeshi_population INTEGER, rank VARCHAR)
SELECT MAX(bangladeshi_population) FROM table_19149550_9 WHERE rank = 14
How many Bangladeshi citizens live in the borough ranked at number 14?
<s>[INST]How many Bangladeshi citizens live in the borough ranked at number 14? Context: CREATE TABLE table_19149550_9 (bangladeshi_population INTEGER, rank VARCHAR)[/INST]SELECT MAX(bangladeshi_population) FROM table_19149550_9 WHERE rank = 14</s>
CREATE TABLE table_name_3 (opponent VARCHAR, round VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_3 WHERE round > 1 AND event = "king of the cage 31"
Which Opponent has a Round larger than 1, and an Event of king of the cage 31?
<s>[INST]Which Opponent has a Round larger than 1, and an Event of king of the cage 31? Context: CREATE TABLE table_name_3 (opponent VARCHAR, round VARCHAR, event VARCHAR)[/INST]SELECT opponent FROM table_name_3 WHERE round > 1 AND event = "king of the cage 31"</s>
CREATE TABLE table_name_85 (genre VARCHAR, developer_s_ VARCHAR)
SELECT genre FROM table_name_85 WHERE developer_s_ = "nintendo ead"
What is the genre of the game developed by Nintendo EAD?
<s>[INST]What is the genre of the game developed by Nintendo EAD? Context: CREATE TABLE table_name_85 (genre VARCHAR, developer_s_ VARCHAR)[/INST]SELECT genre FROM table_name_85 WHERE developer_s_ = "nintendo ead"</s>
CREATE TABLE table_name_72 (nominating_festival VARCHAR, country VARCHAR)
SELECT nominating_festival FROM table_name_72 WHERE country = "united kingdom"
Which nominating festival did United Kingdom enter?
<s>[INST]Which nominating festival did United Kingdom enter? Context: CREATE TABLE table_name_72 (nominating_festival VARCHAR, country VARCHAR)[/INST]SELECT nominating_festival FROM table_name_72 WHERE country = "united kingdom"</s>
CREATE TABLE table_name_21 (round INTEGER, time VARCHAR)
SELECT MIN(round) FROM table_name_21 WHERE time = "0:39"
What round had a time of 0:39?
<s>[INST]What round had a time of 0:39? Context: CREATE TABLE table_name_21 (round INTEGER, time VARCHAR)[/INST]SELECT MIN(round) FROM table_name_21 WHERE time = "0:39"</s>
CREATE TABLE table_name_45 (class VARCHAR, year VARCHAR, points VARCHAR)
SELECT class FROM table_name_45 WHERE year > 1973 AND points = 41
What class is after 1973 with 41 points?
<s>[INST]What class is after 1973 with 41 points? Context: CREATE TABLE table_name_45 (class VARCHAR, year VARCHAR, points VARCHAR)[/INST]SELECT class FROM table_name_45 WHERE year > 1973 AND points = 41</s>
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT 1988 FROM table_name_46 WHERE 1982 = "104"
Which 1988 has a 1982 of 104?
<s>[INST]Which 1988 has a 1982 of 104? Context: CREATE TABLE table_name_46 (Id VARCHAR)[/INST]SELECT 1988 FROM table_name_46 WHERE 1982 = "104"</s>
CREATE TABLE table_name_23 (county VARCHAR)
SELECT MIN(1977) FROM table_name_23 WHERE county = "zzz bucharest" AND 2011 < 1883425
Which 1977 is the lowest one that has a County of zzz bucharest, and a 2011 smaller than 1883425?
<s>[INST]Which 1977 is the lowest one that has a County of zzz bucharest, and a 2011 smaller than 1883425? Context: CREATE TABLE table_name_23 (county VARCHAR)[/INST]SELECT MIN(1977) FROM table_name_23 WHERE county = "zzz bucharest" AND 2011 < 1883425</s>
CREATE TABLE table_name_13 (attendance INTEGER, score VARCHAR)
SELECT MIN(attendance) FROM table_name_13 WHERE score = "5-7"
When the Brewers score was 5-7, what was the lowest attendance?
<s>[INST]When the Brewers score was 5-7, what was the lowest attendance? Context: CREATE TABLE table_name_13 (attendance INTEGER, score VARCHAR)[/INST]SELECT MIN(attendance) FROM table_name_13 WHERE score = "5-7"</s>
CREATE TABLE table_17319931_1 (driver VARCHAR, team VARCHAR)
SELECT COUNT(driver) FROM table_17319931_1 WHERE team = "SAMAX Motorsport"
How many drivers were there for Samax Motorsport?
<s>[INST]How many drivers were there for Samax Motorsport? Context: CREATE TABLE table_17319931_1 (driver VARCHAR, team VARCHAR)[/INST]SELECT COUNT(driver) FROM table_17319931_1 WHERE team = "SAMAX Motorsport"</s>
CREATE TABLE table_name_24 (top_25 INTEGER, events INTEGER)
SELECT SUM(top_25) FROM table_name_24 WHERE events > 91
How many top-25s are associated with more than 91 events?
<s>[INST]How many top-25s are associated with more than 91 events? Context: CREATE TABLE table_name_24 (top_25 INTEGER, events INTEGER)[/INST]SELECT SUM(top_25) FROM table_name_24 WHERE events > 91</s>
CREATE TABLE table_27910411_1 (us_viewers__millions_ VARCHAR, no_in_series VARCHAR)
SELECT COUNT(us_viewers__millions_) FROM table_27910411_1 WHERE no_in_series = 5
How many items are listed for U.S. viewers for episode number 5 in the series?
<s>[INST]How many items are listed for U.S. viewers for episode number 5 in the series? Context: CREATE TABLE table_27910411_1 (us_viewers__millions_ VARCHAR, no_in_series VARCHAR)[/INST]SELECT COUNT(us_viewers__millions_) FROM table_27910411_1 WHERE no_in_series = 5</s>
CREATE TABLE table_22713796_14 (stage VARCHAR, mountains_classification VARCHAR)
SELECT stage FROM table_22713796_14 WHERE mountains_classification = "no award"
Name the stage for no award
<s>[INST]Name the stage for no award Context: CREATE TABLE table_22713796_14 (stage VARCHAR, mountains_classification VARCHAR)[/INST]SELECT stage FROM table_22713796_14 WHERE mountains_classification = "no award"</s>
CREATE TABLE table_name_67 (year_made VARCHAR, class VARCHAR)
SELECT year_made FROM table_name_67 WHERE class = "undine"
What year was class of undine?
<s>[INST]What year was class of undine? Context: CREATE TABLE table_name_67 (year_made VARCHAR, class VARCHAR)[/INST]SELECT year_made FROM table_name_67 WHERE class = "undine"</s>
CREATE TABLE table_name_2 (date_of_polling VARCHAR, liberal VARCHAR, polling_firm VARCHAR, green VARCHAR)
SELECT date_of_polling FROM table_name_2 WHERE polling_firm = "forum research" AND green = 7 AND liberal < 30
On what date of polling was the Polling Firm forum research with 7 green and less than 30 liberals?
<s>[INST]On what date of polling was the Polling Firm forum research with 7 green and less than 30 liberals? Context: CREATE TABLE table_name_2 (date_of_polling VARCHAR, liberal VARCHAR, polling_firm VARCHAR, green VARCHAR)[/INST]SELECT date_of_polling FROM table_name_2 WHERE polling_firm = "forum research" AND green =...
CREATE TABLE table_name_58 (gold VARCHAR, silver VARCHAR, venue VARCHAR)
SELECT gold FROM table_name_58 WHERE silver = "czech republic" AND venue = "bratislava"
Who received the gold at the tournament at bratislava where the Czech Republic received the silver?
<s>[INST]Who received the gold at the tournament at bratislava where the Czech Republic received the silver? Context: CREATE TABLE table_name_58 (gold VARCHAR, silver VARCHAR, venue VARCHAR)[/INST]SELECT gold FROM table_name_58 WHERE silver = "czech republic" AND venue = "bratislava"</s>
CREATE TABLE table_29546142_2 (pa INTEGER, w VARCHAR)
SELECT MIN(pa) FROM table_29546142_2 WHERE w = 2
Name the least pa for w being 2
<s>[INST]Name the least pa for w being 2 Context: CREATE TABLE table_29546142_2 (pa INTEGER, w VARCHAR)[/INST]SELECT MIN(pa) FROM table_29546142_2 WHERE w = 2</s>
CREATE TABLE table_name_4 (goal_difference INTEGER, goals_against VARCHAR, losses VARCHAR)
SELECT AVG(goal_difference) FROM table_name_4 WHERE goals_against = 51 AND losses < 17
What is the average goal difference with 51 goals scored against and less than 17 losses?
<s>[INST]What is the average goal difference with 51 goals scored against and less than 17 losses? Context: CREATE TABLE table_name_4 (goal_difference INTEGER, goals_against VARCHAR, losses VARCHAR)[/INST]SELECT AVG(goal_difference) FROM table_name_4 WHERE goals_against = 51 AND losses < 17</s>
CREATE TABLE table_name_97 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_97 WHERE game = 41
Which Record has a Game of 41?
<s>[INST]Which Record has a Game of 41? Context: CREATE TABLE table_name_97 (record VARCHAR, game VARCHAR)[/INST]SELECT record FROM table_name_97 WHERE game = 41</s>
CREATE TABLE table_name_84 (date VARCHAR, share VARCHAR)
SELECT date FROM table_name_84 WHERE share = "39.1%"
When were the shares 39.1%?
<s>[INST]When were the shares 39.1%? Context: CREATE TABLE table_name_84 (date VARCHAR, share VARCHAR)[/INST]SELECT date FROM table_name_84 WHERE share = "39.1%"</s>
CREATE TABLE Student (StuID VARCHAR, age INTEGER); CREATE TABLE Participates_in (StuID VARCHAR, age INTEGER)
SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20
Show the ids for all the students who participate in an activity and are under 20.
<s>[INST]Show the ids for all the students who participate in an activity and are under 20. Context: CREATE TABLE Student (StuID VARCHAR, age INTEGER); CREATE TABLE Participates_in (StuID VARCHAR, age INTEGER)[/INST]SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20</s>
CREATE TABLE table_10722506_6 (_number_of_bids VARCHAR, conference VARCHAR)
SELECT COUNT(_number_of_bids) FROM table_10722506_6 WHERE conference = "Sun Belt"
Name the total number of bids of the sun belt conference
<s>[INST]Name the total number of bids of the sun belt conference Context: CREATE TABLE table_10722506_6 (_number_of_bids VARCHAR, conference VARCHAR)[/INST]SELECT COUNT(_number_of_bids) FROM table_10722506_6 WHERE conference = "Sun Belt"</s>
CREATE TABLE Companies (Sales_billion INTEGER, Industry VARCHAR)
SELECT MAX(Sales_billion), MIN(Sales_billion) FROM Companies WHERE Industry <> "Banking"
What are the maximum and minimum sales of the companies whose industries are not "Banking".
<s>[INST]What are the maximum and minimum sales of the companies whose industries are not "Banking". Context: CREATE TABLE Companies (Sales_billion INTEGER, Industry VARCHAR)[/INST]SELECT MAX(Sales_billion), MIN(Sales_billion) FROM Companies WHERE Industry <> "Banking"</s>
CREATE TABLE customer_addresses (address_id VARCHAR); CREATE TABLE addresses (state_province_county VARCHAR, address_id VARCHAR)
SELECT t2.state_province_county, COUNT(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id = t2.address_id GROUP BY t2.state_province_county
List the state names and the number of customers living in each state.
<s>[INST]List the state names and the number of customers living in each state. Context: CREATE TABLE customer_addresses (address_id VARCHAR); CREATE TABLE addresses (state_province_county VARCHAR, address_id VARCHAR)[/INST]SELECT t2.state_province_county, COUNT(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON ...
CREATE TABLE table_27666856_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)
SELECT COUNT(date_of_appointment) FROM table_27666856_3 WHERE date_of_vacancy = "26 May 2011"
Name the date of appointment for 26 may 2011
<s>[INST]Name the date of appointment for 26 may 2011 Context: CREATE TABLE table_27666856_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)[/INST]SELECT COUNT(date_of_appointment) FROM table_27666856_3 WHERE date_of_vacancy = "26 May 2011"</s>
CREATE TABLE table_170961_2 (population VARCHAR, area_km_2 VARCHAR)
SELECT population FROM table_170961_2 WHERE area_km_2 = "113.12"
at the area of 113.12, what was the population?
<s>[INST]at the area of 113.12, what was the population? Context: CREATE TABLE table_170961_2 (population VARCHAR, area_km_2 VARCHAR)[/INST]SELECT population FROM table_170961_2 WHERE area_km_2 = "113.12"</s>
CREATE TABLE table_name_69 (score VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_69 WHERE date = "14 december 1974" AND away_team = "crystal palace"
what is the score on 14 december 1974 and the away team is crystal palace?
<s>[INST]what is the score on 14 december 1974 and the away team is crystal palace? Context: CREATE TABLE table_name_69 (score VARCHAR, date VARCHAR, away_team VARCHAR)[/INST]SELECT score FROM table_name_69 WHERE date = "14 december 1974" AND away_team = "crystal palace"</s>
CREATE TABLE table_name_12 (second VARCHAR, alternate VARCHAR)
SELECT second FROM table_name_12 WHERE alternate = "margarita fomina"
Who is the second for the team with alternate Margarita Fomina?
<s>[INST]Who is the second for the team with alternate Margarita Fomina? Context: CREATE TABLE table_name_12 (second VARCHAR, alternate VARCHAR)[/INST]SELECT second FROM table_name_12 WHERE alternate = "margarita fomina"</s>
CREATE TABLE table_10953197_2 (director VARCHAR, production_code VARCHAR)
SELECT director FROM table_10953197_2 WHERE production_code = "2393059"
Who was the director of the episode with a production code of 2393059?
<s>[INST]Who was the director of the episode with a production code of 2393059? Context: CREATE TABLE table_10953197_2 (director VARCHAR, production_code VARCHAR)[/INST]SELECT director FROM table_10953197_2 WHERE production_code = "2393059"</s>
CREATE TABLE table_name_26 (cardiff_win VARCHAR, draw INTEGER)
SELECT COUNT(cardiff_win) FROM table_name_26 WHERE draw > 27
How many cardiff wins have a draw greater than 27?
<s>[INST]How many cardiff wins have a draw greater than 27? Context: CREATE TABLE table_name_26 (cardiff_win VARCHAR, draw INTEGER)[/INST]SELECT COUNT(cardiff_win) FROM table_name_26 WHERE draw > 27</s>
CREATE TABLE table_name_14 (Id VARCHAR)
SELECT SUM(1992) FROM table_name_14 WHERE 1999 > 1 AND 2008 < 2 AND 2003 < 2
what is the listing for 1992 when 1999 is more than 1, 2008 is less than 2 and 2003 is less than 2?
<s>[INST]what is the listing for 1992 when 1999 is more than 1, 2008 is less than 2 and 2003 is less than 2? Context: CREATE TABLE table_name_14 (Id VARCHAR)[/INST]SELECT SUM(1992) FROM table_name_14 WHERE 1999 > 1 AND 2008 < 2 AND 2003 < 2</s>
CREATE TABLE table_26614365_5 (portuguese VARCHAR, english VARCHAR)
SELECT portuguese FROM table_26614365_5 WHERE english = "Grandfather"
What is the Portuguese word for the English word 'grandfather'?
<s>[INST]What is the Portuguese word for the English word 'grandfather'? Context: CREATE TABLE table_26614365_5 (portuguese VARCHAR, english VARCHAR)[/INST]SELECT portuguese FROM table_26614365_5 WHERE english = "Grandfather"</s>
CREATE TABLE table_name_54 (total_viewers__in_millions_ INTEGER, episode_number_production_number VARCHAR)
SELECT MIN(total_viewers__in_millions_) FROM table_name_54 WHERE episode_number_production_number = "109 5-22"
What was the fewest number of viewers for the episode production number of 109 5-22?
<s>[INST]What was the fewest number of viewers for the episode production number of 109 5-22? Context: CREATE TABLE table_name_54 (total_viewers__in_millions_ INTEGER, episode_number_production_number VARCHAR)[/INST]SELECT MIN(total_viewers__in_millions_) FROM table_name_54 WHERE episode_number_production_number = "109...
CREATE TABLE table_name_71 (range__varies_with_payload_weight_ VARCHAR, name_designation VARCHAR)
SELECT range__varies_with_payload_weight_ FROM table_name_71 WHERE name_designation = "shahab-4"
What is the range (varies by payload weight) for Shahab-4?
<s>[INST]What is the range (varies by payload weight) for Shahab-4? Context: CREATE TABLE table_name_71 (range__varies_with_payload_weight_ VARCHAR, name_designation VARCHAR)[/INST]SELECT range__varies_with_payload_weight_ FROM table_name_71 WHERE name_designation = "shahab-4"</s>
CREATE TABLE APPELLATIONS (Area VARCHAR, County VARCHAR)
SELECT Area, County FROM APPELLATIONS
List the area and county of all appelations.
<s>[INST]List the area and county of all appelations. Context: CREATE TABLE APPELLATIONS (Area VARCHAR, County VARCHAR)[/INST]SELECT Area, County FROM APPELLATIONS</s>
CREATE TABLE table_name_69 (team VARCHAR, stadium VARCHAR, top_division_titles VARCHAR, founded VARCHAR)
SELECT team FROM table_name_69 WHERE top_division_titles > 0 AND founded > 1927 AND stadium = "miguel grau"
Which team has Top division titles larger than 0, a Founded larger than 1927, and a Stadium of miguel grau?
<s>[INST]Which team has Top division titles larger than 0, a Founded larger than 1927, and a Stadium of miguel grau? Context: CREATE TABLE table_name_69 (team VARCHAR, stadium VARCHAR, top_division_titles VARCHAR, founded VARCHAR)[/INST]SELECT team FROM table_name_69 WHERE top_division_titles > 0 AND founded > 1927 AND...
CREATE TABLE book (Title VARCHAR, Issues VARCHAR)
SELECT Title FROM book ORDER BY Issues
List the titles of the books in ascending order of issues.
<s>[INST]List the titles of the books in ascending order of issues. Context: CREATE TABLE book (Title VARCHAR, Issues VARCHAR)[/INST]SELECT Title FROM book ORDER BY Issues</s>
CREATE TABLE table_23680576_3 (week_32 VARCHAR, week_33 VARCHAR)
SELECT week_32 FROM table_23680576_3 WHERE week_33 = "31.9%"
What is the week 32 result when week 33 is 31.9%?
<s>[INST]What is the week 32 result when week 33 is 31.9%? Context: CREATE TABLE table_23680576_3 (week_32 VARCHAR, week_33 VARCHAR)[/INST]SELECT week_32 FROM table_23680576_3 WHERE week_33 = "31.9%"</s>
CREATE TABLE table_16295365_2 (school VARCHAR, conf_record VARCHAR)
SELECT school FROM table_16295365_2 WHERE conf_record = "12-6"
Name the school where conference record is 12-6
<s>[INST]Name the school where conference record is 12-6 Context: CREATE TABLE table_16295365_2 (school VARCHAR, conf_record VARCHAR)[/INST]SELECT school FROM table_16295365_2 WHERE conf_record = "12-6"</s>
CREATE TABLE table_name_79 (points INTEGER, drawn VARCHAR, position VARCHAR)
SELECT SUM(points) FROM table_name_79 WHERE drawn > 2 AND position > 5
What is the sum of points for a position over 5 with more than 2 draws?
<s>[INST]What is the sum of points for a position over 5 with more than 2 draws? Context: CREATE TABLE table_name_79 (points INTEGER, drawn VARCHAR, position VARCHAR)[/INST]SELECT SUM(points) FROM table_name_79 WHERE drawn > 2 AND position > 5</s>
CREATE TABLE table_name_71 (attendance INTEGER, result VARCHAR)
SELECT AVG(attendance) FROM table_name_71 WHERE result = "w 21–7"
What was the Attendance at the Game with a Result of w 21–7?
<s>[INST]What was the Attendance at the Game with a Result of w 21–7? Context: CREATE TABLE table_name_71 (attendance INTEGER, result VARCHAR)[/INST]SELECT AVG(attendance) FROM table_name_71 WHERE result = "w 21–7"</s>
CREATE TABLE table_2850912_10 (player VARCHAR, nhl_team VARCHAR)
SELECT player FROM table_2850912_10 WHERE nhl_team = "New York Rangers"
Which player was drafted by the New York Rangers?
<s>[INST]Which player was drafted by the New York Rangers? Context: CREATE TABLE table_2850912_10 (player VARCHAR, nhl_team VARCHAR)[/INST]SELECT player FROM table_2850912_10 WHERE nhl_team = "New York Rangers"</s>
CREATE TABLE player (Player VARCHAR, Years_Played VARCHAR)
SELECT Player, Years_Played FROM player
Show the players and the years played.
<s>[INST]Show the players and the years played. Context: CREATE TABLE player (Player VARCHAR, Years_Played VARCHAR)[/INST]SELECT Player, Years_Played FROM player</s>
CREATE TABLE table_name_28 (nationality VARCHAR, points VARCHAR)
SELECT MIN(1 AS st__m_) FROM table_name_28 WHERE nationality = "aut" AND points > 273.5
Which 1st (m) is the lowest one that has a Nationality of aut, and Points larger than 273.5?
<s>[INST]Which 1st (m) is the lowest one that has a Nationality of aut, and Points larger than 273.5? Context: CREATE TABLE table_name_28 (nationality VARCHAR, points VARCHAR)[/INST]SELECT MIN(1 AS st__m_) FROM table_name_28 WHERE nationality = "aut" AND points > 273.5</s>
CREATE TABLE table_name_90 (season VARCHAR, date VARCHAR)
SELECT season FROM table_name_90 WHERE date = "may 11, 2002"
During which Season did the may 11, 2002 event take place?
<s>[INST]During which Season did the may 11, 2002 event take place? Context: CREATE TABLE table_name_90 (season VARCHAR, date VARCHAR)[/INST]SELECT season FROM table_name_90 WHERE date = "may 11, 2002"</s>
CREATE TABLE table_name_73 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_73 WHERE college = "appalachian state"
What is the Player from appalachian state?
<s>[INST]What is the Player from appalachian state? Context: CREATE TABLE table_name_73 (player VARCHAR, college VARCHAR)[/INST]SELECT player FROM table_name_73 WHERE college = "appalachian state"</s>
CREATE TABLE table_17288861_9 (high_assists VARCHAR, score VARCHAR)
SELECT high_assists FROM table_17288861_9 WHERE score = "L 93–103 (OT)"
Name the high assists for l 93–103 (ot)
<s>[INST]Name the high assists for l 93–103 (ot) Context: CREATE TABLE table_17288861_9 (high_assists VARCHAR, score VARCHAR)[/INST]SELECT high_assists FROM table_17288861_9 WHERE score = "L 93–103 (OT)"</s>
CREATE TABLE table_name_96 (grid INTEGER, laps VARCHAR, points VARCHAR, driver VARCHAR)
SELECT MIN(grid) FROM table_name_96 WHERE points > 11 AND driver = "sébastien bourdais" AND laps < 67
Tell me the least Grid with points more than 11 and drivers being sébastien bourdais with laps less than 67
<s>[INST]Tell me the least Grid with points more than 11 and drivers being sébastien bourdais with laps less than 67 Context: CREATE TABLE table_name_96 (grid INTEGER, laps VARCHAR, points VARCHAR, driver VARCHAR)[/INST]SELECT MIN(grid) FROM table_name_96 WHERE points > 11 AND driver = "sébastien bourdais" AND laps < 6...
CREATE TABLE table_25438110_5 (casinos VARCHAR, fy09_$millions VARCHAR)
SELECT COUNT(casinos) FROM table_25438110_5 WHERE fy09_$millions = "$279"
How many casinos are associated with a FY2009 $mil value of exactly $279?
<s>[INST]How many casinos are associated with a FY2009 $mil value of exactly $279? Context: CREATE TABLE table_25438110_5 (casinos VARCHAR, fy09_$millions VARCHAR)[/INST]SELECT COUNT(casinos) FROM table_25438110_5 WHERE fy09_$millions = "$279"</s>
CREATE TABLE table_29566606_11 (programme VARCHAR, original_channel_s_ VARCHAR)
SELECT programme FROM table_29566606_11 WHERE original_channel_s_ = "CITV"
Which programs were originally broadcast on CITV?
<s>[INST]Which programs were originally broadcast on CITV? Context: CREATE TABLE table_29566606_11 (programme VARCHAR, original_channel_s_ VARCHAR)[/INST]SELECT programme FROM table_29566606_11 WHERE original_channel_s_ = "CITV"</s>
CREATE TABLE table_name_7 (season VARCHAR, professional_partner VARCHAR, average VARCHAR, rank VARCHAR)
SELECT season FROM table_name_7 WHERE average < 28 AND rank < 10 AND professional_partner = "janja lesar"
Which season had an average under 28, a rank under 10, and a partner of Janja Lesar?
<s>[INST]Which season had an average under 28, a rank under 10, and a partner of Janja Lesar? Context: CREATE TABLE table_name_7 (season VARCHAR, professional_partner VARCHAR, average VARCHAR, rank VARCHAR)[/INST]SELECT season FROM table_name_7 WHERE average < 28 AND rank < 10 AND professional_partner = "janja lesar"</...
CREATE TABLE table_29635868_1 (origin VARCHAR, title_ VARCHAR, _link_to_episode_on_youtube VARCHAR)
SELECT COUNT(origin) FROM table_29635868_1 WHERE title_ & _link_to_episode_on_youtube = "Samoan Cricket Bats"
How many origins have titles of Samoan cricket bats?
<s>[INST]How many origins have titles of Samoan cricket bats? Context: CREATE TABLE table_29635868_1 (origin VARCHAR, title_ VARCHAR, _link_to_episode_on_youtube VARCHAR)[/INST]SELECT COUNT(origin) FROM table_29635868_1 WHERE title_ & _link_to_episode_on_youtube = "Samoan Cricket Bats"</s>
CREATE TABLE table_name_1 (engine VARCHAR, rounds VARCHAR, driver VARCHAR, tyres VARCHAR, chassis VARCHAR)
SELECT engine FROM table_name_1 WHERE tyres = "g" AND chassis = "d3 d4" AND driver = "jan lammers" AND rounds = "4-6"
What engine was used during the race driven by Jan Lammers using a chassis of d3 d4, making a tyre of g and rounds of 4-6?
<s>[INST]What engine was used during the race driven by Jan Lammers using a chassis of d3 d4, making a tyre of g and rounds of 4-6? Context: CREATE TABLE table_name_1 (engine VARCHAR, rounds VARCHAR, driver VARCHAR, tyres VARCHAR, chassis VARCHAR)[/INST]SELECT engine FROM table_name_1 WHERE tyres = "g" AND chassis = "d...
CREATE TABLE table_name_26 (date VARCHAR, player VARCHAR, original_team VARCHAR, result VARCHAR)
SELECT date FROM table_name_26 WHERE original_team = "vancouver canucks" AND result = "matched" AND player = "ryan kesler"
What date has Vancouver Canucks as the original team, Ryan Kesler as the player, and matched as the Result?
<s>[INST]What date has Vancouver Canucks as the original team, Ryan Kesler as the player, and matched as the Result? Context: CREATE TABLE table_name_26 (date VARCHAR, player VARCHAR, original_team VARCHAR, result VARCHAR)[/INST]SELECT date FROM table_name_26 WHERE original_team = "vancouver canucks" AND result = "matc...
CREATE TABLE table_name_83 (round INTEGER, opponent VARCHAR)
SELECT AVG(round) FROM table_name_83 WHERE opponent = "jorge magalhaes"
Which Round has an Opponent of jorge magalhaes?
<s>[INST]Which Round has an Opponent of jorge magalhaes? Context: CREATE TABLE table_name_83 (round INTEGER, opponent VARCHAR)[/INST]SELECT AVG(round) FROM table_name_83 WHERE opponent = "jorge magalhaes"</s>
CREATE TABLE table_name_5 (second VARCHAR, premier VARCHAR, first VARCHAR, season VARCHAR)
SELECT COUNT(second) FROM table_name_5 WHERE first > 18 AND season = "1992-93" AND premier > 16
What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Premier is greater than 16?
<s>[INST]What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Premier is greater than 16? Context: CREATE TABLE table_name_5 (second VARCHAR, premier VARCHAR, first VARCHAR, season VARCHAR)[/INST]SELECT COUNT(second) FROM table_name_5 WHERE first > 18 AND season = "1992-93...
CREATE TABLE table_name_75 (report VARCHAR, time VARCHAR)
SELECT report FROM table_name_75 WHERE time = "12:30"
What is the report in the tournament that started at 12:30?
<s>[INST]What is the report in the tournament that started at 12:30? Context: CREATE TABLE table_name_75 (report VARCHAR, time VARCHAR)[/INST]SELECT report FROM table_name_75 WHERE time = "12:30"</s>
CREATE TABLE table_name_14 (pick INTEGER, position VARCHAR, round VARCHAR)
SELECT AVG(pick) FROM table_name_14 WHERE position = "pg" AND round < 1
What is the average Pick with a Position of pg, and a Round less than 1?
<s>[INST]What is the average Pick with a Position of pg, and a Round less than 1? Context: CREATE TABLE table_name_14 (pick INTEGER, position VARCHAR, round VARCHAR)[/INST]SELECT AVG(pick) FROM table_name_14 WHERE position = "pg" AND round < 1</s>
CREATE TABLE table_name_86 (time VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_86 WHERE opponent = "phil collins"
What is the time when the opponent is phil collins?
<s>[INST]What is the time when the opponent is phil collins? Context: CREATE TABLE table_name_86 (time VARCHAR, opponent VARCHAR)[/INST]SELECT time FROM table_name_86 WHERE opponent = "phil collins"</s>
CREATE TABLE table_name_32 (qual_2 VARCHAR, best VARCHAR)
SELECT qual_2 FROM table_name_32 WHERE best = "1:45.172"
What is the qual 2 when the best is 1:45.172?
<s>[INST]What is the qual 2 when the best is 1:45.172? Context: CREATE TABLE table_name_32 (qual_2 VARCHAR, best VARCHAR)[/INST]SELECT qual_2 FROM table_name_32 WHERE best = "1:45.172"</s>
CREATE TABLE drivers (surname VARCHAR, driverid VARCHAR); CREATE TABLE results (driverid VARCHAR); CREATE TABLE pitstops (driverid VARCHAR)
SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) = 11 INTERSECT SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 5
What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results?
<s>[INST]What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results? Context: CREATE TABLE drivers (surname VARCHAR, driverid VARCHAR); CREATE TABLE results (driverid VARCHAR); CREATE TABLE pitstops (driverid VARCHAR)[/INST]SELECT T1.surname, T1.driverid FROM drivers AS T1...
CREATE TABLE table_name_79 (rank INTEGER, year VARCHAR, accolade VARCHAR)
SELECT MIN(rank) FROM table_name_79 WHERE year > 2009 AND accolade = "125 best albums of the past 25 years"
What was the lowest rank after 2009 with an accolade of 125 best albums of the past 25 years?
<s>[INST]What was the lowest rank after 2009 with an accolade of 125 best albums of the past 25 years? Context: CREATE TABLE table_name_79 (rank INTEGER, year VARCHAR, accolade VARCHAR)[/INST]SELECT MIN(rank) FROM table_name_79 WHERE year > 2009 AND accolade = "125 best albums of the past 25 years"</s>
CREATE TABLE table_name_12 (track INTEGER, catalogue VARCHAR, time VARCHAR)
SELECT SUM(track) FROM table_name_12 WHERE catalogue = "epa 4054" AND time = "2:05"
What is the sum of every track with a catalogue of EPA 4054 with a 2:05 length?
<s>[INST]What is the sum of every track with a catalogue of EPA 4054 with a 2:05 length? Context: CREATE TABLE table_name_12 (track INTEGER, catalogue VARCHAR, time VARCHAR)[/INST]SELECT SUM(track) FROM table_name_12 WHERE catalogue = "epa 4054" AND time = "2:05"</s>
CREATE TABLE table_name_86 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
SELECT AVG(bronze) FROM table_name_86 WHERE gold > 0 AND silver < 0
What is the average bronze medal when gold is greater than 0, and there is less than 0 silver medals?
<s>[INST]What is the average bronze medal when gold is greater than 0, and there is less than 0 silver medals? Context: CREATE TABLE table_name_86 (bronze INTEGER, gold VARCHAR, silver VARCHAR)[/INST]SELECT AVG(bronze) FROM table_name_86 WHERE gold > 0 AND silver < 0</s>
CREATE TABLE table_name_74 (week VARCHAR, attendance INTEGER)
SELECT COUNT(week) FROM table_name_74 WHERE attendance > 68 OFFSET 000
How many weeks had an attendance of over 68,000?
<s>[INST]How many weeks had an attendance of over 68,000? Context: CREATE TABLE table_name_74 (week VARCHAR, attendance INTEGER)[/INST]SELECT COUNT(week) FROM table_name_74 WHERE attendance > 68 OFFSET 000</s>
CREATE TABLE table_name_5 (bluetooth VARCHAR, wifi VARCHAR, launch_year VARCHAR, rom___mib__ VARCHAR)
SELECT bluetooth FROM table_name_5 WHERE launch_year > 2004 AND rom___mib__ = 128 AND wifi = "802.11b"
What was the status of Bluetooth for the model that launched after 2004 with a ROM (MiB) of 128 and a Wifi of 802.11b?
<s>[INST]What was the status of Bluetooth for the model that launched after 2004 with a ROM (MiB) of 128 and a Wifi of 802.11b? Context: CREATE TABLE table_name_5 (bluetooth VARCHAR, wifi VARCHAR, launch_year VARCHAR, rom___mib__ VARCHAR)[/INST]SELECT bluetooth FROM table_name_5 WHERE launch_year > 2004 AND rom___mib__...
CREATE TABLE table_13564637_4 (Id VARCHAR)
SELECT "points" AS _against FROM table_13564637_4 WHERE "points" = "points"
What is the name of the column points against?
<s>[INST]What is the name of the column points against? Context: CREATE TABLE table_13564637_4 (Id VARCHAR)[/INST]SELECT "points" AS _against FROM table_13564637_4 WHERE "points" = "points"</s>
CREATE TABLE table_name_94 (evening_gown INTEGER, state VARCHAR, interview VARCHAR)
SELECT MAX(evening_gown) FROM table_name_94 WHERE state = "north carolina" AND interview < 9.214
What is the highest evening gown number in North Carolina with less than 9.214 interviews?
<s>[INST]What is the highest evening gown number in North Carolina with less than 9.214 interviews? Context: CREATE TABLE table_name_94 (evening_gown INTEGER, state VARCHAR, interview VARCHAR)[/INST]SELECT MAX(evening_gown) FROM table_name_94 WHERE state = "north carolina" AND interview < 9.214</s>
CREATE TABLE table_name_15 (pick INTEGER, player VARCHAR)
SELECT AVG(pick) FROM table_name_15 WHERE player = "mark joseph kong"
What is Mark Joseph Kong's pick?
<s>[INST]What is Mark Joseph Kong's pick? Context: CREATE TABLE table_name_15 (pick INTEGER, player VARCHAR)[/INST]SELECT AVG(pick) FROM table_name_15 WHERE player = "mark joseph kong"</s>
CREATE TABLE table_27690037_2 (kickoff VARCHAR, game_site VARCHAR)
SELECT kickoff FROM table_27690037_2 WHERE game_site = "Rheinstadion"
Name the kickoff for rheinstadion
<s>[INST]Name the kickoff for rheinstadion Context: CREATE TABLE table_27690037_2 (kickoff VARCHAR, game_site VARCHAR)[/INST]SELECT kickoff FROM table_27690037_2 WHERE game_site = "Rheinstadion"</s>
CREATE TABLE table_name_65 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT SUM(points) FROM table_name_65 WHERE entrant = "escuderia bandeirantes" AND year < 1952
What is the number of points for the Entrant of escuderia bandeirantes earlier than 1952?
<s>[INST]What is the number of points for the Entrant of escuderia bandeirantes earlier than 1952? Context: CREATE TABLE table_name_65 (points INTEGER, entrant VARCHAR, year VARCHAR)[/INST]SELECT SUM(points) FROM table_name_65 WHERE entrant = "escuderia bandeirantes" AND year < 1952</s>
CREATE TABLE products (product_details VARCHAR)
SELECT DISTINCT product_details FROM products
What are the details of all products?
<s>[INST]What are the details of all products? Context: CREATE TABLE products (product_details VARCHAR)[/INST]SELECT DISTINCT product_details FROM products</s>
CREATE TABLE table_name_42 (lost INTEGER, name VARCHAR, drawn VARCHAR)
SELECT SUM(lost) FROM table_name_42 WHERE name = "ev bruckberg" AND drawn > 1
How many losses did ev bruckberg have when the drawn was more than 1?
<s>[INST]How many losses did ev bruckberg have when the drawn was more than 1? Context: CREATE TABLE table_name_42 (lost INTEGER, name VARCHAR, drawn VARCHAR)[/INST]SELECT SUM(lost) FROM table_name_42 WHERE name = "ev bruckberg" AND drawn > 1</s>
CREATE TABLE table_name_91 (pick__number VARCHAR, college VARCHAR)
SELECT pick__number FROM table_name_91 WHERE college = "idaho state"
Which 2006 cfl draft pick played college ball at Idaho state?
<s>[INST]Which 2006 cfl draft pick played college ball at Idaho state? Context: CREATE TABLE table_name_91 (pick__number VARCHAR, college VARCHAR)[/INST]SELECT pick__number FROM table_name_91 WHERE college = "idaho state"</s>
CREATE TABLE table_23927423_4 (teams INTEGER)
SELECT MIN(teams) FROM table_23927423_4
How many were the minimum team that participated in the league?
<s>[INST]How many were the minimum team that participated in the league? Context: CREATE TABLE table_23927423_4 (teams INTEGER)[/INST]SELECT MIN(teams) FROM table_23927423_4</s>
CREATE TABLE stadium (Id VARCHAR)
SELECT COUNT(*) FROM stadium
How many stadiums are there?
<s>[INST]How many stadiums are there? Context: CREATE TABLE stadium (Id VARCHAR)[/INST]SELECT COUNT(*) FROM stadium</s>
CREATE TABLE table_name_65 (american VARCHAR, australian VARCHAR)
SELECT american FROM table_name_65 WHERE australian = "əʉ"
What does American have if Australia has əʉ?
<s>[INST]What does American have if Australia has əʉ? Context: CREATE TABLE table_name_65 (american VARCHAR, australian VARCHAR)[/INST]SELECT american FROM table_name_65 WHERE australian = "əʉ"</s>
CREATE TABLE table_name_61 (phonetic_realisation VARCHAR, without_niqqud VARCHAR)
SELECT phonetic_realisation FROM table_name_61 WHERE without_niqqud = "as final letter: ו or יו"
If a variant without niqqud is as final letter: ו or יו, what is the phonetic realisation?
<s>[INST]If a variant without niqqud is as final letter: ו or יו, what is the phonetic realisation? Context: CREATE TABLE table_name_61 (phonetic_realisation VARCHAR, without_niqqud VARCHAR)[/INST]SELECT phonetic_realisation FROM table_name_61 WHERE without_niqqud = "as final letter: ו or יו"</s>
CREATE TABLE table_name_72 (rank INTEGER, airport VARCHAR)
SELECT MAX(rank) FROM table_name_72 WHERE airport = "tokyo international airport"
What is the highest rank of Tokyo International Airport?
<s>[INST]What is the highest rank of Tokyo International Airport? Context: CREATE TABLE table_name_72 (rank INTEGER, airport VARCHAR)[/INST]SELECT MAX(rank) FROM table_name_72 WHERE airport = "tokyo international airport"</s>
CREATE TABLE table_name_99 (Id VARCHAR)
SELECT 1978 FROM table_name_99 WHERE 1976 = "62%"
What 1978 has a 1976 of 62%?
<s>[INST]What 1978 has a 1976 of 62%? Context: CREATE TABLE table_name_99 (Id VARCHAR)[/INST]SELECT 1978 FROM table_name_99 WHERE 1976 = "62%"</s>
CREATE TABLE table_name_88 (total INTEGER, t_score INTEGER)
SELECT SUM(total) FROM table_name_88 WHERE t_score < 6.8
What is the total of the team with a T score less than 6.8?
<s>[INST]What is the total of the team with a T score less than 6.8? Context: CREATE TABLE table_name_88 (total INTEGER, t_score INTEGER)[/INST]SELECT SUM(total) FROM table_name_88 WHERE t_score < 6.8</s>
CREATE TABLE table_name_41 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_41 WHERE date = "october 24"
What was the record on October 24?
<s>[INST]What was the record on October 24? Context: CREATE TABLE table_name_41 (record VARCHAR, date VARCHAR)[/INST]SELECT record FROM table_name_41 WHERE date = "october 24"</s>
CREATE TABLE table_name_77 (position VARCHAR, team VARCHAR)
SELECT position FROM table_name_77 WHERE team = "cincinnati royals"
What is Position, when Team is Cincinnati Royals?
<s>[INST]What is Position, when Team is Cincinnati Royals? Context: CREATE TABLE table_name_77 (position VARCHAR, team VARCHAR)[/INST]SELECT position FROM table_name_77 WHERE team = "cincinnati royals"</s>
CREATE TABLE table_name_56 (visiting_team VARCHAR, stadium VARCHAR, date VARCHAR)
SELECT visiting_team FROM table_name_56 WHERE stadium = "servus centre" AND date = "march 7"
Which Visiting Team has a Stadium of servus centre on march 7?
<s>[INST]Which Visiting Team has a Stadium of servus centre on march 7? Context: CREATE TABLE table_name_56 (visiting_team VARCHAR, stadium VARCHAR, date VARCHAR)[/INST]SELECT visiting_team FROM table_name_56 WHERE stadium = "servus centre" AND date = "march 7"</s>
CREATE TABLE table_name_94 (date VARCHAR, lot_no VARCHAR, boiler_type VARCHAR, built_at VARCHAR)
SELECT COUNT(date) FROM table_name_94 WHERE boiler_type = "forward topfeed" AND built_at = "crewe" AND lot_no < 187
What year is the date when the boiler type is forward topfeed, the built at is Crewe, and lot number is less than 187?
<s>[INST]What year is the date when the boiler type is forward topfeed, the built at is Crewe, and lot number is less than 187? Context: CREATE TABLE table_name_94 (date VARCHAR, lot_no VARCHAR, boiler_type VARCHAR, built_at VARCHAR)[/INST]SELECT COUNT(date) FROM table_name_94 WHERE boiler_type = "forward topfeed" AND ...
CREATE TABLE table_name_51 (class VARCHAR, name VARCHAR)
SELECT class FROM table_name_51 WHERE name = "hms fowey"
What's the class of the HMS Fowey?
<s>[INST]What's the class of the HMS Fowey? Context: CREATE TABLE table_name_51 (class VARCHAR, name VARCHAR)[/INST]SELECT class FROM table_name_51 WHERE name = "hms fowey"</s>
CREATE TABLE table_name_91 (avg_finish INTEGER, year VARCHAR, starts VARCHAR)
SELECT SUM(avg_finish) FROM table_name_91 WHERE year = 2007 AND starts < 1
in 2007, what is the avg finish that had a start less than 1?
<s>[INST]in 2007, what is the avg finish that had a start less than 1? Context: CREATE TABLE table_name_91 (avg_finish INTEGER, year VARCHAR, starts VARCHAR)[/INST]SELECT SUM(avg_finish) FROM table_name_91 WHERE year = 2007 AND starts < 1</s>
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT AVG(attendance) FROM table_name_40 WHERE date = "november 29, 1981" AND week > 13
What was the average number of attendance for the game on November 29, 1981 played after week 13?
<s>[INST]What was the average number of attendance for the game on November 29, 1981 played after week 13? Context: CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR)[/INST]SELECT AVG(attendance) FROM table_name_40 WHERE date = "november 29, 1981" AND week > 13</s>
CREATE TABLE table_name_5 (enrollment INTEGER, school VARCHAR)
SELECT SUM(enrollment) FROM table_name_5 WHERE school = "fort wayne homestead"
How much Enrollment has a School of fort wayne homestead?
<s>[INST]How much Enrollment has a School of fort wayne homestead? Context: CREATE TABLE table_name_5 (enrollment INTEGER, school VARCHAR)[/INST]SELECT SUM(enrollment) FROM table_name_5 WHERE school = "fort wayne homestead"</s>
CREATE TABLE table_name_89 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_89 WHERE attendance = "73,529"
What was the date when the attendance was 73,529?
<s>[INST]What was the date when the attendance was 73,529? Context: CREATE TABLE table_name_89 (date VARCHAR, attendance VARCHAR)[/INST]SELECT date FROM table_name_89 WHERE attendance = "73,529"</s>
CREATE TABLE table_name_19 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_19 WHERE home_team = "lincoln city"
Who was the away team when Lincoln City was the home team?
<s>[INST]Who was the away team when Lincoln City was the home team? Context: CREATE TABLE table_name_19 (away_team VARCHAR, home_team VARCHAR)[/INST]SELECT away_team FROM table_name_19 WHERE home_team = "lincoln city"</s>