text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin_standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" text ); Question: What is the highest value of PF when Ends Lost is 51? <|assistant|> SELECT MAX("pf") FROM "round_robin_standings" WHERE "ends_lost"=51;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin_standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" text ); Question: What is the total of all Shot PCT occurrences when the value of Blank Ends is 8? <|assistant|> SELECT COUNT("shot_pct") FROM "round_robin_standings" WHERE "blank_ends"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin_standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" text ); Question: Where is the Locale when L is 2. <|assistant|> SELECT "locale" FROM "round_robin_standings" WHERE "l"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin_standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" text ); Question: What is the lowest value of Blank Ends when Stolen Ends is 7. <|assistant|> SELECT MIN("blank_ends") FROM "round_robin_standings" WHERE "stolen_ends"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin_standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" text ); Question: What is the value of Ends Lost when Blank Ends is 9. <|assistant|> SELECT "ends_lost" FROM "round_robin_standings" WHERE "blank_ends"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "combination_classification" text, "team_classification" text ); Question: How many combination classifications have the winner as Erik Zabel and a points classification as Alessandro Petacchi <|assistant|> SELECT COUNT("combination_classification") FROM "jersey_progress" WHERE "points_classification"='Alessandro Petacchi' AND "winner"='Erik Zabel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "combination_classification" text, "team_classification" text ); Question: If winner is alejandro Valverde and the points Classification is by Erik Zabel, who is the mountain classification? <|assistant|> SELECT "mountains_classification" FROM "jersey_progress" WHERE "winner"='Alejandro Valverde' AND "points_classification"='Erik Zabel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "combination_classification" text, "team_classification" text ); Question: How many teams have a combination classification of Alejandro Valverde and a Points classification of Alessandro Petacchi? <|assistant|> SELECT COUNT("team_classification") FROM "jersey_progress" WHERE "combination_classification"='Alejandro Valverde' AND "points_classification"='Alessandro Petacchi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How many times were the winnings $3,816,362? <|assistant|> SELECT COUNT("avg_finish") FROM "nascar_sprint_cup_series" WHERE "winnings"='$3,816,362';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How many wins were there when the position was 26th? <|assistant|> SELECT COUNT("wins") FROM "nascar_sprint_cup_series" WHERE "position"='26th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: What was the average finish when the average start was 18.4? <|assistant|> SELECT "avg_finish" FROM "nascar_sprint_cup_series" WHERE "avg_start"='18.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How many teams had a 76th position finish? <|assistant|> SELECT COUNT("team_s") FROM "nascar_sprint_cup_series" WHERE "position"='76th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: What is the maximumum number of wins? <|assistant|> SELECT MIN("wins") FROM "nascar_sprint_cup_series";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: What teams won in 2007? <|assistant|> SELECT "team_s" FROM "nascar_sprint_cup_series" WHERE "year"=2007;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How many entries arr there for the top 10 for the 78th position? <|assistant|> SELECT COUNT("top_10") FROM "nascar_nationwide_series" WHERE "position"='78th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: Where does team #55/#83 robby gordon motorsports rank in the top 10? <|assistant|> SELECT MAX("top_10") FROM "nascar_nationwide_series" WHERE "team_s"='#55/#83 Robby Gordon Motorsports';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: How many entries are shown for winnings for team #07 robby gordon motorsports? <|assistant|> SELECT COUNT("winnings") FROM "nascar_nationwide_series" WHERE "team_s"='#07 Robby Gordon Motorsports';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_8" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_up" text ); Question: What are all values for 'to par' for the winning score of 67-67-69-69=272? <|assistant|> SELECT "to_par" FROM "pga_tour_wins_8" WHERE "winning_score"='67-67-69-69=272';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_8" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_up" text ); Question: The tournament Buick Classic occured on what dates? <|assistant|> SELECT "date" FROM "pga_tour_wins_8" WHERE "tournament"='Buick Classic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_8" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_up" text ); Question: Who are all runner-ups for No. 2? <|assistant|> SELECT "runner_up" FROM "pga_tour_wins_8" WHERE "no"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "portfolio" ( "print_name" text, "nickname" text, "number_of_colors" text, "framed_size" text, "date_completed" text ); Question: when the nickname halley is used, what are the date completed <|assistant|> SELECT "date_completed" FROM "portfolio" WHERE "nickname"='Halley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "portfolio" ( "print_name" text, "nickname" text, "number_of_colors" text, "framed_size" text, "date_completed" text ); Question: the date complted is 02/91, what framed size was used <|assistant|> SELECT "framed_size" FROM "portfolio" WHERE "date_completed"='02/91';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "portfolio" ( "print_name" text, "nickname" text, "number_of_colors" text, "framed_size" text, "date_completed" text ); Question: for the robot black nickname, what framed size is used <|assistant|> SELECT "framed_size" FROM "portfolio" WHERE "nickname"='Robot Black';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "common_w3_c_events" ( "category" text, "type" text, "attribute" text, "description" text, "bubbles" text, "cancelable" text ); Question: What are the attributes when the type is "DOMNodeRemoved"? <|assistant|> SELECT "attribute" FROM "common_w3_c_events" WHERE "type"='DOMNodeRemoved';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "common_w3_c_events" ( "category" text, "type" text, "attribute" text, "description" text, "bubbles" text, "cancelable" text ); Question: How many categories are there when the attribute is "onreset"? <|assistant|> SELECT COUNT("category") FROM "common_w3_c_events" WHERE "attribute"='onreset';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "common_w3_c_events" ( "category" text, "type" text, "attribute" text, "description" text, "bubbles" text, "cancelable" text ); Question: How many descriptions are there when the attribute is "ondragstart"? <|assistant|> SELECT COUNT("description") FROM "common_w3_c_events" WHERE "attribute"='ondragstart';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "common_w3_c_events" ( "category" text, "type" text, "attribute" text, "description" text, "bubbles" text, "cancelable" text ); Question: When the type is "reset" what is the description? <|assistant|> SELECT "description" FROM "common_w3_c_events" WHERE "type"='reset';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "combination_classification" text, "team_classification" text ); Question: Name all the team clasification where the combination classification is mederic clain <|assistant|> SELECT "team_classification" FROM "jersey_progress" WHERE "combination_classification"='Mederic Clain';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "combination_classification" text, "team_classification" text ); Question: In how many stages did Jose Vicente Garcia Acosta won? <|assistant|> SELECT COUNT("stage") FROM "jersey_progress" WHERE "winner"='Jose Vicente Garcia Acosta';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "combination_classification" text, "team_classification" text ); Question: What is the minimum stage where Sergei Smetanine won? <|assistant|> SELECT MIN("stage") FROM "jersey_progress" WHERE "winner"='Sergei Smetanine';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "combination_classification" text, "team_classification" text ); Question: what is the minimum stage where mountains classification is aitor osa and aitor gonzález won? <|assistant|> SELECT MIN("stage") FROM "jersey_progress" WHERE "mountains_classification"='Aitor Osa' AND "winner"='Aitor González';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_for_2013_14" ( "club" text, "position_in_2012_13" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "number_of_seasons_in_prva_hnl" real, "first_season_of_current_spell_in_top_division" text, "top_division_titles" text, "last_top_division_title" text ); Question: How many seasons in the top division for the team that finished 005 5th in 2012-2013 <|assistant|> SELECT COUNT("number_of_seasons_in_top_division") FROM "members_for_2013_14" WHERE "position_in_2012_13"='005 5th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_and_honorees" ( "year" real, "player" text, "country" text, "score" text, "margin_of_victory" text, "winners_share" real, "honoree_s" text ); Question: How many countries does honoree Roberto de Vicenzo represent? <|assistant|> SELECT COUNT("country") FROM "winners_and_honorees" WHERE "honoree_s"='Roberto De Vicenzo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_and_honorees" ( "year" real, "player" text, "country" text, "score" text, "margin_of_victory" text, "winners_share" real, "honoree_s" text ); Question: For which country does Keith Fergus play? <|assistant|> SELECT "country" FROM "winners_and_honorees" WHERE "player"='Keith Fergus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_and_honorees" ( "year" real, "player" text, "country" text, "score" text, "margin_of_victory" text, "winners_share" real, "honoree_s" text ); Question: Who won the tournament for Australia in the year when Byron Nelson was Honoree? <|assistant|> SELECT "player" FROM "winners_and_honorees" WHERE "country"='Australia' AND "honoree_s"='Byron Nelson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_and_honorees" ( "year" real, "player" text, "country" text, "score" text, "margin_of_victory" text, "winners_share" real, "honoree_s" text ); Question: What was the margin of victory in the year when the honoree was Tommy Armour? <|assistant|> SELECT "margin_of_victory" FROM "winners_and_honorees" WHERE "honoree_s"='Tommy Armour';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_10_finals_3_titles_7_run" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: What year was the most recent US Open championship? <|assistant|> SELECT MAX("year") FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "championship"='US Open';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" real, "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "malaysian_rider_classification" text, "team_classification" text ); Question: When li fuyu is the stage winner what is points classification? <|assistant|> SELECT "points_classification" FROM "classification_leadership" WHERE "stage_winner"='Li Fuyu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" real, "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "malaysian_rider_classification" text, "team_classification" text ); Question: When anuar manan is the stage winner and the team classification is japan and suhardi hassan is the malaysian rider classification who is the points classification? <|assistant|> SELECT "points_classification" FROM "classification_leadership" WHERE "malaysian_rider_classification"='Suhardi Hassan' AND "team_classification"='Japan' AND "stage_winner"='Anuar Manan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" real, "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "malaysian_rider_classification" text, "team_classification" text ); Question: When li fuyu is the stage winner who is the general classification? <|assistant|> SELECT "general_classification" FROM "classification_leadership" WHERE "stage_winner"='Li Fuyu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" real, "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "malaysian_rider_classification" text, "team_classification" text ); Question: When hossein askari is the stage winner who is the malaysian rider classification ? <|assistant|> SELECT "malaysian_rider_classification" FROM "classification_leadership" WHERE "stage_winner"='Hossein Askari';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_e_voting_system_result" ( "eviction_no" real, "nominee" text, "vote_to_save" text, "vote_to_evict" text, "net_vote" text, "eviction_result" text ); Question: How many nominees had a net voice of 15.17% <|assistant|> SELECT COUNT("nominee") FROM "s_e_voting_system_result" WHERE "net_vote"='15.17%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_e_voting_system_result" ( "eviction_no" real, "nominee" text, "vote_to_save" text, "vote_to_evict" text, "net_vote" text, "eviction_result" text ); Question: What nominees had a net vote of 34.46%? <|assistant|> SELECT "nominee" FROM "s_e_voting_system_result" WHERE "net_vote"='34.46%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_e_voting_system_result" ( "eviction_no" real, "nominee" text, "vote_to_save" text, "vote_to_evict" text, "net_vote" text, "eviction_result" text ); Question: How many nominee's had a vote to evict percentage of 3.92% <|assistant|> SELECT COUNT("nominee") FROM "s_e_voting_system_result" WHERE "vote_to_evict"='3.92%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_e_voting_system_result" ( "eviction_no" real, "nominee" text, "vote_to_save" text, "vote_to_evict" text, "net_vote" text, "eviction_result" text ); Question: How many eviction results occurred with a eviction no. 12 and a vote to save of 2.76%? <|assistant|> SELECT COUNT("eviction_result") FROM "s_e_voting_system_result" WHERE "eviction_no"=12 AND "vote_to_save"='2.76%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_players" ( "task_no" real, "day_announced" text, "description" text, "options" text, "viewers_selection" text, "result" text ); Question: What was the final result when the viewers selected ejay? <|assistant|> SELECT "result" FROM "house_players" WHERE "viewers_selection"='Ejay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_players" ( "task_no" real, "day_announced" text, "description" text, "options" text, "viewers_selection" text, "result" text ); Question: What was the description when the viewers selected Nan? <|assistant|> SELECT "description" FROM "house_players" WHERE "viewers_selection"='Nan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_11_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the name of series episode 11-02's segment c? <|assistant|> SELECT "segment_c" FROM "season_11_2008" WHERE "series_ep"='11-02';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_11_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the title of series episode 11-05's segment d? <|assistant|> SELECT "segment_d" FROM "season_11_2008" WHERE "series_ep"='11-05';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_11_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: In seris episode 11-04, what is the B segment titled? <|assistant|> SELECT "segment_b" FROM "season_11_2008" WHERE "series_ep"='11-04';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_11_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: In the episode where segment a is microphones, what is segment d? <|assistant|> SELECT "segment_d" FROM "season_11_2008" WHERE "segment_a"='Microphones';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_12_2008_2009" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is Segment B for series episode 12-08? <|assistant|> SELECT "segment_b" FROM "season_12_2008_2009" WHERE "series_ep"='12-08';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_12_2008_2009" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the series episode where Segment B is popcorn ? <|assistant|> SELECT "series_ep" FROM "season_12_2008_2009" WHERE "segment_b"='Popcorn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_12_2008_2009" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the Netflix where Segment C is car washes? <|assistant|> SELECT "netflix" FROM "season_12_2008_2009" WHERE "segment_c"='Car Washes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_12_2008_2009" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is Segment B for series episode 12-02? <|assistant|> SELECT "segment_b" FROM "season_12_2008_2009" WHERE "series_ep"='12-02';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_12_2008_2009" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is Segment A where Segment B is Kevlar S Canoe? <|assistant|> SELECT "segment_a" FROM "season_12_2008_2009" WHERE "segment_b"='Kevlar s Canoe';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_12_2008_2009" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the Netflix where Segment D is pressure gauges ? <|assistant|> SELECT "netflix" FROM "season_12_2008_2009" WHERE "segment_d"='Pressure Gauges';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_13_2009" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the segment d for bowling balls <|assistant|> SELECT "segment_d" FROM "season_13_2009" WHERE "segment_a"='Bowling Balls';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_13_2009" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the segment b for pressure cookers <|assistant|> SELECT "segment_b" FROM "season_13_2009" WHERE "segment_a"='Pressure Cookers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_13_2009" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the segment b for 167 <|assistant|> SELECT "segment_b" FROM "season_13_2009" WHERE "episode"=167;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_13_2009" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the segment a for 162 <|assistant|> SELECT "segment_a" FROM "season_13_2009" WHERE "episode"=162;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_13_2009" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the total number of segment c for pressure cookers <|assistant|> SELECT COUNT("segment_c") FROM "season_13_2009" WHERE "segment_a"='Pressure Cookers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1_2001" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What was segment C when segment D was fluorescent tubes? <|assistant|> SELECT "segment_c" FROM "season_1_2001" WHERE "segment_d"='Fluorescent Tubes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1_2001" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What was segment C when segment B was package printing? <|assistant|> SELECT "segment_c" FROM "season_1_2001" WHERE "segment_b"='Package printing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1_2001" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What was segment A when segment B was snowboards? <|assistant|> SELECT "segment_a" FROM "season_1_2001" WHERE "segment_b"='Snowboards';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1_2001" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What was segment D when segment B was jeans? <|assistant|> SELECT "segment_d" FROM "season_1_2001" WHERE "segment_b"='Jeans';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1_2001" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: In what episode was segment D ned Can Corn? <|assistant|> SELECT MAX("episode") FROM "season_1_2001" WHERE "segment_d"='ned Can Corn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the segment c for crash test dummies <|assistant|> SELECT COUNT("segment_c") FROM "season_10_2007_2008" WHERE "segment_d"='Crash Test Dummies';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the segment b for s dress form <|assistant|> SELECT "segment_b" FROM "season_10_2007_2008" WHERE "segment_a"='s Dress Form';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the segment a for s duvet <|assistant|> SELECT "segment_a" FROM "season_10_2007_2008" WHERE "segment_c"='s Duvet';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the total number of episodes for s fire extinguisher <|assistant|> SELECT COUNT("episode") FROM "season_10_2007_2008" WHERE "segment_a"='s Fire Extinguisher';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the total number of segment b for s banjo <|assistant|> SELECT COUNT("segment_b") FROM "season_10_2007_2008" WHERE "segment_d"='s Banjo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the total number of segment d for wooden s barrel <|assistant|> SELECT COUNT("segment_d") FROM "season_10_2007_2008" WHERE "segment_a"='Wooden s Barrel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_14_2009_2010" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: How many segment A were in series episode 14-05 <|assistant|> SELECT COUNT("segment_a") FROM "season_14_2009_2010" WHERE "series_ep"='14-05';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_14_2009_2010" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is segment C in s07e05 <|assistant|> SELECT "segment_c" FROM "season_14_2009_2010" WHERE "netflix"='S07E05';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_15_2010" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the netflix episode number where Segment D is high-performance engines? <|assistant|> SELECT "netflix" FROM "season_15_2010" WHERE "segment_d"='High-Performance Engines';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_15_2010" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What was segment D for episode 183? <|assistant|> SELECT "segment_d" FROM "season_15_2010" WHERE "episode"=183;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_15_2010" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is Segment A where Segment C is Sushi (part 1)? <|assistant|> SELECT "segment_a" FROM "season_15_2010" WHERE "segment_c"='Sushi (Part 1)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_15_2010" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: How many episodes have the Netflix episode number S08E04? <|assistant|> SELECT COUNT("episode") FROM "season_15_2010" WHERE "netflix"='S08E04';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_15_2010" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is Segment A where Segment D is luxury sports cars? <|assistant|> SELECT "segment_a" FROM "season_15_2010" WHERE "segment_d"='Luxury Sports Cars';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_20_2012_2013" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What episode number is the episode with a segment on thinning shears? <|assistant|> SELECT MIN("episode") FROM "season_20_2012_2013" WHERE "segment_a"='Thinning Shears';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_20_2012_2013" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Which episode has segment D on custom motorcycle tanks? <|assistant|> SELECT MIN("episode") FROM "season_20_2012_2013" WHERE "segment_d"='Custom Motorcycle Tanks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_20_2012_2013" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: How many segment C are there in the episode where segment D is bicycle tires? <|assistant|> SELECT COUNT("segment_c") FROM "season_20_2012_2013" WHERE "segment_d"='Bicycle Tires';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_20_2012_2013" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the first episode number? <|assistant|> SELECT MIN("episode") FROM "season_20_2012_2013";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_16_2010_2011" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: How many segment b's when segment a is filigree glass <|assistant|> SELECT COUNT("segment_b") FROM "season_16_2010_2011" WHERE "segment_a"='Filigree Glass';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_16_2010_2011" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Whats the name of segment in s08e21 <|assistant|> SELECT "segment_a" FROM "season_16_2010_2011" WHERE "netflix"='S08E21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_16_2010_2011" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Whats the season/episode of segment a digital dentistry <|assistant|> SELECT "netflix" FROM "season_16_2010_2011" WHERE "segment_a"='Digital Dentistry';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_16_2010_2011" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Whats the name of segment D in the episode where segment A is tequila <|assistant|> SELECT "segment_d" FROM "season_16_2010_2011" WHERE "segment_a"='Tequila';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_16_2010_2011" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the segment D of the episode where segment A is tequila <|assistant|> SELECT "segment_d" FROM "season_16_2010_2011" WHERE "segment_a"='Tequila';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_18_2011_2012" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the number of episods for segment c being s oyster <|assistant|> SELECT COUNT("episode") FROM "season_18_2011_2012" WHERE "segment_c"='s Oyster';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_18_2011_2012" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the least episode for fibre cement siding <|assistant|> SELECT MIN("episode") FROM "season_18_2011_2012" WHERE "segment_d"='Fibre Cement Siding';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_18_2011_2012" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the segment b for 226 episode <|assistant|> SELECT "segment_b" FROM "season_18_2011_2012" WHERE "episode"=226;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_18_2011_2012" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the number of sement d for solar water heaters <|assistant|> SELECT COUNT("segment_d") FROM "season_18_2011_2012" WHERE "segment_b"='Solar Water Heaters';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_18_2011_2012" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Name the segment d for s cufflink <|assistant|> SELECT "segment_d" FROM "season_18_2011_2012" WHERE "segment_a"='s Cufflink';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_19_2012" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the segment B of episode 242? <|assistant|> SELECT "segment_b" FROM "season_19_2012" WHERE "episode"=242;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_19_2012" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the segment C of the episode where segment B is Film Digitization? <|assistant|> SELECT "segment_c" FROM "season_19_2012" WHERE "segment_b"='Film Digitization';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_19_2012" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the segment A on episode 237? <|assistant|> SELECT "segment_a" FROM "season_19_2012" WHERE "episode"=237;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_4_2004" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the last episode which has segment d as blown glass? <|assistant|> SELECT MAX("episode") FROM "season_4_2004" WHERE "segment_d"='Blown Glass';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_4_2004" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the first episode with a netflix episode code of s02e20? <|assistant|> SELECT MIN("episode") FROM "season_4_2004" WHERE "netflix"='S02E20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_4_2004" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the netflix code for episode 46? <|assistant|> SELECT "netflix" FROM "season_4_2004" WHERE "episode"=46;<|endoftext|>