question
stringlengths
16
239
answer
stringlengths
18
400
context
stringlengths
30
308
text
stringlengths
108
764
What player has a college named san sebastian?
SELECT player FROM table_name_97 WHERE college = "san sebastian"
CREATE TABLE table_name_97 (player VARCHAR, college VARCHAR)
<s>[INST] What player has a college named san sebastian? context: CREATE TABLE table_name_97 (player VARCHAR, college VARCHAR) [/INST] SELECT player FROM table_name_97 WHERE college = "san sebastian" </s>
What opponent has a result of 3–6, 6–2, 4–6?
SELECT opponent FROM table_name_74 WHERE result = "3–6, 6–2, 4–6"
CREATE TABLE table_name_74 (opponent VARCHAR, result VARCHAR)
<s>[INST] What opponent has a result of 3–6, 6–2, 4–6? context: CREATE TABLE table_name_74 (opponent VARCHAR, result VARCHAR) [/INST] SELECT opponent FROM table_name_74 WHERE result = "3–6, 6–2, 4–6" </s>
When Ilie Năstase beat runner-up Peter Fleming what year was it?
SELECT COUNT(year) FROM table_name_56 WHERE champion = "ilie năstase" AND runner_up = "peter fleming"
CREATE TABLE table_name_56 (year VARCHAR, champion VARCHAR, runner_up VARCHAR)
<s>[INST] When Ilie Năstase beat runner-up Peter Fleming what year was it? context: CREATE TABLE table_name_56 (year VARCHAR, champion VARCHAR, runner_up VARCHAR) [/INST] SELECT COUNT(year) FROM table_name_56 WHERE champion = "ilie năstase" AND runner_up = "peter fleming" </s>
What is the earliest date with Great Expectations label with LP format?
SELECT MIN(date) FROM table_name_92 WHERE label = "great expectations" AND format = "lp"
CREATE TABLE table_name_92 (date INTEGER, label VARCHAR, format VARCHAR)
<s>[INST] What is the earliest date with Great Expectations label with LP format? context: CREATE TABLE table_name_92 (date INTEGER, label VARCHAR, format VARCHAR) [/INST] SELECT MIN(date) FROM table_name_92 WHERE label = "great expectations" AND format = "lp" </s>
On what Date is Tie no 19?
SELECT date FROM table_name_36 WHERE tie_no = "19"
CREATE TABLE table_name_36 (date VARCHAR, tie_no VARCHAR)
<s>[INST] On what Date is Tie no 19? context: CREATE TABLE table_name_36 (date VARCHAR, tie_no VARCHAR) [/INST] SELECT date FROM table_name_36 WHERE tie_no = "19" </s>
What competition has may 5, 2001 as the date?
SELECT competition FROM table_name_25 WHERE date = "may 5, 2001"
CREATE TABLE table_name_25 (competition VARCHAR, date VARCHAR)
<s>[INST] What competition has may 5, 2001 as the date? context: CREATE TABLE table_name_25 (competition VARCHAR, date VARCHAR) [/INST] SELECT competition FROM table_name_25 WHERE date = "may 5, 2001" </s>
Who has the first leg that has a round in the semi-final?
SELECT first_leg FROM table_name_53 WHERE round = "semi-final"
CREATE TABLE table_name_53 (first_leg VARCHAR, round VARCHAR)
<s>[INST] Who has the first leg that has a round in the semi-final? context: CREATE TABLE table_name_53 (first_leg VARCHAR, round VARCHAR) [/INST] SELECT first_leg FROM table_name_53 WHERE round = "semi-final" </s>
What was the ratings for episode 11?
SELECT ratings__kanto_ FROM table_26591434_1 WHERE episode = 11
CREATE TABLE table_26591434_1 (ratings__kanto_ VARCHAR, episode VARCHAR)
<s>[INST] What was the ratings for episode 11? context: CREATE TABLE table_26591434_1 (ratings__kanto_ VARCHAR, episode VARCHAR) [/INST] SELECT ratings__kanto_ FROM table_26591434_1 WHERE episode = 11 </s>
how many times did tunde abdulrahman leave the team?
SELECT COUNT(date_of_vacancy) FROM table_28164986_4 WHERE outgoing_manager = "Tunde Abdulrahman"
CREATE TABLE table_28164986_4 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
<s>[INST] how many times did tunde abdulrahman leave the team? context: CREATE TABLE table_28164986_4 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR) [/INST] SELECT COUNT(date_of_vacancy) FROM table_28164986_4 WHERE outgoing_manager = "Tunde Abdulrahman" </s>
Which Score has a Loss of buehrle (7-2)?
SELECT score FROM table_name_91 WHERE loss = "buehrle (7-2)"
CREATE TABLE table_name_91 (score VARCHAR, loss VARCHAR)
<s>[INST] Which Score has a Loss of buehrle (7-2)? context: CREATE TABLE table_name_91 (score VARCHAR, loss VARCHAR) [/INST] SELECT score FROM table_name_91 WHERE loss = "buehrle (7-2)" </s>
During the 1st Place (Won the Series), who was the act?
SELECT act FROM table_23429629_4 WHERE place_came = "1st Place (Won the Series)"
CREATE TABLE table_23429629_4 (act VARCHAR, place_came VARCHAR)
<s>[INST] During the 1st Place (Won the Series), who was the act? context: CREATE TABLE table_23429629_4 (act VARCHAR, place_came VARCHAR) [/INST] SELECT act FROM table_23429629_4 WHERE place_came = "1st Place (Won the Series)" </s>
Which seaosn had a player of rohan ricketts?
SELECT COUNT(season) FROM table_name_26 WHERE player = "rohan ricketts"
CREATE TABLE table_name_26 (season VARCHAR, player VARCHAR)
<s>[INST] Which seaosn had a player of rohan ricketts? context: CREATE TABLE table_name_26 (season VARCHAR, player VARCHAR) [/INST] SELECT COUNT(season) FROM table_name_26 WHERE player = "rohan ricketts" </s>
Who had a qual 1 of 1:01.461?
SELECT name FROM table_name_98 WHERE qual_1 = "1:01.461"
CREATE TABLE table_name_98 (name VARCHAR, qual_1 VARCHAR)
<s>[INST] Who had a qual 1 of 1:01.461? context: CREATE TABLE table_name_98 (name VARCHAR, qual_1 VARCHAR) [/INST] SELECT name FROM table_name_98 WHERE qual_1 = "1:01.461" </s>
Which sport has 94kg men's weightlifting as one of its events?
SELECT sport FROM table_name_22 WHERE event = "94kg men's weightlifting"
CREATE TABLE table_name_22 (sport VARCHAR, event VARCHAR)
<s>[INST] Which sport has 94kg men's weightlifting as one of its events? context: CREATE TABLE table_name_22 (sport VARCHAR, event VARCHAR) [/INST] SELECT sport FROM table_name_22 WHERE event = "94kg men's weightlifting" </s>
List the object number of railways that do not have any trains.
SELECT ObjectNumber FROM railway WHERE NOT Railway_ID IN (SELECT Railway_ID FROM train)
CREATE TABLE train (ObjectNumber VARCHAR, Railway_ID VARCHAR); CREATE TABLE railway (ObjectNumber VARCHAR, Railway_ID VARCHAR)
<s>[INST] List the object number of railways that do not have any trains. context: CREATE TABLE train (ObjectNumber VARCHAR, Railway_ID VARCHAR); CREATE TABLE railway (ObjectNumber VARCHAR, Railway_ID VARCHAR) [/INST] SELECT ObjectNumber FROM railway WHERE NOT Railway_ID IN (SELECT Railway_ID FROM train) </s>
Can you tell me the Location that has the Mascot of lakers?
SELECT location FROM table_name_69 WHERE mascot = "lakers"
CREATE TABLE table_name_69 (location VARCHAR, mascot VARCHAR)
<s>[INST] Can you tell me the Location that has the Mascot of lakers? context: CREATE TABLE table_name_69 (location VARCHAR, mascot VARCHAR) [/INST] SELECT location FROM table_name_69 WHERE mascot = "lakers" </s>
Which player had a position of OT during round 27?
SELECT name FROM table_name_43 WHERE position = "ot" AND round = 27
CREATE TABLE table_name_43 (name VARCHAR, position VARCHAR, round VARCHAR)
<s>[INST] Which player had a position of OT during round 27? context: CREATE TABLE table_name_43 (name VARCHAR, position VARCHAR, round VARCHAR) [/INST] SELECT name FROM table_name_43 WHERE position = "ot" AND round = 27 </s>
Who is the R1st that has 36 RYds?
SELECT r1st FROM table_name_49 WHERE ryds = "36"
CREATE TABLE table_name_49 (r1st VARCHAR, ryds VARCHAR)
<s>[INST] Who is the R1st that has 36 RYds? context: CREATE TABLE table_name_49 (r1st VARCHAR, ryds VARCHAR) [/INST] SELECT r1st FROM table_name_49 WHERE ryds = "36" </s>
Name the Report of tourist trophy?
SELECT report FROM table_name_77 WHERE name = "tourist trophy"
CREATE TABLE table_name_77 (report VARCHAR, name VARCHAR)
<s>[INST] Name the Report of tourist trophy? context: CREATE TABLE table_name_77 (report VARCHAR, name VARCHAR) [/INST] SELECT report FROM table_name_77 WHERE name = "tourist trophy" </s>
According to the February 2009 poll by the Corporate Research Associates that reported 31% Liberal., what percentage aligned with the Prog. Cons. party?
SELECT prog_cons FROM table_name_63 WHERE polling_firm = "corporate research associates" AND liberal = "31%" AND dates = "february 2009"
CREATE TABLE table_name_63 (prog_cons VARCHAR, dates VARCHAR, polling_firm VARCHAR, liberal VARCHAR)
<s>[INST] According to the February 2009 poll by the Corporate Research Associates that reported 31% Liberal., what percentage aligned with the Prog. Cons. party? context: CREATE TABLE table_name_63 (prog_cons VARCHAR, dates VARCHAR, polling_firm VARCHAR, liberal VARCHAR) [/INST] SELECT prog_cons FROM table_name_63 WH...
What is the incumbent for 1932?
SELECT incumbent FROM table_1342149_13 WHERE first_elected = 1932
CREATE TABLE table_1342149_13 (incumbent VARCHAR, first_elected VARCHAR)
<s>[INST] What is the incumbent for 1932? context: CREATE TABLE table_1342149_13 (incumbent VARCHAR, first_elected VARCHAR) [/INST] SELECT incumbent FROM table_1342149_13 WHERE first_elected = 1932 </s>
what is the lowest position when the name is esv türkheim, and Drawn more than 0?
SELECT MIN(position) FROM table_name_12 WHERE name = "esv türkheim" AND drawn > 0
CREATE TABLE table_name_12 (position INTEGER, name VARCHAR, drawn VARCHAR)
<s>[INST] what is the lowest position when the name is esv türkheim, and Drawn more than 0? context: CREATE TABLE table_name_12 (position INTEGER, name VARCHAR, drawn VARCHAR) [/INST] SELECT MIN(position) FROM table_name_12 WHERE name = "esv türkheim" AND drawn > 0 </s>
Binary of θ(log n), and a Fibonacci of θ(1) has what binomial?
SELECT binomial FROM table_name_7 WHERE binary = "θ(log n)" AND fibonacci = "θ(1)"
CREATE TABLE table_name_7 (binomial VARCHAR, binary VARCHAR, fibonacci VARCHAR)
<s>[INST] Binary of θ(log n), and a Fibonacci of θ(1) has what binomial? context: CREATE TABLE table_name_7 (binomial VARCHAR, binary VARCHAR, fibonacci VARCHAR) [/INST] SELECT binomial FROM table_name_7 WHERE binary = "θ(log n)" AND fibonacci = "θ(1)" </s>
What was the highest lap count for Walker Racing with a grid larger than 15?
SELECT MAX(laps) FROM table_name_34 WHERE team = "walker racing" AND grid > 15
CREATE TABLE table_name_34 (laps INTEGER, team VARCHAR, grid VARCHAR)
<s>[INST] What was the highest lap count for Walker Racing with a grid larger than 15? context: CREATE TABLE table_name_34 (laps INTEGER, team VARCHAR, grid VARCHAR) [/INST] SELECT MAX(laps) FROM table_name_34 WHERE team = "walker racing" AND grid > 15 </s>
Who had the most assists and how many did they have in game 35?
SELECT high_assists FROM table_27744844_7 WHERE game = 35
CREATE TABLE table_27744844_7 (high_assists VARCHAR, game VARCHAR)
<s>[INST] Who had the most assists and how many did they have in game 35? context: CREATE TABLE table_27744844_7 (high_assists VARCHAR, game VARCHAR) [/INST] SELECT high_assists FROM table_27744844_7 WHERE game = 35 </s>
What's cameron dantley's total avg/g for loss less than 35?
SELECT COUNT(avg_g) FROM table_name_69 WHERE name = "cameron dantley" AND loss < 35
CREATE TABLE table_name_69 (avg_g VARCHAR, name VARCHAR, loss VARCHAR)
<s>[INST] What's cameron dantley's total avg/g for loss less than 35? context: CREATE TABLE table_name_69 (avg_g VARCHAR, name VARCHAR, loss VARCHAR) [/INST] SELECT COUNT(avg_g) FROM table_name_69 WHERE name = "cameron dantley" AND loss < 35 </s>
What are all the winning records when the result is Scotland won on points table and the Runner-Up result is [[|]] 4 points?
SELECT winner FROM table_28601467_1 WHERE result = "Scotland won on points table" AND runner_up = "[[|]] 4 points"
CREATE TABLE table_28601467_1 (winner VARCHAR, result VARCHAR, runner_up VARCHAR)
<s>[INST] What are all the winning records when the result is Scotland won on points table and the Runner-Up result is [[|]] 4 points? context: CREATE TABLE table_28601467_1 (winner VARCHAR, result VARCHAR, runner_up VARCHAR) [/INST] SELECT winner FROM table_28601467_1 WHERE result = "Scotland won on points table" AND...
Which Location has Floors smaller than 27, and a Building of 150 elgin?
SELECT location FROM table_name_71 WHERE floors < 27 AND building = "150 elgin"
CREATE TABLE table_name_71 (location VARCHAR, floors VARCHAR, building VARCHAR)
<s>[INST] Which Location has Floors smaller than 27, and a Building of 150 elgin? context: CREATE TABLE table_name_71 (location VARCHAR, floors VARCHAR, building VARCHAR) [/INST] SELECT location FROM table_name_71 WHERE floors < 27 AND building = "150 elgin" </s>
Name the jury of 10 points
SELECT professional_jury FROM table_14977252_2 WHERE points = 10
CREATE TABLE table_14977252_2 (professional_jury VARCHAR, points VARCHAR)
<s>[INST] Name the jury of 10 points context: CREATE TABLE table_14977252_2 (professional_jury VARCHAR, points VARCHAR) [/INST] SELECT professional_jury FROM table_14977252_2 WHERE points = 10 </s>
Who write episode number 48 in the series?
SELECT written_by FROM table_2453243_5 WHERE no_in_series = "48"
CREATE TABLE table_2453243_5 (written_by VARCHAR, no_in_series VARCHAR)
<s>[INST] Who write episode number 48 in the series? context: CREATE TABLE table_2453243_5 (written_by VARCHAR, no_in_series VARCHAR) [/INST] SELECT written_by FROM table_2453243_5 WHERE no_in_series = "48" </s>
What is the First Publisher prior to 1999?
SELECT first_publisher FROM table_name_31 WHERE year < 1999
CREATE TABLE table_name_31 (first_publisher VARCHAR, year INTEGER)
<s>[INST] What is the First Publisher prior to 1999? context: CREATE TABLE table_name_31 (first_publisher VARCHAR, year INTEGER) [/INST] SELECT first_publisher FROM table_name_31 WHERE year < 1999 </s>
What is the most wins for a position with more than 30 played and a goal difference of 11?
SELECT MAX(wins) FROM table_name_46 WHERE goal_difference = 11 AND played > 30
CREATE TABLE table_name_46 (wins INTEGER, goal_difference VARCHAR, played VARCHAR)
<s>[INST] What is the most wins for a position with more than 30 played and a goal difference of 11? context: CREATE TABLE table_name_46 (wins INTEGER, goal_difference VARCHAR, played VARCHAR) [/INST] SELECT MAX(wins) FROM table_name_46 WHERE goal_difference = 11 AND played > 30 </s>
Who direcred the episode with production code 7d03?
SELECT directed_by FROM table_25604014_5 WHERE production_code = "7D03"
CREATE TABLE table_25604014_5 (directed_by VARCHAR, production_code VARCHAR)
<s>[INST] Who direcred the episode with production code 7d03? context: CREATE TABLE table_25604014_5 (directed_by VARCHAR, production_code VARCHAR) [/INST] SELECT directed_by FROM table_25604014_5 WHERE production_code = "7D03" </s>
Which school has a decile of 8 and a roll of 705?
SELECT name FROM table_name_27 WHERE decile = 8 AND roll = 705
CREATE TABLE table_name_27 (name VARCHAR, decile VARCHAR, roll VARCHAR)
<s>[INST] Which school has a decile of 8 and a roll of 705? context: CREATE TABLE table_name_27 (name VARCHAR, decile VARCHAR, roll VARCHAR) [/INST] SELECT name FROM table_name_27 WHERE decile = 8 AND roll = 705 </s>
Which state is frederick bamford a member of?
SELECT state FROM table_name_24 WHERE member = "frederick bamford"
CREATE TABLE table_name_24 (state VARCHAR, member VARCHAR)
<s>[INST] Which state is frederick bamford a member of? context: CREATE TABLE table_name_24 (state VARCHAR, member VARCHAR) [/INST] SELECT state FROM table_name_24 WHERE member = "frederick bamford" </s>
What predecessor has a district less than 11, 68th as the Congress, and may 1, 1923 as the date?
SELECT predecessor FROM table_name_54 WHERE district < 11 AND congress = "68th" AND date = "may 1, 1923"
CREATE TABLE table_name_54 (predecessor VARCHAR, date VARCHAR, district VARCHAR, congress VARCHAR)
<s>[INST] What predecessor has a district less than 11, 68th as the Congress, and may 1, 1923 as the date? context: CREATE TABLE table_name_54 (predecessor VARCHAR, date VARCHAR, district VARCHAR, congress VARCHAR) [/INST] SELECT predecessor FROM table_name_54 WHERE district < 11 AND congress = "68th" AND date = "may ...
what is the county where the market income per capita is $25,006?
SELECT county FROM table_22815568_13 WHERE market_income_per_capita = "$25,006"
CREATE TABLE table_22815568_13 (county VARCHAR, market_income_per_capita VARCHAR)
<s>[INST] what is the county where the market income per capita is $25,006? context: CREATE TABLE table_22815568_13 (county VARCHAR, market_income_per_capita VARCHAR) [/INST] SELECT county FROM table_22815568_13 WHERE market_income_per_capita = "$25,006" </s>
On what date was the record 21-25?
SELECT date FROM table_name_79 WHERE record = "21-25"
CREATE TABLE table_name_79 (date VARCHAR, record VARCHAR)
<s>[INST] On what date was the record 21-25? context: CREATE TABLE table_name_79 (date VARCHAR, record VARCHAR) [/INST] SELECT date FROM table_name_79 WHERE record = "21-25" </s>
Find the name of the club that has the most female students.
SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.sex = "F" GROUP BY t1.clubname ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE student (stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR)
<s>[INST] Find the name of the club that has the most female students. context: CREATE TABLE student (stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR) [/INST] SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1...
What's the lowest capacity when the margin is 03:30?
SELECT MIN(capacity) FROM table_name_77 WHERE margin = "03:30"
CREATE TABLE table_name_77 (capacity INTEGER, margin VARCHAR)
<s>[INST] What's the lowest capacity when the margin is 03:30? context: CREATE TABLE table_name_77 (capacity INTEGER, margin VARCHAR) [/INST] SELECT MIN(capacity) FROM table_name_77 WHERE margin = "03:30" </s>
What was the result when Dundee was the opponent?
SELECT result FROM table_name_74 WHERE opponent = "dundee"
CREATE TABLE table_name_74 (result VARCHAR, opponent VARCHAR)
<s>[INST] What was the result when Dundee was the opponent? context: CREATE TABLE table_name_74 (result VARCHAR, opponent VARCHAR) [/INST] SELECT result FROM table_name_74 WHERE opponent = "dundee" </s>
What is the area of the corporation named the powell river, the corporation of the city of?
SELECT area__km²_ FROM table_28367242_1 WHERE corporate_name = "Powell River, The Corporation of the City of"
CREATE TABLE table_28367242_1 (area__km²_ VARCHAR, corporate_name VARCHAR)
<s>[INST] What is the area of the corporation named the powell river, the corporation of the city of? context: CREATE TABLE table_28367242_1 (area__km²_ VARCHAR, corporate_name VARCHAR) [/INST] SELECT area__km²_ FROM table_28367242_1 WHERE corporate_name = "Powell River, The Corporation of the City of" </s>
At Time Warner Cable Arena 12,096, what was the high points?
SELECT high_points FROM table_name_85 WHERE location_attendance = "time warner cable arena 12,096"
CREATE TABLE table_name_85 (high_points VARCHAR, location_attendance VARCHAR)
<s>[INST] At Time Warner Cable Arena 12,096, what was the high points? context: CREATE TABLE table_name_85 (high_points VARCHAR, location_attendance VARCHAR) [/INST] SELECT high_points FROM table_name_85 WHERE location_attendance = "time warner cable arena 12,096" </s>
How many intro dates have the price of 686€?
SELECT COUNT(intro_date) FROM table_29778616_1 WHERE price = "686€"
CREATE TABLE table_29778616_1 (intro_date VARCHAR, price VARCHAR)
<s>[INST] How many intro dates have the price of 686€? context: CREATE TABLE table_29778616_1 (intro_date VARCHAR, price VARCHAR) [/INST] SELECT COUNT(intro_date) FROM table_29778616_1 WHERE price = "686€" </s>
Who constructed the I Italian Republic Grand Prix?
SELECT constructor FROM table_1140088_6 WHERE race_name = "I Italian Republic Grand Prix"
CREATE TABLE table_1140088_6 (constructor VARCHAR, race_name VARCHAR)
<s>[INST] Who constructed the I Italian Republic Grand Prix? context: CREATE TABLE table_1140088_6 (constructor VARCHAR, race_name VARCHAR) [/INST] SELECT constructor FROM table_1140088_6 WHERE race_name = "I Italian Republic Grand Prix" </s>
Which position has a pick greater than 28?
SELECT position FROM table_name_31 WHERE pick > 28
CREATE TABLE table_name_31 (position VARCHAR, pick INTEGER)
<s>[INST] Which position has a pick greater than 28? context: CREATE TABLE table_name_31 (position VARCHAR, pick INTEGER) [/INST] SELECT position FROM table_name_31 WHERE pick > 28 </s>
What are the cities whose population is between 160000 and 900000?
SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000
CREATE TABLE city (name VARCHAR, Population INTEGER)
<s>[INST] What are the cities whose population is between 160000 and 900000? context: CREATE TABLE city (name VARCHAR, Population INTEGER) [/INST] SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000 </s>
What is the number of tries for that has 30 tries against?
SELECT tries_for FROM table_name_74 WHERE tries_against = "30"
CREATE TABLE table_name_74 (tries_for VARCHAR, tries_against VARCHAR)
<s>[INST] What is the number of tries for that has 30 tries against? context: CREATE TABLE table_name_74 (tries_for VARCHAR, tries_against VARCHAR) [/INST] SELECT tries_for FROM table_name_74 WHERE tries_against = "30" </s>
What Trainer had Jockey William Jenkins in a race with Time of 1:44.80?
SELECT trainer FROM table_name_54 WHERE time = "1:44.80" AND jockey = "william jenkins"
CREATE TABLE table_name_54 (trainer VARCHAR, time VARCHAR, jockey VARCHAR)
<s>[INST] What Trainer had Jockey William Jenkins in a race with Time of 1:44.80? context: CREATE TABLE table_name_54 (trainer VARCHAR, time VARCHAR, jockey VARCHAR) [/INST] SELECT trainer FROM table_name_54 WHERE time = "1:44.80" AND jockey = "william jenkins" </s>
Who was the athlete with a wind of 1.8?
SELECT athlete FROM table_name_45 WHERE wind = "1.8"
CREATE TABLE table_name_45 (athlete VARCHAR, wind VARCHAR)
<s>[INST] Who was the athlete with a wind of 1.8? context: CREATE TABLE table_name_45 (athlete VARCHAR, wind VARCHAR) [/INST] SELECT athlete FROM table_name_45 WHERE wind = "1.8" </s>
Which game did was Bud Eley a player in?
SELECT games FROM table_name_88 WHERE name = "bud eley"
CREATE TABLE table_name_88 (games VARCHAR, name VARCHAR)
<s>[INST] Which game did was Bud Eley a player in? context: CREATE TABLE table_name_88 (games VARCHAR, name VARCHAR) [/INST] SELECT games FROM table_name_88 WHERE name = "bud eley" </s>
Which school is in Riverside, CA?
SELECT school FROM table_name_76 WHERE hometown = "riverside, ca"
CREATE TABLE table_name_76 (school VARCHAR, hometown VARCHAR)
<s>[INST] Which school is in Riverside, CA? context: CREATE TABLE table_name_76 (school VARCHAR, hometown VARCHAR) [/INST] SELECT school FROM table_name_76 WHERE hometown = "riverside, ca" </s>
What city and state are the miners located in?
SELECT location FROM table_11044765_1 WHERE mascot = "Miners"
CREATE TABLE table_11044765_1 (location VARCHAR, mascot VARCHAR)
<s>[INST] What city and state are the miners located in? context: CREATE TABLE table_11044765_1 (location VARCHAR, mascot VARCHAR) [/INST] SELECT location FROM table_11044765_1 WHERE mascot = "Miners" </s>
What was the partner count when the opponents in the final was forget leconte?
SELECT COUNT(partner) FROM table_22597626_17 WHERE opponents_in_the_final = "Forget Leconte"
CREATE TABLE table_22597626_17 (partner VARCHAR, opponents_in_the_final VARCHAR)
<s>[INST] What was the partner count when the opponents in the final was forget leconte? context: CREATE TABLE table_22597626_17 (partner VARCHAR, opponents_in_the_final VARCHAR) [/INST] SELECT COUNT(partner) FROM table_22597626_17 WHERE opponents_in_the_final = "Forget Leconte" </s>
List the number of cores for ddr3-1333 with frequencies between 2.66-2.8ghz.
SELECT cores_threads FROM table_24018112_1 WHERE max_memory_speed = "DDR3-1333" AND frequency = "2.66-2.8GHz"
CREATE TABLE table_24018112_1 (cores_threads VARCHAR, max_memory_speed VARCHAR, frequency VARCHAR)
<s>[INST] List the number of cores for ddr3-1333 with frequencies between 2.66-2.8ghz. context: CREATE TABLE table_24018112_1 (cores_threads VARCHAR, max_memory_speed VARCHAR, frequency VARCHAR) [/INST] SELECT cores_threads FROM table_24018112_1 WHERE max_memory_speed = "DDR3-1333" AND frequency = "2.66-2.8GHz" </s>
Matches of 127 has how many total number of inns?
SELECT COUNT(inns) FROM table_name_56 WHERE matches = 127
CREATE TABLE table_name_56 (inns VARCHAR, matches VARCHAR)
<s>[INST] Matches of 127 has how many total number of inns? context: CREATE TABLE table_name_56 (inns VARCHAR, matches VARCHAR) [/INST] SELECT COUNT(inns) FROM table_name_56 WHERE matches = 127 </s>
Who was the home team of the game with manu ginóbili (34) as the leading scorer?
SELECT home FROM table_name_74 WHERE leading_scorer = "manu ginóbili (34)"
CREATE TABLE table_name_74 (home VARCHAR, leading_scorer VARCHAR)
<s>[INST] Who was the home team of the game with manu ginóbili (34) as the leading scorer? context: CREATE TABLE table_name_74 (home VARCHAR, leading_scorer VARCHAR) [/INST] SELECT home FROM table_name_74 WHERE leading_scorer = "manu ginóbili (34)" </s>
Which Location has a Method of decision?
SELECT location FROM table_name_40 WHERE method = "decision"
CREATE TABLE table_name_40 (location VARCHAR, method VARCHAR)
<s>[INST] Which Location has a Method of decision? context: CREATE TABLE table_name_40 (location VARCHAR, method VARCHAR) [/INST] SELECT location FROM table_name_40 WHERE method = "decision" </s>
Find the number of pets for each student who has any pet and student id.
SELECT COUNT(*), T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid
CREATE TABLE has_pet (stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)
<s>[INST] Find the number of pets for each student who has any pet and student id. context: CREATE TABLE has_pet (stuid VARCHAR); CREATE TABLE student (stuid VARCHAR) [/INST] SELECT COUNT(*), T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid </s>
What positions were drafted from Las Vegas, NV?
SELECT position FROM table_11677100_16 WHERE hometown = "Las Vegas, NV"
CREATE TABLE table_11677100_16 (position VARCHAR, hometown VARCHAR)
<s>[INST] What positions were drafted from Las Vegas, NV? context: CREATE TABLE table_11677100_16 (position VARCHAR, hometown VARCHAR) [/INST] SELECT position FROM table_11677100_16 WHERE hometown = "Las Vegas, NV" </s>
What percentage of the votes did McCain get in Hinds?
SELECT mccain_percentage FROM table_20799587_1 WHERE county = "Hinds"
CREATE TABLE table_20799587_1 (mccain_percentage VARCHAR, county VARCHAR)
<s>[INST] What percentage of the votes did McCain get in Hinds? context: CREATE TABLE table_20799587_1 (mccain_percentage VARCHAR, county VARCHAR) [/INST] SELECT mccain_percentage FROM table_20799587_1 WHERE county = "Hinds" </s>
what is the commissioned date with laid down of 17 dec 1951?
SELECT commissioned FROM table_name_8 WHERE laid_down = "17 dec 1951"
CREATE TABLE table_name_8 (commissioned VARCHAR, laid_down VARCHAR)
<s>[INST] what is the commissioned date with laid down of 17 dec 1951? context: CREATE TABLE table_name_8 (commissioned VARCHAR, laid_down VARCHAR) [/INST] SELECT commissioned FROM table_name_8 WHERE laid_down = "17 dec 1951" </s>
What is the finish of Australia?
SELECT finish FROM table_name_52 WHERE country = "australia"
CREATE TABLE table_name_52 (finish VARCHAR, country VARCHAR)
<s>[INST] What is the finish of Australia? context: CREATE TABLE table_name_52 (finish VARCHAR, country VARCHAR) [/INST] SELECT finish FROM table_name_52 WHERE country = "australia" </s>
On what date was the game played when the Western Bulldogs were in 8th ladder position and hawthorn was the opposing team?
SELECT date FROM table_24919137_2 WHERE ladder_position = "8th" AND opposition = "Hawthorn"
CREATE TABLE table_24919137_2 (date VARCHAR, ladder_position VARCHAR, opposition VARCHAR)
<s>[INST] On what date was the game played when the Western Bulldogs were in 8th ladder position and hawthorn was the opposing team? context: CREATE TABLE table_24919137_2 (date VARCHAR, ladder_position VARCHAR, opposition VARCHAR) [/INST] SELECT date FROM table_24919137_2 WHERE ladder_position = "8th" AND opposition ...
What episode is directed by Bryan Spicer and written by Terence Paul Winter?
SELECT title FROM table_23958944_5 WHERE directed_by = "Bryan Spicer" AND written_by = "Terence Paul Winter"
CREATE TABLE table_23958944_5 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR)
<s>[INST] What episode is directed by Bryan Spicer and written by Terence Paul Winter? context: CREATE TABLE table_23958944_5 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR) [/INST] SELECT title FROM table_23958944_5 WHERE directed_by = "Bryan Spicer" AND written_by = "Terence Paul Winter" </s>
What's the total enrollment of public schools located in Buffalo, New York that were founded after 1846?
SELECT SUM(enrollment) FROM table_name_62 WHERE location = "buffalo, new york" AND affiliation = "public" AND founded > 1846
CREATE TABLE table_name_62 (enrollment INTEGER, founded VARCHAR, location VARCHAR, affiliation VARCHAR)
<s>[INST] What's the total enrollment of public schools located in Buffalo, New York that were founded after 1846? context: CREATE TABLE table_name_62 (enrollment INTEGER, founded VARCHAR, location VARCHAR, affiliation VARCHAR) [/INST] SELECT SUM(enrollment) FROM table_name_62 WHERE location = "buffalo, new york" AND ...
How many laps had a time of +2.987?
SELECT COUNT(laps) FROM table_name_37 WHERE time = "+2.987"
CREATE TABLE table_name_37 (laps VARCHAR, time VARCHAR)
<s>[INST] How many laps had a time of +2.987? context: CREATE TABLE table_name_37 (laps VARCHAR, time VARCHAR) [/INST] SELECT COUNT(laps) FROM table_name_37 WHERE time = "+2.987" </s>
How many seasons had a rank of 16?
SELECT COUNT(season) FROM table_1218784_1 WHERE rank = 16
CREATE TABLE table_1218784_1 (season VARCHAR, rank VARCHAR)
<s>[INST] How many seasons had a rank of 16? context: CREATE TABLE table_1218784_1 (season VARCHAR, rank VARCHAR) [/INST] SELECT COUNT(season) FROM table_1218784_1 WHERE rank = 16 </s>
What round pick was pick number 101 who plays defensive back?
SELECT round FROM table_name_92 WHERE position = "defensive back" AND pick__number = "101"
CREATE TABLE table_name_92 (round VARCHAR, position VARCHAR, pick__number VARCHAR)
<s>[INST] What round pick was pick number 101 who plays defensive back? context: CREATE TABLE table_name_92 (round VARCHAR, position VARCHAR, pick__number VARCHAR) [/INST] SELECT round FROM table_name_92 WHERE position = "defensive back" AND pick__number = "101" </s>
Name the 125cc winner with circuit of estoril
SELECT 125 AS cc_winner FROM table_name_2 WHERE circuit = "estoril"
CREATE TABLE table_name_2 (circuit VARCHAR)
<s>[INST] Name the 125cc winner with circuit of estoril context: CREATE TABLE table_name_2 (circuit VARCHAR) [/INST] SELECT 125 AS cc_winner FROM table_name_2 WHERE circuit = "estoril" </s>
What date has 1 for the game?
SELECT date FROM table_name_84 WHERE game = 1
CREATE TABLE table_name_84 (date VARCHAR, game VARCHAR)
<s>[INST] What date has 1 for the game? context: CREATE TABLE table_name_84 (date VARCHAR, game VARCHAR) [/INST] SELECT date FROM table_name_84 WHERE game = 1 </s>
Name the total number in attendance for when the bulls visited
SELECT COUNT(attendance) FROM table_name_50 WHERE visitor = "bulls"
CREATE TABLE table_name_50 (attendance VARCHAR, visitor VARCHAR)
<s>[INST] Name the total number in attendance for when the bulls visited context: CREATE TABLE table_name_50 (attendance VARCHAR, visitor VARCHAR) [/INST] SELECT COUNT(attendance) FROM table_name_50 WHERE visitor = "bulls" </s>
what are the details of the cmi masters that have the cross reference code 'Tax'?
SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T2.source_system_code = 'Tax'
CREATE TABLE CMI_Cross_References (master_customer_id VARCHAR, source_system_code VARCHAR); CREATE TABLE Customer_Master_Index (cmi_details VARCHAR, master_customer_id VARCHAR)
<s>[INST] what are the details of the cmi masters that have the cross reference code 'Tax'? context: CREATE TABLE CMI_Cross_References (master_customer_id VARCHAR, source_system_code VARCHAR); CREATE TABLE Customer_Master_Index (cmi_details VARCHAR, master_customer_id VARCHAR) [/INST] SELECT T1.cmi_details FROM Custom...
how many matches were played that average goals scored 1.25?
SELECT COUNT(matches_played) FROM table_27708484_3 WHERE average_goals_scored_per_match = "1.25"
CREATE TABLE table_27708484_3 (matches_played VARCHAR, average_goals_scored_per_match VARCHAR)
<s>[INST] how many matches were played that average goals scored 1.25? context: CREATE TABLE table_27708484_3 (matches_played VARCHAR, average_goals_scored_per_match VARCHAR) [/INST] SELECT COUNT(matches_played) FROM table_27708484_3 WHERE average_goals_scored_per_match = "1.25" </s>
What position has 14 rounds?
SELECT position FROM table_name_15 WHERE round = 14
CREATE TABLE table_name_15 (position VARCHAR, round VARCHAR)
<s>[INST] What position has 14 rounds? context: CREATE TABLE table_name_15 (position VARCHAR, round VARCHAR) [/INST] SELECT position FROM table_name_15 WHERE round = 14 </s>
When 21 is the number in series what is the air date?
SELECT original_air_date FROM table_2409041_2 WHERE no_in_series = 21
CREATE TABLE table_2409041_2 (original_air_date VARCHAR, no_in_series VARCHAR)
<s>[INST] When 21 is the number in series what is the air date? context: CREATE TABLE table_2409041_2 (original_air_date VARCHAR, no_in_series VARCHAR) [/INST] SELECT original_air_date FROM table_2409041_2 WHERE no_in_series = 21 </s>
Who was the leading scorer on the game played on February 25?
SELECT leading_scorer FROM table_name_28 WHERE date = "february 25"
CREATE TABLE table_name_28 (leading_scorer VARCHAR, date VARCHAR)
<s>[INST] Who was the leading scorer on the game played on February 25? context: CREATE TABLE table_name_28 (leading_scorer VARCHAR, date VARCHAR) [/INST] SELECT leading_scorer FROM table_name_28 WHERE date = "february 25" </s>
On what date did the Rockets play Memphis?
SELECT date FROM table_17288825_9 WHERE team = "Memphis"
CREATE TABLE table_17288825_9 (date VARCHAR, team VARCHAR)
<s>[INST] On what date did the Rockets play Memphis? context: CREATE TABLE table_17288825_9 (date VARCHAR, team VARCHAR) [/INST] SELECT date FROM table_17288825_9 WHERE team = "Memphis" </s>
What's the maximum game in the javale mcgee (5) high rebounds?
SELECT MAX(game) FROM table_27721131_2 WHERE high_rebounds = "JaVale McGee (5)"
CREATE TABLE table_27721131_2 (game INTEGER, high_rebounds VARCHAR)
<s>[INST] What's the maximum game in the javale mcgee (5) high rebounds? context: CREATE TABLE table_27721131_2 (game INTEGER, high_rebounds VARCHAR) [/INST] SELECT MAX(game) FROM table_27721131_2 WHERE high_rebounds = "JaVale McGee (5)" </s>
How many games had 2 goals scored?
SELECT SUM(games_played) FROM table_name_89 WHERE goals_scored = "2"
CREATE TABLE table_name_89 (games_played INTEGER, goals_scored VARCHAR)
<s>[INST] How many games had 2 goals scored? context: CREATE TABLE table_name_89 (games_played INTEGER, goals_scored VARCHAR) [/INST] SELECT SUM(games_played) FROM table_name_89 WHERE goals_scored = "2" </s>
Who played the home team during the game on January 6?
SELECT home FROM table_name_56 WHERE date = "january 6"
CREATE TABLE table_name_56 (home VARCHAR, date VARCHAR)
<s>[INST] Who played the home team during the game on January 6? context: CREATE TABLE table_name_56 (home VARCHAR, date VARCHAR) [/INST] SELECT home FROM table_name_56 WHERE date = "january 6" </s>
What is the rank associated with a Height feet / m of 427 / 130?
SELECT rank FROM table_name_76 WHERE height_feet___m = "427 / 130"
CREATE TABLE table_name_76 (rank VARCHAR, height_feet___m VARCHAR)
<s>[INST] What is the rank associated with a Height feet / m of 427 / 130? context: CREATE TABLE table_name_76 (rank VARCHAR, height_feet___m VARCHAR) [/INST] SELECT rank FROM table_name_76 WHERE height_feet___m = "427 / 130" </s>
What is the Place that has a Date of 22 august 2004?
SELECT place FROM table_name_92 WHERE date = "22 august 2004"
CREATE TABLE table_name_92 (place VARCHAR, date VARCHAR)
<s>[INST] What is the Place that has a Date of 22 august 2004? context: CREATE TABLE table_name_92 (place VARCHAR, date VARCHAR) [/INST] SELECT place FROM table_name_92 WHERE date = "22 august 2004" </s>
What was the original name of the restaurant located in Orillia, ON?
SELECT original_name FROM table_name_50 WHERE location = "orillia, on"
CREATE TABLE table_name_50 (original_name VARCHAR, location VARCHAR)
<s>[INST] What was the original name of the restaurant located in Orillia, ON? context: CREATE TABLE table_name_50 (original_name VARCHAR, location VARCHAR) [/INST] SELECT original_name FROM table_name_50 WHERE location = "orillia, on" </s>
What was the first elected year that featured incumbent andrew r. govan?
SELECT first_elected FROM table_2668264_22 WHERE incumbent = "Andrew R. Govan"
CREATE TABLE table_2668264_22 (first_elected VARCHAR, incumbent VARCHAR)
<s>[INST] What was the first elected year that featured incumbent andrew r. govan? context: CREATE TABLE table_2668264_22 (first_elected VARCHAR, incumbent VARCHAR) [/INST] SELECT first_elected FROM table_2668264_22 WHERE incumbent = "Andrew R. Govan" </s>
What is the result at the Masters for the player who finished R16 at the PGA Ch.?
SELECT masters FROM table_1506950_9 WHERE pga_ch = "R16"
CREATE TABLE table_1506950_9 (masters VARCHAR, pga_ch VARCHAR)
<s>[INST] What is the result at the Masters for the player who finished R16 at the PGA Ch.? context: CREATE TABLE table_1506950_9 (masters VARCHAR, pga_ch VARCHAR) [/INST] SELECT masters FROM table_1506950_9 WHERE pga_ch = "R16" </s>
What is the number of points associated with 165 laps?
SELECT points FROM table_name_12 WHERE laps = 165
CREATE TABLE table_name_12 (points VARCHAR, laps VARCHAR)
<s>[INST] What is the number of points associated with 165 laps? context: CREATE TABLE table_name_12 (points VARCHAR, laps VARCHAR) [/INST] SELECT points FROM table_name_12 WHERE laps = 165 </s>
How big was the crowd size, at the Junction Oval venue?
SELECT SUM(crowd) FROM table_name_30 WHERE venue = "junction oval"
CREATE TABLE table_name_30 (crowd INTEGER, venue VARCHAR)
<s>[INST] How big was the crowd size, at the Junction Oval venue? context: CREATE TABLE table_name_30 (crowd INTEGER, venue VARCHAR) [/INST] SELECT SUM(crowd) FROM table_name_30 WHERE venue = "junction oval" </s>
What actor won in 1978?
SELECT actor FROM table_name_22 WHERE year = "1978"
CREATE TABLE table_name_22 (actor VARCHAR, year VARCHAR)
<s>[INST] What actor won in 1978? context: CREATE TABLE table_name_22 (actor VARCHAR, year VARCHAR) [/INST] SELECT actor FROM table_name_22 WHERE year = "1978" </s>
What is the highest crowd population when the away team is Geelong?
SELECT MAX(crowd) FROM table_name_33 WHERE away_team = "geelong"
CREATE TABLE table_name_33 (crowd INTEGER, away_team VARCHAR)
<s>[INST] What is the highest crowd population when the away team is Geelong? context: CREATE TABLE table_name_33 (crowd INTEGER, away_team VARCHAR) [/INST] SELECT MAX(crowd) FROM table_name_33 WHERE away_team = "geelong" </s>
What is the highest value of Total Goals?
SELECT MAX(total_goals) FROM table_10240125_1
CREATE TABLE table_10240125_1 (total_goals INTEGER)
<s>[INST] What is the highest value of Total Goals? context: CREATE TABLE table_10240125_1 (total_goals INTEGER) [/INST] SELECT MAX(total_goals) FROM table_10240125_1 </s>
Find the first and last name of students who are living in the dorms that have amenity TV Lounge.
SELECT T1.fname, T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')
CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)
<s>[INST] Find the first and last name of students who are living in the dorms that have amenity TV Lounge. context: CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE dorm_am...
What is the timeslot for the episode that aired April 28, 2009?
SELECT timeslot FROM table_name_26 WHERE air_date = "april 28, 2009"
CREATE TABLE table_name_26 (timeslot VARCHAR, air_date VARCHAR)
<s>[INST] What is the timeslot for the episode that aired April 28, 2009? context: CREATE TABLE table_name_26 (timeslot VARCHAR, air_date VARCHAR) [/INST] SELECT timeslot FROM table_name_26 WHERE air_date = "april 28, 2009" </s>
How many mixed doubles were there in the year that Olga Koseli won the women's singles?
SELECT COUNT(mixed_doubles) FROM table_15002177_1 WHERE womens_singles = "Olga Koseli"
CREATE TABLE table_15002177_1 (mixed_doubles VARCHAR, womens_singles VARCHAR)
<s>[INST] How many mixed doubles were there in the year that Olga Koseli won the women's singles? context: CREATE TABLE table_15002177_1 (mixed_doubles VARCHAR, womens_singles VARCHAR) [/INST] SELECT COUNT(mixed_doubles) FROM table_15002177_1 WHERE womens_singles = "Olga Koseli" </s>
How many different roles are there in the club "Bootup Baltimore"?
SELECT COUNT(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = "Bootup Baltimore"
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (position VARCHAR, clubid VARCHAR)
<s>[INST] How many different roles are there in the club "Bootup Baltimore"? context: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (position VARCHAR, clubid VARCHAR) [/INST] SELECT COUNT(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE ...
How many touchdowns did the player with less than 4495 yards, long of less than 80, and yds/att less than 5.5 have?
SELECT COUNT(touchdowns) FROM table_name_65 WHERE net_yds < 4495 AND long < 80 AND yds_att < 5.5
CREATE TABLE table_name_65 (touchdowns VARCHAR, yds_att VARCHAR, net_yds VARCHAR, long VARCHAR)
<s>[INST] How many touchdowns did the player with less than 4495 yards, long of less than 80, and yds/att less than 5.5 have? context: CREATE TABLE table_name_65 (touchdowns VARCHAR, yds_att VARCHAR, net_yds VARCHAR, long VARCHAR) [/INST] SELECT COUNT(touchdowns) FROM table_name_65 WHERE net_yds < 4495 AND long < 80 A...
Show the station name with greatest number of trains.
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR)
<s>[INST] Show the station name with greatest number of trains. context: CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR) [/INST] SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY COUNT(*) ...
What is Ernie Els' Score?
SELECT score FROM table_name_43 WHERE player = "ernie els"
CREATE TABLE table_name_43 (score VARCHAR, player VARCHAR)
<s>[INST] What is Ernie Els' Score? context: CREATE TABLE table_name_43 (score VARCHAR, player VARCHAR) [/INST] SELECT score FROM table_name_43 WHERE player = "ernie els" </s>
What are names for top three branches with most number of membership?
SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3
CREATE TABLE branch (name VARCHAR, membership_amount VARCHAR)
<s>[INST] What are names for top three branches with most number of membership? context: CREATE TABLE branch (name VARCHAR, membership_amount VARCHAR) [/INST] SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3 </s>
What was the average year that Thuppakki movies came out?
SELECT AVG(year) FROM table_name_12 WHERE movie = "thuppakki"
CREATE TABLE table_name_12 (year INTEGER, movie VARCHAR)
<s>[INST] What was the average year that Thuppakki movies came out? context: CREATE TABLE table_name_12 (year INTEGER, movie VARCHAR) [/INST] SELECT AVG(year) FROM table_name_12 WHERE movie = "thuppakki" </s>