question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
|---|---|---|---|
Which years have a Decile smaller than 2, and an Area of mohaka?
|
CREATE TABLE "wairoa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "years" FROM "wairoa_district" WHERE "decile"<2 AND "area"='mohaka';
|
2-12195931-1
|
Which gender has an Authority of state, Years of 1–8, and a Decile smaller than 10, and a Roll of 36?
|
CREATE TABLE "wairoa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "gender" FROM "wairoa_district" WHERE "authority"='state' AND "years"='1–8' AND "decile"<10 AND "roll"=36;
|
2-12195931-1
|
Which roll has an Area of mahia?
|
CREATE TABLE "wairoa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "roll" FROM "wairoa_district" WHERE "area"='mahia';
|
2-12195931-1
|
Which Decile has an Authority of state, a Roll smaller than 61, and an Area of kotemaori?
|
CREATE TABLE "wairoa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "decile" FROM "wairoa_district" WHERE "authority"='state' AND "roll"<61 AND "area"='kotemaori';
|
2-12195931-1
|
What's the highest League Cup with an FA Cup thats larger than 2?
|
CREATE TABLE "appearances" (
"name" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"league_cup" real,
"total" real
);
|
SELECT MAX("league_cup") FROM "appearances" WHERE "fa_cup">2;
|
2-12872606-2
|
What's the total number of FA Cup with a Play-offs of 3, and the Name of Mitch Cook Category:Articles with hCards and has a Total thats less than 11?
|
CREATE TABLE "appearances" (
"name" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"league_cup" real,
"total" real
);
|
SELECT COUNT("fa_cup") FROM "appearances" WHERE "play_offs"=3 AND "name"='mitch cook category:articles with hcards' AND "total"<11;
|
2-12872606-2
|
What's the total of number of FA Cup that has a League small than 29 with Play-offs less than 0?
|
CREATE TABLE "appearances" (
"name" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"league_cup" real,
"total" real
);
|
SELECT COUNT("fa_cup") FROM "appearances" WHERE "league"<29 AND "play_offs"<0;
|
2-12872606-2
|
What's the lowest Play-offs with a League of 4 and FA Cup larger than 1?
|
CREATE TABLE "appearances" (
"name" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"league_cup" real,
"total" real
);
|
SELECT MIN("play_offs") FROM "appearances" WHERE "league"=4 AND "fa_cup">1;
|
2-12872606-2
|
What's the total number of League Cup with a Play-off larger than 2, and a Name of Mitch Cook Category:Articles with hCards?
|
CREATE TABLE "appearances" (
"name" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"league_cup" real,
"total" real
);
|
SELECT COUNT("league_cup") FROM "appearances" WHERE "play_offs">2 AND "name"='mitch cook category:articles with hcards';
|
2-12872606-2
|
What is the number for the Channel 4 weekly rank when there are more than 2.19 million viewers for the episode "zero worship" which was earlier than episode 34?
|
CREATE TABLE "united_kingdom" (
"episode_num" real,
"title" text,
"airdate" text,
"viewers_millions" real,
"channel_4_weekly_rank_a" real
);
|
SELECT COUNT("channel_4_weekly_rank_a") FROM "united_kingdom" WHERE "viewers_millions">2.19 AND "title"='\"zero worship\"' AND "episode_num"<34;
|
2-12146637-4
|
What is the average Channel 4 weekly rank for less than 2.19 million viewers on December 7, 2007?
|
CREATE TABLE "united_kingdom" (
"episode_num" real,
"title" text,
"airdate" text,
"viewers_millions" real,
"channel_4_weekly_rank_a" real
);
|
SELECT AVG("channel_4_weekly_rank_a") FROM "united_kingdom" WHERE "viewers_millions"<2.19 AND "airdate"='december 7, 2007';
|
2-12146637-4
|
What is the number of viewers in millions for the episode on October 10, 2008, and a Channel 4 weekly rank a smaller than 30?
|
CREATE TABLE "united_kingdom" (
"episode_num" real,
"title" text,
"airdate" text,
"viewers_millions" real,
"channel_4_weekly_rank_a" real
);
|
SELECT COUNT("viewers_millions") FROM "united_kingdom" WHERE "airdate"='october 10, 2008' AND "channel_4_weekly_rank_a"<30;
|
2-12146637-4
|
What is the duration of the flight with end time of 21:06?
|
CREATE TABLE "ev_as" (
"start_date_time" text,
"duration" text,
"end_time" text,
"spacecraft" text,
"crew" text
);
|
SELECT "duration" FROM "ev_as" WHERE "end_time"='21:06';
|
2-13292247-2
|
What is the spacecraft with end time of 4 September 04:51?
|
CREATE TABLE "ev_as" (
"start_date_time" text,
"duration" text,
"end_time" text,
"spacecraft" text,
"crew" text
);
|
SELECT "spacecraft" FROM "ev_as" WHERE "end_time"='4 september 04:51';
|
2-13292247-2
|
What is the crew with the end time of 21:11?
|
CREATE TABLE "ev_as" (
"start_date_time" text,
"duration" text,
"end_time" text,
"spacecraft" text,
"crew" text
);
|
SELECT "crew" FROM "ev_as" WHERE "end_time"='21:11';
|
2-13292247-2
|
What is the duration of the Expedition 20 ISS Zvezda?
|
CREATE TABLE "ev_as" (
"start_date_time" text,
"duration" text,
"end_time" text,
"spacecraft" text,
"crew" text
);
|
SELECT "duration" FROM "ev_as" WHERE "spacecraft"='expedition 20 iss zvezda';
|
2-13292247-2
|
Who was the crew for the duration of 12 minutes?
|
CREATE TABLE "ev_as" (
"start_date_time" text,
"duration" text,
"end_time" text,
"spacecraft" text,
"crew" text
);
|
SELECT "crew" FROM "ev_as" WHERE "duration"='12 minutes';
|
2-13292247-2
|
Name the sum of year for connaught engineering and points less than 0
|
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT SUM("year") FROM "complete_world_championship_formula_one_" WHERE "entrant"='connaught engineering' AND "points"<0;
|
2-1235935-1
|
What is the average win percentage of a season with a GB of 5?
|
CREATE TABLE "season_by_season_records" (
"year" text,
"record_a" text,
"win_pct" real,
"league_b" text,
"division_c" text,
"gb_d" text,
"post_season_record_e" text,
"post_season_win_pct" text,
"mlb_affiliate_f" text
);
|
SELECT AVG("win_pct") FROM "season_by_season_records" WHERE "gb_d"='5';
|
2-12482419-2
|
What was the starting position of Joie Chitwood when he finished more than 200 laps?
|
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
|
SELECT "start" FROM "indy_500_results" WHERE "laps">200;
|
2-1235992-1
|
What is Chitwood's lowest completed number of laps with a qualifying time of 124.619?
|
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
|
SELECT MIN("laps") FROM "indy_500_results" WHERE "qual"='124.619';
|
2-1235992-1
|
Which venue was used on 12 September 1998?
|
CREATE TABLE "1963_1998" (
"date" text,
"venue" text,
"score_a" text,
"competition" text,
"att" text
);
|
SELECT "venue" FROM "1963_1998" WHERE "date"='12 september 1998';
|
2-12276713-1
|
What is the score [A] of the match at Vanuatu (n) on 5 September 1998?
|
CREATE TABLE "1963_1998" (
"date" text,
"venue" text,
"score_a" text,
"competition" text,
"att" text
);
|
SELECT "score_a" FROM "1963_1998" WHERE "venue"='vanuatu (n)' AND "date"='5 september 1998';
|
2-12276713-1
|
What is the score [A] of the match on 19 September 1998?
|
CREATE TABLE "1963_1998" (
"date" text,
"venue" text,
"score_a" text,
"competition" text,
"att" text
);
|
SELECT "score_a" FROM "1963_1998" WHERE "date"='19 september 1998';
|
2-12276713-1
|
What was the score of the game when the record was 32–19–7?
|
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "score" FROM "game_log" WHERE "record"='32–19–7';
|
2-12728831-2
|
What was the date of the game when the record was 9–5–2?
|
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "date" FROM "game_log" WHERE "record"='9–5–2';
|
2-12728831-2
|
Who was the home team when the record was 36–21–8?
|
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "home" FROM "game_log" WHERE "record"='36–21–8';
|
2-12728831-2
|
What was the date of the game when the Calgary Flames were the visiting team and there was a record of 1–2–0?
|
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "date" FROM "game_log" WHERE "visitor"='calgary flames' AND "record"='1–2–0';
|
2-12728831-2
|
Who was the home team when the record was 27–14–6?
|
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "home" FROM "game_log" WHERE "record"='27–14–6';
|
2-12728831-2
|
What was the lifespan of Representative Harry P. O'neill from the state of Pennsylvania?
|
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
|
SELECT "lifespan" FROM "external_links" WHERE "state"='pennsylvania' AND "representative"='harry p. o''neill';
|
2-12601092-1
|
What years did Representative Frank A. Oliver serve?
|
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
|
SELECT "years" FROM "external_links" WHERE "representative"='frank a. oliver';
|
2-12601092-1
|
Name the record for october 11
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"time" text,
"att" real,
"record" text
);
|
SELECT "record" FROM "game_log" WHERE "date"='october 11';
|
2-12569321-11
|
Name the score with record of 68-66
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT "score" FROM "game_log" WHERE "record"='68-66';
|
2-12206234-6
|
Name the record for august 28
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT "record" FROM "game_log" WHERE "date"='august 28';
|
2-12206234-6
|
What was the score for Leo Diegel?
|
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
|
SELECT "score" FROM "first_round" WHERE "player"='leo diegel';
|
2-12586224-1
|
What is the name of the player with a To par of –4?
|
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
|
SELECT "player" FROM "first_round" WHERE "to_par"='–4';
|
2-12586224-1
|
What was the surface for the game that was played with partner Tiya Rolle?
|
CREATE TABLE "doubles_20_10_10" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "surface" FROM "doubles_20_10_10" WHERE "partner"='tiya rolle';
|
2-12983853-4
|
What is the final score for the game played on January 10, 2011 with partner Mashona Washington?
|
CREATE TABLE "doubles_20_10_10" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "score" FROM "doubles_20_10_10" WHERE "partner"='mashona washington' AND "date"='january 10, 2011';
|
2-12983853-4
|
What was the outcome for the game that was played on 07-Jun-2010?
|
CREATE TABLE "doubles_20_10_10" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "outcome" FROM "doubles_20_10_10" WHERE "date"='07-jun-2010';
|
2-12983853-4
|
What is the score for the game that was played on 29-Jun-2009?
|
CREATE TABLE "doubles_20_10_10" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "score" FROM "doubles_20_10_10" WHERE "date"='29-jun-2009';
|
2-12983853-4
|
What was the surface for the game that was played on 12-Apr-2005?
|
CREATE TABLE "doubles_20_10_10" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "surface" FROM "doubles_20_10_10" WHERE "date"='12-apr-2005';
|
2-12983853-4
|
What points has james allen as the skipper?
|
CREATE TABLE "global_challenge_2004_5" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
|
SELECT "points" FROM "global_challenge_2004_5" WHERE "skipper"='james allen';
|
2-1227024-4
|
What is the name of the yacht where 12 is the overall place?
|
CREATE TABLE "global_challenge_2004_5" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
|
SELECT "yacht_name" FROM "global_challenge_2004_5" WHERE "overall_place"='12';
|
2-1227024-4
|
Which skipper has a combine elapsed time of 174d 01h 11m 59s?
|
CREATE TABLE "global_challenge_2004_5" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
|
SELECT "skipper" FROM "global_challenge_2004_5" WHERE "combined_elapsed_time"='174d 01h 11m 59s';
|
2-1227024-4
|
Which skipper has barclays adventurer as the name of the yacht?
|
CREATE TABLE "global_challenge_2004_5" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
|
SELECT "skipper" FROM "global_challenge_2004_5" WHERE "yacht_name"='barclays adventurer';
|
2-1227024-4
|
What is the overall place that has 170d 11h 31m 10s as the combined elapsed time?
|
CREATE TABLE "global_challenge_2004_5" (
"overall_place" text,
"yacht_name" text,
"skipper" text,
"points" text,
"combined_elapsed_time" text
);
|
SELECT "overall_place" FROM "global_challenge_2004_5" WHERE "combined_elapsed_time"='170d 11h 31m 10s';
|
2-1227024-4
|
What was the senior status for the judge who was terminated because of death, with a Chief Judge entry of —?
|
CREATE TABLE "former_judges" (
"state" text,
"born_died" text,
"chief_judge" text,
"senior_status" text,
"appointed_by" text,
"reason_for_termination" text
);
|
SELECT "senior_status" FROM "former_judges" WHERE "reason_for_termination"='death' AND "chief_judge"='—';
|
2-1276929-2
|
What is the location of Classification of T12?
|
CREATE TABLE "paralympic_men" (
"classification" text,
"fastest_time_s" real,
"athlete" text,
"country" text,
"date" text,
"location" text
);
|
SELECT "location" FROM "paralympic_men" WHERE "classification"='t12';
|
2-1231316-8
|
What is the fastest time for athlete Jason Smyth?
|
CREATE TABLE "paralympic_men" (
"classification" text,
"fastest_time_s" real,
"athlete" text,
"country" text,
"date" text,
"location" text
);
|
SELECT "fastest_time_s" FROM "paralympic_men" WHERE "athlete"='jason smyth';
|
2-1231316-8
|
What was the final of play No. 2, Alzira Ricardo B.?
|
CREATE TABLE "nominations" (
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text,
"no_11" text,
"no_12" text,
"no_13" text,
"no_14" text,
"no_15" text,
"final" text
);
|
SELECT "final" FROM "nominations" WHERE "no_2"='alzira ricardo b.';
|
2-12531692-12
|
What was the No. 10 team that has No. 8 of Diana?
|
CREATE TABLE "nominations" (
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text,
"no_11" text,
"no_12" text,
"no_13" text,
"no_14" text,
"no_15" text,
"final" text
);
|
SELECT "no_10" FROM "nominations" WHERE "no_8"='diana';
|
2-12531692-12
|
Name the total number of years for chassis of ensign n175
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='ensign n175';
|
2-1228378-2
|
What was the Blue Jays lowest attendance when their record was 52-48?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT MIN("attendance") FROM "game_log" WHERE "record"='52-48';
|
2-12207449-5
|
What is the result when you play at home against Pride
|
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
);
|
SELECT "result" FROM "schedule" WHERE "home_away"='home' AND "opponent"='pride';
|
2-12166669-1
|
What is the result of games played at frontier field
|
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
);
|
SELECT "result" FROM "schedule" WHERE "field"='frontier field';
|
2-12166669-1
|
What days were games played at Hofstra Stadium?
|
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
);
|
SELECT "date" FROM "schedule" WHERE "field"='hofstra stadium';
|
2-12166669-1
|
What Field was played at in an away game against the bayhawks?
|
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
);
|
SELECT "field" FROM "schedule" WHERE "home_away"='away' AND "opponent"='bayhawks';
|
2-12166669-1
|
What is the score of the game played on February 18?
|
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "score" FROM "regular_season" WHERE "date"='february 18';
|
2-12816737-2
|
Who was the home team that played against the Boston Bruins on January 11?
|
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "home" FROM "regular_season" WHERE "visitor"='boston bruins' AND "date"='january 11';
|
2-12816737-2
|
Name the sum of year for olimpija ljubljana with height less than 2.04
|
CREATE TABLE "fiba_euro_basket_2007_squads" (
"player" text,
"height" real,
"position" text,
"year_born" real,
"current_club" text
);
|
SELECT SUM("year_born") FROM "fiba_euro_basket_2007_squads" WHERE "current_club"='olimpija ljubljana' AND "height"<2.04;
|
2-12962773-16
|
Name the position with height of 2.09
|
CREATE TABLE "fiba_euro_basket_2007_squads" (
"player" text,
"height" real,
"position" text,
"year_born" real,
"current_club" text
);
|
SELECT "position" FROM "fiba_euro_basket_2007_squads" WHERE "height"=2.09;
|
2-12962773-16
|
What was the attendance at the ballpark during the game where the Blue Jays had a record of 26-35 during the 1996 season?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT COUNT("attendance") FROM "game_log" WHERE "record"='26-35';
|
2-12206319-4
|
What nominated work received a tony award in 2009?
|
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
|
SELECT "nominated_work" FROM "awards_and_nominations" WHERE "award"='tony award' AND "year"=2009;
|
2-1212502-1
|
What result in the table is from the year 2012?
|
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
|
SELECT "result" FROM "awards_and_nominations" WHERE "year"=2012;
|
2-1212502-1
|
Name the 2011 with 2010 of 2r
|
CREATE TABLE "women_s_doubles" (
"tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
|
SELECT "2011" FROM "women_s_doubles" WHERE "2010"='2r';
|
2-12489251-4
|
Name the 2012 when 2011 is qf
|
CREATE TABLE "women_s_doubles" (
"tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
|
SELECT "2012" FROM "women_s_doubles" WHERE "2011"='qf';
|
2-12489251-4
|
Name the 2012 for 2011 being 1r
|
CREATE TABLE "women_s_doubles" (
"tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
|
SELECT "2012" FROM "women_s_doubles" WHERE "2011"='1r';
|
2-12489251-4
|
Name the 2012 for 2011 being qf
|
CREATE TABLE "women_s_doubles" (
"tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
|
SELECT "2012" FROM "women_s_doubles" WHERE "2011"='qf';
|
2-12489251-4
|
Name the 2008 for 2012 f
|
CREATE TABLE "women_s_doubles" (
"tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
|
SELECT "2008" FROM "women_s_doubles" WHERE "2012"='f';
|
2-12489251-4
|
What is the location of the match on February 29, 2012?
|
CREATE TABLE "recent_results_and_forthcoming_fixtures" (
"date" text,
"location" text,
"score" text,
"scorers_for_chad" text,
"competition" text
);
|
SELECT "location" FROM "recent_results_and_forthcoming_fixtures" WHERE "date"='february 29, 2012';
|
2-1238889-1
|
What is the score of the match on November 15, 2011?
|
CREATE TABLE "recent_results_and_forthcoming_fixtures" (
"date" text,
"location" text,
"score" text,
"scorers_for_chad" text,
"competition" text
);
|
SELECT "score" FROM "recent_results_and_forthcoming_fixtures" WHERE "date"='november 15, 2011';
|
2-1238889-1
|
How many races were in the Mallala Motor Sport Park circuit?
|
CREATE TABLE "race_calendar" (
"race" real,
"circuit" text,
"location_state" text,
"date" text,
"winner" text,
"team" text
);
|
SELECT COUNT("race") FROM "race_calendar" WHERE "circuit"='mallala motor sport park';
|
2-12115367-2
|
What was the first race in Launceston, Tasmania?
|
CREATE TABLE "race_calendar" (
"race" real,
"circuit" text,
"location_state" text,
"date" text,
"winner" text,
"team" text
);
|
SELECT MIN("race") FROM "race_calendar" WHERE "location_state"='launceston, tasmania';
|
2-12115367-2
|
Name the 2nd leg for team 1 of hamburg
|
CREATE TABLE "round_of_16" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
|
SELECT "2nd_leg" FROM "round_of_16" WHERE "team_1"='hamburg';
|
2-12450336-19
|
Name the role for mono studio and title of paradise canyon
|
CREATE TABLE "1935" (
"title" text,
"studio" text,
"role" text,
"leading_lady" text,
"director" text
);
|
SELECT "role" FROM "1935" WHERE "studio"='mono' AND "title"='paradise canyon';
|
2-12379832-10
|
Name the title for marion burns leading lady and role of john mason
|
CREATE TABLE "1935" (
"title" text,
"studio" text,
"role" text,
"leading_lady" text,
"director" text
);
|
SELECT "title" FROM "1935" WHERE "leading_lady"='marion burns' AND "role"='john mason';
|
2-12379832-10
|
Name the role for studio of rep with sheila mannors leading lady and title of westward ho
|
CREATE TABLE "1935" (
"title" text,
"studio" text,
"role" text,
"leading_lady" text,
"director" text
);
|
SELECT "role" FROM "1935" WHERE "studio"='rep' AND "leading_lady"='sheila mannors' AND "title"='westward ho';
|
2-12379832-10
|
Name the studio for john scott
|
CREATE TABLE "1935" (
"title" text,
"studio" text,
"role" text,
"leading_lady" text,
"director" text
);
|
SELECT "studio" FROM "1935" WHERE "role"='john scott';
|
2-12379832-10
|
What is the amount of 000s from 1996?
|
CREATE TABLE "emigration_of_jews_and_their_family_memb" (
"year" text,
"total_000s" real,
"israel" real,
"germany" real,
"jews_halakha_in_israel" text
);
|
SELECT SUM("total_000s") FROM "emigration_of_jews_and_their_family_memb" WHERE "year"='1996';
|
2-12885399-1
|
What was the amount of 000s when Germany had 16.6?
|
CREATE TABLE "emigration_of_jews_and_their_family_memb" (
"year" text,
"total_000s" real,
"israel" real,
"germany" real,
"jews_halakha_in_israel" text
);
|
SELECT "total_000s" FROM "emigration_of_jews_and_their_family_memb" WHERE "germany"=16.6;
|
2-12885399-1
|
Name the average concacaf for merconorte larger than 0 and player of jared borgetti
|
CREATE TABLE "most_appearances" (
"player" text,
"period" text,
"league" real,
"concacaf" real,
"libertadores" real,
"merconorte" real,
"inter_liga" real,
"superliga" real,
"matches" real
);
|
SELECT AVG("concacaf") FROM "most_appearances" WHERE "merconorte">0 AND "player"='jared borgetti' AND "superliga">0;
|
2-1217587-2
|
Name the least merconorte for interliga of 2 and matches more than 260 with superliga more than 7
|
CREATE TABLE "most_appearances" (
"player" text,
"period" text,
"league" real,
"concacaf" real,
"libertadores" real,
"merconorte" real,
"inter_liga" real,
"superliga" real,
"matches" real
);
|
SELECT MIN("merconorte") FROM "most_appearances" WHERE "inter_liga"=2 AND "matches">260 AND "superliga">7;
|
2-1217587-2
|
What was the outcome for the match that ended in a score of 5–7, 6–4, [10–7]?
|
CREATE TABLE "doubles_8_4" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents_in_final" text,
"score_in_final" text
);
|
SELECT "outcome" FROM "doubles_8_4" WHERE "score_in_final"='5–7, 6–4, [10–7]';
|
2-12486018-3
|
What was the surface of the match that ended in a score of 5–7, 6–4, [10–7]?
|
CREATE TABLE "doubles_8_4" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents_in_final" text,
"score_in_final" text
);
|
SELECT "surface" FROM "doubles_8_4" WHERE "score_in_final"='5–7, 6–4, [10–7]';
|
2-12486018-3
|
Who were the opponents in the match or matches that ended in a score of W/O?
|
CREATE TABLE "doubles_8_4" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents_in_final" text,
"score_in_final" text
);
|
SELECT "opponents_in_final" FROM "doubles_8_4" WHERE "score_in_final"='w/o';
|
2-12486018-3
|
What kind of Chassis supports a Maserati Straight-6 engine with Points greater than 0 and built in the year 1955?
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6' AND "points">0 AND "year"=1955;
|
2-1228256-1
|
What kind of Chassis supports an Equipe Gordini Entrant?
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "entrant"='equipe gordini';
|
2-1228256-1
|
What kind of Entrant has a Maserati Straight-6 Engine, built in the year 1958 or early, and has a Maserati 250f Chassis with points less than 4?
|
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"='maserati straight-6' AND "year"<1958 AND "chassis"='maserati 250f' AND "points"<4;
|
2-1228256-1
|
What is the average year for Maserati Straight-4 Engines?
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT AVG("year") FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-4';
|
2-1228256-1
|
Name the sum of ERP W for class of d and frequency mhz of 98.7
|
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
|
SELECT SUM("erp_w") FROM "translators" WHERE "class"='d' AND "frequency_m_hz"=98.7;
|
2-12499438-1
|
Name the ERP W with a frequency mhz more than 93.3 and city license of washington, georgia
|
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
|
SELECT "erp_w" FROM "translators" WHERE "frequency_m_hz">93.3 AND "city_of_license"='washington, georgia';
|
2-12499438-1
|
Which record has a result of loss in the Hero's 3 event?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
);
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "event"='hero''s 3';
|
2-12753207-2
|
Which event led to a 4-0 record?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
);
|
SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='4-0';
|
2-12753207-2
|
Which location led to a 10-3 record?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
);
|
SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='10-3';
|
2-12753207-2
|
In the match against Masahiro Oishi, what was the record?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
);
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='masahiro oishi';
|
2-12753207-2
|
What is the fewest number of points for clubs with less than 2 draws and more than 8 matches played?
|
CREATE TABLE "league_round" (
"team" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
|
SELECT MIN("points") FROM "league_round" WHERE "drawn"<2 AND "played">8;
|
2-12976372-1
|
What is the fewest drawn matches for teams with 2 points and fewer than 6 losses?
|
CREATE TABLE "league_round" (
"team" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
|
SELECT MIN("drawn") FROM "league_round" WHERE "points"=2 AND "lost"<6;
|
2-12976372-1
|
What is the most number of losses for Quetta Zorawar?
|
CREATE TABLE "league_round" (
"team" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
|
SELECT MAX("lost") FROM "league_round" WHERE "team"='quetta zorawar';
|
2-12976372-1
|
What is the sum of the drawn values for teams with 2 losses?
|
CREATE TABLE "league_round" (
"team" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
|
SELECT SUM("drawn") FROM "league_round" WHERE "lost"=2;
|
2-12976372-1
|
which round has a margin of 178?
|
CREATE TABLE "greatest_winning_margins" (
"rank" text,
"margin" text,
"club" text,
"opponent" text,
"year" text,
"round" text,
"venue" text
);
|
SELECT "round" FROM "greatest_winning_margins" WHERE "margin"='178';
|
2-12161422-9
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.