text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Name the college/junior club team for john campbell <|assistant|> SELECT "college_junior_club_team" FROM "round_three" WHERE "player"='John Campbell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Name the least pick # for doug gibson <|assistant|> SELECT MIN("pick_num") FROM "round_three" WHERE "player"='Doug Gibson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many nationalities does Tom Colley have? <|assistant|> SELECT COUNT("nationality") FROM "round_four" WHERE "player"='Tom Colley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What's the NHL team that drafted the player from Sudbury Wolves (OHA)? <|assistant|> SELECT "nhl_team" FROM "round_four" WHERE "college_junior_club_team"='Sudbury Wolves (OHA)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What's the number of positions of the player playing in Minnesota North Stars? <|assistant|> SELECT COUNT("position") FROM "round_four" WHERE "nhl_team"='Minnesota North Stars';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What's the smallest pick number of a player playing in Minnesota North Stars? <|assistant|> SELECT MIN("pick_num") FROM "round_four" WHERE "nhl_team"='Minnesota North Stars';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What's the nationality of the player coming from Edmonton Oil Kings (WCHL)? <|assistant|> SELECT "nationality" FROM "round_four" WHERE "college_junior_club_team"='Edmonton Oil Kings (WCHL)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What's Steve Langdon's naitionality? <|assistant|> SELECT "nationality" FROM "round_four" WHERE "player"='Steve Langdon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: When michigan technological university (ncaa) is the college, junior, or club team what is the nationality? <|assistant|> SELECT "nationality" FROM "round_nine" WHERE "college_junior_club_team"='Michigan Technological University (NCAA)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: When kitchener rangers (oha) is the college, junior, or club team team who is the player? <|assistant|> SELECT "player" FROM "round_nine" WHERE "college_junior_club_team"='Kitchener Rangers (OHA)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: When sault ste. marie greyhounds (oha) is the college, junior, or club team how many nationalities are there? <|assistant|> SELECT COUNT("nationality") FROM "round_nine" WHERE "college_junior_club_team"='Sault Ste. Marie Greyhounds (OHA)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_nine" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: When kitchener rangers (oha) is the college, junior, or club team what is the position? <|assistant|> SELECT "position" FROM "round_nine" WHERE "college_junior_club_team"='Kitchener Rangers (OHA)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: How many positions for denis patry? <|assistant|> SELECT COUNT("position") FROM "round_six" WHERE "player"='Denis Patry';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: What nationality for neil korzack? <|assistant|> SELECT "nationality" FROM "round_six" WHERE "player"='Neil Korzack';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "nickname" text, "location" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: Name the college that has 10000 enrolled <|assistant|> SELECT "institution" FROM "current_members" WHERE "enrollment"=10000;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "nickname" text, "location" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: Name the most joined for molloy college <|assistant|> SELECT MAX("joined") FROM "current_members" WHERE "institution"='Molloy College';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "starky_num" real, "starky_pct" text, "hancock_num" real, "hancock_pct" text, "mc_cain_num" real, "mc_cain_pct" text, "total" real ); Question: how many times was total considered when hancock # was 1394 <|assistant|> SELECT COUNT("total") FROM "by_county" WHERE "hancock_num"=1394;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "starky_num" real, "starky_pct" text, "hancock_num" real, "hancock_pct" text, "mc_cain_num" real, "mc_cain_pct" text, "total" real ); Question: how many times was hancock % considered when starky % was 20.96% <|assistant|> SELECT COUNT("hancock_pct") FROM "by_county" WHERE "starky_pct"='20.96%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "starky_num" real, "starky_pct" text, "hancock_num" real, "hancock_pct" text, "mc_cain_num" real, "mc_cain_pct" text, "total" real ); Question: How many times was country considered when starky % was 20.96% <|assistant|> SELECT COUNT("county") FROM "by_county" WHERE "starky_pct"='20.96%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "starky_num" real, "starky_pct" text, "hancock_num" real, "hancock_pct" text, "mc_cain_num" real, "mc_cain_pct" text, "total" real ); Question: which country did stary get 17.41% <|assistant|> SELECT "county" FROM "by_county" WHERE "starky_pct"='17.41%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "starky_num" real, "starky_pct" text, "hancock_num" real, "hancock_pct" text, "mc_cain_num" real, "mc_cain_pct" text, "total" real ); Question: what is the least total in gila <|assistant|> SELECT MIN("total") FROM "by_county" WHERE "county"='Gila';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "starky_num" real, "starky_pct" text, "hancock_num" real, "hancock_pct" text, "mc_cain_num" real, "mc_cain_pct" text, "total" real ); Question: where did hancock get 3.09% <|assistant|> SELECT "county" FROM "by_county" WHERE "hancock_pct"='3.09%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowling_average" ( "player" text, "team" text, "matches" real, "overs" text, "wickets" real, "economy_rate" text, "average" text, "strike_rate" text, "bbi" text, "bbm" text ); Question: What is the BBM when the strike rate is 42.2? <|assistant|> SELECT "bbm" FROM "bowling_average" WHERE "strike_rate"='42.2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowling_average" ( "player" text, "team" text, "matches" real, "overs" text, "wickets" real, "economy_rate" text, "average" text, "strike_rate" text, "bbi" text, "bbm" text ); Question: What is the economy when the strike rate is 54.0? <|assistant|> SELECT "economy_rate" FROM "bowling_average" WHERE "strike_rate"='54.0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowling_average" ( "player" text, "team" text, "matches" real, "overs" text, "wickets" real, "economy_rate" text, "average" text, "strike_rate" text, "bbi" text, "bbm" text ); Question: How many averages are there when the economy rate is 2.26? <|assistant|> SELECT COUNT("average") FROM "bowling_average" WHERE "economy_rate"='2.26';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowling_average" ( "player" text, "team" text, "matches" real, "overs" text, "wickets" real, "economy_rate" text, "average" text, "strike_rate" text, "bbi" text, "bbm" text ); Question: What is the BBM when the strike rate is 42.2? <|assistant|> SELECT "bbm" FROM "bowling_average" WHERE "strike_rate"='42.2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowling_average" ( "player" text, "team" text, "matches" real, "overs" text, "wickets" real, "economy_rate" text, "average" text, "strike_rate" text, "bbi" text, "bbm" text ); Question: How many figures for wickets when the strike rate is 54.0? <|assistant|> SELECT COUNT("wickets") FROM "bowling_average" WHERE "strike_rate"='54.0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bowling_average" ( "player" text, "team" text, "matches" real, "overs" text, "wickets" real, "economy_rate" text, "average" text, "strike_rate" text, "bbi" text, "bbm" text ); Question: What is the strike rate when there are 17 wickets? <|assistant|> SELECT "strike_rate" FROM "bowling_average" WHERE "wickets"=17;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "lga_name" text, "area_km_2" real, "census_2006_population" real, "administrative_capital" text, "postal_code" real ); Question: How many areas (km 2) have 151511 as the census 2006 population? <|assistant|> SELECT COUNT("area_km_2") FROM "administrative_divisions" WHERE "census_2006_population"=151511;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "lga_name" text, "area_km_2" real, "census_2006_population" real, "administrative_capital" text, "postal_code" real ); Question: What is the LGA name where the 2006 census population is bigger than 425208.9417698913 and administrative capital is port harcourt? <|assistant|> SELECT "lga_name" FROM "administrative_divisions" WHERE "census_2006_population">425208.9417698913 AND "administrative_capital"='Port Harcourt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "lga_name" text, "area_km_2" real, "census_2006_population" real, "administrative_capital" text, "postal_code" real ); Question: What is the administrative capital of LGA name Akuku-Toru? <|assistant|> SELECT "administrative_capital" FROM "administrative_divisions" WHERE "lga_name"='Akuku-Toru';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "lga_name" text, "area_km_2" real, "census_2006_population" real, "administrative_capital" text, "postal_code" real ); Question: What is the administrative capital that has a 2006 census population of 249425? <|assistant|> SELECT "administrative_capital" FROM "administrative_divisions" WHERE "census_2006_population"=249425;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "lga_name" text, "area_km_2" real, "census_2006_population" real, "administrative_capital" text, "postal_code" real ); Question: What is the maximum 2006 census population of LGA name Opobo/Nkoro? <|assistant|> SELECT MAX("census_2006_population") FROM "administrative_divisions" WHERE "lga_name"='Opobo/Nkoro';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "institution" text, "nickname" text, "location" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "current_conference" text ); Question: What's the minimal enrollment of any of the schools? <|assistant|> SELECT MIN("enrollment") FROM "former_members";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "institution" text, "nickname" text, "location" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "current_conference" text ); Question: When was the school whose students are nicknamed Rams founded? <|assistant|> SELECT MAX("founded") FROM "former_members" WHERE "nickname"='Rams';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "institution" text, "nickname" text, "location" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "current_conference" text ); Question: What's the type of the school whose students are nicknamed Chargers? <|assistant|> SELECT "type" FROM "former_members" WHERE "nickname"='Chargers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "institution" text, "nickname" text, "location" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "current_conference" text ); Question: When was the school in Philadelphia, Pennsylvania founded? <|assistant|> SELECT "founded" FROM "former_members" WHERE "location"='Philadelphia, Pennsylvania';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_general_election_performance" ( "year" text, "number_of_candidates" real, "total_votes" real, "average_voters_per_candidate" real, "percentage_of_vote" text, "saved_deposits" real, "change_percentage_points" text, "number_of_m_ps" real ); Question: What was the total number of votes in the 2005 elections? <|assistant|> SELECT MIN("total_votes") FROM "summary_of_general_election_performance" WHERE "year"='2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_general_election_performance" ( "year" text, "number_of_candidates" real, "total_votes" real, "average_voters_per_candidate" real, "percentage_of_vote" text, "saved_deposits" real, "change_percentage_points" text, "number_of_m_ps" real ); Question: How many elections had 1423 average voters per candidate? <|assistant|> SELECT COUNT("change_percentage_points") FROM "summary_of_general_election_performance" WHERE "average_voters_per_candidate"=1423;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_general_election_performance" ( "year" text, "number_of_candidates" real, "total_votes" real, "average_voters_per_candidate" real, "percentage_of_vote" text, "saved_deposits" real, "change_percentage_points" text, "number_of_m_ps" real ); Question: How many candidates were there in the year of 1987? <|assistant|> SELECT "number_of_candidates" FROM "summary_of_general_election_performance" WHERE "year"='1987';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_riding_the_mt125_r" ( "rpm" real, "standard_hp" text, "standard_torque_lb_ft" text, "standard_speed_6th_gear" text, "modified_speed_6th_gear" real, "modified_hp" text, "modified_torque_lb_ft" text ); Question: What is the modified torque (lb/ft) when the standard hp n/a? <|assistant|> SELECT COUNT("modified_torque_lb_ft") FROM "performance_and_riding_the_mt125_r" WHERE "standard_hp"='n/a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_riding_the_mt125_r" ( "rpm" real, "standard_hp" text, "standard_torque_lb_ft" text, "standard_speed_6th_gear" text, "modified_speed_6th_gear" real, "modified_hp" text, "modified_torque_lb_ft" text ); Question: When the standard speed (6th gear) is 114, what is the minimum rpm? <|assistant|> SELECT MIN("rpm") FROM "performance_and_riding_the_mt125_r" WHERE "standard_speed_6th_gear"='114';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_riding_the_mt125_r" ( "rpm" real, "standard_hp" text, "standard_torque_lb_ft" text, "standard_speed_6th_gear" text, "modified_speed_6th_gear" real, "modified_hp" text, "modified_torque_lb_ft" text ); Question: when standard speed (6th gear) is 88, what is the rpm? <|assistant|> SELECT "rpm" FROM "performance_and_riding_the_mt125_r" WHERE "standard_speed_6th_gear"='88';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_riding_the_mt125_r" ( "rpm" real, "standard_hp" text, "standard_torque_lb_ft" text, "standard_speed_6th_gear" text, "modified_speed_6th_gear" real, "modified_hp" text, "modified_torque_lb_ft" text ); Question: What is the modified speed (6th gear) when standard torque (lb/ft) is 10.3 and modified torque (lb/ft) is 8.75? <|assistant|> SELECT "modified_speed_6th_gear" FROM "performance_and_riding_the_mt125_r" WHERE "standard_torque_lb_ft"='10.3' AND "modified_torque_lb_ft"='8.75';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_riding_the_mt125_r" ( "rpm" real, "standard_hp" text, "standard_torque_lb_ft" text, "standard_speed_6th_gear" text, "modified_speed_6th_gear" real, "modified_hp" text, "modified_torque_lb_ft" text ); Question: when the max speed for modified speed (6th gear) where standard speed (6th gear) is 98 <|assistant|> SELECT MAX("modified_speed_6th_gear") FROM "performance_and_riding_the_mt125_r" WHERE "standard_speed_6th_gear"='98';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_riding_the_mt125_r" ( "rpm" real, "standard_hp" text, "standard_torque_lb_ft" text, "standard_speed_6th_gear" text, "modified_speed_6th_gear" real, "modified_hp" text, "modified_torque_lb_ft" text ); Question: When the standard torque (lb/ft) is 11.53 how much does more is the modified hp? <|assistant|> SELECT "modified_hp" FROM "performance_and_riding_the_mt125_r" WHERE "standard_torque_lb_ft"='11.53';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_television_ratings" ( "season" real, "episodes" real, "timeslot_est" text, "season_premiere" text, "season_finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); Question: Which time slot did the season finale on May 18, 2004 hold? <|assistant|> SELECT "timeslot_est" FROM "u_s_television_ratings" WHERE "season_finale"='May 18, 2004';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "minutes" real, "field_goals" real, "rebounds" real, "assists" real, "steals" real, "blocks" real, "points" real ); Question: how many assists did the player who played 195 minutes make <|assistant|> SELECT "assists" FROM "player_stats" WHERE "minutes"=195;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "minutes" real, "field_goals" real, "rebounds" real, "assists" real, "steals" real, "blocks" real, "points" real ); Question: what is the lowest number of blocks <|assistant|> SELECT MIN("blocks") FROM "player_stats";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "minutes" real, "field_goals" real, "rebounds" real, "assists" real, "steals" real, "blocks" real, "points" real ); Question: what is the lowest points scored by a player who blocked 21 times <|assistant|> SELECT MIN("points") FROM "player_stats" WHERE "blocks"=21;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "minutes" real, "field_goals" real, "rebounds" real, "assists" real, "steals" real, "blocks" real, "points" real ); Question: how many times did debbie black block <|assistant|> SELECT "blocks" FROM "player_stats" WHERE "player"='Debbie Black';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "minutes" real, "field_goals" real, "rebounds" real, "assists" real, "steals" real, "blocks" real, "points" real ); Question: what is the highest number of goals did the player with 27 asists score <|assistant|> SELECT MAX("field_goals") FROM "player_stats" WHERE "assists"=27;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "minutes" real, "field_goals" real, "rebounds" real, "assists" real, "steals" real, "blocks" real, "points" real ); Question: how many assists did the player who scored 251 points make <|assistant|> SELECT "assists" FROM "player_stats" WHERE "points"=251;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1971734_1" ( "episode_num" real, "prod_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "filmed" text ); Question: What was the production number of the episode filmed in aug/sept 1968? <|assistant|> SELECT "prod_num" FROM "table1_1971734_1" WHERE "filmed"='Aug/Sept 1968';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1971734_1" ( "episode_num" real, "prod_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "filmed" text ); Question: Who directed "report 2493:kidnap whose pretty girl are you"? <|assistant|> SELECT "directed_by" FROM "table1_1971734_1" WHERE "title"='\"REPORT 2493:KIDNAP Whose Pretty Girl Are You\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1971734_1" ( "episode_num" real, "prod_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "filmed" text ); Question: When was "report 4407: heart no choice for the donor" filmed? <|assistant|> SELECT "filmed" FROM "table1_1971734_1" WHERE "title"='\"REPORT 4407: HEART No Choice for the Donor\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: What's the highest enrollment among the schools? <|assistant|> SELECT MAX("enrollment") FROM "current_members";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: When did the school from Logan Township, Pennsylvania join the Conference? <|assistant|> SELECT "joined" FROM "current_members" WHERE "location"='Logan Township, Pennsylvania';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: When was the private/non-sectarian school founded? <|assistant|> SELECT "founded" FROM "current_members" WHERE "type"='Private/Non-sectarian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: Where is the school whose students are nicknamed Panthers located? <|assistant|> SELECT "location" FROM "current_members" WHERE "nickname"='Panthers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: How many different enrollment numbers are there for the school whose students are nicknamed Barons? <|assistant|> SELECT COUNT("enrollment") FROM "current_members" WHERE "nickname"='Barons';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: In how many different years did schools located in Logan Township, Pennsylvania join the Conference? <|assistant|> SELECT COUNT("joined") FROM "current_members" WHERE "location"='Logan Township, Pennsylvania';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_18_washington_mountain_peaks_with_27" ( "rank" real, "mountain_peak" text, "mountain_range" text, "elevation" text, "prominence" text, "isolation" text ); Question: How many different isolation numbers does the Jack Mountain peak have? <|assistant|> SELECT COUNT("isolation") FROM "the_18_washington_mountain_peaks_with_27" WHERE "mountain_peak"='Jack Mountain';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_18_washington_mountain_peaks_with_27" ( "rank" real, "mountain_peak" text, "mountain_range" text, "elevation" text, "prominence" text, "isolation" text ); Question: What's the isolation of the mountain peak with a prominence of 1340.549 = 4,397feet 1,340m? <|assistant|> SELECT "isolation" FROM "the_18_washington_mountain_peaks_with_27" WHERE "prominence"='1340.549 = 4,397feet 1,340m';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_18_washington_mountain_peaks_with_27" ( "rank" real, "mountain_peak" text, "mountain_range" text, "elevation" text, "prominence" text, "isolation" text ); Question: How many different isolation numbers does the peak with an elevation of 2782.622 = 9,127feet 2782m have? <|assistant|> SELECT COUNT("isolation") FROM "the_18_washington_mountain_peaks_with_27" WHERE "elevation"='2782.622 = 9,127feet 2782m';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_18_washington_mountain_peaks_with_27" ( "rank" real, "mountain_peak" text, "mountain_range" text, "elevation" text, "prominence" text, "isolation" text ); Question: What's the isolation of the mountain peak with an elevation of 2705.793 = 8,875feet 2705m? <|assistant|> SELECT "isolation" FROM "the_18_washington_mountain_peaks_with_27" WHERE "elevation"='2705.793 = 8,875feet 2705m';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_18_washington_mountain_peaks_with_27" ( "rank" real, "mountain_peak" text, "mountain_range" text, "elevation" text, "prominence" text, "isolation" text ); Question: What's the isolation of the mountain peak with prominence of 1340.549 = 4,397feet 1,340m? <|assistant|> SELECT "isolation" FROM "the_18_washington_mountain_peaks_with_27" WHERE "prominence"='1340.549 = 4,397feet 1,340m';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "rebounds" real, "assists" real, "steals" real, "blocks" real, "points" real ); Question: How many steals did Nicole Levandusky make? <|assistant|> SELECT "steals" FROM "player_stats" WHERE "player"='Nicole Levandusky';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "rebounds" real, "assists" real, "steals" real, "blocks" real, "points" real ); Question: How many rebounds did Rhonda Mapp make? <|assistant|> SELECT MAX("rebounds") FROM "player_stats" WHERE "player"='Rhonda Mapp';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "rebounds" real, "assists" real, "steals" real, "blocks" real, "points" real ); Question: What is the largest amount of assists that Nicole Levandusky made? <|assistant|> SELECT MAX("assists") FROM "player_stats" WHERE "player"='Nicole Levandusky';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "rebounds" real, "assists" real, "steals" real, "blocks" real, "points" real ); Question: What is the maximum number of blocks where rebounds equal 35? <|assistant|> SELECT MAX("blocks") FROM "player_stats" WHERE "rebounds"=35;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "rebounds" real, "assists" real, "steals" real, "blocks" real, "points" real ); Question: How many assists did Delisha Milton-Jones make? <|assistant|> SELECT "assists" FROM "player_stats" WHERE "player"='DeLisha Milton-Jones';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup_appearances_and_goals" ( "name" text, "nation" text, "position" text, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); Question: Name the total apps for eddie carr <|assistant|> SELECT MAX("total_apps") FROM "fa_cup_appearances_and_goals" WHERE "name"='Eddie Carr';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup_appearances_and_goals" ( "name" text, "nation" text, "position" text, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); Question: Name the fa cup apps for arthur morton <|assistant|> SELECT "fa_cup_apps" FROM "fa_cup_appearances_and_goals" WHERE "name"='Arthur Morton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup_appearances_and_goals" ( "name" text, "nation" text, "position" text, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); Question: Name the position for billy price <|assistant|> SELECT "position" FROM "fa_cup_appearances_and_goals" WHERE "name"='Billy Price';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup_appearances_and_goals" ( "name" text, "nation" text, "position" text, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); Question: Name the total number of position for don clegg <|assistant|> SELECT COUNT("position") FROM "fa_cup_appearances_and_goals" WHERE "name"='Don Clegg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup_appearances_and_goals" ( "name" text, "nation" text, "position" text, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); Question: Name the nation where jeff barker is from <|assistant|> SELECT "nation" FROM "fa_cup_appearances_and_goals" WHERE "name"='Jeff Barker';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fa_cup_appearances_and_goals" ( "name" text, "nation" text, "position" text, "fa_cup_apps" real, "fa_cup_goals" real, "total_apps" real, "total_goals" real ); Question: Name the fa cup apps for george green <|assistant|> SELECT "fa_cup_apps" FROM "fa_cup_appearances_and_goals" WHERE "name"='George Green';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" text ); Question: Name the school that was founded in 1950 <|assistant|> SELECT "institution" FROM "current_members" WHERE "founded"=1950;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" text ); Question: Name the most founded for sea gulls <|assistant|> SELECT MAX("founded") FROM "current_members" WHERE "nickname"='Sea Gulls';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" text ); Question: Name the location for eagles <|assistant|> SELECT "location" FROM "current_members" WHERE "nickname"='Eagles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" text ); Question: Name the enrollment for 2007-08 <|assistant|> SELECT "enrollment" FROM "current_members" WHERE "joined"='2007-08';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1999_australian_open" ( "sd" real, "rk" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "status" text ); Question: Name the least new points for steffi graf <|assistant|> SELECT MIN("new_points") FROM "1999_australian_open" WHERE "player"='Steffi Graf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1999_australian_open" ( "sd" real, "rk" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "status" text ); Question: Name the most points for champion, won in the final against amélie mauresmo <|assistant|> SELECT MAX("points") FROM "1999_australian_open" WHERE "status"='Champion, won in the final against Amélie Mauresmo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hills_of_g_d_ll" ( "further_cities" text, "county_oblast_or_state" text, "country" text, "distance" text, "direction" text ); Question: Name the further cities for slovakia and west direction <|assistant|> SELECT "further_cities" FROM "hills_of_g_d_ll" WHERE "country"='Slovakia' AND "direction"='West';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hills_of_g_d_ll" ( "further_cities" text, "county_oblast_or_state" text, "country" text, "distance" text, "direction" text ); Question: Name the distance from north <|assistant|> SELECT "distance" FROM "hills_of_g_d_ll" WHERE "direction"='North';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hills_of_g_d_ll" ( "further_cities" text, "county_oblast_or_state" text, "country" text, "distance" text, "direction" text ); Question: Name the number of direction for győr-moson-sopron <|assistant|> SELECT COUNT("direction") FROM "hills_of_g_d_ll" WHERE "county_oblast_or_state"='Győr-Moson-Sopron';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hills_of_g_d_ll" ( "further_cities" text, "county_oblast_or_state" text, "country" text, "distance" text, "direction" text ); Question: Name the further cities for east romania <|assistant|> SELECT "further_cities" FROM "hills_of_g_d_ll" WHERE "direction"='East' AND "country"='Romania';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "hills_of_g_d_ll" ( "further_cities" text, "county_oblast_or_state" text, "country" text, "distance" text, "direction" text ); Question: Name the number of direction for debrecen <|assistant|> SELECT COUNT("direction") FROM "hills_of_g_d_ll" WHERE "further_cities"='Debrecen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: What's the nickname of the students of the school founded in 1933? <|assistant|> SELECT "nickname" FROM "current_members" WHERE "founded"=1933;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: On how many locations is the Saint Joseph's College of Maine located? <|assistant|> SELECT COUNT("location") FROM "current_members" WHERE "institution"='Saint Joseph''s College of Maine';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: On how many different dates did schools from Chestnut Hill, Massachusetts join the conference? <|assistant|> SELECT COUNT("joined") FROM "current_members" WHERE "location"='Chestnut Hill, Massachusetts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: What is the type of the school whose students' nickname is tigers? <|assistant|> SELECT "type" FROM "current_members" WHERE "nickname"='Tigers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: What's the type of the school whose students' name is spirits? <|assistant|> SELECT "type" FROM "current_members" WHERE "nickname"='Spirits';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: What school is located in Chestnut Hill, Massachusetts? <|assistant|> SELECT "institution" FROM "current_members" WHERE "location"='Chestnut Hill, Massachusetts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: What type is the school located in Macon, Georgia? <|assistant|> SELECT "type" FROM "current_members" WHERE "location"='Macon, Georgia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" text, "current_conference" text ); Question: What's the nickname of the school in Maryville, Tennessee? <|assistant|> SELECT "nickname" FROM "former_members" WHERE "location"='Maryville, Tennessee';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" text, "current_conference" text ); Question: Where is the school with nickname Tigers located? <|assistant|> SELECT "location" FROM "former_members" WHERE "nickname"='Tigers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" text, "current_conference" text ); Question: What's the nickname of the students of the school that joined the Conference in 2010? <|assistant|> SELECT "nickname" FROM "former_members" WHERE "joined"=2010;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "current_conference" text ); Question: When was Daniel Webster College founded? <|assistant|> SELECT "founded" FROM "former_members" WHERE "institution"='Daniel Webster College';<|endoftext|>