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