output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MAX("round") FROM "nfl_draft" WHERE "position"='running back';
## Task Generate a SQL query to answer the following question: `Which Round is the highest one that has a Position of running back?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Round is the highest one that has a Position of running back?`: ```sql
SELECT "position" FROM "nfl_draft" WHERE "pick"<29 AND "school_club_team"='arizona';
## Task Generate a SQL query to answer the following question: `Which Position has a Pick smaller than 29, and a School/Club Team of arizona?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Position has a Pick smaller than 29, and a School/Club Team of arizona?`: ```sql
SELECT MIN("round") FROM "nfl_draft" WHERE "school_club_team"='alabama' AND "pick">43;
## Task Generate a SQL query to answer the following question: `Which Round is the lowest one that has a School/Club Team of alabama, and a Pick larger than 43?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Round is the lowest one that has a School/Club Team of alabama, and a Pick larger than 43?`: ```sql
SELECT "venue" FROM "teams_and_venues" WHERE "team"='belshina';
## Task Generate a SQL query to answer the following question: `what is the venue of belshina` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2001" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the venue of belshina`: ```sql
SELECT "venue" FROM "teams_and_venues" WHERE "team"='neman';
## Task Generate a SQL query to answer the following question: `what is the venue of neman` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2001" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the venue of neman`: ```sql
SELECT "venue" FROM "teams_and_venues" WHERE "team"='neman';
## Task Generate a SQL query to answer the following question: `what is the venue of neman` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2001" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the venue of neman`: ```sql
SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "round"<6 AND "overall"=102;
## Task Generate a SQL query to answer the following question: `Name the total number of pick with round less than 6 and overall of 102` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of pick with round less than 6 and overall of 102`: ```sql
SELECT "outcome" FROM "singles_5_2_3" WHERE "score"='4–6 3–6';
## Task Generate a SQL query to answer the following question: `Which Outcome has a Score of 4–6 3–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Outcome has a Score of 4–6 3–6?`: ```sql
SELECT "tournament" FROM "singles_5_2_3" WHERE "score"='3–6 6–4 4–6';
## Task Generate a SQL query to answer the following question: `Which Tournament has a Score of 3–6 6–4 4–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Tournament has a Score of 3–6 6–4 4–6?`: ```sql
SELECT "date" FROM "singles_5_2_3" WHERE "score"='6–1 7–6 (8–6)';
## Task Generate a SQL query to answer the following question: `Which Date has a Score of 6–1 7–6 (8–6)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a Score of 6–1 7–6 (8–6)?`: ```sql
SELECT "score" FROM "singles_5_2_3" WHERE "date"='26 september 2004';
## Task Generate a SQL query to answer the following question: `Which Score has a Date of 26 september 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Score has a Date of 26 september 2004?`: ```sql
SELECT "outcome" FROM "singles_5_2_3" WHERE "score"='3–6 2–6';
## Task Generate a SQL query to answer the following question: `Which Outcome has a Score of 3–6 2–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Outcome has a Score of 3–6 2–6?`: ```sql
SELECT "surface" FROM "singles_5_2_3" WHERE "opponent_in_the_final"='daniella dominikovic';
## Task Generate a SQL query to answer the following question: `Which Surface has an Opponent in the final of daniella dominikovic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Surface has an Opponent in the final of daniella dominikovic?`: ```sql
SELECT COUNT("time_to_ft_m_at_40_seconds") FROM "performance" WHERE "shell_lb"=16 AND "max_height_ft"<'22,000';
## Task Generate a SQL query to answer the following question: `What is the amount of time (sum) at 40Β° that it takes a 16 lb shell to reach a maximum of no more than 22,000 ft?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance" ( "m_v_ft_s" real, "shell_lb" real, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" real, "time_to_ft_m_at_55_seconds" real, "max_height_ft" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the amount of time (sum) at 40Β° that it takes a 16 lb shell to reach a maximum of no more than 22,000 ft?`: ```sql
SELECT AVG("max_height_ft") FROM "performance" WHERE "time_to_ft_m_at_55_seconds">16.3 AND "m_v_ft_s"=2200;
## Task Generate a SQL query to answer the following question: `What is the average maximum height of a shell that travels for more than 16.3 seconds at 55Β° and has a maximum velocity of 2200 ft/s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance" ( "m_v_ft_s" real, "shell_lb" real, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" real, "time_to_ft_m_at_55_seconds" real, "max_height_ft" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average maximum height of a shell that travels for more than 16.3 seconds at 55Β° and has a maximum velocity of 2200 ft/s?`: ```sql
SELECT MAX("time_to_ft_m_at_55_seconds") FROM "performance" WHERE "time_to_ft_m_at_40_seconds"<9.6;
## Task Generate a SQL query to answer the following question: `What is the maximum amount of time a shell travels at 55Β° when it traveled less than 9.6 seconds at 40Β°?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance" ( "m_v_ft_s" real, "shell_lb" real, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" real, "time_to_ft_m_at_55_seconds" real, "max_height_ft" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum amount of time a shell travels at 55Β° when it traveled less than 9.6 seconds at 40Β°?`: ```sql
SELECT "shell_lb" FROM "performance" WHERE "time_to_ft_m_at_40_seconds"=12.6;
## Task Generate a SQL query to answer the following question: `What is the weight of the shell that reached its maximum height at 40Β° in 12.6 seconds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance" ( "m_v_ft_s" real, "shell_lb" real, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" real, "time_to_ft_m_at_55_seconds" real, "max_height_ft" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the weight of the shell that reached its maximum height at 40Β° in 12.6 seconds?`: ```sql
SELECT AVG("max_height_ft") FROM "performance" WHERE "time_to_ft_m_at_25_seconds"='10.1' AND "shell_lb"<12.5;
## Task Generate a SQL query to answer the following question: `What is the average maximum height of the shell smaller than 12.5 lb that reached its maximum height at 25Β° in 10.1 seconds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance" ( "m_v_ft_s" real, "shell_lb" real, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" real, "time_to_ft_m_at_55_seconds" real, "max_height_ft" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average maximum height of the shell smaller than 12.5 lb that reached its maximum height at 25Β° in 10.1 seconds?`: ```sql
SELECT MAX("attendance") FROM "schedule" WHERE "date"='october 22, 1967' AND "week"<6;
## Task Generate a SQL query to answer the following question: `What is the highest attendance for the game that was before week 6 on October 22, 1967?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest attendance for the game that was before week 6 on October 22, 1967?`: ```sql
SELECT "state" FROM "delegates" WHERE "talent"='classical piano' AND "hometown"='lancaster, ny';
## Task Generate a SQL query to answer the following question: `What is the state having a contestant with a talent of classical piano and a hometown from Lancaster, NY?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "delegates" ( "state" text, "name" text, "hometown" text, "age_1" real, "talent" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the state having a contestant with a talent of classical piano and a hometown from Lancaster, NY?`: ```sql
SELECT "name" FROM "delegates" WHERE "talent"='ballet en pointe';
## Task Generate a SQL query to answer the following question: `Whose talent was ballet en pointe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "delegates" ( "state" text, "name" text, "hometown" text, "age_1" real, "talent" text ); ### SQL Given the database schema, here is the SQL query that answers `Whose talent was ballet en pointe?`: ```sql
SELECT "state" FROM "delegates" WHERE "hometown"='mesa, az';
## Task Generate a SQL query to answer the following question: `What is the state represented by the contestant from Mesa, AZ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "delegates" ( "state" text, "name" text, "hometown" text, "age_1" real, "talent" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the state represented by the contestant from Mesa, AZ?`: ```sql
SELECT "talent" FROM "delegates" WHERE "hometown"='lexington, sc';
## Task Generate a SQL query to answer the following question: `What is the talent of the contestant from Lexington, SC?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "delegates" ( "state" text, "name" text, "hometown" text, "age_1" real, "talent" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the talent of the contestant from Lexington, SC?`: ```sql
SELECT "age_1" FROM "delegates" WHERE "hometown"='reno, nv';
## Task Generate a SQL query to answer the following question: `What is the age of the contestant from Reno, NV?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "delegates" ( "state" text, "name" text, "hometown" text, "age_1" real, "talent" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the age of the contestant from Reno, NV?`: ```sql
SELECT "writer_s" FROM "season_18_1954" WHERE "episode"='18-09 (652)';
## Task Generate a SQL query to answer the following question: `Which writer wrote episode 18-09 (652)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_18_1954" ( "episode" text, "title" text, "writer_s" text, "preservation" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `Which writer wrote episode 18-09 (652)?`: ```sql
SELECT "episode" FROM "season_18_1954" WHERE "writer_s"='jonathan lewis';
## Task Generate a SQL query to answer the following question: `What episode was written by jonathan lewis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_18_1954" ( "episode" text, "title" text, "writer_s" text, "preservation" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode was written by jonathan lewis?`: ```sql
SELECT "position" FROM "nfl_draft" WHERE "school_club_team"='maryland' AND "round"=3;
## Task Generate a SQL query to answer the following question: `What position does Maryland have a player for Round 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What position does Maryland have a player for Round 3?`: ```sql
SELECT COUNT("pick") FROM "nfl_draft" WHERE "position"='defensive back' AND "round">11;
## Task Generate a SQL query to answer the following question: `How many picks are there for defensive back for rounds larger than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `How many picks are there for defensive back for rounds larger than 11?`: ```sql
SELECT MAX("game") FROM "playoffs" WHERE "date"='april 21';
## Task Generate a SQL query to answer the following question: `What is the highest game that has april 21 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest game that has april 21 as the date?`: ```sql
SELECT "score" FROM "playoffs" WHERE "game"<4 AND "date"='april 19';
## Task Generate a SQL query to answer the following question: `What score has a game less than 4, and april 19 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What score has a game less than 4, and april 19 as the date?`: ```sql
SELECT "opponent" FROM "playoffs" WHERE "game"<6 AND "date"='april 17';
## Task Generate a SQL query to answer the following question: `What opponent has a game less than 6, and april 17 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What opponent has a game less than 6, and april 17 as the date?`: ```sql
SELECT "home_team" FROM "fifth_round" WHERE "away_team"='derby county';
## Task Generate a SQL query to answer the following question: `What is the home team that played Derby County as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home team that played Derby County as the away team?`: ```sql
SELECT "home_team" FROM "fifth_round" WHERE "tie_no"='7';
## Task Generate a SQL query to answer the following question: `Which home team is ranked no. 7 by tie no.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which home team is ranked no. 7 by tie no.?`: ```sql
SELECT "score" FROM "fifth_round" WHERE "home_team"='manchester united';
## Task Generate a SQL query to answer the following question: `What is the score for the game in which Manchester United was the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score for the game in which Manchester United was the home team?`: ```sql
SELECT COUNT("gold") FROM "medal_table" WHERE "bronze"<5 AND "silver">1 AND "rank">8;
## Task Generate a SQL query to answer the following question: `How many golds does the nation having a rank of 8, fewer than 5 bronzes and more than 1 silver have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many golds does the nation having a rank of 8, fewer than 5 bronzes and more than 1 silver have?`: ```sql
SELECT "country" FROM "award_winners" WHERE "language_s"='english' AND "literary_tradition"='canadian literature';
## Task Generate a SQL query to answer the following question: `What nation was the film from that was in english and had a Literary tradition of canadian literature?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "award_winners" ( "year" real, "name" text, "country" text, "language_s" text, "literary_tradition" text ); ### SQL Given the database schema, here is the SQL query that answers `What nation was the film from that was in english and had a Literary tradition of canadian literature?`: ```sql
SELECT "literary_tradition" FROM "award_winners" WHERE "language_s"='english' AND "year"=2011;
## Task Generate a SQL query to answer the following question: `What is the literary traidtion for the film in english in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "award_winners" ( "year" real, "name" text, "country" text, "language_s" text, "literary_tradition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the literary traidtion for the film in english in 2011?`: ```sql
SELECT "country" FROM "award_winners" WHERE "year">2011;
## Task Generate a SQL query to answer the following question: `What country was the film made in that was made after 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "award_winners" ( "year" real, "name" text, "country" text, "language_s" text, "literary_tradition" text ); ### SQL Given the database schema, here is the SQL query that answers `What country was the film made in that was made after 2011?`: ```sql
SELECT "team" FROM "rebounds" WHERE "rebounds"=48;
## Task Generate a SQL query to answer the following question: `Which team has 48 rebounds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); ### SQL Given the database schema, here is the SQL query that answers `Which team has 48 rebounds?`: ```sql
SELECT MIN("rank") FROM "rebounds" WHERE "games"=12 AND "rebounds"<48;
## Task Generate a SQL query to answer the following question: `What's the lowest amount of 12 games and less than 48 rebounds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the lowest amount of 12 games and less than 48 rebounds?`: ```sql
SELECT SUM("rebounds") FROM "rebounds" WHERE "name"='fedor likholitov' AND "rank">8;
## Task Generate a SQL query to answer the following question: `How many rebounds does Fedor likholitov have with a rank greater than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); ### SQL Given the database schema, here is the SQL query that answers `How many rebounds does Fedor likholitov have with a rank greater than 8?`: ```sql
SELECT MAX("games") FROM "rebounds" WHERE "rank">3 AND "rebounds"=112;
## Task Generate a SQL query to answer the following question: `Which game has more than 112 rebounds and a rank greater than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); ### SQL Given the database schema, here is the SQL query that answers `Which game has more than 112 rebounds and a rank greater than 3?`: ```sql
SELECT "score" FROM "final_leaderboard" WHERE "place"='t5' AND "nation"='united states';
## Task Generate a SQL query to answer the following question: `What was the score in a place of t5 in the United States?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "nation" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the score in a place of t5 in the United States?`: ```sql
SELECT "to_par" FROM "final_leaderboard" WHERE "money">'122,591' AND "nation"='sweden' AND "player"='annika sΓΆrenstam';
## Task Generate a SQL query to answer the following question: `What is the to par that has more than $122,591 in Sweden and had Annika SΓΆrenstam play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "nation" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the to par that has more than $122,591 in Sweden and had Annika SΓΆrenstam play?`: ```sql
SELECT "score" FROM "final_leaderboard" WHERE "player"='sophie gustafson';
## Task Generate a SQL query to answer the following question: `What was the score for a match where Sophie Gustafson played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "nation" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the score for a match where Sophie Gustafson played?`: ```sql
SELECT SUM("rebounds") FROM "rebounds" WHERE "games">22;
## Task Generate a SQL query to answer the following question: `with games more than 22 what is the rebound total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); ### SQL Given the database schema, here is the SQL query that answers `with games more than 22 what is the rebound total?`: ```sql
SELECT "location" FROM "tournament_results" WHERE "tournament"='b.c. open';
## Task Generate a SQL query to answer the following question: `What is the location of the b.c. open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location of the b.c. open?`: ```sql
SELECT "location" FROM "tournament_results" WHERE "score"='269 (–19)' AND "tournament"='tallahassee open';
## Task Generate a SQL query to answer the following question: `What is the location of the tallahassee open, with a Score of 269 (–19)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location of the tallahassee open, with a Score of 269 (–19)?`: ```sql
SELECT "date" FROM "tournament_results" WHERE "winner"='lanny wadkins (6)';
## Task Generate a SQL query to answer the following question: `What date did Lanny Wadkins (6) win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did Lanny Wadkins (6) win?`: ```sql
SELECT "location" FROM "tournament_results" WHERE "tournament"='buick-goodwrench open';
## Task Generate a SQL query to answer the following question: `What is the Location for the buick-goodwrench open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Location for the buick-goodwrench open?`: ```sql
SELECT "netflix" FROM "season_6_2005_2006" WHERE "series_ep"='6-02';
## Task Generate a SQL query to answer the following question: `What is the Netflix episode that has a series episode of 6-02?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_6_2005_2006" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Netflix episode that has a series episode of 6-02?`: ```sql
SELECT "segment_a" FROM "season_6_2005_2006" WHERE "segment_d"='wigs';
## Task Generate a SQL query to answer the following question: `Which segment A item that has a Segment D of wigs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_6_2005_2006" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); ### SQL Given the database schema, here is the SQL query that answers `Which segment A item that has a Segment D of wigs?`: ```sql
SELECT "series_ep" FROM "season_6_2005_2006" WHERE "netflix"='s03e16';
## Task Generate a SQL query to answer the following question: `Which series episode has a Netflix episode of S03E16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_6_2005_2006" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); ### SQL Given the database schema, here is the SQL query that answers `Which series episode has a Netflix episode of S03E16?`: ```sql
SELECT "netflix" FROM "season_6_2005_2006" WHERE "episode"<69 AND "segment_d"='s trombone';
## Task Generate a SQL query to answer the following question: `Which Netflix episode has an overall episode number under 69 and a Segment D of S Trombone?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_6_2005_2006" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Netflix episode has an overall episode number under 69 and a Segment D of S Trombone?`: ```sql
SELECT "species_specific" FROM "inter_molecular_interactions_micro_rna_u" WHERE "comparative"='no' AND "intra_molecular_structure"='no' AND "link"='sourcecode';
## Task Generate a SQL query to answer the following question: `Which Species Specific has a Comparative of no, and an Intra-molecular structure of no, and a Link of sourcecode?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inter_molecular_interactions_micro_rna_u" ( "name" text, "species_specific" text, "intra_molecular_structure" text, "comparative" text, "link" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Species Specific has a Comparative of no, and an Intra-molecular structure of no, and a Link of sourcecode?`: ```sql
SELECT "intra_molecular_structure" FROM "inter_molecular_interactions_micro_rna_u" WHERE "comparative"='no' AND "name"='mitarget';
## Task Generate a SQL query to answer the following question: `Which Intra-molecular structure has a Comparative of no, and a Name of mitarget?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inter_molecular_interactions_micro_rna_u" ( "name" text, "species_specific" text, "intra_molecular_structure" text, "comparative" text, "link" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Intra-molecular structure has a Comparative of no, and a Name of mitarget?`: ```sql
SELECT "comparative" FROM "inter_molecular_interactions_micro_rna_u" WHERE "name"='pictar';
## Task Generate a SQL query to answer the following question: `Which Comparative has a Name of pictar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inter_molecular_interactions_micro_rna_u" ( "name" text, "species_specific" text, "intra_molecular_structure" text, "comparative" text, "link" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Comparative has a Name of pictar?`: ```sql
SELECT "name" FROM "inter_molecular_interactions_micro_rna_u" WHERE "intra_molecular_structure"='no' AND "link"='webserver' AND "comparative"='no';
## Task Generate a SQL query to answer the following question: `Which Name has an Intra-molecular structure of no, and a Link of webserver, and a Comparative of no?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inter_molecular_interactions_micro_rna_u" ( "name" text, "species_specific" text, "intra_molecular_structure" text, "comparative" text, "link" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Name has an Intra-molecular structure of no, and a Link of webserver, and a Comparative of no?`: ```sql
SELECT "comparative" FROM "inter_molecular_interactions_micro_rna_u" WHERE "link"='sourcecode webserver';
## Task Generate a SQL query to answer the following question: `Which Comparative has a Link of sourcecode webserver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inter_molecular_interactions_micro_rna_u" ( "name" text, "species_specific" text, "intra_molecular_structure" text, "comparative" text, "link" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Comparative has a Link of sourcecode webserver?`: ```sql
SELECT "species_specific" FROM "inter_molecular_interactions_micro_rna_u" WHERE "link"='server/sourcecode';
## Task Generate a SQL query to answer the following question: `Which Species Specific has a Link of server/sourcecode?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "inter_molecular_interactions_micro_rna_u" ( "name" text, "species_specific" text, "intra_molecular_structure" text, "comparative" text, "link" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Species Specific has a Link of server/sourcecode?`: ```sql
SELECT "1st_leg" FROM "losers_knockout" WHERE "home_2nd_leg"='instituto';
## Task Generate a SQL query to answer the following question: `What is the 1st leg for Instituto?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "losers_knockout" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1st leg for Instituto?`: ```sql
SELECT "aggregate" FROM "losers_knockout" WHERE "1st_leg"='2-1' AND "home_1st_leg"='belgrano';
## Task Generate a SQL query to answer the following question: `What Aggregate has a 2-1 1st leg, and is from Belgrano?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "losers_knockout" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); ### SQL Given the database schema, here is the SQL query that answers `What Aggregate has a 2-1 1st leg, and is from Belgrano?`: ```sql
SELECT "aggregate" FROM "losers_knockout" WHERE "1st_leg"='0-0' AND "2nd_leg"='0-1';
## Task Generate a SQL query to answer the following question: `What Aggregate has a 0-0 1st leg, and a 0-1 second leg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "losers_knockout" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); ### SQL Given the database schema, here is the SQL query that answers `What Aggregate has a 0-0 1st leg, and a 0-1 second leg?`: ```sql
SELECT "aggregate" FROM "losers_knockout" WHERE "1st_leg"='0-0' AND "home_2nd_leg"='instituto';
## Task Generate a SQL query to answer the following question: `What aggregate has a 0-0 1st leg, and is from Instituto?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "losers_knockout" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); ### SQL Given the database schema, here is the SQL query that answers `What aggregate has a 0-0 1st leg, and is from Instituto?`: ```sql
SELECT "home_2nd_leg" FROM "losers_knockout" WHERE "aggregate"='3-4';
## Task Generate a SQL query to answer the following question: `What is the home of aggregate's 3-4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "losers_knockout" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home of aggregate's 3-4?`: ```sql
SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='sofia bagherdai';
## Task Generate a SQL query to answer the following question: `What round did the fight against Sofia Bagherdai go to?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What round did the fight against Sofia Bagherdai go to?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='mars: attack 1';
## Task Generate a SQL query to answer the following question: `What was the method of fight completion for the Mars: Attack 1 event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the method of fight completion for the Mars: Attack 1 event?`: ```sql
SELECT "country" FROM "final_leaderboard" WHERE "score"='70-71-68-72=281';
## Task Generate a SQL query to answer the following question: `what had a score of 70-71-68-72=281?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `what had a score of 70-71-68-72=281?`: ```sql
SELECT "score" FROM "final_leaderboard" WHERE "player"='roberto devicenzo';
## Task Generate a SQL query to answer the following question: `what had a score like roberto devicenzo` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `what had a score like roberto devicenzo`: ```sql
SELECT COUNT("attendance") FROM "schedule" WHERE "week"=11;
## Task Generate a SQL query to answer the following question: `What was the total number who attended during week 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the total number who attended during week 11?`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "result"='l 31-21';
## Task Generate a SQL query to answer the following question: `What was the total number of weeks with a result of l 31-21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the total number of weeks with a result of l 31-21?`: ```sql
SELECT AVG("week") FROM "schedule" WHERE "attendance">'12,985' AND "result"='w 38-14';
## Task Generate a SQL query to answer the following question: `What was the average week of a game attended by 12,985 with a result of W 38-14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the average week of a game attended by 12,985 with a result of W 38-14?`: ```sql
SELECT "2003" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2012"='1–4';
## Task Generate a SQL query to answer the following question: `Which 2003 has a 2012 of 1–4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "career_sr" text, "career_win_loss" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2003 has a 2012 of 1–4?`: ```sql
SELECT "2007" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2008"='0 / 4';
## Task Generate a SQL query to answer the following question: `Which 2007 has a 2008 of 0 / 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "career_sr" text, "career_win_loss" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2007 has a 2008 of 0 / 4?`: ```sql
SELECT "2007" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2003"='2r' AND "2004"='1r';
## Task Generate a SQL query to answer the following question: `Which 2007 has a 2003 of 2r, and a 2004 of 1r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "career_sr" text, "career_win_loss" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2007 has a 2003 of 2r, and a 2004 of 1r?`: ```sql
SELECT "2010" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2009"='0 / 4';
## Task Generate a SQL query to answer the following question: `Which 2010 has a 2009 of 0 / 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "career_sr" text, "career_win_loss" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2010 has a 2009 of 0 / 4?`: ```sql
SELECT "2011" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "1999"='a' AND "2004"='2r' AND "career_sr"='0 / 10';
## Task Generate a SQL query to answer the following question: `Which 2011 has a 1999 of A, and a 2004 of 2r, and a Career SR of 0 / 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "career_sr" text, "career_win_loss" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2011 has a 1999 of A, and a 2004 of 2r, and a Career SR of 0 / 10?`: ```sql
SELECT "2005" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "1999"='0–0';
## Task Generate a SQL query to answer the following question: `Which 2005 has a 1999 of 0–0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "career_sr" text, "career_win_loss" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2005 has a 1999 of 0–0?`: ```sql
SELECT "date" FROM "schedule" WHERE "week"=7;
## Task Generate a SQL query to answer the following question: `what is the date of week 7` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the date of week 7`: ```sql
SELECT "visitor" FROM "march" WHERE "record"='39-20-6';
## Task Generate a SQL query to answer the following question: `Who was the visitor in the game that led to a 39-20-6 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the visitor in the game that led to a 39-20-6 record?`: ```sql
SELECT "date" FROM "march" WHERE "record"='48-21-6';
## Task Generate a SQL query to answer the following question: `What was the date of the game that led to a 48-21-6 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game that led to a 48-21-6 record?`: ```sql
SELECT AVG("attendance") FROM "playoffs" WHERE "date"='june 11';
## Task Generate a SQL query to answer the following question: `Name the average attendance from june 11` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the average attendance from june 11`: ```sql
SELECT "margin_of_victory" FROM "winners_and_honorees" WHERE "country"='south africa';
## Task Generate a SQL query to answer the following question: `What is south africa's margin of victory?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_and_honorees" ( "year" real, "player" text, "country" text, "score" text, "margin_of_victory" text, "winner_s_share" real ); ### SQL Given the database schema, here is the SQL query that answers `What is south africa's margin of victory?`: ```sql
SELECT "score" FROM "winners_and_honorees" WHERE "year">1980 AND "margin_of_victory"='2 strokes' AND "country"='united states' AND "player"='jim furyk';
## Task Generate a SQL query to answer the following question: `Which Score has a Year larger than 1980, and a Margin of victory of 2 strokes, and a Country of united states, and a Player of jim furyk?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_and_honorees" ( "year" real, "player" text, "country" text, "score" text, "margin_of_victory" text, "winner_s_share" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Score has a Year larger than 1980, and a Margin of victory of 2 strokes, and a Country of united states, and a Player of jim furyk?`: ```sql
SELECT AVG("winner_s_share") FROM "winners_and_honorees" WHERE "score"='281 (βˆ’7)' AND "player"='hale irwin' AND "year"<1983;
## Task Generate a SQL query to answer the following question: `Which average Winner's share ($) has a Score of 281 (βˆ’7), and a Player of hale irwin, and a Year smaller than 1983?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_and_honorees" ( "year" real, "player" text, "country" text, "score" text, "margin_of_victory" text, "winner_s_share" real ); ### SQL Given the database schema, here is the SQL query that answers `Which average Winner's share ($) has a Score of 281 (βˆ’7), and a Player of hale irwin, and a Year smaller than 1983?`: ```sql
SELECT MAX("season") FROM "champions" WHERE "team_champion"='barwa international campos team';
## Task Generate a SQL query to answer the following question: `What was the highest season with Barwa International Campos Team as champion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions" ( "season" real, "champion" text, "second" text, "third" text, "team_champion" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest season with Barwa International Campos Team as champion?`: ```sql
SELECT "third" FROM "champions" WHERE "team_champion"='barwa international campos team';
## Task Generate a SQL query to answer the following question: `Who was third in Barwa International Campos Team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions" ( "season" real, "champion" text, "second" text, "third" text, "team_champion" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was third in Barwa International Campos Team?`: ```sql
SELECT "founded" FROM "clubs" WHERE "suburb"='beaudesert';
## Task Generate a SQL query to answer the following question: `What year was the Beaudesert suburb club founded` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "clubs" ( "club" text, "founded" real, "homeground" text, "suburb" text, "seniors" text, "juniors" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was the Beaudesert suburb club founded`: ```sql
SELECT COUNT("founded") FROM "clubs" WHERE "suburb"='nerang';
## Task Generate a SQL query to answer the following question: `What year did the Nerang Suburb get founded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "clubs" ( "club" text, "founded" real, "homeground" text, "suburb" text, "seniors" text, "juniors" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did the Nerang Suburb get founded?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "date"='april 28';
## Task Generate a SQL query to answer the following question: `Who was the opponent when the Phillies played on April 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent when the Phillies played on April 28?`: ```sql
SELECT MAX("run_rate") FROM "highest_team_totals_in_tests" WHERE "rank"=4;
## Task Generate a SQL query to answer the following question: `What is the run rate for rank 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_team_totals_in_tests" ( "rank" real, "score" text, "overs" real, "run_rate" real, "innings" real, "date" text, "test_no" real, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the run rate for rank 4?`: ```sql
SELECT "released" FROM "studio_albums" WHERE "chinese_title"='反正 卓文萱';
## Task Generate a SQL query to answer the following question: `Chinese title of 反正 卓文萱 had what released?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_title" text, "released" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `Chinese title of 反正 卓文萱 had what released?`: ```sql
SELECT "chinese_title" FROM "studio_albums" WHERE "albumnum"='5th';
## Task Generate a SQL query to answer the following question: `Album # of 5th is what chinese title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_title" text, "released" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `Album # of 5th is what chinese title?`: ```sql
SELECT "released" FROM "studio_albums" WHERE "albumnum"='1st';
## Task Generate a SQL query to answer the following question: `Album # of 1st was released on what date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_title" text, "released" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `Album # of 1st was released on what date?`: ```sql
SELECT "chinese_title" FROM "studio_albums" WHERE "albumnum"='3rd';
## Task Generate a SQL query to answer the following question: `Album # of 3rd is what chinese title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_title" text, "released" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `Album # of 3rd is what chinese title?`: ```sql
SELECT "released" FROM "studio_albums" WHERE "english_title"='oxygenie of happiness';
## Task Generate a SQL query to answer the following question: `English title of oxygenie of happiness has what release date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_title" text, "released" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `English title of oxygenie of happiness has what release date?`: ```sql
SELECT "score" FROM "trades" WHERE "home"='quebec nordiques' AND "date"='april 16';
## Task Generate a SQL query to answer the following question: `Which Score has a Home of quebec nordiques on april 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trades" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Score has a Home of quebec nordiques on april 16?`: ```sql
SELECT "record" FROM "trades" WHERE "visitor"='quebec nordiques' AND "score"='7–5';
## Task Generate a SQL query to answer the following question: `WHich Record has a Visitor of quebec nordiques with a Score of 7–5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trades" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `WHich Record has a Visitor of quebec nordiques with a Score of 7–5?`: ```sql
SELECT "visitor" FROM "trades" WHERE "date"='april 8';
## Task Generate a SQL query to answer the following question: `Who is the Visitor on april 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trades" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Visitor on april 8?`: ```sql
SELECT "date" FROM "trades" WHERE "score"='4–5' AND "visitor"='quebec nordiques';
## Task Generate a SQL query to answer the following question: `When has Score of 4–5 and quebec nordiques as Visitor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trades" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `When has Score of 4–5 and quebec nordiques as Visitor?`: ```sql