question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
what is the tie no when the away team is solihull moors? | CREATE TABLE "ties" (
"tie_no" real,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real
); | SELECT SUM("tie_no") FROM "ties" WHERE "away_team"='solihull moors'; | 2-11318956-14 |
who is the away team when the tie no is more than 13 and the home team is team bath? | CREATE TABLE "ties" (
"tie_no" real,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real
); | SELECT "away_team" FROM "ties" WHERE "tie_no">13 AND "home_team"='team bath'; | 2-11318956-14 |
What is the Pick # of the player from Simon Fraser College? | CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT AVG("pick_num") FROM "round_one" WHERE "college"='simon fraser'; | 2-10975034-1 |
What is the margin of victory for the winning score of −10 (71-65-68-70=274)? | CREATE TABLE "pga_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "margin_of_victory" FROM "pga_tour_wins_5" WHERE "winning_score"='−10 (71-65-68-70=274)'; | 2-1157761-5 |
Who is the runner(s)-up for a winning score of −3 (71-74-66-66=277)? | CREATE TABLE "pga_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "runner_s_up" FROM "pga_tour_wins_5" WHERE "winning_score"='−3 (71-74-66-66=277)'; | 2-1157761-5 |
What venue had less than 7.4 extra and the result of 4th? | CREATE TABLE "achievements" (
"year" real,
"meeting" text,
"venue" text,
"result" text,
"event" text,
"extra" real
); | SELECT "venue" FROM "achievements" WHERE "extra"<7.4 AND "result"='4th'; | 2-10907923-1 |
What is the highest extra total before 2003 at the Meeting of all africa games? | CREATE TABLE "achievements" (
"year" real,
"meeting" text,
"venue" text,
"result" text,
"event" text,
"extra" real
); | SELECT MAX("extra") FROM "achievements" WHERE "meeting"='all africa games' AND "year"<2003; | 2-10907923-1 |
What year has an extra of 8, and a result of 3rd? | CREATE TABLE "achievements" (
"year" real,
"meeting" text,
"venue" text,
"result" text,
"event" text,
"extra" real
); | SELECT "year" FROM "achievements" WHERE "extra"=8 AND "result"='3rd'; | 2-10907923-1 |
What year has a venue of algiers, algeria, extra smaller than 8.03, and a Meeting of all africa games? | CREATE TABLE "achievements" (
"year" real,
"meeting" text,
"venue" text,
"result" text,
"event" text,
"extra" real
); | SELECT "year" FROM "achievements" WHERE "venue"='algiers, algeria' AND "extra"<8.03 AND "meeting"='all africa games'; | 2-10907923-1 |
What is the Date with a Set 3 with 15–6? | CREATE TABLE "pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
); | SELECT "date" FROM "pool_a" WHERE "set_3"='15–6'; | 2-11822708-2 |
What is the Set 3 with a Score of 3–1, and has a Set 2 of 13–15? | CREATE TABLE "pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
); | SELECT "set_3" FROM "pool_a" WHERE "score"='3–1' AND "set_2"='13–15'; | 2-11822708-2 |
What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–12? | CREATE TABLE "pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
); | SELECT "set_1" FROM "pool_a" WHERE "score"='3–0' AND "set_3"='15–12'; | 2-11822708-2 |
What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–10? | CREATE TABLE "pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
); | SELECT "set_1" FROM "pool_a" WHERE "score"='3–0' AND "set_3"='15–10'; | 2-11822708-2 |
What is the Set 2 with a Total with 45–12? | CREATE TABLE "pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
); | SELECT "set_2" FROM "pool_a" WHERE "total"='45–12'; | 2-11822708-2 |
What is the Total with a Score of 3–0, and a Date of 14 oct, and has a Set 1 of 15–12? | CREATE TABLE "pool_a" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
); | SELECT "total" FROM "pool_a" WHERE "score"='3–0' AND "date"='14 oct' AND "set_1"='15–12'; | 2-11822708-2 |
What was the date of the footscray home game? | 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"='footscray'; | 2-10885968-9 |
Tell me the time for martin kampmann | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" real,
"time" text,
"location" text
); | SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='martin kampmann'; | 2-11750856-2 |
Tell me the sum of round for record of 6-3 | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" real,
"time" text,
"location" text
); | SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "record"='6-3'; | 2-11750856-2 |
Tell me the location for win with record of 8-5 | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" real,
"time" text,
"location" text
); | SELECT "location" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "record"='8-5'; | 2-11750856-2 |
In which of North Melbourne's away games was there the lowest crowd? | 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 MIN("crowd") FROM "round_13" WHERE "away_team"='north melbourne'; | 2-10808089-13 |
What is the build date of the model with PRR Class brs24? | CREATE TABLE "baldwin_locomotive_works" (
"prr_class" text,
"builder_s_model" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"service" text,
"power_output" text
); | SELECT "build_date" FROM "baldwin_locomotive_works" WHERE "prr_class"='brs24'; | 2-1140522-2 |
How many total units were built of Model ds-4-4-660 with a b-b wheel arrangement and a PRR Class of bs6? | CREATE TABLE "baldwin_locomotive_works" (
"prr_class" text,
"builder_s_model" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"service" text,
"power_output" text
); | SELECT SUM("total_produced") FROM "baldwin_locomotive_works" WHERE "wheel_arrangement"='b-b' AND "prr_class"='bs6' AND "builder_s_model"='ds-4-4-660'; | 2-1140522-2 |
What is the build date of the model with a PRR Class of brs24? | CREATE TABLE "baldwin_locomotive_works" (
"prr_class" text,
"builder_s_model" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"service" text,
"power_output" text
); | SELECT "build_date" FROM "baldwin_locomotive_works" WHERE "prr_class"='brs24'; | 2-1140522-2 |
What is the total number of roll for Te Hapua school? | CREATE TABLE "far_north" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT COUNT("roll") FROM "far_north" WHERE "name"='te hapua school'; | 2-12016691-1 |
Name the place of action for the marine corps and corporal rank | CREATE TABLE "korean_expedition" (
"name" text,
"service" text,
"rank" text,
"place_of_action" text,
"unit" text
); | SELECT "place_of_action" FROM "korean_expedition" WHERE "service"='marine corps' AND "rank"='corporal'; | 2-1202355-1 |
When driver heinz-harald frentzen has a number of laps greater than 60, what is the sum of grid? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT COUNT("grid") FROM "race" WHERE "laps">60 AND "driver"='heinz-harald frentzen'; | 2-1123236-2 |
What is the population total for saint-wenceslas with a region number of under 17? | CREATE TABLE "list_of_municipalities_in_quebec" (
"code" real,
"type" text,
"name" text,
"area_km_2" real,
"population" real,
"regional_county_municipality" text,
"region" real
); | SELECT SUM("population") FROM "list_of_municipalities_in_quebec" WHERE "name"='saint-wenceslas' AND "region"<17; | 2-11218948-4 |
What is the smallest code associated with a type of m for a region less than 17 named, named saint-sylvère? | CREATE TABLE "list_of_municipalities_in_quebec" (
"code" real,
"type" text,
"name" text,
"area_km_2" real,
"population" real,
"regional_county_municipality" text,
"region" real
); | SELECT MIN("code") FROM "list_of_municipalities_in_quebec" WHERE "type"='m' AND "name"='saint-sylvère' AND "region"<17; | 2-11218948-4 |
What competition was at the Daugava Stadium, Riga, Latvia? | CREATE TABLE "ireland_international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "ireland_international_goals" WHERE "venue"='daugava stadium, riga, latvia'; | 2-1208731-3 |
How many total goals were made at the game on 15 November 1989? | CREATE TABLE "ireland_international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT COUNT("goal") FROM "ireland_international_goals" WHERE "date"='15 november 1989'; | 2-1208731-3 |
What is the captain's name of team Leeds United? | CREATE TABLE "personnel_and_kits" (
"team" text,
"manager" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text
); | SELECT "captain" FROM "personnel_and_kits" WHERE "team"='leeds united'; | 2-1145923-1 |
Who is the shirt sponsor for Captain Geoff Thomas' team? | CREATE TABLE "personnel_and_kits" (
"team" text,
"manager" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text
); | SELECT "shirt_sponsor" FROM "personnel_and_kits" WHERE "captain"='geoff thomas'; | 2-1145923-1 |
What is the name of the team that Tulip Computers NV sponsors? | CREATE TABLE "personnel_and_kits" (
"team" text,
"manager" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text
); | SELECT "team" FROM "personnel_and_kits" WHERE "shirt_sponsor"='tulip computers nv'; | 2-1145923-1 |
What is the name of the captain for team Norwich City? | CREATE TABLE "personnel_and_kits" (
"team" text,
"manager" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text
); | SELECT "captain" FROM "personnel_and_kits" WHERE "team"='norwich city'; | 2-1145923-1 |
What team does Graeme Souness manage? | CREATE TABLE "personnel_and_kits" (
"team" text,
"manager" text,
"captain" text,
"kit_manufacturer" text,
"shirt_sponsor" text
); | SELECT "team" FROM "personnel_and_kits" WHERE "manager"='graeme souness'; | 2-1145923-1 |
what is the lowest laps when the grid is smaller than 5 and the driver is juan manuel fangio? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MIN("laps") FROM "classification" WHERE "grid"<5 AND "driver"='juan manuel fangio'; | 2-1122148-1 |
what is the grid when the time/retired is +9 laps and the laps is larger than 91? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT COUNT("grid") FROM "classification" WHERE "time_retired"='+9 laps' AND "laps">91; | 2-1122148-1 |
what is the lowest grid when the time retired is clutch, the driver is peter collins and the laps is smaller than 26? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MIN("grid") FROM "classification" WHERE "time_retired"='clutch' AND "driver"='peter collins' AND "laps"<26; | 2-1122148-1 |
What zone has camp type D/S in area Bl9? | CREATE TABLE "grand_canyon_zoning_and_use_limits" (
"area" text,
"name" text,
"zone" text,
"group_s" real,
"parties" real,
"max_people" real,
"camp_type" text
); | SELECT "zone" FROM "grand_canyon_zoning_and_use_limits" WHERE "camp_type"='d/s' AND "area"='bl9'; | 2-11939154-1 |
Which name has group 0 in Bl4 area? | CREATE TABLE "grand_canyon_zoning_and_use_limits" (
"area" text,
"name" text,
"zone" text,
"group_s" real,
"parties" real,
"max_people" real,
"camp_type" text
); | SELECT "name" FROM "grand_canyon_zoning_and_use_limits" WHERE "group_s"=0 AND "area"='bl4'; | 2-11939154-1 |
Which zone has max capacity of 23 in a group under 2 at Robbers Roost? | CREATE TABLE "grand_canyon_zoning_and_use_limits" (
"area" text,
"name" text,
"zone" text,
"group_s" real,
"parties" real,
"max_people" real,
"camp_type" text
); | SELECT "zone" FROM "grand_canyon_zoning_and_use_limits" WHERE "max_people">23 AND "group_s"<2 AND "name"='robbers roost'; | 2-11939154-1 |
I want to know the average crowd for away team of melbourne | 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 AVG("crowd") FROM "round_11" WHERE "away_team"='melbourne'; | 2-10807253-11 |
Which driver had a time off course? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" text,
"points" real
); | SELECT "driver" FROM "race" WHERE "time_retired"='off course'; | 2-12032042-2 |
What is the top lap that had 2 grids and more than 26 points? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" text,
"points" real
); | SELECT MAX("laps") FROM "race" WHERE "grid"='2' AND "points">26; | 2-12032042-2 |
What is the top lap that had 6 grids and more than 19 points? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" text,
"points" real
); | SELECT MAX("laps") FROM "race" WHERE "grid"='6' AND "points">19; | 2-12032042-2 |
What is the average point count for tristan gommendy? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" text,
"points" real
); | SELECT AVG("points") FROM "race" WHERE "driver"='tristan gommendy'; | 2-12032042-2 |
What is the point low with 2 grids? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" text,
"points" real
); | SELECT MIN("points") FROM "race" WHERE "grid"='2'; | 2-12032042-2 |
What is the Dismissals with a Venue with source: cricinfo.com? | CREATE TABLE "most_dismissals_in_a_match" (
"dismissals" text,
"player" text,
"versus" text,
"venue" text,
"date" text
); | SELECT "dismissals" FROM "most_dismissals_in_a_match" WHERE "venue"='source: cricinfo.com'; | 2-11611293-12 |
What is the Versus with a Player with ko otieno, with Venue with bloemfontein? | CREATE TABLE "most_dismissals_in_a_match" (
"dismissals" text,
"player" text,
"versus" text,
"venue" text,
"date" text
); | SELECT "versus" FROM "most_dismissals_in_a_match" WHERE "player"='ko otieno' AND "venue"='bloemfontein'; | 2-11611293-12 |
What is the Venue with a Date with 27-02-2003? | CREATE TABLE "most_dismissals_in_a_match" (
"dismissals" text,
"player" text,
"versus" text,
"venue" text,
"date" text
); | SELECT "venue" FROM "most_dismissals_in_a_match" WHERE "date"='27-02-2003'; | 2-11611293-12 |
What is the Player with Versus with australia? | CREATE TABLE "most_dismissals_in_a_match" (
"dismissals" text,
"player" text,
"versus" text,
"venue" text,
"date" text
); | SELECT "player" FROM "most_dismissals_in_a_match" WHERE "versus"='australia'; | 2-11611293-12 |
What is the Player with a Date with 12-03-2003? | CREATE TABLE "most_dismissals_in_a_match" (
"dismissals" text,
"player" text,
"versus" text,
"venue" text,
"date" text
); | SELECT "player" FROM "most_dismissals_in_a_match" WHERE "date"='12-03-2003'; | 2-11611293-12 |
What is the Dismissals with a Player with source: cricinfo.com? | CREATE TABLE "most_dismissals_in_a_match" (
"dismissals" text,
"player" text,
"versus" text,
"venue" text,
"date" text
); | SELECT "dismissals" FROM "most_dismissals_in_a_match" WHERE "player"='source: cricinfo.com'; | 2-11611293-12 |
What is the sum number of attendance when the visiting team was Charlotte and the leading scorer was Ricky Davis (23)? | CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT COUNT("attendance") FROM "november" WHERE "visitor"='charlotte' AND "leading_scorer"='ricky davis (23)'; | 2-11961701-3 |
Which Visitor was there when the Home game was played in Miami on November 4? | CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT "visitor" FROM "november" WHERE "home"='miami' AND "date"='november 4'; | 2-11961701-3 |
What nationality is Demetris Nichols? | CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"school_club_team" text
); | SELECT "nationality" FROM "draft_picks" WHERE "player"='demetris nichols'; | 2-11964047-1 |
What school or team has round of 2 with less than 42 picks? | CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"school_club_team" text
); | SELECT "school_club_team" FROM "draft_picks" WHERE "round"=2 AND "pick"<42; | 2-11964047-1 |
What position has round less than 2? | CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"school_club_team" text
); | SELECT "position" FROM "draft_picks" WHERE "round"<2; | 2-11964047-1 |
In what venue is Essendon the home team? | 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 "venue" FROM "round_12" WHERE "home_team"='essendon'; | 2-1164217-12 |
Who was the away team when the venue was Windy Hill? | 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 "venue"='windy hill'; | 2-1164217-12 |
What was the score for Hawthorn when they were the away team? | 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"='hawthorn'; | 2-1164217-12 |
What method was used that had a resulting win against opponent, Natsuko Kikukawa? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" real,
"time" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "opponent"='natsuko kikukawa'; | 2-11450911-2 |
What was the highest number of rounds that had Hikaru Shinohara as an opponent and a record of 11-7? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" real,
"time" text
); | SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "opponent"='hikaru shinohara' AND "record"='11-7'; | 2-11450911-2 |
Which method has a record of 11-10? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" real,
"time" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='11-10'; | 2-11450911-2 |
Who is the loser when the attendance is larger than 31,409 and the date is July 9? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "attendance">'31,409' AND "date"='july 9'; | 2-11513998-5 |
How much in average Loans Received has Contributions less than 34,986,088, Disbursements more than 251,093,944 for Dennis Kucinich † with Operating Expenditures more than 3,638,219? | CREATE TABLE "democrats" (
"candidate" text,
"contributions" real,
"loans_received" real,
"all_receipts" real,
"operating_expenditures" real,
"all_disbursements" real
); | SELECT AVG("loans_received") FROM "democrats" WHERE "contributions"<'34,986,088' AND "all_disbursements">'251,093,944' AND "candidate"='dennis kucinich †' AND "operating_expenditures">'3,638,219'; | 2-12030247-2 |
How much is the lowest Operating Expenditures when Contributions are more than 8,245,241? | CREATE TABLE "democrats" (
"candidate" text,
"contributions" real,
"loans_received" real,
"all_receipts" real,
"operating_expenditures" real,
"all_disbursements" real
); | SELECT MIN("operating_expenditures") FROM "democrats" WHERE "contributions">'8,245,241'; | 2-12030247-2 |
How many Loans Received have Disbursements larger than 21,857,565, and Contributions greater than 3,869,613 with Receipts under 11,405,771? | CREATE TABLE "democrats" (
"candidate" text,
"contributions" real,
"loans_received" real,
"all_receipts" real,
"operating_expenditures" real,
"all_disbursements" real
); | SELECT COUNT("loans_received") FROM "democrats" WHERE "all_disbursements">'21,857,565' AND "contributions">'3,869,613' AND "all_receipts"<'11,405,771'; | 2-12030247-2 |
What is the most Receipts for Barack Obama with Disbursements smaller than 85,176,289? | CREATE TABLE "democrats" (
"candidate" text,
"contributions" real,
"loans_received" real,
"all_receipts" real,
"operating_expenditures" real,
"all_disbursements" real
); | SELECT MAX("all_receipts") FROM "democrats" WHERE "candidate"='barack obama' AND "all_disbursements"<'85,176,289'; | 2-12030247-2 |
How many Operating Expenditures have Receipts of 44,259,386? | CREATE TABLE "democrats" (
"candidate" text,
"contributions" real,
"loans_received" real,
"all_receipts" real,
"operating_expenditures" real,
"all_disbursements" real
); | SELECT COUNT("operating_expenditures") FROM "democrats" WHERE "all_receipts"='44,259,386'; | 2-12030247-2 |
How many wins were there in 2004-05? | CREATE TABLE "most_valuable_player_award_winners" (
"season" text,
"winner" text,
"team" text,
"position" text,
"win_num" real
); | SELECT "win_num" FROM "most_valuable_player_award_winners" WHERE "season"='2004-05'; | 2-11966570-1 |
How many times did jim vivona win? | CREATE TABLE "most_valuable_player_award_winners" (
"season" text,
"winner" text,
"team" text,
"position" text,
"win_num" real
); | SELECT COUNT("win_num") FROM "most_valuable_player_award_winners" WHERE "winner"='jim vivona'; | 2-11966570-1 |
Which position was morristown minutemen in? | CREATE TABLE "most_valuable_player_award_winners" (
"season" text,
"winner" text,
"team" text,
"position" text,
"win_num" real
); | SELECT "position" FROM "most_valuable_player_award_winners" WHERE "team"='morristown minutemen'; | 2-11966570-1 |
Which season was harrisburg lunatics in? | CREATE TABLE "most_valuable_player_award_winners" (
"season" text,
"winner" text,
"team" text,
"position" text,
"win_num" real
); | SELECT "season" FROM "most_valuable_player_award_winners" WHERE "team"='harrisburg lunatics'; | 2-11966570-1 |
What is the smallest rank with less than 2 wings, more than 26 events, and less than $1,831,211? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
); | SELECT MIN("rank") FROM "leaders" WHERE "wins"<2 AND "earnings"<'1,831,211' AND "events">26; | 2-11602885-3 |
What is the most wins with a rank of 5 and less than $1,537,571 in earnings? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
); | SELECT MAX("wins") FROM "leaders" WHERE "rank"=5 AND "earnings">'1,537,571'; | 2-11602885-3 |
What was the venue for Round f? | CREATE TABLE "football_league_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT "venue" FROM "football_league_cup" WHERE "round"='f'; | 2-12108114-7 |
On what date was the Result 1-0? | CREATE TABLE "football_league_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT "date" FROM "football_league_cup" WHERE "result"='1-0'; | 2-12108114-7 |
What was the attendance on 10 november 2004? | CREATE TABLE "football_league_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT AVG("attendance") FROM "football_league_cup" WHERE "date"='10 november 2004'; | 2-12108114-7 |
What is the size of the crowd when the home team is Fitzroy? | 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 COUNT("crowd") FROM "round_9" WHERE "home_team"='fitzroy'; | 2-10790651-9 |
How many laps did riccardo patrese do when he had a time/retird of + 1 lap? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT COUNT("laps") FROM "race" WHERE "time_retired"='+ 1 lap' AND "driver"='riccardo patrese'; | 2-1122923-2 |
Name the episode for jenny bicks and cindy chupack nominees in 2004 | CREATE TABLE "wga" (
"year" real,
"category" text,
"nominee_s" text,
"episode" text,
"result" text
); | SELECT "episode" FROM "wga" WHERE "year"=2004 AND "nominee_s"='jenny bicks and cindy chupack'; | 2-12095272-5 |
Name the episode for year more than 1999 | CREATE TABLE "wga" (
"year" real,
"category" text,
"nominee_s" text,
"episode" text,
"result" text
); | SELECT "episode" FROM "wga" WHERE "year">1999; | 2-12095272-5 |
What was the home team's score at the game held at Junction Oval? | CREATE TABLE "round_19" (
"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_19" WHERE "venue"='junction oval'; | 2-10885968-19 |
What was the away team's score at the game held at MCG? | CREATE TABLE "round_19" (
"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_19" WHERE "venue"='mcg'; | 2-10885968-19 |
Who was the away team at the game held at Arden Street Oval? | CREATE TABLE "round_19" (
"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_19" WHERE "venue"='arden street oval'; | 2-10885968-19 |
What was the size of the crowd at the game where Fitzroy was the home team? | CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "crowd" FROM "round_19" WHERE "home_team"='fitzroy'; | 2-10885968-19 |
Name the most bronze for silver more than 6 and total less than 127 with gold less than 11 | CREATE TABLE "singapore_at_the_2007_southeast_asian_ga" (
"rank" text,
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("bronze") FROM "singapore_at_the_2007_southeast_asian_ga" WHERE "silver">6 AND "total"<127 AND "gold"<11; | 2-11645439-2 |
Name the highest silver for table tennis and bronze more than 0 | CREATE TABLE "singapore_at_the_2007_southeast_asian_ga" (
"rank" text,
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("silver") FROM "singapore_at_the_2007_southeast_asian_ga" WHERE "sport"='table tennis' AND "bronze">0; | 2-11645439-2 |
Which kickoff had an attendance of 58,120? | CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
); | SELECT "kickoff_a" FROM "schedule" WHERE "attendance"='58,120'; | 2-11465521-2 |
What week number did November 19, 1989 games fall on? | CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
); | SELECT "week" FROM "schedule" WHERE "date"='november 19, 1989'; | 2-11465521-2 |
Which game site(s) had record of 2-2? | CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
); | SELECT "game_site" FROM "schedule" WHERE "record"='2-2'; | 2-11465521-2 |
Which game had a kickoff at 1:00 and a record of 3-7? | CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
); | SELECT "opponent" FROM "schedule" WHERE "kickoff_a"='1:00' AND "record"='3-7'; | 2-11465521-2 |
Which game had an attendance of 56,271? | CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
); | SELECT "date" FROM "schedule" WHERE "attendance"='56,271'; | 2-11465521-2 |
Tell me the driver for ford cosworth dfv 3.0 v8 and chassis of ts19 ts20 | CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
); | SELECT "driver" FROM "drivers_and_constructors" WHERE "engine"='ford cosworth dfv 3.0 v8' AND "chassis"='ts19 ts20'; | 2-1140082-1 |
Tell me the constructor for alberto colombo and chassis of a1 | CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
); | SELECT "constructor" FROM "drivers_and_constructors" WHERE "driver"='alberto colombo' AND "chassis"='a1'; | 2-1140082-1 |
Tell me the constructor for clay regazzoni | CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
); | SELECT "constructor" FROM "drivers_and_constructors" WHERE "driver"='clay regazzoni'; | 2-1140082-1 |
Tell me the chassis for team tissot ensign and driver of brett lunger | CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
); | SELECT "chassis" FROM "drivers_and_constructors" WHERE "entrant"='team tissot ensign' AND "driver"='brett lunger'; | 2-1140082-1 |
I want the tyres for hans binder | CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
); | SELECT "tyres" FROM "drivers_and_constructors" WHERE "driver"='hans binder'; | 2-1140082-1 |
I want the constructor for divina galica rounds of 1-2 | CREATE TABLE "drivers_and_constructors" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
); | SELECT "constructor" FROM "drivers_and_constructors" WHERE "rounds"='1-2' AND "driver"='divina galica'; | 2-1140082-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.