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 \"tbm_regions\" (\n \"region_name\" text,\n \"state_name\" text,\n \"region_num\" real,\n \"page_count\" real,\n \"regional_page_num\" text\n);\n\nQuestion: In Ca/Nv, what are all of the regional page #s?" }, { "role": "assistant", "content": "SELECT \"regional_page_num\" FROM \"tbm_regions\" WHERE \"state_name\"='CA/NV';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"region_rank_by_number_of_wins\" (\n \"region_represented\" text,\n \"first_place\" real,\n \"second_place\" real,\n \"third_place\" real,\n \"total_top_3_placements\" real,\n \"first_place_winning_year_s_if_applicable\" text\n);\n\nQuestion: What is the maximum number of 2nd places for Tajikistan?" }, { "role": "assistant", "content": "SELECT MAX(\"second_place\") FROM \"region_rank_by_number_of_wins\" WHERE \"region_represented\"='Tajikistan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"region_rank_by_number_of_wins\" (\n \"region_represented\" text,\n \"first_place\" real,\n \"second_place\" real,\n \"third_place\" real,\n \"total_top_3_placements\" real,\n \"first_place_winning_year_s_if_applicable\" text\n);\n\nQuestion: What is the maximum number of 1st places for the country with exactly 1 third place?" }, { "role": "assistant", "content": "SELECT MAX(\"first_place\") FROM \"region_rank_by_number_of_wins\" WHERE \"third_place\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"region_rank_by_number_of_wins\" (\n \"region_represented\" text,\n \"first_place\" real,\n \"second_place\" real,\n \"third_place\" real,\n \"total_top_3_placements\" real,\n \"first_place_winning_year_s_if_applicable\" text\n);\n\nQuestion: How many values of total top 3 placements does Taiwan have?" }, { "role": "assistant", "content": "SELECT COUNT(\"total_top_3_placements\") FROM \"region_rank_by_number_of_wins\" WHERE \"region_represented\"='Taiwan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2879165_1\" (\n \"ioc_code\" text,\n \"country\" text,\n \"network_station\" text,\n \"television_station\" text,\n \"radio_station\" text\n);\n\nQuestion: What is the name of the country when the ioc code is mas?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"table1_2879165_1\" WHERE \"ioc_code\"='MAS';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2879165_1\" (\n \"ioc_code\" text,\n \"country\" text,\n \"network_station\" text,\n \"television_station\" text,\n \"radio_station\" text\n);\n\nQuestion: What is the ioc code when the country is listed as Singapore?" }, { "role": "assistant", "content": "SELECT \"ioc_code\" FROM \"table1_2879165_1\" WHERE \"country\"='Singapore';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2879165_1\" (\n \"ioc_code\" text,\n \"country\" text,\n \"network_station\" text,\n \"television_station\" text,\n \"radio_station\" text\n);\n\nQuestion: What is listed in Network station when the country is Brunei?" }, { "role": "assistant", "content": "SELECT COUNT(\"network_station\") FROM \"table1_2879165_1\" WHERE \"country\"='Brunei';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2879165_1\" (\n \"ioc_code\" text,\n \"country\" text,\n \"network_station\" text,\n \"television_station\" text,\n \"radio_station\" text\n);\n\nQuestion: How many television station listing have a radio station as lao national radio?" }, { "role": "assistant", "content": "SELECT COUNT(\"television_station\") FROM \"table1_2879165_1\" WHERE \"radio_station\"='Lao National Radio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2879165_1\" (\n \"ioc_code\" text,\n \"country\" text,\n \"network_station\" text,\n \"television_station\" text,\n \"radio_station\" text\n);\n\nQuestion: How many television station listings have a ioc code as mas?" }, { "role": "assistant", "content": "SELECT COUNT(\"television_station\") FROM \"table1_2879165_1\" WHERE \"ioc_code\"='MAS';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28768925_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\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who wrote \"the diaper incident\"?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_28768925_1\" WHERE \"title\"='\\\"The Diaper Incident\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28768925_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\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who directed \"the diaper incident\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_28768925_1\" WHERE \"title\"='\\\"The Diaper Incident\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28768925_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\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who wrote episode 27 in the series that was directed by Wendey Stanzler?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_28768925_1\" WHERE \"directed_by\"='Wendey Stanzler' AND \"no_in_series\"=27;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28768925_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\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the name of episode 43 in the series?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_28768925_1\" WHERE \"no_in_series\"=43;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28768925_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\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What date did the episode that had 8.84 million u.s. viewers originally air?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_28768925_1\" WHERE \"u_s_viewers_million\"='8.84';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\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 games have high assists as earl watson (11) and location attendance as Keyarena 16,841?" }, { "role": "assistant", "content": "SELECT COUNT(\"game\") FROM \"game_log\" WHERE \"high_assists\"='Earl Watson (11)' AND \"location_attendance\"='KeyArena 16,841';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\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: What is the record listed when the high assists is earl watson (6)?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_assists\"='Earl Watson (6)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\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: Where is the location attendance when the date is January 9?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"date\"='January 9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\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: What is listed in hight points when the high rebounds is listed as Nick Collison (10)?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"high_rebounds\"='Nick Collison (10)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\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: What is listed in game when the location attendance is listed as Keyarena 16,841?" }, { "role": "assistant", "content": "SELECT MAX(\"game\") FROM \"game_log\" WHERE \"location_attendance\"='KeyArena 16,841';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28787871_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What was the airdate of the episode of production code 214?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_28787871_3\" WHERE \"production_code\"=214;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28787871_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many numbers in the season have an air date of June 3, 2012?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_season\") FROM \"table1_28787871_3\" WHERE \"original_air_date\"='June 3, 2012';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28787871_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the highest production code of the episodes having a US viewership of exactly 2.3?" }, { "role": "assistant", "content": "SELECT MAX(\"production_code\") FROM \"table1_28787871_3\" WHERE \"u_s_viewers_millions\"='2.3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28787871_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many millions of US viewers watched the episode titled \"Happy Howl-o-ween\"?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_28787871_3\" WHERE \"title\"='\\\"Happy Howl-O-Ween\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"county\" text,\n \"balls\" real,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real,\n \"5wi\" real\n);\n\nQuestion: When the number of wickets is 29, what was the economy?" }, { "role": "assistant", "content": "SELECT \"economy\" FROM \"bowling_averages\" WHERE \"wickets\"=29;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"county\" text,\n \"balls\" real,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real,\n \"5wi\" real\n);\n\nQuestion: How many wickets was there when the economy was 3.64?" }, { "role": "assistant", "content": "SELECT \"wickets\" FROM \"bowling_averages\" WHERE \"economy\"='3.64';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"county\" text,\n \"balls\" real,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real,\n \"5wi\" real\n);\n\nQuestion: What is the average of all the wickets that were 27?" }, { "role": "assistant", "content": "SELECT \"average\" FROM \"bowling_averages\" WHERE \"wickets\"=27;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dzrh_nationwide\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"station_type\" text,\n \"location\" text\n);\n\nQuestion: Which branding has the callsign of DXGH?" }, { "role": "assistant", "content": "SELECT \"branding\" FROM \"dzrh_nationwide\" WHERE \"callsign\"='DXGH';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dzrh_nationwide\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"station_type\" text,\n \"location\" text\n);\n\nQuestion: What type of station is within the 972khz frequency?" }, { "role": "assistant", "content": "SELECT \"station_type\" FROM \"dzrh_nationwide\" WHERE \"frequency\"='972kHz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dzrh_nationwide\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"station_type\" text,\n \"location\" text\n);\n\nQuestion: What types of stations are located in Cebu?" }, { "role": "assistant", "content": "SELECT \"station_type\" FROM \"dzrh_nationwide\" WHERE \"location\"='Cebu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dzrh_nationwide\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"station_type\" text,\n \"location\" text\n);\n\nQuestion: Where are all the 1485khz frequency located?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"dzrh_nationwide\" WHERE \"frequency\"='1485kHz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dzrh_nationwide\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"station_type\" text,\n \"location\" text\n);\n\nQuestion: How many locations have the callsign DXGH?" }, { "role": "assistant", "content": "SELECT COUNT(\"location\") FROM \"dzrh_nationwide\" WHERE \"callsign\"='DXGH';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dzrh_nationwide\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"station_type\" text,\n \"location\" text\n);\n\nQuestion: Where are the broadcasting companys with the callsign DWRH located?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"dzrh_nationwide\" WHERE \"callsign\"='DWRH';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28793672_1\" (\n \"episode_air_date\" text,\n \"audition_city\" text,\n \"date\" text,\n \"venue\" text,\n \"callback_date\" text,\n \"callback_venue\" text,\n \"golden_tickets\" real\n);\n\nQuestion: Where is the audition city when the venue is upi convention center?" }, { "role": "assistant", "content": "SELECT \"audition_city\" FROM \"table1_28793672_1\" WHERE \"venue\"='UPI Convention Center';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28793672_1\" (\n \"episode_air_date\" text,\n \"audition_city\" text,\n \"date\" text,\n \"venue\" text,\n \"callback_date\" text,\n \"callback_venue\" text,\n \"golden_tickets\" real\n);\n\nQuestion: How many times is there a golden tickets entry when the callback venue is rcti studio, jakarta?" }, { "role": "assistant", "content": "SELECT COUNT(\"golden_tickets\") FROM \"table1_28793672_1\" WHERE \"callback_venue\"='RCTI Studio, Jakarta';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_election_results\" (\n \"year\" text,\n \"candidates\" real,\n \"total_votes\" real,\n \"average_votes_per_candidate\" real,\n \"pct_of_total_vote\" text,\n \"average_pct_of_vote_per_candidate\" text,\n \"saved_deposits\" real,\n \"number_of_m_ps\" real\n);\n\nQuestion: In what year was 1.35% the average vote per candidate?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"general_election_results\" WHERE \"average_pct_of_vote_per_candidate\"='1.35';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_election_results\" (\n \"year\" text,\n \"candidates\" real,\n \"total_votes\" real,\n \"average_votes_per_candidate\" real,\n \"pct_of_total_vote\" text,\n \"average_pct_of_vote_per_candidate\" text,\n \"saved_deposits\" real,\n \"number_of_m_ps\" real\n);\n\nQuestion: When 3.29% was the average per candidate, what was the number of average votes per candidate?" }, { "role": "assistant", "content": "SELECT MIN(\"average_votes_per_candidate\") FROM \"general_election_results\" WHERE \"average_pct_of_vote_per_candidate\"='3.29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_election_results\" (\n \"year\" text,\n \"candidates\" real,\n \"total_votes\" real,\n \"average_votes_per_candidate\" real,\n \"pct_of_total_vote\" text,\n \"average_pct_of_vote_per_candidate\" text,\n \"saved_deposits\" real,\n \"number_of_m_ps\" real\n);\n\nQuestion: What was the percentage of total votes in 1997?" }, { "role": "assistant", "content": "SELECT \"pct_of_total_vote\" FROM \"general_election_results\" WHERE \"year\"='1997';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dramas\" (\n \"no\" real,\n \"name\" text,\n \"country\" text,\n \"original_channel\" text,\n \"no_of_episodes\" real,\n \"running_time\" text,\n \"launched\" text,\n \"date\" text,\n \"irst\" text\n);\n\nQuestion: How many shows were launched on CBS (2002)?" }, { "role": "assistant", "content": "SELECT COUNT(\"launched\") FROM \"dramas\" WHERE \"original_channel\"='CBS (2002)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dramas\" (\n \"no\" real,\n \"name\" text,\n \"country\" text,\n \"original_channel\" text,\n \"no_of_episodes\" real,\n \"running_time\" text,\n \"launched\" text,\n \"date\" text,\n \"irst\" text\n);\n\nQuestion: How many IRST figures for the show that premiered on Canale 5 (2006)?" }, { "role": "assistant", "content": "SELECT COUNT(\"irst\") FROM \"dramas\" WHERE \"original_channel\"='Canale 5 (2006)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dramas\" (\n \"no\" real,\n \"name\" text,\n \"country\" text,\n \"original_channel\" text,\n \"no_of_episodes\" real,\n \"running_time\" text,\n \"launched\" text,\n \"date\" text,\n \"irst\" text\n);\n\nQuestion: What is the original channel of the show with 88 episodes?" }, { "role": "assistant", "content": "SELECT \"original_channel\" FROM \"dramas\" WHERE \"no_of_episodes\"=88;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dramas\" (\n \"no\" real,\n \"name\" text,\n \"country\" text,\n \"original_channel\" text,\n \"no_of_episodes\" real,\n \"running_time\" text,\n \"launched\" text,\n \"date\" text,\n \"irst\" text\n);\n\nQuestion: What are the dates that Falling Angel aired?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"dramas\" WHERE \"name\"='Falling Angel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real\n);\n\nQuestion: How many economy stats for the player with 2/19 BBI?" }, { "role": "assistant", "content": "SELECT COUNT(\"economy\") FROM \"bowling_averages\" WHERE \"bbi\"='2/19';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real\n);\n\nQuestion: Who is the player with an average of 35.42?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"bowling_averages\" WHERE \"average\"='35.42';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real\n);\n\nQuestion: What is the economy of the player with BBI of 3/33?" }, { "role": "assistant", "content": "SELECT \"economy\" FROM \"bowling_averages\" WHERE \"bbi\"='3/33';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"runs\" real,\n \"average\" text,\n \"highest_score\" text,\n \"100s\" real,\n \"50s\" real\n);\n\nQuestion: What is the average when the highest score is 151?" }, { "role": "assistant", "content": "SELECT \"average\" FROM \"batting_averages\" WHERE \"highest_score\"='151';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"runs\" real,\n \"average\" text,\n \"highest_score\" text,\n \"100s\" real,\n \"50s\" real\n);\n\nQuestion: Who is the player when the highest score is 84?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"batting_averages\" WHERE \"highest_score\"='84';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"runs\" real,\n \"average\" text,\n \"highest_score\" text,\n \"100s\" real,\n \"50s\" real\n);\n\nQuestion: How many runs are there when the highest score is 228*?" }, { "role": "assistant", "content": "SELECT MIN(\"runs\") FROM \"batting_averages\" WHERE \"highest_score\"='228*';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"runs\" real,\n \"average\" text,\n \"highest_score\" text,\n \"100s\" real,\n \"50s\" real\n);\n\nQuestion: What is the average when the 100s is listed as 7?" }, { "role": "assistant", "content": "SELECT \"average\" FROM \"batting_averages\" WHERE \"100s\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"runs\" real,\n \"average\" text,\n \"highest_score\" text,\n \"100s\" real,\n \"50s\" real\n);\n\nQuestion: What is the innings when the highest score is 72?" }, { "role": "assistant", "content": "SELECT MAX(\"innings\") FROM \"batting_averages\" WHERE \"highest_score\"='72';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"runs\" real,\n \"average\" text,\n \"highest_score\" text,\n \"100s\" real,\n \"50s\" real\n);\n\nQuestion: What is the highest number listed for matches?" }, { "role": "assistant", "content": "SELECT MAX(\"matches\") FROM \"batting_averages\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"runs\" real,\n \"average\" text,\n \"highest_score\" text,\n \"100s\" real,\n \"50s\" real\n);\n\nQuestion: How many entries is under 50s column when the average is 39.60?" }, { "role": "assistant", "content": "SELECT \"50s\" FROM \"batting_averages\" WHERE \"average\"='39.60';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"runs\" real,\n \"average\" text,\n \"highest_score\" text,\n \"100s\" real,\n \"50s\" real\n);\n\nQuestion: How many runs are there when the 50s column is 3?" }, { "role": "assistant", "content": "SELECT MIN(\"runs\") FROM \"batting_averages\" WHERE \"50s\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"runs\" real,\n \"average\" text,\n \"highest_score\" text,\n \"100s\" real,\n \"50s\" real\n);\n\nQuestion: Who is the player when the average is 69.66?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"batting_averages\" WHERE \"average\"='69.66';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"wickets\" real,\n \"average\" text,\n \"bbi\" text,\n \"bbm\" text,\n \"5wi\" real,\n \"10wi\" real\n);\n\nQuestion: what is the minimumfor 5wi?" }, { "role": "assistant", "content": "SELECT MIN(\"5wi\") FROM \"bowling_averages\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"wickets\" real,\n \"average\" text,\n \"bbi\" text,\n \"bbm\" text,\n \"5wi\" real,\n \"10wi\" real\n);\n\nQuestion: how many 10wi and bbi is 6/101" }, { "role": "assistant", "content": "SELECT COUNT(\"10wi\") FROM \"bowling_averages\" WHERE \"bbi\"='6/101';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"wickets\" real,\n \"average\" text,\n \"bbi\" text,\n \"bbm\" text,\n \"5wi\" real,\n \"10wi\" real\n);\n\nQuestion: how many innings had bbi 4/26?" }, { "role": "assistant", "content": "SELECT \"innings\" FROM \"bowling_averages\" WHERE \"bbi\"='4/26';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"wickets\" real,\n \"average\" text,\n \"bbi\" text,\n \"bbm\" text,\n \"5wi\" real,\n \"10wi\" real\n);\n\nQuestion: how many 5wi with an average of 33.13?" }, { "role": "assistant", "content": "SELECT COUNT(\"5wi\") FROM \"bowling_averages\" WHERE \"average\"='33.13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"wickets\" real,\n \"average\" text,\n \"bbi\" text,\n \"bbm\" text,\n \"5wi\" real,\n \"10wi\" real\n);\n\nQuestion: how many innings have an average of 19.60?" }, { "role": "assistant", "content": "SELECT \"innings\" FROM \"bowling_averages\" WHERE \"average\"='19.60';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real\n);\n\nQuestion: What is the average when the BBI is 3/27?" }, { "role": "assistant", "content": "SELECT \"average\" FROM \"bowling_averages\" WHERE \"bbi\"='3/27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real\n);\n\nQuestion: Who is the player when the economy is 6.14?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"bowling_averages\" WHERE \"economy\"='6.14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real\n);\n\nQuestion: Who is the player when the economy is 5.29?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"bowling_averages\" WHERE \"economy\"='5.29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real\n);\n\nQuestion: What the number of matches when the BBI is 3/27?" }, { "role": "assistant", "content": "SELECT MIN(\"matches\") FROM \"bowling_averages\" WHERE \"bbi\"='3/27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowling_averages\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"bbi\" text,\n \"4wi\" real\n);\n\nQuestion: What is the BBI whent the economy is 5.68?" }, { "role": "assistant", "content": "SELECT \"bbi\" FROM \"bowling_averages\" WHERE \"economy\"='5.68';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"short_tournaments\" (\n \"year\" text,\n \"position\" real,\n \"games_played\" real,\n \"won\" real,\n \"tied\" real,\n \"lost\" real,\n \"goals_scored\" real,\n \"goals_against\" real,\n \"points\" real,\n \"postseason_place\" text\n);\n\nQuestion: What is the year listed when tied is listed as 11?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"short_tournaments\" WHERE \"tied\"=11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"short_tournaments\" (\n \"year\" text,\n \"position\" real,\n \"games_played\" real,\n \"won\" real,\n \"tied\" real,\n \"lost\" real,\n \"goals_scored\" real,\n \"goals_against\" real,\n \"points\" real,\n \"postseason_place\" text\n);\n\nQuestion: What is the goals against listed when the goals scored is 30?" }, { "role": "assistant", "content": "SELECT \"goals_against\" FROM \"short_tournaments\" WHERE \"goals_scored\"=30;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"short_tournaments\" (\n \"year\" text,\n \"position\" real,\n \"games_played\" real,\n \"won\" real,\n \"tied\" real,\n \"lost\" real,\n \"goals_scored\" real,\n \"goals_against\" real,\n \"points\" real,\n \"postseason_place\" text\n);\n\nQuestion: How many goals scored entries are listed when the year is verano 2001?" }, { "role": "assistant", "content": "SELECT COUNT(\"goals_scored\") FROM \"short_tournaments\" WHERE \"year\"='Verano 2001';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"short_tournaments\" (\n \"year\" text,\n \"position\" real,\n \"games_played\" real,\n \"won\" real,\n \"tied\" real,\n \"lost\" real,\n \"goals_scored\" real,\n \"goals_against\" real,\n \"points\" real,\n \"postseason_place\" text\n);\n\nQuestion: What are goals scored when postition is 17 and tied is 5?" }, { "role": "assistant", "content": "SELECT \"goals_scored\" FROM \"short_tournaments\" WHERE \"position\"=17 AND \"tied\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"jersey_progression\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"sprints_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: Who was the winner if the Mountains Classification award was given to Jaime Vergara and the Team Classification award is given to Col es Pasion Caf\u00e9 De Colombia 472?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"jersey_progression\" WHERE \"mountains_classification\"='Jaime Vergara' AND \"team_classification\"='Col es Pasion Caf\u00e9 De Colombia 472';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"jersey_progression\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"sprints_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: Who was the General Classification awardee if Sergio Luis Henao was the winner and the Points Classification award was given to Sergio Luis Henao?" }, { "role": "assistant", "content": "SELECT \"general_classification\" FROM \"jersey_progression\" WHERE \"winner\"='Sergio Luis Henao' AND \"points_classification\"='Sergio Luis Henao';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"jersey_progression\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"sprints_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: Who were the winners if the Mountain Classification award was given to Oscar Solis and Team Classification was given to EPM-Une?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"jersey_progression\" WHERE \"mountains_classification\"='Oscar Solis' AND \"team_classification\"='EPM-UNE';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"jersey_progression\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"sprints_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: In what stage did Jaime Vergara won, Team Classification was given to EPM-Une and Mountain Classification winner was Oscar Solis?" }, { "role": "assistant", "content": "SELECT \"stage\" FROM \"jersey_progression\" WHERE \"team_classification\"='EPM-UNE' AND \"mountains_classification\"='Oscar Solis' AND \"winner\"='Jaime Vergara';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1_2003_2004\" (\n \"series_num\" 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 highest series number for \"The Devil Made Me Do It\"?" }, { "role": "assistant", "content": "SELECT MAX(\"series_num\") FROM \"season_1_2003_2004\" WHERE \"title\"='\\\"The Devil Made Me Do It\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1_2003_2004\" (\n \"series_num\" 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 series number for \"The Devil Made Me Do It\" ?" }, { "role": "assistant", "content": "SELECT COUNT(\"series_num\") FROM \"season_1_2003_2004\" WHERE \"title\"='\\\"The Devil Made Me Do It\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1_2003_2004\" (\n \"series_num\" 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 for \"State of Grace\"?" }, { "role": "assistant", "content": "SELECT MAX(\"production_code\") FROM \"season_1_2003_2004\" WHERE \"title\"='\\\"State of Grace\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1_2003_2004\" (\n \"series_num\" 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 the episode that aired November 21, 2003?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"season_1_2003_2004\" WHERE \"original_air_date\"='November 21, 2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1_2003_2004\" (\n \"series_num\" 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 series number of \"St. Joan\"?" }, { "role": "assistant", "content": "SELECT \"series_num\" FROM \"season_1_2003_2004\" WHERE \"title\"='\\\"St. Joan\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_1_2003_2004\" (\n \"series_num\" 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 episode titles have series number 4?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"season_1_2003_2004\" WHERE \"series_num\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How may college/junior/club team has a the nhl team listed as Colorado Avalanche?" }, { "role": "assistant", "content": "SELECT COUNT(\"college_junior_club_team\") FROM \"round_five\" WHERE \"nhl_team\"='Colorado Avalanche';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What player was picked by the New York Rangers?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_two\" WHERE \"nhl_team\"='New York Rangers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eight\" (\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What position did the draft pick for Toronto Maple Leafs play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_eight\" WHERE \"nhl_team\"='Toronto Maple Leafs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eight\" (\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Who did Edmonton Oilers get for their draft pick?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_eight\" WHERE \"nhl_team\"='Edmonton Oilers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eight\" (\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What college team did Milan Kostolny play for?" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"round_eight\" WHERE \"player\"='Milan Kostolny';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eight\" (\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What player was picked for Buffalo Sabres?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_eight\" WHERE \"nhl_team\"='Buffalo Sabres';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eight\" (\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What NHL team picked Sergei Luchinkin?" }, { "role": "assistant", "content": "SELECT \"nhl_team\" FROM \"round_eight\" WHERE \"player\"='Sergei Luchinkin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_prix_motorcycle_racing_world_champ\" (\n \"rank\" real,\n \"rider\" text,\n \"country\" text,\n \"winning_span\" text,\n \"moto_gp_500cc\" real,\n \"350cc\" real,\n \"moto2_250cc\" real,\n \"moto3_125cc\" real,\n \"80cc_50cc\" real,\n \"total\" real\n);\n\nQuestion: What is the minimum MotoGP/500cc ranking?" }, { "role": "assistant", "content": "SELECT MIN(\"moto_gp_500cc\") FROM \"grand_prix_motorcycle_racing_world_champ\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28884880_4\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: Who was the conference player of the year from an independent conference?" }, { "role": "assistant", "content": "SELECT \"conference_player_of_the_year\" FROM \"table1_28884880_4\" WHERE \"conference\"='Independent';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28884880_4\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: Who was the conference player of the year when Alabama State was the tournament winner?" }, { "role": "assistant", "content": "SELECT \"conference_player_of_the_year\" FROM \"table1_28884880_4\" WHERE \"tournament_winner\"='Alabama State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28884880_4\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: Who was the tournament winner in the Southwestern Athletic Conference?" }, { "role": "assistant", "content": "SELECT \"tournament_winner\" FROM \"table1_28884880_4\" WHERE \"conference\"='Southwestern Athletic Conference';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_roland_drum_sets\" (\n \"drum_set_name\" text,\n \"product_line\" text,\n \"years_available\" text,\n \"drum_module\" text,\n \"kick_drum_pad\" text,\n \"snare_pad\" text,\n \"tom_tom_pads\" text,\n \"hi_hat_pad_controller\" text,\n \"crashand_ride_cymbal_pads\" text,\n \"drum_stand_oftenoptional\" text\n);\n\nQuestion: what is the crashandride cymbalpads for the drumset name td-9k2" }, { "role": "assistant", "content": "SELECT \"crashand_ride_cymbal_pads\" FROM \"list_of_roland_drum_sets\" WHERE \"drum_set_name\"='TD-9K2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_roland_drum_sets\" (\n \"drum_set_name\" text,\n \"product_line\" text,\n \"years_available\" text,\n \"drum_module\" text,\n \"kick_drum_pad\" text,\n \"snare_pad\" text,\n \"tom_tom_pads\" text,\n \"hi_hat_pad_controller\" text,\n \"crashand_ride_cymbal_pads\" text,\n \"drum_stand_oftenoptional\" text\n);\n\nQuestion: how many drumsets of drumstand (oftenoptional) with hd-1/3stand and tom-tom pads is 3xcloth-head are" }, { "role": "assistant", "content": "SELECT COUNT(\"drum_set_name\") FROM \"list_of_roland_drum_sets\" WHERE \"drum_stand_oftenoptional\"='HD-1/3Stand' AND \"tom_tom_pads\"='3xCloth-Head';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_roland_drum_sets\" (\n \"drum_set_name\" text,\n \"product_line\" text,\n \"years_available\" text,\n \"drum_module\" text,\n \"kick_drum_pad\" text,\n \"snare_pad\" text,\n \"tom_tom_pads\" text,\n \"hi_hat_pad_controller\" text,\n \"crashand_ride_cymbal_pads\" text,\n \"drum_stand_oftenoptional\" text\n);\n\nQuestion: in which year was available the rubber as kickdrum pad" }, { "role": "assistant", "content": "SELECT \"years_available\" FROM \"list_of_roland_drum_sets\" WHERE \"kick_drum_pad\"='Rubber';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_roland_drum_sets\" (\n \"drum_set_name\" text,\n \"product_line\" text,\n \"years_available\" text,\n \"drum_module\" text,\n \"kick_drum_pad\" text,\n \"snare_pad\" text,\n \"tom_tom_pads\" text,\n \"hi_hat_pad_controller\" text,\n \"crashand_ride_cymbal_pads\" text,\n \"drum_stand_oftenoptional\" text\n);\n\nQuestion: in the drum module td-5 what are the tom-tom pads" }, { "role": "assistant", "content": "SELECT \"tom_tom_pads\" FROM \"list_of_roland_drum_sets\" WHERE \"drum_module\"='TD-5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_roland_drum_sets\" (\n \"drum_set_name\" text,\n \"product_line\" text,\n \"years_available\" text,\n \"drum_module\" text,\n \"kick_drum_pad\" text,\n \"snare_pad\" text,\n \"tom_tom_pads\" text,\n \"hi_hat_pad_controller\" text,\n \"crashand_ride_cymbal_pads\" text,\n \"drum_stand_oftenoptional\" text\n);\n\nQuestion: for the drumset name td-15k how many snare pads are" }, { "role": "assistant", "content": "SELECT COUNT(\"snare_pad\") FROM \"list_of_roland_drum_sets\" WHERE \"drum_set_name\"='TD-15K';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28925058_1\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text\n);\n\nQuestion: Who won the race on June 26?" }, { "role": "assistant", "content": "SELECT \"race_winner\" FROM \"table1_28925058_1\" WHERE \"date\"='June 26';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28925058_1\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text\n);\n\nQuestion: Who won the race on June 26?" }, { "role": "assistant", "content": "SELECT \"race_winner\" FROM \"table1_28925058_1\" WHERE \"date\"='June 26';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28925058_1\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text\n);\n\nQuestion: Who won the race on August 15?" }, { "role": "assistant", "content": "SELECT \"race_winner\" FROM \"table1_28925058_1\" WHERE \"date\"='August 15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28925058_1\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text\n);\n\nQuestion: What is the date of the Italian Grand Prix?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"table1_28925058_1\" WHERE \"grand_prix\"='Italian Grand Prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28925058_1\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text\n);\n\nQuestion: How many dates did Daniel Ruiz win the Spanish Grand Prix?" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"table1_28925058_1\" WHERE \"grand_prix\"='Spanish Grand Prix' AND \"race_winner\"='Daniel Ruiz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28925058_1\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"race_winner\" text\n);\n\nQuestion: Who won the race on May 1?" }, { "role": "assistant", "content": "SELECT \"race_winner\" FROM \"table1_28925058_1\" WHERE \"date\"='May 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"changes_during_term\" (\n \"by_election\" real,\n \"electorate\" text,\n \"date\" text,\n \"incumbent\" text,\n \"reason\" text,\n \"winner\" text\n);\n\nQuestion: When james rutherford is the incumbent how many dates are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"changes_during_term\" WHERE \"incumbent\"='James Rutherford';" } ]