output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "vinculum" FROM "notation" WHERE "parentheses"='0.(6)';
## Task Generate a SQL query to answer the following question: `What is the value of vinculum for parentheses of 0.(6)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notation" ( "fraction" text, "ellipsis" text, "vinculum" text, "dots" text, "parentheses" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the value of vinculum for parentheses of 0.(6)?`: ```sql
SELECT "date" FROM "game_log" WHERE "score"='7-1';
## Task Generate a SQL query to answer the following question: `When was the score 7-1?` ### 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" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the score 7-1?`: ```sql
SELECT "loss" FROM "game_log" WHERE "score"='7-1';
## Task Generate a SQL query to answer the following question: `What was the loss when the score was 7-1?` ### 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" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the loss when the score was 7-1?`: ```sql
SELECT "loss" FROM "game_log" WHERE "record"='46-59';
## Task Generate a SQL query to answer the following question: `What was the loss when the record was 46-59?` ### 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" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the loss when the record was 46-59?`: ```sql
SELECT "score" FROM "game_log" WHERE "opponent"='@ giants' AND "record"='8–12';
## Task Generate a SQL query to answer the following question: `Opponent of @ giants, and a Record of 8–12 had what score?` ### 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" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Opponent of @ giants, and a Record of 8–12 had what score?`: ```sql
SELECT COUNT("attendance") FROM "game_log" WHERE "score"='4–0';
## Task Generate a SQL query to answer the following question: `Score of 4–0 had what attendance number?` ### 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" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Score of 4–0 had what attendance number?`: ```sql
SELECT "losing_bonus" FROM "2009_2010_table" WHERE "try_bonus"='3' AND "tries_for"='47';
## Task Generate a SQL query to answer the following question: `What was the losing bonus for the team with a try bonus of 3 and 47 tries for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the losing bonus for the team with a try bonus of 3 and 47 tries for?`: ```sql
SELECT "tries_for" FROM "2009_2010_table" WHERE "points_against"='263';
## Task Generate a SQL query to answer the following question: `How many tries for does the team with 263 points against have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many tries for does the team with 263 points against have?`: ```sql
SELECT "drawn" FROM "2009_2010_table" WHERE "points_for"='385';
## Task Generate a SQL query to answer the following question: `How many draws does the team with 385 points for have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many draws does the team with 385 points for have?`: ```sql
SELECT "lost" FROM "2009_2010_table" WHERE "drawn"='1' AND "tries_against"='34';
## Task Generate a SQL query to answer the following question: `What is the number of losses for the team with 1 draw and 34 tries against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of losses for the team with 1 draw and 34 tries against?`: ```sql
SELECT "tries_for" FROM "2009_2010_table" WHERE "points"='35' AND "try_bonus"='1';
## Task Generate a SQL query to answer the following question: `How many tries for does the team with a try bonus of 1 and 35 points earned?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many tries for does the team with a try bonus of 1 and 35 points earned?`: ```sql
SELECT "points" FROM "2009_2010_table" WHERE "lost"='3';
## Task Generate a SQL query to answer the following question: `How many points does the team with 3 losses have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points does the team with 3 losses have?`: ```sql
SELECT MIN("rank") FROM "zakopane" WHERE "1st_m">133.5 AND "overall_wc_points_rank"='459 (7)';
## Task Generate a SQL query to answer the following question: `Which Rank is the lowest one that has a 1st (m) larger than 133.5, and an Overall WC points (Rank) of 459 (7)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "zakopane" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "points" real, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Rank is the lowest one that has a 1st (m) larger than 133.5, and an Overall WC points (Rank) of 459 (7)?`: ```sql
SELECT "score" FROM "schedule_and_results" WHERE "record"='10-9-7';
## Task Generate a SQL query to answer the following question: `What was the score in the game where the record was 10-9-7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score in the game where the record was 10-9-7?`: ```sql
SELECT MIN("december") FROM "schedule_and_results" WHERE "opponent"='colorado avalanche';
## Task Generate a SQL query to answer the following question: `What was the first time in December they played the Colorado Avalanche?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the first time in December they played the Colorado Avalanche?`: ```sql
SELECT "date" FROM "1970s_jets_12_8" WHERE "winner"='new york jets' AND "result"='30–28';
## Task Generate a SQL query to answer the following question: `What date was the winner the new york jets and a Result of 30–28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1970s_jets_12_8" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the winner the new york jets and a Result of 30–28?`: ```sql
SELECT "location" FROM "1970s_jets_12_8" WHERE "result"='21–16';
## Task Generate a SQL query to answer the following question: `What is the name of the location of the game with a Result of 21–16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1970s_jets_12_8" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the location of the game with a Result of 21–16?`: ```sql
SELECT MIN("year") FROM "1970s_jets_12_8" WHERE "winner"='new york jets' AND "location"='harvard stadium';
## Task Generate a SQL query to answer the following question: `What is the earliest year the new york jets won at harvard stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1970s_jets_12_8" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest year the new york jets won at harvard stadium?`: ```sql
SELECT "loser" FROM "1970s_jets_12_8" WHERE "location"='schaefer stadium' AND "winner"='new england patriots' AND "date"='october 18';
## Task Generate a SQL query to answer the following question: `Who lost at schaefer stadium when the Winner was new england patriots, and a Date of october 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1970s_jets_12_8" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Who lost at schaefer stadium when the Winner was new england patriots, and a Date of october 18?`: ```sql
SELECT "points_for" FROM "2008_09_table" WHERE "losing_bonus"='2' AND "points_against"='300';
## Task Generate a SQL query to answer the following question: `How many points did the club with a losing bonus of 2 and 300 points against have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_09_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points did the club with a losing bonus of 2 and 300 points against have?`: ```sql
SELECT "tries_for" FROM "2008_09_table" WHERE "losing_bonus"='3' AND "points"='45';
## Task Generate a SQL query to answer the following question: `How many tries for did the club with a 3 losing bonus and 45 points have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_09_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many tries for did the club with a 3 losing bonus and 45 points have?`: ```sql
SELECT "try_bonus" FROM "2008_09_table" WHERE "played"='played';
## Task Generate a SQL query to answer the following question: `What is the try bonus of the club with played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_09_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the try bonus of the club with played?`: ```sql
SELECT "points_against" FROM "2008_09_table" WHERE "points"='points';
## Task Generate a SQL query to answer the following question: `How many points against did the club with points have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_09_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points against did the club with points have?`: ```sql
SELECT "drawn" FROM "2008_09_table" WHERE "points_against"='542';
## Task Generate a SQL query to answer the following question: `What is the drawn by the club with 542 points against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_09_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the drawn by the club with 542 points against?`: ```sql
SELECT "lost" FROM "2008_09_table" WHERE "played"='22' AND "points_against"='334';
## Task Generate a SQL query to answer the following question: `How many losses did the club with 22 played and 334 points against have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_09_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many losses did the club with 22 played and 334 points against have?`: ```sql
SELECT SUM("attendance") FROM "schedule" WHERE "record"='1-6';
## Task Generate a SQL query to answer the following question: `What attendance does 1-6 record have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "score" text, "record" text, "venue" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What attendance does 1-6 record have?`: ```sql
SELECT "record" FROM "schedule" WHERE "opponent"='tampa bay buccaneers';
## Task Generate a SQL query to answer the following question: `What is the record of Tampa Bay Buccaneers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "score" text, "record" text, "venue" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the record of Tampa Bay Buccaneers?`: ```sql
SELECT "nationality" FROM "round_two" WHERE "position"='right wing' AND "pick_num"='20';
## Task Generate a SQL query to answer the following question: `What Nationality has a Position of right wing, with a #20 pick?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What Nationality has a Position of right wing, with a #20 pick?`: ```sql
SELECT "college_junior_club_team" FROM "round_two" WHERE "position"='centre' AND "pick_num"='22';
## Task Generate a SQL query to answer the following question: `What College/junior/club team has a Position of centre, and pick is #22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What College/junior/club team has a Position of centre, and pick is #22?`: ```sql
SELECT "nhl_team" FROM "round_two" WHERE "pick_num"='32';
## Task Generate a SQL query to answer the following question: `What is the NHL team that had pick number 32?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the NHL team that had pick number 32?`: ```sql
SELECT "pick_num" FROM "round_two" WHERE "college_junior_club_team"='edmonton oil kings (wchl)' AND "position"='defence';
## Task Generate a SQL query to answer the following question: `What is the Pick # for the College/junior/club team of edmonton oil kings (wchl), and the position if defence?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Pick # for the College/junior/club team of edmonton oil kings (wchl), and the position if defence?`: ```sql
SELECT "player" FROM "round_two" WHERE "nhl_team"='new york rangers' AND "pick_num"='31';
## Task Generate a SQL query to answer the following question: `What is the name of the Player that shows the NHL team of new york rangers, and a Pick # of 31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the Player that shows the NHL team of new york rangers, and a Pick # of 31?`: ```sql
SELECT SUM("seasons_in_league") FROM "participating_teams" WHERE "best_position"='5th (2007)';
## Task Generate a SQL query to answer the following question: `Which sum of Seasons in league has a Best Position of 5th (2007)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "participating_teams" ( "pos_in_2007" text, "club" text, "city" text, "best_position" text, "seasons_in_league" real ); ### SQL Given the database schema, here is the SQL query that answers `Which sum of Seasons in league has a Best Position of 5th (2007)?`: ```sql
SELECT "city" FROM "participating_teams" WHERE "seasons_in_league"=17 AND "club"='shakhter';
## Task Generate a SQL query to answer the following question: `Which City has Seasons in league of 17, and a Club of shakhter?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "participating_teams" ( "pos_in_2007" text, "club" text, "city" text, "best_position" text, "seasons_in_league" real ); ### SQL Given the database schema, here is the SQL query that answers `Which City has Seasons in league of 17, and a Club of shakhter?`: ```sql
SELECT "team" FROM "champions" WHERE "season">2008;
## Task Generate a SQL query to answer the following question: `What team won after 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions" ( "season" real, "driver" text, "team" text, "tyre" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What team won after 2008?`: ```sql
SELECT "team" FROM "champions" WHERE "points"<203;
## Task Generate a SQL query to answer the following question: `What team has fewer than 203 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions" ( "season" real, "driver" text, "team" text, "tyre" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What team has fewer than 203 points?`: ```sql
SELECT SUM("points") FROM "champions" WHERE "season"=2007;
## Task Generate a SQL query to answer the following question: `What is total amount of points for the 2007 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions" ( "season" real, "driver" text, "team" text, "tyre" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is total amount of points for the 2007 season?`: ```sql
SELECT "driver" FROM "champions" WHERE "team"='collΓ© racing' AND "points">206;
## Task Generate a SQL query to answer the following question: `Who is the driver for team CollΓ© Racing with more than 206 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions" ( "season" real, "driver" text, "team" text, "tyre" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Who is the driver for team CollΓ© Racing with more than 206 points?`: ```sql
SELECT "result" FROM "week_3" WHERE "couple"='steve & anna';
## Task Generate a SQL query to answer the following question: `What was the result when the couple was steve & anna?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_3" ( "couple" text, "score" text, "style" text, "music" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result when the couple was steve & anna?`: ```sql
SELECT "score" FROM "week_3" WHERE "couple"='shannon & derek';
## Task Generate a SQL query to answer the following question: `What was the score when the couple was shannon & derek?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_3" ( "couple" text, "score" text, "style" text, "music" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when the couple was shannon & derek?`: ```sql
SELECT "music" FROM "week_3" WHERE "couple"='mario & karina';
## Task Generate a SQL query to answer the following question: `What music did Mario & Karina perform?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_3" ( "couple" text, "score" text, "style" text, "music" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What music did Mario & Karina perform?`: ```sql
SELECT "result" FROM "week_3" WHERE "score"='21 (7, 7, 7)' AND "couple"='steve & anna';
## Task Generate a SQL query to answer the following question: `What was the result for Steve & Anna when the score was 21 (7, 7, 7)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_3" ( "couple" text, "score" text, "style" text, "music" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result for Steve & Anna when the score was 21 (7, 7, 7)?`: ```sql
SELECT "result" FROM "week_3" WHERE "score"='21 (7, 6, 8)';
## Task Generate a SQL query to answer the following question: `What was the result when the score was 21 (7, 6, 8)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_3" ( "couple" text, "score" text, "style" text, "music" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result when the score was 21 (7, 6, 8)?`: ```sql
SELECT "home" FROM "game_log" WHERE "attendance">'17,250' AND "points"=14;
## Task Generate a SQL query to answer the following question: `Which Home has an Attendance larger than 17,250, and Points of 14?` ### 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, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Home has an Attendance larger than 17,250, and Points of 14?`: ```sql
SELECT "points" FROM "game_log" WHERE "score"='3–3' AND "date"='november 11';
## Task Generate a SQL query to answer the following question: `Which Points have a Score of 3–3, and a Date of november 11?` ### 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, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Points have a Score of 3–3, and a Date of november 11?`: ```sql
SELECT "date" FROM "game_log" WHERE "home"='pittsburgh' AND "record"='3–6–5';
## Task Generate a SQL query to answer the following question: `Which Date has a Home of pittsburgh, and a Record of 3–6–5?` ### 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, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a Home of pittsburgh, and a Record of 3–6–5?`: ```sql
SELECT "record" FROM "game_log" WHERE "score"='4–4' AND "points"=17;
## Task Generate a SQL query to answer the following question: `Which Record has a Score of 4–4, and Points of 17?` ### 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, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Record has a Score of 4–4, and Points of 17?`: ```sql
SELECT MAX("loses") FROM "group_b" WHERE "wins">3 AND "pos">3;
## Task Generate a SQL query to answer the following question: `What's the highest Loses, with Wins that's larger than 3 and a Pos. Larger than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_b" ( "pos" real, "matches" real, "wins" real, "loses" real, "results" text, "points" real, "diff" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the highest Loses, with Wins that's larger than 3 and a Pos. Larger than 3?`: ```sql
SELECT COUNT("rank") FROM "medal_count" WHERE "bronze">1 AND "silver">0 AND "nation"='norway (host nation)' AND "total">16;
## Task Generate a SQL query to answer the following question: `Which Rank has a Bronze larger than 1, and a Silver larger than 0, and a Nation of norway (host nation), and a Total larger than 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Rank has a Bronze larger than 1, and a Silver larger than 0, and a Nation of norway (host nation), and a Total larger than 16?`: ```sql
SELECT MAX("bronze") FROM "medal_count" WHERE "total"=11 AND "silver"<6;
## Task Generate a SQL query to answer the following question: `Which Bronze has a Total of 11, and a Silver smaller than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Bronze has a Total of 11, and a Silver smaller than 6?`: ```sql
SELECT AVG("bronze") FROM "medal_count" WHERE "nation"='canada' AND "rank"<6;
## Task Generate a SQL query to answer the following question: `Which Bronze has a Nation of canada, and a Rank smaller than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Bronze has a Nation of canada, and a Rank smaller than 6?`: ```sql
SELECT MIN("gold") FROM "medal_count" WHERE "bronze">6;
## Task Generate a SQL query to answer the following question: `Which Gold has a Bronze larger than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Gold has a Bronze larger than 6?`: ```sql
SELECT SUM("gold") FROM "medal_count" WHERE "rank">6 AND "nation"='netherlands' AND "bronze"<0;
## Task Generate a SQL query to answer the following question: `Which Gold has a Rank larger than 6, and a Nation of netherlands, and a Bronze smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Gold has a Rank larger than 6, and a Nation of netherlands, and a Bronze smaller than 0?`: ```sql
SELECT "torque" FROM "spartana" WHERE "name"='1.6 petrol' AND "power"='daewoo';
## Task Generate a SQL query to answer the following question: `What is the torque of the 1.6 petrol with daewoo power?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spartana" ( "name" text, "capacity" text, "power" text, "type" text, "torque" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the torque of the 1.6 petrol with daewoo power?`: ```sql
SELECT "torque" FROM "spartana" WHERE "name"='1.2 petrol';
## Task Generate a SQL query to answer the following question: `What is the torque of 1.2 petrol?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spartana" ( "name" text, "capacity" text, "power" text, "type" text, "torque" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the torque of 1.2 petrol?`: ```sql
SELECT "power" FROM "spartana" WHERE "name"='1.9 diesel';
## Task Generate a SQL query to answer the following question: `What is the power of 1.9 diesel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spartana" ( "name" text, "capacity" text, "power" text, "type" text, "torque" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the power of 1.9 diesel?`: ```sql
SELECT "current_map" FROM "schema_of_the_quadrangles" WHERE "namesake"='derain crater';
## Task Generate a SQL query to answer the following question: `What is the current map designation of the feature for which derain crater was the namesake?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schema_of_the_quadrangles" ( "name" text, "number" text, "namesake" text, "albedo_feature_name" text, "area" text, "current_map" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the current map designation of the feature for which derain crater was the namesake?`: ```sql
SELECT "albedo_feature_name" FROM "schema_of_the_quadrangles" WHERE "name"='neruda';
## Task Generate a SQL query to answer the following question: `What is the Albedo name for Neruda?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schema_of_the_quadrangles" ( "name" text, "number" text, "namesake" text, "albedo_feature_name" text, "area" text, "current_map" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Albedo name for Neruda?`: ```sql
SELECT "number" FROM "schema_of_the_quadrangles" WHERE "name"='kuiper';
## Task Generate a SQL query to answer the following question: `What number is Kuiper?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schema_of_the_quadrangles" ( "name" text, "number" text, "namesake" text, "albedo_feature_name" text, "area" text, "current_map" text ); ### SQL Given the database schema, here is the SQL query that answers `What number is Kuiper?`: ```sql
SELECT "current_map" FROM "schema_of_the_quadrangles" WHERE "namesake"='discovery rupes';
## Task Generate a SQL query to answer the following question: `What is the current map designation of the feature which was named for discovery rupes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schema_of_the_quadrangles" ( "name" text, "number" text, "namesake" text, "albedo_feature_name" text, "area" text, "current_map" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the current map designation of the feature which was named for discovery rupes?`: ```sql
SELECT "current_map" FROM "schema_of_the_quadrangles" WHERE "name"='debussy';
## Task Generate a SQL query to answer the following question: `What is the current map designation for Debussy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schema_of_the_quadrangles" ( "name" text, "number" text, "namesake" text, "albedo_feature_name" text, "area" text, "current_map" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the current map designation for Debussy?`: ```sql
SELECT "current_map" FROM "schema_of_the_quadrangles" WHERE "name"='beethoven';
## Task Generate a SQL query to answer the following question: `What is the current map designation for Beethoven?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schema_of_the_quadrangles" ( "name" text, "number" text, "namesake" text, "albedo_feature_name" text, "area" text, "current_map" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the current map designation for Beethoven?`: ```sql
SELECT "overall_fht_points" FROM "bischofshofen" WHERE "name"='denis kornilov';
## Task Generate a SQL query to answer the following question: `What is the overall FHT points for Denis Kornilov?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bischofshofen" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_fht_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the overall FHT points for Denis Kornilov?`: ```sql
SELECT MIN("2nd_m") FROM "bischofshofen" WHERE "points">251.6;
## Task Generate a SQL query to answer the following question: `What is the lowest 2nd (m) when the points were larger than 251.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bischofshofen" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_fht_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest 2nd (m) when the points were larger than 251.6?`: ```sql
SELECT "city" FROM "approved" WHERE "rank"=7;
## Task Generate a SQL query to answer the following question: `What city ranked 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "approved" ( "rank" real, "name" text, "height_m_ft" text, "floors" real, "year_est" text, "city" text ); ### SQL Given the database schema, here is the SQL query that answers `What city ranked 7?`: ```sql
SELECT COUNT("floors") FROM "approved" WHERE "height_m_ft"='300 / 985' AND "rank"<3;
## Task Generate a SQL query to answer the following question: `How many floors were there with a building rank of less than 3 and a height of 300 / 985 m (ft)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "approved" ( "rank" real, "name" text, "height_m_ft" text, "floors" real, "year_est" text, "city" text ); ### SQL Given the database schema, here is the SQL query that answers `How many floors were there with a building rank of less than 3 and a height of 300 / 985 m (ft)?`: ```sql
SELECT MIN("rank") FROM "approved" WHERE "floors"<62 AND "name"='etihad tower 5';
## Task Generate a SQL query to answer the following question: `What is the rank of Etihad Tower 5, with less than 62 floors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "approved" ( "rank" real, "name" text, "height_m_ft" text, "floors" real, "year_est" text, "city" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank of Etihad Tower 5, with less than 62 floors?`: ```sql
SELECT "city" FROM "approved" WHERE "rank">15 AND "floors">43;
## Task Generate a SQL query to answer the following question: `What city has a building ranked greater than 15 with floors greater than 43?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "approved" ( "rank" real, "name" text, "height_m_ft" text, "floors" real, "year_est" text, "city" text ); ### SQL Given the database schema, here is the SQL query that answers `What city has a building ranked greater than 15 with floors greater than 43?`: ```sql
SELECT "league" FROM "defunct_teams" WHERE "sport"='baseball' AND "club"='laredo apaches';
## Task Generate a SQL query to answer the following question: `Which league is for baseball with Laredo Apaches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_teams" ( "club" text, "sport" text, "league" text, "venue" text, "championships" real, "years_active" text ); ### SQL Given the database schema, here is the SQL query that answers `Which league is for baseball with Laredo Apaches?`: ```sql
SELECT "league" FROM "defunct_teams" WHERE "sport"='arena football' AND "club"='laredo lobos';
## Task Generate a SQL query to answer the following question: `Which league has arena football in the club Laredo Lobos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_teams" ( "club" text, "sport" text, "league" text, "venue" text, "championships" real, "years_active" text ); ### SQL Given the database schema, here is the SQL query that answers `Which league has arena football in the club Laredo Lobos?`: ```sql
SELECT "home_team" FROM "series_summary" WHERE "game"='game 3';
## Task Generate a SQL query to answer the following question: `Which was the home team for game 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_summary" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text, "tv_time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which was the home team for game 3?`: ```sql
SELECT "tv_time" FROM "series_summary" WHERE "road_team"='phoenix' AND "date"='june 18';
## Task Generate a SQL query to answer the following question: `What was the TV time for Chicago's road game against Phoenix on June 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_summary" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text, "tv_time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the TV time for Chicago's road game against Phoenix on June 18?`: ```sql
SELECT "tv_time" FROM "series_summary" WHERE "home_team"='phoenix' AND "result"='98-99';
## Task Generate a SQL query to answer the following question: `What was the TV time for the road game against Phoenix where the score was 98-99?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_summary" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text, "tv_time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the TV time for the road game against Phoenix where the score was 98-99?`: ```sql
SELECT "home_team" FROM "series_summary" WHERE "date"='june 9';
## Task Generate a SQL query to answer the following question: `Who was the home team on June 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_summary" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text, "tv_time" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team on June 9?`: ```sql
SELECT "tv_time" FROM "series_summary" WHERE "date"='june 9';
## Task Generate a SQL query to answer the following question: `What was the TV time for the game on June 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_summary" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text, "tv_time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the TV time for the game on June 9?`: ```sql
SELECT "conference" FROM "list_of_professional_sports_teams_in_the" WHERE "division"='east' AND "home_stadium"='fedexfield';
## Task Generate a SQL query to answer the following question: `At which Conference was the Division in the East, and the Home Stadium named fedexfield?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_professional_sports_teams_in_the" ( "conference" text, "division" text, "team" text, "city" text, "home_stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `At which Conference was the Division in the East, and the Home Stadium named fedexfield?`: ```sql
SELECT "home_stadium" FROM "list_of_professional_sports_teams_in_the" WHERE "division"='south' AND "conference"='national' AND "city"='charlotte, north carolina';
## Task Generate a SQL query to answer the following question: `What is the name of the Home Stadium in which the Division is in the south, and Conference is national, as well as being in the city named charlotte, North Carolina?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_professional_sports_teams_in_the" ( "conference" text, "division" text, "team" text, "city" text, "home_stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the Home Stadium in which the Division is in the south, and Conference is national, as well as being in the city named charlotte, North Carolina?`: ```sql
SELECT "home_stadium" FROM "list_of_professional_sports_teams_in_the" WHERE "conference"='american' AND "city"='nashville, tennessee';
## Task Generate a SQL query to answer the following question: `Which Home Stadium has American as its Conference as well as nashville, tennessee as the city?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_professional_sports_teams_in_the" ( "conference" text, "division" text, "team" text, "city" text, "home_stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Home Stadium has American as its Conference as well as nashville, tennessee as the city?`: ```sql
SELECT "conference" FROM "list_of_professional_sports_teams_in_the" WHERE "division"='south' AND "home_stadium"='georgia dome';
## Task Generate a SQL query to answer the following question: `What is the name of the Conference which Division is south, and the Home Stadium is georgia dome?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_professional_sports_teams_in_the" ( "conference" text, "division" text, "team" text, "city" text, "home_stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the Conference which Division is south, and the Home Stadium is georgia dome?`: ```sql
SELECT "division" FROM "list_of_professional_sports_teams_in_the" WHERE "city"='jacksonville, florida';
## Task Generate a SQL query to answer the following question: `Which Division does the City being jacksonville, florida belong to?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_professional_sports_teams_in_the" ( "conference" text, "division" text, "team" text, "city" text, "home_stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Division does the City being jacksonville, florida belong to?`: ```sql
SELECT "women_s_doubles" FROM "past_winners" WHERE "year"<2000 AND "women_s_singles"='raina tzvetkova';
## Task Generate a SQL query to answer the following question: `Who won Women's doubles when Raina Tzvetkova won women's singles before 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won Women's doubles when Raina Tzvetkova won women's singles before 2000?`: ```sql
SELECT "men_s_singles" FROM "past_winners" WHERE "women_s_doubles"='petya nedelcheva diana dimova' AND "men_s_doubles"='vladimir metodiev krasimir yankov';
## Task Generate a SQL query to answer the following question: `Who won men's singles when petya nedelcheva diana dimova won women's doubles and vladimir metodiev krasimir yankov won men's doubles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won men's singles when petya nedelcheva diana dimova won women's doubles and vladimir metodiev krasimir yankov won men's doubles?`: ```sql
SELECT "men_s_singles" FROM "past_winners" WHERE "women_s_singles"='petya nedelcheva' AND "women_s_doubles"='petya nedelcheva diana dimova' AND "mixed_doubles"='stilian makarski diana dimova' AND "men_s_doubles"='stilian makarski peyo boichinov';
## Task Generate a SQL query to answer the following question: `Who won men's singles when petya nedelcheva won women's singles, petya nedelcheva diana dimova won women's doubles, stilian makarski diana dimova won mixed doubles, and stilian makarski peyo boichinov won men's doubles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won men's singles when petya nedelcheva won women's singles, petya nedelcheva diana dimova won women's doubles, stilian makarski diana dimova won mixed doubles, and stilian makarski peyo boichinov won men's doubles?`: ```sql
SELECT "women_s_singles" FROM "past_winners" WHERE "year"=1986;
## Task Generate a SQL query to answer the following question: `Who won women's singles in 1986?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won women's singles in 1986?`: ```sql
SELECT "score" FROM "schedule" WHERE "date"='1/22';
## Task Generate a SQL query to answer the following question: `What score has 1/22 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "score" text, "record" text, "television" text ); ### SQL Given the database schema, here is the SQL query that answers `What score has 1/22 as the date?`: ```sql
SELECT "score" FROM "schedule" WHERE "date"='12/1';
## Task Generate a SQL query to answer the following question: `What score has 12/1 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "score" text, "record" text, "television" text ); ### SQL Given the database schema, here is the SQL query that answers `What score has 12/1 as the date?`: ```sql
SELECT "open_source" FROM "list_of_source_code_editors" WHERE "cost_us"='free' AND "activity"='some' AND "editor"='markitup';
## Task Generate a SQL query to answer the following question: `Which source has a Cost free, and an Activity of some, and an Editor of markitup?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_source_code_editors" ( "editor" text, "site" text, "style_clone_of" text, "cost_us" text, "open_source" text, "activity" text ); ### SQL Given the database schema, here is the SQL query that answers `Which source has a Cost free, and an Activity of some, and an Editor of markitup?`: ```sql
SELECT "site" FROM "list_of_source_code_editors" WHERE "cost_us"='free' AND "editor"='jsvi';
## Task Generate a SQL query to answer the following question: `Which site has a Cost free and a Editor of jsvi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_source_code_editors" ( "editor" text, "site" text, "style_clone_of" text, "cost_us" text, "open_source" text, "activity" text ); ### SQL Given the database schema, here is the SQL query that answers `Which site has a Cost free and a Editor of jsvi?`: ```sql
SELECT "cost_us" FROM "list_of_source_code_editors" WHERE "open_source"='no';
## Task Generate a SQL query to answer the following question: `What is the cost of an Open Source that is no?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_source_code_editors" ( "editor" text, "site" text, "style_clone_of" text, "cost_us" text, "open_source" text, "activity" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the cost of an Open Source that is no?`: ```sql
SELECT "venue" FROM "2006_07_season_as_a_five_year_old" WHERE "weight_kg">55 AND "result"='won';
## Task Generate a SQL query to answer the following question: `What venue has a weight (kg) greater than 55, and won as the result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2006_07_season_as_a_five_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue has a weight (kg) greater than 55, and won as the result?`: ```sql
SELECT "group" FROM "2006_07_season_as_a_five_year_old" WHERE "weight_kg"<55;
## Task Generate a SQL query to answer the following question: `Which group has a weight (kg) less than 55?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2006_07_season_as_a_five_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `Which group has a weight (kg) less than 55?`: ```sql
SELECT "position" FROM "round_four" WHERE "pick_num"=45;
## Task Generate a SQL query to answer the following question: `Which position has 45 picks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_four" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `Which position has 45 picks?`: ```sql
SELECT "record" FROM "schedule" WHERE "week"<5 AND "game_site"='bye';
## Task Generate a SQL query to answer the following question: `What is the record of the game before week 5 and a bye game site?` ### 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, "record" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record of the game before week 5 and a bye game site?`: ```sql
SELECT "seasons" FROM "percentage_pole_positions" WHERE "entries">52 AND "poles"=33;
## Task Generate a SQL query to answer the following question: `Which Seasons have Entries larger than 52, and Poles of 33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "percentage_pole_positions" ( "driver" text, "seasons" text, "entries" real, "poles" real, "percentage" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Seasons have Entries larger than 52, and Poles of 33?`: ```sql
SELECT "seasons" FROM "percentage_pole_positions" WHERE "poles">29 AND "entries">191;
## Task Generate a SQL query to answer the following question: `Which Seasons have a Poles larger than 29, and Entries larger than 191?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "percentage_pole_positions" ( "driver" text, "seasons" text, "entries" real, "poles" real, "percentage" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Seasons have a Poles larger than 29, and Entries larger than 191?`: ```sql
SELECT "away_leg" FROM "matches_in_europe" WHERE "opposition"='aarhus gymnastik forening';
## Task Generate a SQL query to answer the following question: `What ist the Away Leg with an Opposition that is aarhus gymnastik forening?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "matches_in_europe" ( "competition" text, "round" text, "opposition" text, "home_leg" text, "away_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What ist the Away Leg with an Opposition that is aarhus gymnastik forening?`: ```sql
SELECT "2007" FROM "doubles_statistics" WHERE "2006"='236';
## Task Generate a SQL query to answer the following question: `What 2007 has 236 for 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_statistics" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What 2007 has 236 for 2006?`: ```sql
SELECT "2011" FROM "doubles_statistics" WHERE "2010"='2r' AND "2008"='a';
## Task Generate a SQL query to answer the following question: `What 2011 has 2r as 2010, and a 2008 of A?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_statistics" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What 2011 has 2r as 2010, and a 2008 of A?`: ```sql
SELECT "2012" FROM "doubles_statistics" WHERE "tournament"='tournament played';
## Task Generate a SQL query to answer the following question: `What is the 2012 that has tournament played as the tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_statistics" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2012 that has tournament played as the tournament?`: ```sql
SELECT "artist" FROM "semifinal_1" WHERE "place">1 AND "points"=229;
## Task Generate a SQL query to answer the following question: `Which artist had a place larger than 1 with 229 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "draw" real, "artist" text, "song" text, "points" real, "place" real ); ### SQL Given the database schema, here is the SQL query that answers `Which artist had a place larger than 1 with 229 points?`: ```sql