question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What position does gerald carter play?
CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text );
SELECT "position" FROM "nfl_draft" WHERE "player"='gerald carter';
2-11406866-1
Who is the guard for Wisconsin?
CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text );
SELECT "player" FROM "nfl_draft" WHERE "position"='guard' AND "school"='wisconsin';
2-11406866-1
Which player is Pick 33 and has a Nationality of USA?
CREATE TABLE "round_two" ( "pick" real, "player" text, "nationality" text, "nba_team" text, "school_club_team" text );
SELECT "player" FROM "round_two" WHERE "nationality"='usa' AND "pick"=33;
2-1203292-3
What is the nationality of the player who has a pick lower than 33 and a School/Club Team of Vanderbilt?
CREATE TABLE "round_two" ( "pick" real, "player" text, "nationality" text, "nba_team" text, "school_club_team" text );
SELECT "nationality" FROM "round_two" WHERE "pick"<33 AND "school_club_team"='vanderbilt';
2-1203292-3
What is the nationality of the player who had the pick of 52 and plays for the NBA team of Phoenix Suns?
CREATE TABLE "round_two" ( "pick" real, "player" text, "nationality" text, "nba_team" text, "school_club_team" text );
SELECT "nationality" FROM "round_two" WHERE "nba_team"='phoenix suns' AND "pick"=52;
2-1203292-3
How many leage apperances for the player with one FA cup, and a FLT Apps of 0 (1)?
CREATE TABLE "appearances_and_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT "league_apps" FROM "appearances_and_goals" WHERE "fa_cup_apps"='1' AND "flt_apps"='0 (1)';
2-11719985-1
What day did St Kilda play as the away team?
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 "away_team"='st kilda';
2-10808346-9
What's the value for 2007 when 2011 is a and 2009 is q2?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );
SELECT "2007" FROM "singles_performance_timeline" WHERE "2011"='a' AND "2009"='q2';
2-11522060-9
Tell me the highest league goals with total goals less than 1 and FA cups more than 0
CREATE TABLE "appearances_and_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT MAX("league_goals") FROM "appearances_and_goals" WHERE "total_goals"<1 AND "fa_cup_goals">0;
2-11135453-1
I want to know the sum of fa cup goals for david mirfin and total goals less than 1
CREATE TABLE "appearances_and_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT SUM("fa_cup_goals") FROM "appearances_and_goals" WHERE "name"='david mirfin' AND "total_goals"<1;
2-11135453-1
Tell me the league apps with league goals less than 2 and position of df and FA cup apps of 5
CREATE TABLE "appearances_and_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT "league_apps" FROM "appearances_and_goals" WHERE "league_goals"<2 AND "position"='df' AND "fa_cup_apps"='5';
2-11135453-1
What is the video ratio on channel 14.2?
CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "network" text );
SELECT "video" FROM "digital_channels" WHERE "channel"=14.2;
2-1094166-1
What network has an aspect of 4:3 and a PSIP Short Name of qvc?
CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "network" text );
SELECT "network" FROM "digital_channels" WHERE "aspect"='4:3' AND "psip_short_name"='qvc';
2-1094166-1
What is ion life network's PSIP Short Name?
CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "network" text );
SELECT "psip_short_name" FROM "digital_channels" WHERE "network"='ion life';
2-1094166-1
What is the sum of channels for qubo network?
CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "network" text );
SELECT SUM("channel") FROM "digital_channels" WHERE "network"='qubo';
2-1094166-1
How many deaths did eseta cause?
CREATE TABLE "seasonal_effects" ( "name" text, "dates_active" text, "windspeeds" text, "pressure" text, "deaths" text );
SELECT "deaths" FROM "seasonal_effects" WHERE "name"='eseta';
2-11065490-1
What was the date when the away team was Carlton?
CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_7" WHERE "away_team"='carlton';
2-10807673-7
What was the home team that had a score of 6.20 (56)
CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_7" WHERE "home_team_score"='6.20 (56)';
2-10807673-7
What was the away team at the venue victoria park?
CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_7" WHERE "venue"='victoria park';
2-10807673-7
When the home team was hawthorn, what was the date?
CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_7" WHERE "home_team"='hawthorn';
2-10807673-7
Where did the game take place when the away team scored 14.15 (99)?
CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_7" WHERE "away_team_score"='14.15 (99)';
2-10823719-7
Which home team scored 23.18 (156)?
CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_7" WHERE "home_team_score"='23.18 (156)';
2-10823719-7
How many spectators had a home team score of 15.14 (104)?
CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT AVG("crowd") FROM "round_7" WHERE "home_team_score"='15.14 (104)';
2-10823719-7
What did Geelong score as the away team?
CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_7" WHERE "away_team"='geelong';
2-10823719-7
What date did the home team of footscray play?
CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_15" WHERE "home_team"='footscray';
2-10784349-15
Which away team scored 5.8 (38)?
CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_15" WHERE "away_team_score"='5.8 (38)';
2-10784349-15
Name the club team for overall of 188 for canada
CREATE TABLE "1998_draft_picks" ( "round" real, "overall" real, "player" text, "nationality" text, "club_team" text );
SELECT "club_team" FROM "1998_draft_picks" WHERE "nationality"='canada' AND "overall"=188;
2-11803648-7
Name the nationality of the player with an overall of 74
CREATE TABLE "1998_draft_picks" ( "round" real, "overall" real, "player" text, "nationality" text, "club_team" text );
SELECT "nationality" FROM "1998_draft_picks" WHERE "overall"=74;
2-11803648-7
What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30?
CREATE TABLE "belt_changes_april_2010_figures_not_avai" ( "feb_2010" text, "mar_2010" text, "may_2010" real, "jun_2010" real, "jul_2010" real, "aug_2010" real, "sep_2010" real, "oct_2010" real, "nov_2010" real, "dec_2010" real, "jan_2011" real, "feb_2011" real, "mar_2011" real, "apr_2011" real, "may_2011" real, "jun_2011" real, "jul_2011" real, "aug_2011" real, "sep_2011" real, "oct_2011" real, "nov_2011" real, "dec_2011" real, "jan_2012" real, "feb_2012" real, "mar_2012" real, "apr_2012" real, "may_2012" real, "jun_2012" real, "jul_2012" real, "aug_2012" real, "sep_2012" real, "oct_2012" real, "nov_2012" real, "dec_2012" real, "jan_2013" real, "feb_2013" real, "mar_2013" real, "apr_2013" real, "may_2013" real, "jun_2013" real, "jul_2013" real, "aug_2013" real, "sep_2013" real, "oct_2013" real );
SELECT MAX("aug_2013") FROM "belt_changes_april_2010_figures_not_avai" WHERE "nov_2011"<968 AND "jul_2012"=31 AND "jun_2011">30;
2-12074447-5
What is the average Apr 2013 with a Jun 2011 less than 14?
CREATE TABLE "belt_changes_april_2010_figures_not_avai" ( "feb_2010" text, "mar_2010" text, "may_2010" real, "jun_2010" real, "jul_2010" real, "aug_2010" real, "sep_2010" real, "oct_2010" real, "nov_2010" real, "dec_2010" real, "jan_2011" real, "feb_2011" real, "mar_2011" real, "apr_2011" real, "may_2011" real, "jun_2011" real, "jul_2011" real, "aug_2011" real, "sep_2011" real, "oct_2011" real, "nov_2011" real, "dec_2011" real, "jan_2012" real, "feb_2012" real, "mar_2012" real, "apr_2012" real, "may_2012" real, "jun_2012" real, "jul_2012" real, "aug_2012" real, "sep_2012" real, "oct_2012" real, "nov_2012" real, "dec_2012" real, "jan_2013" real, "feb_2013" real, "mar_2013" real, "apr_2013" real, "may_2013" real, "jun_2013" real, "jul_2013" real, "aug_2013" real, "sep_2013" real, "oct_2013" real );
SELECT AVG("apr_2013") FROM "belt_changes_april_2010_figures_not_avai" WHERE "jun_2011"<14;
2-12074447-5
What is the average Feb 2013 with a Feb 2010 with 37, and a Nov 2012 less than 32?
CREATE TABLE "belt_changes_april_2010_figures_not_avai" ( "feb_2010" text, "mar_2010" text, "may_2010" real, "jun_2010" real, "jul_2010" real, "aug_2010" real, "sep_2010" real, "oct_2010" real, "nov_2010" real, "dec_2010" real, "jan_2011" real, "feb_2011" real, "mar_2011" real, "apr_2011" real, "may_2011" real, "jun_2011" real, "jul_2011" real, "aug_2011" real, "sep_2011" real, "oct_2011" real, "nov_2011" real, "dec_2011" real, "jan_2012" real, "feb_2012" real, "mar_2012" real, "apr_2012" real, "may_2012" real, "jun_2012" real, "jul_2012" real, "aug_2012" real, "sep_2012" real, "oct_2012" real, "nov_2012" real, "dec_2012" real, "jan_2013" real, "feb_2013" real, "mar_2013" real, "apr_2013" real, "may_2013" real, "jun_2013" real, "jul_2013" real, "aug_2013" real, "sep_2013" real, "oct_2013" real );
SELECT AVG("feb_2013") FROM "belt_changes_april_2010_figures_not_avai" WHERE "feb_2010"='37' AND "nov_2012"<32;
2-12074447-5
What is the total number with Nov 2012 with a Jun 2013 larger than 542, and a Aug 2011 more than 935?
CREATE TABLE "belt_changes_april_2010_figures_not_avai" ( "feb_2010" text, "mar_2010" text, "may_2010" real, "jun_2010" real, "jul_2010" real, "aug_2010" real, "sep_2010" real, "oct_2010" real, "nov_2010" real, "dec_2010" real, "jan_2011" real, "feb_2011" real, "mar_2011" real, "apr_2011" real, "may_2011" real, "jun_2011" real, "jul_2011" real, "aug_2011" real, "sep_2011" real, "oct_2011" real, "nov_2011" real, "dec_2011" real, "jan_2012" real, "feb_2012" real, "mar_2012" real, "apr_2012" real, "may_2012" real, "jun_2012" real, "jul_2012" real, "aug_2012" real, "sep_2012" real, "oct_2012" real, "nov_2012" real, "dec_2012" real, "jan_2013" real, "feb_2013" real, "mar_2013" real, "apr_2013" real, "may_2013" real, "jun_2013" real, "jul_2013" real, "aug_2013" real, "sep_2013" real, "oct_2013" real );
SELECT COUNT("nov_2012") FROM "belt_changes_april_2010_figures_not_avai" WHERE "jun_2013">542 AND "aug_2011">935;
2-12074447-5
What's the total grid for a Time/Retired of +1:03.741, and Laps larger than 44?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("grid") FROM "classification" WHERE "time_retired"='+1:03.741' AND "laps">44;
2-1123311-1
What did the home team at Brunswick Street Oval score?
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 "home_team_score" FROM "round_8" WHERE "venue"='brunswick street oval';
2-10809368-8
Who had the highest rebounds of the game with A. Johnson (6) as the highest assist?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='a. johnson (6)';
2-11961582-4
Who had the highest rebounds of the game with A. Johnson (14) as the highest assists?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='a. johnson (14)';
2-11961582-4
Who was the opponent on August 30?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "opponent" FROM "game_log" WHERE "date"='august 30';
2-11512165-8
What was the score on August 8?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "score" FROM "game_log" WHERE "date"='august 8';
2-11512165-8
Which pick was the lowest from Manila College in Philippines?
CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT MIN("pick") FROM "round_2" WHERE "country_of_origin"='philippines' AND "college"='manila';
2-10791466-3
How many picks included Kenny Evans?
CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT COUNT("pick") FROM "round_2" WHERE "player"='kenny evans';
2-10791466-3
How many picks went to College of Letran?
CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT COUNT("pick") FROM "round_2" WHERE "college"='letran';
2-10791466-3
Which player has a PBA team of Red Bull Thunder?
CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT "player" FROM "round_2" WHERE "pba_team"='red bull thunder';
2-10791466-3
In which event did he place 6th in 1971?
CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text );
SELECT "event" FROM "achievements" WHERE "year"=1971 AND "result"='6th';
2-11881103-1
When was the first year he placed 2nd in Izmir, Turkey?
CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text );
SELECT MIN("year") FROM "achievements" WHERE "result"='2nd' AND "venue"='izmir, turkey';
2-11881103-1
How did he place in 1970?
CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text );
SELECT "result" FROM "achievements" WHERE "year"=1970;
2-11881103-1
How many were in Attendance on the Date May 29?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT COUNT("attendance") FROM "game_log" WHERE "date"='may 29';
2-11514020-2
What was the Record on the Date May 8?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "record" FROM "game_log" WHERE "date"='may 8';
2-11514020-2
What is the 10:00 with a 5:00 with monster knockouts?
CREATE TABLE "schedule" ( "5_00" text, "6_00" text, "7_00" text, "8_00" text, "10_00" text, "11_00" text );
SELECT "10_00" FROM "schedule" WHERE "5_00"='monster knockouts';
2-12076519-1
What is the 6:00 with a 10:00 with mysteryquest?
CREATE TABLE "schedule" ( "5_00" text, "6_00" text, "7_00" text, "8_00" text, "10_00" text, "11_00" text );
SELECT "6_00" FROM "schedule" WHERE "10_00"='mysteryquest';
2-12076519-1
What is the 11:00 with a 5:00 with monster knockouts?
CREATE TABLE "schedule" ( "5_00" text, "6_00" text, "7_00" text, "8_00" text, "10_00" text, "11_00" text );
SELECT "11_00" FROM "schedule" WHERE "5_00"='monster knockouts';
2-12076519-1
What is the 10:00 with a 7:00 with mostly true stories: urban legends revealed?
CREATE TABLE "schedule" ( "5_00" text, "6_00" text, "7_00" text, "8_00" text, "10_00" text, "11_00" text );
SELECT "10_00" FROM "schedule" WHERE "7_00"='mostly true stories: urban legends revealed';
2-12076519-1
What is the 6:00 with a 7:00 of mostly true stories: urban legends revealed, and a 10:00 with mysteryquest?
CREATE TABLE "schedule" ( "5_00" text, "6_00" text, "7_00" text, "8_00" text, "10_00" text, "11_00" text );
SELECT "6_00" FROM "schedule" WHERE "7_00"='mostly true stories: urban legends revealed' AND "10_00"='mysteryquest';
2-12076519-1
What is the 6:00 with an 11:00 of underbelly, and a 10:00 with nostradamus effect?
CREATE TABLE "schedule" ( "5_00" text, "6_00" text, "7_00" text, "8_00" text, "10_00" text, "11_00" text );
SELECT "6_00" FROM "schedule" WHERE "11_00"='underbelly' AND "10_00"='nostradamus effect';
2-12076519-1
Who was the home team at the game played on April 14, 2008?
CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "home" FROM "april" WHERE "date"='april 14, 2008';
2-11963601-9
How many votes were cast when the notes reported lost to incumbent vic gilliam?
CREATE TABLE "2008_ipo_general_election_results" ( "race" text, "candidate" text, "party" text, "notes" text, "votes" real );
SELECT "votes" FROM "2008_ipo_general_election_results" WHERE "notes"='lost to incumbent vic gilliam';
2-12008038-2
Who is the candidate in Race for State representative, hd18?
CREATE TABLE "2008_ipo_general_election_results" ( "race" text, "candidate" text, "party" text, "notes" text, "votes" real );
SELECT "candidate" FROM "2008_ipo_general_election_results" WHERE "race"='state representative, hd18';
2-12008038-2
What club/province does the prop player with over 45 caps play for?
CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );
SELECT "club_province" FROM "2007_rugby_world_cup_squads" WHERE "caps">45 AND "position"='prop';
2-11783766-14
Who was the opponent at the Staples Center?
CREATE TABLE "preseason" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text, "arena" text );
SELECT "opponent" FROM "preseason" WHERE "arena"='staples center';
2-11801795-1
In what arena was the game against the Sharks played?
CREATE TABLE "preseason" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text, "arena" text );
SELECT "arena" FROM "preseason" WHERE "opponent"='sharks';
2-11801795-1
What is the label with the LP format?
CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_num" text );
SELECT "label" FROM "release_history" WHERE "format"='lp';
2-11332611-2
What date had a 4ad label and a CD (reissue) format?
CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_num" text );
SELECT "date" FROM "release_history" WHERE "label"='4ad' AND "format"='cd (reissue)';
2-11332611-2
Which country had a cad 4011 catalogue #?
CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_num" text );
SELECT "country" FROM "release_history" WHERE "catalogue_num"='cad 4011';
2-11332611-2
Which date was for Japan?
CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_num" text );
SELECT "date" FROM "release_history" WHERE "country"='japan';
2-11332611-2
What is the label on the United States?
CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_num" text );
SELECT "label" FROM "release_history" WHERE "country"='united states';
2-11332611-2
What is the date with the catalogue # cocy-80093?
CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_num" text );
SELECT "date" FROM "release_history" WHERE "catalogue_num"='cocy-80093';
2-11332611-2
What category was danson tang nominated?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nomination" text, "result" text );
SELECT "category" FROM "awards_and_nominations" WHERE "nomination"='danson tang';
2-10788873-6
What was the total number of years than had best improved singer (躍進歌手)?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nomination" text, "result" text );
SELECT SUM("year") FROM "awards_and_nominations" WHERE "category"='best improved singer (躍進歌手)';
2-10788873-6
Who constructed the car with a grid over 19 that retired due to suspension?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "race" WHERE "grid">19 AND "time_retired"='suspension';
2-1123360-2
What driver has a 9 grid total?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "driver" FROM "race" WHERE "grid"=9;
2-1123360-2
What was the winning car's chassis for the 1982 season?
CREATE TABLE "by_season" ( "season" text, "champion" text, "team" text, "chassis" text, "engine" text );
SELECT "chassis" FROM "by_season" WHERE "season"='1982';
2-11712604-1
Which team, with champion Bastian Kolmsee, used a Dallara f302 for the chassis?
CREATE TABLE "by_season" ( "season" text, "champion" text, "team" text, "chassis" text, "engine" text );
SELECT "team" FROM "by_season" WHERE "chassis"='dallara f302' AND "champion"='bastian kolmsee';
2-11712604-1
What chassis was the car with the Volkswagen engine built on in 2010?
CREATE TABLE "by_season" ( "season" text, "champion" text, "team" text, "chassis" text, "engine" text );
SELECT "chassis" FROM "by_season" WHERE "engine"='volkswagen' AND "season"='2010';
2-11712604-1
Which engine did Korten Motorsport use?
CREATE TABLE "by_season" ( "season" text, "champion" text, "team" text, "chassis" text, "engine" text );
SELECT "engine" FROM "by_season" WHERE "team"='korten motorsport';
2-11712604-1
Who was the champion that drove the car with the Ford engine in 1971?
CREATE TABLE "by_season" ( "season" text, "champion" text, "team" text, "chassis" text, "engine" text );
SELECT "champion" FROM "by_season" WHERE "engine"='ford' AND "season"='1971';
2-11712604-1
In which season did Jimmy Eriksson win the championship for Team Lotus?
CREATE TABLE "by_season" ( "season" text, "champion" text, "team" text, "chassis" text, "engine" text );
SELECT "season" FROM "by_season" WHERE "team"='lotus' AND "champion"='jimmy eriksson';
2-11712604-1
Which name had 6 goals?
CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "transfer_fee" text );
SELECT "name" FROM "squad_information" WHERE "goals"=6;
2-11220910-1
What is the largest goal number when the transfer fee was £0.8m?
CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "transfer_fee" text );
SELECT MAX("goals") FROM "squad_information" WHERE "transfer_fee"='£0.8m';
2-11220910-1
What is the location of a1 women's - handball?
CREATE TABLE "main_sports_clubs" ( "club" text, "leagues" text, "venue" text, "location" text, "capacity" real, "established" real );
SELECT "location" FROM "main_sports_clubs" WHERE "leagues"='a1 women''s - handball';
2-11336348-1
What is the capacity at the nop aquatic centre, established after 1929?
CREATE TABLE "main_sports_clubs" ( "club" text, "leagues" text, "venue" text, "location" text, "capacity" real, "established" real );
SELECT COUNT("capacity") FROM "main_sports_clubs" WHERE "venue"='nop aquatic centre' AND "established">1929;
2-11336348-1
What is the capacity for b national - basketball?
CREATE TABLE "main_sports_clubs" ( "club" text, "leagues" text, "venue" text, "location" text, "capacity" real, "established" real );
SELECT COUNT("capacity") FROM "main_sports_clubs" WHERE "leagues"='b national - basketball';
2-11336348-1
What game week did the Buccaneers play against the Minnesota Vikings?
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 "opponent"='minnesota vikings';
2-11440693-2
What game week did the buccaneers have a record of 0-5?
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 "record"='0-5';
2-11440693-2
What is the record of the buccaneers on December 4, 1983?
CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "attendance" text, "record" text );
SELECT "record" FROM "schedule" WHERE "date"='december 4, 1983';
2-11440693-2
What was the attendance at the game against Ottawa?
CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT AVG("attendance") FROM "december" WHERE "visitor"='ottawa';
2-11771022-5
What was the highest attendance at a Detroit home game?
CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT MAX("attendance") FROM "december" WHERE "home"='detroit';
2-11771022-5
Which team had an attendance larger than 14,333 in a game against Toronto?
CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "home" FROM "december" WHERE "attendance">'14,333' AND "visitor"='toronto';
2-11771022-5
What was the attendance of the Florida vs. Montreal game?
CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT AVG("attendance") FROM "december" WHERE "home"='florida' AND "visitor"='montreal';
2-11771022-5
I want to know the condition with Prothrombin time of unaffected and bleeding time of prolonged with partial thromboplastin time of unaffected with platelet count of decreased or unaffected
CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text );
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='unaffected' AND "bleeding_time"='prolonged' AND "partial_thromboplastin_time"='unaffected' AND "platelet_count"='decreased or unaffected';
2-1099080-1
I want the condition that has a prolonged bleeding time and a platelet count of decreased or unaffected
CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text );
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "bleeding_time"='prolonged' AND "platelet_count"='decreased or unaffected';
2-1099080-1
I want the prothrombin time with a partial thromboplastin time of prolonged and unaffected bleeding time and factor xii deficiency for condition of factor
CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text );
SELECT "prothrombin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='prolonged' AND "bleeding_time"='unaffected' AND "condition"='factor xii deficiency';
2-1099080-1
I want the condition that has a partial thromboplastin time of prolonged and unaffected bleeding time
CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text );
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='prolonged' AND "bleeding_time"='unaffected';
2-1099080-1
What is the ICAO for Antalya Airport?
CREATE TABLE "current_destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "icao" FROM "current_destinations" WHERE "airport"='antalya airport';
2-11492579-2
What is the IATA of Leonardo da Vinci-Fiumicino Airport?
CREATE TABLE "current_destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "iata" FROM "current_destinations" WHERE "airport"='leonardo da vinci-fiumicino airport';
2-11492579-2
What country is the IATA BLQ located in?
CREATE TABLE "current_destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "country" FROM "current_destinations" WHERE "iata"='blq';
2-11492579-2
What is the IATA of Madrid-Barajas Airport?
CREATE TABLE "current_destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "iata" FROM "current_destinations" WHERE "airport"='madrid-barajas airport';
2-11492579-2
Which city has the ICAO of LIRF?
CREATE TABLE "current_destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "city" FROM "current_destinations" WHERE "icao"='lirf';
2-11492579-2
Which city is Naples Airport located in?
CREATE TABLE "current_destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "city" FROM "current_destinations" WHERE "airport"='naples airport';
2-11492579-2
Tell me the Ryuji Hijikata for TAKA Michinoku of Hayashi (28:05)
CREATE TABLE "2006" ( "block_a" text, "kaz_hayashi" text, "ryuji_hijikata" text, "taka_michinoku" text, "brother_yasshi" text );
SELECT "ryuji_hijikata" FROM "2006" WHERE "taka_michinoku"='hayashi (28:05)';
2-11934531-3
Tell me the Ryuji Hijikata for Block A of Ryuji Hijikata
CREATE TABLE "2006" ( "block_a" text, "kaz_hayashi" text, "ryuji_hijikata" text, "taka_michinoku" text, "brother_yasshi" text );
SELECT "ryuji_hijikata" FROM "2006" WHERE "block_a"='ryuji hijikata';
2-11934531-3
When South Melbourne was the Away Team, what was their score?
CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_15" WHERE "away_team"='south melbourne';
2-10808681-15