text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22577693_1" ( "details" text, "host_nation_s" text, "final_venue" text, "winner" text, "result" text, "runner_up" text ); Question: Who was the winner if the final venue is Kowloon Cricket Club? <|assistant|> SELECT "winner" FROM "table1_22577693_1" WHERE "final_venue"='Kowloon Cricket Club';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22570439_1" ( "series_num" real, "season_num" real, "episode_title" text, "written_by" text, "directed_by" text, "u_s_viewers_millions" text, "original_air_date" text ); Question: How many u.s. viewers (million) have a series # 83? <|assistant|> SELECT "u_s_viewers_millions" FROM "table1_22570439_1" WHERE "series_num"=83;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22570439_1" ( "series_num" real, "season_num" real, "episode_title" text, "written_by" text, "directed_by" text, "u_s_viewers_millions" text, "original_air_date" text ); Question: How many u.s. viewers (millions) have 5 as the season #? <|assistant|> SELECT "u_s_viewers_millions" FROM "table1_22570439_1" WHERE "season_num"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22570439_1" ( "series_num" real, "season_num" real, "episode_title" text, "written_by" text, "directed_by" text, "u_s_viewers_millions" text, "original_air_date" text ); Question: How many written by have wendey stanzler as the director? <|assistant|> SELECT COUNT("written_by") FROM "table1_22570439_1" WHERE "directed_by"='Wendey Stanzler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22570439_1" ( "series_num" real, "season_num" real, "episode_title" text, "written_by" text, "directed_by" text, "u_s_viewers_millions" text, "original_air_date" text ); Question: What is the original air date where tracy poust & jon kinnally was written by? <|assistant|> SELECT "original_air_date" FROM "table1_22570439_1" WHERE "written_by"='Tracy Poust & Jon Kinnally';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22570439_1" ( "series_num" real, "season_num" real, "episode_title" text, "written_by" text, "directed_by" text, "u_s_viewers_millions" text, "original_air_date" text ); Question: Who is the written by when mark worthington is the director? <|assistant|> SELECT "written_by" FROM "table1_22570439_1" WHERE "directed_by"='Mark Worthington';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebel_army_radio_awards_2010" ( "best_male_mc" text, "best_female_mc" text, "best_male_artist" text, "best_female_artist" text, "best_male_lyricist" text, "best_female_lyricist" text, "best_male_record" text ); Question: Who got the best male record when best female mc is tino baby & 5'6"? <|assistant|> SELECT "best_male_record" FROM "rebel_army_radio_awards_2010" WHERE "best_female_mc"='Tino Baby & 5''6\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "year" real, "network" text, "race_caller" text, "s_host" text, "s_analyst" text, "reporters" text, "trophy_presentation" text ); Question: In 1976, who was the reporter for the Belmont Stakes? <|assistant|> SELECT "reporters" FROM "1970s" WHERE "year"=1976;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "year" real, "network" text, "race_caller" text, "s_host" text, "s_analyst" text, "reporters" text, "trophy_presentation" text ); Question: Who called the race in 1978? <|assistant|> SELECT "race_caller" FROM "1970s" WHERE "year"=1978;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "year" real, "network" text, "race_caller" text, "s_host" text, "s_analyst" text, "reporters" text, "trophy_presentation" text ); Question: For the race called by Marshall Cassidy, who was the host? <|assistant|> SELECT "s_host" FROM "1970s" WHERE "race_caller"='Marshall Cassidy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970s" ( "year" real, "network" text, "race_caller" text, "s_host" text, "s_analyst" text, "reporters" text, "trophy_presentation" text ); Question: Who were the reporters for the 1977 Belmont Stakes? <|assistant|> SELECT "reporters" FROM "1970s" WHERE "year"=1977;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "year" real, "network" text, "race_caller" text, "s_host" text, "s_analyst" text, "reporters" text, "trophy_presentation" text ); Question: Who called the race in 1998? <|assistant|> SELECT "race_caller" FROM "1990s" WHERE "year"=1998;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rankings_at_season_s_end" ( "position" real, "1990_1991" text, "1991_1992" text, "1992_1993" text, "1993_1994" text, "1994_1995" text ); Question: Who was ranked in the same position in 1991-1992 as Drew Kachtik in 1993-1994? <|assistant|> SELECT "1991_1992" FROM "rankings_at_season_s_end" WHERE "1993_1994"='Drew Kachtik';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rankings_at_season_s_end" ( "position" real, "1990_1991" text, "1991_1992" text, "1992_1993" text, "1993_1994" text, "1994_1995" text ); Question: Who was ranked in the same position in 1991-1992 as Tim Doyle in 1994-1995? <|assistant|> SELECT "1991_1992" FROM "rankings_at_season_s_end" WHERE "1994_1995"='Tim Doyle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rankings_at_season_s_end" ( "position" real, "1990_1991" text, "1991_1992" text, "1992_1993" text, "1993_1994" text, "1994_1995" text ); Question: In what position was Mike Ray ranked in 1993-1994? <|assistant|> SELECT MIN("position") FROM "rankings_at_season_s_end" WHERE "1993_1994"='Mike Ray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rankings_at_season_s_end" ( "position" real, "1990_1991" text, "1991_1992" text, "1992_1993" text, "1993_1994" text, "1994_1995" text ); Question: Who was ranked in the same position in 1990-1991 as Andy Roberts in 1993-1994? <|assistant|> SELECT "1990_1991" FROM "rankings_at_season_s_end" WHERE "1993_1994"='Andy Roberts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rankings_at_season_s_end" ( "position" real, "1990_1991" text, "1991_1992" text, "1992_1993" text, "1993_1994" text, "1994_1995" text ); Question: Who was ranked in the same position in 1990-1991 as Drew Kachtik in 1993-1994? <|assistant|> SELECT "1990_1991" FROM "rankings_at_season_s_end" WHERE "1993_1994"='Drew Kachtik';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rankings_at_season_s_end" ( "position" real, "1990_1991" text, "1991_1992" text, "1992_1993" text, "1993_1994" text, "1994_1995" text ); Question: What position was Drew Kachtik ranked at in 1993-1994? <|assistant|> SELECT MAX("position") FROM "rankings_at_season_s_end" WHERE "1993_1994"='Drew Kachtik';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rankings_at_season_s_end" ( "position" real, "2005_2006" text, "2006_2007" text, "2007_2008" text, "2008_2009" text, "2009_2010" text ); Question: who was position 3 in 2007-2008? <|assistant|> SELECT "2007_2008" FROM "rankings_at_season_s_end" WHERE "position"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rankings_at_season_s_end" ( "position" real, "2005_2006" text, "2006_2007" text, "2007_2008" text, "2008_2009" text, "2009_2010" text ); Question: what is the total number of 2006-2007 and 2007-2008 for jack huczek? <|assistant|> SELECT COUNT("2006_2007") FROM "rankings_at_season_s_end" WHERE "2007_2008"='Jack Huczek';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rankings_at_season_s_end" ( "position" real, "2005_2006" text, "2006_2007" text, "2007_2008" text, "2008_2009" text, "2009_2010" text ); Question: what isthe total number of seasons for chris crowther? <|assistant|> SELECT COUNT("2009_2010") FROM "rankings_at_season_s_end" WHERE "2006_2007"='Chris Crowther';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rankings_at_season_s_end" ( "position" real, "2005_2006" text, "2006_2007" text, "2007_2008" text, "2008_2009" text, "2009_2010" text ); Question: what is the position for chris crowther in 2006-2007? <|assistant|> SELECT "position" FROM "rankings_at_season_s_end" WHERE "2006_2007"='Chris Crowther';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_results" ( "season" text, "games" real, "won" real, "lost" real, "tied" real, "points" real, "winning_pct_pct" text, "goals_for" real, "goals_against" real, "standing" text ); Question: What was the standing when goal against were 279? <|assistant|> SELECT "standing" FROM "season_by_season_results" WHERE "goals_against"=279;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_results" ( "season" text, "games" real, "won" real, "lost" real, "tied" real, "points" real, "winning_pct_pct" text, "goals_for" real, "goals_against" real, "standing" text ); Question: What is the winning pct % if the goal for are 229? <|assistant|> SELECT "winning_pct_pct" FROM "season_by_season_results" WHERE "goals_for"=229;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_results" ( "season" text, "games" real, "won" real, "lost" real, "tied" real, "points" real, "winning_pct_pct" text, "goals_for" real, "goals_against" real, "standing" text ); Question: What was the winning % when there were 322 goals? <|assistant|> SELECT "winning_pct_pct" FROM "season_by_season_results" WHERE "goals_for"=322;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_7" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: Name the year for willie goggin <|assistant|> SELECT "year" FROM "wins_7" WHERE "runner_s_up"='Willie Goggin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_7" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: Name the margin for 4 shot deficit <|assistant|> SELECT "margin" FROM "wins_7" WHERE "54_holes"='4 shot deficit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_7" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: Name the winning score for pga championship <|assistant|> SELECT "winning_score" FROM "wins_7" WHERE "championship"='PGA Championship';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_7" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: Name the runners up for 1 shot deficit <|assistant|> SELECT "runner_s_up" FROM "wins_7" WHERE "54_holes"='1 shot deficit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_7" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: Name the least year for walter hagen <|assistant|> SELECT MIN("year") FROM "wins_7" WHERE "runner_s_up"='Walter Hagen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "legends_over_45_doubles" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: What was the score in the final where one of the opponents in the final was fitzgerald vilas? <|assistant|> SELECT "score_in_the_final" FROM "legends_over_45_doubles" WHERE "opponents_in_the_final"='Fitzgerald Vilas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "legends_over_45_doubles" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: What was the surface for the opponents in the final with fitzgerald vilas? <|assistant|> SELECT "surface" FROM "legends_over_45_doubles" WHERE "opponents_in_the_final"='Fitzgerald Vilas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "legends_over_45_doubles" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Who were the opponents in the final where the score in the final is 6–4, 7–6 2? <|assistant|> SELECT "opponents_in_the_final" FROM "legends_over_45_doubles" WHERE "score_in_the_final"='6–4, 7–6 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "legends_over_45_doubles" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: What was the partner count when the opponents in the final was forget leconte? <|assistant|> SELECT COUNT("partner") FROM "legends_over_45_doubles" WHERE "opponents_in_the_final"='Forget Leconte';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "legends_over_45_doubles" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: What was the year date when one of the opponents in the final was bahrami leconte and score in the final is 7–6 2 , 6–1? <|assistant|> SELECT MIN("year") FROM "legends_over_45_doubles" WHERE "opponents_in_the_final"='Bahrami Leconte' AND "score_in_the_final"='7–6 2 , 6–1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_26_19_titles_7_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Name the number of year for score being 6–3, 6–2, 6–4 <|assistant|> SELECT COUNT("year") FROM "singles_26_19_titles_7_runners_up" WHERE "score_in_the_final"='6–3, 6–2, 6–4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_26_19_titles_7_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Name the surface for 6–0, 6–3 <|assistant|> SELECT "surface" FROM "singles_26_19_titles_7_runners_up" WHERE "score_in_the_final"='6–0, 6–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_26_19_titles_7_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Name the championship for peter mcnamara <|assistant|> SELECT "championship" FROM "singles_26_19_titles_7_runners_up" WHERE "opponent_in_the_final"='Peter McNamara';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_26_19_titles_7_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Name the championship for 1980 hard surface <|assistant|> SELECT "championship" FROM "singles_26_19_titles_7_runners_up" WHERE "year"=1980 AND "surface"='Hard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2260452_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text ); Question: If the team is Billy Ballew Motorsports, what is the race time? <|assistant|> SELECT "race_time" FROM "table1_2260452_1" WHERE "team"='Billy Ballew Motorsports';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2260452_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text ); Question: What was the date if the driver was Robert Pressley? <|assistant|> SELECT "date" FROM "table1_2260452_1" WHERE "driver"='Robert Pressley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2260452_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text ); Question: If the race time is 2:00:33, what is the average speed? <|assistant|> SELECT "average_speed_mph" FROM "table1_2260452_1" WHERE "race_time"='2:00:33';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_end_rankings" ( "rank" real, "1980_81" text, "1981_82" text, "1982_83" text, "1983_84" text, "1984_85" text ); Question: Who is every entry for 1981-82 when 1984-85 is Marci Drexler? <|assistant|> SELECT "1981_82" FROM "season_end_rankings" WHERE "1984_85"='Marci Drexler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_end_rankings" ( "rank" real, "1980_81" text, "1981_82" text, "1982_83" text, "1983_84" text, "1984_85" text ); Question: What is every entry for 1980-81 when 1984-85 is Liz Alvarado? <|assistant|> SELECT "1980_81" FROM "season_end_rankings" WHERE "1984_85"='Liz Alvarado';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_end_rankings" ( "rank" real, "1980_81" text, "1981_82" text, "1982_83" text, "1983_84" text, "1984_85" text ); Question: What is every entry for 1980-81 when 1983-84 is Caryn McKinney? <|assistant|> SELECT "1980_81" FROM "season_end_rankings" WHERE "1983_84"='Caryn McKinney';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_end_rankings" ( "rank" real, "1980_81" text, "1981_82" text, "1982_83" text, "1983_84" text, "1984_85" text ); Question: What is every entry for 1980-81 when 1983-84 is Heather McKay? <|assistant|> SELECT "1980_81" FROM "season_end_rankings" WHERE "1983_84"='Heather McKay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_end_rankings" ( "rank" real, "1980_81" text, "1981_82" text, "1982_83" text, "1983_84" text, "1984_85" text ); Question: What is every entry for 1982-83 for rank 1? <|assistant|> SELECT "1982_83" FROM "season_end_rankings" WHERE "rank"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_end_rankings" ( "rank" real, "1980_81" text, "1981_82" text, "1982_83" text, "1983_84" text, "1984_85" text ); Question: How many entries for 1983-84 when 1984-85 is Terri Gilreath? <|assistant|> SELECT COUNT("1983_84") FROM "season_end_rankings" WHERE "1984_85"='Terri Gilreath';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "position" text, "name" text, "jersey_number" real, "age" real, "height" text, "weight" real, "college" text, "result" text ); Question: How many heights are listed for Jesse Holley in the WR position? <|assistant|> SELECT COUNT("height") FROM "contestants" WHERE "position"='WR' AND "name"='Jesse Holley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "position" text, "name" text, "jersey_number" real, "age" real, "height" text, "weight" real, "college" text, "result" text ); Question: What is the result for Wisconsin? <|assistant|> SELECT "result" FROM "contestants" WHERE "college"='Wisconsin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "position" text, "name" text, "jersey_number" real, "age" real, "height" text, "weight" real, "college" text, "result" text ); Question: What is the result for Steve Gonzalez? <|assistant|> SELECT "result" FROM "contestants" WHERE "name"='Steve Gonzalez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "position" text, "name" text, "jersey_number" real, "age" real, "height" text, "weight" real, "college" text, "result" text ); Question: What are the positions for Menlo College? <|assistant|> SELECT "position" FROM "contestants" WHERE "college"='Menlo College';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2263152_1" ( "version" text, "release_date" text, "distribution_mechanism" text, "features" text, "security_issues" text ); Question: If the distribution mechanism is the Microsoft website and the security issues id 98-004, what are all of the features? <|assistant|> SELECT "features" FROM "table1_2263152_1" WHERE "security_issues"='98-004' AND "distribution_mechanism"='Microsoft website';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2263152_1" ( "version" text, "release_date" text, "distribution_mechanism" text, "features" text, "security_issues" text ); Question: With the distribution mechanism of Microsoft website and the security issues of 98-004, what is the version? <|assistant|> SELECT "version" FROM "table1_2263152_1" WHERE "security_issues"='98-004' AND "distribution_mechanism"='Microsoft website';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2263152_1" ( "version" text, "release_date" text, "distribution_mechanism" text, "features" text, "security_issues" text ); Question: If the security issues is 99-025 and the distribution mechanism is the Microsoft website, what is the release date total number? <|assistant|> SELECT COUNT("release_date") FROM "table1_2263152_1" WHERE "security_issues"='99-025' AND "distribution_mechanism"='Microsoft website';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2263152_1" ( "version" text, "release_date" text, "distribution_mechanism" text, "features" text, "security_issues" text ); Question: With the version of 1.5a, what is the release date? <|assistant|> SELECT "release_date" FROM "table1_2263152_1" WHERE "version"='1.5a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2263152_1" ( "version" text, "release_date" text, "distribution_mechanism" text, "features" text, "security_issues" text ); Question: If the distribution mechanism is windows nt 4.0 option pack Microsoft office 97 and the features is service release, what is the version? <|assistant|> SELECT "version" FROM "table1_2263152_1" WHERE "features"='Service release' AND "distribution_mechanism"='Windows NT 4.0 Option Pack Microsoft Office 97';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2263152_1" ( "version" text, "release_date" text, "distribution_mechanism" text, "features" text, "security_issues" text ); Question: If the version is 1.5b, what is the distribution mechanism? <|assistant|> SELECT "distribution_mechanism" FROM "table1_2263152_1" WHERE "version"='1.5b';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22645714_5" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); Question: How many locations are listed for the winner Temple? <|assistant|> SELECT COUNT("tournament_venue_city") FROM "table1_22645714_5" WHERE "tournament_winner"='Temple';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22645714_5" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); Question: How many locations are listed for the Big 12 Conference? <|assistant|> SELECT COUNT("tournament_venue_city") FROM "table1_22645714_5" WHERE "conference"='Big 12 Conference';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22645714_5" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); Question: Who had the best regular season in the contest won by Arkansas-Pine Bluff? <|assistant|> SELECT "regular_season_winner" FROM "table1_22645714_5" WHERE "tournament_winner"='Arkansas-Pine Bluff';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2263674_1" ( "romanised_name" text, "chinese_name" text, "age_at_appointment" real, "portfolio" text, "prior_occupation" text ); Question: How old was the official with Chinese name 孫明揚? <|assistant|> SELECT "age_at_appointment" FROM "table1_2263674_1" WHERE "chinese_name"='孫明揚';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2263674_1" ( "romanised_name" text, "chinese_name" text, "age_at_appointment" real, "portfolio" text, "prior_occupation" text ); Question: What's 撁愛詩's romanised name? <|assistant|> SELECT "romanised_name" FROM "table1_2263674_1" WHERE "chinese_name"='撁愛詩';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2263674_1" ( "romanised_name" text, "chinese_name" text, "age_at_appointment" real, "portfolio" text, "prior_occupation" text ); Question: What's the romanised name of the official who was Secretary for health, welfare and food? <|assistant|> SELECT "romanised_name" FROM "table1_2263674_1" WHERE "portfolio"='Secretary for Health, Welfare and Food';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2263674_1" ( "romanised_name" text, "chinese_name" text, "age_at_appointment" real, "portfolio" text, "prior_occupation" text ); Question: What was Anthony Leung Kam-Chung previous position? <|assistant|> SELECT "portfolio" FROM "table1_2263674_1" WHERE "romanised_name"='Anthony Leung Kam-chung';<|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, "series" text ); Question: List all high rebound entries from May 11. <|assistant|> SELECT "high_rebounds" FROM "game_log" WHERE "date"='May 11';<|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, "series" text ); Question: How many games were there on May 1? <|assistant|> SELECT COUNT("game") FROM "game_log" WHERE "date"='May 1';<|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, "series" text ); Question: List all high assists in series 2-3. <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "series"='2-3';<|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, "series" text ); Question: How many games were played on May 11? <|assistant|> SELECT COUNT("game") FROM "game_log" WHERE "date"='May 11';<|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: Name the score for chicago bulls <|assistant|> SELECT "score" FROM "game_log" WHERE "team"='Chicago Bulls';<|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: Name the location attendance for 22-8 <|assistant|> SELECT "location_attendance" FROM "game_log" WHERE "record"='22-8';<|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: Name the high points for mo williams , lebron james , j.j. hickson (6) <|assistant|> SELECT COUNT("high_points") FROM "game_log" WHERE "high_rebounds"='Mo Williams , LeBron James , J.J. Hickson (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: Name the high assists for december 13 <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "date"='December 13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22651355_3" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); Question: What value can you find under the column "august 21-22" and the row of June 11, 1983? <|assistant|> SELECT "august_21_22" FROM "table1_22651355_3" WHERE "june_10_11"='June 11, 1983';<|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 was the location and attendance for the game against the team with a 51-15 record with the Cavaliers? <|assistant|> SELECT "location_attendance" FROM "game_log" WHERE "record"='51-15';<|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 scores are associated with a record of 27-9? <|assistant|> SELECT COUNT("score") FROM "game_log" WHERE "record"='27-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: How many games are associated with a record of 29-10? <|assistant|> SELECT COUNT("game") FROM "game_log" WHERE "record"='29-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: Name the team for record 3-2 <|assistant|> SELECT "team" FROM "game_log" WHERE "record"='3-2';<|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: Name the date for lebron james , mo williams (21) <|assistant|> SELECT "date" FROM "game_log" WHERE "high_points"='LeBron James , Mo Williams (21)';<|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: Name the high points for record 9-4 <|assistant|> SELECT "high_points" FROM "game_log" WHERE "record"='9-4';<|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: Name the total number of date for l 85–86 (ot) <|assistant|> SELECT COUNT("date") FROM "game_log" WHERE "score"='L 85–86 (OT)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s" ( "year" real, "network" text, "race_caller" text, "s_host" text, "s_analyst" text, "reporters" text, "trophy_presentation" text ); Question: Name the network for 2007 total <|assistant|> SELECT COUNT("network") FROM "2000s" WHERE "year"=2007;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s" ( "year" real, "network" text, "race_caller" text, "s_host" text, "s_analyst" text, "reporters" text, "trophy_presentation" text ); Question: Name the analysts <|assistant|> SELECT "s_analyst" FROM "2000s";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_8" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "w_l" text, "result" text ); Question: What was the result for a partnering of Frederica Piedade? <|assistant|> SELECT "result" FROM "doubles_8" WHERE "partnering"='Frederica Piedade';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_8" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "w_l" text, "result" text ); Question: Which round has a win-loss result of loss and an edition of 2012 Fed Cup Europe/Africa Group I? <|assistant|> SELECT "round" FROM "doubles_8" WHERE "w_l"='Loss' AND "edition"='2012 Fed Cup Europe/Africa Group I';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2266230_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Name the manufacturer for cale yarborough for 1984 <|assistant|> SELECT "manufacturer" FROM "table1_2266230_1" WHERE "driver"='Cale Yarborough' AND "year"='1984';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2266230_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Name the report for 2003 <|assistant|> SELECT "report" FROM "table1_2266230_1" WHERE "year"='2003';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "district_name" text, "dist_id" real, "isd" text, "county" text, "authorizing_agency" text, "date_opened" text, "services" text ); Question: What is the date opened if thedistrict ID is 11901? <|assistant|> SELECT "date_opened" FROM "a" WHERE "dist_id"=11901;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "district_name" text, "dist_id" real, "isd" text, "county" text, "authorizing_agency" text, "date_opened" text, "services" text ); Question: If the district name is the Academy of Flint, what is the authorizing agency? <|assistant|> SELECT "authorizing_agency" FROM "a" WHERE "district_name"='Academy of Flint';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "district_name" text, "dist_id" real, "isd" text, "county" text, "authorizing_agency" text, "date_opened" text, "services" text ); Question: If the district ID is 74907, what is the name of the district? <|assistant|> SELECT "district_name" FROM "a" WHERE "dist_id"=74907;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "district_name" text, "dist_id" real, "isd" text, "county" text, "authorizing_agency" text, "date_opened" text, "services" text ); Question: If the name of the district is the Charyl Stockwell Academy, what is the county name? <|assistant|> SELECT "county" FROM "a" WHERE "district_name"='Charyl Stockwell Academy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2266976_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Who was the driver in 1986? <|assistant|> SELECT "driver" FROM "table1_2266976_1" WHERE "year"='1986';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2266976_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: When was an average speed of 81.388 mph recorded? <|assistant|> SELECT "date" FROM "table1_2266976_1" WHERE "average_speed_mph"='81.388';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2266976_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Who was the manufacturer in 1990? <|assistant|> SELECT "manufacturer" FROM "table1_2266976_1" WHERE "year"='1990';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2266976_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Who was the manufacturer in the year when the race lasted 2:30:28? <|assistant|> SELECT "manufacturer" FROM "table1_2266976_1" WHERE "race_time"='2:30:28';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2266976_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: What team competed in 2003? <|assistant|> SELECT "team" FROM "table1_2266976_1" WHERE "year"='2003';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2266976_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: How long in miles (km) was the race that lasted 3:07:53? <|assistant|> SELECT "miles_km" FROM "table1_2266976_1" WHERE "race_time"='3:07:53';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "pole_position" text, "winning_driver" text ); Question: Name the race name for june 6 <|assistant|> SELECT "race_name" FROM "schedule_and_results" WHERE "date"='June 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "pole_position" text, "winning_driver" text ); Question: Name the location for trenton 300 <|assistant|> SELECT "location" FROM "schedule_and_results" WHERE "race_name"='Trenton 300';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "pole_position" text, "winning_driver" text ); Question: Name the race name for rnd being 11 <|assistant|> SELECT "race_name" FROM "schedule_and_results" WHERE "rnd"=11;<|endoftext|>