output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "song" FROM "see_also" WHERE "volume_issue"='64:11-12';
## Task Generate a SQL query to answer the following question: `Which song is from Volume:Issue 64:11-12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "volume_issue" text, "issue_date" text, "weeks_on_numbe_one" text, "song" text, "artist_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Which song is from Volume:Issue 64:11-12?`: ```sql
SELECT "artist_s" FROM "see_also" WHERE "song"='\" missing \"';
## Task Generate a SQL query to answer the following question: `Which Artist's song is listed as " missing "?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "volume_issue" text, "issue_date" text, "weeks_on_numbe_one" text, "song" text, "artist_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Artist's song is listed as " missing "?`: ```sql
SELECT "song" FROM "see_also" WHERE "volume_issue"='63:5';
## Task Generate a SQL query to answer the following question: `Which song is from Volume:Issue 63:5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "volume_issue" text, "issue_date" text, "weeks_on_numbe_one" text, "song" text, "artist_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Which song is from Volume:Issue 63:5?`: ```sql
SELECT "song" FROM "see_also" WHERE "volume_issue"='64:14-18';
## Task Generate a SQL query to answer the following question: `Which song is linked to Volume:Issue 64:14-18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "volume_issue" text, "issue_date" text, "weeks_on_numbe_one" text, "song" text, "artist_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Which song is linked to Volume:Issue 64:14-18?`: ```sql
SELECT "match_report" FROM "national_team" WHERE "date"='20 august';
## Task Generate a SQL query to answer the following question: `What is the match report of the match on 20 August?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_team" ( "date" text, "venue" text, "score_1" text, "comp" text, "match_report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the match report of the match on 20 August?`: ```sql
SELECT "origin" FROM "animation_channels" WHERE "launch"=2010;
## Task Generate a SQL query to answer the following question: `What is the origin for the launch taking place in 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "animation_channels" ( "name" text, "hanzi" text, "origin" text, "launch" real, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the origin for the launch taking place in 2010?`: ```sql
SELECT "origin" FROM "animation_channels" WHERE "owner"='hunan broadcasting system (hbs)';
## Task Generate a SQL query to answer the following question: `What is the origin for the item with an owner of Hunan Broadcasting System (HBS)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "animation_channels" ( "name" text, "hanzi" text, "origin" text, "launch" real, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the origin for the item with an owner of Hunan Broadcasting System (HBS)?`: ```sql
SELECT "position" FROM "nfl_draft" WHERE "college"='trinity';
## Task Generate a SQL query to answer the following question: `If the college is Trinity, what position is listed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick_num" real, "round" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `If the college is Trinity, what position is listed?`: ```sql
SELECT COUNT("pick_num") FROM "nfl_draft" WHERE "college"='usc';
## Task Generate a SQL query to answer the following question: `How many picks did the College of USC wind up getting?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick_num" real, "round" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many picks did the College of USC wind up getting?`: ```sql
SELECT "round" FROM "nfl_draft" WHERE "pick_num"=323;
## Task Generate a SQL query to answer the following question: `For Pick #323, which round is it?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick_num" real, "round" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `For Pick #323, which round is it?`: ```sql
SELECT "score" FROM "largest_margin_of_runs_victory" WHERE "venue"='amblecote';
## Task Generate a SQL query to answer the following question: `What score has amblecote as the venue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_margin_of_runs_victory" ( "score" text, "opposition" text, "venue" text, "city" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What score has amblecote as the venue?`: ```sql
SELECT "city" FROM "largest_margin_of_runs_victory" WHERE "venue"='riverside ground' AND "year"<1998;
## Task Generate a SQL query to answer the following question: `What city has riverside ground as the venue, with a year prior to 1998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_margin_of_runs_victory" ( "score" text, "opposition" text, "venue" text, "city" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What city has riverside ground as the venue, with a year prior to 1998?`: ```sql
SELECT MIN("year") FROM "largest_margin_of_runs_victory" WHERE "city"='chester-le-street' AND "score"='345 runs';
## Task Generate a SQL query to answer the following question: `What is the lowest year that has chester-le-street as the city, with 345 runs as the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_margin_of_runs_victory" ( "score" text, "opposition" text, "venue" text, "city" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest year that has chester-le-street as the city, with 345 runs as the score?`: ```sql
SELECT "year" FROM "largest_margin_of_runs_victory" WHERE "score"='385 runs';
## Task Generate a SQL query to answer the following question: `What year has 385 runs as the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_margin_of_runs_victory" ( "score" text, "opposition" text, "venue" text, "city" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What year has 385 runs as the score?`: ```sql
SELECT "score" FROM "largest_margin_of_runs_victory" WHERE "year"=1998;
## Task Generate a SQL query to answer the following question: `What score has 1998 as the year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_margin_of_runs_victory" ( "score" text, "opposition" text, "venue" text, "city" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What score has 1998 as the year?`: ```sql
SELECT MIN("2nd_m") FROM "villach" WHERE "name"='gregor schlierenzauer';
## Task Generate a SQL query to answer the following question: `What is the 2nd (m) value for Gregor Schlierenzauer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "villach" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2nd (m) value for Gregor Schlierenzauer?`: ```sql
SELECT "date" FROM "tournament_results" WHERE "score"='199 (–17)';
## Task Generate a SQL query to answer the following question: `What is the Date of the tournament with a score of 199 (–17)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date of the tournament with a score of 199 (–17)?`: ```sql
SELECT AVG("1st_prize") FROM "tournament_results" WHERE "winner"='paul azinger (9)';
## Task Generate a SQL query to answer the following question: `What was the amount of the 1st prize when paul azinger (9) was the winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the amount of the 1st prize when paul azinger (9) was the winner?`: ```sql
SELECT "winner" FROM "tournament_results" WHERE "tournament"='the tour championship';
## Task Generate a SQL query to answer the following question: `What is the name of the winner of the tour championship tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the winner of the tour championship tournament?`: ```sql
SELECT "date" FROM "tournament_results" WHERE "tournament"='at&t pebble beach national pro-am';
## Task Generate a SQL query to answer the following question: `What is the Date of the at&t pebble beach national pro-am Tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date of the at&t pebble beach national pro-am Tournament?`: ```sql
SELECT "site" FROM "2007_2008" WHERE "sport"='w swimming';
## Task Generate a SQL query to answer the following question: `Which Site has a Sport of w swimming?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_2008" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Site has a Sport of w swimming?`: ```sql
SELECT "series" FROM "2007_2008" WHERE "date"='september 15, 2007';
## Task Generate a SQL query to answer the following question: `Which Series are on september 15, 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_2008" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Series are on september 15, 2007?`: ```sql
SELECT "position" FROM "defensive_player_of_the_year" WHERE "nationality"='usa' AND "team"='Γ­r' AND "season"='2010-11';
## Task Generate a SQL query to answer the following question: `What position did the 2010-11 USA Γ­r player have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defensive_player_of_the_year" ( "season" text, "player" text, "position" text, "nationality" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What position did the 2010-11 USA Γ­r player have?`: ```sql
SELECT "position" FROM "defensive_player_of_the_year" WHERE "team"='kr';
## Task Generate a SQL query to answer the following question: `What position did the kr team player play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defensive_player_of_the_year" ( "season" text, "player" text, "position" text, "nationality" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What position did the kr team player play?`: ```sql
SELECT "team" FROM "defensive_player_of_the_year" WHERE "position"='guard / forward' AND "player"='steinar kaldal';
## Task Generate a SQL query to answer the following question: `What team has Steinar Kaldal, a guard / forward?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defensive_player_of_the_year" ( "season" text, "player" text, "position" text, "nationality" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What team has Steinar Kaldal, a guard / forward?`: ```sql
SELECT "team" FROM "defensive_player_of_the_year" WHERE "season"='2003-04';
## Task Generate a SQL query to answer the following question: `What team did the 2003-04 winner play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defensive_player_of_the_year" ( "season" text, "player" text, "position" text, "nationality" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What team did the 2003-04 winner play for?`: ```sql
SELECT "catalogue" FROM "release_history" WHERE "format"='12\" vinyl';
## Task Generate a SQL query to answer the following question: `Which catalogue is on 12" vinyl?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text ); ### SQL Given the database schema, here is the SQL query that answers `Which catalogue is on 12" vinyl?`: ```sql
SELECT "region" FROM "release_history" WHERE "label"='eyeball' AND "catalogue"='7200222';
## Task Generate a SQL query to answer the following question: `Which region has and eyeball label and catalogue 7200222?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text ); ### SQL Given the database schema, here is the SQL query that answers `Which region has and eyeball label and catalogue 7200222?`: ```sql
SELECT "catalogue" FROM "release_history" WHERE "region"='japan';
## Task Generate a SQL query to answer the following question: `Which catalogue is from Japan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text ); ### SQL Given the database schema, here is the SQL query that answers `Which catalogue is from Japan?`: ```sql
SELECT "format" FROM "release_history" WHERE "region"='united states' AND "date"='july 23, 2002';
## Task Generate a SQL query to answer the following question: `What is the format for the United States dated July 23, 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the format for the United States dated July 23, 2002?`: ```sql
SELECT "label" FROM "release_history" WHERE "catalogue"='7200222';
## Task Generate a SQL query to answer the following question: `What is the label for catalogue 7200222?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the label for catalogue 7200222?`: ```sql
SELECT "surname" FROM "player_roster" WHERE "first"='marc';
## Task Generate a SQL query to answer the following question: `What is Marc's Surname?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "uninum" real, "bats" text, "throws" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Marc's Surname?`: ```sql
SELECT MAX("uninum") FROM "player_roster" WHERE "first"='todd';
## Task Generate a SQL query to answer the following question: `What is the highest uni# of the person with the first name Todd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "uninum" real, "bats" text, "throws" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest uni# of the person with the first name Todd?`: ```sql
SELECT "position" FROM "player_roster" WHERE "uninum"=14;
## Task Generate a SQL query to answer the following question: `Which position does #14 play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "uninum" real, "bats" text, "throws" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Which position does #14 play?`: ```sql
SELECT "bats" FROM "player_roster" WHERE "position"='lhp' AND "first"='lachlan';
## Task Generate a SQL query to answer the following question: `Which does the lhp player with the first name lachlan bat?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "uninum" real, "bats" text, "throws" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Which does the lhp player with the first name lachlan bat?`: ```sql
SELECT COUNT("attendance") FROM "schedule" WHERE "date"='december 11, 1954';
## Task Generate a SQL query to answer the following question: `How many were in Attendance on December 11, 1954?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `How many were in Attendance on December 11, 1954?`: ```sql
SELECT AVG("week") FROM "schedule" WHERE "attendance">'23,875' AND "game_site"='memorial stadium' AND "opponent"='detroit lions';
## Task Generate a SQL query to answer the following question: `In what Week were there more than 23,875 in Attendance at Memorial Stadium with Detroit Lions as the Opponent?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `In what Week were there more than 23,875 in Attendance at Memorial Stadium with Detroit Lions as the Opponent?`: ```sql
SELECT "result" FROM "schedule" WHERE "week"=3;
## Task Generate a SQL query to answer the following question: `What was the Result on Week 3?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the Result on Week 3?`: ```sql
SELECT "week" FROM "schedule" WHERE "opponent"='detroit lions';
## Task Generate a SQL query to answer the following question: `On what Week was the Detroit Lions the Opponent?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `On what Week was the Detroit Lions the Opponent?`: ```sql
SELECT "record" FROM "schedule_and_results" WHERE "game"=14;
## Task Generate a SQL query to answer the following question: `What was the rangers' record on Game 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "november" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the rangers' record on Game 14?`: ```sql
SELECT MAX("game") FROM "schedule_and_results" WHERE "record"='11-11-1' AND "november">29;
## Task Generate a SQL query to answer the following question: `What is the highest game number when the rangers had a record of 11-11-1 and the date was after November 29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "november" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest game number when the rangers had a record of 11-11-1 and the date was after November 29?`: ```sql
SELECT "position" FROM "list" WHERE "name"='francis harris';
## Task Generate a SQL query to answer the following question: `What's Francis Harris' position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "name" text, "nationality" text, "position" text, "years" text, "appearances" real, "goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What's Francis Harris' position?`: ```sql
SELECT "place" FROM "main_places" WHERE "area_km_2">34.42;
## Task Generate a SQL query to answer the following question: `Which place has more area (km 2) than 34.42?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text ); ### SQL Given the database schema, here is the SQL query that answers `Which place has more area (km 2) than 34.42?`: ```sql
SELECT MIN("4_hoops_2_clubs") FROM "groups_all_around" WHERE "total"=38.25;
## Task Generate a SQL query to answer the following question: `What is the lowest 4 hoops, 2 clubs of the nation with a total of 38.25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "groups_all_around" ( "place" real, "nation" text, "6_ropes" real, "4_hoops_2_clubs" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest 4 hoops, 2 clubs of the nation with a total of 38.25?`: ```sql
SELECT COUNT("total") FROM "groups_all_around" WHERE "nation"='greece' AND "place">8;
## Task Generate a SQL query to answer the following question: `What is the total of Greece, which is placed below 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "groups_all_around" ( "place" real, "nation" text, "6_ropes" real, "4_hoops_2_clubs" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total of Greece, which is placed below 8?`: ```sql
SELECT SUM("place") FROM "groups_all_around" WHERE "6_ropes"=19.425 AND "nation"='russia' AND "total"<38.925;
## Task Generate a SQL query to answer the following question: `What is the palce number of Russia, which has 6 ropes of 19.425 and a total less than 38.925?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "groups_all_around" ( "place" real, "nation" text, "6_ropes" real, "4_hoops_2_clubs" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the palce number of Russia, which has 6 ropes of 19.425 and a total less than 38.925?`: ```sql
SELECT SUM("place") FROM "groups_all_around" WHERE "total">37.85 AND "4_hoops_2_clubs"=19.15;
## Task Generate a SQL query to answer the following question: `What is the place of the nation with a total greater than 37.85 and 4 hoops, 2 clubs of 19.15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "groups_all_around" ( "place" real, "nation" text, "6_ropes" real, "4_hoops_2_clubs" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the place of the nation with a total greater than 37.85 and 4 hoops, 2 clubs of 19.15?`: ```sql
SELECT MAX("4_hoops_2_clubs") FROM "groups_all_around" WHERE "nation"='belarus' AND "total"<38.25;
## Task Generate a SQL query to answer the following question: `What is the highest 4 hoops, 2 clubs of Belarus, which has a total less than 38.25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "groups_all_around" ( "place" real, "nation" text, "6_ropes" real, "4_hoops_2_clubs" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest 4 hoops, 2 clubs of Belarus, which has a total less than 38.25?`: ```sql
SELECT "total" FROM "groups_all_around" WHERE "4_hoops_2_clubs"=19.025;
## Task Generate a SQL query to answer the following question: `What is the total of the nation with 19.025 4 hoops, 2 clubs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "groups_all_around" ( "place" real, "nation" text, "6_ropes" real, "4_hoops_2_clubs" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total of the nation with 19.025 4 hoops, 2 clubs?`: ```sql
SELECT "nationality" FROM "kuopio" WHERE "name"='janne happonen';
## Task Generate a SQL query to answer the following question: `Which Nationality has a Name of janne happonen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kuopio" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "points" real, "overall_nt_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Nationality has a Name of janne happonen?`: ```sql
SELECT "nationality" FROM "kuopio" WHERE "rank">3 AND "name"='tom hilde';
## Task Generate a SQL query to answer the following question: `Which Nationality has a Rank larger than 3, and a Name of tom hilde?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kuopio" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "points" real, "overall_nt_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Nationality has a Rank larger than 3, and a Name of tom hilde?`: ```sql
SELECT "name" FROM "kuopio" WHERE "nationality"='nor' AND "points"=136;
## Task Generate a SQL query to answer the following question: `Which Name has a Nationality of nor, and Points of 136?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kuopio" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "points" real, "overall_nt_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Name has a Nationality of nor, and Points of 136?`: ```sql
SELECT AVG("points") FROM "kuopio" WHERE "1st_m"<132.5 AND "nationality"='aut' AND "rank">2;
## Task Generate a SQL query to answer the following question: `Which Points have a 1st (m) smaller than 132.5, and a Nationality of aut, and a Rank larger than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kuopio" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "points" real, "overall_nt_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Points have a 1st (m) smaller than 132.5, and a Nationality of aut, and a Rank larger than 2?`: ```sql
SELECT SUM("points") FROM "kuopio" WHERE "rank"=3 AND "1st_m"<132;
## Task Generate a SQL query to answer the following question: `Which Points have a Rank of 3, and a 1st (m) smaller than 132?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kuopio" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "points" real, "overall_nt_points" text, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Points have a Rank of 3, and a 1st (m) smaller than 132?`: ```sql
SELECT AVG("rank") FROM "men" WHERE "name"='wolfgang schwarz' AND "places">13;
## Task Generate a SQL query to answer the following question: `What was the average rank of Wolfgang Schwarz with greater than 13 places?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men" ( "rank" real, "name" text, "nation" text, "points" real, "places" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the average rank of Wolfgang Schwarz with greater than 13 places?`: ```sql
SELECT "nation" FROM "men" WHERE "points"=1399.3;
## Task Generate a SQL query to answer the following question: `What nation had 1399.3 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men" ( "rank" real, "name" text, "nation" text, "points" real, "places" real ); ### SQL Given the database schema, here is the SQL query that answers `What nation had 1399.3 points?`: ```sql
SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "time"='1:09';
## Task Generate a SQL query to answer the following question: `What is the lowest round number for the fight that had a time of 1:09?` ### 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 the lowest round number for the fight that had a time of 1:09?`: ```sql
SELECT SUM("overall") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num"<20 AND "round"<6;
## Task Generate a SQL query to answer the following question: `How much Overall has a Pick # smaller than 20, and a Round smaller than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How much Overall has a Pick # smaller than 20, and a Round smaller than 6?`: ```sql
SELECT AVG("round") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num">20 AND "college"='virginia' AND "overall">127;
## Task Generate a SQL query to answer the following question: `Which average Round has a Pick # larger than 20, and a College of virginia, and an Overall larger than 127?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which average Round has a Pick # larger than 20, and a College of virginia, and an Overall larger than 127?`: ```sql
SELECT COUNT("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "name"='chad owens';
## Task Generate a SQL query to answer the following question: `How many picks does chad owens have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many picks does chad owens have?`: ```sql
SELECT MIN("april") FROM "regular_season" WHERE "opponent"='new york rangers' AND "game"<82;
## Task Generate a SQL query to answer the following question: `What is the lowest value in April with New York Rangers as opponent for a game less than 82?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "april" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest value in April with New York Rangers as opponent for a game less than 82?`: ```sql
SELECT MAX("april") FROM "regular_season" WHERE "record"='35–37–11' AND "points">81;
## Task Generate a SQL query to answer the following question: `What is the highest value in April with a record of 35–37–11 and more than 81 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "april" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest value in April with a record of 35–37–11 and more than 81 points?`: ```sql
SELECT "record" FROM "game_log" WHERE "attendance">'4,719' AND "home"='blues';
## Task Generate a SQL query to answer the following question: `What is the record of the game played at home by the Blues where the attendance was larger than 4,719?` ### 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 `What is the record of the game played at home by the Blues where the attendance was larger than 4,719?`: ```sql
SELECT "winner" FROM "tournament_results" WHERE "score"='274 (–14)' AND "location"='tennessee';
## Task Generate a SQL query to answer the following question: `What is the name of the winner when the Score was 274 (–14) in tennessee?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the winner when the Score was 274 (–14) in tennessee?`: ```sql
SELECT "score" FROM "tournament_results" WHERE "1st_prize"='63,000' AND "winner"='keith fergus (1)';
## Task Generate a SQL query to answer the following question: `What is the Score when the 1st prize was 63,000, and a Winner of keith fergus (1)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Score when the 1st prize was 63,000, and a Winner of keith fergus (1)?`: ```sql
SELECT "winner" FROM "tournament_results" WHERE "tournament"='western open';
## Task Generate a SQL query to answer the following question: `What is the winners name at the western open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the winners name at the western open?`: ```sql
SELECT "score" FROM "tournament_results" WHERE "tournament"='danny thomas memphis classic';
## Task Generate a SQL query to answer the following question: `What is the score of the Tournament named danny thomas memphis classic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the Tournament named danny thomas memphis classic?`: ```sql
SELECT "winner" FROM "tournament_results" WHERE "location"='north carolina' AND "tournament"='greater greensboro open';
## Task Generate a SQL query to answer the following question: `What is the name of the Winner in north carolina at the greater greensboro open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the Winner in north carolina at the greater greensboro open?`: ```sql
SELECT "location" FROM "tournament_results" WHERE "tournament"='byron nelson golf classic';
## Task Generate a SQL query to answer the following question: `What is the Location of the byron nelson golf classic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Location of the byron nelson golf classic?`: ```sql
SELECT "position" FROM "players_of_the_week" WHERE "player"='tiffany garofano (2)';
## Task Generate a SQL query to answer the following question: `What is the position of player Tiffany Garofano (2)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players_of_the_week" ( "week" text, "division" text, "position" text, "player" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of player Tiffany Garofano (2)?`: ```sql
SELECT "week" FROM "players_of_the_week" WHERE "school"='ball state';
## Task Generate a SQL query to answer the following question: `What is the week with a school that is ball state?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players_of_the_week" ( "week" text, "division" text, "position" text, "player" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the week with a school that is ball state?`: ```sql
SELECT COUNT("last_runners_up") FROM "performance_of_indian_teams" WHERE "last_win"='1999' AND "runners_up">1;
## Task Generate a SQL query to answer the following question: `What number last Runners-up where there when the Last win was 1999 and the Runners-up was bigger than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_of_indian_teams" ( "club" text, "wins" real, "last_win" text, "runners_up" real, "last_runners_up" real ); ### SQL Given the database schema, here is the SQL query that answers `What number last Runners-up where there when the Last win was 1999 and the Runners-up was bigger than 1?`: ```sql
SELECT SUM("last_runners_up") FROM "performance_of_indian_teams" WHERE "club"='dempo sc';
## Task Generate a SQL query to answer the following question: `What is the number of Last Runners-up that has the club name of dempo sc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_of_indian_teams" ( "club" text, "wins" real, "last_win" text, "runners_up" real, "last_runners_up" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of Last Runners-up that has the club name of dempo sc?`: ```sql
SELECT "position" FROM "draft_picks" WHERE "round">6 AND "player"='neil pilon';
## Task Generate a SQL query to answer the following question: `Which Position has a Round larger than 6, and a Player of neil pilon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Position has a Round larger than 6, and a Player of neil pilon?`: ```sql
SELECT "nationality" FROM "draft_picks" WHERE "player"='rudy poeschek';
## Task Generate a SQL query to answer the following question: `Which Nationality has a Player of rudy poeschek?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Nationality has a Player of rudy poeschek?`: ```sql
SELECT "position" FROM "draft_picks" WHERE "player"='steve nemeth';
## Task Generate a SQL query to answer the following question: `Which Position has a Player of steve nemeth?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Position has a Player of steve nemeth?`: ```sql
SELECT "position" FROM "draft_picks" WHERE "nationality"='canada' AND "player"='pat janostin';
## Task Generate a SQL query to answer the following question: `Which Position has a Nationality of canada, and a Player of pat janostin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Position has a Nationality of canada, and a Player of pat janostin?`: ```sql
SELECT "score" FROM "doubles_runner_ups_6" WHERE "date"='april 23, 2007';
## Task Generate a SQL query to answer the following question: `What was the score of the match on April 23, 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_runner_ups_6" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the match on April 23, 2007?`: ```sql
SELECT "date" FROM "schedule" WHERE "game_site"='shea stadium' AND "week"=5;
## Task Generate a SQL query to answer the following question: `Which Date has a Game site of shea stadium, and a Week of 5?` ### 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, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a Game site of shea stadium, and a Week of 5?`: ```sql
SELECT MAX("attendance") FROM "schedule" WHERE "week"<9 AND "result"='l 24–23';
## Task Generate a SQL query to answer the following question: `Which Attendance is the highest one that has a Week smaller than 9, and a Result of l 24–23?` ### 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, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Attendance is the highest one that has a Week smaller than 9, and a Result of l 24–23?`: ```sql
SELECT AVG("week") FROM "schedule" WHERE "opponent"='baltimore colts' AND "attendance"<'55,137';
## Task Generate a SQL query to answer the following question: `Which Week has an Opponent of baltimore colts, and an Attendance smaller than 55,137?` ### 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, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Week has an Opponent of baltimore colts, and an Attendance smaller than 55,137?`: ```sql
SELECT AVG("game") FROM "regular_season" WHERE "points"=53 AND "opponent"='@ minnesota north stars' AND "december">30;
## Task Generate a SQL query to answer the following question: `Which Game has Points of 53, and an Opponent of @ minnesota north stars, and a December larger than 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Game has Points of 53, and an Opponent of @ minnesota north stars, and a December larger than 30?`: ```sql
SELECT AVG("december") FROM "regular_season" WHERE "record"='21–6–5';
## Task Generate a SQL query to answer the following question: `Which December has a Record of 21–6–5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which December has a Record of 21–6–5?`: ```sql
SELECT MAX("points") FROM "regular_season" WHERE "opponent"='@ pittsburgh penguins';
## Task Generate a SQL query to answer the following question: `Which Points have an Opponent of @ pittsburgh penguins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Points have an Opponent of @ pittsburgh penguins?`: ```sql
SELECT "year_startup" FROM "detailed_list_of_projects_for_2010" WHERE "project_name"='taq taq ph 2';
## Task Generate a SQL query to answer the following question: `What year was the startup for the Project Named of taq taq ph 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "detailed_list_of_projects_for_2010" ( "country" text, "project_name" text, "year_startup" text, "operator" text, "peak" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was the startup for the Project Named of taq taq ph 2?`: ```sql
SELECT "operator" FROM "detailed_list_of_projects_for_2010" WHERE "peak"='90' AND "year_startup"='2010' AND "project_name"='aosp expansion 1 (jackpine ph 1a)';
## Task Generate a SQL query to answer the following question: `What is the operator for peak 90, in startup year 2010 for the project named Aosp expansion 1 (jackpine ph 1a)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "detailed_list_of_projects_for_2010" ( "country" text, "project_name" text, "year_startup" text, "operator" text, "peak" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the operator for peak 90, in startup year 2010 for the project named Aosp expansion 1 (jackpine ph 1a)?`: ```sql
SELECT "country" FROM "detailed_list_of_projects_for_2010" WHERE "peak"='20' AND "project_name"='jarn yabhour; ramhan';
## Task Generate a SQL query to answer the following question: `What country has peak 20 and a project named jarn yabhour; ramhan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "detailed_list_of_projects_for_2010" ( "country" text, "project_name" text, "year_startup" text, "operator" text, "peak" text ); ### SQL Given the database schema, here is the SQL query that answers `What country has peak 20 and a project named jarn yabhour; ramhan?`: ```sql
SELECT COUNT("attendance") FROM "january" WHERE "opponent"='swindon wildcats';
## Task Generate a SQL query to answer the following question: `How much Attendance has an Opponent of swindon wildcats?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" real, "opponent" text, "venue" text, "result" text, "attendance" real, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `How much Attendance has an Opponent of swindon wildcats?`: ```sql
SELECT MIN("attendance") FROM "january" WHERE "venue"='away' AND "date"=19;
## Task Generate a SQL query to answer the following question: `Which Attendance is the lowest one that has a Venue of away, and a Date of 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" real, "opponent" text, "venue" text, "result" text, "attendance" real, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Attendance is the lowest one that has a Venue of away, and a Date of 19?`: ```sql
SELECT "venue" FROM "january" WHERE "result"='won 5-4';
## Task Generate a SQL query to answer the following question: `Which Venue has a Result of won 5-4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" real, "opponent" text, "venue" text, "result" text, "attendance" real, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Venue has a Result of won 5-4?`: ```sql
SELECT "country" FROM "structures_between_metres_ft_and_metres_" WHERE "town"='dubai';
## Task Generate a SQL query to answer the following question: `what country has dubai` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "structures_between_metres_ft_and_metres_" ( "planned_pinnacle_height" text, "expected_year_of_completion" real, "structural_type" text, "country" text, "town" text ); ### SQL Given the database schema, here is the SQL query that answers `what country has dubai`: ```sql
SELECT "country" FROM "structures_between_metres_ft_and_metres_" WHERE "town"='dubai';
## Task Generate a SQL query to answer the following question: `what country is dubai in` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "structures_between_metres_ft_and_metres_" ( "planned_pinnacle_height" text, "expected_year_of_completion" real, "structural_type" text, "country" text, "town" text ); ### SQL Given the database schema, here is the SQL query that answers `what country is dubai in`: ```sql
SELECT "home_team" FROM "series_summary" WHERE "date"='june 22';
## Task Generate a SQL query to answer the following question: `What home team has june 22 as the date?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `What home team has june 22 as the date?`: ```sql
SELECT "road_team" FROM "series_summary" WHERE "result"='86-84';
## Task Generate a SQL query to answer the following question: `What road team has 86-84 as the result?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `What road team has 86-84 as the result?`: ```sql
SELECT "road_team" FROM "series_summary" WHERE "result"='91-82';
## Task Generate a SQL query to answer the following question: `What road team has 91-82 as the result?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `What road team has 91-82 as the result?`: ```sql
SELECT "game" FROM "series_summary" WHERE "road_team"='houston' AND "date"='june 15';
## Task Generate a SQL query to answer the following question: `Which game has houston as the road team, and june 15 as the date?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `Which game has houston as the road team, and june 15 as the date?`: ```sql
SELECT "occupation" FROM "contestants" WHERE "hometown"='santa monica, california';
## Task Generate a SQL query to answer the following question: `What is listed under occupation for someone from Santa Monica, California?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "player" text, "hometown" text, "occupation" text, "education" text, "game_status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is listed under occupation for someone from Santa Monica, California?`: ```sql
SELECT "education" FROM "contestants" WHERE "hometown"='st. louis, missouri';
## Task Generate a SQL query to answer the following question: `For natives of St. Louis, Missouri, what was listed under education?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "player" text, "hometown" text, "occupation" text, "education" text, "game_status" text ); ### SQL Given the database schema, here is the SQL query that answers `For natives of St. Louis, Missouri, what was listed under education?`: ```sql
SELECT "game_status" FROM "contestants" WHERE "occupation"='utility worker on-air talent';
## Task Generate a SQL query to answer the following question: `When the occupation was utility worker on-air talent, what was the game status?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "player" text, "hometown" text, "occupation" text, "education" text, "game_status" text ); ### SQL Given the database schema, here is the SQL query that answers `When the occupation was utility worker on-air talent, what was the game status?`: ```sql
SELECT "2005" FROM "grand_slam_tournament_performance_timeli" WHERE "2004"='3–2';
## Task Generate a SQL query to answer the following question: `Which 2005 has a 2004 of 3–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text, "win_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `Which 2005 has a 2004 of 3–2?`: ```sql