question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
How many league cup goals on average for players with over 0 FA cup and 5 league goals?
CREATE TABLE "goalscorers" ( "name" text, "league" real, "fa_cup" real, "league_cup" real, "europe" real, "total" real );
SELECT AVG("league_cup") FROM "goalscorers" WHERE "fa_cup">0 AND "league"=5;
2-11645756-4
What is the low FA cup goals for viduka with under 2 europe goals?
CREATE TABLE "goalscorers" ( "name" text, "league" real, "fa_cup" real, "league_cup" real, "europe" real, "total" real );
SELECT MIN("fa_cup") FROM "goalscorers" WHERE "name"='viduka' AND "europe"<2;
2-11645756-4
Who won the most recent favorite rap/hip-hop new artist at the American music awards?
CREATE TABLE "awards_and_nominations" ( "year" real, "association" text, "category" text, "nominated_work" text, "result" text );
SELECT MAX("year") FROM "awards_and_nominations" WHERE "association"='american music awards' AND "category"='favorite rap/hip-hop new artist';
2-1101239-4
What is the Date with a Leading scorer with maurice williams (25), and a Score with 102–105?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "date" FROM "january" WHERE "leading_scorer"='maurice williams (25)' AND "score"='102–105';
2-11961176-6
What is the Score with a Home with hornets?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "score" FROM "january" WHERE "home"='hornets';
2-11961176-6
What is the Score with a Visitor of bucks, and a Leading scorer with maurice williams (25)?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "score" FROM "january" WHERE "visitor"='bucks' AND "leading_scorer"='maurice williams (25)';
2-11961176-6
What is the Record with a Leading scorer with andrew bogut (29)?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "record" FROM "january" WHERE "leading_scorer"='andrew bogut (29)';
2-11961176-6
What is the Record with a Leading scorer with maurice williams (25), and a Date with 27 january 2008?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "record" FROM "january" WHERE "leading_scorer"='maurice williams (25)' AND "date"='27 january 2008';
2-11961176-6
What is the Record with a Score with 80–87, and a Visitor with bucks?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "record" FROM "january" WHERE "score"='80–87' AND "visitor"='bucks';
2-11961176-6
What is the nationality of the player Tom Boswell?
CREATE TABLE "b" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text );
SELECT "nationality" FROM "b" WHERE "player"='tom boswell';
2-11545282-2
What is the nationality of the player from Duke?
CREATE TABLE "b" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text );
SELECT "nationality" FROM "b" WHERE "school_club_team"='duke';
2-11545282-2
What position did the player from Florida International play?
CREATE TABLE "b" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text );
SELECT "position" FROM "b" WHERE "school_club_team"='florida international';
2-11545282-2
What is the nationality of the player from UCLA?
CREATE TABLE "b" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text );
SELECT "nationality" FROM "b" WHERE "school_club_team"='ucla';
2-11545282-2
What was Attendance/G with Tms more than 18?
CREATE TABLE "record_as_j_league_member" ( "season" real, "div" text, "tms" real, "pos" real, "attendance_g" real, "emperor_s_cup" text );
SELECT AVG("attendance_g") FROM "record_as_j_league_member" WHERE "tms">18;
2-1082589-1
How many seasons did the Div J1 have the Emperor's cup in the 3rd round with Tms of more than 18?
CREATE TABLE "record_as_j_league_member" ( "season" real, "div" text, "tms" real, "pos" real, "attendance_g" real, "emperor_s_cup" text );
SELECT COUNT("season") FROM "record_as_j_league_member" WHERE "emperor_s_cup"='3rd round' AND "div"='j1' AND "tms">18;
2-1082589-1
Which chassis had an entrant of John Mecom?
CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );
SELECT "chassis" FROM "teams_and_drivers" WHERE "entrant"='john mecom';
2-1140104-2
What tyre was used for an entrant of Ecurie Nationale Suisse?
CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );
SELECT "tyre" FROM "teams_and_drivers" WHERE "entrant"='ecurie nationale suisse';
2-1140104-2
Which rounds was Hap Sharp a driver in?
CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );
SELECT "rounds" FROM "teams_and_drivers" WHERE "driver"='hap sharp';
2-1140104-2
what is the year when the title is jotei?
CREATE TABLE "drama" ( "year" real, "title" text, "original_channel" text, "role" text, "note" text );
SELECT SUM("year") FROM "drama" WHERE "title"='jotei';
2-12002348-1
what is the original channel when the year is before 2006 and the note is supporting?
CREATE TABLE "drama" ( "year" real, "title" text, "original_channel" text, "role" text, "note" text );
SELECT "original_channel" FROM "drama" WHERE "year"<2006 AND "note"='supporting';
2-12002348-1
what is the original channel when the note is co-star in year 2012?
CREATE TABLE "drama" ( "year" real, "title" text, "original_channel" text, "role" text, "note" text );
SELECT "original_channel" FROM "drama" WHERE "note"='co-star' AND "year"=2012;
2-12002348-1
what is the original channel when the year is after 2012?
CREATE TABLE "drama" ( "year" real, "title" text, "original_channel" text, "role" text, "note" text );
SELECT "original_channel" FROM "drama" WHERE "year">2012;
2-12002348-1
what is the year when the note is supporting and the title is rokumeikan?
CREATE TABLE "drama" ( "year" real, "title" text, "original_channel" text, "role" text, "note" text );
SELECT "year" FROM "drama" WHERE "note"='supporting' AND "title"='rokumeikan';
2-12002348-1
what is the title when the year is after 2011 and the original channel is nhk?
CREATE TABLE "drama" ( "year" real, "title" text, "original_channel" text, "role" text, "note" text );
SELECT "title" FROM "drama" WHERE "year">2011 AND "original_channel"='nhk';
2-12002348-1
On which circuit does lorenzo bandini have the fastest lap as well as the pole position?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "circuit" FROM "season_review" WHERE "fastest_lap"='lorenzo bandini' AND "pole_position"='lorenzo bandini';
2-1140097-1
At what race does jim clark has a Pole position on the Circuit of monaco?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "race" FROM "season_review" WHERE "pole_position"='jim clark' AND "circuit"='monaco';
2-1140097-1
Which Report is on the Circuit of reims?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "report" FROM "season_review" WHERE "circuit"='reims';
2-1140097-1
On what Date is there a race on the Circuit of brands hatch?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "date" FROM "season_review" WHERE "circuit"='brands hatch';
2-1140097-1
Who is the Winnning driver in which lorenzo bandini has the fastest lap as well as the Pole position?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "winning_driver" FROM "season_review" WHERE "fastest_lap"='lorenzo bandini' AND "pole_position"='lorenzo bandini';
2-1140097-1
On what date is there a Tryre of d at the Circuit of monaco?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "date" FROM "season_review" WHERE "tyre"='d' AND "circuit"='monaco';
2-1140097-1
What's the date that Morocco has an Against along with a surface of hard?
CREATE TABLE "singles_17" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "result" text );
SELECT "date" FROM "singles_17" WHERE "against"='morocco' AND "surface"='hard';
2-11636213-6
What's Round has a Surface of hard and Opponent of Jelena Simic?
CREATE TABLE "singles_17" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "result" text );
SELECT "round" FROM "singles_17" WHERE "surface"='hard' AND "opponent"='jelena simic';
2-11636213-6
What driver won in the xv grand prix de l'albigeois in a vehicle by ferrari?
CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );
SELECT "winning_driver" FROM "non_championship_race_results" WHERE "constructor"='ferrari' AND "race_name"='xv grand prix de l''albigeois';
2-1140115-5
What is the latest death with a description of BR-Built inspection saloon?
CREATE TABLE "lms_coaches" ( "number_name" text, "description" text, "current_status" text, "livery" text, "date" real );
SELECT MAX("date") FROM "lms_coaches" WHERE "description"='br-built inspection saloon';
2-1174877-10
What is the identifying number for a description of Stanier (Period III) full brake?
CREATE TABLE "lms_coaches" ( "number_name" text, "description" text, "current_status" text, "livery" text, "date" real );
SELECT "number_name" FROM "lms_coaches" WHERE "description"='stanier (period iii) full brake';
2-1174877-10
What is the date with identifying number of No. 37817?
CREATE TABLE "lms_coaches" ( "number_name" text, "description" text, "current_status" text, "livery" text, "date" real );
SELECT "date" FROM "lms_coaches" WHERE "number_name"='no. 37817';
2-1174877-10
What is the release date for the standard cd release format in north america?
CREATE TABLE "formats" ( "release_format" text, "country" text, "label_s" text, "cat_no" text, "release_date" text );
SELECT "release_date" FROM "formats" WHERE "release_format"='standard cd' AND "country"='north america';
2-11966919-2
What is the cat no for the label mute and the standard cd format?
CREATE TABLE "formats" ( "release_format" text, "country" text, "label_s" text, "cat_no" text, "release_date" text );
SELECT "cat_no" FROM "formats" WHERE "label_s"='mute' AND "release_format"='standard cd';
2-11966919-2
What is the overall rank with rating smaller than 8.2 and rating share of 4.5/11?
CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "rating" real, "share" real, "rating_share_18_49" text, "viewers_m" real, "timeslot_rank" real, "night_rank" text, "overall_rank" real );
SELECT COUNT("overall_rank") FROM "weekly_ratings" WHERE "rating_share_18_49"='4.5/11' AND "rating"<8.2;
2-11354111-3
What is the rating for the episode with the night rank of 11 and timeslot rank is larger than 4?
CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "rating" real, "share" real, "rating_share_18_49" text, "viewers_m" real, "timeslot_rank" real, "night_rank" text, "overall_rank" real );
SELECT AVG("rating") FROM "weekly_ratings" WHERE "night_rank"='11' AND "timeslot_rank">4;
2-11354111-3
What is the smallest share for a timeslot ranking less than 4 and fewer viewers than 8.78 million?
CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "rating" real, "share" real, "rating_share_18_49" text, "viewers_m" real, "timeslot_rank" real, "night_rank" text, "overall_rank" real );
SELECT MIN("share") FROM "weekly_ratings" WHERE "viewers_m"<8.78 AND "timeslot_rank"<4;
2-11354111-3
What is the rating of the episode with 13.47 million viewers and overall rank larger than 6?
CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "rating" real, "share" real, "rating_share_18_49" text, "viewers_m" real, "timeslot_rank" real, "night_rank" text, "overall_rank" real );
SELECT SUM("rating") FROM "weekly_ratings" WHERE "viewers_m"=13.47 AND "overall_rank">6;
2-11354111-3
What is the rank of the episode with a share of 6 and timeslot rank smaller than 4?
CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "rating" real, "share" real, "rating_share_18_49" text, "viewers_m" real, "timeslot_rank" real, "night_rank" text, "overall_rank" real );
SELECT AVG("overall_rank") FROM "weekly_ratings" WHERE "share"=6 AND "timeslot_rank"<4;
2-11354111-3
How many premierships for the queensland raceway?
CREATE TABLE "brisbane_based" ( "club_team" text, "league" text, "venue" text, "established" real, "premierships" text );
SELECT "premierships" FROM "brisbane_based" WHERE "venue"='queensland raceway';
2-10909383-1
How many premierships for the commonwealth bank trophy league?
CREATE TABLE "brisbane_based" ( "club_team" text, "league" text, "venue" text, "established" real, "premierships" text );
SELECT "premierships" FROM "brisbane_based" WHERE "league"='commonwealth bank trophy';
2-10909383-1
In which round was there a pick of 4?
CREATE TABLE "nfl_draft" ( "pick" real, "round" real, "player" text, "position" text, "school" text );
SELECT MAX("round") FROM "nfl_draft" WHERE "pick"=4;
2-11420734-1
How many rounds were there an offensive tackle position?
CREATE TABLE "nfl_draft" ( "pick" real, "round" real, "player" text, "position" text, "school" text );
SELECT COUNT("round") FROM "nfl_draft" WHERE "position"='offensive tackle';
2-11420734-1
What was the pick number in round 228 for Mike Ford?
CREATE TABLE "nfl_draft" ( "pick" real, "round" real, "player" text, "position" text, "school" text );
SELECT MAX("pick") FROM "nfl_draft" WHERE "player"='mike ford' AND "round">228;
2-11420734-1
What year was E. Meyer the driver?
CREATE TABLE "winners_of_the_moroccan_grand_prix" ( "year" text, "driver" text, "constructor" text, "category" text, "location" text, "report" text );
SELECT "year" FROM "winners_of_the_moroccan_grand_prix" WHERE "driver"='e. meyer';
2-1167997-1
What is the name of the driver of the vehicle constructed by Bugatti in Anfa?
CREATE TABLE "winners_of_the_moroccan_grand_prix" ( "year" text, "driver" text, "constructor" text, "category" text, "location" text, "report" text );
SELECT "driver" FROM "winners_of_the_moroccan_grand_prix" WHERE "constructor"='bugatti' AND "location"='anfa';
2-1167997-1
What company constructed the vehicle in the location not held in 1933?
CREATE TABLE "winners_of_the_moroccan_grand_prix" ( "year" text, "driver" text, "constructor" text, "category" text, "location" text, "report" text );
SELECT "constructor" FROM "winners_of_the_moroccan_grand_prix" WHERE "location"='not held' AND "year"='1933';
2-1167997-1
What company constructed the vehicle when the driver shows as not held?
CREATE TABLE "winners_of_the_moroccan_grand_prix" ( "year" text, "driver" text, "constructor" text, "category" text, "location" text, "report" text );
SELECT "constructor" FROM "winners_of_the_moroccan_grand_prix" WHERE "driver"='not held';
2-1167997-1
What is the name of the driver in 1955?
CREATE TABLE "winners_of_the_moroccan_grand_prix" ( "year" text, "driver" text, "constructor" text, "category" text, "location" text, "report" text );
SELECT "driver" FROM "winners_of_the_moroccan_grand_prix" WHERE "year"='1955';
2-1167997-1
What is the name of the constructor when report shows report in 1955?
CREATE TABLE "winners_of_the_moroccan_grand_prix" ( "year" text, "driver" text, "constructor" text, "category" text, "location" text, "report" text );
SELECT "constructor" FROM "winners_of_the_moroccan_grand_prix" WHERE "report"='report' AND "year"='1955';
2-1167997-1
What is the inductioin for 1975–1976?
CREATE TABLE "engines_for_united_states_models" ( "generation" text, "years" text, "engine" text, "power" text, "torque" text, "induction" text );
SELECT "induction" FROM "engines_for_united_states_models" WHERE "years"='1975–1976';
2-1118731-1
What is the power of an engine of 1972?
CREATE TABLE "engines_for_united_states_models" ( "generation" text, "years" text, "engine" text, "power" text, "torque" text, "induction" text );
SELECT "power" FROM "engines_for_united_states_models" WHERE "years"='1972';
2-1118731-1
In the game where richmond was the away team, what venue was it played at?
CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_3" WHERE "away_team"='richmond';
2-10808346-3
On what date did the match where fitzroy was the home team occur?
CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_3" WHERE "home_team"='fitzroy';
2-10808346-3
In the match where the away team scored 12.16 (88), who was the home team?
CREATE TABLE "round_3" ( "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_3" WHERE "away_team_score"='12.16 (88)';
2-10808346-3
What was the name of the away team had a score of 17.15 (117)
CREATE TABLE "round_3" ( "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_3" WHERE "away_team_score"='17.15 (117)';
2-10808346-3
On the match where the away team scored 16.16 (112) what was the crowd attendance?
CREATE TABLE "round_3" ( "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_3" WHERE "away_team_score"='16.16 (112)';
2-10808346-3
What is the smallest apps in Honduras with less than 2 goals for Club Deportivo Victoria in a division over 1?
CREATE TABLE "club_career_stats" ( "season" text, "team" text, "country" text, "division" real, "apps" real, "goals" real );
SELECT MIN("apps") FROM "club_career_stats" WHERE "country"='honduras' AND "goals"<2 AND "team"='club deportivo victoria' AND "division">1;
2-11982701-1
What grid for jacques villeneuve with over 36 laps?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MAX("grid") FROM "race" WHERE "driver"='jacques villeneuve' AND "laps">36;
2-1123428-2
What were the lowest laps of Tarso Marques?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MIN("laps") FROM "race" WHERE "driver"='tarso marques';
2-1123265-2
What's the average Grid for those who spun off after Lap 64?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("grid") FROM "race" WHERE "time_retired"='spun off' AND "laps">64;
2-1123265-2
What is the grid total that has a Time/Retired of + 1:33.141, and under 70 laps?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT SUM("grid") FROM "race" WHERE "time_retired"='+ 1:33.141' AND "laps"<70;
2-1123285-2
What is the high lap total for tyrrell - yamaha, and a Time/Retired of + 1 lap?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MAX("laps") FROM "race" WHERE "constructor"='tyrrell - yamaha' AND "time_retired"='+ 1 lap';
2-1123285-2
What is the low lap total for a grid of 14?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MIN("laps") FROM "race" WHERE "grid"=14;
2-1123285-2
How many laps for martin brundle with a grid of less than 10?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("laps") FROM "race" WHERE "driver"='martin brundle' AND "grid"<10;
2-1123285-2
What was the average points in the quarterfinals domestic cup?
CREATE TABLE "league_and_cup_history" ( "season" text, "level" text, "goals" text, "points" real, "domestic_cup" text );
SELECT AVG("points") FROM "league_and_cup_history" WHERE "domestic_cup"='quarterfinals';
2-11303404-1
Which level is quarterfinals domestic cup?
CREATE TABLE "league_and_cup_history" ( "season" text, "level" text, "goals" text, "points" real, "domestic_cup" text );
SELECT "level" FROM "league_and_cup_history" WHERE "domestic_cup"='quarterfinals';
2-11303404-1
What format is catalogue 148615 in?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "format" FROM "release_history" WHERE "catalogue"='148615';
2-1148083-5
Which region was on June 8, 2004?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "region" FROM "release_history" WHERE "date"='june 8, 2004';
2-1148083-5
What format is catalogue WPCR13504 in?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "format" FROM "release_history" WHERE "catalogue"='wpcr13504';
2-1148083-5
What format is the Catalogue 9362486152 from the region of Australia in?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "format" FROM "release_history" WHERE "catalogue"='9362486152' AND "region"='australia';
2-1148083-5
What region is the catalogue number 9362486152 that was from September 3, 2004 from?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "region" FROM "release_history" WHERE "catalogue"='9362486152' AND "date"='september 3, 2004';
2-1148083-5
What region is the catalogue released on June 8, 2004 from?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalogue" text );
SELECT "region" FROM "release_history" WHERE "date"='june 8, 2004';
2-1148083-5
What day is carlton the home side?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_4" WHERE "home_team"='carlton';
2-10790510-4
What is the away team's score when the Home team score is 14.18 (102)?
CREATE TABLE "round_4" ( "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_4" WHERE "home_team_score"='14.18 (102)';
2-10790510-4
What is the home team's score when south melbourne is away?
CREATE TABLE "round_4" ( "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_4" WHERE "away_team"='south melbourne';
2-10790510-4
What day does the home side score 13.13 (91)?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_4" WHERE "home_team_score"='13.13 (91)';
2-10790510-4
Tell me the listed when cerclis id is msd004006995
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "listed" FROM "superfund_sites" WHERE "cerclis_id"='msd004006995';
2-11097420-1
What is the timeslor rank for the episode with larger than 2.9 rating, rating/share of 2.6/8 and rank for the night higher than 5?
CREATE TABLE "the_biggest_loser_u_s_tv_series" ( "episode" real, "rating" real, "share" real, "rating_share_18_49" text, "rank_timeslot" real, "rank_night" real );
SELECT AVG("rank_timeslot") FROM "the_biggest_loser_u_s_tv_series" WHERE "rating">2.9 AND "rating_share_18_49"='2.6/8' AND "rank_night">5;
2-1151047-6
What is the smallest rating with nightly rank smaller than 7, timeslot rank smaller than 5 and eposide after episode 6?
CREATE TABLE "the_biggest_loser_u_s_tv_series" ( "episode" real, "rating" real, "share" real, "rating_share_18_49" text, "rank_timeslot" real, "rank_night" real );
SELECT MIN("rating") FROM "the_biggest_loser_u_s_tv_series" WHERE "rank_night"<7 AND "rank_timeslot"<5 AND "episode">6;
2-1151047-6
What is the lowest nightly rank for an episode after episode 1 with a rating/share of 2.6/8?
CREATE TABLE "the_biggest_loser_u_s_tv_series" ( "episode" real, "rating" real, "share" real, "rating_share_18_49" text, "rank_timeslot" real, "rank_night" real );
SELECT MIN("rank_night") FROM "the_biggest_loser_u_s_tv_series" WHERE "rating_share_18_49"='2.6/8' AND "episode">1;
2-1151047-6
What is the timeslot rank when the rating is smaller than 2.6 and the share is more than 4?
CREATE TABLE "the_biggest_loser_u_s_tv_series" ( "episode" real, "rating" real, "share" real, "rating_share_18_49" text, "rank_timeslot" real, "rank_night" real );
SELECT AVG("rank_timeslot") FROM "the_biggest_loser_u_s_tv_series" WHERE "rating"<2.6 AND "share">4;
2-1151047-6
What is the smallest timeslot rank when the rating is smaller than 2.6?
CREATE TABLE "the_biggest_loser_u_s_tv_series" ( "episode" real, "rating" real, "share" real, "rating_share_18_49" text, "rank_timeslot" real, "rank_night" real );
SELECT MIN("rank_timeslot") FROM "the_biggest_loser_u_s_tv_series" WHERE "rating"<2.6;
2-1151047-6
What away team played at Kardinia Park?
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 "away_team" FROM "round_8" WHERE "venue"='kardinia park';
2-10807673-8
What team played Hawthorn?
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 "away_team" FROM "round_8" WHERE "home_team"='hawthorn';
2-10807673-8
What is the total wins with less than 21 goals taken?
CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );
SELECT SUM("wins") FROM "final_standing" WHERE "goals_against"<21;
2-11858540-1
What is the date of game 59?
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 "date" FROM "game_log" WHERE "game"=59;
2-11964154-10
What player is a lock with 1 cap?
CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );
SELECT "player" FROM "2007_rugby_world_cup_squads" WHERE "position"='lock' AND "caps"=1;
2-11783766-13
What position does ceri sweeney with under 87 caps of the newport gwent dragons play?
CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );
SELECT "position" FROM "2007_rugby_world_cup_squads" WHERE "club_province"='newport gwent dragons' AND "caps"<87 AND "player"='ceri sweeney';
2-11783766-13
What player has 12 caps?
CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );
SELECT "player" FROM "2007_rugby_world_cup_squads" WHERE "caps"=12;
2-11783766-13
Tell me the Shuji Kondo for MAZADA of X with Ryuji Hijikata of hijikata (14:24)
CREATE TABLE "2008" ( "block_a" text, "ryuji_hijikata" text, "shuji_kondo" text, "mazada" text, "el_samurai" text );
SELECT "shuji_kondo" FROM "2008" WHERE "mazada"='x' AND "ryuji_hijikata"='hijikata (14:24)';
2-11934531-7
Name the El samurai with MAZADA of x for Ryuji Hijikata of draw (30:00)
CREATE TABLE "2008" ( "block_a" text, "ryuji_hijikata" text, "shuji_kondo" text, "mazada" text, "el_samurai" text );
SELECT "el_samurai" FROM "2008" WHERE "mazada"='x' AND "ryuji_hijikata"='draw (30:00)';
2-11934531-7
Name the MAZADA for El Samurai of mazada (16:22)
CREATE TABLE "2008" ( "block_a" text, "ryuji_hijikata" text, "shuji_kondo" text, "mazada" text, "el_samurai" text );
SELECT "mazada" FROM "2008" WHERE "el_samurai"='mazada (16:22)';
2-11934531-7
Name the Shuji Kondo for MAZADA of hijikata (14:24)
CREATE TABLE "2008" ( "block_a" text, "ryuji_hijikata" text, "shuji_kondo" text, "mazada" text, "el_samurai" text );
SELECT "shuji_kondo" FROM "2008" WHERE "mazada"='hijikata (14:24)';
2-11934531-7
when was the building withdrawn when the builder was ac cars and was introduced before 1958?
CREATE TABLE "br_railbuses" ( "number_range" text, "builder" text, "introduced" real, "no_built" real, "region" text, "withdrawn" real );
SELECT SUM("withdrawn") FROM "br_railbuses" WHERE "builder"='ac cars' AND "introduced"<1958;
2-1081459-1
What was the decision on october 5?
CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "decision" FROM "october" WHERE "date"='october 5';
2-11622632-3