context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_16 (tournament VARCHAR)
SELECT 2007 FROM table_name_16 WHERE tournament = "us open"
What is the 2007 value of the US Open?
<s>[INST]What is the 2007 value of the US Open? Context: CREATE TABLE table_name_16 (tournament VARCHAR)[/INST]SELECT 2007 FROM table_name_16 WHERE tournament = "us open"</s>
CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE VISITORS (Tourist_Details VARCHAR, Tourist_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Alison" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Rosalind"
What are the names of tourist attraction that Alison visited but Rosalind did not visit?
<s>[INST]What are the names of tourist attraction that Alison visited but Rosalind did not visit? Context: CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE VISITORS (Tourist_Details VARCHAR, Tourist_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)[/INST]SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Alison" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Rosalind"</s>
CREATE TABLE table_name_94 (song VARCHAR, artist VARCHAR)
SELECT song FROM table_name_94 WHERE artist = "filipa sousa"
What song has filipa sousa as an artist?
<s>[INST]What song has filipa sousa as an artist? Context: CREATE TABLE table_name_94 (song VARCHAR, artist VARCHAR)[/INST]SELECT song FROM table_name_94 WHERE artist = "filipa sousa"</s>
CREATE TABLE table_14981555_3 (jockey VARCHAR, race VARCHAR)
SELECT COUNT(jockey) FROM table_14981555_3 WHERE race = "Sir Rupert Clarke Stakes"
How many jockeys are listed running at the Sir Rupert Clarke Stakes?
<s>[INST]How many jockeys are listed running at the Sir Rupert Clarke Stakes? Context: CREATE TABLE table_14981555_3 (jockey VARCHAR, race VARCHAR)[/INST]SELECT COUNT(jockey) FROM table_14981555_3 WHERE race = "Sir Rupert Clarke Stakes"</s>
CREATE TABLE table_name_93 (laps INTEGER, grid VARCHAR, time VARCHAR)
SELECT MAX(laps) FROM table_name_93 WHERE grid < 13 AND time = "+18.366"
What is the highest number of Laps that have a Time of +18.366, and a Grid lower than 13?
<s>[INST]What is the highest number of Laps that have a Time of +18.366, and a Grid lower than 13? Context: CREATE TABLE table_name_93 (laps INTEGER, grid VARCHAR, time VARCHAR)[/INST]SELECT MAX(laps) FROM table_name_93 WHERE grid < 13 AND time = "+18.366"</s>
CREATE TABLE table_name_65 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_65 WHERE date = "november 6, 1960"
What was the Attendance on November 6, 1960?
<s>[INST]What was the Attendance on November 6, 1960? Context: CREATE TABLE table_name_65 (attendance VARCHAR, date VARCHAR)[/INST]SELECT attendance FROM table_name_65 WHERE date = "november 6, 1960"</s>
CREATE TABLE table_name_2 (football VARCHAR, soccer VARCHAR, golf VARCHAR)
SELECT football FROM table_name_2 WHERE soccer = "wooster" AND golf = "ashland"
Which foot ball team played soccer at wooster, and Gold in Ashland?
<s>[INST]Which foot ball team played soccer at wooster, and Gold in Ashland? Context: CREATE TABLE table_name_2 (football VARCHAR, soccer VARCHAR, golf VARCHAR)[/INST]SELECT football FROM table_name_2 WHERE soccer = "wooster" AND golf = "ashland"</s>
CREATE TABLE table_name_97 (rank INTEGER, lane VARCHAR, name VARCHAR)
SELECT AVG(rank) FROM table_name_97 WHERE lane > 4 AND name = "dominik meichtry"
what is the average rank when the lane is more than 4 and the name is dominik meichtry?
<s>[INST]what is the average rank when the lane is more than 4 and the name is dominik meichtry? Context: CREATE TABLE table_name_97 (rank INTEGER, lane VARCHAR, name VARCHAR)[/INST]SELECT AVG(rank) FROM table_name_97 WHERE lane > 4 AND name = "dominik meichtry"</s>
CREATE TABLE table_name_74 (total INTEGER, rank VARCHAR, gold VARCHAR)
SELECT SUM(total) FROM table_name_74 WHERE rank = "9" AND gold > 6
What is the sum of Total ranking 9 and a Gold more than 6
<s>[INST]What is the sum of Total ranking 9 and a Gold more than 6 Context: CREATE TABLE table_name_74 (total INTEGER, rank VARCHAR, gold VARCHAR)[/INST]SELECT SUM(total) FROM table_name_74 WHERE rank = "9" AND gold > 6</s>
CREATE TABLE table_name_59 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_59 WHERE away_team = "watford"
What is the score when watford was the away team?
<s>[INST]What is the score when watford was the away team? Context: CREATE TABLE table_name_59 (score VARCHAR, away_team VARCHAR)[/INST]SELECT score FROM table_name_59 WHERE away_team = "watford"</s>
CREATE TABLE table_name_85 (text VARCHAR, wade_giles VARCHAR)
SELECT text FROM table_name_85 WHERE wade_giles = "ai-ma … hsin-yüan"
Which text has Wade-Giles translation of ai-ma … hsin-yüan?
<s>[INST]Which text has Wade-Giles translation of ai-ma … hsin-yüan? Context: CREATE TABLE table_name_85 (text VARCHAR, wade_giles VARCHAR)[/INST]SELECT text FROM table_name_85 WHERE wade_giles = "ai-ma … hsin-yüan"</s>
CREATE TABLE table_name_53 (county VARCHAR, opposition VARCHAR, player VARCHAR)
SELECT county FROM table_name_53 WHERE opposition = "antrim" AND player = "bernie forde"
What County has an Opposition of Antrim and the Player Bernie Forde?
<s>[INST]What County has an Opposition of Antrim and the Player Bernie Forde? Context: CREATE TABLE table_name_53 (county VARCHAR, opposition VARCHAR, player VARCHAR)[/INST]SELECT county FROM table_name_53 WHERE opposition = "antrim" AND player = "bernie forde"</s>
CREATE TABLE table_14132239_3 (offensive VARCHAR, overall VARCHAR)
SELECT offensive FROM table_14132239_3 WHERE overall = "Bob Watson"
Who was the offensive award winner the week when Bob Watson was given the overall award?
<s>[INST]Who was the offensive award winner the week when Bob Watson was given the overall award? Context: CREATE TABLE table_14132239_3 (offensive VARCHAR, overall VARCHAR)[/INST]SELECT offensive FROM table_14132239_3 WHERE overall = "Bob Watson"</s>
CREATE TABLE table_name_27 (born_died VARCHAR, name VARCHAR)
SELECT born_died FROM table_name_27 WHERE name = "maliq bushati"
What is Born-Died, when Name is Maliq Bushati?
<s>[INST]What is Born-Died, when Name is Maliq Bushati? Context: CREATE TABLE table_name_27 (born_died VARCHAR, name VARCHAR)[/INST]SELECT born_died FROM table_name_27 WHERE name = "maliq bushati"</s>
CREATE TABLE table_name_89 (artist VARCHAR, theme VARCHAR)
SELECT artist FROM table_name_89 WHERE theme = "billboard #1"
What artist's song was performed in the week with theme of Billboard #1?
<s>[INST]What artist's song was performed in the week with theme of Billboard #1? Context: CREATE TABLE table_name_89 (artist VARCHAR, theme VARCHAR)[/INST]SELECT artist FROM table_name_89 WHERE theme = "billboard #1"</s>
CREATE TABLE table_name_68 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(crowd) FROM table_name_68 WHERE away_team = "st kilda"
In games where st kilda was the away team, what was the smallest crowd?
<s>[INST]In games where st kilda was the away team, what was the smallest crowd? Context: CREATE TABLE table_name_68 (crowd INTEGER, away_team VARCHAR)[/INST]SELECT MIN(crowd) FROM table_name_68 WHERE away_team = "st kilda"</s>
CREATE TABLE table_name_56 (set_3 VARCHAR, date VARCHAR, score VARCHAR, time VARCHAR)
SELECT set_3 FROM table_name_56 WHERE score = "0–3" AND time = "18:30" AND date = "july 10"
Which Set 3 has a Score of 0–3, a Time of 18:30, and a Date of july 10?
<s>[INST]Which Set 3 has a Score of 0–3, a Time of 18:30, and a Date of july 10? Context: CREATE TABLE table_name_56 (set_3 VARCHAR, date VARCHAR, score VARCHAR, time VARCHAR)[/INST]SELECT set_3 FROM table_name_56 WHERE score = "0–3" AND time = "18:30" AND date = "july 10"</s>
CREATE TABLE table_16457934_5 (Id VARCHAR)
SELECT MIN(25 AS _to_29) FROM table_16457934_5
What is the minimum of 25 to 29?
<s>[INST]What is the minimum of 25 to 29? Context: CREATE TABLE table_16457934_5 (Id VARCHAR)[/INST]SELECT MIN(25 AS _to_29) FROM table_16457934_5</s>
CREATE TABLE table_name_85 (circuit VARCHAR, feature_winner VARCHAR, country VARCHAR)
SELECT circuit FROM table_name_85 WHERE feature_winner = "ireland" AND country = "great britain"
Which circuit was in Great Britain with Ireland as the winner?
<s>[INST]Which circuit was in Great Britain with Ireland as the winner? Context: CREATE TABLE table_name_85 (circuit VARCHAR, feature_winner VARCHAR, country VARCHAR)[/INST]SELECT circuit FROM table_name_85 WHERE feature_winner = "ireland" AND country = "great britain"</s>
CREATE TABLE table_name_64 (silver INTEGER, nation VARCHAR, rank VARCHAR)
SELECT AVG(silver) FROM table_name_64 WHERE nation = "germany" AND rank < 2
What is the silver for Germany and less than 2?
<s>[INST]What is the silver for Germany and less than 2? Context: CREATE TABLE table_name_64 (silver INTEGER, nation VARCHAR, rank VARCHAR)[/INST]SELECT AVG(silver) FROM table_name_64 WHERE nation = "germany" AND rank < 2</s>
CREATE TABLE table_2562572_26 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT population__2011_ FROM table_2562572_26 WHERE cyrillic_name_other_names = "Стари Жедник (Croatian: Stari Žednik)"
What is the population in стари жедник (croatian: stari žednik)?
<s>[INST]What is the population in стари жедник (croatian: stari žednik)? Context: CREATE TABLE table_2562572_26 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR)[/INST]SELECT population__2011_ FROM table_2562572_26 WHERE cyrillic_name_other_names = "Стари Жедник (Croatian: Stari Žednik)"</s>
CREATE TABLE table_name_87 (rank VARCHAR, nation VARCHAR)
SELECT rank FROM table_name_87 WHERE nation = "denmark"
What is Denmark's rank?
<s>[INST]What is Denmark's rank? Context: CREATE TABLE table_name_87 (rank VARCHAR, nation VARCHAR)[/INST]SELECT rank FROM table_name_87 WHERE nation = "denmark"</s>
CREATE TABLE table_1876262_10 (other_mozilla VARCHAR, safari VARCHAR)
SELECT other_mozilla FROM table_1876262_10 WHERE safari = "3.76%"
If Safari is 3.76%, what is the other Mozilla amount?
<s>[INST]If Safari is 3.76%, what is the other Mozilla amount? Context: CREATE TABLE table_1876262_10 (other_mozilla VARCHAR, safari VARCHAR)[/INST]SELECT other_mozilla FROM table_1876262_10 WHERE safari = "3.76%"</s>
CREATE TABLE table_name_34 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_34 WHERE away_team = "south melbourne"
In the match where south melbourne was the away team, who was the home team?
<s>[INST]In the match where south melbourne was the away team, who was the home team? Context: CREATE TABLE table_name_34 (home_team VARCHAR, away_team VARCHAR)[/INST]SELECT home_team FROM table_name_34 WHERE away_team = "south melbourne"</s>
CREATE TABLE table_name_91 (home VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT home FROM table_name_91 WHERE visitor = "boston bruins" AND date = "january 11"
Who was the home team that played against the Boston Bruins on January 11?
<s>[INST]Who was the home team that played against the Boston Bruins on January 11? Context: CREATE TABLE table_name_91 (home VARCHAR, visitor VARCHAR, date VARCHAR)[/INST]SELECT home FROM table_name_91 WHERE visitor = "boston bruins" AND date = "january 11"</s>
CREATE TABLE table_name_95 (coach VARCHAR, team VARCHAR)
SELECT coach FROM table_name_95 WHERE team = "adelaide galaxy"
Who is the coach for the Adelaide Galaxy team?
<s>[INST]Who is the coach for the Adelaide Galaxy team? Context: CREATE TABLE table_name_95 (coach VARCHAR, team VARCHAR)[/INST]SELECT coach FROM table_name_95 WHERE team = "adelaide galaxy"</s>
CREATE TABLE table_name_24 (long INTEGER, avg VARCHAR, rec VARCHAR)
SELECT SUM(long) FROM table_name_24 WHERE avg < 6 AND rec < 2
Name the sum of long for avg less than 6 and rec less than 2
<s>[INST]Name the sum of long for avg less than 6 and rec less than 2 Context: CREATE TABLE table_name_24 (long INTEGER, avg VARCHAR, rec VARCHAR)[/INST]SELECT SUM(long) FROM table_name_24 WHERE avg < 6 AND rec < 2</s>
CREATE TABLE table_name_9 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_9 WHERE opponent = "adrián menéndez-maceiras"
What date was the match against adrián menéndez-maceiras?
<s>[INST]What date was the match against adrián menéndez-maceiras? Context: CREATE TABLE table_name_9 (date VARCHAR, opponent VARCHAR)[/INST]SELECT date FROM table_name_9 WHERE opponent = "adrián menéndez-maceiras"</s>
CREATE TABLE table_14058433_3 (losing_bonus VARCHAR, points VARCHAR)
SELECT losing_bonus FROM table_14058433_3 WHERE points = "24"
What is the losing bonus when the points are 24?
<s>[INST]What is the losing bonus when the points are 24? Context: CREATE TABLE table_14058433_3 (losing_bonus VARCHAR, points VARCHAR)[/INST]SELECT losing_bonus FROM table_14058433_3 WHERE points = "24"</s>
CREATE TABLE table_name_37 (week_6_oct_5 VARCHAR, week_14_nov_30 VARCHAR)
SELECT week_6_oct_5 FROM table_name_37 WHERE week_14_nov_30 = "texas (11-1)"
Which Week 6 Oct 5 has a Week 14 Nov 30 of texas (11-1)?
<s>[INST]Which Week 6 Oct 5 has a Week 14 Nov 30 of texas (11-1)? Context: CREATE TABLE table_name_37 (week_6_oct_5 VARCHAR, week_14_nov_30 VARCHAR)[/INST]SELECT week_6_oct_5 FROM table_name_37 WHERE week_14_nov_30 = "texas (11-1)"</s>
CREATE TABLE table_name_62 (line VARCHAR, platform VARCHAR)
SELECT line FROM table_name_62 WHERE platform = "3"
Which Line has a Platform of 3?
<s>[INST]Which Line has a Platform of 3? Context: CREATE TABLE table_name_62 (line VARCHAR, platform VARCHAR)[/INST]SELECT line FROM table_name_62 WHERE platform = "3"</s>
CREATE TABLE table_name_98 (iucn VARCHAR, est VARCHAR, reserve VARCHAR)
SELECT iucn FROM table_name_98 WHERE est < 1998 AND reserve = "cockscomb basin"
What is the IUCN for the Cockscomb Basin reserve when the Est. is less than 1998?
<s>[INST]What is the IUCN for the Cockscomb Basin reserve when the Est. is less than 1998? Context: CREATE TABLE table_name_98 (iucn VARCHAR, est VARCHAR, reserve VARCHAR)[/INST]SELECT iucn FROM table_name_98 WHERE est < 1998 AND reserve = "cockscomb basin"</s>
CREATE TABLE table_name_35 (goals_for INTEGER, goals_against VARCHAR, drawn VARCHAR)
SELECT MIN(goals_for) FROM table_name_35 WHERE goals_against = 75 AND drawn < 11
What is the fewest goals for when goals against is 75 and drawn is smaller than 11?
<s>[INST]What is the fewest goals for when goals against is 75 and drawn is smaller than 11? Context: CREATE TABLE table_name_35 (goals_for INTEGER, goals_against VARCHAR, drawn VARCHAR)[/INST]SELECT MIN(goals_for) FROM table_name_35 WHERE goals_against = 75 AND drawn < 11</s>
CREATE TABLE city (Official_Name VARCHAR, Status VARCHAR, Population VARCHAR)
SELECT Official_Name, Status FROM city ORDER BY Population DESC LIMIT 1
List the official name and status of the city with the largest population.
<s>[INST]List the official name and status of the city with the largest population. Context: CREATE TABLE city (Official_Name VARCHAR, Status VARCHAR, Population VARCHAR)[/INST]SELECT Official_Name, Status FROM city ORDER BY Population DESC LIMIT 1</s>
CREATE TABLE table_name_40 (score VARCHAR, tournament VARCHAR, year VARCHAR, outcome VARCHAR)
SELECT score FROM table_name_40 WHERE year < 2007 AND outcome = "runner-up" AND tournament = "bulgaria open"
Who was the runner-up for the Bulgaria Open, before 2007?
<s>[INST]Who was the runner-up for the Bulgaria Open, before 2007? Context: CREATE TABLE table_name_40 (score VARCHAR, tournament VARCHAR, year VARCHAR, outcome VARCHAR)[/INST]SELECT score FROM table_name_40 WHERE year < 2007 AND outcome = "runner-up" AND tournament = "bulgaria open"</s>
CREATE TABLE table_21550897_1 (production_code INTEGER, us_viewers__million_ VARCHAR)
SELECT MAX(production_code) FROM table_21550897_1 WHERE us_viewers__million_ = "9.18"
What is the production code for the episode that had 9.18 million viewers (U.S.)?
<s>[INST]What is the production code for the episode that had 9.18 million viewers (U.S.)? Context: CREATE TABLE table_21550897_1 (production_code INTEGER, us_viewers__million_ VARCHAR)[/INST]SELECT MAX(production_code) FROM table_21550897_1 WHERE us_viewers__million_ = "9.18"</s>
CREATE TABLE table_name_86 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_86 WHERE attendance = "31,002"
Who was the opponent when the attendance was 31,002?
<s>[INST]Who was the opponent when the attendance was 31,002? Context: CREATE TABLE table_name_86 (opponent VARCHAR, attendance VARCHAR)[/INST]SELECT opponent FROM table_name_86 WHERE attendance = "31,002"</s>
CREATE TABLE table_name_87 (date VARCHAR, winning_score VARCHAR)
SELECT date FROM table_name_87 WHERE winning_score = 72 - 66 - 67 - 71 = 276
Which date was the Winning Score 72-66-67-71=276?
<s>[INST]Which date was the Winning Score 72-66-67-71=276? Context: CREATE TABLE table_name_87 (date VARCHAR, winning_score VARCHAR)[/INST]SELECT date FROM table_name_87 WHERE winning_score = 72 - 66 - 67 - 71 = 276</s>
CREATE TABLE table_name_89 (to_par VARCHAR, year_s__won VARCHAR)
SELECT to_par FROM table_name_89 WHERE year_s__won = "1964"
Which To par has a Year(s) won of 1964?
<s>[INST]Which To par has a Year(s) won of 1964? Context: CREATE TABLE table_name_89 (to_par VARCHAR, year_s__won VARCHAR)[/INST]SELECT to_par FROM table_name_89 WHERE year_s__won = "1964"</s>
CREATE TABLE table_name_31 (score_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_name_31 WHERE outcome = "winner" AND date = "3 august 2013"
Which Score in the final has an Outcome of winner, and a Date of 3 august 2013?
<s>[INST]Which Score in the final has an Outcome of winner, and a Date of 3 august 2013? Context: CREATE TABLE table_name_31 (score_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)[/INST]SELECT score_in_the_final FROM table_name_31 WHERE outcome = "winner" AND date = "3 august 2013"</s>
CREATE TABLE table_name_40 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_40 WHERE opponent = "atlanta falcons"
What was the record in the game where the opponent wasd the atlanta falcons?
<s>[INST]What was the record in the game where the opponent wasd the atlanta falcons? Context: CREATE TABLE table_name_40 (record VARCHAR, opponent VARCHAR)[/INST]SELECT record FROM table_name_40 WHERE opponent = "atlanta falcons"</s>
CREATE TABLE table_name_91 (wins INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR)
SELECT AVG(wins) FROM table_name_91 WHERE goal_difference > 12 AND club = "granada cf" AND played > 30
Which Wins have a Goal Difference larger than 12, and a Club of granada cf, and Played larger than 30?
<s>[INST]Which Wins have a Goal Difference larger than 12, and a Club of granada cf, and Played larger than 30? Context: CREATE TABLE table_name_91 (wins INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR)[/INST]SELECT AVG(wins) FROM table_name_91 WHERE goal_difference > 12 AND club = "granada cf" AND played > 30</s>
CREATE TABLE table_name_62 (winning_party_2003 VARCHAR, constituency VARCHAR)
SELECT winning_party_2003 FROM table_name_62 WHERE constituency = "aberdeen north"
Can you tell me the Winning party of 2003 that has the Constituency of aberdeen north?
<s>[INST]Can you tell me the Winning party of 2003 that has the Constituency of aberdeen north? Context: CREATE TABLE table_name_62 (winning_party_2003 VARCHAR, constituency VARCHAR)[/INST]SELECT winning_party_2003 FROM table_name_62 WHERE constituency = "aberdeen north"</s>
CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE professor (dept_code VARCHAR)
SELECT COUNT(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology'
How many professors who are from either Accounting or Biology department?
<s>[INST]How many professors who are from either Accounting or Biology department? Context: CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE professor (dept_code VARCHAR)[/INST]SELECT COUNT(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology'</s>
CREATE TABLE table_name_41 (significand VARCHAR, number_of_decimal_digits VARCHAR, total_bits VARCHAR)
SELECT COUNT(significand) FROM table_name_41 WHERE number_of_decimal_digits = "~34.0" AND total_bits > 128
What's the total number of signicand with ~34.0 decimal digits and more than 128 total bits?
<s>[INST]What's the total number of signicand with ~34.0 decimal digits and more than 128 total bits? Context: CREATE TABLE table_name_41 (significand VARCHAR, number_of_decimal_digits VARCHAR, total_bits VARCHAR)[/INST]SELECT COUNT(significand) FROM table_name_41 WHERE number_of_decimal_digits = "~34.0" AND total_bits > 128</s>
CREATE TABLE table_name_54 (centerfold_model VARCHAR, date VARCHAR)
SELECT centerfold_model FROM table_name_54 WHERE date = "3-01"
Which Centerfold model has a Date of 3-01?
<s>[INST]Which Centerfold model has a Date of 3-01? Context: CREATE TABLE table_name_54 (centerfold_model VARCHAR, date VARCHAR)[/INST]SELECT centerfold_model FROM table_name_54 WHERE date = "3-01"</s>
CREATE TABLE table_name_31 (round INTEGER, pick INTEGER)
SELECT MAX(round) FROM table_name_31 WHERE pick > 209
What is the highest round number of a Pick after 209.
<s>[INST]What is the highest round number of a Pick after 209. Context: CREATE TABLE table_name_31 (round INTEGER, pick INTEGER)[/INST]SELECT MAX(round) FROM table_name_31 WHERE pick > 209</s>
CREATE TABLE table_name_94 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_94 WHERE record = "3–1"
Which opponent has a record of 3–1?
<s>[INST]Which opponent has a record of 3–1? Context: CREATE TABLE table_name_94 (opponent VARCHAR, record VARCHAR)[/INST]SELECT opponent FROM table_name_94 WHERE record = "3–1"</s>
CREATE TABLE table_name_45 (loss VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT loss FROM table_name_45 WHERE opponent = "yankees" AND attendance = "27,652"
What was the loss of the game against the Yankees that was attended by 27,652?
<s>[INST]What was the loss of the game against the Yankees that was attended by 27,652? Context: CREATE TABLE table_name_45 (loss VARCHAR, opponent VARCHAR, attendance VARCHAR)[/INST]SELECT loss FROM table_name_45 WHERE opponent = "yankees" AND attendance = "27,652"</s>
CREATE TABLE table_name_77 (location VARCHAR, runners_up VARCHAR, winners VARCHAR)
SELECT location FROM table_name_77 WHERE runners_up = "canada" AND winners = "australia"
What is the Location when Canada was the runner-up and Australia was the winner?
<s>[INST]What is the Location when Canada was the runner-up and Australia was the winner? Context: CREATE TABLE table_name_77 (location VARCHAR, runners_up VARCHAR, winners VARCHAR)[/INST]SELECT location FROM table_name_77 WHERE runners_up = "canada" AND winners = "australia"</s>
CREATE TABLE table_24431348_20 (status VARCHAR, new_points VARCHAR)
SELECT COUNT(status) FROM table_24431348_20 WHERE new_points = 2690
How many times is the new points 2690?
<s>[INST]How many times is the new points 2690? Context: CREATE TABLE table_24431348_20 (status VARCHAR, new_points VARCHAR)[/INST]SELECT COUNT(status) FROM table_24431348_20 WHERE new_points = 2690</s>
CREATE TABLE table_name_26 (wins INTEGER, top_5 VARCHAR)
SELECT AVG(wins) FROM table_name_26 WHERE top_5 = 6
Which Wins has a Top-5 of 6?
<s>[INST]Which Wins has a Top-5 of 6? Context: CREATE TABLE table_name_26 (wins INTEGER, top_5 VARCHAR)[/INST]SELECT AVG(wins) FROM table_name_26 WHERE top_5 = 6</s>
CREATE TABLE table_name_67 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_67 WHERE time_retired = "engine" AND grid = 1
What constructor is grid 1 with a time/retired of engine?
<s>[INST]What constructor is grid 1 with a time/retired of engine? Context: CREATE TABLE table_name_67 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR)[/INST]SELECT constructor FROM table_name_67 WHERE time_retired = "engine" AND grid = 1</s>
CREATE TABLE table_name_56 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_56 WHERE score = 66
What to par has 66 as the score?
<s>[INST]What to par has 66 as the score? Context: CREATE TABLE table_name_56 (to_par VARCHAR, score VARCHAR)[/INST]SELECT to_par FROM table_name_56 WHERE score = 66</s>
CREATE TABLE table_18123274_1 (director VARCHAR, original_title VARCHAR)
SELECT COUNT(director) FROM table_18123274_1 WHERE original_title = "Oro Diablo"
Name the total number of director for oro diablo
<s>[INST]Name the total number of director for oro diablo Context: CREATE TABLE table_18123274_1 (director VARCHAR, original_title VARCHAR)[/INST]SELECT COUNT(director) FROM table_18123274_1 WHERE original_title = "Oro Diablo"</s>
CREATE TABLE routes (rid VARCHAR, dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR); CREATE TABLE airports (rid VARCHAR, dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR)
SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'United States') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')
Find the id of routes whose source and destination airports are in the United States.
<s>[INST]Find the id of routes whose source and destination airports are in the United States. Context: CREATE TABLE routes (rid VARCHAR, dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR); CREATE TABLE airports (rid VARCHAR, dst_apid VARCHAR, src_apid VARCHAR, apid VARCHAR, country VARCHAR)[/INST]SELECT rid FROM routes WHERE dst_apid IN (SELECT apid FROM airports WHERE country = 'United States') AND src_apid IN (SELECT apid FROM airports WHERE country = 'United States')</s>
CREATE TABLE table_10054296_1 (chapters INTEGER, classification VARCHAR, headquarters VARCHAR)
SELECT MAX(chapters) FROM table_10054296_1 WHERE classification = "Fraternity" AND headquarters = "Austin, Texas"
What is the number of chapters listed for the fraternity with a headquarters in Austin, Texas?
<s>[INST]What is the number of chapters listed for the fraternity with a headquarters in Austin, Texas? Context: CREATE TABLE table_10054296_1 (chapters INTEGER, classification VARCHAR, headquarters VARCHAR)[/INST]SELECT MAX(chapters) FROM table_10054296_1 WHERE classification = "Fraternity" AND headquarters = "Austin, Texas"</s>
CREATE TABLE table_name_68 (year INTEGER, sport VARCHAR, first VARCHAR)
SELECT SUM(year) FROM table_name_68 WHERE sport = "swimming" AND first = "mike"
Name the sum of year for swimming and first of mike
<s>[INST]Name the sum of year for swimming and first of mike Context: CREATE TABLE table_name_68 (year INTEGER, sport VARCHAR, first VARCHAR)[/INST]SELECT SUM(year) FROM table_name_68 WHERE sport = "swimming" AND first = "mike"</s>
CREATE TABLE table_name_3 (name VARCHAR, team VARCHAR, wsu_year_s_ VARCHAR)
SELECT name FROM table_name_3 WHERE team = "detroit pistons" AND wsu_year_s_ = "1979-82"
What is Name, when Team is Detroit Pistons, and when WSU Year(s) is 1979-82?
<s>[INST]What is Name, when Team is Detroit Pistons, and when WSU Year(s) is 1979-82? Context: CREATE TABLE table_name_3 (name VARCHAR, team VARCHAR, wsu_year_s_ VARCHAR)[/INST]SELECT name FROM table_name_3 WHERE team = "detroit pistons" AND wsu_year_s_ = "1979-82"</s>
CREATE TABLE table_name_63 (name VARCHAR, reported_death_date VARCHAR)
SELECT name FROM table_name_63 WHERE reported_death_date = "6 march 1998"
Who has a reported death of 6 march 1998?
<s>[INST]Who has a reported death of 6 march 1998? Context: CREATE TABLE table_name_63 (name VARCHAR, reported_death_date VARCHAR)[/INST]SELECT name FROM table_name_63 WHERE reported_death_date = "6 march 1998"</s>
CREATE TABLE table_2846320_4 (au_won INTEGER, games_played VARCHAR)
SELECT MIN(au_won) FROM table_2846320_4 WHERE games_played = 92
what was the lowest number that auburn triumphed where the activities took part was 92
<s>[INST]what was the lowest number that auburn triumphed where the activities took part was 92 Context: CREATE TABLE table_2846320_4 (au_won INTEGER, games_played VARCHAR)[/INST]SELECT MIN(au_won) FROM table_2846320_4 WHERE games_played = 92</s>
CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_7 WHERE home_team = "south melbourne"
Who was the away team when the home team was South Melbourne?
<s>[INST]Who was the away team when the home team was South Melbourne? Context: CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)[/INST]SELECT away_team FROM table_name_7 WHERE home_team = "south melbourne"</s>
CREATE TABLE table_name_73 (location VARCHAR, record VARCHAR)
SELECT location FROM table_name_73 WHERE record = "10-3"
Which location led to a 10-3 record?
<s>[INST]Which location led to a 10-3 record? Context: CREATE TABLE table_name_73 (location VARCHAR, record VARCHAR)[/INST]SELECT location FROM table_name_73 WHERE record = "10-3"</s>
CREATE TABLE table_name_30 (player VARCHAR, transfer_fee VARCHAR, pos VARCHAR)
SELECT player FROM table_name_30 WHERE transfer_fee = "released" AND pos = "df"
Who had a transfer fee of released and played the position of DF?
<s>[INST]Who had a transfer fee of released and played the position of DF? Context: CREATE TABLE table_name_30 (player VARCHAR, transfer_fee VARCHAR, pos VARCHAR)[/INST]SELECT player FROM table_name_30 WHERE transfer_fee = "released" AND pos = "df"</s>
CREATE TABLE table_name_16 (days INTEGER, launch_date VARCHAR)
SELECT MAX(days) FROM table_name_16 WHERE launch_date = "23 january 2010"
What is Highest Days, when Launch Date is 23 January 2010?
<s>[INST]What is Highest Days, when Launch Date is 23 January 2010? Context: CREATE TABLE table_name_16 (days INTEGER, launch_date VARCHAR)[/INST]SELECT MAX(days) FROM table_name_16 WHERE launch_date = "23 january 2010"</s>
CREATE TABLE table_name_71 (country VARCHAR, name VARCHAR)
SELECT country FROM table_name_71 WHERE name = "sba towers tower hayneville"
What country has the SBA Towers Tower Hayneville?
<s>[INST]What country has the SBA Towers Tower Hayneville? Context: CREATE TABLE table_name_71 (country VARCHAR, name VARCHAR)[/INST]SELECT country FROM table_name_71 WHERE name = "sba towers tower hayneville"</s>
CREATE TABLE table_name_63 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_63 WHERE place = "t4" AND score = 72 - 69 - 73 = 214
What is the To par of the T4 Place Player with a Score of 72-69-73=214?
<s>[INST]What is the To par of the T4 Place Player with a Score of 72-69-73=214? Context: CREATE TABLE table_name_63 (to_par VARCHAR, place VARCHAR, score VARCHAR)[/INST]SELECT to_par FROM table_name_63 WHERE place = "t4" AND score = 72 - 69 - 73 = 214</s>
CREATE TABLE table_name_75 (position VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT position FROM table_name_75 WHERE nationality = "united states" AND player = "jimmy oliver"
What position did Jimmy Oliver of the United States play?
<s>[INST]What position did Jimmy Oliver of the United States play? Context: CREATE TABLE table_name_75 (position VARCHAR, nationality VARCHAR, player VARCHAR)[/INST]SELECT position FROM table_name_75 WHERE nationality = "united states" AND player = "jimmy oliver"</s>
CREATE TABLE table_name_7 (team VARCHAR, attempts VARCHAR)
SELECT team FROM table_name_7 WHERE attempts = "307"
What is the name of the team that has 307 attempts?
<s>[INST]What is the name of the team that has 307 attempts? Context: CREATE TABLE table_name_7 (team VARCHAR, attempts VARCHAR)[/INST]SELECT team FROM table_name_7 WHERE attempts = "307"</s>
CREATE TABLE table_name_44 (season INTEGER, podiums VARCHAR, races VARCHAR)
SELECT MAX(season) FROM table_name_44 WHERE podiums = "0" AND races = "16"
Which Season has Podiums of 0, and Races of 16?
<s>[INST]Which Season has Podiums of 0, and Races of 16? Context: CREATE TABLE table_name_44 (season INTEGER, podiums VARCHAR, races VARCHAR)[/INST]SELECT MAX(season) FROM table_name_44 WHERE podiums = "0" AND races = "16"</s>
CREATE TABLE table_2581397_3 (distance VARCHAR, weight__kg_ VARCHAR)
SELECT distance FROM table_2581397_3 WHERE weight__kg_ = "56"
List the weight for 56 kilograms.
<s>[INST]List the weight for 56 kilograms. Context: CREATE TABLE table_2581397_3 (distance VARCHAR, weight__kg_ VARCHAR)[/INST]SELECT distance FROM table_2581397_3 WHERE weight__kg_ = "56"</s>
CREATE TABLE table_17429402_7 (school VARCHAR, last_occ_championship VARCHAR)
SELECT COUNT(school) FROM table_17429402_7 WHERE last_occ_championship = "2006"
How many schools won their last occ championship in 2006?
<s>[INST]How many schools won their last occ championship in 2006? Context: CREATE TABLE table_17429402_7 (school VARCHAR, last_occ_championship VARCHAR)[/INST]SELECT COUNT(school) FROM table_17429402_7 WHERE last_occ_championship = "2006"</s>
CREATE TABLE table_name_23 (city VARCHAR, completion VARCHAR)
SELECT city FROM table_name_23 WHERE completion = "1910-1978"
What city was completed in 1910-1978?
<s>[INST]What city was completed in 1910-1978? Context: CREATE TABLE table_name_23 (city VARCHAR, completion VARCHAR)[/INST]SELECT city FROM table_name_23 WHERE completion = "1910-1978"</s>
CREATE TABLE table_name_74 (host VARCHAR, country VARCHAR)
SELECT host FROM table_name_74 WHERE country = "horrid henry"
What was the host of Horrid Henry?
<s>[INST]What was the host of Horrid Henry? Context: CREATE TABLE table_name_74 (host VARCHAR, country VARCHAR)[/INST]SELECT host FROM table_name_74 WHERE country = "horrid henry"</s>
CREATE TABLE table_name_18 (first_member VARCHAR, second_member VARCHAR)
SELECT 1 AS st_party FROM table_name_18 WHERE first_member = "peter john locke king" AND second_member = "james watney"
What is 1st Party, when First Member is "Peter John Locke King", and when Second Member is "James Watney"?
<s>[INST]What is 1st Party, when First Member is "Peter John Locke King", and when Second Member is "James Watney"? Context: CREATE TABLE table_name_18 (first_member VARCHAR, second_member VARCHAR)[/INST]SELECT 1 AS st_party FROM table_name_18 WHERE first_member = "peter john locke king" AND second_member = "james watney"</s>
CREATE TABLE table_name_83 (year INTEGER, outcome VARCHAR, championship VARCHAR)
SELECT SUM(year) FROM table_name_83 WHERE outcome = "runner-up" AND championship = "indian wells"
How many years have runner-up as the outcome, and indian wells as the championship?
<s>[INST]How many years have runner-up as the outcome, and indian wells as the championship? Context: CREATE TABLE table_name_83 (year INTEGER, outcome VARCHAR, championship VARCHAR)[/INST]SELECT SUM(year) FROM table_name_83 WHERE outcome = "runner-up" AND championship = "indian wells"</s>
CREATE TABLE table_16388439_2 (away_team VARCHAR, crowd VARCHAR)
SELECT away_team AS score FROM table_16388439_2 WHERE crowd = 8642
When the crowd was 8642 what was the away team's score?
<s>[INST]When the crowd was 8642 what was the away team's score? Context: CREATE TABLE table_16388439_2 (away_team VARCHAR, crowd VARCHAR)[/INST]SELECT away_team AS score FROM table_16388439_2 WHERE crowd = 8642</s>
CREATE TABLE table_name_37 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_37 WHERE game = 56
What's the record of Game 56?
<s>[INST]What's the record of Game 56? Context: CREATE TABLE table_name_37 (record VARCHAR, game VARCHAR)[/INST]SELECT record FROM table_name_37 WHERE game = 56</s>
CREATE TABLE table_name_81 (episode_title VARCHAR, original_airdate VARCHAR)
SELECT episode_title FROM table_name_81 WHERE original_airdate = "october 8, 1988"
Name the episode that aired october 8, 1988
<s>[INST]Name the episode that aired october 8, 1988 Context: CREATE TABLE table_name_81 (episode_title VARCHAR, original_airdate VARCHAR)[/INST]SELECT episode_title FROM table_name_81 WHERE original_airdate = "october 8, 1988"</s>
CREATE TABLE table_name_48 (attendance VARCHAR, arena VARCHAR)
SELECT COUNT(attendance) FROM table_name_48 WHERE arena = "jobing.com arena"
What was the Attendance at Jobing.com Arena?
<s>[INST]What was the Attendance at Jobing.com Arena? Context: CREATE TABLE table_name_48 (attendance VARCHAR, arena VARCHAR)[/INST]SELECT COUNT(attendance) FROM table_name_48 WHERE arena = "jobing.com arena"</s>
CREATE TABLE table_27704187_11 (location_attendance VARCHAR, game VARCHAR)
SELECT location_attendance FROM table_27704187_11 WHERE game = 75
Where did they play and how many attended game number 75?
<s>[INST]Where did they play and how many attended game number 75? Context: CREATE TABLE table_27704187_11 (location_attendance VARCHAR, game VARCHAR)[/INST]SELECT location_attendance FROM table_27704187_11 WHERE game = 75</s>
CREATE TABLE table_1979203_1 (branding VARCHAR, _virtual_ VARCHAR)
SELECT branding FROM table_1979203_1 WHERE _virtual_ = "13.1"
what is the name of the branding where the virtual is 13.1
<s>[INST]what is the name of the branding where the virtual is 13.1 Context: CREATE TABLE table_1979203_1 (branding VARCHAR, _virtual_ VARCHAR)[/INST]SELECT branding FROM table_1979203_1 WHERE _virtual_ = "13.1"</s>
CREATE TABLE table_name_2 (lost INTEGER, years VARCHAR, total_games VARCHAR)
SELECT SUM(lost) FROM table_name_2 WHERE years > 122 AND total_games > 1244
How many losses had more than 122 years and more than 1244 total games?
<s>[INST]How many losses had more than 122 years and more than 1244 total games? Context: CREATE TABLE table_name_2 (lost INTEGER, years VARCHAR, total_games VARCHAR)[/INST]SELECT SUM(lost) FROM table_name_2 WHERE years > 122 AND total_games > 1244</s>
CREATE TABLE table_name_25 (team_nickname VARCHAR, affiliation VARCHAR, enrollment VARCHAR)
SELECT team_nickname FROM table_name_25 WHERE affiliation = "private/catholic" AND enrollment > 3 OFFSET 490
What's the team nickname of the private/catholic school whose enrollment is larger than 3,490?
<s>[INST]What's the team nickname of the private/catholic school whose enrollment is larger than 3,490? Context: CREATE TABLE table_name_25 (team_nickname VARCHAR, affiliation VARCHAR, enrollment VARCHAR)[/INST]SELECT team_nickname FROM table_name_25 WHERE affiliation = "private/catholic" AND enrollment > 3 OFFSET 490</s>
CREATE TABLE table_20404716_1 (director VARCHAR, result VARCHAR, spanish_title VARCHAR)
SELECT director FROM table_20404716_1 WHERE result = "Not Nominated" AND spanish_title = "Play"
Who was the director of the film that was not nominated and had the Spanish title of play?
<s>[INST]Who was the director of the film that was not nominated and had the Spanish title of play? Context: CREATE TABLE table_20404716_1 (director VARCHAR, result VARCHAR, spanish_title VARCHAR)[/INST]SELECT director FROM table_20404716_1 WHERE result = "Not Nominated" AND spanish_title = "Play"</s>
CREATE TABLE table_28243323_1 (basis_for_team_song VARCHAR, writer_composer VARCHAR)
SELECT basis_for_team_song FROM table_28243323_1 WHERE writer_composer = "Ken Walther"
What is the name of the team song written by ken walther?
<s>[INST]What is the name of the team song written by ken walther? Context: CREATE TABLE table_28243323_1 (basis_for_team_song VARCHAR, writer_composer VARCHAR)[/INST]SELECT basis_for_team_song FROM table_28243323_1 WHERE writer_composer = "Ken Walther"</s>
CREATE TABLE table_name_61 (score VARCHAR, champion VARCHAR)
SELECT score FROM table_name_61 WHERE champion = "nannette hill"
What was the score when Nannette Hill was the champion?
<s>[INST]What was the score when Nannette Hill was the champion? Context: CREATE TABLE table_name_61 (score VARCHAR, champion VARCHAR)[/INST]SELECT score FROM table_name_61 WHERE champion = "nannette hill"</s>
CREATE TABLE table_name_32 (chassis VARCHAR, engine VARCHAR)
SELECT chassis FROM table_name_32 WHERE engine = "climax straight-4"
What chassis was paired with climax straight-4?
<s>[INST]What chassis was paired with climax straight-4? Context: CREATE TABLE table_name_32 (chassis VARCHAR, engine VARCHAR)[/INST]SELECT chassis FROM table_name_32 WHERE engine = "climax straight-4"</s>
CREATE TABLE table_19925114_1 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT COUNT(directed_by) FROM table_19925114_1 WHERE no_in_series = 38
How many episodes had the series number of 38?
<s>[INST]How many episodes had the series number of 38? Context: CREATE TABLE table_19925114_1 (directed_by VARCHAR, no_in_series VARCHAR)[/INST]SELECT COUNT(directed_by) FROM table_19925114_1 WHERE no_in_series = 38</s>
CREATE TABLE table_name_42 (round INTEGER, date VARCHAR)
SELECT MAX(round) FROM table_name_42 WHERE date = "5 april"
What is the highest round on 5 april?
<s>[INST]What is the highest round on 5 april? Context: CREATE TABLE table_name_42 (round INTEGER, date VARCHAR)[/INST]SELECT MAX(round) FROM table_name_42 WHERE date = "5 april"</s>
CREATE TABLE table_24051050_1 (events VARCHAR, episode VARCHAR)
SELECT events FROM table_24051050_1 WHERE episode = 12
What events took place in episode 12?
<s>[INST]What events took place in episode 12? Context: CREATE TABLE table_24051050_1 (events VARCHAR, episode VARCHAR)[/INST]SELECT events FROM table_24051050_1 WHERE episode = 12</s>
CREATE TABLE table_2522473_1 (seasons INTEGER)
SELECT MAX(seasons) FROM table_2522473_1
What is the maximum number of seasons for any team?
<s>[INST]What is the maximum number of seasons for any team? Context: CREATE TABLE table_2522473_1 (seasons INTEGER)[/INST]SELECT MAX(seasons) FROM table_2522473_1</s>
CREATE TABLE table_1341423_38 (first_elected INTEGER, incumbent VARCHAR)
SELECT MAX(first_elected) FROM table_1341423_38 WHERE incumbent = "Jim Greenwood"
What's the first elected year of the district whose incumbent is Jim Greenwood?
<s>[INST]What's the first elected year of the district whose incumbent is Jim Greenwood? Context: CREATE TABLE table_1341423_38 (first_elected INTEGER, incumbent VARCHAR)[/INST]SELECT MAX(first_elected) FROM table_1341423_38 WHERE incumbent = "Jim Greenwood"</s>
CREATE TABLE table_1140116_6 (race_name VARCHAR, winning_driver VARCHAR)
SELECT race_name FROM table_1140116_6 WHERE winning_driver = "Paul Greifzu"
Which races did Paul Greifzu win?
<s>[INST]Which races did Paul Greifzu win? Context: CREATE TABLE table_1140116_6 (race_name VARCHAR, winning_driver VARCHAR)[/INST]SELECT race_name FROM table_1140116_6 WHERE winning_driver = "Paul Greifzu"</s>
CREATE TABLE Guests (date_of_birth VARCHAR, gender_code VARCHAR)
SELECT date_of_birth FROM Guests WHERE gender_code = "Male"
Return the date of birth for all the guests with gender code "Male".
<s>[INST]Return the date of birth for all the guests with gender code "Male". Context: CREATE TABLE Guests (date_of_birth VARCHAR, gender_code VARCHAR)[/INST]SELECT date_of_birth FROM Guests WHERE gender_code = "Male"</s>
CREATE TABLE table_name_97 (year VARCHAR, chassis VARCHAR)
SELECT COUNT(year) FROM table_name_97 WHERE chassis = "lotus 18"
What is the year of the Lotus 18 chassis?
<s>[INST]What is the year of the Lotus 18 chassis? Context: CREATE TABLE table_name_97 (year VARCHAR, chassis VARCHAR)[/INST]SELECT COUNT(year) FROM table_name_97 WHERE chassis = "lotus 18"</s>
CREATE TABLE table_name_73 (opponent VARCHAR, competition VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_73 WHERE competition = "challenge" AND result = "8-2 w"
Which opponent completed a challenge competition with a result of 8-2 w?
<s>[INST]Which opponent completed a challenge competition with a result of 8-2 w? Context: CREATE TABLE table_name_73 (opponent VARCHAR, competition VARCHAR, result VARCHAR)[/INST]SELECT opponent FROM table_name_73 WHERE competition = "challenge" AND result = "8-2 w"</s>
CREATE TABLE table_name_17 (gold INTEGER, overall VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT SUM(gold) FROM table_name_17 WHERE silver < 32 AND bronze = 25 AND overall < 67
How many gold when silver is less than 32, bronze is 25, and overall is less than 67?
<s>[INST]How many gold when silver is less than 32, bronze is 25, and overall is less than 67? Context: CREATE TABLE table_name_17 (gold INTEGER, overall VARCHAR, silver VARCHAR, bronze VARCHAR)[/INST]SELECT SUM(gold) FROM table_name_17 WHERE silver < 32 AND bronze = 25 AND overall < 67</s>
CREATE TABLE table_name_40 (finals VARCHAR, name VARCHAR)
SELECT finals FROM table_name_40 WHERE name = "grant brebner"
What finals have grant brebner as the name?
<s>[INST]What finals have grant brebner as the name? Context: CREATE TABLE table_name_40 (finals VARCHAR, name VARCHAR)[/INST]SELECT finals FROM table_name_40 WHERE name = "grant brebner"</s>
CREATE TABLE table_1566848_8 (date VARCHAR, centerfold_model VARCHAR)
SELECT date FROM table_1566848_8 WHERE centerfold_model = "Kymberly Paige"
When was the Kymberly Paige the Centerfold?
<s>[INST]When was the Kymberly Paige the Centerfold? Context: CREATE TABLE table_1566848_8 (date VARCHAR, centerfold_model VARCHAR)[/INST]SELECT date FROM table_1566848_8 WHERE centerfold_model = "Kymberly Paige"</s>