question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Name the kaz hayashi with block A of Shuji Kondo
CREATE TABLE "2009" ( "block_a" text, "kaz_hayashi" text, "nosawa_rongai" text, "super_crazy" text, "toshizo" text );
SELECT "kaz_hayashi" FROM "2009" WHERE "block_a"='shuji kondo';
2-11934531-9
Name the block A for shuji kondo
CREATE TABLE "2009" ( "block_a" text, "kaz_hayashi" text, "nosawa_rongai" text, "super_crazy" text, "toshizo" text );
SELECT "block_a" FROM "2009" WHERE "toshizo"='shuji kondo';
2-11934531-9
Name the NOSAWA Rongai for petey williams
CREATE TABLE "2009" ( "block_a" text, "kaz_hayashi" text, "nosawa_rongai" text, "super_crazy" text, "toshizo" text );
SELECT "nosawa_rongai" FROM "2009" WHERE "block_a"='petey williams';
2-11934531-9
What is the largest winner's share in 2008?
CREATE TABLE "winners" ( "year" text, "dates" text, "champion" text, "country" text, "score" text, "tournament_location" text, "purse" real, "winner_s_share" real );
SELECT MAX("winner_s_share") FROM "winners" WHERE "year"='2008';
2-11560216-1
What was the score when Nannette Hill was the champion?
CREATE TABLE "winners" ( "year" text, "dates" text, "champion" text, "country" text, "score" text, "tournament_location" text, "purse" real, "winner_s_share" real );
SELECT "score" FROM "winners" WHERE "champion"='nannette hill';
2-11560216-1
On what date did the away team have a score of 9.10 (64)
CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_20" WHERE "away_team_score"='9.10 (64)';
2-10809157-20
What score did the opposing home team have against Melbourne
CREATE TABLE "round_20" ( "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_20" WHERE "away_team"='melbourne';
2-10809157-20
Name the home team in a game where the away team's score was 14.12 (96)
CREATE TABLE "round_20" ( "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_20" WHERE "away_team_score"='14.12 (96)';
2-10809157-20
Name the venue where St Kilda was the opposing away team
CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_20" WHERE "away_team"='st kilda';
2-10809157-20
Which Crowd has a Home team score of 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 AVG("crowd") FROM "round_8" WHERE "home_team_score"='11.13 (79)';
2-10790804-8
Which Date has a Venue of lake oval?
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 "date" FROM "round_8" WHERE "venue"='lake oval';
2-10790804-8
Which Crowd has an Away team of collingwood?
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 SUM("crowd") FROM "round_8" WHERE "away_team"='collingwood';
2-10790804-8
What is the development rate for wages with a 16-17 year old rate of £3.53, and an Adult Rate of £5.73?
CREATE TABLE "current_and_past_rates" ( "from" text, "adult_rate" text, "development_rate" text, "16_17_year_olds_rate" text, "apprentice_rate" text );
SELECT "development_rate" FROM "current_and_past_rates" WHERE "16_17_year_olds_rate"='£3.53' AND "adult_rate"='£5.73';
2-1127188-1
What was the adult rate when the 16-17 year old rate was £3.40?
CREATE TABLE "current_and_past_rates" ( "from" text, "adult_rate" text, "development_rate" text, "16_17_year_olds_rate" text, "apprentice_rate" text );
SELECT "adult_rate" FROM "current_and_past_rates" WHERE "16_17_year_olds_rate"='£3.40';
2-1127188-1
When was the rate for 16-17 year olds £3.40?
CREATE TABLE "current_and_past_rates" ( "from" text, "adult_rate" text, "development_rate" text, "16_17_year_olds_rate" text, "apprentice_rate" text );
SELECT "from" FROM "current_and_past_rates" WHERE "16_17_year_olds_rate"='£3.40';
2-1127188-1
When was there a development rate of £4.92?
CREATE TABLE "current_and_past_rates" ( "from" text, "adult_rate" text, "development_rate" text, "16_17_year_olds_rate" text, "apprentice_rate" text );
SELECT "from" FROM "current_and_past_rates" WHERE "development_rate"='£4.92';
2-1127188-1
When Steve Hazlett is the Player, and the PI GP is under 0, what is the average Rd #?
CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );
SELECT AVG("rd_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='steve hazlett' AND "pl_gp"<0;
2-11636955-9
Which Player has a PI GP over 0 and a Rd # of 1?
CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );
SELECT "player" FROM "list_of_vancouver_canucks_draft_picks" WHERE "pl_gp">0 AND "rd_num"=1;
2-11636955-9
Which Pick # is the highest and has the Rd # is under 1?
CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );
SELECT MAX("pick_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "rd_num"<1;
2-11636955-9
What is the lowest PI GP when the Reg GP is 1, Murray Bannerman is the Player, and the Pick # is under 58?
CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );
SELECT MIN("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "reg_gp"=1 AND "player"='murray bannerman' AND "pick_num"<58;
2-11636955-9
Tell me the average top 25 with events of 5 and cuts madde less than 3
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real );
SELECT AVG("top_25") FROM "summary" WHERE "events"=5 AND "cuts_made"<3;
2-1085651-4
Tell me the highest cuts made with wins more than 1
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real );
SELECT MAX("cuts_made") FROM "summary" WHERE "wins">1;
2-1085651-4
I want to know the highest wins for cuts made more than 5
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real );
SELECT MAX("wins") FROM "summary" WHERE "cuts_made">5;
2-1085651-4
Tell me the sum of top 5 with events less than 12 and top 25 less than 0
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real );
SELECT SUM("top_5") FROM "summary" WHERE "events"<12 AND "top_25"<0;
2-1085651-4
What was the biggest crowd when South Melbourne was an away team?
CREATE TABLE "round_17" ( "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_17" WHERE "away_team"='south melbourne';
2-10887379-17
Which venue hosted South Melbourne as an away team?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_17" WHERE "away_team"='south melbourne';
2-10887379-17
On what date did the home team score 15.11 (101)?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_17" WHERE "home_team_score"='15.11 (101)';
2-10887379-17
At what venue did the away team score 15.16 (106)?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_17" WHERE "away_team_score"='15.16 (106)';
2-10887379-17
Who was the away team when the home team scored 12.21 (93)?
CREATE TABLE "round_17" ( "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_17" WHERE "home_team_score"='12.21 (93)';
2-10887379-17
How many people attended the game on 8 March 2008?
CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT SUM("attendance") FROM "march" WHERE "date"='8 march 2008';
2-11963536-8
What is the Away team score when they played Geelong as the Home team?
CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "away_team_score" FROM "round_3" WHERE "home_team"='geelong';
2-1204658-3
What did the Home team score when the Away team scored 8.14 (62)?
CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "home_team_score" FROM "round_3" WHERE "away_team_score"='8.14 (62)';
2-1204658-3
What is the name of the Away team when the Home team scored 7.8 (50)?
CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "away_team" FROM "round_3" WHERE "home_team_score"='7.8 (50)';
2-1204658-3
What is the name of the Home team when the Away team scored 4.8 (32)?
CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "home_team" FROM "round_3" WHERE "away_team_score"='4.8 (32)';
2-1204658-3
What did Carlton score when they were the Home team?
CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "home_team_score" FROM "round_3" WHERE "home_team"='carlton';
2-1204658-3
What is the name of the Home team that played Fitzroy as the Away team?
CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "home_team" FROM "round_3" WHERE "away_team"='fitzroy';
2-1204658-3
What is the total number of points when the grade was A?
CREATE TABLE "ippt_standards" ( "grade" text, "points" real, "sit_up_reps" text, "standing_broad_jump_cm" text, "chin_up_reps" text, "shuttle_run_sec" text, "2_4km_run_min_sec" text );
SELECT SUM("points") FROM "ippt_standards" WHERE "grade"='a';
2-10890692-2
Which standing broad jump (cm) had the b grade?
CREATE TABLE "ippt_standards" ( "grade" text, "points" real, "sit_up_reps" text, "standing_broad_jump_cm" text, "chin_up_reps" text, "shuttle_run_sec" text, "2_4km_run_min_sec" text );
SELECT "standing_broad_jump_cm" FROM "ippt_standards" WHERE "grade"='b';
2-10890692-2
Which grade did the chin-up (reps) 9-10 receive?
CREATE TABLE "ippt_standards" ( "grade" text, "points" real, "sit_up_reps" text, "standing_broad_jump_cm" text, "chin_up_reps" text, "shuttle_run_sec" text, "2_4km_run_min_sec" text );
SELECT "grade" FROM "ippt_standards" WHERE "chin_up_reps"='9-10';
2-10890692-2
What year was the comp 33?
CREATE TABLE "playoff_stats" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text );
SELECT "year" FROM "playoff_stats" WHERE "comp"='33';
2-11983460-2
In 1984, what was the RAvg?
CREATE TABLE "playoff_stats" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text );
SELECT "r_avg" FROM "playoff_stats" WHERE "year"='1984';
2-11983460-2
In 1983, what was the RAtt?
CREATE TABLE "playoff_stats" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text );
SELECT "r_att" FROM "playoff_stats" WHERE "year"='1983';
2-11983460-2
What team has a 94.1 rating?
CREATE TABLE "playoff_stats" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text );
SELECT "team" FROM "playoff_stats" WHERE "rate"='94.1';
2-11983460-2
What year has a RAtt of 1 and a comp of 49?
CREATE TABLE "playoff_stats" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text );
SELECT "year" FROM "playoff_stats" WHERE "r_att"='1' AND "comp"='49';
2-11983460-2
Who recorded the loss on august 7?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "loss" FROM "game_log" WHERE "date"='august 7';
2-11741681-6
When the away team was st kilda, what did the home team score?
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 "home_team_score" FROM "round_10" WHERE "away_team"='st kilda';
2-10826385-10
Where did the away team score 11.15 (81)?
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 "venue" FROM "round_10" WHERE "away_team_score"='11.15 (81)';
2-10826385-10
When the home team was geelong, what did the away team score?
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 "away_team_score" FROM "round_10" WHERE "home_team"='geelong';
2-10826385-10
Which Artist has an Issue Price of $8,159.95?
CREATE TABLE "500_dollars" ( "year" real, "artist" text, "composition" text, "mintage" real, "issue_price" text );
SELECT "artist" FROM "500_dollars" WHERE "issue_price"='$8,159.95';
2-11916083-73
What is the lowest Mintage for the Artist Royal Canadian Mint Engravers, in the Year 2009, with an Issue Price of $10,199.95?
CREATE TABLE "500_dollars" ( "year" real, "artist" text, "composition" text, "mintage" real, "issue_price" text );
SELECT MIN("mintage") FROM "500_dollars" WHERE "artist"='royal canadian mint engravers' AND "issue_price"='$10,199.95' AND "year">2009;
2-11916083-73
What is the sum of Artist Steve Hepburn's Mintage?
CREATE TABLE "500_dollars" ( "year" real, "artist" text, "composition" text, "mintage" real, "issue_price" text );
SELECT SUM("mintage") FROM "500_dollars" WHERE "artist"='steve hepburn';
2-11916083-73
What is the average Year for the Royal Canadian Mint Engravers Artist when the Mintage is under 200?
CREATE TABLE "500_dollars" ( "year" real, "artist" text, "composition" text, "mintage" real, "issue_price" text );
SELECT AVG("year") FROM "500_dollars" WHERE "artist"='royal canadian mint engravers' AND "mintage"<200;
2-11916083-73
When the Year is over 2008, what is the highest Mintage for the Royal Canadian Mint Engravers Artist?
CREATE TABLE "500_dollars" ( "year" real, "artist" text, "composition" text, "mintage" real, "issue_price" text );
SELECT MAX("mintage") FROM "500_dollars" WHERE "artist"='royal canadian mint engravers' AND "year">2008;
2-11916083-73
What is the name of the New York Red Bulls coach who was from the United States and began after 2010?
CREATE TABLE "list_of_coaches_by_club" ( "name" text, "nationality" text, "club" text, "from" real, "until" text );
SELECT "name" FROM "list_of_coaches_by_club" WHERE "nationality"='united states' AND "from">2010 AND "club"='new york red bulls';
2-1178591-1
When did José Luis Sánchez Solá end his term of coaching?
CREATE TABLE "list_of_coaches_by_club" ( "name" text, "nationality" text, "club" text, "from" real, "until" text );
SELECT "until" FROM "list_of_coaches_by_club" WHERE "name"='josé luis sánchez solá';
2-1178591-1
What is the class of the locomotive with an Eastleigh Works manufacturer, made in 1914, and withdrawn in 1959?
CREATE TABLE "1912_1922" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_withdrawn" text );
SELECT "class" FROM "1912_1922" WHERE "manufacturer"='eastleigh works' AND "year_made"='1914' AND "year_s_withdrawn"='1959';
2-1169552-6
What is the class of the locomotive with a wheel arrangement of 4-6-0 and a quantity made of 14?
CREATE TABLE "1912_1922" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_withdrawn" text );
SELECT "class" FROM "1912_1922" WHERE "wheel_arrangement"='4-6-0' AND "quantity_made"='14';
2-1169552-6
What is the fleet number of the locomotive with 1 quantity made?
CREATE TABLE "1912_1922" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_withdrawn" text );
SELECT "fleet_number_s" FROM "1912_1922" WHERE "quantity_made"='1';
2-1169552-6
In games where st kilda was the away team, what was the smallest crowd?
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 MIN("crowd") FROM "round_10" WHERE "away_team"='st kilda';
2-10824095-10
In fitzroy's match where they were the home team, how much did they score?
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 "home_team_score" FROM "round_10" WHERE "home_team"='fitzroy';
2-10824095-10
What was the score for the home team who plays their matches at the mcg venue?
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 "home_team_score" FROM "round_10" WHERE "venue"='mcg';
2-10824095-10
Which player has the lowest earnings and has at least 4 wins and is ranked higher than 4?
CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );
SELECT MIN("earnings") FROM "leaders" WHERE "wins"=4 AND "rank">4;
2-11622840-4
How many wins do the players that earned more than 720,134 have?
CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );
SELECT SUM("wins") FROM "leaders" WHERE "earnings">'720,134';
2-11622840-4
Who is the highest ranked player that has earnings below 395,386?
CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );
SELECT MAX("rank") FROM "leaders" WHERE "earnings"<'395,386';
2-11622840-4
What player has earnings above 358,770 and a rank smaller than 2?
CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real );
SELECT "player" FROM "leaders" WHERE "earnings">'358,770' AND "rank"<2;
2-11622840-4
In what Game did Rams Points equal 0?
CREATE TABLE "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "rams_points" real, "opponents" real, "record" text, "venue" text, "attendance" real );
SELECT "game" FROM "schedule" WHERE "rams_points"=0;
2-11157122-2
What Opponent has a 6-0 Record?
CREATE TABLE "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "rams_points" real, "opponents" real, "record" text, "venue" text, "attendance" real );
SELECT "opponent" FROM "schedule" WHERE "record"='6-0';
2-11157122-2
What is the sum of the interview scores from North Dakota that have averages less than 8.697, evening gown scores less than 8.73, and swimsuit scores greater than 8.41?
CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT SUM("interview") FROM "preliminary_competition" WHERE "average"<8.697 AND "evening_gown"<8.73 AND "state"='north dakota' AND "swimsuit">8.41;
2-12044284-1
What is the sum of the swimsuit scores from Missouri that have evening gown scores less than 8.77 and average scores less than 8.823?
CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT SUM("swimsuit") FROM "preliminary_competition" WHERE "evening_gown"<8.77 AND "state"='missouri' AND "average"<8.823;
2-12044284-1
What is the total number of swimsuit scores that have average scores less than 8.823, evening gown scores less than 8.69, and interview scores equal to 8.27?
CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT COUNT("swimsuit") FROM "preliminary_competition" WHERE "average"<8.823 AND "evening_gown"<8.69 AND "interview"=8.27;
2-12044284-1
What is the lowest swimsuit score where the contestant scored less than 8.56 in the interview and greater than 8.54 in the evening gown?
CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT MIN("swimsuit") FROM "preliminary_competition" WHERE "interview"<8.56 AND "evening_gown">8.54;
2-12044284-1
What is the sum of the evening gown scores where the interview score is less than 8.77, the swimsuit score is equal to 7.8, and the average score is less than 8.2?
CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT SUM("evening_gown") FROM "preliminary_competition" WHERE "interview"<8.77 AND "swimsuit"=7.8 AND "average"<8.2;
2-12044284-1
What was the attendance for the game that has a tie number of 13?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real );
SELECT SUM("attendance") FROM "second_round_proper" WHERE "tie_no"='13';
2-11647944-3
What is the average attendance when the Forest Green Rovers is the away team?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real );
SELECT AVG("attendance") FROM "second_round_proper" WHERE "away_team"='forest green rovers';
2-11647944-3
What is the grid number for troy corser with under 22 laps?
CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT SUM("grid") FROM "superbike_race_2_classification" WHERE "rider"='troy corser' AND "laps"<22;
2-11002563-2
What rider went under 22 laps with grid number 2?
CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT "rider" FROM "superbike_race_2_classification" WHERE "laps"<22 AND "grid"=2;
2-11002563-2
What country speaks Vietnamese?
CREATE TABLE "franchise_index" ( "country_region" text, "languages" text, "premiere" text, "seasons" text, "status" text );
SELECT "country_region" FROM "franchise_index" WHERE "languages"='vietnamese';
2-11323532-2
What ranking did Team 250cc Honda end up in when it finished a race with a time of 1:27.57.28?
CREATE TABLE "lightweight_manx_grand_prix" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );
SELECT COUNT("rank") FROM "lightweight_manx_grand_prix" WHERE "team"='250cc honda' AND "time"='1:27.57.28';
2-11972799-8
Tell me the constructor for grid of 8
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "race" WHERE "grid"=8;
2-1123290-2
I want the total number of Grids for heinz-harald frentzen
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("grid") FROM "race" WHERE "driver"='heinz-harald frentzen';
2-1123290-2
On what date did Fitzroy have a home team score of 8.13 (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 "date" FROM "round_9" WHERE "home_team_score"='8.13 (61)';
2-10789881-9
What is the average crowd for the home team of North Melbourne?
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 AVG("crowd") FROM "round_9" WHERE "home_team"='north melbourne';
2-10789881-9
Who was the visiting team on 12 March 2008?
CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "visitor" FROM "march" WHERE "date"='12 march 2008';
2-11961176-8
Who was the home team where Trail Blazers were the visitor?
CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "home" FROM "march" WHERE "visitor"='trail blazers';
2-11961176-8
In the game on 11 March 2008 with a visiting team of Bucks, who was the home team?
CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "home" FROM "march" WHERE "visitor"='bucks' AND "date"='11 march 2008';
2-11961176-8
How many laps for robin montgomerie-charrington, and a Grid smaller than 15?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("laps") FROM "race" WHERE "driver"='robin montgomerie-charrington' AND "grid"<15;
2-1122064-2
What is the mean number of totals with no silvers and a bronze number less than 0?
CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("total") FROM "medal_count" WHERE "silver"=0 AND "bronze"<0;
2-113362-4
What is the least number of Silvers with a ranking of less than 4 where the bronze number was larger than 9?
CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("silver") FROM "medal_count" WHERE "rank"<4 AND "bronze">9;
2-113362-4
Which mean rank had a silver number smaller than 0?
CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("rank") FROM "medal_count" WHERE "silver"<0;
2-113362-4
What is the least total number with a rank of 4 and a total silver number bigger than 3?
CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("total") FROM "medal_count" WHERE "rank"=4 AND "silver">3;
2-113362-4
Name the category for 2nd melon music awards
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nomination" text, "result" text );
SELECT "category" FROM "awards_and_nominations" WHERE "award"='2nd melon music awards';
2-11999122-7
Name the award won in the hall of fame
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nomination" text, "result" text );
SELECT "award" FROM "awards_and_nominations" WHERE "result"='won' AND "category"='hall of fame';
2-11999122-7
Name the nomination in 2011 that won
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nomination" text, "result" text );
SELECT "nomination" FROM "awards_and_nominations" WHERE "year"=2011 AND "result"='won';
2-11999122-7
Name the result in 2010 for bgm cyworld
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nomination" text, "result" text );
SELECT "result" FROM "awards_and_nominations" WHERE "year"=2010 AND "award"='bgm cyworld';
2-11999122-7
What is the car # of the Chevrolet that complete 363 laps?
CREATE TABLE "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text );
SELECT COUNT("car_num") FROM "race_results" WHERE "make"='chevrolet' AND "laps"=363;
2-11061649-1
How many points did the driver who won $127,541 driving car #31 get?
CREATE TABLE "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text );
SELECT MAX("points") FROM "race_results" WHERE "winnings"='$127,541' AND "car_num">31;
2-11061649-1
What is the english title of the film before 1999 with a role of kim da-rim?
CREATE TABLE "filmography" ( "year" real, "english_title" text, "korean_title" text, "romanization" text, "role" text, "director" text );
SELECT "english_title" FROM "filmography" WHERE "year"<1999 AND "role"='kim da-rim';
2-11266821-1
What English title for the Romanization of lee jae-su-eui nan?
CREATE TABLE "filmography" ( "year" real, "english_title" text, "korean_title" text, "romanization" text, "role" text, "director" text );
SELECT "english_title" FROM "filmography" WHERE "romanization"='lee jae-su-eui nan';
2-11266821-1
What is the Romanization for my old sweetheart?
CREATE TABLE "filmography" ( "year" real, "english_title" text, "korean_title" text, "romanization" text, "role" text, "director" text );
SELECT "romanization" FROM "filmography" WHERE "english_title"='my old sweetheart';
2-11266821-1
What is the English of chae soo-yeon?
CREATE TABLE "filmography" ( "year" real, "english_title" text, "korean_title" text, "romanization" text, "role" text, "director" text );
SELECT "english_title" FROM "filmography" WHERE "role"='chae soo-yeon';
2-11266821-1