question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
When were both the crowd larger than 15,000 and the Away team score of 9.11 (65)?
CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_13" WHERE "crowd">'15,000' AND "away_team_score"='9.11 (65)';
2-10746200-13
What was the attendance at the Meadowlands against the New England Patriots?
CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text );
SELECT "attendance" FROM "regular_season" WHERE "game_site"='the meadowlands' AND "opponent"='new england patriots';
2-10768951-1
What game did Jets have an attendance of 78,722?
CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text );
SELECT "game_site" FROM "regular_season" WHERE "attendance"='78,722';
2-10768951-1
Which home team corresponds to an away team score of 5.10 (40)?
CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_16" WHERE "away_team_score"='5.10 (40)';
2-10750694-16
What is the largest crowd for an away team score of 8.7 (55)?
CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MAX("crowd") FROM "round_16" WHERE "away_team_score"='8.7 (55)';
2-10750694-16
Which venue hosted a home team with a score of 11.16 (82)?
CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_16" WHERE "home_team_score"='11.16 (82)';
2-10750694-16
Which away team has a team score of 12.11 (83)?
CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_16" WHERE "away_team_score"='12.11 (83)';
2-10750694-16
Who played the Rams on October 2, 2005?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "opponent" FROM "schedule" WHERE "date"='october 2, 2005';
2-10653676-1
What was the attendance of the game on December 11, 2005?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "attendance" FROM "schedule" WHERE "date"='december 11, 2005';
2-10653676-1
What was the result of the game played in front of 65,473?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "attendance"='65,473';
2-10653676-1
How large was the crowd at Carlton's home game?
CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT COUNT("crowd") FROM "round_11" WHERE "home_team"='carlton';
2-10767118-11
On what date did the away team score 12.9 (81)?
CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_11" WHERE "away_team_score"='12.9 (81)';
2-10767118-11
What was the score when St Kilda played as the home team?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_14" WHERE "home_team"='st kilda';
2-10774891-14
What was the crowd when the VFL played Windy Hill?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT SUM("crowd") FROM "round_14" WHERE "venue"='windy hill';
2-10774891-14
What was Carlton's score when they were the away team?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_6" WHERE "away_team"='carlton';
2-10766119-6
What was the sum of the crowds in the matches where the away team scored 11.8 (74)?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT SUM("crowd") FROM "round_6" WHERE "away_team_score"='11.8 (74)';
2-10766119-6
What was the away team that played at Corio Oval?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_6" WHERE "venue"='corio oval';
2-10766119-6
Which Home team faced the Away team, Hawthorn?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_12" WHERE "away_team"='hawthorn';
2-10766119-12
Which Away team scored 12.17 (89) when the crowd was larger than 17,000?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_12" WHERE "crowd">'17,000' AND "away_team_score"='12.17 (89)';
2-10766119-12
What was the Home team's score when the Away team scored 12.6 (78)?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_12" WHERE "away_team_score"='12.6 (78)';
2-10766119-12
What was the Home team's score when the Venue was mcg?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_12" WHERE "venue"='mcg';
2-10766119-12
What is the division in the season more recent than 2012 when the round of 16 was reached in the FA Cup?
CREATE TABLE "records" ( "season" real, "division" real, "tms" real, "pos" real, "fa_cup" text );
SELECT COUNT("division") FROM "records" WHERE "fa_cup"='round of 16' AND "season">2012;
2-1056492-3
What is the division in the season with 13 tms and pos smaller than 8?
CREATE TABLE "records" ( "season" real, "division" real, "tms" real, "pos" real, "fa_cup" text );
SELECT COUNT("division") FROM "records" WHERE "tms"=13 AND "pos"<8;
2-1056492-3
What is the population of the county with an area of 9,378 km² and a population density larger than 46.7?
CREATE TABLE "by_density" ( "rank" text, "county" text, "population_2011" real, "area_km" real, "density_2011" real );
SELECT MIN("population_2011") FROM "by_density" WHERE "area_km"='9,378' AND "density_2011">46.7;
2-1064198-5
Of the games before week 3 which had attendance great than 65,904?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "date" FROM "schedule" WHERE "week"<3 AND "attendance">'65,904';
2-10648345-1
What was the first week to have attendance of 65,866?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MIN("week") FROM "schedule" WHERE "attendance"='65,866';
2-10648345-1
Where is the Belhaven College SSAC conference location?
CREATE TABLE "former_members" ( "institution" text, "location" text, "men_s_nickname" text, "women_s_nickname" text, "founded" real, "type" text, "enrollment" real, "joined" text, "left" text, "current_conference" text, "classification" text );
SELECT "location" FROM "former_members" WHERE "current_conference"='ssac' AND "institution"='belhaven college';
2-10577579-3
What American Southwest Conference school was founded in 1883?
CREATE TABLE "former_members" ( "institution" text, "location" text, "men_s_nickname" text, "women_s_nickname" text, "founded" real, "type" text, "enrollment" real, "joined" text, "left" text, "current_conference" text, "classification" text );
SELECT "institution" FROM "former_members" WHERE "founded">1883 AND "current_conference"='american southwest';
2-10577579-3
Which League showed 7,975 for an average attendance?
CREATE TABLE "year_by_year" ( "year" text, "league" text, "reg_season" text, "playoffs" text, "attendance_average" text );
SELECT "league" FROM "year_by_year" WHERE "attendance_average"='7,975';
2-1051999-2
What is the average attendance of the team that had a regular season result of 2nd aisa, 24-16?
CREATE TABLE "year_by_year" ( "year" text, "league" text, "reg_season" text, "playoffs" text, "attendance_average" text );
SELECT "attendance_average" FROM "year_by_year" WHERE "reg_season"='2nd aisa, 24-16';
2-1051999-2
Who won Group VI, when Group 1 was won by deportivo, group IV by sevilla, and group III by Valencia?
CREATE TABLE "champions" ( "season" text, "group_i" text, "group_ii" text, "group_iii" text, "group_iv" text, "group_v" text, "group_vi" text );
SELECT "group_vi" FROM "champions" WHERE "group_i"='deportivo' AND "group_iv"='sevilla' AND "group_iii"='valencia';
2-10581565-1
Who won group III when group 1 was of the racing club?
CREATE TABLE "champions" ( "season" text, "group_i" text, "group_ii" text, "group_iii" text, "group_iv" text, "group_v" text, "group_vi" text );
SELECT "group_iii" FROM "champions" WHERE "group_i"='racing club';
2-10581565-1
What season has Group IV Sevilla, Group VI las palmas, group III barcelona, and group 1 sporting?
CREATE TABLE "champions" ( "season" text, "group_i" text, "group_ii" text, "group_iii" text, "group_iv" text, "group_v" text, "group_vi" text );
SELECT "season" FROM "champions" WHERE "group_iv"='sevilla' AND "group_vi"='las palmas' AND "group_iii"='barcelona' AND "group_i"='sporting';
2-10581565-1
Which team is John Williams a rider for?
CREATE TABLE "1971_isle_of_man_production_500_cc_tt_fi" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );
SELECT "team" FROM "1971_isle_of_man_production_500_cc_tt_fi" WHERE "rider"='john williams';
2-10638654-7
How big was the crowd when Geelong was the home team?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT COUNT("crowd") FROM "round_1" WHERE "home_team"='geelong';
2-10767641-1
Where was the game when the away team scored 11.6 (72)?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_1" WHERE "away_team_score"='11.6 (72)';
2-10767641-1
Who was the away team when Hawthorn was the home team?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_1" WHERE "home_team"='hawthorn';
2-10767641-1
Who was the away team when the home team scored 9.16 (70)?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_1" WHERE "home_team_score"='9.16 (70)';
2-10767641-1
What is the total in the case where theere are 6 lecturers and fewer than 48 professors?
CREATE TABLE "ntua_academic_staff_per_school" ( "lecturers" real, "associate_professors" real, "assistant_professors" real, "professors" real, "total" real );
SELECT AVG("total") FROM "ntua_academic_staff_per_school" WHERE "lecturers"=6 AND "professors"<48;
2-1064216-1
What is the total in the case when there are more than 4 associate professors, 5 lecturers and fewer professors than 40?
CREATE TABLE "ntua_academic_staff_per_school" ( "lecturers" real, "associate_professors" real, "assistant_professors" real, "professors" real, "total" real );
SELECT COUNT("total") FROM "ntua_academic_staff_per_school" WHERE "associate_professors">4 AND "lecturers"=5 AND "professors"<40;
2-1064216-1
How may lecturers are there in the case when there are more than 8 assistant professors, fewer than 35 associate professors, more than 14 professors and total of more than 81?
CREATE TABLE "ntua_academic_staff_per_school" ( "lecturers" real, "associate_professors" real, "assistant_professors" real, "professors" real, "total" real );
SELECT COUNT("lecturers") FROM "ntua_academic_staff_per_school" WHERE "assistant_professors">8 AND "professors">14 AND "associate_professors"<35 AND "total">81;
2-1064216-1
What is the maximum number of associate professors when there are more than 5 assistant professors and fewer than 14 professors?
CREATE TABLE "ntua_academic_staff_per_school" ( "lecturers" real, "associate_professors" real, "assistant_professors" real, "professors" real, "total" real );
SELECT MAX("associate_professors") FROM "ntua_academic_staff_per_school" WHERE "assistant_professors">5 AND "professors"<14;
2-1064216-1
Which country has the banglavision Network?
CREATE TABLE "malaysia" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text );
SELECT "origin_of_programming" FROM "malaysia" WHERE "network"='banglavision';
2-10503963-3
Which general service in India is a part of the zee variasi network?
CREATE TABLE "malaysia" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text );
SELECT "service" FROM "malaysia" WHERE "origin_of_programming"='india' AND "genre"='general' AND "network"='zee variasi';
2-10503963-3
Which sliding tackle has no dump tackle and a restricted shoulder charge?
CREATE TABLE "allowable_tackle_types" ( "sliding_tackle" text, "spear_tackle" text, "dump_tackle" text, "body_tackle" text, "ankle_tap" text, "diving_tackle" text, "bumping_blocking" text, "shoulder_charge" text, "steal_intercept_ball" text, "chicken_wing" text );
SELECT "sliding_tackle" FROM "allowable_tackle_types" WHERE "dump_tackle"='no' AND "shoulder_charge"='restricted';
2-10667-1
Which bumping/blocking has a yes for both the ankle tap and steal/intercept ball?
CREATE TABLE "allowable_tackle_types" ( "sliding_tackle" text, "spear_tackle" text, "dump_tackle" text, "body_tackle" text, "ankle_tap" text, "diving_tackle" text, "bumping_blocking" text, "shoulder_charge" text, "steal_intercept_ball" text, "chicken_wing" text );
SELECT "bumping_blocking" FROM "allowable_tackle_types" WHERE "ankle_tap"='yes' AND "steal_intercept_ball"='yes';
2-10667-1
Which body tackle has yes for the diving tackle and the sliding tackle classified as a trip?
CREATE TABLE "allowable_tackle_types" ( "sliding_tackle" text, "spear_tackle" text, "dump_tackle" text, "body_tackle" text, "ankle_tap" text, "diving_tackle" text, "bumping_blocking" text, "shoulder_charge" text, "steal_intercept_ball" text, "chicken_wing" text );
SELECT "body_tackle" FROM "allowable_tackle_types" WHERE "diving_tackle"='yes' AND "sliding_tackle"='classified as a trip';
2-10667-1
Which Chicken wing has no steal/intercept ball?
CREATE TABLE "allowable_tackle_types" ( "sliding_tackle" text, "spear_tackle" text, "dump_tackle" text, "body_tackle" text, "ankle_tap" text, "diving_tackle" text, "bumping_blocking" text, "shoulder_charge" text, "steal_intercept_ball" text, "chicken_wing" text );
SELECT "chicken_wing" FROM "allowable_tackle_types" WHERE "steal_intercept_ball"='no';
2-10667-1
Which steal/intercept ball has no for both the sliding tackle and dump tackle?
CREATE TABLE "allowable_tackle_types" ( "sliding_tackle" text, "spear_tackle" text, "dump_tackle" text, "body_tackle" text, "ankle_tap" text, "diving_tackle" text, "bumping_blocking" text, "shoulder_charge" text, "steal_intercept_ball" text, "chicken_wing" text );
SELECT "steal_intercept_ball" FROM "allowable_tackle_types" WHERE "sliding_tackle"='no' AND "dump_tackle"='no';
2-10667-1
Which shoulder charge has restricted as the body tackle?
CREATE TABLE "allowable_tackle_types" ( "sliding_tackle" text, "spear_tackle" text, "dump_tackle" text, "body_tackle" text, "ankle_tap" text, "diving_tackle" text, "bumping_blocking" text, "shoulder_charge" text, "steal_intercept_ball" text, "chicken_wing" text );
SELECT "shoulder_charge" FROM "allowable_tackle_types" WHERE "body_tackle"='restricted';
2-10667-1
Which player has West Virginia listed as their school/country?
CREATE TABLE "e" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text );
SELECT "player" FROM "e" WHERE "school_country"='west virginia';
2-10560886-6
Which player played the guard position from 1968?
CREATE TABLE "e" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text );
SELECT "player" FROM "e" WHERE "position"='guard' AND "from"='1968';
2-10560886-6
What is the total crowd size when the away team scores 14.6 (90)?
CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT SUM("crowd") FROM "round_2" WHERE "away_team_score"='14.6 (90)';
2-10775890-2
What is the average crowd size when fitzroy plays at home?
CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT AVG("crowd") FROM "round_2" WHERE "home_team"='fitzroy';
2-10775890-2
What is the result of the election with 3,871 total votes?
CREATE TABLE "mayors" ( "election" text, "date_of_election" text, "candidates" text, "results" text, "total_votes" real );
SELECT "results" FROM "mayors" WHERE "total_votes">'3,871';
2-107226-3
What is the lowest number of bids in the Missouri Valley conference?
CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" real, "round_of_32" real, "sweet_sixteen" real, "elite_eight" real, "final_four" real, "championship_game" real );
SELECT MIN("num_of_bids") FROM "record_by_conference" WHERE "conference"='missouri valley';
2-10722506-6
What was the attendance on the bye week?
CREATE TABLE "game_by_game_results" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "attendance" FROM "game_by_game_results" WHERE "date"='bye';
2-10646620-1
What was the last week when the team had a bye week?
CREATE TABLE "game_by_game_results" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT MAX("week") FROM "game_by_game_results" WHERE "result"='bye';
2-10646620-1
Where was the game held where North Melbourne was the away team?
CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_9" WHERE "away_team"='north melbourne';
2-10701045-9
Who was the away team who scored 9.7 (61)?
CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_9" WHERE "away_team_score"='9.7 (61)';
2-10701045-9
What was the smallest crowd for a game where the home team scored 11.18 (84)?
CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MIN("crowd") FROM "round_9" WHERE "home_team_score"='11.18 (84)';
2-10701045-9
What was the smallest crowd size for a home game for Richmond?
CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MIN("crowd") FROM "round_9" WHERE "home_team"='richmond';
2-10701045-9
When did the 1966 Cleveland Browns play the Green Bay Packers?
CREATE TABLE "regular_season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "date" FROM "regular_season_schedule" WHERE "opponent"='green bay packers';
2-10651967-3
What was the away team score for the game where the home team scored 11.13 (79)?
CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_8" WHERE "home_team_score"='11.13 (79)';
2-10775038-8
Who was the home team that scored 19.15 (129) on 15 June 1959?
CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_8" WHERE "date"='15 june 1959' AND "home_team_score"='19.15 (129)';
2-10775038-8
How many points did South Melbourne score as the home team?
CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_8" WHERE "home_team"='south melbourne';
2-10775038-8
What was the home team's score when the away team scored 9.12 (66)?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_4" WHERE "away_team_score"='9.12 (66)';
2-10746808-4
On what date was the home team Footscray?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_4" WHERE "home_team"='footscray';
2-10746808-4
What was the average crowd size when the home team scored 9.8 (62)?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT AVG("crowd") FROM "round_4" WHERE "home_team_score"='9.8 (62)';
2-10746808-4
What was the home team when the away team scored 7.16 (58)?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_4" WHERE "away_team_score"='7.16 (58)';
2-10746808-4
What is the average amount of goals that have a goal difference or 8 and the losses are smaller than 12?
CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "points" real, "goal_difference" real );
SELECT AVG("goals_for") FROM "final_table" WHERE "goal_difference"=8 AND "losses"<12;
2-10533828-2
How many goals have a Lokomotiv Plovdiv club and goals against larger than 58?
CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "points" real, "goal_difference" real );
SELECT COUNT("goals_for") FROM "final_table" WHERE "club"='lokomotiv plovdiv' AND "goals_against">58;
2-10533828-2
What is the average goal difference using slavia sofia club?
CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "points" real, "goal_difference" real );
SELECT AVG("goal_difference") FROM "final_table" WHERE "club"='slavia sofia';
2-10533828-2
What is the played average that has botev plovdiv as the club and wins larger than 11?
CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "points" real, "goal_difference" real );
SELECT AVG("played") FROM "final_table" WHERE "club"='botev plovdiv' AND "wins">11;
2-10533828-2
Where did they play on their bye week?
CREATE TABLE "regular_season" ( "week" real, "kickoff" text, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "nfl_com_recap" text );
SELECT "game_site" FROM "regular_season" WHERE "record"='bye';
2-10716255-4
What is the kickoff that has a NFL.com recap, is played before week 17, and is played at arrowhead stadium?
CREATE TABLE "regular_season" ( "week" real, "kickoff" text, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "nfl_com_recap" text );
SELECT "kickoff" FROM "regular_season" WHERE "nfl_com_recap"='recap' AND "week"<17 AND "game_site"='arrowhead stadium';
2-10716255-4
Who is the home team at brunswick street oval?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_1" WHERE "venue"='brunswick street oval';
2-10746808-1
What is the home team's score at brunswick street oval?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_1" WHERE "venue"='brunswick street oval';
2-10746808-1
What is the away side's score when the home team's score is 15.14 (104)?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_1" WHERE "home_team_score"='15.14 (104)';
2-10746808-1
When did the match take place that had an away team score of 12.12 (84)?
CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_10" WHERE "away_team_score"='12.12 (84)';
2-10701914-10
What was the crowd size of the match where the home team scored 7.7 (49) against Geelong?
CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT SUM("crowd") FROM "round_10" WHERE "home_team_score"='7.7 (49)' AND "away_team"='geelong';
2-10701914-10
Which match had the largest crowd size where the away team was North Melbourne?
CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MAX("crowd") FROM "round_10" WHERE "away_team"='north melbourne';
2-10701914-10
What away team scored 6.12 (48)?
CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_13" WHERE "away_team_score"='6.12 (48)';
2-10746808-13
What was North Melbourne's score as an away team?
CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_13" WHERE "away_team"='north melbourne';
2-10746808-13
What was the crowd size when the away team scored 10.9 (69)?
CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT COUNT("crowd") FROM "round_13" WHERE "away_team_score"='10.9 (69)';
2-10746808-13
What was the away team's score against Hawthorn?
CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_13" WHERE "home_team"='hawthorn';
2-10746808-13
What was the away team that played the home team of Geelong?
CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_13" WHERE "home_team"='geelong';
2-10746808-13
What week has an attended smaller than 62,723 on October 22, 1961?
CREATE TABLE "regular_season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT AVG("week") FROM "regular_season_schedule" WHERE "attendance"<'62,723' AND "date"='october 22, 1961';
2-10651758-2
Which week with Green Bay Packers as an opponent is the highest?
CREATE TABLE "regular_season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MAX("week") FROM "regular_season_schedule" WHERE "opponent"='green bay packers';
2-10651758-2
What is the number of starts for the player who lost fewer than 22 and has more than 4 tries?
CREATE TABLE "most_caps" ( "player" text, "span" text, "start" real, "tries" real, "conv" real, "pens" real, "drop" real, "lost" real, "draw" real );
SELECT AVG("start") FROM "most_caps" WHERE "lost"<22 AND "tries">4;
2-1074616-5
What is the total losses for the player with fewer than 51 pens, 3 tries and 45 starts?
CREATE TABLE "most_caps" ( "player" text, "span" text, "start" real, "tries" real, "conv" real, "pens" real, "drop" real, "lost" real, "draw" real );
SELECT COUNT("lost") FROM "most_caps" WHERE "pens"<51 AND "tries"=3 AND "start"=45;
2-1074616-5
What is the average crowd size at glenferrie oval?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT AVG("crowd") FROM "round_12" WHERE "venue"='glenferrie oval';
2-10773753-12
What is the away team's score when the away team is geelong?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_12" WHERE "away_team"='geelong';
2-10773753-12
What is the away team's score when geelong is the away side playing in front of a crowd of larger than 10,500, and the home team scoring 13.10 (88)?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_12" WHERE "crowd">'10,500' AND "home_team_score"='13.10 (88)' AND "away_team"='geelong';
2-10773753-12
What is the largest crowd when melbourne plays at home?
CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MAX("crowd") FROM "round_12" WHERE "home_team"='melbourne';
2-10773753-12
What was the championship game for the Southwest conference?
CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" real, "round_of_32" real, "sweet_sixteen" text, "elite_eight" text, "final_four" text, "championship_game" text );
SELECT "championship_game" FROM "record_by_conference" WHERE "conference"='southwest';
2-10721054-6
Which manager has Sol Campbell as captain?
CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_maker" text, "shirt_sponsor" text );
SELECT "manager" FROM "personnel_and_kits" WHERE "captain"='sol campbell';
2-10592536-6
What team does Carlsberg sponsor?
CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_maker" text, "shirt_sponsor" text );
SELECT "team" FROM "personnel_and_kits" WHERE "shirt_sponsor"='carlsberg';
2-10592536-6
Who sponsors Middlesbrough?
CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_maker" text, "shirt_sponsor" text );
SELECT "shirt_sponsor" FROM "personnel_and_kits" WHERE "team"='middlesbrough';
2-10592536-6
Which sponsor has Mark Hughes as manager?
CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_maker" text, "shirt_sponsor" text );
SELECT "shirt_sponsor" FROM "personnel_and_kits" WHERE "manager"='mark hughes';
2-10592536-6