question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Who was the opponent in the game with save ||33,389||87–62? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
); | SELECT "opponent" FROM "game_log" WHERE "save"='||33,389||87–62'; | 2-12015554-8 |
Who was the opponent in the game with save ||33,723||93–64? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
); | SELECT "opponent" FROM "game_log" WHERE "save"='||33,723||93–64'; | 2-12015554-8 |
What was the score on September 8? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text
); | SELECT "score" FROM "game_log" WHERE "date"='september 8'; | 2-12015554-8 |
Which nationality has Years for Jazz of 1984-85? | CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "nationality" FROM "p" WHERE "years_for_jazz"='1984-85'; | 2-11545282-16 |
Which position has a Nationality of united states, and a Player of roger powell? | CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "position" FROM "p" WHERE "nationality"='united states' AND "player"='roger powell'; | 2-11545282-16 |
What years does milt palacio play? | CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "years_for_jazz" FROM "p" WHERE "player"='milt palacio'; | 2-11545282-16 |
Which years have a School/Club Team of colorado state? | CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "years_for_jazz" FROM "p" WHERE "school_club_team"='colorado state'; | 2-11545282-16 |
During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured? | CREATE TABLE "engines" (
"model" text,
"years" text,
"engine_code" text,
"power" text,
"torque" text
); | SELECT "years" FROM "engines" WHERE "engine_code"='m47d20' AND "model"='318td (diesel)'; | 2-1180976-2 |
What is the Torque of the model with the engine code of M54B25? | CREATE TABLE "engines" (
"model" text,
"years" text,
"engine_code" text,
"power" text,
"torque" text
); | SELECT "torque" FROM "engines" WHERE "engine_code"='m54b25'; | 2-1180976-2 |
What is the Torque of the Model 320td (diesel)? | CREATE TABLE "engines" (
"model" text,
"years" text,
"engine_code" text,
"power" text,
"torque" text
); | SELECT "torque" FROM "engines" WHERE "model"='320td (diesel)'; | 2-1180976-2 |
During which years was the model with the Engine code of m54b25 manufactured? | CREATE TABLE "engines" (
"model" text,
"years" text,
"engine_code" text,
"power" text,
"torque" text
); | SELECT "years" FROM "engines" WHERE "engine_code"='m54b25'; | 2-1180976-2 |
Which model was made from 2001–2004, with a Torque of n·m (lb·ft) @ 3750, and an Engine code of n42b18 / n46b18? | CREATE TABLE "engines" (
"model" text,
"years" text,
"engine_code" text,
"power" text,
"torque" text
); | SELECT "model" FROM "engines" WHERE "years"='2001–2004' AND "torque"='n·m (lb·ft) @ 3750' AND "engine_code"='n42b18 / n46b18'; | 2-1180976-2 |
What was the date of the Mariners game that had a score of 1-12? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "score"='1-12'; | 2-11664564-8 |
What was the date of the Mariners game that had an attendance of 6,707? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "attendance"='6,707'; | 2-11664564-8 |
What was the date of the Mariners game that had a loss of Segui (0-5)? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "loss"='segui (0-5)'; | 2-11664564-8 |
What was the loss of the Mariners game that had an attendance of 9,065? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "attendance"='9,065'; | 2-11664564-8 |
Who was the Mariners opponent at the game attended by 7,893? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "attendance"='7,893'; | 2-11664564-8 |
What is the tournament surface at Aptos? | CREATE TABLE "singles_9" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "surface" FROM "singles_9" WHERE "tournament"='aptos'; | 2-10980025-2 |
What was the final score of the Paul Goldstein match? | CREATE TABLE "singles_9" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "score" FROM "singles_9" WHERE "opponent_in_the_final"='paul goldstein'; | 2-10980025-2 |
Who played the final match on November 23, 1998? | CREATE TABLE "singles_9" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "opponent_in_the_final" FROM "singles_9" WHERE "date"='november 23, 1998'; | 2-10980025-2 |
What date did Paul Goldstein play the final? | CREATE TABLE "singles_9" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "date" FROM "singles_9" WHERE "opponent_in_the_final"='paul goldstein'; | 2-10980025-2 |
What was the surface type at Takao Suzuki? | CREATE TABLE "singles_9" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "surface" FROM "singles_9" WHERE "opponent_in_the_final"='takao suzuki'; | 2-10980025-2 |
What were the scores on September 11, 2006? | CREATE TABLE "singles_9" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "score" FROM "singles_9" WHERE "date"='september 11, 2006'; | 2-10980025-2 |
Who did they lose to on may 9? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "date"='may 9'; | 2-11512626-3 |
What is Pedro De La Rosa's total number of Grid? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT COUNT("grid") FROM "race" WHERE "driver"='pedro de la rosa'; | 2-1123394-2 |
Which constructor has a Time/Retired of +37.311? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "race" WHERE "time_retired"='+37.311'; | 2-1123394-2 |
What is the time/retired for mika häkkinen | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "classification" WHERE "driver"='mika häkkinen'; | 2-1123149-1 |
Which title had an audience of 4.629.000? | CREATE TABLE "episodes_and_audiences" (
"episode" text,
"title" text,
"date_of_emission" text,
"audience" text,
"share" text
); | SELECT "title" FROM "episodes_and_audiences" WHERE "audience"='4.629.000'; | 2-11415054-1 |
What was the audience for Episode 21? | CREATE TABLE "episodes_and_audiences" (
"episode" text,
"title" text,
"date_of_emission" text,
"audience" text,
"share" text
); | SELECT "audience" FROM "episodes_and_audiences" WHERE "episode"='21'; | 2-11415054-1 |
What was the share when the audience was 3.944.000? | CREATE TABLE "episodes_and_audiences" (
"episode" text,
"title" text,
"date_of_emission" text,
"audience" text,
"share" text
); | SELECT "share" FROM "episodes_and_audiences" WHERE "audience"='3.944.000'; | 2-11415054-1 |
What was the audience for Mi Amigo el Monstruo? | CREATE TABLE "episodes_and_audiences" (
"episode" text,
"title" text,
"date_of_emission" text,
"audience" text,
"share" text
); | SELECT "audience" FROM "episodes_and_audiences" WHERE "title"='mi amigo el monstruo'; | 2-11415054-1 |
Which title has a share of 19,9% | CREATE TABLE "episodes_and_audiences" (
"episode" text,
"title" text,
"date_of_emission" text,
"audience" text,
"share" text
); | SELECT "title" FROM "episodes_and_audiences" WHERE "share"='19,9%'; | 2-11415054-1 |
Which share had an audience of 4.693.000? | CREATE TABLE "episodes_and_audiences" (
"episode" text,
"title" text,
"date_of_emission" text,
"audience" text,
"share" text
); | SELECT "share" FROM "episodes_and_audiences" WHERE "audience"='4.693.000'; | 2-11415054-1 |
what was the venue that hosted Carlton as the away team? | CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_5" WHERE "away_team"='carlton'; | 2-10806852-5 |
What was the date of the Collingwood away game? | CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_5" WHERE "away_team"='collingwood'; | 2-10806852-5 |
Who is the player that plays position c on the New York Knicks? | CREATE TABLE "draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
); | SELECT "player" FROM "draft" WHERE "team"='new york knicks' AND "position"='c'; | 2-12086839-3 |
What is the position of the pick 1 player? | CREATE TABLE "draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
); | SELECT "position" FROM "draft" WHERE "pick"='1'; | 2-12086839-3 |
Who is the player that plays position f from Fort Wayne Pistons? | CREATE TABLE "draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
); | SELECT "player" FROM "draft" WHERE "team"='fort wayne pistons' AND "position"='f'; | 2-12086839-3 |
Which round is the player from Oregon from? | CREATE TABLE "draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
); | SELECT "round" FROM "draft" WHERE "college"='oregon'; | 2-12086839-3 |
How many goals for occurred when the goals against was less than 56 and games played was larger than 7 with less than 6 wins? | CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
); | SELECT COUNT("goals_for") FROM "final_standing" WHERE "goals_against"<56 AND "games_played">7 AND "wins"<6; | 2-12076353-1 |
What is the smallest number of wins with 7 games played and goals against less than 46 when goals for is more than 34? | CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
); | SELECT MIN("wins") FROM "final_standing" WHERE "games_played"=7 AND "goals_against"<46 AND "goals_for">34; | 2-12076353-1 |
What is the average number of ties when goals against is less than 56 for Ottawa Hockey Club and the goals for is more than 47? | CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
); | SELECT AVG("ties") FROM "final_standing" WHERE "goals_against"<56 AND "team"='ottawa hockey club' AND "goals_for">47; | 2-12076353-1 |
How many losses occurred with less than 8 games played and less than 3 wins? | CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
); | SELECT COUNT("losses") FROM "final_standing" WHERE "games_played"<8 AND "wins"<3; | 2-12076353-1 |
How many goals against were scored when the goals for is less than 48 with 0 ties? | CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
); | SELECT COUNT("goals_against") FROM "final_standing" WHERE "goals_for"<48 AND "ties"<0; | 2-12076353-1 |
Name the position for the player that is from valparaiso | CREATE TABLE "d" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"school_club_team_country" text
); | SELECT "position" FROM "d" WHERE "school_club_team_country"='valparaiso'; | 2-11734041-4 |
Name the height in feet for the guard from north carolina-charlotte | CREATE TABLE "d" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"school_club_team_country" text
); | SELECT "height_in_ft" FROM "d" WHERE "position"='guard' AND "school_club_team_country"='north carolina-charlotte'; | 2-11734041-4 |
Name the height in feet for the player from valparaiso | CREATE TABLE "d" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"school_club_team_country" text
); | SELECT "height_in_ft" FROM "d" WHERE "school_club_team_country"='valparaiso'; | 2-11734041-4 |
Name the school/club team/country for the player that is 6-5 ft | CREATE TABLE "d" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"school_club_team_country" text
); | SELECT "school_club_team_country" FROM "d" WHERE "height_in_ft"='6-5'; | 2-11734041-4 |
Name the numbers for the player with a height in ft of 6-7 for the guard | CREATE TABLE "d" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"school_club_team_country" text
); | SELECT "no_s" FROM "d" WHERE "height_in_ft"='6-7' AND "position"='guard'; | 2-11734041-4 |
Name the height in ft for the player from wyoming | CREATE TABLE "d" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"school_club_team_country" text
); | SELECT "height_in_ft" FROM "d" WHERE "school_club_team_country"='wyoming'; | 2-11734041-4 |
Which college did the Calgary Stampeders recruit from? | CREATE TABLE "round_three" (
"pick_num" text,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT "college" FROM "round_three" WHERE "cfl_team"='calgary stampeders'; | 2-10960039-3 |
Which year has the Co-singer solo and a Film name of bhagya debata? | CREATE TABLE "2000s" (
"year" real,
"film_name" text,
"co_singer" text,
"music_director" text,
"language" text
); | SELECT MIN("year") FROM "2000s" WHERE "co_singer"='solo' AND "film_name"='bhagya debata'; | 2-11827596-2 |
What date is the Portuguese Grand Prix? | CREATE TABLE "season_review" (
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "date" FROM "season_review" WHERE "grand_prix"='portuguese grand prix'; | 2-1139087-2 |
Which winning driver is located in Imola? | CREATE TABLE "season_review" (
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "winning_driver" FROM "season_review" WHERE "location"='imola'; | 2-1139087-2 |
What is the Pole Position of the Portuguese Grand Prix? | CREATE TABLE "season_review" (
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "pole_position" FROM "season_review" WHERE "grand_prix"='portuguese grand prix'; | 2-1139087-2 |
On what date did a race occur at Long Beach? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "date" FROM "season_review" WHERE "location"='long beach'; | 2-1140080-2 |
What race had Jody Scheckter hold pole position? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "race" FROM "season_review" WHERE "pole_position"='jody scheckter'; | 2-1140080-2 |
Who held pole position at the race won by Gilles Villeneuve, with the fastest lap held by Gilles Villeneuve, driving a Ferrari? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "pole_position" FROM "season_review" WHERE "fastest_lap"='gilles villeneuve' AND "constructor"='ferrari' AND "race_winner"='gilles villeneuve'; | 2-1140080-2 |
Who won the South African Grand Prix? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "race_winner" FROM "season_review" WHERE "race"='south african grand prix'; | 2-1140080-2 |
Who had the fastest lap at the German Grand Prix? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "fastest_lap" FROM "season_review" WHERE "race"='german grand prix'; | 2-1140080-2 |
What is the Tyre for the united states grand prix? | 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 "tyre" FROM "season_review" WHERE "race"='united states grand prix'; | 2-1140101-1 |
What was the result of the 1948 og competition? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "result" FROM "international_goals" WHERE "competition"='1948 og'; | 2-10981840-1 |
I want the lowest Grid for Rolf Stommelen | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MIN("grid") FROM "classification" WHERE "driver"='rolf stommelen'; | 2-1122634-1 |
I want the constructor for grid less than 20 and Laps of 6 | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "classification" WHERE "grid"<20 AND "laps"=6; | 2-1122634-1 |
What is the german total population after 1910 with an other total of 143 and 32 hungarians? | CREATE TABLE "development_of_population" (
"year" real,
"total" real,
"german" text,
"romanian" text,
"hungarian" text,
"other" text,
"of_which_romanies_gypsies" text
); | SELECT "german" FROM "development_of_population" WHERE "year">1910 AND "other"='143' AND "hungarian"='32'; | 2-11267792-1 |
What year did Naoki Tsukahara finish 3rd in the 200 m race? | CREATE TABLE "competition_record" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT "year" FROM "competition_record" WHERE "notes"='200 m' AND "position"='3rd'; | 2-11401861-1 |
What is the attendance at the Dallas home game on may 12? | CREATE TABLE "western_conference_finals" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real
); | SELECT COUNT("attendance") FROM "western_conference_finals" WHERE "home"='dallas' AND "date"='may 12'; | 2-11801912-12 |
What nationality is the player ranked 2? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT "country" FROM "leaders" WHERE "rank"=2; | 2-11621915-4 |
How many wins for mike hill ranked below 4? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT COUNT("wins") FROM "leaders" WHERE "player"='mike hill' AND "rank"<4; | 2-11621915-4 |
What is Trevor Cann's nationality? | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
); | SELECT "nationality" FROM "draft_picks" WHERE "player"='trevor cann'; | 2-11786147-15 |
What is Kent Patterson's nationality? | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
); | SELECT "nationality" FROM "draft_picks" WHERE "player"='kent patterson'; | 2-11786147-15 |
Which unit has a Pennant Number of 82? | CREATE TABLE "patrol" (
"class" text,
"ships_in_class" text,
"pennant_number" real,
"unit" text,
"builder" text,
"commissioned" text
); | SELECT "unit" FROM "patrol" WHERE "pennant_number"=82; | 2-11627546-1 |
What is the highest pennant number with ships in raahe class? | CREATE TABLE "patrol" (
"class" text,
"ships_in_class" text,
"pennant_number" real,
"unit" text,
"builder" text,
"commissioned" text
); | SELECT MAX("pennant_number") FROM "patrol" WHERE "ships_in_class"='raahe'; | 2-11627546-1 |
What is the highest pennant number with ships in pori class? | CREATE TABLE "patrol" (
"class" text,
"ships_in_class" text,
"pennant_number" real,
"unit" text,
"builder" text,
"commissioned" text
); | SELECT MAX("pennant_number") FROM "patrol" WHERE "ships_in_class"='pori'; | 2-11627546-1 |
What is the name of the competition that ended with a score of 2-1? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "international_goals" WHERE "score"='2-1'; | 2-11048203-1 |
What is the name of the competition that ended with a score of 1-3? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "international_goals" WHERE "score"='1-3'; | 2-11048203-1 |
At which venue did the game on 28 october 2013 take place? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "venue" FROM "international_goals" WHERE "date"='28 october 2013'; | 2-11048203-1 |
What is the Competition name of the competition that ended with a score of 2-1? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "international_goals" WHERE "score"='2-1'; | 2-11048203-1 |
In what year did a car have a yamaha v12 engine and a brabham bt60y chassis | CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
); | SELECT "year" FROM "complete_formula_one_results" WHERE "engine"='yamaha v12' AND "chassis"='brabham bt60y'; | 2-1189516-2 |
waht is the last year with a mclaren mp4/10b chassis | CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
); | SELECT MAX("year") FROM "complete_formula_one_results" WHERE "chassis"='mclaren mp4/10b'; | 2-1189516-2 |
before 1995 waht is the aveage pts for a mclaren mp4/10b chassis | CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
); | SELECT AVG("pts") FROM "complete_formula_one_results" WHERE "chassis"='mclaren mp4/10b' AND "year"<1995; | 2-1189516-2 |
what is the most recent year for a ligier gitanes blondes | CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
); | SELECT MAX("year") FROM "complete_formula_one_results" WHERE "entrant"='ligier gitanes blondes'; | 2-1189516-2 |
What is the total number of averages with an interview of 8.75 when the evening gown number was bigger than 8.75? | CREATE TABLE "preliminary_competition" (
"state" text,
"swimsuit" real,
"evening_gown" real,
"interview" real,
"average" real
); | SELECT SUM("average") FROM "preliminary_competition" WHERE "interview"=8.75 AND "evening_gown">8.75; | 2-11970261-3 |
What is the total number of interviews where the evening gown number is less than 8.82, the state is Kentucky, and the average is more than 8.85? | CREATE TABLE "preliminary_competition" (
"state" text,
"swimsuit" real,
"evening_gown" real,
"interview" real,
"average" real
); | SELECT SUM("interview") FROM "preliminary_competition" WHERE "evening_gown"<8.82 AND "state"='kentucky' AND "average">8.85; | 2-11970261-3 |
How many averages had a swimsuit number of 8.42 and an evening gown number that was less than 8.71? | CREATE TABLE "preliminary_competition" (
"state" text,
"swimsuit" real,
"evening_gown" real,
"interview" real,
"average" real
); | SELECT SUM("average") FROM "preliminary_competition" WHERE "swimsuit"=8.42 AND "evening_gown"<8.71; | 2-11970261-3 |
Which state had an average of less than 8.67, a swimsuit score of 8.27, an evening gown score of 8.78, and an interview number of 8.52? | CREATE TABLE "preliminary_competition" (
"state" text,
"swimsuit" real,
"evening_gown" real,
"interview" real,
"average" real
); | SELECT "state" FROM "preliminary_competition" WHERE "average"<8.67 AND "swimsuit"=8.27 AND "evening_gown"=8.78 AND "interview"=8.52; | 2-11970261-3 |
What is the record when the visitor was Nashville? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "february" WHERE "visitor"='nashville'; | 2-11857058-7 |
What was the score when there were more than 14,381 in attendance and Phoenix was the visitor and Chicago was home? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "score" FROM "february" WHERE "attendance">'14,381' AND "visitor"='phoenix' AND "home"='chicago'; | 2-11857058-7 |
When was a competition held at Pietermaritzburg? | CREATE TABLE "best_bowling" (
"bowling_figures_wickets_runs_overs" text,
"bowler" text,
"versus" text,
"venue" text,
"date" text
); | SELECT "date" FROM "best_bowling" WHERE "venue"='pietermaritzburg'; | 2-11611293-5 |
What were the bowling figures for the competition at Pietermaritzburg? | CREATE TABLE "best_bowling" (
"bowling_figures_wickets_runs_overs" text,
"bowler" text,
"versus" text,
"venue" text,
"date" text
); | SELECT "bowling_figures_wickets_runs_overs" FROM "best_bowling" WHERE "venue"='pietermaritzburg'; | 2-11611293-5 |
Who was the opponent during the competition in which the bowling figures were 5-33 (10)? | CREATE TABLE "best_bowling" (
"bowling_figures_wickets_runs_overs" text,
"bowler" text,
"versus" text,
"venue" text,
"date" text
); | SELECT "versus" FROM "best_bowling" WHERE "bowling_figures_wickets_runs_overs"='5-33 (10)'; | 2-11611293-5 |
What were GD Mcgrath's bowling figures? | CREATE TABLE "best_bowling" (
"bowling_figures_wickets_runs_overs" text,
"bowler" text,
"versus" text,
"venue" text,
"date" text
); | SELECT "bowling_figures_wickets_runs_overs" FROM "best_bowling" WHERE "bowler"='gd mcgrath'; | 2-11611293-5 |
During the competition at Port Elizabeth, where the opponent was Australia, what were the bowling figures? | CREATE TABLE "best_bowling" (
"bowling_figures_wickets_runs_overs" text,
"bowler" text,
"versus" text,
"venue" text,
"date" text
); | SELECT "bowling_figures_wickets_runs_overs" FROM "best_bowling" WHERE "venue"='port elizabeth' AND "versus"='australia'; | 2-11611293-5 |
What is the lowest amount of floors after rank 1 in the Trillium (residential) building? | CREATE TABLE "buildings_completed_as_of_february_2011" (
"rank" real,
"building" text,
"height" text,
"floors" real,
"completed" real
); | SELECT MIN("floors") FROM "buildings_completed_as_of_february_2011" WHERE "rank">1 AND "building"='the trillium (residential)'; | 2-11339545-1 |
What is the lowest amount of floors in the building completed before 1970 ranked more than 14? | CREATE TABLE "buildings_completed_as_of_february_2011" (
"rank" real,
"building" text,
"height" text,
"floors" real,
"completed" real
); | SELECT MIN("floors") FROM "buildings_completed_as_of_february_2011" WHERE "completed"<1970 AND "rank">14; | 2-11339545-1 |
What is the largest amount of floors in the 70m (233ft) Tupper building (educational)? | CREATE TABLE "buildings_completed_as_of_february_2011" (
"rank" real,
"building" text,
"height" text,
"floors" real,
"completed" real
); | SELECT MAX("floors") FROM "buildings_completed_as_of_february_2011" WHERE "height"='70m (233ft)' AND "building"='tupper building (educational)'; | 2-11339545-1 |
Which manufacturer has 23 laps and a time of +45.195? | CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" text
); | SELECT "manufacturer" FROM "moto_gp_classification" WHERE "laps"=23 AND "time_retired"='+45.195'; | 2-11683537-1 |
What is the sum of Sylvain Guintoli's laps? | CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" text
); | SELECT SUM("laps") FROM "moto_gp_classification" WHERE "rider"='sylvain guintoli'; | 2-11683537-1 |
How many runs were scored when the strike rate was 101.42? | CREATE TABLE "highest_individual_scores" (
"runs" text,
"balls" text,
"batsman" text,
"versus" text,
"venue" text,
"date" text,
"strike_rate" text
); | SELECT "runs" FROM "highest_individual_scores" WHERE "strike_rate"='101.42'; | 2-11611293-7 |
What was the amount of grain in 2001? | CREATE TABLE "port_statistics" (
"product" text,
"2004" text,
"2003" text,
"2002" text,
"2001" text
); | SELECT "2001" FROM "port_statistics" WHERE "product"='grain'; | 2-1136796-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.