question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Where did Maya Moore attend school?
CREATE TABLE "girls_basketball_players_and_coaches_of_" ( "year" text, "player" text, "school" text, "hometown" text, "college" text );
SELECT "school" FROM "girls_basketball_players_and_coaches_of_" WHERE "player"='maya moore';
2-11677760-3
What is the difference with a loss smaller than 5 and points lower than 32?
CREATE TABLE "torneo_clausura_closing_tournament" ( "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "diff" real );
SELECT COUNT("diff") FROM "torneo_clausura_closing_tournament" WHERE "lost"<5 AND "points"<32;
2-11161833-3
Which loss had a player lower than 18?
CREATE TABLE "torneo_clausura_closing_tournament" ( "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "diff" real );
SELECT MIN("lost") FROM "torneo_clausura_closing_tournament" WHERE "played"<18;
2-11161833-3
Who won the 2012 game that had a score of 15–0?
CREATE TABLE "2010s_raiders_5_2" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text );
SELECT "winner" FROM "2010s_raiders_5_2" WHERE "year"=2012 AND "result"='15–0';
2-11840325-8
Tell me the week for result of l 31-27, and an Attendance smaller than 85,865
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT AVG("week") FROM "schedule" WHERE "result"='l 31-27' AND "attendance"<'85,865';
2-11172588-1
I want the date for week less than 5 and attendance more than 43,922 with a result of w 21-7
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "date" FROM "schedule" WHERE "week"<5 AND "attendance">'43,922' AND "result"='w 21-7';
2-11172588-1
Who had notes of Prizzi's Honor?
CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "director" text, "record_set" text, "year" text, "notes" text );
SELECT "director" FROM "list_of_superlative_academy_award_winner" WHERE "notes"='prizzi''s honor';
2-10966872-2
What Superlative had a record set of 12 nominations?
CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "director" text, "record_set" text, "year" text, "notes" text );
SELECT "superlative" FROM "list_of_superlative_academy_award_winner" WHERE "record_set"='12 nominations';
2-10966872-2
What is the highest number of laps completed by driver Joe Nemechek?
CREATE TABLE "race_results" ( "driver" text, "car_num" real, "make" text, "points" text, "laps" real, "winnings" text );
SELECT MAX("laps") FROM "race_results" WHERE "driver"='joe nemechek';
2-11059267-1
What is the home team score when they played at Victoria Park?
CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "home_team_score" FROM "round_18" WHERE "venue"='victoria park';
2-1204658-18
What was the away team score when the home team score was 11.18 (84)?
CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "away_team_score" FROM "round_18" WHERE "home_team_score"='11.18 (84)';
2-1204658-18
What was the venue when the home team was Fitzroy?
CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "venue" FROM "round_18" WHERE "home_team"='fitzroy';
2-1204658-18
What team was the home team when the home team score was 12.16 (88)?
CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "home_team" FROM "round_18" WHERE "home_team_score"='12.16 (88)';
2-1204658-18
What team was the away team when the home team score was 16.11 (107)?
CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "away_team" FROM "round_18" WHERE "home_team_score"='16.11 (107)';
2-1204658-18
What is the date for proposed for revere textile prints corporation
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "proposed" FROM "superfund_sites" WHERE "name"='revere textile prints corporation';
2-10840672-1
What is the deleted for tolland?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "deleted" FROM "superfund_sites" WHERE "county"='tolland';
2-10840672-1
What venue has the away side scoring 16.14 (110)?
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 "venue" FROM "round_2" WHERE "away_team_score"='16.14 (110)';
2-10869537-2
What is the away side score when hawthorn is the home side?
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 "away_team_score" FROM "round_2" WHERE "home_team"='hawthorn';
2-10869537-2
What is the average lap total for grids under 19 and a Time/Retired of +4 laps?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("laps") FROM "race" WHERE "time_retired"='+4 laps' AND "grid"<19;
2-1123532-2
Who drive over 43 laps in grid 5?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "driver" FROM "race" WHERE "laps">43 AND "grid"=5;
2-1123532-2
What team played away in the game that the home team scored 7.8 (50)?
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 "away_team" FROM "round_4" WHERE "home_team_score"='7.8 (50)';
2-10788451-4
What did the home team score when the away team scored 6.8 (44)?
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"='6.8 (44)';
2-10788451-4
Which Away team score has a Venue of princes park?
CREATE TABLE "round_7" ( "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_7" WHERE "venue"='princes park';
2-10808346-7
Which Away team score has a Home team of melbourne?
CREATE TABLE "round_7" ( "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_7" WHERE "home_team"='melbourne';
2-10808346-7
What genre is revolving doors of vengeance 酒店風雲?
CREATE TABLE "second_line_series" ( "airing_date" text, "english_title_chinese_title" text, "number_of_episodes" real, "genre" text, "official_website" text );
SELECT "genre" FROM "second_line_series" WHERE "english_title_chinese_title"='revolving doors of vengeance 酒店風雲';
2-11174272-3
What is the english title of the modern drama, episode 20, that airs on 26 sep- 21 oct?
CREATE TABLE "second_line_series" ( "airing_date" text, "english_title_chinese_title" text, "number_of_episodes" real, "genre" text, "official_website" text );
SELECT "english_title_chinese_title" FROM "second_line_series" WHERE "genre"='modern drama' AND "number_of_episodes"=20 AND "airing_date"='26 sep- 21 oct';
2-11174272-3
What is the D48 when the D 50 O is d 31?
CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_41" text, "d_42" text, "d_43" text, "d_44" text, "d_45" text, "d_46" text, "d_47" text, "d_48" text, "d_49" text, "d_50_o" text );
SELECT "d_48" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_50_o"='d 31';
2-1104564-3
What was Catalogue tojp 60121-22's Date?
CREATE TABLE "release_details" ( "country" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "date" FROM "release_details" WHERE "catalogue"='tojp 60121-22';
2-11343196-3
What was the Date of Country of United States?
CREATE TABLE "release_details" ( "country" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "date" FROM "release_details" WHERE "country"='united states';
2-11343196-3
What Catalogue is Dated 14 november 2003, with the Format compact disc?
CREATE TABLE "release_details" ( "country" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "catalogue" FROM "release_details" WHERE "date"='14 november 2003' AND "format"='compact disc';
2-11343196-3
What is the Label for Date of 14 November 2003, and Catalogue tojp 60121-22?
CREATE TABLE "release_details" ( "country" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "label" FROM "release_details" WHERE "date"='14 november 2003' AND "catalogue"='tojp 60121-22';
2-11343196-3
What Label was Catalogued tojp 60121-22?
CREATE TABLE "release_details" ( "country" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "label" FROM "release_details" WHERE "catalogue"='tojp 60121-22';
2-11343196-3
What is the record for Norway on 23 august 1981?
CREATE TABLE "men" ( "event" text, "record" text, "athlete" text, "nationality" text, "date" text );
SELECT "record" FROM "men" WHERE "nationality"='norway' AND "date"='23 august 1981';
2-1102696-4
What is the record for the 20000 m walk?
CREATE TABLE "men" ( "event" text, "record" text, "athlete" text, "nationality" text, "date" text );
SELECT "record" FROM "men" WHERE "event"='20000 m walk';
2-1102696-4
When was the Bye week?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "date" FROM "schedule" WHERE "result"='bye';
2-10996469-1
Which Open 2nd VIII had a U15 6th Quad of BGS and a U16 1st VII of TSS?
CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "open_1st_viii" text, "open_2nd_viii" text, "open_3rd_viii" text, "u16_1st_viii" text, "u16_2nd_viii" text, "u16_3rd_viii" text, "u15_1st_quad" text, "u15_2nd_quad" text, "u15_3rd_quad" text, "u15_4th_quad" text, "u15_5th_quad" text, "u15_6th_quad" text );
SELECT "open_2nd_viii" FROM "winning_head_of_the_river_championship_e" WHERE "u15_6th_quad"='bgs' AND "u16_1st_viii"='tss';
2-11318462-6
What U15 3rd Quad has a U15 2nd Quad of ACGS?
CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "open_1st_viii" text, "open_2nd_viii" text, "open_3rd_viii" text, "u16_1st_viii" text, "u16_2nd_viii" text, "u16_3rd_viii" text, "u15_1st_quad" text, "u15_2nd_quad" text, "u15_3rd_quad" text, "u15_4th_quad" text, "u15_5th_quad" text, "u15_6th_quad" text );
SELECT "u15_3rd_quad" FROM "winning_head_of_the_river_championship_e" WHERE "u15_2nd_quad"='acgs';
2-11318462-6
Which U15 4th Quad had a U15 3rd Quad of BBC and U15 6th Quad of GT?
CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "open_1st_viii" text, "open_2nd_viii" text, "open_3rd_viii" text, "u16_1st_viii" text, "u16_2nd_viii" text, "u16_3rd_viii" text, "u15_1st_quad" text, "u15_2nd_quad" text, "u15_3rd_quad" text, "u15_4th_quad" text, "u15_5th_quad" text, "u15_6th_quad" text );
SELECT "u15_4th_quad" FROM "winning_head_of_the_river_championship_e" WHERE "u15_3rd_quad"='bbc' AND "u15_6th_quad"='gt';
2-11318462-6
Which U15 1st Quad had an Open 3rd VIII of BBC and U16 3rd VIII of BBC?
CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "open_1st_viii" text, "open_2nd_viii" text, "open_3rd_viii" text, "u16_1st_viii" text, "u16_2nd_viii" text, "u16_3rd_viii" text, "u15_1st_quad" text, "u15_2nd_quad" text, "u15_3rd_quad" text, "u15_4th_quad" text, "u15_5th_quad" text, "u15_6th_quad" text );
SELECT "u15_1st_quad" FROM "winning_head_of_the_river_championship_e" WHERE "open_3rd_viii"='bbc' AND "u16_3rd_viii"='bbc';
2-11318462-6
What was the nationality of the athlete with a final result of 4.50?
CREATE TABLE "final" ( "athlete" text, "nationality" text, "3_60" text, "3_80" text, "3_95" text, "result" text );
SELECT "nationality" FROM "final" WHERE "result"='4.50';
2-10874779-4
What was the athlete with a final result of 4.30?
CREATE TABLE "final" ( "athlete" text, "nationality" text, "3_60" text, "3_80" text, "3_95" text, "result" text );
SELECT "athlete" FROM "final" WHERE "result"='4.30';
2-10874779-4
Which country has the Highest mountain of rettlkirchspitze?
CREATE TABLE "alpine_club_classification" ( "ave_no" text, "name" text, "country" text, "highest_mountain" text, "height_m" real );
SELECT "country" FROM "alpine_club_classification" WHERE "highest_mountain"='rettlkirchspitze';
2-1185126-1
What is the average height with the Highest mountain of hochgall?
CREATE TABLE "alpine_club_classification" ( "ave_no" text, "name" text, "country" text, "highest_mountain" text, "height_m" real );
SELECT AVG("height_m") FROM "alpine_club_classification" WHERE "highest_mountain"='hochgall';
2-1185126-1
What US Country released an album of singles only in 1967?
CREATE TABLE "singles" ( "year" real, "single" text, "u_s_country" text, "u_s" text, "u_s_ac" text, "album" text );
SELECT "u_s_country" FROM "singles" WHERE "album"='singles only' AND "year"=1967;
2-11874550-2
What was the best album in 1965?
CREATE TABLE "singles" ( "year" real, "single" text, "u_s_country" text, "u_s" text, "u_s_ac" text, "album" text );
SELECT "u_s_ac" FROM "singles" WHERE "album"='the best' AND "year"=1965;
2-11874550-2
What is the result of the fight that had a tko (low kicks)?
CREATE TABLE "kickboxing_record" ( "result" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );
SELECT "result" FROM "kickboxing_record" WHERE "method"='tko (low kicks)';
2-11673825-1
What event went under 3 rounds and was no contest (punch after knockdown)?
CREATE TABLE "kickboxing_record" ( "result" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );
SELECT "event" FROM "kickboxing_record" WHERE "round"<3 AND "method"='no contest (punch after knockdown)';
2-11673825-1
What event was in hong kong and went less than 2 rounds?
CREATE TABLE "kickboxing_record" ( "result" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );
SELECT "event" FROM "kickboxing_record" WHERE "round"<2 AND "location"='hong kong';
2-11673825-1
How many rounds was the fight against carter williams?
CREATE TABLE "kickboxing_record" ( "result" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );
SELECT "round" FROM "kickboxing_record" WHERE "opponent"='carter williams';
2-11673825-1
In rounds 7-13 what engine was featured?
CREATE TABLE "teams_and_drivers" ( "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );
SELECT "engine" FROM "teams_and_drivers" WHERE "rounds"='7-13';
2-1140091-2
What score was conceded by Richmond?
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 "away_team_score" FROM "round_14" WHERE "home_team"='richmond';
2-10809823-14
What is the number of Goals on 1950-05-30?
CREATE TABLE "iran" ( "date" text, "venue" text, "result" text, "competition" text, "goals" real );
SELECT COUNT("goals") FROM "iran" WHERE "date"='1950-05-30';
2-10882484-1
In 1948-10-28, what were the lowest Goals in Tehran, Iran?
CREATE TABLE "iran" ( "date" text, "venue" text, "result" text, "competition" text, "goals" real );
SELECT MIN("goals") FROM "iran" WHERE "venue"='tehran, iran' AND "date"='1948-10-28';
2-10882484-1
In what Venue was the Result 1-3?
CREATE TABLE "iran" ( "date" text, "venue" text, "result" text, "competition" text, "goals" real );
SELECT "venue" FROM "iran" WHERE "result"='1-3';
2-10882484-1
In 1948-10-28, in what Venue was the Competition of International Match held?
CREATE TABLE "iran" ( "date" text, "venue" text, "result" text, "competition" text, "goals" real );
SELECT "venue" FROM "iran" WHERE "competition"='international match' AND "date"='1948-10-28';
2-10882484-1
What was the Zakspeed 1500/4 1.5 l4 t chassis?
CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );
SELECT "chassis" FROM "drivers_and_constructors" WHERE "engine"='zakspeed 1500/4 1.5 l4 t';
2-1139087-1
What was the Michele Alboreto's engine?
CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );
SELECT "engine" FROM "drivers_and_constructors" WHERE "driver"='michele alboreto';
2-1139087-1
What is the average rank for antun salman?
CREATE TABLE "elected_candidates" ( "rank" real, "list" text, "candidate_name" text, "gender" text, "religion" text, "votes" real );
SELECT AVG("rank") FROM "elected_candidates" WHERE "candidate_name"='antun salman';
2-11091294-1
Khalil chawka has a gender of ♂, a religion of ☪, and how many votes?
CREATE TABLE "elected_candidates" ( "rank" real, "list" text, "candidate_name" text, "gender" text, "religion" text, "votes" real );
SELECT "votes" FROM "elected_candidates" WHERE "gender"='♂' AND "religion"='☪' AND "candidate_name"='khalil chawka';
2-11091294-1
Who has a religion of ☪ and more than 1853 votes?
CREATE TABLE "elected_candidates" ( "rank" real, "list" text, "candidate_name" text, "gender" text, "religion" text, "votes" real );
SELECT "candidate_name" FROM "elected_candidates" WHERE "votes">1853 AND "religion"='☪';
2-11091294-1
What is the recorder has a Track more than 11 with a time 3:06
CREATE TABLE "disc_four_studio_highlights_1971_1976" ( "track" real, "recorded" text, "original_issue" text, "song_title" text, "time" text );
SELECT "recorded" FROM "disc_four_studio_highlights_1971_1976" WHERE "track">11 AND "time"='3:06';
2-11565999-5
Which track has a title : Just a little bit
CREATE TABLE "disc_four_studio_highlights_1971_1976" ( "track" real, "recorded" text, "original_issue" text, "song_title" text, "time" text );
SELECT MIN("track") FROM "disc_four_studio_highlights_1971_1976" WHERE "song_title"='just a little bit';
2-11565999-5
What is the Trophy with a Season with 2008–2009?
CREATE TABLE "season_by_season_records" ( "season" text, "div" text, "pos" text, "pld" text, "pts" text, "play_offs" text, "trophy" text );
SELECT "trophy" FROM "season_by_season_records" WHERE "season"='2008–2009';
2-11865672-1
What Wasatch time corresponds to a total time of 122:13:40?
CREATE TABLE "controversy" ( "year" real, "name" text, "western_states" text, "vermont" text, "leadville" text, "wasatch" text, "total_time" text );
SELECT "wasatch" FROM "controversy" WHERE "total_time"='122:13:40';
2-11396032-1
Who were the opponents in the final on 9 January 1994?
CREATE TABLE "doubles_16_5_11" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_final" text, "score_in_final" text );
SELECT "opponents_in_final" FROM "doubles_16_5_11" WHERE "date"='9 january 1994';
2-11642407-5
Who was Melbourne's home team opponent?
CREATE TABLE "round_15" ( "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_15" WHERE "away_team"='melbourne';
2-10808346-15
Who was Richmond's away team opponent?
CREATE TABLE "round_15" ( "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_15" WHERE "home_team"='richmond';
2-10808346-15
What is the average FA Cup value with a total greater than 2, a League Cup of 1, a league less than 3, and Paul Ince scoring?
CREATE TABLE "goalscorers" ( "name" text, "league" real, "fa_cup" real, "league_cup" real, "total" real );
SELECT AVG("fa_cup") FROM "goalscorers" WHERE "total">2 AND "league_cup"=1 AND "name"='paul ince' AND "league"<3;
2-11864370-5
What is the average total value in a League less than 1 with more than 1 League Cup?
CREATE TABLE "goalscorers" ( "name" text, "league" real, "fa_cup" real, "league_cup" real, "total" real );
SELECT AVG("total") FROM "goalscorers" WHERE "league"<1 AND "league_cup">1;
2-11864370-5
What is the smallest value for League Cup when the League number is greater than 1, no FA Cups, and Brian Deane scoring?
CREATE TABLE "goalscorers" ( "name" text, "league" real, "fa_cup" real, "league_cup" real, "total" real );
SELECT MIN("league_cup") FROM "goalscorers" WHERE "league">1 AND "name"='brian deane' AND "fa_cup"<1;
2-11864370-5
Name the region before 2008 when name of best 1200
CREATE TABLE "release_history" ( "region" text, "year" real, "name" text, "format_s" text, "label" text );
SELECT "region" FROM "release_history" WHERE "year"<2008 AND "name"='best 1200';
2-11947078-2
What method resulted in a win and a time of 4:36?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "method" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "time"='4:36';
2-11109016-2
At what venue did the Essendon team play as an away team?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "venue" FROM "round_17" WHERE "away_team"='essendon';
2-1204658-17
Who was the home team for the game played at Junction Oval?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "home_team" FROM "round_17" WHERE "venue"='junction oval';
2-1204658-17
What was the score of the home team when the away team was Geelong?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "home_team_score" FROM "round_17" WHERE "away_team"='geelong';
2-1204658-17
What was the venue where the away team ended in a score of 6.8 (44)?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "venue" FROM "round_17" WHERE "away_team_score"='6.8 (44)';
2-1204658-17
What was the away team when the home team was South Melbourne?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "away_team" FROM "round_17" WHERE "home_team"='south melbourne';
2-1204658-17
What was the name of the home team playing at the Junction Oval venue?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "home_team" FROM "round_17" WHERE "venue"='junction oval';
2-1204658-17
What is the total number of the established club of Lehigh Valley Storm?
CREATE TABLE "sports" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "championships" text );
SELECT COUNT("established") FROM "sports" WHERE "club"='lehigh valley storm';
2-1165886-2
What is the name of a league in the sport of baseball?
CREATE TABLE "sports" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "championships" text );
SELECT "league" FROM "sports" WHERE "sport"='baseball';
2-1165886-2
What venue does the soccer team Pennsylvania Stoners play in?
CREATE TABLE "sports" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "championships" text );
SELECT "venue" FROM "sports" WHERE "sport"='soccer' AND "club"='pennsylvania stoners';
2-1165886-2
What game number was played on March 4?
CREATE TABLE "march" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real );
SELECT AVG("game_num") FROM "march" WHERE "date"='march 4';
2-11901273-8
What is the record when the visitor is Buffalo?
CREATE TABLE "march" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real );
SELECT "record" FROM "march" WHERE "visitor"='buffalo';
2-11901273-8
Tell me the number of attendance that has a result of l 35-17
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT COUNT("attendance") FROM "schedule" WHERE "result"='l 35-17';
2-11172570-1
I want the attendance for week larger than 10 and result of l 22-21
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "attendance" FROM "schedule" WHERE "week">10 AND "result"='l 22-21';
2-11172570-1
Name for me the total number in attendance for week before 2 and result of t 24-24
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT COUNT("attendance") FROM "schedule" WHERE "result"='t 24-24' AND "week"<2;
2-11172570-1
I want the greatest attendance when the opponent is the chicago bears
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MAX("attendance") FROM "schedule" WHERE "opponent"='chicago bears';
2-11172570-1
What is the average attendance for a game against Phoenix?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT AVG("attendance") FROM "february" WHERE "visitor"='phoenix';
2-11801649-7
What was the home team in the February 22 game that Legace played in for the St. Louis Blues?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "home" FROM "february" WHERE "decision"='legace' AND "visitor"='st. louis' AND "date"='february 22';
2-11801649-7
Who was Carlton's home team opponent?
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 "home_team" FROM "round_11" WHERE "away_team"='carlton';
2-10808681-11
Who was the away team at Lake Oval?
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 "away_team_score" FROM "round_11" WHERE "venue"='lake oval';
2-10808681-11
Who was South Melbourne's away team opponent?
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 "away_team" FROM "round_11" WHERE "home_team"='south melbourne';
2-10808681-11
Who was the home team at Princes Park when the attendance was more than 30,848?
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 "home_team" FROM "round_11" WHERE "crowd">'30,848' AND "venue"='princes park';
2-10808681-11
What is the high grid with 27 laps?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MAX("grid") FROM "classification" WHERE "laps"=27;
2-1122570-1
What is the high grid that has a Time/Retired of +6 laps, and under 69 laps?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MAX("grid") FROM "classification" WHERE "time_retired"='+6 laps' AND "laps"<69;
2-1122570-1
What's the total number of copies sold for the single that sold 206,030 in the first week?
CREATE TABLE "singles" ( "release_date" text, "peak_chart_position" real, "first_week_sales" real, "copies_sold" real, "album" text );
SELECT COUNT("copies_sold") FROM "singles" WHERE "first_week_sales"='206,030';
2-11404064-4
What was the latest release date for Ariola in Spain?
CREATE TABLE "release_history" ( "release_format" text, "country" text, "label" text, "cat_no" text, "release_date" real );
SELECT MAX("release_date") FROM "release_history" WHERE "label"='ariola' AND "country"='spain';
2-11416098-2
What type of format was released after 1979?
CREATE TABLE "release_history" ( "release_format" text, "country" text, "label" text, "cat_no" text, "release_date" real );
SELECT "release_format" FROM "release_history" WHERE "release_date">1979;
2-11416098-2
On what date did Epic label start its release?
CREATE TABLE "release_history" ( "release_format" text, "country" text, "label" text, "cat_no" text, "release_date" real );
SELECT SUM("release_date") FROM "release_history" WHERE "label"='epic';
2-11416098-2
Which game had less than 270 rebounds and a rank lower than 5?
CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real );
SELECT "games" FROM "rebounds" WHERE "rebounds"<270 AND "rank"<5;
2-11194153-4