question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What is the lowest high position for 10 years of hits, and over 870,000 sales?
CREATE TABLE "top_40_albums_of_2004" ( "position" real, "album_title" text, "artist" text, "highest_position" real, "sales" real );
SELECT MIN("highest_position") FROM "top_40_albums_of_2004" WHERE "album_title"='10 years of hits' AND "sales">'870,000';
2-1145970-5
What is the average high position for the album unwritten?
CREATE TABLE "top_40_albums_of_2004" ( "position" real, "album_title" text, "artist" text, "highest_position" real, "sales" real );
SELECT AVG("highest_position") FROM "top_40_albums_of_2004" WHERE "album_title"='unwritten';
2-1145970-5
When did the Grand Prix de Monaco race?
CREATE TABLE "formula_one_2004_race_schedule" ( "round" real, "race_title" text, "grand_prix" text, "circuit" text, "date" text );
SELECT "date" FROM "formula_one_2004_race_schedule" WHERE "race_title"='grand prix de monaco';
2-1126627-2
What circuit had 16 rounds?
CREATE TABLE "formula_one_2004_race_schedule" ( "round" real, "race_title" text, "grand_prix" text, "circuit" text, "date" text );
SELECT "circuit" FROM "formula_one_2004_race_schedule" WHERE "round"=16;
2-1126627-2
Which Grand Prix had 9 rounds?
CREATE TABLE "formula_one_2004_race_schedule" ( "round" real, "race_title" text, "grand_prix" text, "circuit" text, "date" text );
SELECT "grand_prix" FROM "formula_one_2004_race_schedule" WHERE "round"=9;
2-1126627-2
What is the Base Fare in the senior/disabled category?
CREATE TABLE "fares" ( "fare_categories" text, "base_fares" text, "day_pass" text, "7_day_pass" text, "30_day_pass" text );
SELECT "base_fares" FROM "fares" WHERE "fare_categories"='senior/disabled';
2-11382363-1
Which 30-day Pass has a Base Fare of $3?
CREATE TABLE "fares" ( "fare_categories" text, "base_fares" text, "day_pass" text, "7_day_pass" text, "30_day_pass" text );
SELECT "30_day_pass" FROM "fares" WHERE "base_fares"='$3';
2-11382363-1
What is the length for years 2012-2013?
CREATE TABLE "bus_fleet" ( "year" text, "make_model" text, "length" text, "engine_type" text, "numbers" text );
SELECT "length" FROM "bus_fleet" WHERE "year"='2012-2013';
2-1160038-1
If length is ft (m) with numbers of 6600-6684 (84 buses) for 2003, what is the engine type?
CREATE TABLE "bus_fleet" ( "year" text, "make_model" text, "length" text, "engine_type" text, "numbers" text );
SELECT "engine_type" FROM "bus_fleet" WHERE "length"='ft (m)' AND "year"='2003' AND "numbers"='6600-6684 (84 buses)';
2-1160038-1
For numbers of 2600-2825 (223 buses), what is the length?
CREATE TABLE "bus_fleet" ( "year" text, "make_model" text, "length" text, "engine_type" text, "numbers" text );
SELECT "length" FROM "bus_fleet" WHERE "numbers"='2600-2825 (223 buses)';
2-1160038-1
What is the lenth of a 2003 Make & Model of nabi 35-lfw?
CREATE TABLE "bus_fleet" ( "year" text, "make_model" text, "length" text, "engine_type" text, "numbers" text );
SELECT "length" FROM "bus_fleet" WHERE "year"='2003' AND "make_model"='nabi 35-lfw';
2-1160038-1
What is the length for a diesel engine with numbers of tbd (13 buses)?
CREATE TABLE "bus_fleet" ( "year" text, "make_model" text, "length" text, "engine_type" text, "numbers" text );
SELECT "length" FROM "bus_fleet" WHERE "engine_type"='diesel' AND "numbers"='tbd (13 buses)';
2-1160038-1
What year has a make & model of mci d4000n?
CREATE TABLE "bus_fleet" ( "year" text, "make_model" text, "length" text, "engine_type" text, "numbers" text );
SELECT "year" FROM "bus_fleet" WHERE "make_model"='mci d4000n';
2-1160038-1
What type has a Date of 8 dec 16, and a Ship of duchess of cornwall?
CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" ( "date" text, "ship" text, "type" text, "nationality" text, "tonnage_grt" real );
SELECT "type" FROM "ships_sunk_or_captured_by_moewe_on_her_s" WHERE "date"='8 dec 16' AND "ship"='duchess of cornwall';
2-11796827-4
Which Nationality has a Tonnage GRT larger than 2,890, and a Ship of mount temple?
CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" ( "date" text, "ship" text, "type" text, "nationality" text, "tonnage_grt" real );
SELECT "nationality" FROM "ships_sunk_or_captured_by_moewe_on_her_s" WHERE "tonnage_grt">'2,890' AND "ship"='mount temple';
2-11796827-4
Which nationality has a Ship of minteh?
CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" ( "date" text, "ship" text, "type" text, "nationality" text, "tonnage_grt" real );
SELECT "nationality" FROM "ships_sunk_or_captured_by_moewe_on_her_s" WHERE "ship"='minteh';
2-11796827-4
What is the total Tonnage GRT with a Type of cargo ship, and a Nationality of norway?
CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" ( "date" text, "ship" text, "type" text, "nationality" text, "tonnage_grt" real );
SELECT SUM("tonnage_grt") FROM "ships_sunk_or_captured_by_moewe_on_her_s" WHERE "type"='cargo ship' AND "nationality"='norway';
2-11796827-4
Which Date has a Ship of hallbjorg?
CREATE TABLE "ships_sunk_or_captured_by_moewe_on_her_s" ( "date" text, "ship" text, "type" text, "nationality" text, "tonnage_grt" real );
SELECT "date" FROM "ships_sunk_or_captured_by_moewe_on_her_s" WHERE "ship"='hallbjorg';
2-11796827-4
What is the score of set 3 when the total is 45–31?
CREATE TABLE "pool_e" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "set_3" FROM "pool_e" WHERE "total"='45–31';
2-11823140-11
What is the score for set 2 when set 3 was 15–6?
CREATE TABLE "pool_e" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "set_2" FROM "pool_e" WHERE "set_3"='15–6';
2-11823140-11
What is the total when the score of set 1 was 15–11?
CREATE TABLE "pool_e" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "total" FROM "pool_e" WHERE "set_1"='15–11';
2-11823140-11
What is the total when the score of set 1 is 15–11?
CREATE TABLE "pool_e" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "total" FROM "pool_e" WHERE "set_1"='15–11';
2-11823140-11
On what date was the total 25–45?
CREATE TABLE "pool_e" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "date" FROM "pool_e" WHERE "total"='25–45';
2-11823140-11
What was the score of the Away team when the score of the Home team was 13.14 (92)?
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 "home_team_score"='13.14 (92)';
2-10826385-7
What was St Kilda's 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"='st kilda';
2-10826385-7
At what Venue was the Home team score 17.19 (121)?
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 "home_team_score"='17.19 (121)';
2-10826385-7
At the venue Vfl Park, what was the Home team score?
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_score" FROM "round_7" WHERE "venue"='vfl park';
2-10826385-7
How many Reg GP does daniel rahimi have with a rd # greater than 3?
CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );
SELECT COUNT("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='daniel rahimi' AND "rd_num">3;
2-11636955-38
What is the lowest Pick # with michael grabner and less than 20 Reg GP?
CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );
SELECT MIN("pick_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='michael grabner' AND "reg_gp"<20;
2-11636955-38
Which class has a peak named fountains fell south top?
CREATE TABLE "southern_fells" ( "peak" text, "height_m" real, "prom_m" real, "class" text, "parent" text );
SELECT "class" FROM "southern_fells" WHERE "peak"='fountains fell south top';
2-10814429-12
What is the total of Prom in M for Peak great knoutberry hill?
CREATE TABLE "southern_fells" ( "peak" text, "height_m" real, "prom_m" real, "class" text, "parent" text );
SELECT SUM("prom_m") FROM "southern_fells" WHERE "peak"='great knoutberry hill';
2-10814429-12
What is the average height for hewitt class, with prom less than 86, and a Peak of gragareth?
CREATE TABLE "southern_fells" ( "peak" text, "height_m" real, "prom_m" real, "class" text, "parent" text );
SELECT AVG("height_m") FROM "southern_fells" WHERE "class"='hewitt' AND "prom_m"<86 AND "peak"='gragareth';
2-10814429-12
In which movie is Selva Nambi a co-singer?
CREATE TABLE "tamil_songs" ( "year" real, "song_title" text, "movie" text, "music_director" text, "co_singers" text );
SELECT "movie" FROM "tamil_songs" WHERE "co_singers"='selva nambi';
2-11203591-1
Who was the music director in 1994?
CREATE TABLE "tamil_songs" ( "year" real, "song_title" text, "movie" text, "music_director" text, "co_singers" text );
SELECT "music_director" FROM "tamil_songs" WHERE "year"=1994;
2-11203591-1
What years was Denis Lawson nominated for an award?
CREATE TABLE "2008_london_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text );
SELECT COUNT("year") FROM "2008_london_revival" WHERE "nominee"='denis lawson';
2-1195142-3
Did Jason Pennycooke win the award he was nominated for?
CREATE TABLE "2008_london_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text );
SELECT "result" FROM "2008_london_revival" WHERE "nominee"='jason pennycooke';
2-1195142-3
How many years was Best Musical Revival nominated?
CREATE TABLE "2008_london_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text );
SELECT COUNT("year") FROM "2008_london_revival" WHERE "nominee"='best musical revival';
2-1195142-3
What award was Denis Lawson nominated for in the Best Actor in a Musical category?
CREATE TABLE "2008_london_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text );
SELECT "award" FROM "2008_london_revival" WHERE "category"='best actor in a musical' AND "nominee"='denis lawson';
2-1195142-3
Which opponent has an Outcome of winner, and a Date of 5 november 2011?
CREATE TABLE "singles_6_4_titles_2_runners_up" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text );
SELECT "opponent" FROM "singles_6_4_titles_2_runners_up" WHERE "outcome"='winner' AND "date"='5 november 2011';
2-11870943-4
Which date has a Score of 4–6, 2–6?
CREATE TABLE "singles_6_4_titles_2_runners_up" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text );
SELECT "date" FROM "singles_6_4_titles_2_runners_up" WHERE "score"='4–6, 2–6';
2-11870943-4
Which date has a Opponent of juan mónaco, and a Score of 6–2, 4–6, 7–6 (7–3)?
CREATE TABLE "singles_6_4_titles_2_runners_up" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text );
SELECT "date" FROM "singles_6_4_titles_2_runners_up" WHERE "opponent"='juan mónaco' AND "score"='6–2, 4–6, 7–6 (7–3)';
2-11870943-4
Which outcome has a Opponent of fernando verdasco?
CREATE TABLE "singles_6_4_titles_2_runners_up" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text );
SELECT "outcome" FROM "singles_6_4_titles_2_runners_up" WHERE "opponent"='fernando verdasco';
2-11870943-4
Which surface has an Opponent of fernando verdasco?
CREATE TABLE "singles_6_4_titles_2_runners_up" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text );
SELECT "surface" FROM "singles_6_4_titles_2_runners_up" WHERE "opponent"='fernando verdasco';
2-11870943-4
Which surface has a Date of 5 november 2011?
CREATE TABLE "singles_6_4_titles_2_runners_up" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text );
SELECT "surface" FROM "singles_6_4_titles_2_runners_up" WHERE "date"='5 november 2011';
2-11870943-4
When the Venue was mcg what was the sum of all Crowds for that venue?
CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT SUM("crowd") FROM "round_16" WHERE "venue"='mcg';
2-10869537-16
If the Away team is essendon, what was the Date they played?
CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_16" WHERE "away_team"='essendon';
2-10869537-16
On what Date did the Away team essendon play?
CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_16" WHERE "away_team"='essendon';
2-10869537-16
When the Home team was north melbourne what was the Date of the game?
CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_16" WHERE "home_team"='north melbourne';
2-10869537-16
What was the record as of September 1?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "record" FROM "game_log" WHERE "date"='september 1';
2-11513998-7
What was the losing score on September 1?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "loss" FROM "game_log" WHERE "date"='september 1';
2-11513998-7
What is the 1988 value when the 1987 value was 1r?
CREATE TABLE "grand_slam_singles_tournament_timeline" ( "tournament" text, "1980" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text );
SELECT "1988" FROM "grand_slam_singles_tournament_timeline" WHERE "1987"='1r';
2-1171445-1
What is the 1981 value at the Tournament of Wimbledon?
CREATE TABLE "grand_slam_singles_tournament_timeline" ( "tournament" text, "1980" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text );
SELECT "1981" FROM "grand_slam_singles_tournament_timeline" WHERE "tournament"='wimbledon';
2-1171445-1
What is the name of the rollercoaster that opened in 2004 in bobbejaanland?
CREATE TABLE "roller_coasters" ( "name" text, "model" text, "park" text, "opened" text, "status" text );
SELECT "name" FROM "roller_coasters" WHERE "opened"='2004' AND "park"='bobbejaanland';
2-11172961-1
What is the status of the junior coaster model that opened in 2008?
CREATE TABLE "roller_coasters" ( "name" text, "model" text, "park" text, "opened" text, "status" text );
SELECT "status" FROM "roller_coasters" WHERE "opened"='2008' AND "model"='junior coaster';
2-11172961-1
What is the model for Thor's Hammer which is listed as operating?
CREATE TABLE "roller_coasters" ( "name" text, "model" text, "park" text, "opened" text, "status" text );
SELECT "model" FROM "roller_coasters" WHERE "status"='operating' AND "name"='thor''s hammer';
2-11172961-1
What is the name of the coaster that opened in 2011 and is a euro-fighter model?
CREATE TABLE "roller_coasters" ( "name" text, "model" text, "park" text, "opened" text, "status" text );
SELECT "name" FROM "roller_coasters" WHERE "model"='euro-fighter' AND "opened"='2011';
2-11172961-1
Which driver won the iv j.c.c. jersey road race?
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 "race_name"='iv j.c.c. jersey road race';
2-1140119-5
What's the total number of games that had more than 34 points and exactly 3 losses?
CREATE TABLE "all_time_record" ( "season" text, "team_name" text, "games" real, "losses" real, "points" real );
SELECT COUNT("games") FROM "all_time_record" WHERE "points"=34 AND "losses"=3;
2-11692087-1
What's the total number of losses with less than 19 points and more than 36 games?
CREATE TABLE "all_time_record" ( "season" text, "team_name" text, "games" real, "losses" real, "points" real );
SELECT COUNT("losses") FROM "all_time_record" WHERE "points"<19 AND "games">36;
2-11692087-1
Which season has less than 26 points, more than 18 games, and exactly 13 losses?
CREATE TABLE "all_time_record" ( "season" text, "team_name" text, "games" real, "losses" real, "points" real );
SELECT "season" FROM "all_time_record" WHERE "points"<26 AND "games">18 AND "losses"=13;
2-11692087-1
What is the highest crowd number of the game where the away team was south melbourne?
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 MAX("crowd") FROM "round_3" WHERE "away_team"='south melbourne';
2-10883333-3
What is the home team score that played the away team of north melbourne?
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"='north melbourne';
2-10883333-3
What is the away team score of the game that was played at princes park?
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_score" FROM "round_3" WHERE "venue"='princes park';
2-10883333-3
If the Home team had a score of 21.22 (148), what is the sum of all Crowds?
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 SUM("crowd") FROM "round_8" WHERE "home_team_score"='21.22 (148)';
2-10809351-8
If the Home team is carlton, what's the lowest Crowd found?
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 MIN("crowd") FROM "round_8" WHERE "home_team"='carlton';
2-10809351-8
What is the average amount of attenders when away team score is 12.10 (82)?
CREATE TABLE "round_19" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT AVG("crowd") FROM "round_19" WHERE "away_team_score"='12.10 (82)';
2-10869537-19
What is the away team score when the home team scored 11.11 (77)?
CREATE TABLE "round_19" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_19" WHERE "home_team_score"='11.11 (77)';
2-10869537-19
Where did the game take place when the away team score is 15.11 (101)?
CREATE TABLE "round_19" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_19" WHERE "away_team_score"='15.11 (101)';
2-10869537-19
What is the Block A value for an El NOSAWA Mendoza value of kondo (7:08)?
CREATE TABLE "2007" ( "block_a" text, "ryuji_hijikata" text, "shuji_kondo" text, "el_nosawa_mendoza" text, "pepe_michinoku" text, "katsuhiko_nakajima" text );
SELECT "block_a" FROM "2007" WHERE "el_nosawa_mendoza"='kondo (7:08)';
2-11934531-5
What is the PEPE Michinoku value for a Ryuji Hijikata value of sabin (12:33)?
CREATE TABLE "2007" ( "block_a" text, "ryuji_hijikata" text, "shuji_kondo" text, "el_nosawa_mendoza" text, "pepe_michinoku" text, "katsuhiko_nakajima" text );
SELECT "pepe_michinoku" FROM "2007" WHERE "ryuji_hijikata"='sabin (12:33)';
2-11934531-5
What is the Shuji Kondo value related to a PEPE Michinoku value of sabin (14:43)?
CREATE TABLE "2007" ( "block_a" text, "ryuji_hijikata" text, "shuji_kondo" text, "el_nosawa_mendoza" text, "pepe_michinoku" text, "katsuhiko_nakajima" text );
SELECT "shuji_kondo" FROM "2007" WHERE "pepe_michinoku"='sabin (14:43)';
2-11934531-5
when did asts reach 0?
CREATE TABLE "b" ( "player" text, "pos" text, "from" real, "school_country" text, "rebs" real, "asts" real );
SELECT "from" FROM "b" WHERE "asts"=0;
2-11482079-3
beyond 2001, what is the lowest asts from a pos of sf?
CREATE TABLE "b" ( "player" text, "pos" text, "from" real, "school_country" text, "rebs" real, "asts" real );
SELECT MIN("asts") FROM "b" WHERE "pos"='sf' AND "from">2001;
2-11482079-3
Tell me the declination with NGC number larger than 5750
CREATE TABLE "5701_5800" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real );
SELECT "declination_j2000" FROM "5701_5800" WHERE "ngc_number">5750;
2-11051845-8
Tell me the final position for fa community shield
CREATE TABLE "competition_overall" ( "competition" text, "current_position_round" text, "final_position_round" text, "first_match" text, "last_match" text );
SELECT "final_position_round" FROM "competition_overall" WHERE "competition"='fa community shield';
2-11927320-3
Name the first match for 11 may 2008
CREATE TABLE "competition_overall" ( "competition" text, "current_position_round" text, "final_position_round" text, "first_match" text, "last_match" text );
SELECT "first_match" FROM "competition_overall" WHERE "last_match"='11 may 2008';
2-11927320-3
What is the total number of Lifetime India Distributor share earlier than 2009?
CREATE TABLE "lifetime_distributor_share" ( "rank" real, "movie" text, "year" real, "studio_s" text, "lifetime_india_distributor_share" real );
SELECT COUNT("lifetime_india_distributor_share") FROM "lifetime_distributor_share" WHERE "year"<2009;
2-11872185-4
When did South Melbourne play as the home team?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_17" WHERE "home_team"='south melbourne';
2-10809271-17
What was the largest amount of spectators when St Kilda was the away team?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MAX("crowd") FROM "round_17" WHERE "away_team"='st kilda';
2-10809271-17
What was Richmond's score when it was the away team?
CREATE TABLE "round_17" ( "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_17" WHERE "away_team"='richmond';
2-10809271-17
what is the declination (j2000) that has a constellation of hydra and a right ascension (j2000) of 10h46m44.9s?
CREATE TABLE "3301_3400" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text );
SELECT "declination_j2000" FROM "3301_3400" WHERE "constellation"='hydra' AND "right_ascension_j2000"='10h46m44.9s';
2-11097691-4
What is the ngc number when the object type is lenticular galaxy and the constellation is hydra?
CREATE TABLE "3301_3400" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text );
SELECT MAX("ngc_number") FROM "3301_3400" WHERE "object_type"='lenticular galaxy' AND "constellation"='hydra';
2-11097691-4
what is the object type when the ngc number is 3314?
CREATE TABLE "3301_3400" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text );
SELECT "object_type" FROM "3301_3400" WHERE "ngc_number"=3314;
2-11097691-4
what is the ngc number when the constellation is leo and the declination (j2000) is °42′13″?
CREATE TABLE "3301_3400" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text );
SELECT AVG("ngc_number") FROM "3301_3400" WHERE "constellation"='leo' AND "declination_j2000"='°42′13″';
2-11097691-4
what is the right ascension (j2000) with the ngc number less than 3384, the constellation is hydra and the object type is spiral galaxy?
CREATE TABLE "3301_3400" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text );
SELECT "right_ascension_j2000" FROM "3301_3400" WHERE "ngc_number"<3384 AND "constellation"='hydra' AND "object_type"='spiral galaxy';
2-11097691-4
What competition was played on October 7, 2011?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "competition" FROM "international_goals" WHERE "date"='october 7, 2011';
2-1109407-1
What's the score for 1992, with the result of a loss?
CREATE TABLE "1990s" ( "year" real, "date" text, "location" text, "score" text, "result" text );
SELECT "score" FROM "1990s" WHERE "year"=1992 AND "result"='loss';
2-11233358-4
What national league has limoges csp, and french basketball cup?
CREATE TABLE "third_and_fourth_tiers" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text );
SELECT "national_league" FROM "third_and_fourth_tiers" WHERE "club"='limoges csp' AND "national_cup"='french basketball cup';
2-12072982-5
What is the club that has the turkish basketball cup and fiba eurochallenge (3rd tier)?
CREATE TABLE "third_and_fourth_tiers" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text );
SELECT "club" FROM "third_and_fourth_tiers" WHERE "national_cup"='turkish basketball cup' AND "european_cup"='fiba eurochallenge (3rd tier)';
2-12072982-5
What national cup has fc barcelona?
CREATE TABLE "third_and_fourth_tiers" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text );
SELECT "national_cup" FROM "third_and_fourth_tiers" WHERE "club"='fc barcelona';
2-12072982-5
Name the series ^ when the CPU clock is 1500 and the model is t-52r
CREATE TABLE "available_processors" ( "series" text, "model" text, "cpu_clock_m_hz" text, "cpu_cores" real, "tdp_w" text, "l2_cache_ki_b" text, "radeon_cores" real, "ddr3_speed" real );
SELECT "series" FROM "available_processors" WHERE "cpu_clock_m_hz"='1500' AND "model"='t-52r';
2-11956457-1
Name the average DDR3 speed for model e-350
CREATE TABLE "available_processors" ( "series" text, "model" text, "cpu_clock_m_hz" text, "cpu_cores" real, "tdp_w" text, "l2_cache_ki_b" text, "radeon_cores" real, "ddr3_speed" real );
SELECT AVG("ddr3_speed") FROM "available_processors" WHERE "model"='e-350';
2-11956457-1
Name the CPU clock for L2 cache of 2*512 and series ^ of e-series and DDR3 speed of 1066
CREATE TABLE "available_processors" ( "series" text, "model" text, "cpu_clock_m_hz" text, "cpu_cores" real, "tdp_w" text, "l2_cache_ki_b" text, "radeon_cores" real, "ddr3_speed" real );
SELECT "cpu_clock_m_hz" FROM "available_processors" WHERE "l2_cache_ki_b"='2*512' AND "series"='e-series' AND "ddr3_speed"=1066;
2-11956457-1
who lost on august 21?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "loss" FROM "game_log" WHERE "date"='august 21';
2-11512659-7
On August 10, what was the record against the Expos?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "record" FROM "game_log" WHERE "opponent"='expos' AND "date"='august 10';
2-11512659-7
What is the average laps for lorenzo bandini with a grid under 3?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("laps") FROM "classification" WHERE "driver"='lorenzo bandini' AND "grid"<3;
2-1122360-1
What driver has under 53 laps, a grid smaller than 14, and a time/retired of differential?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "driver" FROM "classification" WHERE "laps"<53 AND "grid"<14 AND "time_retired"='differential';
2-1122360-1
What music is in the film with an Uncut run time of 95 minutes?
CREATE TABLE "jacopetti_and_prosperi" ( "title" text, "year" real, "country" text, "music" text, "uncut_run_time" text );
SELECT "music" FROM "jacopetti_and_prosperi" WHERE "uncut_run_time"='95 minutes';
2-1176486-1
What country is the film that has music of nino oliviero?
CREATE TABLE "jacopetti_and_prosperi" ( "title" text, "year" real, "country" text, "music" text, "uncut_run_time" text );
SELECT "country" FROM "jacopetti_and_prosperi" WHERE "music"='nino oliviero';
2-1176486-1
What music is in the film before 1963?
CREATE TABLE "jacopetti_and_prosperi" ( "title" text, "year" real, "country" text, "music" text, "uncut_run_time" text );
SELECT "music" FROM "jacopetti_and_prosperi" WHERE "year"<1963;
2-1176486-1