question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What aired at 10:00 when Flashpoint aired at 9:30?
CREATE TABLE "friday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );
SELECT "10_00" FROM "friday" WHERE "9_30"='flashpoint';
2-15708593-20
When Don't Forget the Lyrics aired at 8:30 what aired at 9:00?
CREATE TABLE "friday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );
SELECT "9_00" FROM "friday" WHERE "8_30"='don''t forget the lyrics';
2-15708593-20
What aired at 8:00 when The Goode Family aired at 8:30?
CREATE TABLE "friday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );
SELECT "8_00" FROM "friday" WHERE "8_30"='the goode family';
2-15708593-20
When Surviving Suburbia aired at 8:00 what aired at 10:00?
CREATE TABLE "friday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );
SELECT "10_00" FROM "friday" WHERE "8_00"='surviving suburbia';
2-15708593-20
What aired at 9:30 when Don't Forget the Lyrics aired at 8:00?
CREATE TABLE "friday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text );
SELECT "9_30" FROM "friday" WHERE "8_00"='don''t forget the lyrics';
2-15708593-20
What is the lowest amount of Span metres when the year opened is 2007, the country is China, rank is less than 13, and the span feet is less than 1378?
CREATE TABLE "completed_bridges" ( "rank" real, "name" text, "span_metres" real, "span_feet" real, "material" text, "year_opened" text, "country" text );
SELECT MIN("span_metres") FROM "completed_bridges" WHERE "year_opened"='2007' AND "country"='china' AND "rank"<13 AND "span_feet"<1378;
2-1549729-1
Which country's material was concrete when the span metres were less than 270, span feet is more than 837, and the year opened was 1943?
CREATE TABLE "completed_bridges" ( "rank" real, "name" text, "span_metres" real, "span_feet" real, "material" text, "year_opened" text, "country" text );
SELECT "country" FROM "completed_bridges" WHERE "material"='concrete' AND "span_metres"<270 AND "span_feet">837 AND "year_opened"='1943';
2-1549729-1
What country won in 1993?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "country" FROM "made_the_cut" WHERE "year_s_won"='1993';
2-16092658-2
What was the finish with a total larger than 286, a to par of +4 and Bob Tway played?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "finish" FROM "made_the_cut" WHERE "total">286 AND "to_par"='+4' AND "player"='bob tway';
2-16092658-2
What player in the United States had a total of 286 and won in 2003?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "player" FROM "made_the_cut" WHERE "country"='united states' AND "total"=286 AND "year_s_won"='2003';
2-16092658-2
What country has a total of 293?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "country" FROM "made_the_cut" WHERE "total"=293;
2-16092658-2
What player is from Fiji?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "player" FROM "made_the_cut" WHERE "country"='fiji';
2-16092658-2
What is the average year that the USD exchange of ¥88.54 had a gross domestic product larger than 477,327,134?
CREATE TABLE "macro_economic_trend" ( "year" real, "gross_domestic_product" real, "us_dollar_exchange" text, "nominal_per_capita_gdp_as_pct_of_usa" real, "ppp_capita_gdp_as_pct_of_usa" text );
SELECT AVG("year") FROM "macro_economic_trend" WHERE "us_dollar_exchange"='¥88.54' AND "gross_domestic_product">'477,327,134';
2-15578-1
How many years did the USD Exchange have ¥225.82 and a gross domestic product larger than 240,707,315?
CREATE TABLE "macro_economic_trend" ( "year" real, "gross_domestic_product" real, "us_dollar_exchange" text, "nominal_per_capita_gdp_as_pct_of_usa" real, "ppp_capita_gdp_as_pct_of_usa" text );
SELECT COUNT("year") FROM "macro_economic_trend" WHERE "us_dollar_exchange"='¥225.82' AND "gross_domestic_product">'240,707,315';
2-15578-1
Which method was used in the welterweight class with a preliminary card?
CREATE TABLE "results" ( "card" text, "weight_class" text, "round" real, "time" text, "method" text );
SELECT "method" FROM "results" WHERE "weight_class"='welterweight' AND "card"='preliminary';
2-16023995-1
Which method was used in a round greater than 3?
CREATE TABLE "results" ( "card" text, "weight_class" text, "round" real, "time" text, "method" text );
SELECT "method" FROM "results" WHERE "round">3;
2-16023995-1
Which weight class had a time of 4:59?
CREATE TABLE "results" ( "card" text, "weight_class" text, "round" real, "time" text, "method" text );
SELECT "weight_class" FROM "results" WHERE "time"='4:59';
2-16023995-1
What was the time for a round less than 3?
CREATE TABLE "results" ( "card" text, "weight_class" text, "round" real, "time" text, "method" text );
SELECT "time" FROM "results" WHERE "round"<3;
2-16023995-1
What is the smallest round for the welterweight class with a preliminary card?
CREATE TABLE "results" ( "card" text, "weight_class" text, "round" real, "time" text, "method" text );
SELECT MIN("round") FROM "results" WHERE "weight_class"='welterweight' AND "card"='preliminary';
2-16023995-1
Were there Bulletins to all contacts of the proprietary license created by Microsoft with no transport layer of security?
CREATE TABLE "see_also" ( "protocol" text, "creator" text, "license" text, "transport_layer_security" text, "bulletins_to_all_contacts" text, "batch_file_sharing" text );
SELECT "bulletins_to_all_contacts" FROM "see_also" WHERE "transport_layer_security"='no' AND "license"='proprietary' AND "creator"='microsoft';
2-1597299-1
Were there Bulletins to all contacts of the license created by GG Network?
CREATE TABLE "see_also" ( "protocol" text, "creator" text, "license" text, "transport_layer_security" text, "bulletins_to_all_contacts" text, "batch_file_sharing" text );
SELECT "bulletins_to_all_contacts" FROM "see_also" WHERE "creator"='gg network';
2-1597299-1
What is the name of the license created by IETF?
CREATE TABLE "see_also" ( "protocol" text, "creator" text, "license" text, "transport_layer_security" text, "bulletins_to_all_contacts" text, "batch_file_sharing" text );
SELECT "license" FROM "see_also" WHERE "creator"='ietf';
2-1597299-1
What is the envelopment for the rhabdoviridae family?
CREATE TABLE "comparison_table_of_clinically_important" ( "family" text, "baltimore_group" text, "envelopment" text, "virion_shape" text, "replication_site" text );
SELECT "envelopment" FROM "comparison_table_of_clinically_important" WHERE "family"='rhabdoviridae';
2-15845253-1
Which Baltimore group has a viron shape of icosahedral, replicates in the cytoplasm, is non-enveloped, and is from the astroviridae family?
CREATE TABLE "comparison_table_of_clinically_important" ( "family" text, "baltimore_group" text, "envelopment" text, "virion_shape" text, "replication_site" text );
SELECT "baltimore_group" FROM "comparison_table_of_clinically_important" WHERE "virion_shape"='icosahedral' AND "envelopment"='non-enveloped' AND "replication_site"='cytoplasm' AND "family"='astroviridae';
2-15845253-1
Which Baltimore group is of the retroviridae family?
CREATE TABLE "comparison_table_of_clinically_important" ( "family" text, "baltimore_group" text, "envelopment" text, "virion_shape" text, "replication_site" text );
SELECT "baltimore_group" FROM "comparison_table_of_clinically_important" WHERE "family"='retroviridae';
2-15845253-1
Which Baltimore group is of the togaviridae family?
CREATE TABLE "comparison_table_of_clinically_important" ( "family" text, "baltimore_group" text, "envelopment" text, "virion_shape" text, "replication_site" text );
SELECT "baltimore_group" FROM "comparison_table_of_clinically_important" WHERE "family"='togaviridae';
2-15845253-1
Which Baltimore group is non-enveloped and is of the papillomaviridae family?
CREATE TABLE "comparison_table_of_clinically_important" ( "family" text, "baltimore_group" text, "envelopment" text, "virion_shape" text, "replication_site" text );
SELECT "baltimore_group" FROM "comparison_table_of_clinically_important" WHERE "envelopment"='non-enveloped' AND "family"='papillomaviridae';
2-15845253-1
What is the replication site when the species is enveloped and is of the bunyaviridae family?
CREATE TABLE "comparison_table_of_clinically_important" ( "family" text, "baltimore_group" text, "envelopment" text, "virion_shape" text, "replication_site" text );
SELECT "replication_site" FROM "comparison_table_of_clinically_important" WHERE "envelopment"='enveloped' AND "family"='bunyaviridae';
2-15845253-1
What is the highest League Cup with a Player that is steed malbranque?
CREATE TABLE "most_appearances" ( "player" text, "position" text, "premier_league" real, "fa_cup" real, "league_cup" real, "uefa_cup" real, "total" real );
SELECT MAX("league_cup") FROM "most_appearances" WHERE "player"='steed malbranque';
2-15610848-5
What is the Manufacturer with a Fuel Type that is diesel?
CREATE TABLE "fleet_statistics" ( "manufacturer" text, "model" text, "year_built" real, "vehicle_length" text, "fuel_type" text, "num_in_fleet" real );
SELECT "manufacturer" FROM "fleet_statistics" WHERE "fuel_type"='diesel';
2-15969544-4
What is the Higgins with a Scallon that is 2%?
CREATE TABLE "opinion_polls" ( "date" text, "source" text, "polling_agency" text, "davis" text, "gallagher" text, "higgins" text, "mc_guinness" text, "mitchell" text, "norris" text, "scallon" text );
SELECT "higgins" FROM "opinion_polls" WHERE "scallon"='2%';
2-15684434-4
What is the Higgins with a Davis that is 9%?
CREATE TABLE "opinion_polls" ( "date" text, "source" text, "polling_agency" text, "davis" text, "gallagher" text, "higgins" text, "mc_guinness" text, "mitchell" text, "norris" text, "scallon" text );
SELECT "higgins" FROM "opinion_polls" WHERE "davis"='9%';
2-15684434-4
What is the Source with a Norris that is 7%?
CREATE TABLE "opinion_polls" ( "date" text, "source" text, "polling_agency" text, "davis" text, "gallagher" text, "higgins" text, "mc_guinness" text, "mitchell" text, "norris" text, "scallon" text );
SELECT "source" FROM "opinion_polls" WHERE "norris"='7%';
2-15684434-4
What is the highest total attendance of the team with a game 1 attendance of 105,011 and a game 3 greater than 102,989?
CREATE TABLE "attendance" ( "team" text, "game_1" real, "game_2" real, "game_3" real, "game_4" real, "game_5" real, "game_6" text, "total" real, "average" real );
SELECT MAX("total") FROM "attendance" WHERE "game_1"='105,011' AND "game_3">'102,989';
2-16046689-30
What is the average game 3 attendance of the team with a total attendance less than 524,005, a game 4 attendance of 70,585, and a game 1 attendance less than 70,585?
CREATE TABLE "attendance" ( "team" text, "game_1" real, "game_2" real, "game_3" real, "game_4" real, "game_5" real, "game_6" text, "total" real, "average" real );
SELECT AVG("game_3") FROM "attendance" WHERE "total"<'524,005' AND "game_4"='70,585' AND "game_1"<'70,585';
2-16046689-30
What is the game 2 sum attendance of the team with a total attendance of 759,997?
CREATE TABLE "attendance" ( "team" text, "game_1" real, "game_2" real, "game_3" real, "game_4" real, "game_5" real, "game_6" text, "total" real, "average" real );
SELECT SUM("game_2") FROM "attendance" WHERE "total"='759,997';
2-16046689-30
What position does Barry Rose play?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "college" text );
SELECT "position" FROM "nfl_draft" WHERE "player"='barry rose';
2-15353223-1
Which Jersey # has a Height (cm) of 183, a Name of paul stastny, and a Weight (kg) smaller than 93?
CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_num" real, "name" text, "height_cm" real, "weight_kg" real, "birthdate" text, "birthplace" text, "2006_2007_team" text );
SELECT COUNT("jersey_num") FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm"=183 AND "name"='paul stastny' AND "weight_kg"<93;
2-15715109-31
When the Runner-up was Angaston, and the Year was less than 1927, who was the Captain?
CREATE TABLE "premierships" ( "year" real, "coach" text, "captain" text, "runner_up" text, "score" text );
SELECT "captain" FROM "premierships" WHERE "year"<1927 AND "runner_up"='angaston';
2-15462939-1
When the Score was kapunda 7-7-49 angaston 6-8-44, who was the Runner-up?
CREATE TABLE "premierships" ( "year" real, "coach" text, "captain" text, "runner_up" text, "score" text );
SELECT "runner_up" FROM "premierships" WHERE "score"='kapunda 7-7-49 angaston 6-8-44';
2-15462939-1
Which year had a Score of kapunda 14-13-97 tanunda 5-14-44?
CREATE TABLE "premierships" ( "year" real, "coach" text, "captain" text, "runner_up" text, "score" text );
SELECT SUM("year") FROM "premierships" WHERE "score"='kapunda 14-13-97 tanunda 5-14-44';
2-15462939-1
When the year is later than 1939 and the Runner-up is Tanunda, who is the Captain?
CREATE TABLE "premierships" ( "year" real, "coach" text, "captain" text, "runner_up" text, "score" text );
SELECT "captain" FROM "premierships" WHERE "runner_up"='tanunda' AND "year">1939;
2-15462939-1
What's the tournamnet name that has a 2001 of 1r and 2011?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2001"='1r' AND "2011"='a';
2-1554464-7
What is the 2001 tournament with a 2005 4r?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2001" FROM "singles_performance_timeline" WHERE "2005"='4r';
2-1554464-7
What french open tournament happened in 2010 and has a 2004 1r?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2010" FROM "singles_performance_timeline" WHERE "2004"='1r' AND "tournament"='french open';
2-1554464-7
What 2002 tournament has 2008 career statistics?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2002" FROM "singles_performance_timeline" WHERE "2008"='career statistics';
2-1554464-7
Which season has a Staffel E of Stahl Riesa?
CREATE TABLE "1971_1984" ( "season" text, "staffel_a" text, "staffel_b" text, "staffel_c" text, "staffel_d" text, "staffel_e" text );
SELECT "season" FROM "1971_1984" WHERE "staffel_e"='stahl riesa';
2-16087792-5
What is the Staffel D in the season 1983-84 with a Staffel E of Motor Suhl?
CREATE TABLE "1971_1984" ( "season" text, "staffel_a" text, "staffel_b" text, "staffel_c" text, "staffel_d" text, "staffel_e" text );
SELECT "staffel_d" FROM "1971_1984" WHERE "staffel_e"='motor suhl' AND "season"='1983-84';
2-16087792-5
What is the Staffel A that has a Staffel D of Energie Cottbus and a Staffel C of Chemie Leipzig and a Staffel B of 1. FC Union Berlin?
CREATE TABLE "1971_1984" ( "season" text, "staffel_a" text, "staffel_b" text, "staffel_c" text, "staffel_d" text, "staffel_e" text );
SELECT "staffel_a" FROM "1971_1984" WHERE "staffel_d"='energie cottbus' AND "staffel_c"='chemie leipzig' AND "staffel_b"='1. fc union berlin';
2-16087792-5
What is the Staffel B that has Hallescher Fc Chemie as Staffel C?
CREATE TABLE "1971_1984" ( "season" text, "staffel_a" text, "staffel_b" text, "staffel_c" text, "staffel_d" text, "staffel_e" text );
SELECT "staffel_b" FROM "1971_1984" WHERE "staffel_c"='hallescher fc chemie';
2-16087792-5
Which week's date was September 27, 1953?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "week" FROM "schedule" WHERE "date"='september 27, 1953';
2-15765437-1
What is the largest attendance number when the Chicago Cardinals were the opponent and the week was less than 4?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MAX("attendance") FROM "schedule" WHERE "opponent"='chicago cardinals' AND "week"<4;
2-15765437-1
When Gigi Fernández Natalia Zvereva 6–2, 6–1 won, who was the Tier II Runner-up?
CREATE TABLE "july" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );
SELECT "runner_up" FROM "july" WHERE "tier"='tier ii' AND "winner"='gigi fernández natalia zvereva 6–2, 6–1';
2-15866312-7
Who were the semi finalists when Alexia Dechaume-Balleret Sandrine testud was the runner-up?
CREATE TABLE "july" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );
SELECT "semi_finalists" FROM "july" WHERE "runner_up"='alexia dechaume-balleret sandrine testud';
2-15866312-7
What tier had a runner-up of Lisa Raymond and a semifinalist of Sandrine Testud Mary Pierce?
CREATE TABLE "july" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );
SELECT "tier" FROM "july" WHERE "semi_finalists"='sandrine testud mary pierce' AND "runner_up"='lisa raymond';
2-15866312-7
Who were the semi finalists when the runner-up was Alexandra Fusai Wiltrud Probst?
CREATE TABLE "july" ( "week_of" text, "tier" text, "winner" text, "runner_up" text, "semi_finalists" text );
SELECT "semi_finalists" FROM "july" WHERE "runner_up"='alexandra fusai wiltrud probst';
2-15866312-7
What is the Label that shows on april 7, 1967?
CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text, "catalog" text );
SELECT "label" FROM "release_history" WHERE "date"='april 7, 1967';
2-1590854-1
What is the Date when the Country shows uk, the Format is cd, and the Catalog of edcd 227?
CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "country"='uk' AND "format"='cd' AND "catalog"='edcd 227';
2-1590854-1
What is the Date for Catalog of lp 5060?
CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "catalog"='lp 5060';
2-1590854-1
What Date was the Country of japan, and a Label of sony?
CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "country"='japan' AND "label"='sony';
2-1590854-1
What is the Catalog with a Format of lp, a Country of us, a Label of sundazed, and a Date of 2006?
CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text, "catalog" text );
SELECT "catalog" FROM "release_history" WHERE "format"='lp' AND "country"='us' AND "label"='sundazed' AND "date"='2006';
2-1590854-1
What is the Label name that has a Country of uk and the Catalog is bpg 62988?
CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text, "catalog" text );
SELECT "label" FROM "release_history" WHERE "country"='uk' AND "catalog"='bpg 62988';
2-1590854-1
What were the Lyrics (l) and Music (m) for the Artist who was in a Position higher than 3 and who earned 1st Place?
CREATE TABLE "the_final" ( "position" real, "artist" text, "song" text, "lyrics_l_music_m" text, "place" text );
SELECT "lyrics_l_music_m" FROM "the_final" WHERE "position">3 AND "place"='1st';
2-15410560-7
What was the lowest Position for the Song, "If I Can't Find My Love"?
CREATE TABLE "the_final" ( "position" real, "artist" text, "song" text, "lyrics_l_music_m" text, "place" text );
SELECT MIN("position") FROM "the_final" WHERE "song"='\"if i can''t find my love\"';
2-15410560-7
What is the Rank of the Nation with 0 Silver and more than 1 Bronze?
CREATE TABLE "men" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("rank") FROM "men" WHERE "silver"<1 AND "bronze">1;
2-1613392-2
What is the Total medals for the Nation with 1 Silver and 0 Golds?
CREATE TABLE "men" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("total") FROM "men" WHERE "silver"=1 AND "gold"<0;
2-1613392-2
Which potential's period 5 is 4 and has an element of antimony?
CREATE TABLE "electrochemistry" ( "element" text, "group" real, "period" real, "reaction" text, "potential" text );
SELECT "potential" FROM "electrochemistry" WHERE "period"=5 AND "element"='antimony';
2-161291-1
Which lowest period's element is ruthenium?
CREATE TABLE "electrochemistry" ( "element" text, "group" real, "period" real, "reaction" text, "potential" text );
SELECT MIN("period") FROM "electrochemistry" WHERE "element"='ruthenium';
2-161291-1
Which highest period's element is platinum?
CREATE TABLE "electrochemistry" ( "element" text, "group" real, "period" real, "reaction" text, "potential" text );
SELECT MAX("period") FROM "electrochemistry" WHERE "element"='platinum';
2-161291-1
What is the Venue with a Result that is lost?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "venue" FROM "international_goals" WHERE "result"='lost';
2-15813318-1
What is the highest administrative panel with a cultural and educational panel of 2 plus an industrial and commercial panel larger than 4?
CREATE TABLE "composition_of_the_17th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real );
SELECT MAX("administrative_panel") FROM "composition_of_the_17th_seanad" WHERE "cultural_and_educational_panel"=2 AND "industrial_and_commercial_panel">4;
2-15545648-1
What is the total for National University of Ireland with an industrial and commercial panel less than 1, and the cultural and educational panel bigger than 0?
CREATE TABLE "composition_of_the_17th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real );
SELECT COUNT("national_university_of_ireland") FROM "composition_of_the_17th_seanad" WHERE "industrial_and_commercial_panel"<1 AND "cultural_and_educational_panel">0;
2-15545648-1
What is the administrative panel average when the cultural and educational panel is greater than 1 and the industrial and commercial panel less than 4?
CREATE TABLE "composition_of_the_17th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real );
SELECT AVG("administrative_panel") FROM "composition_of_the_17th_seanad" WHERE "cultural_and_educational_panel">1 AND "industrial_and_commercial_panel"<4;
2-15545648-1
What is the biggest administrative panel with a nominated by the Taoiseach greater than 3 and an argricultural panel of 5, plust a cultural and educational panel larger than 2?
CREATE TABLE "composition_of_the_17th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real );
SELECT MAX("administrative_panel") FROM "composition_of_the_17th_seanad" WHERE "nominated_by_the_taoiseach">3 AND "agricultural_panel"=5 AND "cultural_and_educational_panel">2;
2-15545648-1
What is the smallest cultural and educational panel with a nominated by the Taoiseach less than 5 and the total greater than 19?
CREATE TABLE "composition_of_the_17th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real );
SELECT MIN("cultural_and_educational_panel") FROM "composition_of_the_17th_seanad" WHERE "nominated_by_the_taoiseach"<5 AND "total">19;
2-15545648-1
With the cultural and educational panel less than 0 what is the average industrial and commercial panel?
CREATE TABLE "composition_of_the_17th_seanad" ( "administrative_panel" real, "agricultural_panel" real, "cultural_and_educational_panel" real, "industrial_and_commercial_panel" real, "labour_panel" real, "national_university_of_ireland" real, "university_of_dublin" real, "nominated_by_the_taoiseach" real, "total" real );
SELECT AVG("industrial_and_commercial_panel") FROM "composition_of_the_17th_seanad" WHERE "cultural_and_educational_panel"<0;
2-15545648-1
What is the total number of silver medals for nations with 5 total medals and more than 3 gold medals?
CREATE TABLE "total" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("silver") FROM "total" WHERE "total"=5 AND "gold">3;
2-1613392-1
What was the label in 1969?
CREATE TABLE "new_zealand" ( "date" real, "artist" text, "label" text, "cat_num" text, "tracks" text );
SELECT "label" FROM "new_zealand" WHERE "date"=1969;
2-1596383-2
What is the Commissioned date of the ship in NVR Page MCM02?
CREATE TABLE "ships" ( "ship" text, "hull_no" text, "commissioned" text, "builder" text, "home_port" text, "nvr_page" text );
SELECT "commissioned" FROM "ships" WHERE "nvr_page"='mcm02';
2-16185760-1
What is the NVR Page of the ship with a Home Port of Sasebo, Japan?
CREATE TABLE "ships" ( "ship" text, "hull_no" text, "commissioned" text, "builder" text, "home_port" text, "nvr_page" text );
SELECT "nvr_page" FROM "ships" WHERE "home_port"='sasebo, japan';
2-16185760-1
Which week's game was attended by 54,015 people?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT COUNT("week") FROM "schedule" WHERE "attendance"='54,015';
2-15986459-1
What date was the game that was before week 4 and was attended by over 54,015 people ?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "date" FROM "schedule" WHERE "week"<4 AND "attendance">'54,015';
2-15986459-1
In what venues was the match with a final result of Eng by 4 wkts?
CREATE TABLE "england_in_south_africa_1905_6" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text );
SELECT "venue" FROM "england_in_south_africa_1905_6" WHERE "result"='eng by 4 wkts';
2-1598207-6
What is the running time of the transmission on bbc four channels on 23 March 2008?
CREATE TABLE "transmissions" ( "date" text, "time" text, "channel" text, "running_time" text, "notes" text );
SELECT "running_time" FROM "transmissions" WHERE "channel"='bbc four' AND "date"='23 march 2008';
2-15982651-1
What is the notes of the transmission on channel bbc four and a time of 22:30?
CREATE TABLE "transmissions" ( "date" text, "time" text, "channel" text, "running_time" text, "notes" text );
SELECT "notes" FROM "transmissions" WHERE "channel"='bbc four' AND "time"='22:30';
2-15982651-1
What is the time of the transmission on 28 December 2008 with a running time of 66 min 21 sec?
CREATE TABLE "transmissions" ( "date" text, "time" text, "channel" text, "running_time" text, "notes" text );
SELECT "time" FROM "transmissions" WHERE "running_time"='66 min 21 sec' AND "date"='28 december 2008';
2-15982651-1
Which channel was on 28 December 2008?
CREATE TABLE "transmissions" ( "date" text, "time" text, "channel" text, "running_time" text, "notes" text );
SELECT "channel" FROM "transmissions" WHERE "date"='28 december 2008';
2-15982651-1
What is the channel with a 03:40 time?
CREATE TABLE "transmissions" ( "date" text, "time" text, "channel" text, "running_time" text, "notes" text );
SELECT "channel" FROM "transmissions" WHERE "time"='03:40';
2-15982651-1
What is the Other b when the FA Cup shows 3 (17)?
CREATE TABLE "top_goalscorers" ( "name" text, "years" text, "league_a" text, "fa_cup" text, "league_cup" text, "other_b" text, "total" text );
SELECT "other_b" FROM "top_goalscorers" WHERE "fa_cup"='3 (17)';
2-15702100-2
What is the Total when the league shows 79 (221)?
CREATE TABLE "top_goalscorers" ( "name" text, "years" text, "league_a" text, "fa_cup" text, "league_cup" text, "other_b" text, "total" text );
SELECT "total" FROM "top_goalscorers" WHERE "league_a"='79 (221)';
2-15702100-2
What is the Name when the League Cup shows 0 (0), and the FA Cup is 12 (14)?
CREATE TABLE "top_goalscorers" ( "name" text, "years" text, "league_a" text, "fa_cup" text, "league_cup" text, "other_b" text, "total" text );
SELECT "name" FROM "top_goalscorers" WHERE "league_cup"='0 (0)' AND "fa_cup"='12 (14)';
2-15702100-2
What is the League for 1952–1960?
CREATE TABLE "top_goalscorers" ( "name" text, "years" text, "league_a" text, "fa_cup" text, "league_cup" text, "other_b" text, "total" text );
SELECT "league_a" FROM "top_goalscorers" WHERE "years"='1952–1960';
2-15702100-2
What shows for the League when the FA Cup is 6 (20)?
CREATE TABLE "top_goalscorers" ( "name" text, "years" text, "league_a" text, "fa_cup" text, "league_cup" text, "other_b" text, "total" text );
SELECT "league_a" FROM "top_goalscorers" WHERE "fa_cup"='6 (20)';
2-15702100-2
What club wast he player hristo stoitchkov from?
CREATE TABLE "results" ( "rank" real, "player" text, "club" text, "nationality" text, "points" real );
SELECT "club" FROM "results" WHERE "player"='hristo stoitchkov';
2-15551841-1
What is the content for la sorgente sat 3?
CREATE TABLE "shopping" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text );
SELECT "content" FROM "shopping" WHERE "television_service"='la sorgente sat 3';
2-15887683-16
What language is telemarket for you?
CREATE TABLE "shopping" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text );
SELECT "language" FROM "shopping" WHERE "television_service"='telemarket for you';
2-15887683-16
What language is telemarket for you with a content of televendita?
CREATE TABLE "shopping" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv" text, "package_option" text );
SELECT "language" FROM "shopping" WHERE "content"='televendita' AND "television_service"='telemarket for you';
2-15887683-16
Which team has points less than 6 in a year after 1969?
CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real );
SELECT "team" FROM "grand_prix_motorcycle_racing_results" WHERE "points"<6 AND "year">1969;
2-15875778-2
How many wins for the team with points less than 6 and a 350cc class?
CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real );
SELECT "wins" FROM "grand_prix_motorcycle_racing_results" WHERE "points"<6 AND "class"='350cc';
2-15875778-2
What is the lowest points for 36th rank?
CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real );
SELECT MIN("points") FROM "grand_prix_motorcycle_racing_results" WHERE "rank"='36th';
2-15875778-2