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