output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "result" FROM "international_goals" WHERE "date"='february 18, 2003';
## Task Generate a SQL query to answer the following question: `What was the result on February 18, 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result on February 18, 2003?`: ```sql
SELECT "commissioned" FROM "ships_of_the_class" WHERE "fate"='converted to laker, 1961; still in service';
## Task Generate a SQL query to answer the following question: `When was the ship that had a fate of 'converted to laker, 1961; still in service' commissioned?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_of_the_class" ( "name" text, "original_name" text, "commissioned" text, "final_decommission" text, "fate" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the ship that had a fate of 'converted to laker, 1961; still in service' commissioned?`: ```sql
SELECT "final_decommission" FROM "ships_of_the_class" WHERE "original_name"='sachem';
## Task Generate a SQL query to answer the following question: `When was the ship originally named sachem finally decommissioned?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_of_the_class" ( "name" text, "original_name" text, "commissioned" text, "final_decommission" text, "fate" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the ship originally named sachem finally decommissioned?`: ```sql
SELECT "date" FROM "round_13" WHERE "home_team_score"='12.18 (90)';
## Task Generate a SQL query to answer the following question: `When did the home team score 12.18 (90)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the home team score 12.18 (90)?`: ```sql
SELECT "away_team_score" FROM "round_13" WHERE "home_team"='richmond';
## Task Generate a SQL query to answer the following question: `What did the away team score in the game against Richmond?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the away team score in the game against Richmond?`: ```sql
SELECT "player" FROM "list_of_ireland_cricket_captains" WHERE "no_result"=0 AND "tied">0;
## Task Generate a SQL query to answer the following question: `Which player has no 0 results and multiples ties?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_ireland_cricket_captains" ( "player" text, "dates_of_captaincy" text, "lost" real, "tied" real, "no_result" real, "pct_win_a" real ); ### SQL Given the database schema, here is the SQL query that answers `Which player has no 0 results and multiples ties?`: ```sql
SELECT MIN("no_result") FROM "list_of_ireland_cricket_captains" WHERE "lost">5 AND "pct_win_a"<58.06;
## Task Generate a SQL query to answer the following question: `What is the low no result with more than 5 loss and a win ration lesser than 58.06?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_ireland_cricket_captains" ( "player" text, "dates_of_captaincy" text, "lost" real, "tied" real, "no_result" real, "pct_win_a" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the low no result with more than 5 loss and a win ration lesser than 58.06?`: ```sql
SELECT "crowd" FROM "round_20" WHERE "away_team_score"='17.8 (110)';
## Task Generate a SQL query to answer the following question: `Which Crowd has an Away team score of 17.8 (110)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Crowd has an Away team score of 17.8 (110)?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "date"='may 12';
## Task Generate a SQL query to answer the following question: `Name the opponent for may 12` ### 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, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the opponent for may 12`: ```sql
SELECT "date" FROM "game_log" WHERE "loss"='schilling (5–2)';
## Task Generate a SQL query to answer the following question: `Name the date for Loss of schilling (5–2)` ### 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, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date for Loss of schilling (5–2)`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='may 31';
## Task Generate a SQL query to answer the following question: `Name the record for may 31` ### 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, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record for may 31`: ```sql
SELECT MAX("average") FROM "preliminary_competition" WHERE "interview"=8.46;
## Task Generate a SQL query to answer the following question: `What was the highest average for the contestant having an interview score of 8.46?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest average for the contestant having an interview score of 8.46?`: ```sql
SELECT "date" FROM "nascar" WHERE "time"='29.816';
## Task Generate a SQL query to answer the following question: `What day had a time of 29.816?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar" ( "record" text, "year" text, "date" text, "driver" text, "car_make" text, "time" text, "average_speed_mph" text ); ### SQL Given the database schema, here is the SQL query that answers `What day had a time of 29.816?`: ```sql
SELECT "car_make" FROM "nascar" WHERE "record"='nascar camping world truck series';
## Task Generate a SQL query to answer the following question: `What kind of car has the NASCAR Camping World Truck Series record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar" ( "record" text, "year" text, "date" text, "driver" text, "car_make" text, "time" text, "average_speed_mph" text ); ### SQL Given the database schema, here is the SQL query that answers `What kind of car has the NASCAR Camping World Truck Series record?`: ```sql
SELECT "home" FROM "game_log" WHERE "date"='april 6';
## Task Generate a SQL query to answer the following question: `Was it a home game on the date of April 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Was it a home game on the date of April 6?`: ```sql
SELECT "date" FROM "game_log" WHERE "home"='dallas';
## Task Generate a SQL query to answer the following question: `What was the date when the home team was Dallas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "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 when the home team was Dallas?`: ```sql
SELECT MAX("pick_num") FROM "round_two" WHERE "player"='rhett mclane';
## Task Generate a SQL query to answer the following question: `What is Rhett Mclane's highest pick number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Rhett Mclane's highest pick number?`: ```sql
SELECT MIN("pick_num") FROM "round_two" WHERE "college"='colorado';
## Task Generate a SQL query to answer the following question: `What is Colorado College's lowest pick number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Colorado College's lowest pick number?`: ```sql
SELECT "player" FROM "round_two" WHERE "college"='northwestern';
## Task Generate a SQL query to answer the following question: `What player belongs to Northwestern College?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What player belongs to Northwestern College?`: ```sql
SELECT "cfl_team" FROM "round_two" WHERE "player"='pascal masson';
## Task Generate a SQL query to answer the following question: `What CFL Team is Pascal Masson on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What CFL Team is Pascal Masson on?`: ```sql
SELECT "number_name" FROM "operational" WHERE "date">1954;
## Task Generate a SQL query to answer the following question: `What's the number & name for the date after 1954?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "operational" ( "number_name" text, "description" text, "livery" text, "owner_s" text, "date" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the number & name for the date after 1954?`: ```sql
SELECT "date" FROM "operational" WHERE "owner_s"='princess royal class locomotive trust';
## Task Generate a SQL query to answer the following question: `What's the date for princess royal class locomotive trust?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "operational" ( "number_name" text, "description" text, "livery" text, "owner_s" text, "date" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the date for princess royal class locomotive trust?`: ```sql
SELECT "number_name" FROM "operational" WHERE "description"='peckett 0-4-0st';
## Task Generate a SQL query to answer the following question: `What's the number & name for the description peckett 0-4-0st?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "operational" ( "number_name" text, "description" text, "livery" text, "owner_s" text, "date" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the number & name for the description peckett 0-4-0st?`: ```sql
SELECT "number_name" FROM "operational" WHERE "description"='lms fowler class 3f 0-6-0t';
## Task Generate a SQL query to answer the following question: `What's the number & name for a description of lms fowler class 3f 0-6-0t?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "operational" ( "number_name" text, "description" text, "livery" text, "owner_s" text, "date" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the number & name for a description of lms fowler class 3f 0-6-0t?`: ```sql
SELECT "date" FROM "2000s_packers_12_8" WHERE "location"='green bay' AND "winner"='green bay packers' AND "attendance">'70,920';
## Task Generate a SQL query to answer the following question: `When did the green bay packers win at green bay with an attendance over 70,920?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s_packers_12_8" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "attendance" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the green bay packers win at green bay with an attendance over 70,920?`: ```sql
SELECT "driver" FROM "classification" WHERE "laps"=74 AND "grid">9;
## Task Generate a SQL query to answer the following question: `Who drive 74 laps in a grid larger than 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Who drive 74 laps in a grid larger than 9?`: ```sql
SELECT "player" FROM "r" WHERE "school_club_team_country"='st. mary''s';
## Task Generate a SQL query to answer the following question: `Who is the player for St. Mary's team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the player for St. Mary's team?`: ```sql
SELECT "height_in_ft" FROM "r" WHERE "school_club_team_country"='mississippi';
## Task Generate a SQL query to answer the following question: `How tall is the player from Mississippi` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); ### SQL Given the database schema, here is the SQL query that answers `How tall is the player from Mississippi`: ```sql
SELECT "no_s" FROM "r" WHERE "school_club_team_country"='centenary';
## Task Generate a SQL query to answer the following question: `What is the player number for the player from Centenary?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the player number for the player from Centenary?`: ```sql
SELECT "height_in_ft" FROM "r" WHERE "no_s"='42' AND "school_club_team_country"='long beach state';
## Task Generate a SQL query to answer the following question: `How tall is player 42 from Long Beach State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text ); ### SQL Given the database schema, here is the SQL query that answers `How tall is player 42 from Long Beach State?`: ```sql
SELECT "network" FROM "early_cbs_and_abc_s_era_1959_1978" WHERE "lap_by_lap"='bill flemming' AND "pit_reporters"='chris economaki';
## Task Generate a SQL query to answer the following question: `What network has lap-by-laps by Bill Flemming, and Pit reporter Chris Economaki?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "early_cbs_and_abc_s_era_1959_1978" ( "year" real, "network" text, "lap_by_lap" text, "pit_reporters" text, "host" text ); ### SQL Given the database schema, here is the SQL query that answers `What network has lap-by-laps by Bill Flemming, and Pit reporter Chris Economaki?`: ```sql
SELECT "lap_by_lap" FROM "early_cbs_and_abc_s_era_1959_1978" WHERE "year">1973 AND "pit_reporters"='bill flemming';
## Task Generate a SQL query to answer the following question: `Which lap-by-lap has a year after 1973, with pit reporter Bill Flemming?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "early_cbs_and_abc_s_era_1959_1978" ( "year" real, "network" text, "lap_by_lap" text, "pit_reporters" text, "host" text ); ### SQL Given the database schema, here is the SQL query that answers `Which lap-by-lap has a year after 1973, with pit reporter Bill Flemming?`: ```sql
SELECT "9_00" FROM "monday" WHERE "10_00"='local programming' AND "8_30"='decision house (reruns)';
## Task Generate a SQL query to answer the following question: `What is on at 9:00 when at 10:00 it is local programming and at 8:30 it is decision house (reruns)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "monday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); ### SQL Given the database schema, here is the SQL query that answers `What is on at 9:00 when at 10:00 it is local programming and at 8:30 it is decision house (reruns)?`: ```sql
SELECT "8_00" FROM "monday" WHERE "8_30"='the bachelorette';
## Task Generate a SQL query to answer the following question: `What is on at 8:00 when at 8:30 it is the bachelorette?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "monday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); ### SQL Given the database schema, here is the SQL query that answers `What is on at 8:00 when at 8:30 it is the bachelorette?`: ```sql
SELECT "8_30" FROM "monday" WHERE "9_00"='one tree hill (reruns)';
## Task Generate a SQL query to answer the following question: `what is on a 8:30 when at 9:00 it is one tree hill (reruns)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "monday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); ### SQL Given the database schema, here is the SQL query that answers `what is on a 8:30 when at 9:00 it is one tree hill (reruns)?`: ```sql
SELECT "8_30" FROM "monday" WHERE "9_30"='rules of engagement (reruns)';
## Task Generate a SQL query to answer the following question: `What is at 8:30 when at 9:30 it is rules of engagement (reruns)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "monday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); ### SQL Given the database schema, here is the SQL query that answers `What is at 8:30 when at 9:30 it is rules of engagement (reruns)?`: ```sql
SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "res"='win' AND "location"='fort lauderdale, florida, united states' AND "time"='3:38';
## Task Generate a SQL query to answer the following question: `What is the lowest round for Fort Lauderdale, Florida, United States, with a win and a time of 3:38?` ### 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, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest round for Fort Lauderdale, Florida, United States, with a win and a time of 3:38?`: ```sql
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "time"='2:18';
## Task Generate a SQL query to answer the following question: `How many rounds have a time of 2:18?` ### 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, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `How many rounds have a time of 2:18?`: ```sql
SELECT MIN("grid") FROM "classification" WHERE "laps"<65 AND "driver"='tim schenken';
## Task Generate a SQL query to answer the following question: `What is the lowest Grid with fewer than 65 Laps and with Driver Tim Schenken?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Grid with fewer than 65 Laps and with Driver Tim Schenken?`: ```sql
SELECT "driver" FROM "classification" WHERE "grid"=1;
## Task Generate a SQL query to answer the following question: `What Driver has 1 in Grid?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What Driver has 1 in Grid?`: ```sql
SELECT "time_retired" FROM "classification" WHERE "driver"='howden ganley';
## Task Generate a SQL query to answer the following question: `What is Driver Howden Ganley's Time/Retired?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Driver Howden Ganley's Time/Retired?`: ```sql
SELECT "date" FROM "round_18" WHERE "home_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `On what date was Hawthorn the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was Hawthorn the home team?`: ```sql
SELECT "home_team" FROM "round_18" WHERE "away_team_score"='16.22 (118)';
## Task Generate a SQL query to answer the following question: `Which home team opposed an away team with a score of 16.22 (118)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which home team opposed an away team with a score of 16.22 (118)?`: ```sql
SELECT "away_team" FROM "round_18" WHERE "venue"='junction oval';
## Task Generate a SQL query to answer the following question: `Who was the away team at Junction Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team at Junction Oval?`: ```sql
SELECT "home_team" FROM "round_18" WHERE "venue"='mcg';
## Task Generate a SQL query to answer the following question: `Which home team played at MCG?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which home team played at MCG?`: ```sql
SELECT SUM("draws") FROM "final_table" WHERE "position"<15 AND "played">38;
## Task Generate a SQL query to answer the following question: `Tell me the sum of draws for position less than 15 with played more than 38` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the sum of draws for position less than 15 with played more than 38`: ```sql
SELECT SUM("played") FROM "final_table" WHERE "position"<9 AND "draws">19 AND "goals_against">27;
## Task Generate a SQL query to answer the following question: `Name the sum of played for position less than 9 and draws more than 19 with goals against more than 27` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the sum of played for position less than 9 and draws more than 19 with goals against more than 27`: ```sql
SELECT "recorded" FROM "track_listing" WHERE "translation"='sleep my love, good night';
## Task Generate a SQL query to answer the following question: `Name the recorded for translation of sleep my love, good night` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "track" real, "title" text, "translation" text, "composer" text, "recorded" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the recorded for translation of sleep my love, good night`: ```sql
SELECT "winter" FROM "olympic_host_cities" WHERE "year"=1906;
## Task Generate a SQL query to answer the following question: `What is the Winter in 1906?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "olympic_host_cities" ( "city" text, "country" text, "continent" text, "summer" text, "winter" text, "season" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Winter in 1906?`: ```sql
SELECT "driver" FROM "race" WHERE "time_retired"='2:45:46.2';
## Task Generate a SQL query to answer the following question: `Which driver has a Time/Retired of 2:45:46.2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Which driver has a Time/Retired of 2:45:46.2?`: ```sql
SELECT "position" FROM "nfl_draft" WHERE "pick"<312 AND "school_club_team"='western michigan';
## Task Generate a SQL query to answer the following question: `What position for the western michigan product picked ahead of 312?` ### 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 for the western michigan product picked ahead of 312?`: ```sql
SELECT "date" FROM "1950s_bears_14_5_1" WHERE "loser"='green bay packers' AND "location"='green bay';
## Task Generate a SQL query to answer the following question: `What date did the Chicago Bears beat the Green bay Packers 31-20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1950s_bears_14_5_1" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "attendance" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did the Chicago Bears beat the Green bay Packers 31-20?`: ```sql
SELECT "date" FROM "march" WHERE "home"='boston bruins';
## Task Generate a SQL query to answer the following question: `When were the boston bruins the home team?` ### 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, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `When were the boston bruins the home team?`: ```sql
SELECT "nat" FROM "in" WHERE "moving_from"='bordeaux';
## Task Generate a SQL query to answer the following question: `In what nation is Bordeaux?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" real, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `In what nation is Bordeaux?`: ```sql
SELECT "lead" FROM "teams" WHERE "nation"='norway';
## Task Generate a SQL query to answer the following question: `Who has the lead in Norway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text, "alternate" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has the lead in Norway?`: ```sql
SELECT "skip" FROM "teams" WHERE "second"='joan mccusker';
## Task Generate a SQL query to answer the following question: `Which Skip will play Joan Mccusker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text, "alternate" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Skip will play Joan Mccusker?`: ```sql
SELECT "alternate" FROM "teams" WHERE "nation"='sweden';
## Task Generate a SQL query to answer the following question: `Who is the Alternate for Sweden?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text, "alternate" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Alternate for Sweden?`: ```sql
SELECT "third" FROM "teams" WHERE "nation"='germany';
## Task Generate a SQL query to answer the following question: `Who is the third alternate for Germany?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text, "alternate" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the third alternate for Germany?`: ```sql
SELECT "translation" FROM "bibliography" WHERE "date"=1986;
## Task Generate a SQL query to answer the following question: `Which translation was published in 1986?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bibliography" ( "title" text, "urdu" text, "translation" text, "date" real, "content" text ); ### SQL Given the database schema, here is the SQL query that answers `Which translation was published in 1986?`: ```sql
SELECT "title" FROM "bibliography" WHERE "content"='mysticism, spiritualism' AND "translation"='the minaret of light';
## Task Generate a SQL query to answer the following question: `Which title has content including mysticism, spiritualism, and a translation of the minaret of light?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bibliography" ( "title" text, "urdu" text, "translation" text, "date" real, "content" text ); ### SQL Given the database schema, here is the SQL query that answers `Which title has content including mysticism, spiritualism, and a translation of the minaret of light?`: ```sql
SELECT "employees_world" FROM "economy" WHERE "revenue_mil"='104.000';
## Task Generate a SQL query to answer the following question: `What is hte nuumber of employees that has a revenue of 104.000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economy" ( "rank" text, "name" text, "headquarters" text, "revenue_mil" text, "profit_mil" text, "employees_world" real ); ### SQL Given the database schema, here is the SQL query that answers `What is hte nuumber of employees that has a revenue of 104.000?`: ```sql
SELECT "headquarters" FROM "economy" WHERE "employees_world"=100;
## Task Generate a SQL query to answer the following question: `Which HQ is associated with a number of employees of 100?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economy" ( "rank" text, "name" text, "headquarters" text, "revenue_mil" text, "profit_mil" text, "employees_world" real ); ### SQL Given the database schema, here is the SQL query that answers `Which HQ is associated with a number of employees of 100?`: ```sql
SELECT MIN("silver") FROM "medal_table" WHERE "bronze">1 AND "rank"<11;
## Task Generate a SQL query to answer the following question: `What is the low silver medal total for nations with over 1 bronze ranked above 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the low silver medal total for nations with over 1 bronze ranked above 11?`: ```sql
SELECT MAX("total") FROM "medal_table" WHERE "gold"=1 AND "bronze">1;
## Task Generate a SQL query to answer the following question: `What is the high total for nations with 1 gold and over 1 bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the high total for nations with 1 gold and over 1 bronze?`: ```sql
SELECT "home" FROM "october" WHERE "record"='4-6-0';
## Task Generate a SQL query to answer the following question: `What was the home team with a 4-6-0 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the home team with a 4-6-0 record?`: ```sql
SELECT "decision" FROM "october" WHERE "visitor"='washington' AND "date"='october 13';
## Task Generate a SQL query to answer the following question: `What was the decision of the game with Washington as the visitor team on October 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the decision of the game with Washington as the visitor team on October 13?`: ```sql
SELECT AVG("ngc_number") FROM "2001_2100" WHERE "right_ascension_j2000"='05h33m30s';
## Task Generate a SQL query to answer the following question: `What is the average NGC number of everything with a Right ascension (J2000) of 05h33m30s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2001_2100" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average NGC number of everything with a Right ascension (J2000) of 05h33m30s?`: ```sql
SELECT "right_ascension_j2000" FROM "2001_2100" WHERE "ngc_number">2068 AND "constellation"='dorado' AND "declination_j2000"='°12′43″';
## Task Generate a SQL query to answer the following question: `What is the right ascension (J2000) with a Declination (J2000) of °12′43″, is a constellation of dorado, and has an NGC number larger than 2068?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2001_2100" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the right ascension (J2000) with a Declination (J2000) of °12′43″, is a constellation of dorado, and has an NGC number larger than 2068?`: ```sql
SELECT "object_type" FROM "2001_2100" WHERE "ngc_number">2090 AND "right_ascension_j2000"='05h52m19s';
## Task Generate a SQL query to answer the following question: `What type of object has an NGC number higher than 2090 and has a right ascension (J2000) of 05h52m19s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2001_2100" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text ); ### SQL Given the database schema, here is the SQL query that answers `What type of object has an NGC number higher than 2090 and has a right ascension (J2000) of 05h52m19s?`: ```sql
SELECT AVG("crowd") FROM "round_1" WHERE "away_team"='geelong';
## Task Generate a SQL query to answer the following question: `How is the crowd of the team Geelong?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How is the crowd of the team Geelong?`: ```sql
SELECT MIN("crowd") FROM "round_1" WHERE "venue"='arden street oval';
## Task Generate a SQL query to answer the following question: `Who has the smallest crowd in the Venue of Arden Street Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has the smallest crowd in the Venue of Arden Street Oval?`: ```sql
SELECT "away_team" FROM "round_1" WHERE "venue"='lake oval';
## Task Generate a SQL query to answer the following question: `What team has a Venue at Lake Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What team has a Venue at Lake Oval?`: ```sql
SELECT "date" FROM "trans_am_series" WHERE "race_title"='grand prix de trois-rivières';
## Task Generate a SQL query to answer the following question: `What day is the grand prix de trois-rivières?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trans_am_series" ( "year" real, "date" text, "drivers" text, "distance_duration" text, "race_title" text ); ### SQL Given the database schema, here is the SQL query that answers `What day is the grand prix de trois-rivières?`: ```sql
SELECT "race_title" FROM "trans_am_series" WHERE "drivers"='ron fellows' AND "date"='aug 4';
## Task Generate a SQL query to answer the following question: `What race is on aug 4 with ron fellows?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trans_am_series" ( "year" real, "date" text, "drivers" text, "distance_duration" text, "race_title" text ); ### SQL Given the database schema, here is the SQL query that answers `What race is on aug 4 with ron fellows?`: ```sql
SELECT "distance_duration" FROM "trans_am_series" WHERE "date"='sept 5' AND "race_title"='le grand prix de trois-rivières';
## Task Generate a SQL query to answer the following question: `What is the distance/duration on sept 5 of le grand prix de trois-rivières?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "trans_am_series" ( "year" real, "date" text, "drivers" text, "distance_duration" text, "race_title" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the distance/duration on sept 5 of le grand prix de trois-rivières?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='julio paulino';
## Task Generate a SQL query to answer the following question: `What is terry's record when he fights julio paulino?` ### 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 is terry's record when he fights julio paulino?`: ```sql
SELECT "time" FROM "mixed_martial_arts_record" WHERE "method"='ko (punch)' AND "opponent"='scott smith';
## Task Generate a SQL query to answer the following question: `How long is the ko (punch) fight against scott smith?` ### 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 `How long is the ko (punch) fight against scott smith?`: ```sql
SELECT AVG("feet") FROM "history_of_conquest" WHERE "latitude_n"='35°48′35″' AND "metres"<'8,047';
## Task Generate a SQL query to answer the following question: `What is the average feet that has a Latitude (N) of 35°48′35″, and under 8,047m?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "history_of_conquest" ( "peak" text, "metres" real, "feet" real, "latitude_n" text, "longitude_e" text, "prominence_m" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average feet that has a Latitude (N) of 35°48′35″, and under 8,047m?`: ```sql
SELECT MIN("feet") FROM "history_of_conquest" WHERE "longitude_e"='76°34′06″' AND "prominence_m"<'1,701';
## Task Generate a SQL query to answer the following question: `What is the lowest feet total with a Longitude (E) of 76°34′06″, and a Prominence (m) under 1,701?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "history_of_conquest" ( "peak" text, "metres" real, "feet" real, "latitude_n" text, "longitude_e" text, "prominence_m" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest feet total with a Longitude (E) of 76°34′06″, and a Prominence (m) under 1,701?`: ```sql
SELECT "player" FROM "2012_boys_team" WHERE "hometown"='wichita, ks';
## Task Generate a SQL query to answer the following question: `What Player comes from the Hometown of Wichita, KS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); ### SQL Given the database schema, here is the SQL query that answers `What Player comes from the Hometown of Wichita, KS?`: ```sql
SELECT "nba_draft" FROM "2012_boys_team" WHERE "hometown"='brampton, on';
## Task Generate a SQL query to answer the following question: `For the Player from Brampton, ON what is their NBA Draft status?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); ### SQL Given the database schema, here is the SQL query that answers `For the Player from Brampton, ON what is their NBA Draft status?`: ```sql
SELECT "college" FROM "2012_boys_team" WHERE "player"='perry ellis';
## Task Generate a SQL query to answer the following question: `What was the College of Player Perry Ellis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the College of Player Perry Ellis?`: ```sql
SELECT MIN("figures") FROM "ladies" WHERE "free"=556;
## Task Generate a SQL query to answer the following question: `What is the lowest figure score when the free is 556?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ladies" ( "rank" real, "name" text, "nation" text, "placings" text, "figures" real, "free" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest figure score when the free is 556?`: ```sql
SELECT "date" FROM "round_12" WHERE "home_team_score"='5.8 (38)';
## Task Generate a SQL query to answer the following question: `On what date did the home team score 5.8 (38)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date did the home team score 5.8 (38)?`: ```sql
SELECT AVG("crowd") FROM "round_12" WHERE "away_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `What is the size of the crowd for the game where the away team South Melbourne played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the size of the crowd for the game where the away team South Melbourne played?`: ```sql
SELECT "home_team_score" FROM "round_12" WHERE "crowd">'30,100';
## Task Generate a SQL query to answer the following question: `What is the home team score when the crowd was larger than 30,100?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home team score when the crowd was larger than 30,100?`: ```sql
SELECT "crowd" FROM "round_12" WHERE "away_team_score"='6.15 (51)';
## Task Generate a SQL query to answer the following question: `What was the size of the crowd when the away team scored 6.15 (51)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the size of the crowd when the away team scored 6.15 (51)?`: ```sql
SELECT "home_team_score" FROM "round_12" WHERE "home_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `How much did the home team Hawthorn score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How much did the home team Hawthorn score?`: ```sql
SELECT "home_team" FROM "round_5" WHERE "crowd">'10,000' AND "away_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `Who was the away team at South Melbourne with a crowd size larger than 10,000.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team at South Melbourne with a crowd size larger than 10,000.`: ```sql
SELECT "venue" FROM "round_5" WHERE "away_team_score"='10.11 (71)';
## Task Generate a SQL query to answer the following question: `Where did the away team score 10.11 (71)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did the away team score 10.11 (71)?`: ```sql
SELECT COUNT("crowd") FROM "round_5" WHERE "away_team"='footscray';
## Task Generate a SQL query to answer the following question: `What was the crowd size for the game at Footscray?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the crowd size for the game at Footscray?`: ```sql
SELECT "visitor" FROM "game_log" WHERE "home"='phoenix';
## Task Generate a SQL query to answer the following question: `Who was the visitor when phoenix was at home?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the visitor when phoenix was at home?`: ```sql
SELECT "date" FROM "game_log" WHERE "visitor"='philadelphia';
## Task Generate a SQL query to answer the following question: `What day did philadelphia visit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What day did philadelphia visit?`: ```sql
SELECT "song" FROM "soundtrack" WHERE "picturization"='vijay';
## Task Generate a SQL query to answer the following question: `Which song has a Picturization of Vijay?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "soundtrack" ( "track_num" real, "song" text, "singers" text, "picturization" text, "length" text, "lyricist" text ); ### SQL Given the database schema, here is the SQL query that answers `Which song has a Picturization of Vijay?`: ```sql
SELECT "length" FROM "soundtrack" WHERE "song"='\"maduraikku pogathadee\"';
## Task Generate a SQL query to answer the following question: `How long is the song "Maduraikku Pogathadee"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "soundtrack" ( "track_num" real, "song" text, "singers" text, "picturization" text, "length" text, "lyricist" text ); ### SQL Given the database schema, here is the SQL query that answers `How long is the song "Maduraikku Pogathadee"?`: ```sql
SELECT "original_air_date" FROM "season_3" WHERE "production_code"='ad1c13';
## Task Generate a SQL query to answer the following question: `What is the air date for the episode with production code ad1c13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_3" ( "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the air date for the episode with production code ad1c13?`: ```sql
SELECT "written_by" FROM "season_3" WHERE "production_code"='ad1c05';
## Task Generate a SQL query to answer the following question: `Who wrote the episode that has the production code ad1c05?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_3" ( "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode that has the production code ad1c05?`: ```sql
SELECT "title" FROM "season_3" WHERE "production_code"='ad1c07';
## Task Generate a SQL query to answer the following question: `What is the title of the episode with production code ad1c07?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_3" ( "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the episode with production code ad1c07?`: ```sql
SELECT MIN("draws") FROM "2011_ladder" WHERE "wins">3 AND "mid_gippsland_fl"='yarragon' AND "against"<966;
## Task Generate a SQL query to answer the following question: `What is the low draw total for yarragon teams with over 3 wins, and under 966 against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_ladder" ( "mid_gippsland_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the low draw total for yarragon teams with over 3 wins, and under 966 against?`: ```sql
SELECT "general_classification" FROM "jersey_progress" WHERE "points_classification"='bradley wiggins';
## Task Generate a SQL query to answer the following question: `What is the General classification for a points classification leader of Bradley Wiggins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jersey_progress" ( "stage_winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "combination_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the General classification for a points classification leader of Bradley Wiggins?`: ```sql