context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_83 (position VARCHAR, hometown VARCHAR)
SELECT position FROM table_name_83 WHERE hometown = "beaumont, texas"
What is the position of the player from Beaumont, Texas?
<s>[INST]What is the position of the player from Beaumont, Texas? Context: CREATE TABLE table_name_83 (position VARCHAR, hometown VARCHAR)[/INST]SELECT position FROM table_name_83 WHERE hometown = "beaumont, texas"</s>
CREATE TABLE table_12032893_1 (height VARCHAR, position VARCHAR, high_school VARCHAR)
SELECT height FROM table_12032893_1 WHERE position = "Forward" AND high_school = "Crockett"
What height was the forward position at Crockett High School?
<s>[INST]What height was the forward position at Crockett High School? Context: CREATE TABLE table_12032893_1 (height VARCHAR, position VARCHAR, high_school VARCHAR)[/INST]SELECT height FROM table_12032893_1 WHERE position = "Forward" AND high_school = "Crockett"</s>
CREATE TABLE table_1936678_1 (class_1 VARCHAR, best_uk_team VARCHAR, class_1a VARCHAR)
SELECT class_1 - 200 FROM table_1936678_1 WHERE best_uk_team = "University of Hertfordshire" AND class_1a = "University of Warwick"
Name the class 1-200 for university of hertfordshire for university of warwick
<s>[INST]Name the class 1-200 for university of hertfordshire for university of warwick Context: CREATE TABLE table_1936678_1 (class_1 VARCHAR, best_uk_team VARCHAR, class_1a VARCHAR)[/INST]SELECT class_1 - 200 FROM table_1936678_1 WHERE best_uk_team = "University of Hertfordshire" AND class_1a = "University of Warwick...
CREATE TABLE table_name_9 (home VARCHAR, decision VARCHAR, date VARCHAR)
SELECT home FROM table_name_9 WHERE decision = "kolzig" AND date = "november 5"
Which home has a Decision of kolzig, and a Date of november 5?
<s>[INST]Which home has a Decision of kolzig, and a Date of november 5? Context: CREATE TABLE table_name_9 (home VARCHAR, decision VARCHAR, date VARCHAR)[/INST]SELECT home FROM table_name_9 WHERE decision = "kolzig" AND date = "november 5"</s>
CREATE TABLE table_13758945_1 (lost VARCHAR, points_for VARCHAR)
SELECT lost FROM table_13758945_1 WHERE points_for = "353"
What are the lost where points lost is 353?
<s>[INST]What are the lost where points lost is 353? Context: CREATE TABLE table_13758945_1 (lost VARCHAR, points_for VARCHAR)[/INST]SELECT lost FROM table_13758945_1 WHERE points_for = "353"</s>
CREATE TABLE table_30060356_3 (event INTEGER)
SELECT MAX(event) FROM table_30060356_3
What is the highest numbered event?
<s>[INST]What is the highest numbered event? Context: CREATE TABLE table_30060356_3 (event INTEGER)[/INST]SELECT MAX(event) FROM table_30060356_3</s>
CREATE TABLE table_23606500_4 (_percentage_20_39 VARCHAR, _percentage_0_19 VARCHAR)
SELECT _percentage_20_39 FROM table_23606500_4 WHERE _percentage_0_19 = "21,11%"
What is every value for % 20-39 if % 0-19 is 21,11%?
<s>[INST]What is every value for % 20-39 if % 0-19 is 21,11%? Context: CREATE TABLE table_23606500_4 (_percentage_20_39 VARCHAR, _percentage_0_19 VARCHAR)[/INST]SELECT _percentage_20_39 FROM table_23606500_4 WHERE _percentage_0_19 = "21,11%"</s>
CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_53 WHERE venue = "arden street oval"
Who was the away team at the game held at Arden Street Oval?
<s>[INST]Who was the away team at the game held at Arden Street Oval? Context: CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR)[/INST]SELECT away_team FROM table_name_53 WHERE venue = "arden street oval"</s>
CREATE TABLE table_29506171_2 (money_list_rank VARCHAR, top_10s VARCHAR)
SELECT money_list_rank FROM table_29506171_2 WHERE top_10s = 0
What was the money list rank for Reid in the year that she had 0 top 10s?
<s>[INST]What was the money list rank for Reid in the year that she had 0 top 10s? Context: CREATE TABLE table_29506171_2 (money_list_rank VARCHAR, top_10s VARCHAR)[/INST]SELECT money_list_rank FROM table_29506171_2 WHERE top_10s = 0</s>
CREATE TABLE table_1341672_10 (result VARCHAR, candidates VARCHAR)
SELECT result FROM table_1341672_10 WHERE candidates = "Robert L. F. Sikes (D) Unopposed"
what is the result where the candidates is robert l. f. sikes (d) unopposed?
<s>[INST]what is the result where the candidates is robert l. f. sikes (d) unopposed? Context: CREATE TABLE table_1341672_10 (result VARCHAR, candidates VARCHAR)[/INST]SELECT result FROM table_1341672_10 WHERE candidates = "Robert L. F. Sikes (D) Unopposed"</s>
CREATE TABLE table_name_32 (date VARCHAR, runner_s__up VARCHAR)
SELECT date FROM table_name_32 WHERE runner_s__up = "jerilyn britz"
On what date is Jerilyn Britz the runner-up?
<s>[INST]On what date is Jerilyn Britz the runner-up? Context: CREATE TABLE table_name_32 (date VARCHAR, runner_s__up VARCHAR)[/INST]SELECT date FROM table_name_32 WHERE runner_s__up = "jerilyn britz"</s>
CREATE TABLE table_name_5 (malaysia_cup VARCHAR, total INTEGER)
SELECT COUNT(malaysia_cup) FROM table_name_5 WHERE total < 0
How many Malaysia Cups have a total less than 0?
<s>[INST]How many Malaysia Cups have a total less than 0? Context: CREATE TABLE table_name_5 (malaysia_cup VARCHAR, total INTEGER)[/INST]SELECT COUNT(malaysia_cup) FROM table_name_5 WHERE total < 0</s>
CREATE TABLE table_name_55 (pitcher VARCHAR, inn VARCHAR)
SELECT pitcher FROM table_name_55 WHERE inn = "7th"
Who was the pitcher with the record recorded in the 7th inning?
<s>[INST]Who was the pitcher with the record recorded in the 7th inning? Context: CREATE TABLE table_name_55 (pitcher VARCHAR, inn VARCHAR)[/INST]SELECT pitcher FROM table_name_55 WHERE inn = "7th"</s>
CREATE TABLE shop (district VARCHAR, Number_products INTEGER)
SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000
Which district has both stores with less than 3000 products and stores with more than 10000 products?
<s>[INST]Which district has both stores with less than 3000 products and stores with more than 10000 products? Context: CREATE TABLE shop (district VARCHAR, Number_products INTEGER)[/INST]SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000</s>
CREATE TABLE table_name_53 (country VARCHAR, winter_olympics VARCHAR)
SELECT country FROM table_name_53 WHERE winter_olympics = "1960"
With the Winter Olympics was 1960, what was the country?
<s>[INST]With the Winter Olympics was 1960, what was the country? Context: CREATE TABLE table_name_53 (country VARCHAR, winter_olympics VARCHAR)[/INST]SELECT country FROM table_name_53 WHERE winter_olympics = "1960"</s>
CREATE TABLE table_21330550_2 (location VARCHAR, big_ten_team VARCHAR)
SELECT COUNT(location) FROM table_21330550_2 WHERE big_ten_team = "#12 Michigan State"
How many locations have #12 Michigan State as the big ten team?
<s>[INST]How many locations have #12 Michigan State as the big ten team? Context: CREATE TABLE table_21330550_2 (location VARCHAR, big_ten_team VARCHAR)[/INST]SELECT COUNT(location) FROM table_21330550_2 WHERE big_ten_team = "#12 Michigan State"</s>
CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_71 WHERE date = "27 jan 1990" AND away_team = "queens park rangers"
What is the Score on 27 Jan 1990 with an Away Team of Queens Park Rangers?
<s>[INST]What is the Score on 27 Jan 1990 with an Away Team of Queens Park Rangers? Context: CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR, away_team VARCHAR)[/INST]SELECT score FROM table_name_71 WHERE date = "27 jan 1990" AND away_team = "queens park rangers"</s>
CREATE TABLE table_name_80 (tournament VARCHAR, ground VARCHAR, round VARCHAR)
SELECT tournament FROM table_name_80 WHERE ground = "a" AND round = "8"
What tournament took place on Ground A with 8 rounds?
<s>[INST]What tournament took place on Ground A with 8 rounds? Context: CREATE TABLE table_name_80 (tournament VARCHAR, ground VARCHAR, round VARCHAR)[/INST]SELECT tournament FROM table_name_80 WHERE ground = "a" AND round = "8"</s>
CREATE TABLE body_builder (Snatch INTEGER)
SELECT AVG(Snatch) FROM body_builder
What is the average snatch score of body builders?
<s>[INST]What is the average snatch score of body builders? Context: CREATE TABLE body_builder (Snatch INTEGER)[/INST]SELECT AVG(Snatch) FROM body_builder</s>
CREATE TABLE ARTIST (Name VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR)
SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId
Find the names of artists that do not have any albums.
<s>[INST]Find the names of artists that do not have any albums. Context: CREATE TABLE ARTIST (Name VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR)[/INST]SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId</s>
CREATE TABLE table_14425454_1 (home_team VARCHAR, time VARCHAR)
SELECT COUNT(home_team) AS score FROM table_14425454_1 WHERE time = "4:40 PM"
How many home team scores have a time of 4:40 PM?
<s>[INST]How many home team scores have a time of 4:40 PM? Context: CREATE TABLE table_14425454_1 (home_team VARCHAR, time VARCHAR)[/INST]SELECT COUNT(home_team) AS score FROM table_14425454_1 WHERE time = "4:40 PM"</s>
CREATE TABLE table_name_46 (population__2004_est_ VARCHAR, hanzi VARCHAR)
SELECT population__2004_est_ FROM table_name_46 WHERE hanzi = "山海关区"
What is the 2004 population for 山海关区?
<s>[INST]What is the 2004 population for 山海关区? Context: CREATE TABLE table_name_46 (population__2004_est_ VARCHAR, hanzi VARCHAR)[/INST]SELECT population__2004_est_ FROM table_name_46 WHERE hanzi = "山海关区"</s>
CREATE TABLE table_name_31 (silver INTEGER, total VARCHAR, gold VARCHAR)
SELECT MIN(silver) FROM table_name_31 WHERE total = 11 AND gold < 8
Which Silver has a Total of 11, and a Gold smaller than 8?
<s>[INST]Which Silver has a Total of 11, and a Gold smaller than 8? Context: CREATE TABLE table_name_31 (silver INTEGER, total VARCHAR, gold VARCHAR)[/INST]SELECT MIN(silver) FROM table_name_31 WHERE total = 11 AND gold < 8</s>
CREATE TABLE employees (phone VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT phone FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards"
What is employee Nancy Edwards's phone number?
<s>[INST]What is employee Nancy Edwards's phone number? Context: CREATE TABLE employees (phone VARCHAR, first_name VARCHAR, last_name VARCHAR)[/INST]SELECT phone FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards"</s>
CREATE TABLE table_name_36 (catalog__number VARCHAR, region VARCHAR)
SELECT catalog__number FROM table_name_36 WHERE region = "united kingdom"
What is the catalog number of the album whose region is the United Kingdom?
<s>[INST]What is the catalog number of the album whose region is the United Kingdom? Context: CREATE TABLE table_name_36 (catalog__number VARCHAR, region VARCHAR)[/INST]SELECT catalog__number FROM table_name_36 WHERE region = "united kingdom"</s>
CREATE TABLE table_name_60 (losses INTEGER, appearances VARCHAR, wins VARCHAR, rank VARCHAR)
SELECT SUM(losses) FROM table_name_60 WHERE wins < 2 AND rank = 10 AND appearances > 3
Tell me the sum of losses for wins less than 2 and rank of 10 with appearances larger than 3
<s>[INST]Tell me the sum of losses for wins less than 2 and rank of 10 with appearances larger than 3 Context: CREATE TABLE table_name_60 (losses INTEGER, appearances VARCHAR, wins VARCHAR, rank VARCHAR)[/INST]SELECT SUM(losses) FROM table_name_60 WHERE wins < 2 AND rank = 10 AND appearances > 3</s>
CREATE TABLE table_name_83 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_83 WHERE home_team = "chelsea"
What is home team Chelsea's Tie no?
<s>[INST]What is home team Chelsea's Tie no? Context: CREATE TABLE table_name_83 (tie_no VARCHAR, home_team VARCHAR)[/INST]SELECT tie_no FROM table_name_83 WHERE home_team = "chelsea"</s>
CREATE TABLE table_name_57 (years VARCHAR, runners_up VARCHAR)
SELECT years FROM table_name_57 WHERE runners_up = "odd grenland"
What was the year of the competition in which Odd Grenland was the runner-up?
<s>[INST]What was the year of the competition in which Odd Grenland was the runner-up? Context: CREATE TABLE table_name_57 (years VARCHAR, runners_up VARCHAR)[/INST]SELECT years FROM table_name_57 WHERE runners_up = "odd grenland"</s>
CREATE TABLE table_255829_1 (population__2007_ VARCHAR, municipality VARCHAR)
SELECT COUNT(population__2007_) FROM table_255829_1 WHERE municipality = "Gigmoto"
What is the 2007 population of Gigmoto?
<s>[INST]What is the 2007 population of Gigmoto? Context: CREATE TABLE table_255829_1 (population__2007_ VARCHAR, municipality VARCHAR)[/INST]SELECT COUNT(population__2007_) FROM table_255829_1 WHERE municipality = "Gigmoto"</s>
CREATE TABLE table_name_33 (silver INTEGER, gold VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT SUM(silver) FROM table_name_33 WHERE rank > 5 AND bronze > 6 AND gold < 2
How many silver medals were awarded to the Nation with less than 2 gold, more than 6 bronze and a rank higher than 5?
<s>[INST]How many silver medals were awarded to the Nation with less than 2 gold, more than 6 bronze and a rank higher than 5? Context: CREATE TABLE table_name_33 (silver INTEGER, gold VARCHAR, rank VARCHAR, bronze VARCHAR)[/INST]SELECT SUM(silver) FROM table_name_33 WHERE rank > 5 AND bronze > 6 AND gold < 2</s>
CREATE TABLE table_name_17 (rider VARCHAR, time VARCHAR)
SELECT rider FROM table_name_17 WHERE time = "1:23.32.41"
Who had the time of 1:23.32.41?
<s>[INST]Who had the time of 1:23.32.41? Context: CREATE TABLE table_name_17 (rider VARCHAR, time VARCHAR)[/INST]SELECT rider FROM table_name_17 WHERE time = "1:23.32.41"</s>
CREATE TABLE table_name_31 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_31 WHERE opponent = "piero luisi"
Which Tournament has a Opponent of piero luisi?
<s>[INST]Which Tournament has a Opponent of piero luisi? Context: CREATE TABLE table_name_31 (tournament VARCHAR, opponent VARCHAR)[/INST]SELECT tournament FROM table_name_31 WHERE opponent = "piero luisi"</s>
CREATE TABLE table_2610582_7 (power__kw_ VARCHAR, location VARCHAR)
SELECT power__kw_ FROM table_2610582_7 WHERE location = "General Santos"
What's the power for General Santos?
<s>[INST]What's the power for General Santos? Context: CREATE TABLE table_2610582_7 (power__kw_ VARCHAR, location VARCHAR)[/INST]SELECT power__kw_ FROM table_2610582_7 WHERE location = "General Santos"</s>
CREATE TABLE Addresses (Address_ID VARCHAR, City_Town VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Address_ID VARCHAR)
SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = "Feliciaberg"
What are the names of the drama workshop groups with address in Feliciaberg city?
<s>[INST]What are the names of the drama workshop groups with address in Feliciaberg city? Context: CREATE TABLE Addresses (Address_ID VARCHAR, City_Town VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Address_ID VARCHAR)[/INST]SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2...
CREATE TABLE table_name_62 (finish INTEGER, start VARCHAR, year VARCHAR)
SELECT MIN(finish) FROM table_name_62 WHERE start > 27 AND year > 1985
What is the lowest finish that has a start greater than 27, with a year after 1985?
<s>[INST]What is the lowest finish that has a start greater than 27, with a year after 1985? Context: CREATE TABLE table_name_62 (finish INTEGER, start VARCHAR, year VARCHAR)[/INST]SELECT MIN(finish) FROM table_name_62 WHERE start > 27 AND year > 1985</s>
CREATE TABLE contestants (contestant_name VARCHAR)
SELECT contestant_name FROM contestants WHERE contestant_name <> 'Jessie Alloway'
What are the names of the contestants whose names are not 'Jessie Alloway'
<s>[INST]What are the names of the contestants whose names are not 'Jessie Alloway' Context: CREATE TABLE contestants (contestant_name VARCHAR)[/INST]SELECT contestant_name FROM contestants WHERE contestant_name <> 'Jessie Alloway'</s>
CREATE TABLE table_28891101_3 (census_2006_population VARCHAR, administrative_capital VARCHAR)
SELECT COUNT(census_2006_population) FROM table_28891101_3 WHERE administrative_capital = "Eleme"
What is the 2006 censusn population when is the administrative capital is Eleme?
<s>[INST]What is the 2006 censusn population when is the administrative capital is Eleme? Context: CREATE TABLE table_28891101_3 (census_2006_population VARCHAR, administrative_capital VARCHAR)[/INST]SELECT COUNT(census_2006_population) FROM table_28891101_3 WHERE administrative_capital = "Eleme"</s>
CREATE TABLE table_name_83 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_83 WHERE margin_of_victory = "1 stroke" AND tournament = "legend financial group classic"
Name the date with margin of victory of 1 stroke and tournament of legend financial group classic
<s>[INST]Name the date with margin of victory of 1 stroke and tournament of legend financial group classic Context: CREATE TABLE table_name_83 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)[/INST]SELECT date FROM table_name_83 WHERE margin_of_victory = "1 stroke" AND tournament = "legend financial group ...
CREATE TABLE table_name_62 (chassis VARCHAR, rounds VARCHAR, driver VARCHAR)
SELECT chassis FROM table_name_62 WHERE rounds = "1" AND driver = "maria teresa de filippis"
What is the name of the Chassis of Diver Maria Teresa de Filippis in round 1?
<s>[INST]What is the name of the Chassis of Diver Maria Teresa de Filippis in round 1? Context: CREATE TABLE table_name_62 (chassis VARCHAR, rounds VARCHAR, driver VARCHAR)[/INST]SELECT chassis FROM table_name_62 WHERE rounds = "1" AND driver = "maria teresa de filippis"</s>
CREATE TABLE table_name_40 (cargo VARCHAR, ship_size VARCHAR)
SELECT cargo FROM table_name_40 WHERE ship_size = "aframax"
What cargo was contained in a ship size of aframax?
<s>[INST]What cargo was contained in a ship size of aframax? Context: CREATE TABLE table_name_40 (cargo VARCHAR, ship_size VARCHAR)[/INST]SELECT cargo FROM table_name_40 WHERE ship_size = "aframax"</s>
CREATE TABLE table_name_12 (seats INTEGER, _percentage_votes VARCHAR, change VARCHAR)
SELECT MIN(seats) FROM table_name_12 WHERE _percentage_votes < 5.4 AND change > -1
What are the fewest seats with fewer than 5.4% seats and more than -1 change?
<s>[INST]What are the fewest seats with fewer than 5.4% seats and more than -1 change? Context: CREATE TABLE table_name_12 (seats INTEGER, _percentage_votes VARCHAR, change VARCHAR)[/INST]SELECT MIN(seats) FROM table_name_12 WHERE _percentage_votes < 5.4 AND change > -1</s>
CREATE TABLE table_name_77 (driver VARCHAR, position VARCHAR, season VARCHAR)
SELECT driver FROM table_name_77 WHERE position = "2nd" AND season = 2001
What is Driver, when Position is 2nd, and when Season is 2001?
<s>[INST]What is Driver, when Position is 2nd, and when Season is 2001? Context: CREATE TABLE table_name_77 (driver VARCHAR, position VARCHAR, season VARCHAR)[/INST]SELECT driver FROM table_name_77 WHERE position = "2nd" AND season = 2001</s>
CREATE TABLE table_2701625_1 (female_life_expectancy INTEGER, overall_rank VARCHAR)
SELECT MAX(female_life_expectancy) FROM table_2701625_1 WHERE overall_rank = 61
Name the most female life expectancy for overall rank of 61
<s>[INST]Name the most female life expectancy for overall rank of 61 Context: CREATE TABLE table_2701625_1 (female_life_expectancy INTEGER, overall_rank VARCHAR)[/INST]SELECT MAX(female_life_expectancy) FROM table_2701625_1 WHERE overall_rank = 61</s>
CREATE TABLE table_name_6 (method VARCHAR, date_of_execution VARCHAR)
SELECT method FROM table_name_6 WHERE date_of_execution = "september 24, 1830"
What was the method of execution on September 24, 1830?
<s>[INST]What was the method of execution on September 24, 1830? Context: CREATE TABLE table_name_6 (method VARCHAR, date_of_execution VARCHAR)[/INST]SELECT method FROM table_name_6 WHERE date_of_execution = "september 24, 1830"</s>
CREATE TABLE table_name_26 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_26 WHERE home_team = "altrincham"
What was the score when Altrincham was home?
<s>[INST]What was the score when Altrincham was home? Context: CREATE TABLE table_name_26 (score VARCHAR, home_team VARCHAR)[/INST]SELECT score FROM table_name_26 WHERE home_team = "altrincham"</s>
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR)
SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1
Show the name of the customer who has the most orders.
<s>[INST]Show the name of the customer who has the most orders. Context: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR)[/INST]SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.cu...
CREATE TABLE table_name_41 (tournament VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_41 WHERE outcome = "runner-up" AND score = "4–6, 3–6"
What Tournament has an Outcome of runner-up, and a Score of 4–6, 3–6?
<s>[INST]What Tournament has an Outcome of runner-up, and a Score of 4–6, 3–6? Context: CREATE TABLE table_name_41 (tournament VARCHAR, outcome VARCHAR, score VARCHAR)[/INST]SELECT tournament FROM table_name_41 WHERE outcome = "runner-up" AND score = "4–6, 3–6"</s>
CREATE TABLE table_name_86 (release_date VARCHAR, title VARCHAR, category VARCHAR, developer VARCHAR)
SELECT release_date FROM table_name_86 WHERE category = "utilities" AND developer = "microsoft" AND title = "chord finder"
What Release date has a Category of utilities, a Developer of microsoft, and a Title of chord finder?
<s>[INST]What Release date has a Category of utilities, a Developer of microsoft, and a Title of chord finder? Context: CREATE TABLE table_name_86 (release_date VARCHAR, title VARCHAR, category VARCHAR, developer VARCHAR)[/INST]SELECT release_date FROM table_name_86 WHERE category = "utilities" AND developer = "microso...
CREATE TABLE Claims (Date_Claim_Made VARCHAR)
SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made LIMIT 1
Of all the claims, what was the earliest date when any claim was made?
<s>[INST]Of all the claims, what was the earliest date when any claim was made? Context: CREATE TABLE Claims (Date_Claim_Made VARCHAR)[/INST]SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made LIMIT 1</s>
CREATE TABLE departments (department_name VARCHAR)
SELECT * FROM departments WHERE department_name = 'Marketing'
Display all the information about the department Marketing.
<s>[INST]Display all the information about the department Marketing. Context: CREATE TABLE departments (department_name VARCHAR)[/INST]SELECT * FROM departments WHERE department_name = 'Marketing'</s>
CREATE TABLE table_name_14 (place VARCHAR, player VARCHAR, country VARCHAR, score VARCHAR)
SELECT place FROM table_name_14 WHERE score = 72 - 72 = 144 AND country = "united states" AND player = "scott mccarron"
What is Place, when Score is 72-72=144, when Country is United States, and when Player is Scott McCarron?
<s>[INST]What is Place, when Score is 72-72=144, when Country is United States, and when Player is Scott McCarron? Context: CREATE TABLE table_name_14 (place VARCHAR, player VARCHAR, country VARCHAR, score VARCHAR)[/INST]SELECT place FROM table_name_14 WHERE score = 72 - 72 = 144 AND country = "united states" AND playe...
CREATE TABLE table_name_19 (year INTEGER, winner VARCHAR)
SELECT SUM(year) FROM table_name_19 WHERE winner = "caroline lubrez"
How many years did caroline lubrez win?
<s>[INST]How many years did caroline lubrez win? Context: CREATE TABLE table_name_19 (year INTEGER, winner VARCHAR)[/INST]SELECT SUM(year) FROM table_name_19 WHERE winner = "caroline lubrez"</s>
CREATE TABLE table_name_98 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_98 WHERE away_team = "carlton"
On what Date is Carlton the Away Team?
<s>[INST]On what Date is Carlton the Away Team? Context: CREATE TABLE table_name_98 (date VARCHAR, away_team VARCHAR)[/INST]SELECT date FROM table_name_98 WHERE away_team = "carlton"</s>
CREATE TABLE table_name_13 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_13 WHERE team_2 = "vfl gummersbach"
Which team 1 has vfl gummersbach as team 2?
<s>[INST]Which team 1 has vfl gummersbach as team 2? Context: CREATE TABLE table_name_13 (team_1 VARCHAR, team_2 VARCHAR)[/INST]SELECT team_1 FROM table_name_13 WHERE team_2 = "vfl gummersbach"</s>
CREATE TABLE Person (name VARCHAR, gender VARCHAR, age VARCHAR)
SELECT name FROM Person WHERE gender = 'male' ORDER BY age
Find the name and age of all males in order of their age.
<s>[INST]Find the name and age of all males in order of their age. Context: CREATE TABLE Person (name VARCHAR, gender VARCHAR, age VARCHAR)[/INST]SELECT name FROM Person WHERE gender = 'male' ORDER BY age</s>
CREATE TABLE table_name_67 (country VARCHAR, event VARCHAR)
SELECT country FROM table_name_67 WHERE event = "rip curl women's pro"
What is Country, when Event is Rip Curl Women's Pro?
<s>[INST]What is Country, when Event is Rip Curl Women's Pro? Context: CREATE TABLE table_name_67 (country VARCHAR, event VARCHAR)[/INST]SELECT country FROM table_name_67 WHERE event = "rip curl women's pro"</s>
CREATE TABLE table_name_89 (year INTEGER, competition VARCHAR)
SELECT AVG(year) FROM table_name_89 WHERE competition = "oceania youth championships"
What is the average Year, when Competition is Oceania Youth Championships?
<s>[INST]What is the average Year, when Competition is Oceania Youth Championships? Context: CREATE TABLE table_name_89 (year INTEGER, competition VARCHAR)[/INST]SELECT AVG(year) FROM table_name_89 WHERE competition = "oceania youth championships"</s>
CREATE TABLE table_name_41 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR, tuesday_mangala__mars_ VARCHAR)
SELECT saturday_shani__saturn_ FROM table_name_41 WHERE sunday_surya__the_sun_ = "रविवार ravivār" AND tuesday_mangala__mars_ = "मंगळवार mangaḷavār"
What is the result on Saturday when it's रविवार ravivār on Sunday and मंगळवार mangaḷavār on Tuesday?
<s>[INST]What is the result on Saturday when it's रविवार ravivār on Sunday and मंगळवार mangaḷavār on Tuesday? Context: CREATE TABLE table_name_41 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR, tuesday_mangala__mars_ VARCHAR)[/INST]SELECT saturday_shani__saturn_ FROM table_name_41 WHERE sunday_surya__...
CREATE TABLE table_name_89 (time INTEGER, year VARCHAR, event VARCHAR)
SELECT MAX(time) FROM table_name_89 WHERE year = 1991 AND event = "4x100 m relay"
What is the greatest Time with a Year of 1991, and Event of 4x100 m relay?
<s>[INST]What is the greatest Time with a Year of 1991, and Event of 4x100 m relay? Context: CREATE TABLE table_name_89 (time INTEGER, year VARCHAR, event VARCHAR)[/INST]SELECT MAX(time) FROM table_name_89 WHERE year = 1991 AND event = "4x100 m relay"</s>
CREATE TABLE table_name_86 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time VARCHAR)
SELECT SUM(laps) FROM table_name_86 WHERE manufacturer = "gilera" AND time = "40:19.910" AND grid > 3
What is the total laps when manufacturer of gilera has time of 40:19.910 and grid is larger than 3?
<s>[INST]What is the total laps when manufacturer of gilera has time of 40:19.910 and grid is larger than 3? Context: CREATE TABLE table_name_86 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time VARCHAR)[/INST]SELECT SUM(laps) FROM table_name_86 WHERE manufacturer = "gilera" AND time = "40:19.910" AND grid > 3</s...
CREATE TABLE table_name_66 (Id VARCHAR)
SELECT 2011 FROM table_name_66 WHERE 2009 = "15–2"
Which 2011 has a 2009 of 15–2?
<s>[INST]Which 2011 has a 2009 of 15–2? Context: CREATE TABLE table_name_66 (Id VARCHAR)[/INST]SELECT 2011 FROM table_name_66 WHERE 2009 = "15–2"</s>
CREATE TABLE table_name_88 (Severe INTEGER, strongest_storm VARCHAR, tropical_lows VARCHAR)
SELECT MIN(Severe) AS tropical_cyclones FROM table_name_88 WHERE strongest_storm = "tiffany" AND tropical_lows > 10
What is the least number of tropical cyclones when the strongest storm was Tiffany and less than 10 tropical lows.
<s>[INST]What is the least number of tropical cyclones when the strongest storm was Tiffany and less than 10 tropical lows. Context: CREATE TABLE table_name_88 (Severe INTEGER, strongest_storm VARCHAR, tropical_lows VARCHAR)[/INST]SELECT MIN(Severe) AS tropical_cyclones FROM table_name_88 WHERE strongest_storm = "tiffa...
CREATE TABLE table_1610301_1 (headquarters VARCHAR, code VARCHAR)
SELECT headquarters FROM table_1610301_1 WHERE code = "HY"
Where is the headquarters of the place whose abbreviation is hy?
<s>[INST]Where is the headquarters of the place whose abbreviation is hy? Context: CREATE TABLE table_1610301_1 (headquarters VARCHAR, code VARCHAR)[/INST]SELECT headquarters FROM table_1610301_1 WHERE code = "HY"</s>
CREATE TABLE table_name_42 (address VARCHAR, year VARCHAR)
SELECT address FROM table_name_42 WHERE year = "1974"
What was the address in 1974?
<s>[INST]What was the address in 1974? Context: CREATE TABLE table_name_42 (address VARCHAR, year VARCHAR)[/INST]SELECT address FROM table_name_42 WHERE year = "1974"</s>
CREATE TABLE table_name_75 (games INTEGER, points VARCHAR)
SELECT SUM(games) FROM table_name_75 WHERE points = 377
What's the total number of game that has 377 points?
<s>[INST]What's the total number of game that has 377 points? Context: CREATE TABLE table_name_75 (games INTEGER, points VARCHAR)[/INST]SELECT SUM(games) FROM table_name_75 WHERE points = 377</s>
CREATE TABLE table_name_38 (round INTEGER, player VARCHAR)
SELECT AVG(round) FROM table_name_38 WHERE player = "martin havlat"
What is the average round for martin havlat?
<s>[INST]What is the average round for martin havlat? Context: CREATE TABLE table_name_38 (round INTEGER, player VARCHAR)[/INST]SELECT AVG(round) FROM table_name_38 WHERE player = "martin havlat"</s>
CREATE TABLE table_name_8 (total INTEGER, position VARCHAR, a_score VARCHAR)
SELECT MAX(total) FROM table_name_8 WHERE position = "8th" AND a_score > 6.6
what is the total scored for the 8th position and a score more than 6.6
<s>[INST]what is the total scored for the 8th position and a score more than 6.6 Context: CREATE TABLE table_name_8 (total INTEGER, position VARCHAR, a_score VARCHAR)[/INST]SELECT MAX(total) FROM table_name_8 WHERE position = "8th" AND a_score > 6.6</s>
CREATE TABLE table_name_82 (rank VARCHAR, player VARCHAR)
SELECT rank FROM table_name_82 WHERE player = "bill ponsford (vic)"
What rank has Bill Ponsford (vic) as the player?
<s>[INST]What rank has Bill Ponsford (vic) as the player? Context: CREATE TABLE table_name_82 (rank VARCHAR, player VARCHAR)[/INST]SELECT rank FROM table_name_82 WHERE player = "bill ponsford (vic)"</s>
CREATE TABLE person (age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR)
SELECT DISTINCT T2.name, T2.friend, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM person)
Who has friends that are older than the average age? Print their friends and their ages as well
<s>[INST]Who has friends that are older than the average age? Print their friends and their ages as well Context: CREATE TABLE person (age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR)[/INST]SELECT DISTINCT T2.name, T2.friend, T1.age FROM Person AS T...
CREATE TABLE table_name_87 (captain_2 VARCHAR, result VARCHAR)
SELECT captain_2 FROM table_name_87 WHERE result = "ireland by 8 runs"
Which Captain 2 has a Result of ireland by 8 runs?
<s>[INST]Which Captain 2 has a Result of ireland by 8 runs? Context: CREATE TABLE table_name_87 (captain_2 VARCHAR, result VARCHAR)[/INST]SELECT captain_2 FROM table_name_87 WHERE result = "ireland by 8 runs"</s>
CREATE TABLE table_name_97 (overall VARCHAR, college VARCHAR, round VARCHAR)
SELECT COUNT(overall) FROM table_name_97 WHERE college = "notre dame" AND round > 2
How many overall values have a college of Notre Dame and rounds over 2?
<s>[INST]How many overall values have a college of Notre Dame and rounds over 2? Context: CREATE TABLE table_name_97 (overall VARCHAR, college VARCHAR, round VARCHAR)[/INST]SELECT COUNT(overall) FROM table_name_97 WHERE college = "notre dame" AND round > 2</s>
CREATE TABLE table_name_25 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_25 WHERE date = "january 16, 2010"
What was the score on January 16, 2010?
<s>[INST]What was the score on January 16, 2010? Context: CREATE TABLE table_name_25 (score VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_25 WHERE date = "january 16, 2010"</s>
CREATE TABLE table_name_9 (loss VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT loss FROM table_name_9 WHERE opponent = "angels" AND record = "26-30"
What was the loss of the game against the Angels with a 26-30 record?
<s>[INST]What was the loss of the game against the Angels with a 26-30 record? Context: CREATE TABLE table_name_9 (loss VARCHAR, opponent VARCHAR, record VARCHAR)[/INST]SELECT loss FROM table_name_9 WHERE opponent = "angels" AND record = "26-30"</s>
CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR, primaryaffiliation VARCHAR)
SELECT physician, department FROM affiliated_with WHERE primaryaffiliation = 1
List the physicians' employee ids together with their primary affiliation departments' ids.
<s>[INST]List the physicians' employee ids together with their primary affiliation departments' ids. Context: CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR, primaryaffiliation VARCHAR)[/INST]SELECT physician, department FROM affiliated_with WHERE primaryaffiliation = 1</s>
CREATE TABLE table_name_27 (model VARCHAR, years VARCHAR)
SELECT model FROM table_name_27 WHERE years = "2011 2012-"
What is the model that was made in the years 2011 2012-?
<s>[INST]What is the model that was made in the years 2011 2012-? Context: CREATE TABLE table_name_27 (model VARCHAR, years VARCHAR)[/INST]SELECT model FROM table_name_27 WHERE years = "2011 2012-"</s>
CREATE TABLE orchestra (Record_Company VARCHAR, Year_of_Founded INTEGER)
SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003
Show the record companies shared by orchestras founded before 2003 and after 2003.
<s>[INST]Show the record companies shared by orchestras founded before 2003 and after 2003. Context: CREATE TABLE orchestra (Record_Company VARCHAR, Year_of_Founded INTEGER)[/INST]SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 200...
CREATE TABLE table_name_8 (team VARCHAR, location_attendance VARCHAR)
SELECT team FROM table_name_8 WHERE location_attendance = "target center 11,921"
WHAT IS THE TEAM WITH ATTENDANCE AT TARGET CENTER 11,921?
<s>[INST]WHAT IS THE TEAM WITH ATTENDANCE AT TARGET CENTER 11,921? Context: CREATE TABLE table_name_8 (team VARCHAR, location_attendance VARCHAR)[/INST]SELECT team FROM table_name_8 WHERE location_attendance = "target center 11,921"</s>
CREATE TABLE table_14003020_5 (average INTEGER, highest VARCHAR)
SELECT MIN(average) FROM table_14003020_5 WHERE highest = 2363
what is the minimum average with highest being 2363
<s>[INST]what is the minimum average with highest being 2363 Context: CREATE TABLE table_14003020_5 (average INTEGER, highest VARCHAR)[/INST]SELECT MIN(average) FROM table_14003020_5 WHERE highest = 2363</s>
CREATE TABLE table_name_55 (high_rebounds VARCHAR, game VARCHAR)
SELECT high_rebounds FROM table_name_55 WHERE game = 12
Who had the high rebounds for game 12?
<s>[INST]Who had the high rebounds for game 12? Context: CREATE TABLE table_name_55 (high_rebounds VARCHAR, game VARCHAR)[/INST]SELECT high_rebounds FROM table_name_55 WHERE game = 12</s>
CREATE TABLE table_name_91 (byes VARCHAR, against VARCHAR, losses VARCHAR)
SELECT byes FROM table_name_91 WHERE against < 1466 AND losses < 6
Which Byes have an Against smaller than 1466, and Losses smaller than 6?
<s>[INST]Which Byes have an Against smaller than 1466, and Losses smaller than 6? Context: CREATE TABLE table_name_91 (byes VARCHAR, against VARCHAR, losses VARCHAR)[/INST]SELECT byes FROM table_name_91 WHERE against < 1466 AND losses < 6</s>
CREATE TABLE table_name_62 (length VARCHAR, expected_start_of_revenue_services INTEGER)
SELECT length FROM table_name_62 WHERE expected_start_of_revenue_services > 2017
What is the length when the expected start of revenue is more than 2017?
<s>[INST]What is the length when the expected start of revenue is more than 2017? Context: CREATE TABLE table_name_62 (length VARCHAR, expected_start_of_revenue_services INTEGER)[/INST]SELECT length FROM table_name_62 WHERE expected_start_of_revenue_services > 2017</s>
CREATE TABLE table_name_35 (total__000s_ VARCHAR, germany VARCHAR)
SELECT total__000s_ FROM table_name_35 WHERE germany = 16.6
What was the amount of 000s when Germany had 16.6?
<s>[INST]What was the amount of 000s when Germany had 16.6? Context: CREATE TABLE table_name_35 (total__000s_ VARCHAR, germany VARCHAR)[/INST]SELECT total__000s_ FROM table_name_35 WHERE germany = 16.6</s>
CREATE TABLE table_25042332_33 (gdp__ppp__per_capita__2008_ INTEGER, combined_gross_enrollment_ratio__2009_ VARCHAR)
SELECT MIN(gdp__ppp__per_capita__2008_) FROM table_25042332_33 WHERE combined_gross_enrollment_ratio__2009_ = "89.0"
What is the gdp per capita in 2008 for the region that had a combined gross enrollment ration of 89.0?
<s>[INST]What is the gdp per capita in 2008 for the region that had a combined gross enrollment ration of 89.0? Context: CREATE TABLE table_25042332_33 (gdp__ppp__per_capita__2008_ INTEGER, combined_gross_enrollment_ratio__2009_ VARCHAR)[/INST]SELECT MIN(gdp__ppp__per_capita__2008_) FROM table_25042332_33 WHERE combine...
CREATE TABLE table_1342256_33 (party VARCHAR, first_elected VARCHAR)
SELECT COUNT(party) FROM table_1342256_33 WHERE first_elected = 1923
How many partys have a candidate first elected in 1923?
<s>[INST]How many partys have a candidate first elected in 1923? Context: CREATE TABLE table_1342256_33 (party VARCHAR, first_elected VARCHAR)[/INST]SELECT COUNT(party) FROM table_1342256_33 WHERE first_elected = 1923</s>
CREATE TABLE table_name_18 (college_team VARCHAR, round VARCHAR, nationality VARCHAR)
SELECT college_team FROM table_name_18 WHERE round < 2 AND nationality = "united states"
What is College/Team, when Round is less than 2, and when Nationality is "United States"?
<s>[INST]What is College/Team, when Round is less than 2, and when Nationality is "United States"? Context: CREATE TABLE table_name_18 (college_team VARCHAR, round VARCHAR, nationality VARCHAR)[/INST]SELECT college_team FROM table_name_18 WHERE round < 2 AND nationality = "united states"</s>
CREATE TABLE table_24639086_3 (viewers__in_millions_ VARCHAR, series__number VARCHAR)
SELECT viewers__in_millions_ FROM table_24639086_3 WHERE series__number = 14
What is the amount of viewers if the series number is 14?
<s>[INST]What is the amount of viewers if the series number is 14? Context: CREATE TABLE table_24639086_3 (viewers__in_millions_ VARCHAR, series__number VARCHAR)[/INST]SELECT viewers__in_millions_ FROM table_24639086_3 WHERE series__number = 14</s>
CREATE TABLE table_name_63 (affiliation VARCHAR, nickname VARCHAR)
SELECT affiliation FROM table_name_63 WHERE nickname = "dukes"
Who is affiliated with the Dukes?
<s>[INST]Who is affiliated with the Dukes? Context: CREATE TABLE table_name_63 (affiliation VARCHAR, nickname VARCHAR)[/INST]SELECT affiliation FROM table_name_63 WHERE nickname = "dukes"</s>
CREATE TABLE product (product_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, date_problem_reported INTEGER)
SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > "1986-11-13" GROUP BY T2.product_id
For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?
<s>[INST]For each product that has problems, find the number of problems reported after 1986-11-13 and the product id? Context: CREATE TABLE product (product_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, date_problem_reported INTEGER)[/INST]SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2...
CREATE TABLE table_name_91 (resolution VARCHAR, dish VARCHAR)
SELECT resolution FROM table_name_91 WHERE dish = "8126"
Name the resolution with dish of 8126
<s>[INST]Name the resolution with dish of 8126 Context: CREATE TABLE table_name_91 (resolution VARCHAR, dish VARCHAR)[/INST]SELECT resolution FROM table_name_91 WHERE dish = "8126"</s>
CREATE TABLE table_name_63 (director_s_ VARCHAR, recipient VARCHAR)
SELECT director_s_ FROM table_name_63 WHERE recipient = "avie luthra"
Who directed the film that Avie Luthra received an award for?
<s>[INST]Who directed the film that Avie Luthra received an award for? Context: CREATE TABLE table_name_63 (director_s_ VARCHAR, recipient VARCHAR)[/INST]SELECT director_s_ FROM table_name_63 WHERE recipient = "avie luthra"</s>
CREATE TABLE table_name_64 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_64 WHERE venue = "victoria park"
When the venue is victoria park, what's the largest Crowd that attended?
<s>[INST]When the venue is victoria park, what's the largest Crowd that attended? Context: CREATE TABLE table_name_64 (crowd INTEGER, venue VARCHAR)[/INST]SELECT MAX(crowd) FROM table_name_64 WHERE venue = "victoria park"</s>
CREATE TABLE table_name_13 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_13 WHERE date = "november 19, 2008"
On November 19, 2008 what was the score?
<s>[INST]On November 19, 2008 what was the score? Context: CREATE TABLE table_name_13 (score VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_13 WHERE date = "november 19, 2008"</s>
CREATE TABLE table_name_15 (team VARCHAR, high_assists VARCHAR)
SELECT team FROM table_name_15 WHERE high_assists = "rashard lewis (4)"
What is Team, when High Assists is "Rashard Lewis (4)"?
<s>[INST]What is Team, when High Assists is "Rashard Lewis (4)"? Context: CREATE TABLE table_name_15 (team VARCHAR, high_assists VARCHAR)[/INST]SELECT team FROM table_name_15 WHERE high_assists = "rashard lewis (4)"</s>
CREATE TABLE table_name_7 (position VARCHAR, number VARCHAR)
SELECT position FROM table_name_7 WHERE number = 16
Which position is number 16?
<s>[INST]Which position is number 16? Context: CREATE TABLE table_name_7 (position VARCHAR, number VARCHAR)[/INST]SELECT position FROM table_name_7 WHERE number = 16</s>
CREATE TABLE table_2417741_1 (par VARCHAR, winner VARCHAR)
SELECT COUNT(par) FROM table_2417741_1 WHERE winner = "Cary Middlecoff"
When cary middlecoff is the winner how many pars are there?
<s>[INST]When cary middlecoff is the winner how many pars are there? Context: CREATE TABLE table_2417741_1 (par VARCHAR, winner VARCHAR)[/INST]SELECT COUNT(par) FROM table_2417741_1 WHERE winner = "Cary Middlecoff"</s>
CREATE TABLE table_name_60 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT COUNT(grid) FROM table_name_60 WHERE time_retired = "2:41:38.4" AND laps > 40
What is the sum number of grid where time/retired is 2:41:38.4 and laps were more than 40?
<s>[INST]What is the sum number of grid where time/retired is 2:41:38.4 and laps were more than 40? Context: CREATE TABLE table_name_60 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)[/INST]SELECT COUNT(grid) FROM table_name_60 WHERE time_retired = "2:41:38.4" AND laps > 40</s>
CREATE TABLE table_name_12 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_12 WHERE home_team = "south melbourne"
Who is the home team of South Melbourne?
<s>[INST]Who is the home team of South Melbourne? Context: CREATE TABLE table_name_12 (away_team VARCHAR, home_team VARCHAR)[/INST]SELECT away_team FROM table_name_12 WHERE home_team = "south melbourne"</s>
CREATE TABLE table_name_93 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT COUNT(to_par) FROM table_name_93 WHERE country = "united states" AND score = 72 - 71 - 73 - 73 = 289
how many times is the country united states and the score 72-71-73-73=289?
<s>[INST]how many times is the country united states and the score 72-71-73-73=289? Context: CREATE TABLE table_name_93 (to_par VARCHAR, country VARCHAR, score VARCHAR)[/INST]SELECT COUNT(to_par) FROM table_name_93 WHERE country = "united states" AND score = 72 - 71 - 73 - 73 = 289</s>
CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT date FROM table_name_49 WHERE opponent_in_the_final = "steffi graf" AND score_in_the_final = "2–6, 0–6"
What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6?
<s>[INST]What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6? Context: CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)[/INST]SELECT date FROM table_name_49 WHERE opponent_in_the_final = "steffi graf" AND score_in_the_final = "2...
CREATE TABLE Ref_calendar (Id VARCHAR)
SELECT COUNT(*) FROM Ref_calendar
How many calendar items do we have?
<s>[INST]How many calendar items do we have? Context: CREATE TABLE Ref_calendar (Id VARCHAR)[/INST]SELECT COUNT(*) FROM Ref_calendar</s>