question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What pick number was from the college of maryland and was picked in a round larger than 7?
CREATE TABLE "1978_pittsburgh_steelers_draft_selection" ( "round" real, "pick_num" text, "player" text, "position" text, "college" text, "tenure_w_steelers" text );
SELECT "pick_num" FROM "1978_pittsburgh_steelers_draft_selection" WHERE "round">7 AND "college"='maryland';
2-14423274-1
How much Overall has a Pick # of 26?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT SUM("overall") FROM "atlanta_falcons_draft_history" WHERE "pick_num"=26;
2-15198842-3
Which Position has a Round smaller than 14, and a College of illinois?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "position" FROM "atlanta_falcons_draft_history" WHERE "round"<14 AND "college"='illinois';
2-15198842-3
How much Overall has a Round smaller than 6, and a Pick # of 26?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT SUM("overall") FROM "atlanta_falcons_draft_history" WHERE "round"<6 AND "pick_num"=26;
2-15198842-3
What is Roy Hall's highest round?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "name"='roy hall';
2-15198842-3
How much Overall has a Pick # larger than 2, and a Name of claude humphrey?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT COUNT("overall") FROM "atlanta_falcons_draft_history" WHERE "pick_num">2 AND "name"='claude humphrey';
2-15198842-3
What is the oppenent when the score was 5–0?
CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT "opponent" FROM "regular_season" WHERE "score"='5–0';
2-14347256-7
What is the opponent before game 57 when the score was 4–5?
CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT "opponent" FROM "regular_season" WHERE "game"<57 AND "score"='4–5';
2-14347256-7
What is the score when the points are larger than 74 and the game is 57?
CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT "score" FROM "regular_season" WHERE "points">74 AND "game"=57;
2-14347256-7
When is the latest year that an entrant has toro rosso str1 chassis and under 1 point?
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT MAX("year") FROM "complete_formula_one_results" WHERE "chassis"='toro rosso str1' AND "points"<1;
2-1393912-3
How many entrants have a mercedes fo 108w 2.4l v8 engine and over 0 points?
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT COUNT("year") FROM "complete_formula_one_results" WHERE "engine"='mercedes fo 108w 2.4l v8' AND "points">0;
2-1393912-3
What is the engine for the car with 3 points?
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT "engine" FROM "complete_formula_one_results" WHERE "points"=3;
2-1393912-3
Code of 1.6 duratec ti-vct, and a Power@rpm of ps (kw; hp)@6300 has what torque@rpm?
CREATE TABLE "duratec_ti_vct" ( "code" text, "years" text, "displacement_bore_x_stroke_type" text, "power_rpm" text, "torque_rpm" text, "compression_1" text );
SELECT "torque_rpm" FROM "duratec_ti_vct" WHERE "code"='1.6 duratec ti-vct' AND "power_rpm"='ps (kw; hp)@6300';
2-1462769-5
Code of 1.6 duratec ti-vct, and a Power@rpm of ps (kw; hp)@6000 has what torque@rpm?
CREATE TABLE "duratec_ti_vct" ( "code" text, "years" text, "displacement_bore_x_stroke_type" text, "power_rpm" text, "torque_rpm" text, "compression_1" text );
SELECT "torque_rpm" FROM "duratec_ti_vct" WHERE "code"='1.6 duratec ti-vct' AND "power_rpm"='ps (kw; hp)@6000';
2-1462769-5
torque@rpm of n·m (lb·ft)@4050 has what code?
CREATE TABLE "duratec_ti_vct" ( "code" text, "years" text, "displacement_bore_x_stroke_type" text, "power_rpm" text, "torque_rpm" text, "compression_1" text );
SELECT "code" FROM "duratec_ti_vct" WHERE "torque_rpm"='n·m (lb·ft)@4050';
2-1462769-5
Which International tourism expenditure (2012) has an International tourism expenditure (2011) of $33.3 billion?
CREATE TABLE "international_tourism_expenditure_2012" ( "rank" real, "country" text, "unwto_region" text, "international_tourism_expenditure_2012" text, "international_tourism_expenditure_2011" text );
SELECT "international_tourism_expenditure_2012" FROM "international_tourism_expenditure_2012" WHERE "international_tourism_expenditure_2011"='$33.3 billion';
2-14752049-8
What is Italy's UNWTO region?
CREATE TABLE "international_tourism_expenditure_2012" ( "rank" real, "country" text, "unwto_region" text, "international_tourism_expenditure_2012" text, "international_tourism_expenditure_2011" text );
SELECT "unwto_region" FROM "international_tourism_expenditure_2012" WHERE "country"='italy';
2-14752049-8
What is China's International tourism expenditure (2011)?
CREATE TABLE "international_tourism_expenditure_2012" ( "rank" real, "country" text, "unwto_region" text, "international_tourism_expenditure_2012" text, "international_tourism_expenditure_2011" text );
SELECT "international_tourism_expenditure_2011" FROM "international_tourism_expenditure_2012" WHERE "country"='china';
2-14752049-8
What was the format for the 4 disc season that had less than 22 episodes and n/a for region 4?
CREATE TABLE "dvd_and_blu_ray_releases" ( "dvd_season" text, "format" text, "num_episodes" real, "num_disc_s" real, "region_4" text );
SELECT "format" FROM "dvd_and_blu_ray_releases" WHERE "num_episodes"<22 AND "num_disc_s"=4 AND "region_4"='n/a';
2-15358729-3
What is the lowest Top-25 for the open championship, with a Top-10 larger than 3?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT MIN("top_25") FROM "summary" WHERE "tournament"='the open championship' AND "top_10">3;
2-1579748-6
What is the highest Top-5 when the Tournament is the open championship, with a Top-25 less than 9?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT MAX("top_5") FROM "summary" WHERE "tournament"='the open championship' AND "top_25"<9;
2-1579748-6
What is the average Top-25 that has a Top-10 less than 7, and the Tournament is the open championship, with a Top-5more than 1?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT AVG("top_25") FROM "summary" WHERE "top_10"<7 AND "tournament"='the open championship' AND "top_5">1;
2-1579748-6
What is the total number of Top-5 when the Top-25 is 6, and a Cuts made are less than 12?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT COUNT("top_5") FROM "summary" WHERE "top_25"=6 AND "cuts_made"<12;
2-1579748-6
Which date had a home team of the Wizards?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "date" FROM "february" WHERE "home"='wizards';
2-16140345-7
What was the latest week with a date of November 12, 1967 and less than 34,761 in attendance?
CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MAX("week") FROM "season_schedule" WHERE "date"='november 12, 1967' AND "attendance"<'34,761';
2-15412764-1
What is the date for the game with an opponent of the Houston Oilers from before week 3?
CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "date" FROM "season_schedule" WHERE "week"<3 AND "opponent"='houston oilers';
2-15412764-1
What is the total for New York's game?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT SUM("game") FROM "game_log" WHERE "team"='new york';
2-15869204-5
What round was a player from Indiana picked?
CREATE TABLE "nfl_draft" ( "round" real, "pick_num" text, "player" text, "position" text, "college" text );
SELECT "round" FROM "nfl_draft" WHERE "college"='indiana';
2-15597028-1
How many losses had a total of 17 and more than 10 wins?
CREATE TABLE "overall_results_in_the_ipl" ( "year" text, "total" real, "wins" real, "losses" real, "no_result" real, "pct_win" text );
SELECT COUNT("losses") FROM "overall_results_in_the_ipl" WHERE "total"=17 AND "wins">10;
2-15868164-6
What is the win percentage when there's more than 16 totals and less than 7 losses?
CREATE TABLE "overall_results_in_the_ipl" ( "year" text, "total" real, "wins" real, "losses" real, "no_result" real, "pct_win" text );
SELECT "pct_win" FROM "overall_results_in_the_ipl" WHERE "total">16 AND "losses"<7;
2-15868164-6
What is the smallest no result when the year was 2012 and there were more than 10 wins?
CREATE TABLE "overall_results_in_the_ipl" ( "year" text, "total" real, "wins" real, "losses" real, "no_result" real, "pct_win" text );
SELECT MIN("no_result") FROM "overall_results_in_the_ipl" WHERE "year"='2012' AND "wins">10;
2-15868164-6
What is the name on the Socialist ticket when the Democratic ticket is george k. shuler?
CREATE TABLE "1924_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "workers_ticket" text );
SELECT "socialist_ticket" FROM "1924_state_election_results" WHERE "democratic_ticket"='george k. shuler';
2-15563539-1
What is the name on the Democratic ticket when the Workers ticket is franklin p. brill?
CREATE TABLE "1924_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "workers_ticket" text );
SELECT "democratic_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='franklin p. brill';
2-15563539-1
What is the name on the Democratic ticket when the Workers ticket is james p. cannon?
CREATE TABLE "1924_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "workers_ticket" text );
SELECT "democratic_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='james p. cannon';
2-15563539-1
What is the Office when the Republican ticket shows seymour lowman?
CREATE TABLE "1924_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "workers_ticket" text );
SELECT "office" FROM "1924_state_election_results" WHERE "republican_ticket"='seymour lowman';
2-15563539-1
What is the name on the Republican ticket when the Socialist ticket was louis waldman?
CREATE TABLE "1924_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "workers_ticket" text );
SELECT "republican_ticket" FROM "1924_state_election_results" WHERE "socialist_ticket"='louis waldman';
2-15563539-1
What is the name on the Republican ticket when the Workers ticket is edward lindgren?
CREATE TABLE "1924_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "workers_ticket" text );
SELECT "republican_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='edward lindgren';
2-15563539-1
Who's the Democratic ticket with a Socialist Labor ticket of belle j. rosen?
CREATE TABLE "1930_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "law_preservation_ticket" text, "socialist_ticket" text, "socialist_labor_ticket" text );
SELECT "democratic_ticket" FROM "1930_state_election_results" WHERE "socialist_labor_ticket"='belle j. rosen';
2-15563525-1
Who's the Socialist Labor ticket with a Republican ticket of cuthbert w. pound?
CREATE TABLE "1930_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "law_preservation_ticket" text, "socialist_ticket" text, "socialist_labor_ticket" text );
SELECT "socialist_labor_ticket" FROM "1930_state_election_results" WHERE "republican_ticket"='cuthbert w. pound';
2-15563525-1
Which Office has a Republican ticket of daniel h. conway?
CREATE TABLE "1930_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "law_preservation_ticket" text, "socialist_ticket" text, "socialist_labor_ticket" text );
SELECT "office" FROM "1930_state_election_results" WHERE "republican_ticket"='daniel h. conway';
2-15563525-1
Who's the Socialist ticket with a Law Preservation ticket of (none), and a Socialist Labor ticket of belle j. rosen?
CREATE TABLE "1930_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "law_preservation_ticket" text, "socialist_ticket" text, "socialist_labor_ticket" text );
SELECT "socialist_ticket" FROM "1930_state_election_results" WHERE "law_preservation_ticket"='(none)' AND "socialist_labor_ticket"='belle j. rosen';
2-15563525-1
Which Office has a Democratic ticket of herbert h. lehman?
CREATE TABLE "1930_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "law_preservation_ticket" text, "socialist_ticket" text, "socialist_labor_ticket" text );
SELECT "office" FROM "1930_state_election_results" WHERE "democratic_ticket"='herbert h. lehman';
2-15563525-1
Who's the Socialist ticket with a Socialist Labor ticket of charles m. carlson?
CREATE TABLE "1930_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "law_preservation_ticket" text, "socialist_ticket" text, "socialist_labor_ticket" text );
SELECT "socialist_ticket" FROM "1930_state_election_results" WHERE "socialist_labor_ticket"='charles m. carlson';
2-15563525-1
Which bowl game has a season greater than 2008, with new orleans, Louisiana as the location?
CREATE TABLE "summary_table" ( "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text );
SELECT "bowl_game" FROM "summary_table" WHERE "season">2008 AND "location"='new orleans, louisiana';
2-15647838-3
What result has 1947 sun bowl as the bowl game?
CREATE TABLE "summary_table" ( "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text );
SELECT "result" FROM "summary_table" WHERE "bowl_game"='1947 sun bowl';
2-15647838-3
What result has texas longhorns as the opponent?
CREATE TABLE "summary_table" ( "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text );
SELECT "result" FROM "summary_table" WHERE "opponent"='texas longhorns';
2-15647838-3
What location has 51,212 as the attendance?
CREATE TABLE "summary_table" ( "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text );
SELECT "location" FROM "summary_table" WHERE "attendance"='51,212';
2-15647838-3
Who was the 3rd place team in the season in which Real Madrid finished 2nd?
CREATE TABLE "by_season" ( "season" text, "1st_place" text, "2nd_place" text, "3rd_place" text, "4th_place" text );
SELECT "3rd_place" FROM "by_season" WHERE "2nd_place"='real madrid';
2-16095132-6
Which season had a 3rd place of CSKA Moscow and 1st place of Panathinaikos?
CREATE TABLE "by_season" ( "season" text, "1st_place" text, "2nd_place" text, "3rd_place" text, "4th_place" text );
SELECT "season" FROM "by_season" WHERE "3rd_place"='cska moscow' AND "1st_place"='panathinaikos';
2-16095132-6
Who preforms at 2:00PM on Monday?
CREATE TABLE "afternoon" ( "time" text, "12_00_pm" text, "01_00_pm" text, "02_00_pm" text, "03_00_pm" text, "04_00_pm" text, "05_00_pm" text, "05_55_pm" text );
SELECT "02_00_pm" FROM "afternoon" WHERE "time"='monday';
2-15535243-3
Who preforms at 3:00PM on Tuesday?
CREATE TABLE "afternoon" ( "time" text, "12_00_pm" text, "01_00_pm" text, "02_00_pm" text, "03_00_pm" text, "04_00_pm" text, "05_00_pm" text, "05_55_pm" text );
SELECT "03_00_pm" FROM "afternoon" WHERE "time"='tuesday';
2-15535243-3
Who preforms at 5:55PM on Monday?
CREATE TABLE "afternoon" ( "time" text, "12_00_pm" text, "01_00_pm" text, "02_00_pm" text, "03_00_pm" text, "04_00_pm" text, "05_00_pm" text, "05_55_pm" text );
SELECT "05_55_pm" FROM "afternoon" WHERE "time"='monday';
2-15535243-3
Which Pictorials is on 5-01?
CREATE TABLE "2001" ( "date" text, "cover_model" text, "centerfold_model" text, "20_questions" text, "pictorials" text );
SELECT "pictorials" FROM "2001" WHERE "date"='5-01';
2-1566852-2
Which Cover model has a Pictorials of brande roderick-pmoy, naked news?
CREATE TABLE "2001" ( "date" text, "cover_model" text, "centerfold_model" text, "20_questions" text, "pictorials" text );
SELECT "cover_model" FROM "2001" WHERE "pictorials"='brande roderick-pmoy, naked news';
2-1566852-2
which Cover model has a Centerfold model of jennifer walcott?
CREATE TABLE "2001" ( "date" text, "cover_model" text, "centerfold_model" text, "20_questions" text, "pictorials" text );
SELECT "cover_model" FROM "2001" WHERE "centerfold_model"='jennifer walcott';
2-1566852-2
Which over model has a 20 Questions of edward burns?
CREATE TABLE "2001" ( "date" text, "cover_model" text, "centerfold_model" text, "20_questions" text, "pictorials" text );
SELECT "cover_model" FROM "2001" WHERE "20_questions"='edward burns';
2-1566852-2
Which Centerfold model has a Cover model of irina voronina?
CREATE TABLE "2001" ( "date" text, "cover_model" text, "centerfold_model" text, "20_questions" text, "pictorials" text );
SELECT "centerfold_model" FROM "2001" WHERE "cover_model"='irina voronina';
2-1566852-2
Which Centerfold model has a Date of 3-01?
CREATE TABLE "2001" ( "date" text, "cover_model" text, "centerfold_model" text, "20_questions" text, "pictorials" text );
SELECT "centerfold_model" FROM "2001" WHERE "date"='3-01';
2-1566852-2
What is the score on 15 Aug with a 17:30 time?
CREATE TABLE "pool_f" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text );
SELECT "score" FROM "pool_f" WHERE "date"='15 aug' AND "time"='17:30';
2-15945725-13
What is the total number of round values that had opponents named Paul Sutherland?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "opponent"='paul sutherland';
2-16178114-2
Which opponent led to a record of 10-6?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='10-6';
2-16178114-2
Which method led to a record of 9-4?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='9-4';
2-16178114-2
What song had an index of m6?
CREATE TABLE "episode_8_2_march_2008" ( "index" text, "name" text, "song" text, "group_song" text, "score" text );
SELECT "song" FROM "episode_8_2_march_2008" WHERE "index"='m6';
2-15905451-5
For which song was the score 6.5 + 6.0 + 6.0 + 5.5 = 24.0?
CREATE TABLE "episode_8_2_march_2008" ( "index" text, "name" text, "song" text, "group_song" text, "score" text );
SELECT "song" FROM "episode_8_2_march_2008" WHERE "score"='6.5 + 6.0 + 6.0 + 5.5 = 24.0';
2-15905451-5
When the played number is less than 8 and against is 23, what is the least amount of points?
CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "against" real, "difference" text );
SELECT MIN("points") FROM "torneio_rio_s_o_paulo" WHERE "against"=23 AND "played"<8;
2-15349635-1
When the corinthians have a position of less than 5, what is the average against?
CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "against" real, "difference" text );
SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "position"<5 AND "team"='corinthians';
2-15349635-1
What position has less than 6 Points?
CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "against" real, "difference" text );
SELECT COUNT("position") FROM "torneio_rio_s_o_paulo" WHERE "points"<6;
2-15349635-1
What is the number of against when the difference is 10 and played is greater than 8?
CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "against" real, "difference" text );
SELECT COUNT("against") FROM "torneio_rio_s_o_paulo" WHERE "difference"='10' AND "played">8;
2-15349635-1
What was the stake president when the organized date is April 18, 1965?
CREATE TABLE "other_stakes_with_congregations_in_arkan" ( "stake" text, "organized" text, "number_of_wards_branches_in_arkansas" real, "stake_president" text, "occupation" text );
SELECT "stake_president" FROM "other_stakes_with_congregations_in_arkan" WHERE "organized"='april 18, 1965';
2-15978776-3
What is the organized section when the stake president was henry john platt?
CREATE TABLE "other_stakes_with_congregations_in_arkan" ( "stake" text, "organized" text, "number_of_wards_branches_in_arkansas" real, "stake_president" text, "occupation" text );
SELECT "organized" FROM "other_stakes_with_congregations_in_arkan" WHERE "stake_president"='henry john platt';
2-15978776-3
What is the name of the award given for the category Mercury Prize?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text );
SELECT "award" FROM "awards_and_nominations" WHERE "category"='mercury prize';
2-15841543-1
How many years has the Mercury Prize award been given?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text );
SELECT COUNT("year") FROM "awards_and_nominations" WHERE "award"='mercury prize';
2-15841543-1
For how many years has the Mercury Prize been awarded?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text );
SELECT COUNT("year") FROM "awards_and_nominations" WHERE "award"='mercury prize';
2-15841543-1
In what year, prior to 2009, was the Mercury Prize awarded?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text, "result" text );
SELECT "result" FROM "awards_and_nominations" WHERE "year"<2009 AND "award"='mercury prize';
2-15841543-1
What is the lowest Points when against is 50, and there are less than 20 played?
CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT MIN("points") FROM "campeonato_paulista" WHERE "against"=50 AND "played"<20;
2-15331540-1
What is the average Position with less than 57 against and the team is Juventus?
CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT AVG("position") FROM "campeonato_paulista" WHERE "against"<57 AND "team"='juventus';
2-15331540-1
What is the highest Position when the against is less than 41, and lost is more than 7?
CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT MAX("position") FROM "campeonato_paulista" WHERE "against"<41 AND "lost">7;
2-15331540-1
What is the average Lost when there are 57 against?
CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT AVG("lost") FROM "campeonato_paulista" WHERE "against"=57;
2-15331540-1
What is the lowest Lost for são paulo railway, Points more than 21?
CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT MIN("lost") FROM "campeonato_paulista" WHERE "team"='são paulo railway' AND "points">21;
2-15331540-1
What unit is in Mongolia?
CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "unit" text, "location" text, "notes" text );
SELECT "unit" FROM "newly_named_birds" WHERE "location"='mongolia';
2-15313481-12
What unit is in Argentina?
CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "unit" text, "location" text, "notes" text );
SELECT "unit" FROM "newly_named_birds" WHERE "location"='argentina';
2-15313481-12
What name is located in China?
CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "unit" text, "location" text, "notes" text );
SELECT "name" FROM "newly_named_birds" WHERE "location"='china';
2-15313481-12
What unit is located in China and has Zhou Zhang as an author?
CREATE TABLE "newly_named_birds" ( "name" text, "status" text, "authors" text, "unit" text, "location" text, "notes" text );
SELECT "unit" FROM "newly_named_birds" WHERE "location"='china' AND "authors"='zhou zhang';
2-15313481-12
What kind of Manufacturer has a Laps smaller than 20 and a Grid of 21
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT "manufacturer" FROM "250cc_classification" WHERE "laps"<20 AND "grid"=21;
2-16175675-2
Which Airline has a Fleet size larger than 17, and a IATA of pr?
CREATE TABLE "commercial_airlines" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" real, "fleet_size" real, "headquarters" text );
SELECT "airline" FROM "commercial_airlines" WHERE "fleet_size">17 AND "iata"='pr';
2-15637071-1
Which ICAO has a Fleet size of 2?
CREATE TABLE "commercial_airlines" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" real, "fleet_size" real, "headquarters" text );
SELECT "icao" FROM "commercial_airlines" WHERE "fleet_size"=2;
2-15637071-1
What is the of Fleet size with a IATA of pr, and a Commenced operations smaller than 1941?
CREATE TABLE "commercial_airlines" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" real, "fleet_size" real, "headquarters" text );
SELECT SUM("fleet_size") FROM "commercial_airlines" WHERE "iata"='pr' AND "commenced_operations"<1941;
2-15637071-1
Which ICAO has a Commenced operations larger than 2011?
CREATE TABLE "commercial_airlines" ( "airline" text, "icao" text, "iata" text, "callsign" text, "commenced_operations" real, "fleet_size" real, "headquarters" text );
SELECT "icao" FROM "commercial_airlines" WHERE "commenced_operations">2011;
2-15637071-1
What is the Status with an Author that is woodruff?
CREATE TABLE "insects" ( "name" text, "novelty" text, "status" text, "authors" text, "location" text );
SELECT "status" FROM "insects" WHERE "authors"='woodruff';
2-15688561-4
What is the highest Pick # when the CFL Team is the Toronto Argonauts?
CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );
SELECT MAX("pick_num") FROM "round_six" WHERE "cfl_team"='toronto argonauts';
2-15817998-6
What is the CFL Team with #48 as the pick number?
CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );
SELECT "cfl_team" FROM "round_six" WHERE "pick_num"=48;
2-15817998-6
What is the College with a Position of db, and the CFL Team was Winnipeg Blue Bombers?
CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );
SELECT "college" FROM "round_six" WHERE "position"='db' AND "cfl_team"='winnipeg blue bombers';
2-15817998-6
What is the CFL Team with Will Grant?
CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );
SELECT "cfl_team" FROM "round_six" WHERE "player"='will grant';
2-15817998-6
What is the latest year of a gratitude type mission with 99 in the entourage?
CREATE TABLE "ry_ky_an_missions_to_edo" ( "year" real, "mission_type" text, "shogun" text, "ry_ky_an_king" text, "lead_envoy" text, "number_in_entourage" text );
SELECT MAX("year") FROM "ry_ky_an_missions_to_edo" WHERE "number_in_entourage"='99' AND "mission_type"='gratitude';
2-15718413-1
Who was the lead envoy of the mission with the Ryūkyūan King shō eki?
CREATE TABLE "ry_ky_an_missions_to_edo" ( "year" real, "mission_type" text, "shogun" text, "ry_ky_an_king" text, "lead_envoy" text, "number_in_entourage" text );
SELECT "lead_envoy" FROM "ry_ky_an_missions_to_edo" WHERE "ry_ky_an_king"='shō eki';
2-15718413-1
Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei?
CREATE TABLE "ry_ky_an_missions_to_edo" ( "year" real, "mission_type" text, "shogun" text, "ry_ky_an_king" text, "lead_envoy" text, "number_in_entourage" text );
SELECT "lead_envoy" FROM "ry_ky_an_missions_to_edo" WHERE "ry_ky_an_king"='shō kei' AND "mission_type"='congratulation' AND "year"=1718;
2-15718413-1
Who was the lead envoy with the Ryūkyūan King shō kō?
CREATE TABLE "ry_ky_an_missions_to_edo" ( "year" real, "mission_type" text, "shogun" text, "ry_ky_an_king" text, "lead_envoy" text, "number_in_entourage" text );
SELECT "lead_envoy" FROM "ry_ky_an_missions_to_edo" WHERE "ry_ky_an_king"='shō kō';
2-15718413-1
On 10/20/1979*, who was the Opponent?
CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real );
SELECT "opponent" FROM "schedule" WHERE "date"='10/20/1979*';
2-15524351-19
What is the average Attendance at a game with a Result of w 30-23?
CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real );
SELECT AVG("attendance") FROM "schedule" WHERE "result"='w 30-23';
2-15524351-19
What is the lowest Attendance at a game with the Result of w 25-17?
CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" real );
SELECT MIN("attendance") FROM "schedule" WHERE "result"='w 25-17';
2-15524351-19