question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
|---|---|---|---|
Who was nominated for best supporting actor in the movie Going My Way?
|
CREATE TABLE "nominees" (
"year_ceremony" text,
"actor_actress" text,
"category" text,
"film_title_used_in_nomination" text,
"result" text
);
|
SELECT "actor_actress" FROM "nominees" WHERE "film_title_used_in_nomination"='Going My Way' AND "category"='Best Supporting Actor';
|
1-18638067-1
|
When in 2003 to 2004 the January team is 5.7 what is it through 2001 through 2002?
|
CREATE TABLE "duration" (
"term_abroad" text,
"2000_01" text,
"2001_02" text,
"2002_03" text,
"2003_04" text,
"2004_05" text,
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text
);
|
SELECT "2001_02" FROM "duration" WHERE "2003_04"='5.7';
|
1-1863144-2
|
When through 2005 to 2006 it is 5.4 what team is it?
|
CREATE TABLE "duration" (
"term_abroad" text,
"2000_01" text,
"2001_02" text,
"2002_03" text,
"2003_04" text,
"2004_05" text,
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text
);
|
SELECT "term_abroad" FROM "duration" WHERE "2005_06"='5.4';
|
1-1863144-2
|
When through 2006 to 2007 the duration of one quarter is 3.4 what is it through 2007 to 2008?
|
CREATE TABLE "duration" (
"term_abroad" text,
"2000_01" text,
"2001_02" text,
"2002_03" text,
"2003_04" text,
"2004_05" text,
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text
);
|
SELECT "2007_08" FROM "duration" WHERE "2006_07"='3.4';
|
1-1863144-2
|
When through 2005 to 2006 the duration of the academic year is 5.3 what is it through 2000 to 2001?
|
CREATE TABLE "duration" (
"term_abroad" text,
"2000_01" text,
"2001_02" text,
"2002_03" text,
"2003_04" text,
"2004_05" text,
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text
);
|
SELECT "2000_01" FROM "duration" WHERE "2005_06"='5.3';
|
1-1863144-2
|
When through 2001 to 2002 the duration is 0.5 what is the term abroad?
|
CREATE TABLE "duration" (
"term_abroad" text,
"2000_01" text,
"2001_02" text,
"2002_03" text,
"2003_04" text,
"2004_05" text,
"2005_06" text,
"2006_07" text,
"2007_08" text,
"2008_09" text
);
|
SELECT "term_abroad" FROM "duration" WHERE "2001_02"='0.5';
|
1-1863144-2
|
Name the series number that aired on november 11, 1996
|
CREATE TABLE "table1_18646432_1" (
"series_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
|
SELECT "series_num" FROM "table1_18646432_1" WHERE "original_air_date"='November 11, 1996';
|
1-18646432-1
|
Who wrote the episode originally aired on September 29, 1999?
|
CREATE TABLE "table1_18646432_4" (
"series_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
|
SELECT "written_by" FROM "table1_18646432_4" WHERE "original_air_date"='September 29, 1999';
|
1-18646432-4
|
What is the name of the episode originally aired on September 29, 1999?
|
CREATE TABLE "table1_18646432_4" (
"series_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
|
SELECT "title" FROM "table1_18646432_4" WHERE "original_air_date"='September 29, 1999';
|
1-18646432-4
|
What is the production code number for episode named "chilly scenes of winter golf"?
|
CREATE TABLE "table1_18646432_4" (
"series_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real
);
|
SELECT MIN("prod_code") FROM "table1_18646432_4" WHERE "title"='\"Chilly Scenes of Winter Golf\"';
|
1-18646432-4
|
How many percentages were recorded under 2006 when in 2001 was 14.6%?
|
CREATE TABLE "table1_18660332_2" (
"ethnic_group" text,
"2001_pct" text,
"2001_people" text,
"2006_pct" text,
"2006_people" real
);
|
SELECT COUNT("2006_pct") FROM "table1_18660332_2" WHERE "2001_pct"='14.6';
|
1-18660332-2
|
What is the ethnic group that in 2001 had 117,513?
|
CREATE TABLE "table1_18660332_2" (
"ethnic_group" text,
"2001_pct" text,
"2001_people" text,
"2006_pct" text,
"2006_people" real
);
|
SELECT "ethnic_group" FROM "table1_18660332_2" WHERE "2001_people"='117,513';
|
1-18660332-2
|
How many numbers were recorded under 2001 when 2006 was 18.9?
|
CREATE TABLE "table1_18660332_2" (
"ethnic_group" text,
"2001_pct" text,
"2001_people" text,
"2006_pct" text,
"2006_people" real
);
|
SELECT COUNT("2001_pct") FROM "table1_18660332_2" WHERE "2006_pct"='18.9';
|
1-18660332-2
|
What was the percentage in 2006 when in 2001 was 66.9 %?
|
CREATE TABLE "table1_18660332_2" (
"ethnic_group" text,
"2001_pct" text,
"2001_people" text,
"2006_pct" text,
"2006_people" real
);
|
SELECT "2006_pct" FROM "table1_18660332_2" WHERE "2001_pct"='66.9';
|
1-18660332-2
|
If the rings is 58.975, what is the number for the horizontal bar?
|
CREATE TABLE "top_8_teams_qualified_for_team_finals" (
"position" text,
"country" text,
"floor" text,
"pommel_horse" text,
"rings" text,
"vault" text,
"parallel_bars" text,
"horizontal_bar" text,
"team_total" text
);
|
SELECT "horizontal_bar" FROM "top_8_teams_qualified_for_team_finals" WHERE "rings"='58.975';
|
1-18662026-1
|
How many positions was the United States in?
|
CREATE TABLE "top_8_teams_qualified_for_team_finals" (
"position" text,
"country" text,
"floor" text,
"pommel_horse" text,
"rings" text,
"vault" text,
"parallel_bars" text,
"horizontal_bar" text,
"team_total" text
);
|
SELECT COUNT("position") FROM "top_8_teams_qualified_for_team_finals" WHERE "country"='United States';
|
1-18662026-1
|
If the rings are 60.500, what is the parallel bars number?
|
CREATE TABLE "top_8_teams_qualified_for_team_finals" (
"position" text,
"country" text,
"floor" text,
"pommel_horse" text,
"rings" text,
"vault" text,
"parallel_bars" text,
"horizontal_bar" text,
"team_total" text
);
|
SELECT "parallel_bars" FROM "top_8_teams_qualified_for_team_finals" WHERE "rings"='60.500';
|
1-18662026-1
|
If the rings number is 60.000, what is the number for the vault?
|
CREATE TABLE "top_8_teams_qualified_for_team_finals" (
"position" text,
"country" text,
"floor" text,
"pommel_horse" text,
"rings" text,
"vault" text,
"parallel_bars" text,
"horizontal_bar" text,
"team_total" text
);
|
SELECT COUNT("vault") FROM "top_8_teams_qualified_for_team_finals" WHERE "rings"='60.000';
|
1-18662026-1
|
If the parallel bars numbers is 61.500, what is the total number for the flood?
|
CREATE TABLE "top_8_teams_qualified_for_team_finals" (
"position" text,
"country" text,
"floor" text,
"pommel_horse" text,
"rings" text,
"vault" text,
"parallel_bars" text,
"horizontal_bar" text,
"team_total" text
);
|
SELECT COUNT("floor") FROM "top_8_teams_qualified_for_team_finals" WHERE "parallel_bars"='61.500';
|
1-18662026-1
|
When united kingdom is the country what is the most recent date?
|
CREATE TABLE "per_country" (
"rank" text,
"country" text,
"jerseys" real,
"vuelta_wins" real,
"points" real,
"ko_m" real,
"combo" real,
"most_recent_cyclist" text,
"most_recent_date" text,
"different_holders" real
);
|
SELECT "most_recent_date" FROM "per_country" WHERE "country"='United Kingdom';
|
1-18676973-3
|
When 3 is the rank what is the highest combo?
|
CREATE TABLE "per_country" (
"rank" text,
"country" text,
"jerseys" real,
"vuelta_wins" real,
"points" real,
"ko_m" real,
"combo" real,
"most_recent_cyclist" text,
"most_recent_date" text,
"different_holders" real
);
|
SELECT MAX("combo") FROM "per_country" WHERE "rank"='3';
|
1-18676973-3
|
When 12 is the rank who is the most recent cyclist?
|
CREATE TABLE "per_country" (
"rank" text,
"country" text,
"jerseys" real,
"vuelta_wins" real,
"points" real,
"ko_m" real,
"combo" real,
"most_recent_cyclist" text,
"most_recent_date" text,
"different_holders" real
);
|
SELECT "most_recent_cyclist" FROM "per_country" WHERE "rank"='12';
|
1-18676973-3
|
When 155 is the jersey what is the highest amount of different holders?
|
CREATE TABLE "per_country" (
"rank" text,
"country" text,
"jerseys" real,
"vuelta_wins" real,
"points" real,
"ko_m" real,
"combo" real,
"most_recent_cyclist" text,
"most_recent_date" text,
"different_holders" real
);
|
SELECT MAX("different_holders") FROM "per_country" WHERE "jerseys"=155;
|
1-18676973-3
|
Name the upper index kcal/nm3 for 62.47
|
CREATE TABLE "wobbe_index_of_common_fuel_gases" (
"fuel_gas" text,
"upper_index_kcal_nm_3" real,
"lower_index_kcal_nm_3" real,
"upper_index_mj_nm_3" text,
"lower_index_mj_nm_3" text
);
|
SELECT "upper_index_kcal_nm_3" FROM "wobbe_index_of_common_fuel_gases" WHERE "lower_index_mj_nm_3"='62.47';
|
1-1868929-1
|
Name the fuel gas for upper index mj/nm3 for 92.32
|
CREATE TABLE "wobbe_index_of_common_fuel_gases" (
"fuel_gas" text,
"upper_index_kcal_nm_3" real,
"lower_index_kcal_nm_3" real,
"upper_index_mj_nm_3" text,
"lower_index_mj_nm_3" text
);
|
SELECT "fuel_gas" FROM "wobbe_index_of_common_fuel_gases" WHERE "upper_index_mj_nm_3"='92.32';
|
1-1868929-1
|
Name the lower index kcal/ nm3 for 61.32
|
CREATE TABLE "wobbe_index_of_common_fuel_gases" (
"fuel_gas" text,
"upper_index_kcal_nm_3" real,
"lower_index_kcal_nm_3" real,
"upper_index_mj_nm_3" text,
"lower_index_mj_nm_3" text
);
|
SELECT "lower_index_kcal_nm_3" FROM "wobbe_index_of_common_fuel_gases" WHERE "upper_index_mj_nm_3"='61.32';
|
1-1868929-1
|
What is the Quarterback rating of the player who got a comp percentage of 62.0?
|
CREATE TABLE "all_time_professional_quarterback_passin" (
"rank" real,
"name" text,
"tenure" text,
"leagues" text,
"attempts" real,
"completions" real,
"comp_pct" text,
"touchdowns" real,
"interceptions" real,
"yardage" real,
"qb_rating" text
);
|
SELECT "qb_rating" FROM "all_time_professional_quarterback_passin" WHERE "comp_pct"='62.0';
|
1-18686317-1
|
What is the rank of the player who got 58179 in yardage?
|
CREATE TABLE "all_time_professional_quarterback_passin" (
"rank" real,
"name" text,
"tenure" text,
"leagues" text,
"attempts" real,
"completions" real,
"comp_pct" text,
"touchdowns" real,
"interceptions" real,
"yardage" real,
"qb_rating" text
);
|
SELECT "rank" FROM "all_time_professional_quarterback_passin" WHERE "yardage"=58179;
|
1-18686317-1
|
In which league would you find the player with a comp percentage of 54.0?
|
CREATE TABLE "all_time_professional_quarterback_passin" (
"rank" real,
"name" text,
"tenure" text,
"leagues" text,
"attempts" real,
"completions" real,
"comp_pct" text,
"touchdowns" real,
"interceptions" real,
"yardage" real,
"qb_rating" text
);
|
SELECT "leagues" FROM "all_time_professional_quarterback_passin" WHERE "comp_pct"='54.0';
|
1-18686317-1
|
Which nation is where rider phillip dutton from?
|
CREATE TABLE "table1_18666752_3" (
"nation" text,
"rider" text,
"horse" text,
"cross_country_penalties" text,
"total_penalties" text,
"total_team_penalties" text,
"team_rank" real
);
|
SELECT "nation" FROM "table1_18666752_3" WHERE "rider"='Phillip Dutton';
|
1-18666752-3
|
Which nation is where the horse parkmore ed is?
|
CREATE TABLE "table1_18666752_3" (
"nation" text,
"rider" text,
"horse" text,
"cross_country_penalties" text,
"total_penalties" text,
"total_team_penalties" text,
"team_rank" real
);
|
SELECT "nation" FROM "table1_18666752_3" WHERE "horse"='Parkmore Ed';
|
1-18666752-3
|
How many total team penalties are there when cross country penalties is 30.40?
|
CREATE TABLE "table1_18666752_3" (
"nation" text,
"rider" text,
"horse" text,
"cross_country_penalties" text,
"total_penalties" text,
"total_team_penalties" text,
"team_rank" real
);
|
SELECT "total_team_penalties" FROM "table1_18666752_3" WHERE "cross_country_penalties"='30.40';
|
1-18666752-3
|
Who is the rider where the horse is galan de sauvagere?
|
CREATE TABLE "table1_18666752_3" (
"nation" text,
"rider" text,
"horse" text,
"cross_country_penalties" text,
"total_penalties" text,
"total_team_penalties" text,
"team_rank" real
);
|
SELECT "rider" FROM "table1_18666752_3" WHERE "horse"='Galan De Sauvagere';
|
1-18666752-3
|
How many penalties are there when Eric Vigeanel is the rider?
|
CREATE TABLE "table1_18666752_3" (
"nation" text,
"rider" text,
"horse" text,
"cross_country_penalties" text,
"total_penalties" text,
"total_team_penalties" text,
"team_rank" real
);
|
SELECT COUNT("total_penalties") FROM "table1_18666752_3" WHERE "rider"='Eric Vigeanel';
|
1-18666752-3
|
What record label corresponds to the single "I can't stay"?
|
CREATE TABLE "singles" (
"date" real,
"single" text,
"backed_with" text,
"record_label" text,
"format" text,
"other_details" text
);
|
SELECT "record_label" FROM "singles" WHERE "single"='I Can''t Stay';
|
1-18710512-3
|
What format for the release that had 2000 copies?
|
CREATE TABLE "singles" (
"date" real,
"single" text,
"backed_with" text,
"record_label" text,
"format" text,
"other_details" text
);
|
SELECT "format" FROM "singles" WHERE "other_details"='2000 copies';
|
1-18710512-3
|
What single(s) released in 2008 and had 4000 copies?
|
CREATE TABLE "singles" (
"date" real,
"single" text,
"backed_with" text,
"record_label" text,
"format" text,
"other_details" text
);
|
SELECT "single" FROM "singles" WHERE "date"=2008 AND "other_details"='4000 copies';
|
1-18710512-3
|
What were the "other details" (number released) for "is my love will follow me"?
|
CREATE TABLE "singles" (
"date" real,
"single" text,
"backed_with" text,
"record_label" text,
"format" text,
"other_details" text
);
|
SELECT "other_details" FROM "singles" WHERE "single"='My Love Will Follow Me';
|
1-18710512-3
|
What year was "moped girls" released?
|
CREATE TABLE "singles" (
"date" real,
"single" text,
"backed_with" text,
"record_label" text,
"format" text,
"other_details" text
);
|
SELECT "date" FROM "singles" WHERE "single"='Moped Girls';
|
1-18710512-3
|
What were the "other details" (number released) for "is my love will follow me"?
|
CREATE TABLE "singles" (
"date" real,
"single" text,
"backed_with" text,
"record_label" text,
"format" text,
"other_details" text
);
|
SELECT "other_details" FROM "singles" WHERE "single"='My Love Will Follow Me';
|
1-18710512-3
|
Name the least amount of losses for 23 points
|
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
|
SELECT MIN("losses") FROM "torneo_apertura" WHERE "points"=23;
|
1-18703133-1
|
Name the most wins for sport colombia
|
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
|
SELECT MAX("wins") FROM "torneo_apertura" WHERE "team"='Sport Colombia';
|
1-18703133-1
|
Namr the total number of played for 5 losses
|
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
|
SELECT COUNT("played") FROM "torneo_apertura" WHERE "losses"=5;
|
1-18703133-1
|
Name the wins for draws pk is 3/0
|
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
|
SELECT "wins" FROM "torneo_apertura" WHERE "draws_p_k_wins_p_k_losses"='3/0';
|
1-18703133-1
|
What is scored with the position of 6?
|
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
|
SELECT MIN("scored") FROM "torneo_clausura" WHERE "position"=6;
|
1-18703133-6
|
How many losses are there for team tembetary?
|
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
|
SELECT "losses" FROM "torneo_clausura" WHERE "team"='Tembetary';
|
1-18703133-6
|
How many wins have 24 points?
|
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
|
SELECT "wins" FROM "torneo_clausura" WHERE "points"=24;
|
1-18703133-6
|
How many wins?
|
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
|
SELECT MAX("wins") FROM "torneo_clausura";
|
1-18703133-6
|
What is the original air date of the episode directed by Ian Barry and written by Philip Dalkin?
|
CREATE TABLE "table1_18712423_3" (
"series_episode" real,
"season_episode" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"viewers_millions" text
);
|
SELECT "original_air_date" FROM "table1_18712423_3" WHERE "directed_by"='Ian Barry' AND "written_by"='Philip Dalkin';
|
1-18712423-3
|
What is the show episode number of the episode that reached 1.215 millions views?
|
CREATE TABLE "table1_18712423_3" (
"series_episode" real,
"season_episode" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"viewers_millions" text
);
|
SELECT MIN("series_episode") FROM "table1_18712423_3" WHERE "viewers_millions"='1.215';
|
1-18712423-3
|
Who directed the episode written by Matt Ford?
|
CREATE TABLE "table1_18712423_3" (
"series_episode" real,
"season_episode" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"viewers_millions" text
);
|
SELECT "directed_by" FROM "table1_18712423_3" WHERE "written_by"='Matt Ford';
|
1-18712423-3
|
How many times was team 1 the wykeham wonderers?
|
CREATE TABLE "table1_18733480_1" (
"episode_num" real,
"air_date" text,
"team_1" text,
"players_left_after_round_1" text,
"team_2" text
);
|
SELECT COUNT("players_left_after_round_1") FROM "table1_18733480_1" WHERE "team_1"='Wykeham Wonderers';
|
1-18733480-1
|
What is the original air date that had the wykeham wonderers as team 1?
|
CREATE TABLE "table1_18733480_1" (
"episode_num" real,
"air_date" text,
"team_1" text,
"players_left_after_round_1" text,
"team_2" text
);
|
SELECT "air_date" FROM "table1_18733480_1" WHERE "team_1"='Wykeham Wonderers';
|
1-18733480-1
|
Who was team 1 when the chalkheads were team 2?
|
CREATE TABLE "table1_18733480_1" (
"episode_num" real,
"air_date" text,
"team_1" text,
"players_left_after_round_1" text,
"team_2" text
);
|
SELECT "team_1" FROM "table1_18733480_1" WHERE "team_2"='Chalkheads';
|
1-18733480-1
|
What is the title of the production code 1acx09?
|
CREATE TABLE "table1_18734298_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT "title" FROM "table1_18734298_1" WHERE "production_code"='1ACX09';
|
1-18734298-1
|
How many series were directed by Rob Renzetti?
|
CREATE TABLE "table1_18734298_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT COUNT("no_in_series") FROM "table1_18734298_1" WHERE "directed_by"='Rob Renzetti';
|
1-18734298-1
|
Who wrote the series number 14?
|
CREATE TABLE "table1_18734298_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT "written_by" FROM "table1_18734298_1" WHERE "no_in_series"=14;
|
1-18734298-1
|
Did this driver have any winnings the season he had 32 starts
|
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
|
SELECT COUNT("winnings") FROM "nascar_sprint_cup_series" WHERE "starts"=32;
|
1-1875157-1
|
How many wins in the season he finished 33rd
|
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
|
SELECT "winnings" FROM "nascar_sprint_cup_series" WHERE "position"='33rd';
|
1-1875157-1
|
What is the lowest number of top 10 finishes
|
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
|
SELECT MIN("top_10") FROM "nascar_sprint_cup_series";
|
1-1875157-1
|
How many poles in the year 2000
|
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
|
SELECT MAX("poles") FROM "nascar_sprint_cup_series" WHERE "year"=2000;
|
1-1875157-1
|
What is the average finish for winnings of $1,400?
|
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
|
SELECT "avg_finish" FROM "nascar_nationwide_series" WHERE "winnings"='$1,400';
|
1-1875157-2
|
What is the maximum starts that result in an average finish of 16.5?
|
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
|
SELECT MAX("starts") FROM "nascar_nationwide_series" WHERE "avg_finish"='16.5';
|
1-1875157-2
|
How many starts were there when the winnings are $690,321?
|
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
|
SELECT MIN("starts") FROM "nascar_nationwide_series" WHERE "winnings"='$690,321';
|
1-1875157-2
|
If Safari is 3.76%, what is the other Mozilla amount?
|
CREATE TABLE "usage_share_data_from_wikimedia_visitor_" (
"period" text,
"internet_explorer" text,
"firefox" text,
"chrome" text,
"safari" text,
"opera" text,
"other_mozilla" text,
"mobile" text
);
|
SELECT "other_mozilla" FROM "usage_share_data_from_wikimedia_visitor_" WHERE "safari"='3.76%';
|
1-1876262-10
|
If Firefox is 30.45%, what is the other Mozilla amount?
|
CREATE TABLE "usage_share_data_from_wikimedia_visitor_" (
"period" text,
"internet_explorer" text,
"firefox" text,
"chrome" text,
"safari" text,
"opera" text,
"other_mozilla" text,
"mobile" text
);
|
SELECT "other_mozilla" FROM "usage_share_data_from_wikimedia_visitor_" WHERE "firefox"='30.45%';
|
1-1876262-10
|
If Internet Explorer is 47.22%, what is the Safari total?
|
CREATE TABLE "usage_share_data_from_wikimedia_visitor_" (
"period" text,
"internet_explorer" text,
"firefox" text,
"chrome" text,
"safari" text,
"opera" text,
"other_mozilla" text,
"mobile" text
);
|
SELECT "safari" FROM "usage_share_data_from_wikimedia_visitor_" WHERE "internet_explorer"='47.22%';
|
1-1876262-10
|
For period September 2009, what is the other Mozilla total number?
|
CREATE TABLE "usage_share_data_from_wikimedia_visitor_" (
"period" text,
"internet_explorer" text,
"firefox" text,
"chrome" text,
"safari" text,
"opera" text,
"other_mozilla" text,
"mobile" text
);
|
SELECT COUNT("other_mozilla") FROM "usage_share_data_from_wikimedia_visitor_" WHERE "period"='September 2009';
|
1-1876262-10
|
Name the total number of production code by david richardson and todd holland
|
CREATE TABLE "table1_1876825_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT COUNT("production_code") FROM "table1_1876825_2" WHERE "written_by"='David Richardson' AND "directed_by"='Todd Holland';
|
1-1876825-2
|
Name the total number of series for march 19, 2000
|
CREATE TABLE "table1_1876825_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT COUNT("no_in_series") FROM "table1_1876825_2" WHERE "original_air_date"='March 19, 2000';
|
1-1876825-2
|
What is the production code for episode "surgery"?
|
CREATE TABLE "table1_1876825_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT "production_code" FROM "table1_1876825_3" WHERE "title"='\"Surgery\"';
|
1-1876825-3
|
What episode number in the series originally aired on February 25, 2001?
|
CREATE TABLE "table1_1876825_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT "no_in_series" FROM "table1_1876825_3" WHERE "original_air_date"='February 25, 2001';
|
1-1876825-3
|
What is the name of the episode with the production code of 06-00-218?
|
CREATE TABLE "table1_1876825_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT "title" FROM "table1_1876825_3" WHERE "production_code"='06-00-218';
|
1-1876825-3
|
What is the production code for episode 26 in the series?
|
CREATE TABLE "table1_1876825_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT "production_code" FROM "table1_1876825_3" WHERE "no_in_series"=26;
|
1-1876825-3
|
What is the production code for episode 6 in the season?
|
CREATE TABLE "table1_1876825_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT "production_code" FROM "table1_1876825_3" WHERE "no_in_season"=6;
|
1-1876825-3
|
what is the title no in season 2?
|
CREATE TABLE "table1_1876825_8" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT "title" FROM "table1_1876825_8" WHERE "no_in_season"=2;
|
1-1876825-8
|
What date did Micky Adams vacate his position?
|
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
|
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='Micky Adams';
|
1-18788823-5
|
Which vacancy happened on 4 November 2008?
|
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
|
SELECT "position_in_table" FROM "managerial_changes" WHERE "date_of_vacancy"='4 November 2008';
|
1-18788823-5
|
How many times did Keith Downing depart a position?
|
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
|
SELECT COUNT("position_in_table") FROM "managerial_changes" WHERE "outgoing_manager"='Keith Downing';
|
1-18788823-5
|
Which team appointed a person on 23 December 2008?
|
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
|
SELECT "team" FROM "managerial_changes" WHERE "date_of_appointment"='23 December 2008';
|
1-18788823-5
|
What date did the Milton Keynes Dons appoint?
|
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
|
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='Milton Keynes Dons';
|
1-18788823-5
|
Which vacancy occurred on 16 February 2009?
|
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
|
SELECT "position_in_table" FROM "managerial_changes" WHERE "date_of_vacancy"='16 February 2009';
|
1-18788823-5
|
What is title of episode 06-02-407?
|
CREATE TABLE "table1_1876825_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT "title" FROM "table1_1876825_5" WHERE "production_code"='06-02-407';
|
1-1876825-5
|
What is title of episode 06-02-406?
|
CREATE TABLE "table1_1876825_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT "title" FROM "table1_1876825_5" WHERE "production_code"='06-02-406';
|
1-1876825-5
|
What is title of episode aired on March 2, 2003?
|
CREATE TABLE "table1_1876825_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT "title" FROM "table1_1876825_5" WHERE "original_air_date"='March 2, 2003';
|
1-1876825-5
|
Who wrote episode 74?
|
CREATE TABLE "table1_1876825_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT "written_by" FROM "table1_1876825_5" WHERE "no_in_series"=74;
|
1-1876825-5
|
Who wrote "Academic Octathalon"?
|
CREATE TABLE "table1_1876825_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT "written_by" FROM "table1_1876825_5" WHERE "title"='\"Academic Octathalon\"';
|
1-1876825-5
|
Which position in the table is the team watford?
|
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
|
SELECT "position_in_table" FROM "managerial_changes" WHERE "team"='Watford';
|
1-18784280-3
|
Name the number of number in series for production code of 06-04-621
|
CREATE TABLE "table1_1876825_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT COUNT("no_in_series") FROM "table1_1876825_7" WHERE "production_code"='06-04-621';
|
1-1876825-7
|
Name the total number of written by for original air date for may 8, 2005
|
CREATE TABLE "table1_1876825_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT COUNT("written_by") FROM "table1_1876825_7" WHERE "original_air_date"='May 8, 2005';
|
1-1876825-7
|
What was the place and how many people attended the game on July 11?
|
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
|
SELECT "location_attendance" FROM "regular_season" WHERE "date"='July 11';
|
1-18813011-6
|
Who had the most assist and how many on July 26?
|
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
|
SELECT "high_assists" FROM "regular_season" WHERE "date"='July 26';
|
1-18813011-6
|
Who had the high assist in the game where the record is 13-11?
|
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
|
SELECT "high_assists" FROM "regular_season" WHERE "record"='13-11';
|
1-18813011-6
|
At what date did the 23rd manager vacate the position?
|
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
|
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "position_in_table"='23rd';
|
1-18795125-6
|
What was the date of appointment for the manager that replaced Simon Davies?
|
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
|
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Simon Davies';
|
1-18795125-6
|
What was the date of appointment for the manager of the 23rd team?
|
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
|
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "position_in_table"='23rd';
|
1-18795125-6
|
How many categories for, replaced by, exist when the outgoing manager is Alan Buckley?
|
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
|
SELECT COUNT("replaced_by") FROM "managerial_changes" WHERE "outgoing_manager"='Alan Buckley';
|
1-18795125-6
|
Which driver starts 3?
|
CREATE TABLE "drivers" (
"pos" real,
"driver" text,
"starts" real,
"finishes" real,
"wins" real,
"podiums" real,
"stage_wins" real,
"points" real
);
|
SELECT "driver" FROM "drivers" WHERE "starts"=3;
|
1-18811741-15
|
How many podiums for the driver with 18 stage wins?
|
CREATE TABLE "drivers" (
"pos" real,
"driver" text,
"starts" real,
"finishes" real,
"wins" real,
"podiums" real,
"stage_wins" real,
"points" real
);
|
SELECT COUNT("podiums") FROM "drivers" WHERE "stage_wins"=18;
|
1-18811741-15
|
What is the highest pos for a driver with 1 podium?
|
CREATE TABLE "drivers" (
"pos" real,
"driver" text,
"starts" real,
"finishes" real,
"wins" real,
"podiums" real,
"stage_wins" real,
"points" real
);
|
SELECT MAX("pos") FROM "drivers" WHERE "podiums"=1;
|
1-18811741-15
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.