question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Which Home Team has a Game of game 1?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "home_team" FROM "nba_finals" WHERE "game"='game 1';
2-17063996-4
Which Game has a Home Team of san francisco, and a Date of april 22?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "game" FROM "nba_finals" WHERE "home_team"='san francisco' AND "date"='april 22';
2-17063996-4
Which Road Team has a Home Team of boston, and a Result of 124-101?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "road_team" FROM "nba_finals" WHERE "home_team"='boston' AND "result"='124-101';
2-17063996-4
Which Game has a Home Team of san francisco, and a Date of april 22?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "game" FROM "nba_finals" WHERE "home_team"='san francisco' AND "date"='april 22';
2-17063996-4
Which Result has a Road Team of san francisco, and a Game of game 2?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "result" FROM "nba_finals" WHERE "road_team"='san francisco' AND "game"='game 2';
2-17063996-4
Which Home Team has a Result of 124-101?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "home_team" FROM "nba_finals" WHERE "result"='124-101';
2-17063996-4
What is the total attendance in a week less than 5 when the result was l 24-20?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT COUNT("attendance") FROM "schedule" WHERE "result"='l 24-20' AND "week"<5;
2-16713032-2
What is the largest week with the Atlanta Falcons as the opponent?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MAX("week") FROM "schedule" WHERE "opponent"='atlanta falcons';
2-16713032-2
What is the total attendance in a week greater than 1 with an opponent of Philadelphia Eagles?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT COUNT("attendance") FROM "schedule" WHERE "week">1 AND "opponent"='philadelphia eagles';
2-16713032-2
Which Score has an Opponent of washington capitals, and a Record of 24-34-17?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT "score" FROM "game_log" WHERE "opponent"='washington capitals' AND "record"='24-34-17';
2-17360840-9
Which Game has an Attendance smaller than 18,277, and Points of 64?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT MAX("game") FROM "game_log" WHERE "attendance"<'18,277' AND "points"=64;
2-17360840-9
Which Joined has a Nickname of knights, and an Enrollment larger than 2,960?
CREATE TABLE "members" ( "institution" text, "location" text, "nickname" text, "founded" real, "enrollment" real, "joined" real );
SELECT SUM("joined") FROM "members" WHERE "nickname"='knights' AND "enrollment">'2,960';
2-16734640-1
Which Nickname has an Enrollment smaller than 501, and a Location of clarkesville?
CREATE TABLE "members" ( "institution" text, "location" text, "nickname" text, "founded" real, "enrollment" real, "joined" real );
SELECT "nickname" FROM "members" WHERE "enrollment"<501 AND "location"='clarkesville';
2-16734640-1
Which Joined has an Institution of abraham baldwin agricultural college, and an Enrollment smaller than 3,284?
CREATE TABLE "members" ( "institution" text, "location" text, "nickname" text, "founded" real, "enrollment" real, "joined" real );
SELECT MAX("joined") FROM "members" WHERE "institution"='abraham baldwin agricultural college' AND "enrollment"<'3,284';
2-16734640-1
What is Home Team, when Away Team Score is 9.11 (65)?
CREATE TABLE "group_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real );
SELECT "home_team" FROM "group_4" WHERE "away_team_score"='9.11 (65)';
2-16388439-4
What is Away Team Score, when Ground is Optus Oval, and when Away Team is Fremantle?
CREATE TABLE "group_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real );
SELECT "away_team_score" FROM "group_4" WHERE "ground"='optus oval' AND "away_team"='fremantle';
2-16388439-4
What is Away Team, when Ground is Colonial Stadium?
CREATE TABLE "group_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real );
SELECT "away_team" FROM "group_4" WHERE "ground"='colonial stadium';
2-16388439-4
What is the sum of Crowd, when Date is Sunday, 4 March, and when Home Team Score is 22.13 (145)?
CREATE TABLE "group_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "date" text, "crowd" real );
SELECT SUM("crowd") FROM "group_4" WHERE "date"='sunday, 4 march' AND "home_team_score"='22.13 (145)';
2-16388439-4
A score of 71-71=142 earned what place?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "second_round" WHERE "score"='71-71=142';
2-17128242-5
What was José María Olazábal's score?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "player"='josé maría olazábal';
2-17128242-5
What team was the opponent on October 15, 1967?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "opponent" FROM "schedule" WHERE "date"='october 15, 1967';
2-16661087-1
What was the lowest attendance when the Green Bay Packers played?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MIN("attendance") FROM "schedule" WHERE "opponent"='green bay packers';
2-16661087-1
What was the week number when a game was played on November 19, 1967?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MIN("week") FROM "schedule" WHERE "date"='november 19, 1967';
2-16661087-1
If a team has a grid of over 8 with less than 4 points, what's the team name?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT "team" FROM "race" WHERE "grid">8 AND "points"<4;
2-16789804-2
When Patrick Carpentier is driving and has less than 19 points with 90 laps, what team is racing?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT "team" FROM "race" WHERE "laps"=90 AND "points"<19 AND "driver"='patrick carpentier';
2-16789804-2
What was the score where the total points was 50?
CREATE TABLE "highest_scoring_grand_finals" ( "total_points" real, "score" text, "premiers" text, "runners_up" text, "details" text );
SELECT "score" FROM "highest_scoring_grand_finals" WHERE "total_points"=50;
2-16633950-3
For the match that had detail of 2001 nrl grand final, what was the lowest total points?
CREATE TABLE "highest_scoring_grand_finals" ( "total_points" real, "score" text, "premiers" text, "runners_up" text, "details" text );
SELECT MIN("total_points") FROM "highest_scoring_grand_finals" WHERE "details"='2001 nrl grand final';
2-16633950-3
Which average Game has a High points of wilson chandler (16)?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT AVG("game") FROM "game_log" WHERE "high_points"='wilson chandler (16)';
2-17060277-10
Which Score has a Game larger than 76, a Location Attendance of madison square garden 19,763, and a High rebounds of wilson chandler (8)?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "score" FROM "game_log" WHERE "game">76 AND "location_attendance"='madison square garden 19,763' AND "high_rebounds"='wilson chandler (8)';
2-17060277-10
Which Team has a Record of 32–50?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "team" FROM "game_log" WHERE "record"='32–50';
2-17060277-10
Which Date has a Record of 29–47?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "date" FROM "game_log" WHERE "record"='29–47';
2-17060277-10
Which Date has a Location Attendance of madison square garden 19,763, and a High rebounds of david lee (12)?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "date" FROM "game_log" WHERE "location_attendance"='madison square garden 19,763' AND "high_rebounds"='david lee (12)';
2-17060277-10
Which Record has a Score of w 107–102 (ot)?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "score"='w 107–102 (ot)';
2-17288869-7
Which Team has a Location Attendance of fedexforum 11,731?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "team" FROM "game_log" WHERE "location_attendance"='fedexforum 11,731';
2-17288869-7
Which Record has a Score of l 97–99 (ot)?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "score"='l 97–99 (ot)';
2-17288869-7
What is game 34's record?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "game"=34;
2-17288869-7
What were the high assist on january 2?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "high_assists" FROM "game_log" WHERE "date"='january 2';
2-17288869-7
Who was the director that had a film titled "Floating Life"?
CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "language_s" text, "director" text, "result" text );
SELECT "director" FROM "submissions" WHERE "film_title_used_in_nomination"='floating life';
2-16254861-1
Can you tell me the total number of Played that has the Position larger than 5, and the Points of 11, and the Drawn smaller than 1?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT COUNT("played") FROM "first_round" WHERE "position">5 AND "points"=11 AND "drawn"<1;
2-16566850-13
Can you tell me the highest Played that has the Points larger than 11, and the Lost larger than 7?
CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real );
SELECT MAX("played") FROM "first_round" WHERE "points">11 AND "lost">7;
2-16566850-13
What was Dave Hill's score?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "player"='dave hill';
2-17277136-4
What is the to par of Al Mengert of the United States?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "country"='united states' AND "player"='al mengert';
2-17277136-4
What is the score of T5 place in the United States?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "country"='united states' AND "place"='t5';
2-17277136-4
Who was the player from the United States in T10 place with a score of 67-77=144?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "second_round" WHERE "country"='united states' AND "place"='t10' AND "score"='67-77=144';
2-17277136-4
What was Billy Casper's to par?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "player"='billy casper';
2-17277136-4
What is the sum of Wins, when Played is less than 5?
CREATE TABLE "tournament_summary" ( "rank" real, "team" text, "played" real, "wins" real, "ties" real, "losses" real, "points" real );
SELECT SUM("wins") FROM "tournament_summary" WHERE "played"<5;
2-16745556-1
What is the highest Wins, when Rank is greater than 2, and when Played is less than 5?
CREATE TABLE "tournament_summary" ( "rank" real, "team" text, "played" real, "wins" real, "ties" real, "losses" real, "points" real );
SELECT MAX("wins") FROM "tournament_summary" WHERE "rank">2 AND "played"<5;
2-16745556-1
What is the sum of Wins, when Team is Sweden, and when Played is less than 5?
CREATE TABLE "tournament_summary" ( "rank" real, "team" text, "played" real, "wins" real, "ties" real, "losses" real, "points" real );
SELECT SUM("wins") FROM "tournament_summary" WHERE "team"='sweden' AND "played"<5;
2-16745556-1
What is the highest Points, when Played is greater than 5?
CREATE TABLE "tournament_summary" ( "rank" real, "team" text, "played" real, "wins" real, "ties" real, "losses" real, "points" real );
SELECT MAX("points") FROM "tournament_summary" WHERE "played">5;
2-16745556-1
What is the average Ties, when Played is greater than 5?
CREATE TABLE "tournament_summary" ( "rank" real, "team" text, "played" real, "wins" real, "ties" real, "losses" real, "points" real );
SELECT AVG("ties") FROM "tournament_summary" WHERE "played">5;
2-16745556-1
What is Date, when Runner(s)-Up is Oliver Wilson?
CREATE TABLE "european_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "date" FROM "european_tour_wins_12" WHERE "runner_s_up"='oliver wilson';
2-1621984-3
What is Date, when Margin Of Victory is 4 Strokes?
CREATE TABLE "european_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "date" FROM "european_tour_wins_12" WHERE "margin_of_victory"='4 strokes';
2-1621984-3
What is Runner(s)-up, when Date is 21 Jan 2007?
CREATE TABLE "european_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "runner_s_up" FROM "european_tour_wins_12" WHERE "date"='21 jan 2007';
2-1621984-3
What is Tournament, when Margin Of Victory is 1 Stroke, and when Date is 18 Jan 2009?
CREATE TABLE "european_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );
SELECT "tournament" FROM "european_tour_wins_12" WHERE "margin_of_victory"='1 stroke' AND "date"='18 jan 2009';
2-1621984-3
what is the U.S. senate when the year is after 2002 and the party is working families?
CREATE TABLE "statewide_tickets_on_which_spitzer_has_r" ( "year" real, "party" text, "governor" text, "lieutenant_governor" text, "comptroller" text, "attorney_general" text, "u_s_senate" text );
SELECT "u_s_senate" FROM "statewide_tickets_on_which_spitzer_has_r" WHERE "year">2002 AND "party"='working families';
2-16297373-1
How many times what the comptroller alan hevesi and the party working families?
CREATE TABLE "statewide_tickets_on_which_spitzer_has_r" ( "year" real, "party" text, "governor" text, "lieutenant_governor" text, "comptroller" text, "attorney_general" text, "u_s_senate" text );
SELECT COUNT("year") FROM "statewide_tickets_on_which_spitzer_has_r" WHERE "comptroller"='alan hevesi' AND "party"='working families';
2-16297373-1
What is the highest number of points of the game in Conseco fieldhouse 7,134?
CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "high_points" FROM "regular_season" WHERE "location_attendance"='conseco fieldhouse 7,134';
2-17118657-8
What is the highest number of rebounds of the game with a 6-14 record?
CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "high_rebounds" FROM "regular_season" WHERE "record"='6-14';
2-17118657-8
Can you tell me the Record that has the Points larger than 23, and the Attendance larger than 4,017, and the Date of january 18?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real );
SELECT "record" FROM "game_log" WHERE "points">23 AND "attendance">'4,017' AND "date"='january 18';
2-17190456-5
Can you tell me the Record that has the Visitor of pittsburgh, and the Points smaller than 27, and the Home of boston?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real );
SELECT "record" FROM "game_log" WHERE "visitor"='pittsburgh' AND "points"<27 AND "home"='boston';
2-17190456-5
Can you tell me the average Points that has the Attendance of 3,806?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real );
SELECT AVG("points") FROM "game_log" WHERE "attendance"='3,806';
2-17190456-5
Which opponent had 38,642 attendance?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "opponent" FROM "schedule" WHERE "attendance"='38,642';
2-16779956-2
What date had 51,265 attendance?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "date" FROM "schedule" WHERE "attendance"='51,265';
2-16779956-2
When 7th place, what is the date?
CREATE TABLE "world_cup_top_twenty_finishes" ( "season" real, "date" text, "location" text, "race" text, "place" text );
SELECT "date" FROM "world_cup_top_twenty_finishes" WHERE "place"='7th';
2-16891410-1
What is the score of game 34?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "score" FROM "game_log" WHERE "game"=34;
2-17325580-7
What is the record of game 33?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "game"=33;
2-17325580-7
What is the Country, when Place is "T4", and when Player is "Scott Simpson"?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "country" FROM "first_round" WHERE "place"='t4' AND "player"='scott simpson';
2-17231125-4
What is To Par, when Score is 70, and when Player is "Craig Stadler"?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "to_par" FROM "first_round" WHERE "score"=70 AND "player"='craig stadler';
2-17231125-4
What is Player, when Score is less than 69, and when Country is "United States"?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "player" FROM "first_round" WHERE "score"<69 AND "country"='united states';
2-17231125-4
Who was the writer that the director was Alice Troughton and the producer was Phil Collinson?
CREATE TABLE "production" ( "block" real, "episode_title" text, "director" text, "writer" text, "producer" text, "code" text );
SELECT "writer" FROM "production" WHERE "producer"='phil collinson' AND "director"='alice troughton';
2-16731098-3
What is the location and attendance after game 2, and the team New Orleans?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "location_attendance" FROM "game_log" WHERE "game">2 AND "team"='new orleans';
2-17355408-10
What is Teleplay, when Season is greater than 1.1, and when First Broadcast is "February 20, 1981"?
CREATE TABLE "episodes" ( "title" text, "season" real, "director" text, "teleplay" text, "first_broadcast" text );
SELECT "teleplay" FROM "episodes" WHERE "season">1.1 AND "first_broadcast"='february 20, 1981';
2-17189526-1
What is Title, when Season is less than 1.8, and when First Broadcast is March 6, 1981?
CREATE TABLE "episodes" ( "title" text, "season" real, "director" text, "teleplay" text, "first_broadcast" text );
SELECT "title" FROM "episodes" WHERE "season"<1.8 AND "first_broadcast"='march 6, 1981';
2-17189526-1
What is Director, when Season is 1.4?
CREATE TABLE "episodes" ( "title" text, "season" real, "director" text, "teleplay" text, "first_broadcast" text );
SELECT "director" FROM "episodes" WHERE "season"=1.4;
2-17189526-1
What is Teleplay, when Director is "George McCowan", when Season is less than 1.1400000000000001, and when First Broadcast is April 3, 1981?
CREATE TABLE "episodes" ( "title" text, "season" real, "director" text, "teleplay" text, "first_broadcast" text );
SELECT "teleplay" FROM "episodes" WHERE "director"='george mccowan' AND "season"<1.1400000000000001 AND "first_broadcast"='april 3, 1981';
2-17189526-1
What is the average Season, when First Broadcast is January 23, 1981?
CREATE TABLE "episodes" ( "title" text, "season" real, "director" text, "teleplay" text, "first_broadcast" text );
SELECT AVG("season") FROM "episodes" WHERE "first_broadcast"='january 23, 1981';
2-17189526-1
What is Teleplay, when First Broadcast is April 10, 1981?
CREATE TABLE "episodes" ( "title" text, "season" real, "director" text, "teleplay" text, "first_broadcast" text );
SELECT "teleplay" FROM "episodes" WHERE "first_broadcast"='april 10, 1981';
2-17189526-1
What the H/A when the opponent is the Bohemians?
CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );
SELECT "h_a" FROM "pre_season_and_friendlies" WHERE "opponents"='bohemians';
2-17577133-1
What is the attendance when Cork City is the opponent?
CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );
SELECT AVG("attendance") FROM "pre_season_and_friendlies" WHERE "opponents"='cork city';
2-17577133-1
What is the H/A when Cork City is the opponent?
CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );
SELECT "h_a" FROM "pre_season_and_friendlies" WHERE "opponents"='cork city';
2-17577133-1
What is the H/A on 5 August 1990?
CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );
SELECT "h_a" FROM "pre_season_and_friendlies" WHERE "date"='5 august 1990';
2-17577133-1
What is the result F-A on 5 August 1990?
CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real );
SELECT "result_f_a" FROM "pre_season_and_friendlies" WHERE "date"='5 august 1990';
2-17577133-1
What is the value for internal floppy disk with s-100 slots greater than 8 introduced earlier than 1978?
CREATE TABLE "cromemco_s_100_microcomputer_systems_z_8" ( "system" text, "year_introduced" real, "s_100_slots" real, "internal_floppy_disk" text, "internal_hard_disk" text );
SELECT "internal_floppy_disk" FROM "cromemco_s_100_microcomputer_systems_z_8" WHERE "s_100_slots">8 AND "year_introduced"<1978;
2-16254057-1
Which system introduced earlier than 1981 has an internal hard disk of 11 megabytes and less than 21 s-100 slots?
CREATE TABLE "cromemco_s_100_microcomputer_systems_z_8" ( "system" text, "year_introduced" real, "s_100_slots" real, "internal_floppy_disk" text, "internal_hard_disk" text );
SELECT "system" FROM "cromemco_s_100_microcomputer_systems_z_8" WHERE "s_100_slots"<21 AND "year_introduced"<1981 AND "internal_hard_disk"='11 megabytes';
2-16254057-1
What college did Marcus Wilson attend?
CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );
SELECT "college" FROM "nfl_draft" WHERE "player"='marcus wilson';
2-16376436-1
Who is the player that attended Notre Dame with a pick smaller than 304?
CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );
SELECT "player" FROM "nfl_draft" WHERE "pick_num"<304 AND "college"='notre dame';
2-16376436-1
What college did Leon Perry attend?
CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );
SELECT "college" FROM "nfl_draft" WHERE "player"='leon perry';
2-16376436-1
What NFL team did the Tight End position belong to?
CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text );
SELECT "nfl_team" FROM "nfl_draft" WHERE "position"='tight end';
2-16376436-1
What is the total number of weeks that the buffalo bills played against the San Diego Chargers?
CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT SUM("week") FROM "season_schedule" WHERE "opponent"='san diego chargers';
2-16982980-2
What is the attendance of the game that had a date listed as Bye?
CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "attendance" FROM "season_schedule" WHERE "date"='bye';
2-16982980-2
How many weeks were there games with 41,384 fans in attendance?
CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT SUM("week") FROM "season_schedule" WHERE "attendance"='41,384';
2-16982980-2
What is the lowest week number that had a game on December 3, 1967?
CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT MIN("week") FROM "season_schedule" WHERE "date"='december 3, 1967';
2-16982980-2
What was the result of the game that had 20,627 fans in attendance?
CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "result" FROM "season_schedule" WHERE "attendance"='20,627';
2-16982980-2
Who is the rider with 22 laps and a +19.435 time/retired?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );
SELECT "rider" FROM "moto_gp_classification" WHERE "laps"='22' AND "time_retired"='+19.435';
2-17214263-1
What is the grid with a yamaha manufacturer and a +19.435 time/retired?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );
SELECT "grid" FROM "moto_gp_classification" WHERE "manufacturer"='yamaha' AND "time_retired"='+19.435';
2-17214263-1
What is the grid of rider shinya nakano?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );
SELECT "grid" FROM "moto_gp_classification" WHERE "rider"='shinya nakano';
2-17214263-1
Who is the rider with 22 laps and a +1:44.775 time/retired?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );
SELECT "rider" FROM "moto_gp_classification" WHERE "laps"='22' AND "time_retired"='+1:44.775';
2-17214263-1
What is the manufacturer with a 14 grid?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );
SELECT "manufacturer" FROM "moto_gp_classification" WHERE "grid"='14';
2-17214263-1
Who is the rider with a yamaha manufacturer and a 17 grid?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );
SELECT "rider" FROM "moto_gp_classification" WHERE "manufacturer"='yamaha' AND "grid"='17';
2-17214263-1
What is the total of attendance at Venue h when Auxerre were playing?
CREATE TABLE "uefa_champions_league" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT SUM("attendance") FROM "uefa_champions_league" WHERE "venue"='h' AND "opponent"='auxerre';
2-16618361-4