text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Name the number of date for stephen curry , dorell wright (27) <|assistant|> SELECT COUNT("date") FROM "game_log" WHERE "high_points"='Stephen Curry , Dorell Wright (27)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Name the high rebounds for 77 game <|assistant|> SELECT "high_rebounds" FROM "game_log" WHERE "game"=77;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the record after the game on November 10? <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='November 10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is the score when the hight points is Monta Ellis (29)? <|assistant|> SELECT "score" FROM "game_log" WHERE "high_points"='Monta Ellis (29)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: How many teams have hight points listed as David Lee (31)? <|assistant|> SELECT COUNT("team") FROM "game_log" WHERE "high_points"='David Lee (31)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is the record when the high points is listed as Stephen Curry (32)? <|assistant|> SELECT "record" FROM "game_log" WHERE "high_points"='Stephen Curry (32)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is the record when the date is January 7? <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='January 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is the date when the team is listed as New Orleans? <|assistant|> SELECT "date" FROM "game_log" WHERE "team"='New Orleans';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the team where Darren Collison (7) scored high assists? <|assistant|> SELECT "team" FROM "game_log" WHERE "high_assists"='Darren Collison (7)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: When did the Roy Hibbert (27) did the high points? <|assistant|> SELECT "date" FROM "game_log" WHERE "high_points"='Roy Hibbert (27)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: In how many different games did Roy Hibbert (16) did the most high rebounds? <|assistant|> SELECT COUNT("game") FROM "game_log" WHERE "high_rebounds"='Roy Hibbert (16)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the score of the game in which Danny Granger (30) did the high points? <|assistant|> SELECT "score" FROM "game_log" WHERE "high_points"='Danny Granger (30)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who scored the most points when the Bucks played against Houston? <|assistant|> SELECT "high_points" FROM "game_log" WHERE "team"='Houston';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What date was game number 22 on? <|assistant|> SELECT "date" FROM "game_log" WHERE "game"=22;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: How many people scored the most points during the game on December 10? <|assistant|> SELECT COUNT("high_points") FROM "game_log" WHERE "date"='December 10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: When the team is chicago what is the location attendence? <|assistant|> SELECT "location_attendance" FROM "game_log" WHERE "team"='Chicago';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is the score when the team is Orlando? <|assistant|> SELECT COUNT("score") FROM "game_log" WHERE "team"='Orlando';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the score in the game on March 26? <|assistant|> SELECT "score" FROM "game_log" WHERE "date"='March 26';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the record when the Clippers played Philadelphia? <|assistant|> SELECT "record" FROM "game_log" WHERE "team"='Philadelphia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What location and attendance were there for game 5? <|assistant|> SELECT "location_attendance" FROM "game_log" WHERE "game"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Which game did rudy gay (12) have the highest points? <|assistant|> SELECT "game" FROM "game_log" WHERE "high_points"='Rudy Gay (12)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: How many high assists where there for the team of caja laboral? <|assistant|> SELECT COUNT("high_assists") FROM "game_log" WHERE "team"='Caja Laboral';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Which game did marc gasol (10) have the high rebounds? <|assistant|> SELECT "game" FROM "game_log" WHERE "high_rebounds"='Marc Gasol (10)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who had the high assists on october 6? <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "date"='October 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Name the total number of high assists for fedexforum 11,283 <|assistant|> SELECT COUNT("high_assists") FROM "game_log" WHERE "location_attendance"='FedExForum 11,283';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Name the most game for us airways center 16,470 <|assistant|> SELECT MIN("game") FROM "game_log" WHERE "location_attendance"='US Airways Center 16,470';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who and what were the high points player for the game against Detroit? <|assistant|> SELECT "high_points" FROM "game_log" WHERE "team"='Detroit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27764201_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: How many times did the Centurions play the Rhein Fire? <|assistant|> SELECT COUNT("game_site") FROM "table1_27764201_2" WHERE "opponent"='Rhein Fire';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27764201_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: Where did the Centurions play the Hamburg Sea Devils? <|assistant|> SELECT "game_site" FROM "table1_27764201_2" WHERE "opponent"='Hamburg Sea Devils';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27764201_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real ); Question: What time was the kickoff against the Frankfurt Galaxy? <|assistant|> SELECT "kickoff" FROM "table1_27764201_2" WHERE "opponent"='Frankfurt Galaxy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "no" real, "player" text, "club" text, "test_career" text, "tests" real, "catches" real, "stumpings" real, "total_dismissals" real ); Question: How many total catches did the player with no. 46 have? <|assistant|> SELECT COUNT("catches") FROM "notes" WHERE "no"=46;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); Question: How did the manager who was replaced by Jakob Michelsen depart? <|assistant|> SELECT "manner_of_departure" FROM "managerial_changes" WHERE "replaced_by"='Jakob Michelsen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); Question: What was the AB team's position in table? <|assistant|> SELECT "position_in_table" FROM "managerial_changes" WHERE "team"='AB';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); Question: On what date did Kim Fogh replace the previous manager? <|assistant|> SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='Kim Fogh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); Question: What was the vacancy date for Thomas Thomasberg? <|assistant|> SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='Thomas Thomasberg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); Question: Which manager was replaced by Thomas Thomasberg? <|assistant|> SELECT "outgoing_manager" FROM "managerial_changes" WHERE "replaced_by"='Thomas Thomasberg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27771406_1" ( "no" real, "player" text, "club" text, "test_career" text, "tests" real, "catches" real, "stumpings" real, "total_dismissals" real ); Question: How many total dismissals did the player for Guyana have? <|assistant|> SELECT MAX("total_dismissals") FROM "table1_27771406_1" WHERE "club"='Guyana';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27771406_1" ( "no" real, "player" text, "club" text, "test_career" text, "tests" real, "catches" real, "stumpings" real, "total_dismissals" real ); Question: The player for what club had 2 tests? <|assistant|> SELECT "club" FROM "table1_27771406_1" WHERE "tests"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27771406_1" ( "no" real, "player" text, "club" text, "test_career" text, "tests" real, "catches" real, "stumpings" real, "total_dismissals" real ); Question: What is the most amount of stumpings any player had? <|assistant|> SELECT MAX("stumpings") FROM "table1_27771406_1";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27771406_1" ( "no" real, "player" text, "club" text, "test_career" text, "tests" real, "catches" real, "stumpings" real, "total_dismissals" real ); Question: What club did Cyril Christiani play for? <|assistant|> SELECT "club" FROM "table1_27771406_1" WHERE "player"='Cyril Christiani';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27771406_1" ( "no" real, "player" text, "club" text, "test_career" text, "tests" real, "catches" real, "stumpings" real, "total_dismissals" real ); Question: How many catches did Clifford McWatt have? <|assistant|> SELECT MIN("catches") FROM "table1_27771406_1" WHERE "player"='Clifford McWatt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" real, "driver" text, "owner" text, "number" text, "make" text, "starts" text, "wins" real, "top_tens" real, "poles" real, "points_margin" text ); Question: Name the points for top tens being 24 and ownder david pearson <|assistant|> SELECT "points_margin" FROM "by_season" WHERE "top_tens"=24 AND "owner"='David Pearson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" real, "driver" text, "owner" text, "number" text, "make" text, "starts" text, "wins" real, "top_tens" real, "poles" real, "points_margin" text ); Question: Name the starts for bobby labonte <|assistant|> SELECT "starts" FROM "by_season" WHERE "driver"='Bobby Labonte';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" real, "driver" text, "owner" text, "number" text, "make" text, "starts" text, "wins" real, "top_tens" real, "poles" real, "points_margin" text ); Question: Name the poles for season 2006 <|assistant|> SELECT "poles" FROM "by_season" WHERE "season"=2006;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27776266_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: What was the production code of the episode no. 55 in the series? <|assistant|> SELECT "production_code" FROM "table1_27776266_1" WHERE "no_in_series"=55;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27776266_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: What was the production code of the episode with an audience of 14.79 million in the US? <|assistant|> SELECT "production_code" FROM "table1_27776266_1" WHERE "u_s_viewers_million"='14.79';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27776266_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: Who directed the episode with an audience of 14.11 million? <|assistant|> SELECT "directed_by" FROM "table1_27776266_1" WHERE "u_s_viewers_million"='14.11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27776266_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); Question: What was the title of the episode with a production code of 3x6404? <|assistant|> SELECT "title" FROM "table1_27776266_1" WHERE "production_code"='3X6404';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_ten" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which school players have a number of 255 <|assistant|> SELECT "college_junior_club_team" FROM "round_ten" WHERE "pick"=255;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_ten" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: what educational institute does wes swinson attend <|assistant|> SELECT "college_junior_club_team" FROM "round_ten" WHERE "player"='Wes Swinson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_ten" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: which part on the team does rick schuhwerk play <|assistant|> SELECT "position" FROM "round_ten" WHERE "player"='Rick Schuhwerk';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: For college/junior/club team is brandon wheat kings (whl) mention all the player name <|assistant|> SELECT "player" FROM "round_four" WHERE "college_junior_club_team"='Brandon Wheat Kings (WHL)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: For player is jamal mayers mention the minimum pick <|assistant|> SELECT MIN("pick") FROM "round_four" WHERE "player"='Jamal Mayers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: For player is john jakopin mention the total number of position <|assistant|> SELECT COUNT("position") FROM "round_four" WHERE "player"='John Jakopin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: For nhl team is san jose sharks mention all the college/junior/club team <|assistant|> SELECT "college_junior_club_team" FROM "round_four" WHERE "nhl_team"='San Jose Sharks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: For player is adam wiesel mention all the college/junior/club team <|assistant|> SELECT "college_junior_club_team" FROM "round_four" WHERE "player"='Adam Wiesel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many values are displayed under pick for Vlastimil Kroupa? <|assistant|> SELECT COUNT("pick") FROM "round_two" WHERE "player"='Vlastimil Kroupa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many positions does Janne Niinimaa play? <|assistant|> SELECT COUNT("position") FROM "round_two" WHERE "player"='Janne Niinimaa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many teams does Lee Sorochan play for? <|assistant|> SELECT COUNT("college_junior_club_team") FROM "round_two" WHERE "player"='Lee Sorochan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What player belongs to the Chicago Blackhawks? <|assistant|> SELECT "player" FROM "round_two" WHERE "nhl_team"='Chicago Blackhawks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many teams does Maxim Bets play for? <|assistant|> SELECT COUNT("nhl_team") FROM "round_two" WHERE "player"='Maxim Bets';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eleven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What was the minimum pick by the Florida Panthers? <|assistant|> SELECT MIN("pick") FROM "round_eleven" WHERE "nhl_team"='Florida Panthers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What NHL team picked Ryan Meade for the draft? <|assistant|> SELECT "nhl_team" FROM "round_seven" WHERE "player"='Ryan Meade';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What college team did Ryan Golden come from? <|assistant|> SELECT "college_junior_club_team" FROM "round_seven" WHERE "player"='Ryan Golden';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many different nationalities is pick number 179? <|assistant|> SELECT COUNT("nationality") FROM "round_seven" WHERE "pick"=179;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What college team did the pick for Pittsburgh Penguins come from? <|assistant|> SELECT "college_junior_club_team" FROM "round_seven" WHERE "nhl_team"='Pittsburgh Penguins';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What NHL team picked Tom White? <|assistant|> SELECT "nhl_team" FROM "round_seven" WHERE "player"='Tom White';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_peaks" ( "entry_date_a" text, "single" text, "artist" text, "peak" real, "peak_reached_a" text, "weeks_in_top_10" real ); Question: How many weeks in the top 10 was spent by a song performed by Peter Kay? <|assistant|> SELECT MAX("weeks_in_top_10") FROM "2009_peaks" WHERE "artist"='Peter Kay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_peaks" ( "entry_date_a" text, "single" text, "artist" text, "peak" real, "peak_reached_a" text, "weeks_in_top_10" real ); Question: How long has the longest song spent in the top 10? <|assistant|> SELECT MAX("weeks_in_top_10") FROM "2009_peaks";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What college/junior/club team did dmitri gorenko play for? <|assistant|> SELECT "college_junior_club_team" FROM "round_nine" WHERE "player"='Dmitri Gorenko';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What position does krylja sovetov (russia) play? <|assistant|> SELECT "position" FROM "round_nine" WHERE "college_junior_club_team"='Krylja Sovetov (Russia)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What position(s) does barrie moore play? <|assistant|> SELECT "position" FROM "round_nine" WHERE "player"='Barrie Moore';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "affiliate_members" ( "institution" text, "location" text, "founded" real, "type" text, "enrollment" real, "nickname" text, "current_conference" text, "pac_12_sports" text ); Question: How many pac-12 sports are shown for california polytechnic state university? <|assistant|> SELECT COUNT("pac_12_sports") FROM "affiliate_members" WHERE "institution"='California Polytechnic State University';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "affiliate_members" ( "institution" text, "location" text, "founded" real, "type" text, "enrollment" real, "nickname" text, "current_conference" text, "pac_12_sports" text ); Question: When was the institution in boise, idaho founded? <|assistant|> SELECT "founded" FROM "affiliate_members" WHERE "location"='Boise, Idaho';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "affiliate_members" ( "institution" text, "location" text, "founded" real, "type" text, "enrollment" real, "nickname" text, "current_conference" text, "pac_12_sports" text ); Question: Which conference did boise state university play at? <|assistant|> SELECT "current_conference" FROM "affiliate_members" WHERE "institution"='Boise State University';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "affiliate_members" ( "institution" text, "location" text, "founded" real, "type" text, "enrollment" real, "nickname" text, "current_conference" text, "pac_12_sports" text ); Question: When was the Titans founded? <|assistant|> SELECT MAX("founded") FROM "affiliate_members" WHERE "nickname"='Titans';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "affiliate_members" ( "institution" text, "location" text, "founded" real, "type" text, "enrollment" real, "nickname" text, "current_conference" text, "pac_12_sports" text ); Question: Which institution was founded in 1932? <|assistant|> SELECT "institution" FROM "affiliate_members" WHERE "founded"=1932;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "affiliate_members" ( "institution" text, "location" text, "founded" real, "type" text, "enrollment" real, "nickname" text, "current_conference" text, "pac_12_sports" text ); Question: Which institution was located in bakersfield, california? <|assistant|> SELECT "institution" FROM "affiliate_members" WHERE "location"='Bakersfield, California';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_statistics" ( "shirt_number" real, "player_name" text, "games_played" real, "total_points" real, "2_points" real, "3_points" real, "free_throw" real ); Question: Name the least games played for 6 points <|assistant|> SELECT MIN("games_played") FROM "player_statistics" WHERE "total_points"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" real, "driver" text, "owner" text, "no" real, "manufacturer" text, "starts" text, "wins" real, "top_tens" real, "poles" real, "points_margin" text ); Question: who is the manufacturer is no.50? <|assistant|> SELECT "manufacturer" FROM "by_season" WHERE "no"=50;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27823058_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: Which episodes did Katie Palmer write? <|assistant|> SELECT "title" FROM "table1_27823058_1" WHERE "written_by"='Katie Palmer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27823058_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: What's the highest series number ? <|assistant|> SELECT MAX("series_num") FROM "table1_27823058_1";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "territories_of_eastern_wu" ( "province" text, "provincial_capital" text, "commandery" text, "commandery_capital" text, "no_of_counties" real ); Question: when changsha 長沙 is the commandery what is the commandery capital? <|assistant|> SELECT "commandery_capital" FROM "territories_of_eastern_wu" WHERE "commandery"='Changsha 長沙';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "territories_of_eastern_wu" ( "province" text, "provincial_capital" text, "commandery" text, "commandery_capital" text, "no_of_counties" real ); Question: When yidu 宜都 is the commandery what is the lowest number of countries? <|assistant|> SELECT MIN("no_of_counties") FROM "territories_of_eastern_wu" WHERE "commandery"='Yidu 宜都';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "territories_of_eastern_wu" ( "province" text, "provincial_capital" text, "commandery" text, "commandery_capital" text, "no_of_counties" real ); Question: When nanhai 南海 is the commandery what is the commandery capital? <|assistant|> SELECT "commandery_capital" FROM "territories_of_eastern_wu" WHERE "commandery"='Nanhai 南海';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "territories_of_eastern_wu" ( "province" text, "provincial_capital" text, "commandery" text, "commandery_capital" text, "no_of_counties" real ); Question: When zhang'an county 章安縣 is the commandery capital what is the province? <|assistant|> SELECT "province" FROM "territories_of_eastern_wu" WHERE "commandery_capital"='Zhang''an County 章安縣';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "territories_of_eastern_wu" ( "province" text, "provincial_capital" text, "commandery" text, "commandery_capital" text, "no_of_counties" real ); Question: When gaoliang 高涼 is the commandery what is the commandery capital? <|assistant|> SELECT "commandery_capital" FROM "territories_of_eastern_wu" WHERE "commandery"='Gaoliang 高涼';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27832075_2" ( "series_num" real, "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: What is the title of episode number 9-10? <|assistant|> SELECT "title" FROM "table1_27832075_2" WHERE "episode_num"='9-10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27832075_2" ( "series_num" real, "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: How many million U.S. viewers wtched episode 69 of the series? <|assistant|> SELECT "u_s_viewers_millions" FROM "table1_27832075_2" WHERE "series_num"=69;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27832075_2" ( "series_num" real, "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: Who directed episode number 23 in the season? <|assistant|> SELECT "directed_by" FROM "table1_27832075_2" WHERE "episode_num"='23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27832075_2" ( "series_num" real, "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: What is the name of episode number 12 of the season? <|assistant|> SELECT "title" FROM "table1_27832075_2" WHERE "episode_num"='12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_winners" ( "year" real, "location" text, "distance_miles" real, "rider_names" text, "horse_name" text, "best_conditioned_horse" text ); Question: What are all the Riders whose best-conditioned horse is Basia? <|assistant|> SELECT "rider_names" FROM "world_championship_winners" WHERE "best_conditioned_horse"='Basia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_winners" ( "year" real, "location" text, "distance_miles" real, "rider_names" text, "horse_name" text, "best_conditioned_horse" text ); Question: What was the distance (in miles) of the championship were the winning horse was Koona? <|assistant|> SELECT "distance_miles" FROM "world_championship_winners" WHERE "horse_name"='Koona';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_winners" ( "year" real, "location" text, "distance_miles" real, "rider_names" text, "horse_name" text, "best_conditioned_horse" text ); Question: Who were the winning riders of the championship in Euer Valley, CA and whose horse was Magic Sirocco? <|assistant|> SELECT "rider_names" FROM "world_championship_winners" WHERE "location"='Euer Valley, CA' AND "horse_name"='Magic Sirocco';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_winners" ( "year" real, "location" text, "distance_miles" real, "rider_names" text, "horse_name" text, "best_conditioned_horse" text ); Question: How many different riders are there that won riding Omr Tsunami? <|assistant|> SELECT COUNT("rider_names") FROM "world_championship_winners" WHERE "horse_name"='OMR Tsunami';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_winners" ( "year" real, "location" text, "distance_miles" real, "rider_names" text, "horse_name" text, "best_conditioned_horse" text ); Question: What was the total distance (in miles) of the championship where the best conditioned horse was Freedom? <|assistant|> SELECT "distance_miles" FROM "world_championship_winners" WHERE "best_conditioned_horse"='Freedom';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27833469_1" ( "series_num" real, "season_num" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: Who directed the episoede titled "sex, losers, and videotape"? <|assistant|> SELECT "directed_by" FROM "table1_27833469_1" WHERE "title"='\"Sex, Losers, and Videotape\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27833469_1" ( "series_num" real, "season_num" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: How many series numbers are there when there were 15.8 u.s. viewers (millions)? <|assistant|> SELECT COUNT("series_num") FROM "table1_27833469_1" WHERE "u_s_viewers_millions"='15.8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27833469_1" ( "series_num" real, "season_num" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: What is the title of the episode number 11 of the season? <|assistant|> SELECT "title" FROM "table1_27833469_1" WHERE "season_num"='11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_27833469_1" ( "series_num" real, "season_num" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: What is the air date of the episode titled "boardroom and a parked place"? <|assistant|> SELECT "original_air_date" FROM "table1_27833469_1" WHERE "title"='\"Boardroom and a Parked Place\"';<|endoftext|>