text
stringlengths 411
1.74k
|
---|
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_four" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "How many players came from college team reipas lahti (finland)?". [/INST] SELECT COUNT("player") FROM "round_four" WHERE "college_junior_club_team"='Reipas Lahti (Finland)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_four" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What position does Antti-Jussi Niemi play?". [/INST] SELECT "position" FROM "round_four" WHERE "player"='Antti-Jussi Niemi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_four" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What position does that draft pick play from Lake Superior State University (NCAA)?". [/INST] SELECT "position" FROM "round_four" WHERE "college_junior_club_team"='Lake Superior State University (NCAA)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_four" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What is the nationality of Christian Lefebvre?". [/INST] SELECT "nationality" FROM "round_four" WHERE "player"='Christian Lefebvre';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_eight" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Name the number of nationalities for ryan mckie". [/INST] SELECT COUNT("nationality") FROM "round_eight" WHERE "player"='Ryan Mckie';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_eight" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Name the pick for matthew scorsune". [/INST] SELECT "pick" FROM "round_eight" WHERE "player"='Matthew Scorsune';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_eight" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Name the college for andrej podkonicky". [/INST] SELECT "college_junior_club_team" FROM "round_eight" WHERE "player"='Andrej Podkonicky';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_eight" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Name the most pick for evgeny korolev". [/INST] SELECT MAX("pick") FROM "round_eight" WHERE "player"='Evgeny Korolev';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "coastal_carolina_vs_fbs_schools" ( "year" real, "fbs_opponent" text, "result" text, "opponents_conference" text, "opponents_head_coach" text, "coastal_carolina_head_coach" text );. Question: "Who was the coastal Carolina head coach in 2013?". [/INST] SELECT "coastal_carolina_head_coach" FROM "coastal_carolina_vs_fbs_schools" WHERE "year"=2013;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "coastal_carolina_vs_fbs_schools" ( "year" real, "fbs_opponent" text, "result" text, "opponents_conference" text, "opponents_head_coach" text, "coastal_carolina_head_coach" text );. Question: "How many head coaches did Kent state golden flashes have?". [/INST] SELECT COUNT("opponents_head_coach") FROM "coastal_carolina_vs_fbs_schools" WHERE "fbs_opponent"='Kent State Golden Flashes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "coastal_carolina_vs_fbs_schools" ( "year" real, "fbs_opponent" text, "result" text, "opponents_conference" text, "opponents_head_coach" text, "coastal_carolina_head_coach" text );. Question: "What was the result when then opponents conference was Mac (east)?". [/INST] SELECT "result" FROM "coastal_carolina_vs_fbs_schools" WHERE "opponents_conference"='MAC (East)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_one" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What nationality is the draft pick player going to Minnesota North Stars?". [/INST] SELECT "nationality" FROM "round_one" WHERE "nhl_team"='Minnesota North Stars';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_one" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What daft pick number is the player coming from Regina Pats (WHL)?". [/INST] SELECT "pick_num" FROM "round_one" WHERE "college_junior_club_team"='Regina Pats (WHL)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_one" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What player is draft pick 17?". [/INST] SELECT "player" FROM "round_one" WHERE "pick_num"=17;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_one" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What college team did draft pick 18 come from?". [/INST] SELECT "college_junior_club_team" FROM "round_one" WHERE "pick_num"=18;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28498999_5" ( "num" text, "player" text, "country" text, "score" text, "to_par" text, "winnings" real, "after" real, "before" real );. Question: "How many times is a to par listed when the player is phil mickelson?". [/INST] SELECT COUNT("to_par") FROM "table1_28498999_5" WHERE "player"='Phil Mickelson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28498999_5" ( "num" text, "player" text, "country" text, "score" text, "to_par" text, "winnings" real, "after" real, "before" real );. Question: "What is the score when the player is Matt Kuchar?". [/INST] SELECT "score" FROM "table1_28498999_5" WHERE "player"='Matt Kuchar';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28498999_5" ( "num" text, "player" text, "country" text, "score" text, "to_par" text, "winnings" real, "after" real, "before" real );. Question: "What is the player listed when the score is 68-70-68-69=275". [/INST] SELECT "player" FROM "table1_28498999_5" WHERE "score"='68-70-68-69=275';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28498999_5" ( "num" text, "player" text, "country" text, "score" text, "to_par" text, "winnings" real, "after" real, "before" real );. Question: "What is the # listed when the score is 70-69-69-70=278?". [/INST] SELECT "num" FROM "table1_28498999_5" WHERE "score"='70-69-69-70=278';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_twelve" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "To which organziation does the winnipeg jets belong to?". [/INST] SELECT "college_junior_club_team" FROM "round_twelve" WHERE "nhl_team"='Winnipeg Jets';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_twelve" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What position does allister brown play.". [/INST] SELECT "position" FROM "round_twelve" WHERE "player"='Allister Brown';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_twelve" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What selection was the springfield olympics (nejhl)?". [/INST] SELECT MAX("pick_num") FROM "round_twelve" WHERE "college_junior_club_team"='Springfield Olympics (NEJHL)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_twelve" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "List the players for team brynäs if (sweden).". [/INST] SELECT "player" FROM "round_twelve" WHERE "college_junior_club_team"='Brynäs IF (Sweden)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_twelve" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "Which draft number did the new jersey devils get?". [/INST] SELECT "pick_num" FROM "round_twelve" WHERE "nhl_team"='New Jersey Devils';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009_results" ( "player" text, "starts" real, "cuts_made" real, "best_finish" text, "money_list_rank" real, "earnings" real );. Question: "How many cuts did the player who earned 210408 Euro make?". [/INST] SELECT "cuts_made" FROM "2009_results" WHERE "earnings"=210408;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009_results" ( "player" text, "starts" real, "cuts_made" real, "best_finish" text, "money_list_rank" real, "earnings" real );. Question: "How many cuts did Gary Clark make?". [/INST] SELECT "cuts_made" FROM "2009_results" WHERE "player"='Gary Clark';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009_results" ( "player" text, "starts" real, "cuts_made" real, "best_finish" text, "money_list_rank" real, "earnings" real );. Question: "Which player made exactly 26 starts?". [/INST] SELECT "player" FROM "2009_results" WHERE "starts"=26;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009_results" ( "player" text, "starts" real, "cuts_made" real, "best_finish" text, "money_list_rank" real, "earnings" real );. Question: "How many cuts did Bernd Wiesberger make?". [/INST] SELECT "cuts_made" FROM "2009_results" WHERE "player"='Bernd Wiesberger';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009_results" ( "player" text, "starts" real, "cuts_made" real, "best_finish" text, "money_list_rank" real, "earnings" real );. Question: "How many earnings values are associated with players who had a best finish of T38?". [/INST] SELECT COUNT("earnings") FROM "2009_results" WHERE "best_finish"='T38';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "financial_performance" ( "period_ended" text, "turnover_m" text, "profit_before_tax_m" text, "dividend_per_share_p" text, "adjusted_earnings_per_share_diluted_p" text );. Question: "How many items appear in the dividend per share when the turnover is 0.42?". [/INST] SELECT COUNT("dividend_per_share_p") FROM "financial_performance" WHERE "turnover_m"='0.42';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "financial_performance" ( "period_ended" text, "turnover_m" text, "profit_before_tax_m" text, "dividend_per_share_p" text, "adjusted_earnings_per_share_diluted_p" text );. Question: "What was the profit before tax when the turnover was 431.06?". [/INST] SELECT "profit_before_tax_m" FROM "financial_performance" WHERE "turnover_m"='431.06';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "financial_performance" ( "period_ended" text, "turnover_m" text, "profit_before_tax_m" text, "dividend_per_share_p" text, "adjusted_earnings_per_share_diluted_p" text );. Question: "What was the turnover when the profit before tax was 29.47?". [/INST] SELECT "turnover_m" FROM "financial_performance" WHERE "profit_before_tax_m"='29.47';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28652521_1" ( "for_shank_type" text, "singer_part_number" text, "uses_templates" text, "description" text, "storage_case" text );. Question: "What's the singer part number of the buttonholer whose storage case is a green plastic box?". [/INST] SELECT "singer_part_number" FROM "table1_28652521_1" WHERE "storage_case"='green plastic box';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28652521_1" ( "for_shank_type" text, "singer_part_number" text, "uses_templates" text, "description" text, "storage_case" text );. Question: "What's the description of the buttonholer whose singer part number is 121795 kit 121908 buttonholer?". [/INST] SELECT "description" FROM "table1_28652521_1" WHERE "singer_part_number"='121795 kit 121908 buttonholer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28652521_1" ( "for_shank_type" text, "singer_part_number" text, "uses_templates" text, "description" text, "storage_case" text );. Question: "What are all the different descriptions for the buttonholer with cardboard box for storage and a low shank type?". [/INST] SELECT "description" FROM "table1_28652521_1" WHERE "storage_case"='cardboard box' AND "for_shank_type"='low';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28652521_1" ( "for_shank_type" text, "singer_part_number" text, "uses_templates" text, "description" text, "storage_case" text );. Question: "What's the storage case of the buttonholer described as ivory and red metal?". [/INST] SELECT "storage_case" FROM "table1_28652521_1" WHERE "description"='ivory and red metal';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28652521_1" ( "for_shank_type" text, "singer_part_number" text, "uses_templates" text, "description" text, "storage_case" text );. Question: "What's the shank type of the buttonholer with red plastic box as storage case?". [/INST] SELECT "for_shank_type" FROM "table1_28652521_1" WHERE "storage_case"='red plastic box';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28688313_1" ( "num" real, "episode" text, "directed_by" text, "written_by" text, "u_s_viewers_in_millions" text, "original_airdate" text );. Question: "Who wrote the episode with 7.52 million US viewers?". [/INST] SELECT "written_by" FROM "table1_28688313_1" WHERE "u_s_viewers_in_millions"='7.52';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28688313_1" ( "num" real, "episode" text, "directed_by" text, "written_by" text, "u_s_viewers_in_millions" text, "original_airdate" text );. Question: "What are the titles of episodes numbered 19?". [/INST] SELECT "episode" FROM "table1_28688313_1" WHERE "num"=19;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28688313_1" ( "num" real, "episode" text, "directed_by" text, "written_by" text, "u_s_viewers_in_millions" text, "original_airdate" text );. Question: "Who wrote the episode with 9.81 million US viewers?". [/INST] SELECT "written_by" FROM "table1_28688313_1" WHERE "u_s_viewers_in_millions"='9.81';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist_s" text, "arranger_s" text );. Question: "How many tracks have the title let love be your energy?". [/INST] SELECT COUNT("track_no") FROM "out_of_the_blue_discography" WHERE "track"='Let Love Be Your Energy';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist_s" text, "arranger_s" text );. Question: "Who arranged song(s) with tom lyle on the vocal percussion?". [/INST] SELECT "arranger_s" FROM "out_of_the_blue_discography" WHERE "vocal_percussionist_s"='Tom Lyle';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist_s" text, "arranger_s" text );. Question: "Who were the original artist(s) for track number 6?". [/INST] SELECT "original_artist" FROM "out_of_the_blue_discography" WHERE "track_no"=6;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist_s" text, "arranger_s" text );. Question: "Who were the original artist(s) on harder to breathe?". [/INST] SELECT "original_artist" FROM "out_of_the_blue_discography" WHERE "track"='Harder To Breathe';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist_s" text, "arranger_s" text );. Question: "Who were the original artist(s) when jack stamp arranged?". [/INST] SELECT "original_artist" FROM "out_of_the_blue_discography" WHERE "arranger_s"='Jack Stamp';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist" text, "arranger_s" text );. Question: "Who is the artist where the vocal percussionist is Benjamin Holder?". [/INST] SELECT "original_artist" FROM "out_of_the_blue_discography" WHERE "vocal_percussionist"='Benjamin Holder';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist" text, "arranger_s" text );. Question: "Who is the vocal percussionist for Sex Bomb?". [/INST] SELECT "vocal_percussionist" FROM "out_of_the_blue_discography" WHERE "track"='Sex Bomb';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist" text, "arranger_s" text );. Question: "Who is the original artist of "Use Somebody"?". [/INST] SELECT "original_artist" FROM "out_of_the_blue_discography" WHERE "track"='Use Somebody';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist" text, "arranger_s" text );. Question: "Who is the arranger for "I KIssed a Girl"?". [/INST] SELECT "arranger_s" FROM "out_of_the_blue_discography" WHERE "track"='I Kissed a Girl';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist" text, "arranger_s" text );. Question: "Who is the percussionist for The Coral?". [/INST] SELECT "vocal_percussionist" FROM "out_of_the_blue_discography" WHERE "original_artist"='The Coral';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "the_celebrities" ( "nationality" text, "celebrity" text, "occupation" text, "charity" text, "status" text );. Question: "What is the charity for the celebrity with an occupation title of actor and singer?". [/INST] SELECT "charity" FROM "the_celebrities" WHERE "occupation"='Actor and Singer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28760804_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "What is the title of the episode Alex Reid directed?". [/INST] SELECT "title" FROM "table1_28760804_1" WHERE "directed_by"='Alex Reid';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28760804_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "Who wrote the episode that got 5.95 million U.S. viewers?". [/INST] SELECT "written_by" FROM "table1_28760804_1" WHERE "u_s_viewers_million"='5.95';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28760804_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "How many million U.S. viewers saw the episode with production code 3X5710?". [/INST] SELECT "u_s_viewers_million" FROM "table1_28760804_1" WHERE "production_code"='3X5710';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_28760804_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "How many directors got 6.79 million U.S. viewers from their episodes?". [/INST] SELECT COUNT("directed_by") FROM "table1_28760804_1" WHERE "u_s_viewers_million"='6.79';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 most points in the game on March 7?". [/INST] SELECT "high_points" FROM "game_log" WHERE "date"='March 7';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: 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 against Washington?". [/INST] SELECT "record" FROM "game_log" WHERE "team"='Washington';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "batting_averages" ( "player" text, "matches" real, "innings" real, "runs" real, "average" text, "strike_rate" text, "highest_score" text, "50s" real );. Question: "What is the highest score for the player with average of 30.00?". [/INST] SELECT "highest_score" FROM "batting_averages" WHERE "average"='30.00';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "batting_averages" ( "player" text, "matches" real, "innings" real, "runs" real, "average" text, "strike_rate" text, "highest_score" text, "50s" real );. Question: "How many innings for the player with an average of 22.61?". [/INST] SELECT "innings" FROM "batting_averages" WHERE "average"='22.61';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "batting_averages" ( "player" text, "matches" real, "innings" real, "runs" real, "average" text, "strike_rate" text, "highest_score" text, "50s" real );. Question: "What is the strike rate for the player with an average of 32.78?". [/INST] SELECT "strike_rate" FROM "batting_averages" WHERE "average"='32.78';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_attendance_statistics" ( "team" text, "stadium" text, "home_games" real, "average_attendance" real, "total_attendance" real, "capacity_percentage" text );. Question: "What is the name of the team when the stadium is listed as Edward Jones Dome?". [/INST] SELECT "team" FROM "2011_attendance_statistics" WHERE "stadium"='Edward Jones Dome';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_attendance_statistics" ( "team" text, "stadium" text, "home_games" real, "average_attendance" real, "total_attendance" real, "capacity_percentage" text );. Question: "What is the capacity percentage when the total attendance is 509940?". [/INST] SELECT "capacity_percentage" FROM "2011_attendance_statistics" WHERE "total_attendance"=509940;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_attendance_statistics" ( "team" text, "stadium" text, "home_games" real, "average_attendance" real, "total_attendance" real, "capacity_percentage" text );. Question: "What is the name of the stadium when the capacity percentage is 83.9%". [/INST] SELECT "stadium" FROM "2011_attendance_statistics" WHERE "capacity_percentage"='83.9%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_attendance_statistics" ( "team" text, "stadium" text, "home_games" real, "average_attendance" real, "total_attendance" real, "capacity_percentage" text );. Question: "How many home games are listed when the average attendance is 79475?". [/INST] SELECT COUNT("home_games") FROM "2011_attendance_statistics" WHERE "average_attendance"=79475;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_attendance_statistics" ( "team" text, "stadium" text, "home_games" real, "average_attendance" real, "total_attendance" real, "capacity_percentage" text );. Question: "How many average attendance has a capacity percentage of 96.5%". [/INST] SELECT COUNT("average_attendance") FROM "2011_attendance_statistics" WHERE "capacity_percentage"='96.5%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_attendance_statistics" ( "team" text, "stadium" text, "home_games" real, "average_attendance" real, "total_attendance" real, "capacity_percentage" text );. Question: "What is the number listed in home games when the team is Seattle Seahawks?". [/INST] SELECT "home_games" FROM "2011_attendance_statistics" WHERE "team"='Seattle Seahawks';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_attendance_statistics" ( "team" text, "stadium" text, "home_games" real, "average_attendance" real, "total_attendance" real, "capacity_percentage" text );. Question: "How many teams had a 99.3% capacity rating?". [/INST] SELECT COUNT("team") FROM "2010_attendance_statistics" WHERE "capacity_percentage"='99.3%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_attendance_statistics" ( "team" text, "stadium" text, "home_games" real, "average_attendance" real, "total_attendance" real, "capacity_percentage" text );. Question: "What was the capacity for the Denver Broncos?". [/INST] SELECT "capacity_percentage" FROM "2010_attendance_statistics" WHERE "team"='Denver Broncos';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_attendance_statistics" ( "team" text, "stadium" text, "home_games" real, "average_attendance" real, "total_attendance" real, "capacity_percentage" text );. Question: "What was average attendance when total attendance was 541380?". [/INST] SELECT "average_attendance" FROM "2010_attendance_statistics" WHERE "total_attendance"=541380;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_attendance_statistics" ( "team" text, "stadium" text, "home_games" real, "average_attendance" real, "total_attendance" real, "capacity_percentage" text );. Question: "What team had a capacity of 102.3%?". [/INST] SELECT "team" FROM "2010_attendance_statistics" WHERE "capacity_percentage"='102.3%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_attendance_statistics" ( "team" text, "stadium" text, "home_games" real, "average_attendance" real, "total_attendance" real, "capacity_percentage" text );. Question: "What was the total attendance of the New York Giants?". [/INST] SELECT MIN("total_attendance") FROM "2010_attendance_statistics" WHERE "team"='New York Giants';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_attendance_statistics" ( "team" text, "stadium" text, "home_games" real, "average_attendance" real, "total_attendance" real, "capacity_percentage" text );. Question: "What was the capacity percentage when attendance was 71080?". [/INST] SELECT "capacity_percentage" FROM "2010_attendance_statistics" WHERE "average_attendance"=71080;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "local_government" ( "lga_name" text, "area_km_2" real, "census_2006_population" real, "administrative_capital" text, "postal_code" real );. Question: "What is the postal code when the administrative capital in Bori?". [/INST] SELECT MAX("postal_code") FROM "local_government" WHERE "administrative_capital"='Bori';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "local_government" ( "lga_name" text, "area_km_2" real, "census_2006_population" real, "administrative_capital" text, "postal_code" real );. Question: "What is the 2006 censusn population when is the administrative capital is Eleme?". [/INST] SELECT COUNT("census_2006_population") FROM "local_government" WHERE "administrative_capital"='Eleme';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "local_government" ( "lga_name" text, "area_km_2" real, "census_2006_population" real, "administrative_capital" text, "postal_code" real );. Question: "What is the 2006 census population when the area is 159?". [/INST] SELECT COUNT("census_2006_population") FROM "local_government" WHERE "area_km_2"=159;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "local_government" ( "lga_name" text, "area_km_2" real, "census_2006_population" real, "administrative_capital" text, "postal_code" real );. Question: "What is the area when the Iga name is Ahoada East?". [/INST] SELECT MAX("area_km_2") FROM "local_government" WHERE "lga_name"='Ahoada East';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What NHL team picked richard borgo?". [/INST] SELECT "nhl_team" FROM "round_two" WHERE "player"='Richard Borgo';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What is the nationality of the draft pick player who plays centre position and is going to Calgary Flames?". [/INST] SELECT "nationality" FROM "round_two" WHERE "position"='Centre' AND "nhl_team"='Calgary Flames';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What player came from Cornell University (NCAA)?". [/INST] SELECT "player" FROM "round_two" WHERE "college_junior_club_team"='Cornell University (NCAA)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "How many draft picks is player byron dafoe?". [/INST] SELECT COUNT("pick_num") FROM "round_two" WHERE "player"='Byron Dafoe';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What is the nationality of the player picked to go to Washington Capitals?". [/INST] SELECT "nationality" FROM "round_two" WHERE "nhl_team"='Washington Capitals';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_five" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What player attended avon old farms (ushs-ct)?". [/INST] SELECT "player" FROM "round_five" WHERE "college_junior_club_team"='Avon Old Farms (USHS-CT)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_five" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What pick number was marc deschamps?". [/INST] SELECT "pick_num" FROM "round_five" WHERE "player"='Marc Deschamps';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_five" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What nationality is keith carney?". [/INST] SELECT "nationality" FROM "round_five" WHERE "player"='Keith Carney';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_five" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );. Question: "What position did the #94 pick play?". [/INST] SELECT "position" FROM "round_five" WHERE "pick_num"=94;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29085880_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "Which episode number saw 1.312 million U.S. Wviewers?". [/INST] SELECT "no" FROM "table1_29085880_1" WHERE "u_s_viewers_million"='1.312';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29085880_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text );. Question: "How many million U.S. viewers saw "Fake Me Home Tonight"?". [/INST] SELECT "u_s_viewers_million" FROM "table1_29085880_1" WHERE "title"='\"Fake Me Home Tonight\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29102100_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real, "u_s_viewers_millions" text );. Question: "What is the title of the episode directed by Rich Correll and written by Dennis Rinsler?". [/INST] SELECT "title" FROM "table1_29102100_1" WHERE "directed_by"='Rich Correll' AND "written_by"='Dennis Rinsler';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29102100_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real, "u_s_viewers_millions" text );. Question: "What number episode in the season had a production code of 334?". [/INST] SELECT MAX("season_num") FROM "table1_29102100_1" WHERE "prod_code"=334;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29102100_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real, "u_s_viewers_millions" text );. Question: "What number episode of the season was titled "Vision Impossible"?". [/INST] SELECT MIN("season_num") FROM "table1_29102100_1" WHERE "title"='\"Vision Impossible\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_29102100_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real, "u_s_viewers_millions" text );. Question: "What was the production code of the episode directed by Rondell Sheridan? ". [/INST] SELECT MAX("prod_code") FROM "table1_29102100_1" WHERE "directed_by"='Rondell Sheridan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_finals_7_w_l_5_2" ( "outcome" text, "date" text, "tournament" text, "location" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "in how many dates the opponen in the final was rushmi chakravarthi". [/INST] SELECT COUNT("date") FROM "singles_finals_7_w_l_5_2" WHERE "opponent_in_the_final"='Rushmi Chakravarthi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_finals_7_w_l_5_2" ( "outcome" text, "date" text, "tournament" text, "location" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "what is the name of the tournament where outcome is runner-up". [/INST] SELECT "tournament" FROM "singles_finals_7_w_l_5_2" WHERE "outcome"='Runner-up';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_finals_7_w_l_5_2" ( "outcome" text, "date" text, "tournament" text, "location" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "what is the material of the surface in the dehradun , uttarakhand, india location". [/INST] SELECT "surface" FROM "singles_finals_7_w_l_5_2" WHERE "location"='Dehradun , Uttarakhand, India';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_finals_7_w_l_5_2" ( "outcome" text, "date" text, "tournament" text, "location" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "what is the material of the surface in noida , uttar pradesh, india". [/INST] SELECT "surface" FROM "singles_finals_7_w_l_5_2" WHERE "location"='Noida , Uttar Pradesh, India';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_finals_7_w_l_5_2" ( "outcome" text, "date" text, "tournament" text, "location" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "what is the date of the game played in the bangalore , karnataka, india location". [/INST] SELECT "date" FROM "singles_finals_7_w_l_5_2" WHERE "location"='Bangalore , Karnataka, India';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "express_trains" ( "sl_no" real, "train_number" real, "train_name" text, "origin" text, "destination" text, "time" text, "service" text, "route_via" text );. Question: "What is the destination when the train number is 16526?". [/INST] SELECT "destination" FROM "express_trains" WHERE "train_number"=16526;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "express_trains" ( "sl_no" real, "train_number" real, "train_name" text, "origin" text, "destination" text, "time" text, "service" text, "route_via" text );. Question: "What is the origin when the destination is Mumbai?". [/INST] SELECT "origin" FROM "express_trains" WHERE "destination"='Mumbai';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "express_trains" ( "sl_no" real, "train_number" real, "train_name" text, "origin" text, "destination" text, "time" text, "service" text, "route_via" text );. Question: "What is the route/via when the destination is listed as Madurai?". [/INST] SELECT "route_via" FROM "express_trains" WHERE "destination"='Madurai';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "express_trains" ( "sl_no" real, "train_number" real, "train_name" text, "origin" text, "destination" text, "time" text, "service" text, "route_via" text );. Question: "What is the route/via when the train name is Parasuram Express?". [/INST] SELECT "route_via" FROM "express_trains" WHERE "train_name"='Parasuram Express';</s> |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.