question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
---|---|---|---|
What shows for Playoffs when the Open Cup shows as did not qualify, and a Regular Season was 3rd, south atlantic? | CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
); | SELECT "playoffs" FROM "year_by_year" WHERE "open_cup"='did not qualify' AND "regular_season"='3rd, south atlantic'; | 2-12322638-2 |
What is the highest points value for 1962, in the 125cc class, and with 0 wins? | CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
); | SELECT MAX("points") FROM "grand_prix_motorcycle_racing_results" WHERE "year"=1962 AND "class"='125cc' AND "wins"<0; | 2-1235355-2 |
What is the highest points value for the 500cc class in years after 1962 with 0 wins? | CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
); | SELECT MAX("points") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='500cc' AND "year">1962 AND "wins"<0; | 2-1235355-2 |
For Team AJS, what is the total number of points for drivers with 0 wins? | CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
); | SELECT COUNT("points") FROM "grand_prix_motorcycle_racing_results" WHERE "team"='ajs' AND "wins"<0; | 2-1235355-2 |
Which year had 0 points and an AGS JH23B chassis? | CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT "year" FROM "complete_formula_one_results" WHERE "points"=0 AND "chassis"='ags jh23b'; | 2-1226517-1 |
How many points does the year after 1986 with a AGS JH23B chassis have? | CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT "points" FROM "complete_formula_one_results" WHERE "year">1986 AND "chassis"='ags jh23b'; | 2-1226517-1 |
How many points did the Tyrrell Racing Organisation have? | CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT "points" FROM "complete_formula_one_results" WHERE "entrant"='tyrrell racing organisation'; | 2-1226517-1 |
September 23, 1973 landed on which week of the season? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "week" FROM "schedule" WHERE "date"='september 23, 1973'; | 2-12536242-2 |
What's the lowest Gold if the Rank is over 4 but the Total is less than 1? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("gold") FROM "medal_table" WHERE "rank">4 AND "total"<1; | 2-13376342-2 |
What's the highest bronze with a less than 1 Rank? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("bronze") FROM "medal_table" WHERE "rank"<1; | 2-13376342-2 |
What's the average total if the Bronze is 5 and the Silver is less than 4? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("total") FROM "medal_table" WHERE "bronze"=5 AND "silver"<4; | 2-13376342-2 |
How many Votes, when the Residence is Halifax? | CREATE TABLE "106_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
); | SELECT "votes" FROM "106_seats" WHERE "residence"='halifax'; | 2-12890254-6 |
What is the Riding, when the Rank is 4th? | CREATE TABLE "106_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
); | SELECT "riding" FROM "106_seats" WHERE "rank"='4th'; | 2-12890254-6 |
What is the lowest number of Votes, when the Candidate's Name is Trevor Ennis? | CREATE TABLE "106_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
); | SELECT MIN("votes") FROM "106_seats" WHERE "candidate_s_name"='trevor ennis'; | 2-12890254-6 |
What is the Candidate's Name, when the Votes are 513? | CREATE TABLE "106_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
); | SELECT "candidate_s_name" FROM "106_seats" WHERE "votes"=513; | 2-12890254-6 |
What is the Occupation, when the Candidate's Name is Trevor Ennis? | CREATE TABLE "106_seats" (
"riding" text,
"candidate_s_name" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" real,
"rank" text
); | SELECT "occupation" FROM "106_seats" WHERE "candidate_s_name"='trevor ennis'; | 2-12890254-6 |
Name the most cuts made with top-25 more than 4 and top 5 of 1 with wins more than 0 | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT MAX("cuts_made") FROM "summary" WHERE "top_25">4 AND "top_5"=1 AND "wins">0; | 2-1323399-10 |
Name the top-25 with wins less than 1 and events of 12 | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT SUM("top_25") FROM "summary" WHERE "wins"<1 AND "events"=12; | 2-1323399-10 |
Who was the away team when the attendance was 7,891? | CREATE TABLE "northern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
); | SELECT "away_team" FROM "northern_section" WHERE "attendance"='7,891'; | 2-12962079-3 |
What was the score of the game when the attendance was 1,644? | CREATE TABLE "northern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
); | SELECT "score" FROM "northern_section" WHERE "attendance"='1,644'; | 2-12962079-3 |
Who was the away team when the home team was Lincoln City? | CREATE TABLE "northern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
); | SELECT "away_team" FROM "northern_section" WHERE "home_team"='lincoln city'; | 2-12962079-3 |
What was the score of the game when the home team was Lincoln City? | CREATE TABLE "northern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
); | SELECT "score" FROM "northern_section" WHERE "home_team"='lincoln city'; | 2-12962079-3 |
Who was the away team when the attendance was 7,891? | CREATE TABLE "northern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
); | SELECT "away_team" FROM "northern_section" WHERE "attendance"='7,891'; | 2-12962079-3 |
What is the most amount of points for a team before 1983? | CREATE TABLE "cart_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" real
); | SELECT MAX("points") FROM "cart_results" WHERE "year"<1983; | 2-1219760-3 |
What team has 4 points and a Chassis of march 82/83c? | CREATE TABLE "cart_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" real
); | SELECT "team" FROM "cart_results" WHERE "points"=4 AND "chassis"='march 82/83c'; | 2-1219760-3 |
What engine was used by Curb Motorsports after 1982 that had 11 points? | CREATE TABLE "cart_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" real
); | SELECT "engine" FROM "cart_results" WHERE "year">1982 AND "points"=11 AND "team"='curb motorsports'; | 2-1219760-3 |
What is the Engine used before 1983? | CREATE TABLE "cart_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" real
); | SELECT "engine" FROM "cart_results" WHERE "year"<1983; | 2-1219760-3 |
Name the total number of average for wickets less than 265, runs less than 4564 and matches less than 52 | CREATE TABLE "best_average_in_a_career" (
"matches" real,
"wickets" real,
"runs" real,
"average" real,
"career" text
); | SELECT COUNT("average") FROM "best_average_in_a_career" WHERE "matches"<52 AND "runs"<4564 AND "wickets"<265; | 2-12898654-17 |
Name the total number of average for wickets more than 537, career of 1899/00-1925/26 and matches less than 211 | CREATE TABLE "best_average_in_a_career" (
"matches" real,
"wickets" real,
"runs" real,
"average" real,
"career" text
); | SELECT COUNT("average") FROM "best_average_in_a_career" WHERE "wickets">537 AND "career"='1899/00-1925/26' AND "matches"<211; | 2-12898654-17 |
Name the least average with wickets more than 265 and career of 1888/89-1913/14 and matches more than 51 | CREATE TABLE "best_average_in_a_career" (
"matches" real,
"wickets" real,
"runs" real,
"average" real,
"career" text
); | SELECT MIN("average") FROM "best_average_in_a_career" WHERE "wickets">265 AND "career"='1888/89-1913/14' AND "matches">51; | 2-12898654-17 |
Name the total number of matches with wickets less than 537 and career of 1898/99-1919/20 with runs more than 4476 | CREATE TABLE "best_average_in_a_career" (
"matches" real,
"wickets" real,
"runs" real,
"average" real,
"career" text
); | SELECT COUNT("matches") FROM "best_average_in_a_career" WHERE "wickets"<537 AND "career"='1898/99-1919/20' AND "runs">4476; | 2-12898654-17 |
Can you tell me the Opponent that has the Series of 4-2? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"series" text
); | SELECT "opponent" FROM "game_log" WHERE "series"='4-2'; | 2-12206491-10 |
What is the to par of the player with a t4 place and a score of 75-69-74-72=290? | CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
); | SELECT "to_par" FROM "final_leaderboard" WHERE "place"='t4' AND "score"='75-69-74-72=290'; | 2-12586519-1 |
Which entrant scored less than 8 points and used a Maserati chassis? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "points"<8 AND "chassis"='maserati'; | 2-1251950-1 |
Which entrant, with an Offenhauser L4 engine and a Kurtis Kraft KK500A chassis, scored 9 points before 1955? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "engine"='offenhauser l4' AND "year"<1955 AND "chassis"='kurtis kraft kk500a' AND "points"=9; | 2-1251950-1 |
What type of engine did the Fuel Injection entrant use? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "entrant"='fuel injection'; | 2-1251950-1 |
What is the average number of points for an Offenhauser L4 engine with a Trevis chassis? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT AVG("points") FROM "complete_formula_one_world_championship_" WHERE "engine"='offenhauser l4' AND "chassis"='trevis'; | 2-1251950-1 |
What poll had Steve Poizner at 37%? | CREATE TABLE "republican_primary" (
"poll_source" text,
"date_s_administered" text,
"tom_campbell" text,
"meg_whitman" text,
"steve_poizner" text,
"peter_foy" text
); | SELECT "poll_source" FROM "republican_primary" WHERE "steve_poizner"='37%'; | 2-12299351-2 |
When did Meg Whitman get 60%? | CREATE TABLE "republican_primary" (
"poll_source" text,
"date_s_administered" text,
"tom_campbell" text,
"meg_whitman" text,
"steve_poizner" text,
"peter_foy" text
); | SELECT "date_s_administered" FROM "republican_primary" WHERE "meg_whitman"='60%'; | 2-12299351-2 |
How many players were drafted from the Boston Cannons in the round? | CREATE TABLE "round_1" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"team" text
); | SELECT SUM("round") FROM "round_1" WHERE "team"='boston cannons'; | 2-12173193-1 |
Which round was a player from the Long Island Lizards drafted in first? | CREATE TABLE "round_1" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"team" text
); | SELECT MAX("round") FROM "round_1" WHERE "team"='long island lizards'; | 2-12173193-1 |
Dave Curry has what Nationality? | CREATE TABLE "round_1" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"team" text
); | SELECT "nationality" FROM "round_1" WHERE "player"='dave curry'; | 2-12173193-1 |
Name the manufacturer with grid of 11 | CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "manufacturer" FROM "moto_gp_classification" WHERE "grid"=11; | 2-13139516-1 |
Name the manufacturer for grid more than 18 and laps more than 1 with tired/retired of +1 lap | CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "manufacturer" FROM "moto_gp_classification" WHERE "grid">18 AND "laps">1 AND "time_retired"='+1 lap'; | 2-13139516-1 |
Name the laps for suzuki and time/retired of +1:02.804 | CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "laps" FROM "moto_gp_classification" WHERE "manufacturer"='suzuki' AND "time_retired"='+1:02.804'; | 2-13139516-1 |
Name the sum of laps for 12 grids | CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT SUM("laps") FROM "moto_gp_classification" WHERE "grid"=12; | 2-13139516-1 |
Name the most # of total votes with % of popular vote of 32.41% and # of seats won more than 95 | CREATE TABLE "election_results_1945_2000" (
"election" real,
"num_of_candidates_nominated" real,
"num_of_seats_won" real,
"num_of_total_votes" real,
"pct_of_popular_vote" text
); | SELECT MAX("num_of_total_votes") FROM "election_results_1945_2000" WHERE "pct_of_popular_vote"='32.41%' AND "num_of_seats_won">95; | 2-123462-2 |
What was Jack McGrath's finish number in 1954? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT "finish" FROM "indy_500_results" WHERE "year"='1954'; | 2-1236208-1 |
What place did Jack McGrath start in when he received a qual score of 141.033? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT "start" FROM "indy_500_results" WHERE "qual"='141.033'; | 2-1236208-1 |
What was Jack McGrath's rank in 1955 when he started at 3 and finished at 26? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT "rank" FROM "indy_500_results" WHERE "start"='3' AND "finish"='26' AND "year"='1955'; | 2-1236208-1 |
Which pre-season has May 5 of 21? | CREATE TABLE "ranking_movement" (
"poll" text,
"pre_season" text,
"mar_3" text,
"may_5" text,
"may_12" text,
"may_19" text,
"may_26" text,
"final_poll" text
); | SELECT "pre_season" FROM "ranking_movement" WHERE "may_5"='21'; | 2-12225593-15 |
Which March 3 has a Poll of baseball america (top 25)? | CREATE TABLE "ranking_movement" (
"poll" text,
"pre_season" text,
"mar_3" text,
"may_5" text,
"may_12" text,
"may_19" text,
"may_26" text,
"final_poll" text
); | SELECT "mar_3" FROM "ranking_movement" WHERE "poll"='baseball america (top 25)'; | 2-12225593-15 |
Which pre-season has a Mar. 3 of nr, and a Poll of usa today/espn coaches' poll (top 25)? | CREATE TABLE "ranking_movement" (
"poll" text,
"pre_season" text,
"mar_3" text,
"may_5" text,
"may_12" text,
"may_19" text,
"may_26" text,
"final_poll" text
); | SELECT "pre_season" FROM "ranking_movement" WHERE "mar_3"='nr' AND "poll"='usa today/espn coaches'' poll (top 25)'; | 2-12225593-15 |
Who is the opponent on September 9, 1979? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "opponent" FROM "schedule" WHERE "date"='september 9, 1979'; | 2-12536416-2 |
What is the sum of the week for the Denver Broncos? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT SUM("week") FROM "schedule" WHERE "opponent"='denver broncos'; | 2-12536416-2 |
What is the attendance number for December 2, 1979? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT SUM("attendance") FROM "schedule" WHERE "date"='december 2, 1979'; | 2-12536416-2 |
Name the term in office for liberal and state of sa for ian mclachlan | CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_in_office" text
); | SELECT "term_in_office" FROM "see_also" WHERE "party"='liberal' AND "state"='sa' AND "member"='ian mclachlan'; | 2-1232757-1 |
What was the record for July 26? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "game_log" WHERE "date"='july 26'; | 2-12207149-5 |
Played that has a Points of 38, and a B.P. larger than 5 has what sum? | CREATE TABLE "national_league_one_table" (
"position" real,
"club" text,
"played" real,
"drawn" real,
"lost" real,
"pts_for" real,
"pts_agst" real,
"b_p" real,
"points" real
); | SELECT SUM("played") FROM "national_league_one_table" WHERE "points"=38 AND "b_p">5; | 2-13018091-1 |
B.P. of 0, and a Pts Agst smaller than 247 has how many total number of played? | CREATE TABLE "national_league_one_table" (
"position" real,
"club" text,
"played" real,
"drawn" real,
"lost" real,
"pts_for" real,
"pts_agst" real,
"b_p" real,
"points" real
); | SELECT COUNT("played") FROM "national_league_one_table" WHERE "b_p"=0 AND "pts_agst"<247; | 2-13018091-1 |
Pts Agst of 572, and a Pts For larger than 346 has what total number of position? | CREATE TABLE "national_league_one_table" (
"position" real,
"club" text,
"played" real,
"drawn" real,
"lost" real,
"pts_for" real,
"pts_agst" real,
"b_p" real,
"points" real
); | SELECT COUNT("position") FROM "national_league_one_table" WHERE "pts_agst"=572 AND "pts_for">346; | 2-13018091-1 |
What is the most number of rounds that the Team from RBR Enterprises and having a Chevrolet Silverado ran? | CREATE TABLE "part_time_teams" (
"team" text,
"truck_s" text,
"driver_s" text,
"primary_sponsor_s" text,
"owner_s" text,
"crew_chief" text,
"rounds" real
); | SELECT MAX("rounds") FROM "part_time_teams" WHERE "truck_s"='chevrolet silverado' AND "team"='rbr enterprises'; | 2-1266602-6 |
Who was the crew chief for the team from Make Motorsports? | CREATE TABLE "part_time_teams" (
"team" text,
"truck_s" text,
"driver_s" text,
"primary_sponsor_s" text,
"owner_s" text,
"crew_chief" text,
"rounds" real
); | SELECT "crew_chief" FROM "part_time_teams" WHERE "team"='make motorsports'; | 2-1266602-6 |
Who was the driver for crew chief Nick Carlson? | CREATE TABLE "part_time_teams" (
"team" text,
"truck_s" text,
"driver_s" text,
"primary_sponsor_s" text,
"owner_s" text,
"crew_chief" text,
"rounds" real
); | SELECT "driver_s" FROM "part_time_teams" WHERE "crew_chief"='nick carlson'; | 2-1266602-6 |
What is the truck used by Brett Moffitt, from Hattori Racing Enterprises? | CREATE TABLE "part_time_teams" (
"team" text,
"truck_s" text,
"driver_s" text,
"primary_sponsor_s" text,
"owner_s" text,
"crew_chief" text,
"rounds" real
); | SELECT "truck_s" FROM "part_time_teams" WHERE "driver_s"='brett moffitt' AND "team"='hattori racing enterprises'; | 2-1266602-6 |
Who is the pick with the height of 6'9" and weighs (lbs) 215? | CREATE TABLE "wildcats_in_the_nba" (
"position" text,
"name" text,
"height" text,
"weight_lbs" real,
"hometown" text,
"draft_year" real,
"pick" text,
"all_stars" text,
"nba_championships" text,
"nba_team" text
); | SELECT "pick" FROM "wildcats_in_the_nba" WHERE "height"='6''9\"' AND "weight_lbs"=215; | 2-13188471-3 |
who is the NBA team for the draft year after 2003 with a height of 6'10" and home town of st. charles, mo? | CREATE TABLE "wildcats_in_the_nba" (
"position" text,
"name" text,
"height" text,
"weight_lbs" real,
"hometown" text,
"draft_year" real,
"pick" text,
"all_stars" text,
"nba_championships" text,
"nba_team" text
); | SELECT "nba_team" FROM "wildcats_in_the_nba" WHERE "draft_year">2003 AND "height"='6''10\"' AND "hometown"='st. charles, mo'; | 2-13188471-3 |
What was the losing bonus that had 1 draw and a 10 try bonus? | CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "losing_bonus" FROM "2009_2010_table" WHERE "drawn"='1' AND "try_bonus"='10'; | 2-12828723-3 |
How many resulted in draws with 34 tries for? | CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "drawn" FROM "2009_2010_table" WHERE "tries_for"='34'; | 2-12828723-3 |
How many tries against were there with 520 points against? | CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "tries_against" FROM "2009_2010_table" WHERE "points_against"='520'; | 2-12828723-3 |
How many tries for were there while having 479 points against? | CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "tries_for" FROM "2009_2010_table" WHERE "points_against"='479'; | 2-12828723-3 |
How many resulted in a loss with 479 points against? | CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "lost" FROM "2009_2010_table" WHERE "points_against"='479'; | 2-12828723-3 |
What is the try bonus when there were 58 points? | CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "try_bonus" FROM "2009_2010_table" WHERE "points"='58'; | 2-12828723-3 |
Which opponent has a record of 44-28? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "record"='44-28'; | 2-12206491-4 |
Which opponent has an attendance of 40,560? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "attendance"='40,560'; | 2-12206491-4 |
Which loss was on June 13? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "date"='june 13'; | 2-12206491-4 |
What is the attendance that has a record of 43-28? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "attendance" FROM "game_log" WHERE "record"='43-28'; | 2-12206491-4 |
What was the date of the record of 43-28? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "record"='43-28'; | 2-12206491-4 |
Goalsagainst that has a Points of 108, and a Lost smaller than 14 has what average? | CREATE TABLE "regular_season" (
"season" text,
"games" real,
"lost" real,
"points" real,
"goalsfor" real,
"goalsagainst" real
); | SELECT AVG("goalsagainst") FROM "regular_season" WHERE "points"=108 AND "lost"<14; | 2-1259985-1 |
Lost of 42, and a Goalsfor larger than 195 contains how many number of games? | CREATE TABLE "regular_season" (
"season" text,
"games" real,
"lost" real,
"points" real,
"goalsfor" real,
"goalsagainst" real
); | SELECT COUNT("games") FROM "regular_season" WHERE "lost"=42 AND "goalsfor">195; | 2-1259985-1 |
Season of 2002–03, and a Lost larger than 14, what is the lowest goals? | CREATE TABLE "regular_season" (
"season" text,
"games" real,
"lost" real,
"points" real,
"goalsfor" real,
"goalsagainst" real
); | SELECT MIN("goalsfor") FROM "regular_season" WHERE "season"='2002–03' AND "lost">14; | 2-1259985-1 |
Goalsagainst of 285, and a Season of 2006–07, and a Games smaller than 70 has what average points? | CREATE TABLE "regular_season" (
"season" text,
"games" real,
"lost" real,
"points" real,
"goalsfor" real,
"goalsagainst" real
); | SELECT AVG("points") FROM "regular_season" WHERE "goalsagainst"=285 AND "season"='2006–07' AND "games"<70; | 2-1259985-1 |
Goals for of 288, and Points smaller than 85 what is the highest goals against? | CREATE TABLE "regular_season" (
"season" text,
"games" real,
"lost" real,
"points" real,
"goalsfor" real,
"goalsagainst" real
); | SELECT MAX("goalsagainst") FROM "regular_season" WHERE "goalsfor"=288 AND "points"<85; | 2-1259985-1 |
What player originally played for the Los Angeles Kings? | CREATE TABLE "signed_offer_sheets" (
"player" text,
"date" text,
"original_team" text,
"offer_team" text,
"result" text
); | SELECT "player" FROM "signed_offer_sheets" WHERE "original_team"='los angeles kings'; | 2-12129757-1 |
What Offer Team has a date of July 29, 1994? | CREATE TABLE "signed_offer_sheets" (
"player" text,
"date" text,
"original_team" text,
"offer_team" text,
"result" text
); | SELECT "offer_team" FROM "signed_offer_sheets" WHERE "date"='july 29, 1994'; | 2-12129757-1 |
What is the Result that has the New York Rangers as the Offer Team and Adam Graves as the Player? | CREATE TABLE "signed_offer_sheets" (
"player" text,
"date" text,
"original_team" text,
"offer_team" text,
"result" text
); | SELECT "result" FROM "signed_offer_sheets" WHERE "offer_team"='new york rangers' AND "player"='adam graves'; | 2-12129757-1 |
What date has Vancouver Canucks as the original team, Ryan Kesler as the player, and matched as the Result? | CREATE TABLE "signed_offer_sheets" (
"player" text,
"date" text,
"original_team" text,
"offer_team" text,
"result" text
); | SELECT "date" FROM "signed_offer_sheets" WHERE "original_team"='vancouver canucks' AND "result"='matched' AND "player"='ryan kesler'; | 2-12129757-1 |
What was David Backes' Offer Team? | CREATE TABLE "signed_offer_sheets" (
"player" text,
"date" text,
"original_team" text,
"offer_team" text,
"result" text
); | SELECT "offer_team" FROM "signed_offer_sheets" WHERE "player"='david backes'; | 2-12129757-1 |
What is the result of Chris Gratton and Philadelphia Flyers as the Offer Team? | CREATE TABLE "signed_offer_sheets" (
"player" text,
"date" text,
"original_team" text,
"offer_team" text,
"result" text
); | SELECT "result" FROM "signed_offer_sheets" WHERE "offer_team"='philadelphia flyers' AND "player"='chris gratton'; | 2-12129757-1 |
Which game had an attendance of 5,000 and was away? | CREATE TABLE "pre_season" (
"game" real,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT AVG("game") FROM "pre_season" WHERE "venue"='away' AND "attendance"='5,000'; | 2-12640874-2 |
When was the date in 1786? | CREATE TABLE "history" (
"year" real,
"date" text,
"name" text,
"race" text,
"method" text,
"offense" text
); | SELECT "date" FROM "history" WHERE "year"=1786; | 2-12824897-1 |
How low is the Attendance that has an Opponent of devil rays and a Date of may 13? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT MIN("attendance") FROM "game_log" WHERE "opponent"='devil rays' AND "date"='may 13'; | 2-12206000-5 |
How high is the Attendance with a Record of 29-25? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT MAX("attendance") FROM "game_log" WHERE "record"='29-25'; | 2-12206000-5 |
Which Opponent has a lost of wells (6-2)? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "loss"='wells (6-2)'; | 2-12206000-5 |
What is the team 2 with a 0-0 2nd leg? | CREATE TABLE "relegation_playoffs" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_2" FROM "relegation_playoffs" WHERE "2nd_leg"='0-0'; | 2-12592501-25 |
What is the team 1 with a (g14)morolo team 2? | CREATE TABLE "relegation_playoffs" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_1" FROM "relegation_playoffs" WHERE "team_2"='(g14)morolo'; | 2-12592501-25 |
What is the average Total, when the value for Silver is less than 1, when the value for Gold is 0, when the Nation is Switzerland, and when the value for Bronze is 2? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("total") FROM "medal_table" WHERE "silver"<1 AND "gold"=0 AND "nation"='switzerland' AND "bronze"<2; | 2-13045569-1 |
What is the average Total, when the Nation is Sweden, and when the value for Bronze is less than 3? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("total") FROM "medal_table" WHERE "nation"='sweden' AND "bronze"<3; | 2-13045569-1 |
What is the average value for Gold, when the value for Silver is greater than 2, and when the Nation is West Germany? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("gold") FROM "medal_table" WHERE "silver">2 AND "nation"='west germany'; | 2-13045569-1 |
What is the value for Gold, when the value for Bronze is less than 0? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("gold") FROM "medal_table" WHERE "bronze"<0; | 2-13045569-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.