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