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 \"2000s\" (\n \"year\" real,\n \"network\" text,\n \"play_by_play_announcer\" text,\n \"color_commentator\" text,\n \"s_field_reporter\" text,\n \"pregame_hosts\" text,\n \"pregame_analysts\" text,\n \"trophy_presentation\" text\n);\n\nQuestion: What is the highest year with field reporter Steve Lyons?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"2000s\" WHERE \"s_field_reporter\"='Steve Lyons';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" real,\n \"network\" text,\n \"play_by_play_announcer\" text,\n \"color_commentator\" text,\n \"s_field_reporter\" text,\n \"pregame_hosts\" text,\n \"pregame_analysts\" text,\n \"trophy_presentation\" text\n);\n\nQuestion: What is every pregame analyst with Chris Rose as trophy presenter?"
},
{
"role": "assistant",
"content": "SELECT \"pregame_analysts\" FROM \"2000s\" WHERE \"trophy_presentation\"='Chris Rose';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" real,\n \"network\" text,\n \"play_by_play_announcer\" text,\n \"color_commentator\" text,\n \"s_field_reporter\" text,\n \"pregame_hosts\" text,\n \"pregame_analysts\" text,\n \"trophy_presentation\" text\n);\n\nQuestion: Who is every play-by-play announcer when Chris Rose is the trophy presenter?"
},
{
"role": "assistant",
"content": "SELECT \"play_by_play_announcer\" FROM \"2000s\" WHERE \"trophy_presentation\"='Chris Rose';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29436178_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: Who directed \"I am Dick Pentameter!\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_29436178_1\" WHERE \"title\"='\\\"I Am Dick Pentameter!\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29436178_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: How many episodes are titled \"dick's big giant headache (part 1)\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_in_season\") FROM \"table1_29436178_1\" WHERE \"title\"='\\\"Dick''s Big Giant Headache (Part 1)\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29436178_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What is the episode number od \"Dick Vs. Strudwick\"?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no_in_series\") FROM \"table1_29436178_1\" WHERE \"title\"='\\\"Dick vs. Strudwick\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"japan_football_league_jfl_1999_2013\" (\n \"season\" real,\n \"winner\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"fourth_place\" text\n);\n\nQuestion: How many teams came in fourth when Otsuka Pharmaceuticals won?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"fourth_place\") FROM \"japan_football_league_jfl_1999_2013\" WHERE \"winner\"='Otsuka Pharmaceuticals';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"japan_football_league_jfl_1999_2013\" (\n \"season\" real,\n \"winner\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"fourth_place\" text\n);\n\nQuestion: Who was the runner up the season that Sagawa Express came in fourth?"
},
{
"role": "assistant",
"content": "SELECT \"runner_up\" FROM \"japan_football_league_jfl_1999_2013\" WHERE \"fourth_place\"='Sagawa Express';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"japan_football_league_jfl_1999_2013\" (\n \"season\" real,\n \"winner\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"fourth_place\" text\n);\n\nQuestion: How many seasons did Otsuka Pharmaceuticals come in third?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season\") FROM \"japan_football_league_jfl_1999_2013\" WHERE \"third_place\"='Otsuka Pharmaceuticals';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29436238_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: How many episodes were written by Gregg Mettler?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_in_series\") FROM \"table1_29436238_1\" WHERE \"written_by\"='Gregg Mettler';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29436238_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What date did episode 4 in the season originally air?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_29436238_1\" WHERE \"no_in_season\"=4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29436238_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What date did \"the big giant head returns again (part 1)\" originally air?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_29436238_1\" WHERE \"title\"='\\\"The Big Giant Head Returns Again (Part 1)\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29436311_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What is the production code when the title is \"you don't know dick\"?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"production_code\") FROM \"table1_29436311_1\" WHERE \"title\"='\\\"You Don''t Know Dick\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29474407_11\" (\n \"name_designation\" text,\n \"year_of_intro\" real,\n \"country_of_origin\" text,\n \"primary_cartridge\" text,\n \"major_users\" text\n);\n\nQuestion: Who are all the major users of the Gordon Close-Support Weapon System?"
},
{
"role": "assistant",
"content": "SELECT \"major_users\" FROM \"table1_29474407_11\" WHERE \"name_designation\"='Gordon Close-Support Weapon System';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29474407_11\" (\n \"name_designation\" text,\n \"year_of_intro\" real,\n \"country_of_origin\" text,\n \"primary_cartridge\" text,\n \"major_users\" text\n);\n\nQuestion: What country made the Flieger-Doppelpistole 1919?"
},
{
"role": "assistant",
"content": "SELECT \"country_of_origin\" FROM \"table1_29474407_11\" WHERE \"name_designation\"='Flieger-Doppelpistole 1919';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29474407_11\" (\n \"name_designation\" text,\n \"year_of_intro\" real,\n \"country_of_origin\" text,\n \"primary_cartridge\" text,\n \"major_users\" text\n);\n\nQuestion: How many years of introduction does the Neal Submachine Gun have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year_of_intro\") FROM \"table1_29474407_11\" WHERE \"name_designation\"='Neal submachine gun';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29474407_11\" (\n \"name_designation\" text,\n \"year_of_intro\" real,\n \"country_of_origin\" text,\n \"primary_cartridge\" text,\n \"major_users\" text\n);\n\nQuestion: Who are the major users from Australia?"
},
{
"role": "assistant",
"content": "SELECT \"major_users\" FROM \"table1_29474407_11\" WHERE \"country_of_origin\"='Australia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29474407_11\" (\n \"name_designation\" text,\n \"year_of_intro\" real,\n \"country_of_origin\" text,\n \"primary_cartridge\" text,\n \"major_users\" text\n);\n\nQuestion: Who are all the major users of the Saturn Machine Pistol?"
},
{
"role": "assistant",
"content": "SELECT \"major_users\" FROM \"table1_29474407_11\" WHERE \"name_designation\"='Saturn machine pistol';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"arkansas_militia_act_of_1843\" (\n \"division\" text,\n \"brigade\" text,\n \"regiment\" text,\n \"colonel\" text,\n \"county\" text\n);\n\nQuestion: in how many of the arkansas colomel the county was pope"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"colonel\") FROM \"arkansas_militia_act_of_1843\" WHERE \"county\"='Pope';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"arkansas_militia_act_of_1843\" (\n \"division\" text,\n \"brigade\" text,\n \"regiment\" text,\n \"colonel\" text,\n \"county\" text\n);\n\nQuestion: what is the name of the coloneo of the 35th regiment "
},
{
"role": "assistant",
"content": "SELECT \"colonel\" FROM \"arkansas_militia_act_of_1843\" WHERE \"regiment\"='35th Regiment';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"arkansas_militia_act_of_1843\" (\n \"division\" text,\n \"brigade\" text,\n \"regiment\" text,\n \"colonel\" text,\n \"county\" text\n);\n\nQuestion: which regiment was in the Fulton County"
},
{
"role": "assistant",
"content": "SELECT \"regiment\" FROM \"arkansas_militia_act_of_1843\" WHERE \"county\"='Fulton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"arkansas_militia_act_of_1843\" (\n \"division\" text,\n \"brigade\" text,\n \"regiment\" text,\n \"colonel\" text,\n \"county\" text\n);\n\nQuestion: what is he name of the county where the 2nd division and the 41st regiment was"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"arkansas_militia_act_of_1843\" WHERE \"division\"='2nd Division' AND \"regiment\"='41st Regiment';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"arkansas_militia_act_of_1843\" (\n \"division\" text,\n \"brigade\" text,\n \"regiment\" text,\n \"colonel\" text,\n \"county\" text\n);\n\nQuestion: which regimen was in the arkansas county"
},
{
"role": "assistant",
"content": "SELECT \"regiment\" FROM \"arkansas_militia_act_of_1843\" WHERE \"county\"='Arkansas';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29475589_3\" (\n \"no\" real,\n \"num\" real,\n \"episode_title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"u_s_original_airdate\" text,\n \"prod_code\" real\n);\n\nQuestion: When nicole dubuc duane capizzi is the writer who is the director?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"table1_29475589_3\" WHERE \"writer_s\"='Nicole Dubuc Duane Capizzi';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29475589_3\" (\n \"no\" real,\n \"num\" real,\n \"episode_title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"u_s_original_airdate\" text,\n \"prod_code\" real\n);\n\nQuestion: When \"speed metal\" is the episode title what is the lowest number?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no\") FROM \"table1_29475589_3\" WHERE \"episode_title\"='\\\"Speed Metal\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29475589_3\" (\n \"no\" real,\n \"num\" real,\n \"episode_title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"u_s_original_airdate\" text,\n \"prod_code\" real\n);\n\nQuestion: When 22 is the number what is the episode title?"
},
{
"role": "assistant",
"content": "SELECT \"episode_title\" FROM \"table1_29475589_3\" WHERE \"no\"=22;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29475589_5\" (\n \"no\" real,\n \"num\" real,\n \"episode_title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"u_s_original_airdate\" text,\n \"prod_code\" real\n);\n\nQuestion: When the # is 9 what is the U.S original airdate?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_original_airdate\" FROM \"table1_29475589_5\" WHERE \"num\"=9;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"house_of_representatives\" (\n \"district\" real,\n \"representative\" text,\n \"party\" text,\n \"residence\" text,\n \"first_elected\" text,\n \"term_limited\" real\n);\n\nQuestion: how many representatives from hanover twp were first elected in 2008"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"representative\") FROM \"house_of_representatives\" WHERE \"first_elected\"='2008' AND \"residence\"='Hanover Twp';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"house_of_representatives\" (\n \"district\" real,\n \"representative\" text,\n \"party\" text,\n \"residence\" text,\n \"first_elected\" text,\n \"term_limited\" real\n);\n\nQuestion: when was al landis first elected"
},
{
"role": "assistant",
"content": "SELECT \"first_elected\" FROM \"house_of_representatives\" WHERE \"representative\"='Al Landis';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"house_of_representatives\" (\n \"district\" real,\n \"representative\" text,\n \"party\" text,\n \"residence\" text,\n \"first_elected\" text,\n \"term_limited\" real\n);\n\nQuestion: which representative is from willowick"
},
{
"role": "assistant",
"content": "SELECT \"representative\" FROM \"house_of_representatives\" WHERE \"residence\"='Willowick';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"house_of_representatives\" (\n \"district\" real,\n \"representative\" text,\n \"party\" text,\n \"residence\" text,\n \"first_elected\" text,\n \"term_limited\" real\n);\n\nQuestion: which district does andy thompson represent"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"district\") FROM \"house_of_representatives\" WHERE \"representative\"='Andy Thompson';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"house_of_representatives\" (\n \"district\" real,\n \"representative\" text,\n \"party\" text,\n \"residence\" text,\n \"first_elected\" text,\n \"term_limited\" real\n);\n\nQuestion: which party is the newark representative from"
},
{
"role": "assistant",
"content": "SELECT \"party\" FROM \"house_of_representatives\" WHERE \"residence\"='Newark';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"house_of_representatives\" (\n \"district\" real,\n \"representative\" text,\n \"party\" text,\n \"residence\" text,\n \"first_elected\" text,\n \"term_limited\" real\n);\n\nQuestion: who is beavercreek's representative"
},
{
"role": "assistant",
"content": "SELECT \"representative\" FROM \"house_of_representatives\" WHERE \"residence\"='Beavercreek';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ladies_european_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"3rd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" text,\n \"money_list_rank\" text,\n \"scoring_average\" text,\n \"scoring_rank\" text,\n \"rolex_ranking\" real\n);\n\nQuestion: What was Reid's rolex ranking in the year that her money list rank was 3?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rolex_ranking\") FROM \"ladies_european_tour_career_summary\" WHERE \"money_list_rank\"='3';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ladies_european_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"3rd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" text,\n \"money_list_rank\" text,\n \"scoring_average\" text,\n \"scoring_rank\" text,\n \"rolex_ranking\" real\n);\n\nQuestion: What was the money list rank for Reid in the year that she had 0 top 10s?"
},
{
"role": "assistant",
"content": "SELECT \"money_list_rank\" FROM \"ladies_european_tour_career_summary\" WHERE \"top_10s\"=0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ladies_european_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"3rd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" text,\n \"money_list_rank\" text,\n \"scoring_average\" text,\n \"scoring_rank\" text,\n \"rolex_ranking\" real\n);\n\nQuestion: How many cuts did Reid make in the year when her earnings were n/a?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"cuts_made\") FROM \"ladies_european_tour_career_summary\" WHERE \"earnings\"='n/a';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ladies_european_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"3rd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" text,\n \"money_list_rank\" text,\n \"scoring_average\" text,\n \"scoring_rank\" text,\n \"rolex_ranking\" real\n);\n\nQuestion: In what year were Reid's earnings \u20ac4,050 1?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"ladies_european_tour_career_summary\" WHERE \"earnings\"='4,050 1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2005_results\" (\n \"player\" text,\n \"starts\" real,\n \"cuts_made\" real,\n \"best_finish\" text,\n \"money_list_rank\" real,\n \"earnings\" real\n);\n\nQuestion: What is the best finish for the player whose earnings was $421050?"
},
{
"role": "assistant",
"content": "SELECT \"best_finish\" FROM \"2005_results\" WHERE \"earnings\"=421050;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2005_results\" (\n \"player\" text,\n \"starts\" real,\n \"cuts_made\" real,\n \"best_finish\" text,\n \"money_list_rank\" real,\n \"earnings\" real\n);\n\nQuestion: What is the maximum start record for player of Jeff Brehaut?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"starts\") FROM \"2005_results\" WHERE \"player\"='Jeff Brehaut';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2005_results\" (\n \"player\" text,\n \"starts\" real,\n \"cuts_made\" real,\n \"best_finish\" text,\n \"money_list_rank\" real,\n \"earnings\" real\n);\n\nQuestion: What is the best finish record for Carl Paulson?"
},
{
"role": "assistant",
"content": "SELECT \"best_finish\" FROM \"2005_results\" WHERE \"player\"='Carl Paulson';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2005_results\" (\n \"player\" text,\n \"starts\" real,\n \"cuts_made\" real,\n \"best_finish\" text,\n \"money_list_rank\" real,\n \"earnings\" real\n);\n\nQuestion: What is the best finish record for Sean O'hair?"
},
{
"role": "assistant",
"content": "SELECT \"best_finish\" FROM \"2005_results\" WHERE \"player\"='Sean O''Hair';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2005_results\" (\n \"player\" text,\n \"starts\" real,\n \"cuts_made\" real,\n \"best_finish\" text,\n \"money_list_rank\" real,\n \"earnings\" real\n);\n\nQuestion: What is the money list rank for player Doug Barron?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"money_list_rank\") FROM \"2005_results\" WHERE \"player\"='Doug Barron';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29521180_35\" (\n \"athlete\" text,\n \"event\" text,\n \"elimination_poule\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text,\n \"final\" text\n);\n\nQuestion: How many athletes were named federico muller?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"quarterfinals\") FROM \"table1_29521180_35\" WHERE \"athlete\"='Federico Muller';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29521180_35\" (\n \"athlete\" text,\n \"event\" text,\n \"elimination_poule\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text,\n \"semifinals\" text,\n \"final\" text\n);\n\nQuestion: What was the round of 16 result for felipe saucedo?"
},
{
"role": "assistant",
"content": "SELECT \"round_of_16\" FROM \"table1_29521180_35\" WHERE \"athlete\"='Felipe Saucedo';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"original_audiobooks\" (\n \"num\" real,\n \"title\" text,\n \"author\" text,\n \"doctor\" text,\n \"featuring\" text,\n \"read_by\" text,\n \"published\" text,\n \"isbn\" text\n);\n\nQuestion: The Ring of Steel possesses what ISBN?"
},
{
"role": "assistant",
"content": "SELECT \"isbn\" FROM \"original_audiobooks\" WHERE \"title\"='The Ring Of Steel';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"original_audiobooks\" (\n \"num\" real,\n \"title\" text,\n \"author\" text,\n \"doctor\" text,\n \"featuring\" text,\n \"read_by\" text,\n \"published\" text,\n \"isbn\" text\n);\n\nQuestion: THe audio book with ISBN 978-1-4084-6879-1 is read by whom?"
},
{
"role": "assistant",
"content": "SELECT \"read_by\" FROM \"original_audiobooks\" WHERE \"isbn\"='ISBN 978-1-4084-6879-1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"original_audiobooks\" (\n \"num\" real,\n \"title\" text,\n \"author\" text,\n \"doctor\" text,\n \"featuring\" text,\n \"read_by\" text,\n \"published\" text,\n \"isbn\" text\n);\n\nQuestion: The Empty House audiobook has what #?"
},
{
"role": "assistant",
"content": "SELECT \"num\" FROM \"original_audiobooks\" WHERE \"title\"='The Empty House';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29545336_2\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"featured_character_s\" text,\n \"u_s_viewers_millions\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many people directed episode 2?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"directed_by\") FROM \"table1_29545336_2\" WHERE \"no\"=2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29545336_2\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"featured_character_s\" text,\n \"u_s_viewers_millions\" text,\n \"original_air_date\" text\n);\n\nQuestion: What date did \"stanley\" originally air?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_29545336_2\" WHERE \"title\"='\\\"Stanley\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29545336_2\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"featured_character_s\" text,\n \"u_s_viewers_millions\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the title of the episode that featured Abbud Siddiqui?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_29545336_2\" WHERE \"featured_character_s\"='Abbud Siddiqui';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_29545336_2\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"featured_character_s\" text,\n \"u_s_viewers_millions\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many million U.S. viewers was written by Matt Pelfrey?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_millions\" FROM \"table1_29545336_2\" WHERE \"written_by\"='Matt Pelfrey';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"year\" text,\n \"universities\" real,\n \"no_of_students_signed_up\" real,\n \"pct_electricity_reduction\" text,\n \"tonnes_of_co2_saved\" real,\n \"saved\" text\n);\n\nQuestion: When 8.9% is the electricity reduction percentage how many sets of tonnes of co2 saved is there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"tonnes_of_co2_saved\") FROM \"results\" WHERE \"pct_electricity_reduction\"='8.9%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"year\" text,\n \"universities\" real,\n \"no_of_students_signed_up\" real,\n \"pct_electricity_reduction\" text,\n \"tonnes_of_co2_saved\" real,\n \"saved\" text\n);\n\nQuestion: When 1522 is the tonnes of co2 saved what is the year?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"results\" WHERE \"tonnes_of_co2_saved\"=1522;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"year\" text,\n \"universities\" real,\n \"no_of_students_signed_up\" real,\n \"pct_electricity_reduction\" text,\n \"tonnes_of_co2_saved\" real,\n \"saved\" text\n);\n\nQuestion: When \u00a3337,000 is \u00a3 saved what is the percentage of electricity reduction?"
},
{
"role": "assistant",
"content": "SELECT \"pct_electricity_reduction\" FROM \"results\" WHERE \"saved\"='\u00a3337,000';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"year\" text,\n \"universities\" real,\n \"no_of_students_signed_up\" real,\n \"pct_electricity_reduction\" text,\n \"tonnes_of_co2_saved\" real,\n \"saved\" text\n);\n\nQuestion: When 8.9% is the electricity reduction percentage what is the \u00a3 saved?"
},
{
"role": "assistant",
"content": "SELECT \"saved\" FROM \"results\" WHERE \"pct_electricity_reduction\"='8.9%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"year\" text,\n \"universities\" real,\n \"no_of_students_signed_up\" real,\n \"pct_electricity_reduction\" text,\n \"tonnes_of_co2_saved\" real,\n \"saved\" text\n);\n\nQuestion: When 10% is the percentage of electricity reduction how many sets of universities are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"universities\") FROM \"results\" WHERE \"pct_electricity_reduction\"='10%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"asham_black_group\" (\n \"skip_club\" 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);\n\nQuestion: What is maximum loss record when the pa record is 47?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"l\") FROM \"asham_black_group\" WHERE \"pa\"=47;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"asham_black_group\" (\n \"skip_club\" 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);\n\nQuestion: What is the minimum ends lost record when the stolen ends records is 6 and the loss record is bigger than 5.0?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"ends_lost\") FROM \"asham_black_group\" WHERE \"stolen_ends\"=6 AND \"l\">5.0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"asham_black_group\" (\n \"skip_club\" 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);\n\nQuestion: What is the minimum stolen ends record where the pa record is 40?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"stolen_ends\") FROM \"asham_black_group\" WHERE \"pa\"=40;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: When 39 is the amount of ends won who is the skip (club)?"
},
{
"role": "assistant",
"content": "SELECT \"skip_club\" FROM \"standings\" WHERE \"ends_won\"=39;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: When nicole backe (nanaimo curling club) is the skip (club) how many sets of w's are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"w\") FROM \"standings\" WHERE \"skip_club\"='Nicole Backe (Nanaimo Curling Club)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: When 36 is the amount of ends won how many sets of pf's are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pf\") FROM \"standings\" WHERE \"ends_won\"=36;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: What is the lowest overall amount of w's?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"w\") FROM \"standings\";"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: What is the highest L of the tournament?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"l\") FROM \"standings\";"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: What is the highest W of the 0 L?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"w\") FROM \"standings\" WHERE \"l\"=0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: Name the least pa for w being 2"
},
{
"role": "assistant",
"content": "SELECT MIN(\"pa\") FROM \"standings\" WHERE \"w\"=2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: Name the least ends lost for jo\u00eblle belley (glenmore)"
},
{
"role": "assistant",
"content": "SELECT MIN(\"ends_lost\") FROM \"standings\" WHERE \"skip_club\"='Jo\u00eblle Belley (Glenmore)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: Which skip (club) had 28 PA?"
},
{
"role": "assistant",
"content": "SELECT \"skip_club\" FROM \"standings\" WHERE \"pa\"=28;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: What is the most amount of stolen ends for a skip with 1 W?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"stolen_ends\") FROM \"standings\" WHERE \"w\"=1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: Which skip (club) had 31 PA and 9 blank ends?"
},
{
"role": "assistant",
"content": "SELECT \"skip_club\" FROM \"standings\" WHERE \"pa\"=31 AND \"blank_ends\"=9;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: What is the least amount of blank ends for a skip who has 44 PF? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"blank_ends\") FROM \"standings\" WHERE \"pf\"=44;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many high points occur with the team Umass?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_points\") FROM \"schedule\" WHERE \"team\"='UMass';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: When la salle is the team who has the highest amount of points?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"schedule\" WHERE \"team\"='La Salle';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: When allen/moore/wyatt \u2013 4 have the highest amount of assists what is the highest game?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"game\") FROM \"schedule\" WHERE \"high_assists\"='Allen/Moore/Wyatt \u2013 4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: When dayton is the team what is the record?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"team\"='Dayton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"episode\" text,\n \"theme_date\" text,\n \"song_title\" text,\n \"original_performer\" text,\n \"result_placement\" text\n);\n\nQuestion: What the title of the song when the result is to the live shows?"
},
{
"role": "assistant",
"content": "SELECT \"song_title\" FROM \"2010\" WHERE \"result_placement\"='to the Live Shows';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"episode\" text,\n \"theme_date\" text,\n \"song_title\" text,\n \"original_performer\" text,\n \"result_placement\" text\n);\n\nQuestion: What is the episode when the original performaer is diana ross?"
},
{
"role": "assistant",
"content": "SELECT \"episode\" FROM \"2010\" WHERE \"original_performer\"='Diana Ross';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"episode\" text,\n \"theme_date\" text,\n \"song_title\" text,\n \"original_performer\" text,\n \"result_placement\" text\n);\n\nQuestion: Who is the original performer when the episode is casting?"
},
{
"role": "assistant",
"content": "SELECT \"original_performer\" FROM \"2010\" WHERE \"episode\"='Casting';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings_pool_b\" (\n \"skip_club\" 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);\n\nQuestion: What is the pa listed when the ends won is 21?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"pa\") FROM \"standings_pool_b\" WHERE \"ends_won\"=21;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings_pool_b\" (\n \"skip_club\" 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);\n\nQuestion: How many times is there an entry in stolen ends when skip (club) is listed as debbie folk (nutana)?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"stolen_ends\") FROM \"standings_pool_b\" WHERE \"skip_club\"='Debbie Folk (Nutana)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings_pool_b\" (\n \"skip_club\" 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);\n\nQuestion: What is the total mumber of skip (club) entries when the pf is 40?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"skip_club\") FROM \"standings_pool_b\" WHERE \"pf\"=40;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings_pool_b\" (\n \"skip_club\" 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);\n\nQuestion: What is the number of ends won entries when the skip (club) is chantelle eberle (tartan)?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"ends_won\") FROM \"standings_pool_b\" WHERE \"skip_club\"='Chantelle Eberle (Tartan)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"finishing_order\" (\n \"position\" text,\n \"name\" text,\n \"jockey\" text,\n \"age\" real,\n \"weight_st_lb\" text,\n \"starting_price\" text,\n \"distance\" text\n);\n\nQuestion: What horse had a starting price of 66/1?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"finishing_order\" WHERE \"starting_price\"='66/1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: Who is listed under skip (club) when the ends won is 43?"
},
{
"role": "assistant",
"content": "SELECT \"skip_club\" FROM \"standings\" WHERE \"ends_won\"=43;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: What is the L when the skip club is Jeff Richard (kelowna)?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"l\") FROM \"standings\" WHERE \"skip_club\"='Jeff Richard (Kelowna)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: What is the L when the W is 4?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"l\") FROM \"standings\" WHERE \"w\"=4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: What is the largest number in L?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"l\") FROM \"standings\";"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: What is the PA when the PF is 73?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"pa\") FROM \"standings\" WHERE \"pf\"=73;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: What is the blank ends record when the win record is higher than 6.0?"
},
{
"role": "assistant",
"content": "SELECT \"blank_ends\" FROM \"standings\" WHERE \"w\">6.0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: What is the win record where the pa record is 62?"
},
{
"role": "assistant",
"content": "SELECT \"w\" FROM \"standings\" WHERE \"pa\"=62;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: What is listed under L when the stolen ends is 1?"
},
{
"role": "assistant",
"content": "SELECT \"l\" FROM \"standings\" WHERE \"stolen_ends\"=1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: What is listed under W when the ends won is 22?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"w\") FROM \"standings\" WHERE \"ends_won\"=22;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"skip_club\" 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);\n\nQuestion: What is listed under L when the ends won is 21?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"l\") FROM \"standings\" WHERE \"ends_won\"=21;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_singles\" (\n \"seed\" real,\n \"rank\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: How many rank entries are there when new points are 1155?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"men_s_singles\" WHERE \"new_points\"=1155;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_singles\" (\n \"seed\" real,\n \"rank\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: What is listed in new points when status is second round lost to xavier malisse?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"new_points\") FROM \"men_s_singles\" WHERE \"status\"='Second round lost to Xavier Malisse';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_singles\" (\n \"seed\" real,\n \"rank\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: What is the status when points is 4595?"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"men_s_singles\" WHERE \"points\"=4595;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_singles\" (\n \"seed\" real,\n \"rank\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: What is the status when the rank is 2?"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"men_s_singles\" WHERE \"rank\"=2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_singles\" (\n \"seed\" real,\n \"rank\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: How many points are listed when the rank is 17?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"men_s_singles\" WHERE \"rank\"=17;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_singles\" (\n \"seed\" real,\n \"rank\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: How many seed entries are there when points are 2175?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"seed\") FROM \"men_s_singles\" WHERE \"points\"=2175;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"round\" text,\n \"clubs_remaining\" real,\n \"clubs_involved\" real,\n \"winners_from_previous_round\" real,\n \"new_entries_this_round\" text,\n \"leagues_entering_at_this_round\" text\n);\n\nQuestion: How many clubs remained when there were 4 winners from the previous round?"
},
{
"role": "assistant",
"content": "SELECT \"clubs_remaining\" FROM \"teams\" WHERE \"winners_from_previous_round\"=4;"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.