question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What is the least passengers from the Dallas/Fort Worth International (DFW) airport?
CREATE TABLE "busiest_domestic_routes_from_lex_april_2" ( "rank" real, "city" text, "airport" text, "passengers" real, "carriers" text );
SELECT MIN("passengers") FROM "busiest_domestic_routes_from_lex_april_2" WHERE "airport"='dallas/fort worth international (dfw)';
2-1745478-2
What city is ranked greater than 6, and the airport is St. Petersburg/Clearwater (PIE)
CREATE TABLE "busiest_domestic_routes_from_lex_april_2" ( "rank" real, "city" text, "airport" text, "passengers" real, "carriers" text );
SELECT "city" FROM "busiest_domestic_routes_from_lex_april_2" WHERE "rank">6 AND "airport"='st. petersburg/clearwater (pie)';
2-1745478-2
What is the total rank of the airport that has 79,290 passengers?
CREATE TABLE "busiest_domestic_routes_from_lex_april_2" ( "rank" real, "city" text, "airport" text, "passengers" real, "carriers" text );
SELECT COUNT("rank") FROM "busiest_domestic_routes_from_lex_april_2" WHERE "passengers"='79,290';
2-1745478-2
Which Winner has a Country of norway, and a FIS Nordic World Ski Championships of 1924?
CREATE TABLE "men_s_nordic_combined" ( "winner" text, "country" text, "winter_olympics" text, "fis_nordic_world_ski_championships" text, "holmenkollen" text );
SELECT "winner" FROM "men_s_nordic_combined" WHERE "country"='norway' AND "fis_nordic_world_ski_championships"='1924';
2-174491-1
Which Country has a FIS Nordic World Ski Championships of 1948, 1950?
CREATE TABLE "men_s_nordic_combined" ( "winner" text, "country" text, "winter_olympics" text, "fis_nordic_world_ski_championships" text, "holmenkollen" text );
SELECT "country" FROM "men_s_nordic_combined" WHERE "fis_nordic_world_ski_championships"='1948, 1950';
2-174491-1
Which Holmenkollen has a Country of norway, and a Winner of tom sandberg?
CREATE TABLE "men_s_nordic_combined" ( "winner" text, "country" text, "winter_olympics" text, "fis_nordic_world_ski_championships" text, "holmenkollen" text );
SELECT "holmenkollen" FROM "men_s_nordic_combined" WHERE "country"='norway' AND "winner"='tom sandberg';
2-174491-1
Which FIS Nordic World Ski Championships has Winter Olympics of 1960?
CREATE TABLE "men_s_nordic_combined" ( "winner" text, "country" text, "winter_olympics" text, "fis_nordic_world_ski_championships" text, "holmenkollen" text );
SELECT "fis_nordic_world_ski_championships" FROM "men_s_nordic_combined" WHERE "winter_olympics"='1960';
2-174491-1
Which Country has a Winter Olympics of 1948?
CREATE TABLE "men_s_nordic_combined" ( "winner" text, "country" text, "winter_olympics" text, "fis_nordic_world_ski_championships" text, "holmenkollen" text );
SELECT "country" FROM "men_s_nordic_combined" WHERE "winter_olympics"='1948';
2-174491-1
Which Winner has a Winter Olympics of 1968?
CREATE TABLE "men_s_nordic_combined" ( "winner" text, "country" text, "winter_olympics" text, "fis_nordic_world_ski_championships" text, "holmenkollen" text );
SELECT "winner" FROM "men_s_nordic_combined" WHERE "winter_olympics"='1968';
2-174491-1
What was the result of the game when the attendance was 43,279?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "attendance"='43,279';
2-16778188-2
What is the average Attendance, when Date is 1 October 1998?
CREATE TABLE "uefa_cup_winners_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT AVG("attendance") FROM "uefa_cup_winners_cup" WHERE "date"='1 october 1998';
2-16924792-2
What is Opponent, when Date is 17 September 1998?
CREATE TABLE "uefa_cup_winners_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT "opponent" FROM "uefa_cup_winners_cup" WHERE "date"='17 september 1998';
2-16924792-2
What is Opponent, when Date is 8 April 1999?
CREATE TABLE "uefa_cup_winners_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT "opponent" FROM "uefa_cup_winners_cup" WHERE "date"='8 april 1999';
2-16924792-2
WHAT IS THE HIGHEST POINTS FOR LOS ANGELES?
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_points" FROM "regular_season" WHERE "opponent"='los angeles';
2-17103729-8
What was the Score F-A when the result was D?
CREATE TABLE "pre_season_friendly_match_details" ( "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text );
SELECT "score_f_a" FROM "pre_season_friendly_match_details" WHERE "result"='d';
2-17371313-1
On which date did they play Leicester City in Venue A?
CREATE TABLE "pre_season_friendly_match_details" ( "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text );
SELECT "date" FROM "pre_season_friendly_match_details" WHERE "venue"='a' AND "opponents"='leicester city';
2-17371313-1
What was the result of the game played in Venue H?
CREATE TABLE "pre_season_friendly_match_details" ( "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text );
SELECT "result" FROM "pre_season_friendly_match_details" WHERE "venue"='h';
2-17371313-1
What was the result of the game played on 17 July 2008?
CREATE TABLE "pre_season_friendly_match_details" ( "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text );
SELECT "result" FROM "pre_season_friendly_match_details" WHERE "date"='17 july 2008';
2-17371313-1
What Passenger has 16 Wins?
CREATE TABLE "season_by_season" ( "passenger" text, "points" real, "races" real, "wins" text, "second" text, "third" text );
SELECT "passenger" FROM "season_by_season" WHERE "wins"='16';
2-16761859-1
Name the Time of broadcast has a Picture format of 4:3, and Hours of 20:30, and Days of the week of monday, wednesday, friday?
CREATE TABLE "broadcasting" ( "small_season_number" real, "time_of_broadcast" text, "days_of_the_week" text, "hours" text, "length_of_episode" text, "picture_format" text );
SELECT "time_of_broadcast" FROM "broadcasting" WHERE "picture_format"='4:3' AND "hours"='20:30' AND "days_of_the_week"='monday, wednesday, friday';
2-16334929-2
Which Days of the week has a Time of broadcast in january–february, june 2002?
CREATE TABLE "broadcasting" ( "small_season_number" real, "time_of_broadcast" text, "days_of_the_week" text, "hours" text, "length_of_episode" text, "picture_format" text );
SELECT "days_of_the_week" FROM "broadcasting" WHERE "time_of_broadcast"='january–february, june 2002';
2-16334929-2
Which Outcome has a Championship of us championships, and a Score in the final of 5–7, 6–1, 6–3, 6–3?
CREATE TABLE "grand_slam" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "outcome" FROM "grand_slam" WHERE "championship"='us championships' AND "score_in_the_final"='5–7, 6–1, 6–3, 6–3';
2-17188888-1
Which Outcome has a Year larger than 1939, and an Opponent in the final of frank kovacs?
CREATE TABLE "grand_slam" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "outcome" FROM "grand_slam" WHERE "year">1939 AND "opponent_in_the_final"='frank kovacs';
2-17188888-1
Which Surface has an Opponent in the final of don mcneill, and a Year of 1940?
CREATE TABLE "grand_slam" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "surface" FROM "grand_slam" WHERE "opponent_in_the_final"='don mcneill' AND "year"=1940;
2-17188888-1
How many years have an Opponent in the final of welby van horn?
CREATE TABLE "grand_slam" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT SUM("year") FROM "grand_slam" WHERE "opponent_in_the_final"='welby van horn';
2-17188888-1
What is the score of player dick metz?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real );
SELECT "score" FROM "final_leaderboard" WHERE "player"='dick metz';
2-17290111-1
Which season had EV Bad Wörishofen in the West?
CREATE TABLE "bezirksliga" ( "season" text, "north" text, "south" text, "east" text, "west" text );
SELECT "season" FROM "bezirksliga" WHERE "west"='ev bad wörishofen';
2-16472737-7
Who was in the South in the 2004-05 season?
CREATE TABLE "bezirksliga" ( "season" text, "north" text, "south" text, "east" text, "west" text );
SELECT "south" FROM "bezirksliga" WHERE "season"='2004-05';
2-16472737-7
Who was in the South when EV Bad Wörishofen was in the West?
CREATE TABLE "bezirksliga" ( "season" text, "north" text, "south" text, "east" text, "west" text );
SELECT "south" FROM "bezirksliga" WHERE "west"='ev bad wörishofen';
2-16472737-7
Who was in the South when TSV Kottern was in the West and EHF Passau was in the East?
CREATE TABLE "bezirksliga" ( "season" text, "north" text, "south" text, "east" text, "west" text );
SELECT "south" FROM "bezirksliga" WHERE "west"='tsv kottern' AND "east"='ehf passau';
2-16472737-7
Who was in the East when TUS Geretsried II was in the South?
CREATE TABLE "bezirksliga" ( "season" text, "north" text, "south" text, "east" text, "west" text );
SELECT "east" FROM "bezirksliga" WHERE "south"='tus geretsried ii';
2-16472737-7
Who was in the West when ESV Gebensbach was in the East?
CREATE TABLE "bezirksliga" ( "season" text, "north" text, "south" text, "east" text, "west" text );
SELECT "west" FROM "bezirksliga" WHERE "east"='esv gebensbach';
2-16472737-7
What is the average Gold, when Nation is Hungary, and when Bronze is greater than 1?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("gold") FROM "medal_table" WHERE "nation"='hungary' AND "bronze">1;
2-16379981-1
What is the average Total, when Nation is Soviet Union, and when Gold is greater than 9?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("total") FROM "medal_table" WHERE "nation"='soviet union' AND "gold">9;
2-16379981-1
What is the total number of Bronze, when Silver is greater than 0, when Gold is greater than 3, and when Rank is 1?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("bronze") FROM "medal_table" WHERE "silver">0 AND "gold">3 AND "rank"='1';
2-16379981-1
What is the highest Bronze, when Total is less than 3, and when Silver is less than 0?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("bronze") FROM "medal_table" WHERE "total"<3 AND "silver"<0;
2-16379981-1
What is the average Total, when Silver is greater than 4, and when Gold is greater than 16?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("total") FROM "medal_table" WHERE "silver">4 AND "gold">16;
2-16379981-1
What is the sum of Silver, when Total is less than 1?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("silver") FROM "medal_table" WHERE "total"<1;
2-16379981-1
What is day 4 when day 2 is PAAQ?
CREATE TABLE "first_semester" ( "day_1" text, "day_2" text, "day_3" text, "day_4" text, "day_5" text, "wednesday" text );
SELECT "day_4" FROM "first_semester" WHERE "day_2"='paaq';
2-17449461-3
What is the other value associated with a Christianity value of 10.24%?
CREATE TABLE "religion" ( "ethnicity" text, "islam" text, "christianity" text, "judaism" text, "buddhism" text, "other" text, "atheism" text );
SELECT "other" FROM "religion" WHERE "christianity"='10.24%';
2-16642-1
What is the Judaism percentage associated with Buddhism at 0.01% and Other at 0.13%?
CREATE TABLE "religion" ( "ethnicity" text, "islam" text, "christianity" text, "judaism" text, "buddhism" text, "other" text, "atheism" text );
SELECT "judaism" FROM "religion" WHERE "other"='0.13%' AND "buddhism"='0.01%';
2-16642-1
What is the percentage of Atheism associated with an other percentage of 0.08%?
CREATE TABLE "religion" ( "ethnicity" text, "islam" text, "christianity" text, "judaism" text, "buddhism" text, "other" text, "atheism" text );
SELECT "atheism" FROM "religion" WHERE "other"='0.08%';
2-16642-1
What is the percentage of Buddhists associated with a Christianity percentage of 52.32%?
CREATE TABLE "religion" ( "ethnicity" text, "islam" text, "christianity" text, "judaism" text, "buddhism" text, "other" text, "atheism" text );
SELECT "buddhism" FROM "religion" WHERE "christianity"='52.32%';
2-16642-1
What is the percentage of Judaism associated with Christianity at 2.51%?
CREATE TABLE "religion" ( "ethnicity" text, "islam" text, "christianity" text, "judaism" text, "buddhism" text, "other" text, "atheism" text );
SELECT "judaism" FROM "religion" WHERE "christianity"='2.51%';
2-16642-1
What is the value of other religions associated with atheism at 1.86%?
CREATE TABLE "religion" ( "ethnicity" text, "islam" text, "christianity" text, "judaism" text, "buddhism" text, "other" text, "atheism" text );
SELECT "other" FROM "religion" WHERE "atheism"='1.86%';
2-16642-1
What is No. 2, when No. 9 is Mia?
CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_2" FROM "female_names" WHERE "no_9"='mia';
2-16304563-8
What is No. 7, when No. 4 is Madison, and when No. 10 is Amelia?
CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_7" FROM "female_names" WHERE "no_4"='madison' AND "no_10"='amelia';
2-16304563-8
What is No.1, when No. 2 is Emma, and when No. 7 is Olivia?
CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_1" FROM "female_names" WHERE "no_2"='emma' AND "no_7"='olivia';
2-16304563-8
What is No. 5, when No. 2 is Olivia, when No. 4 is Ava, and when No. 6 is Abigail?
CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_5" FROM "female_names" WHERE "no_2"='olivia' AND "no_4"='ava' AND "no_6"='abigail';
2-16304563-8
What is No. 3, when No. 7 is Abigail, and when No. 2 is Olivia?
CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_3" FROM "female_names" WHERE "no_7"='abigail' AND "no_2"='olivia';
2-16304563-8
What is No. 3, when No. 7 is Abigail, and when No. 4 is Ava?
CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_3" FROM "female_names" WHERE "no_7"='abigail' AND "no_4"='ava';
2-16304563-8
How many Laps have Grid larger than 14, and a Rider of sylvain guintoli?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT COUNT("laps") FROM "moto_gp_classification" WHERE "grid">14 AND "rider"='sylvain guintoli';
2-16882800-1
Which Grid has Laps of 24, and a Rider of marco melandri?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT SUM("grid") FROM "moto_gp_classification" WHERE "laps"=24 AND "rider"='marco melandri';
2-16882800-1
Which Grid has Laps smaller than 24, and a Time of retirement?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT MIN("grid") FROM "moto_gp_classification" WHERE "laps"<24 AND "time"='retirement';
2-16882800-1
Which Grid has a Rider of randy de puniet, and Laps smaller than 24?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );
SELECT MAX("grid") FROM "moto_gp_classification" WHERE "rider"='randy de puniet' AND "laps"<24;
2-16882800-1
What was the type of surface played on for the week of March 17?
CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner_and_score" text, "finalist" text, "semifinalists" text );
SELECT "surface" FROM "singles" WHERE "week"='march 17';
2-16381401-1
What was the tournament for the week of August 4?
CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner_and_score" text, "finalist" text, "semifinalists" text );
SELECT "tournament" FROM "singles" WHERE "week"='august 4';
2-16381401-1
Which tournament had Richard Krajicek as a finalist?
CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner_and_score" text, "finalist" text, "semifinalists" text );
SELECT "tournament" FROM "singles" WHERE "finalist"='richard krajicek';
2-16381401-1
On what date did Detroit play at home?
CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT "date" FROM "playoffs" WHERE "home"='detroit';
2-17371135-14
Who was the home team on June 9?
CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT "home" FROM "playoffs" WHERE "date"='june 9';
2-17371135-14
What was the money value that went along with the score of 68-67-69-76=280?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "money" FROM "final_round" WHERE "score"='68-67-69-76=280';
2-16458346-4
What score did Leonard Thompson have when he won $9,000?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "score" FROM "final_round" WHERE "money"='9,000' AND "player"='leonard thompson';
2-16458346-4
What date had a record of 15-14-4?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "record" text );
SELECT "date" FROM "game_log" WHERE "record"='15-14-4';
2-17599495-5
What is the fame number when the Montreal Canadiens were the opponent?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "record" text );
SELECT COUNT("game") FROM "game_log" WHERE "opponent"='montreal canadiens';
2-17599495-5
What is the Score of game 35?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "record" text );
SELECT "score" FROM "game_log" WHERE "game"=35;
2-17599495-5
What is the average oveall pick for players from the college of Miami (FL)?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "college"='miami (fl)';
2-17100961-83
Which player was drafted overall from the college of Nebraska in a round under 6, pick of 15, and overall under 224?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "name" FROM "washington_redskins_draft_history" WHERE "overall"<224 AND "round"<6 AND "pick"=15 AND "college"='nebraska';
2-17100961-83
What is the lowest overall draft pick number for terry daniels who was picked in round 10?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "round"=10 AND "name"='terry daniels';
2-17100961-52
What is the sum of the rounds where the draft pick came from the college of tennessee and had an overall pick number bigger than 153 and a pick less than 14?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "college"='tennessee' AND "overall">153 AND "pick"<14;
2-17100961-52
What position did the draft pick number play that was overall pick number 133?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "position" FROM "washington_redskins_draft_history" WHERE "overall"=133;
2-17100961-52
What is the overall pick number for the player who was picked on round 8?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "round"=8;
2-17100961-52
What college did the player who had the position of OT come from who was pick number less than 12 and a overall pick number bigger than 226?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall">226 AND "pick"<12 AND "position"='ot';
2-17100961-52
WHAT IS THE APPOINTMENT DATE WITH A PRE-SEASON POSITION, AND REPLACED BY THOMAS THOMASBERG?
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"='pre-season' AND "replaced_by"='thomas thomasberg';
2-17039232-3
WHAT IS THE APPOINTMENT DATE FOR AC HORSENS?
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"='ac horsens';
2-17039232-3
WHAT TEAM HAS 12TH TABLE POSITION AND REPLACED BY OVE PEDERSEN?
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 "position_in_table"='12th' AND "replaced_by"='ove pedersen';
2-17039232-3
What was the score when Calgary was visiting team and Niittymaki had the decision?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "regular_season" WHERE "decision"='niittymaki' AND "visitor"='calgary';
2-17511295-8
What is the score when Biron got the decision and Philadelphia was the visitor on March 1?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "regular_season" WHERE "decision"='biron' AND "visitor"='philadelphia' AND "date"='march 1';
2-17511295-8
What is the attendance when Pittsburgh is the home team?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT AVG("attendance") FROM "regular_season" WHERE "home"='pittsburgh';
2-17511295-8
What was the Attendance after Week 4 on October 10, 1971?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT AVG("attendance") FROM "schedule" WHERE "date"='october 10, 1971' AND "week">4;
2-16714083-2
What was the Attendance in the game against the New Orleans Saints?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT COUNT("attendance") FROM "schedule" WHERE "opponent"='new orleans saints';
2-16714083-2
What is the Date in Week 7 with an Attendance greater than 44,000?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "date" FROM "schedule" WHERE "attendance">'44,000' AND "week"=7;
2-16714083-2
What is the Eagle Riders character voiced by Japanese voice actor Katsuji Mori?
CREATE TABLE "characters" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text, "rank" text, "bird_uniform" text, "weapon" text, "mecha" text, "japanese_voice_actor" text, "voice_actor_botp" text, "voice_actor_g_force" text, "voice_actor_harmony_gold_ova_dub" text, "voice_actor_eagle_riders" text, "voice_actor_adv_tv_sentai_ova_dub" text );
SELECT "eagle_riders" FROM "characters" WHERE "japanese_voice_actor"='katsuji mori';
2-17480471-2
Which Voice Actor for Eagle Riders had a bird uniform of condor?
CREATE TABLE "characters" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text, "rank" text, "bird_uniform" text, "weapon" text, "mecha" text, "japanese_voice_actor" text, "voice_actor_botp" text, "voice_actor_g_force" text, "voice_actor_harmony_gold_ova_dub" text, "voice_actor_eagle_riders" text, "voice_actor_adv_tv_sentai_ova_dub" text );
SELECT "voice_actor_eagle_riders" FROM "characters" WHERE "bird_uniform"='condor';
2-17480471-2
Which weapon was used when the Battle of the Planets was Jason?
CREATE TABLE "characters" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text, "rank" text, "bird_uniform" text, "weapon" text, "mecha" text, "japanese_voice_actor" text, "voice_actor_botp" text, "voice_actor_g_force" text, "voice_actor_harmony_gold_ova_dub" text, "voice_actor_eagle_riders" text, "voice_actor_adv_tv_sentai_ova_dub" text );
SELECT "weapon" FROM "characters" WHERE "battle_of_the_planets"='jason';
2-17480471-2
Who was the voice actor (ADV TV/Sentai OVA dub) for the Gatchaman, jun?
CREATE TABLE "characters" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text, "rank" text, "bird_uniform" text, "weapon" text, "mecha" text, "japanese_voice_actor" text, "voice_actor_botp" text, "voice_actor_g_force" text, "voice_actor_harmony_gold_ova_dub" text, "voice_actor_eagle_riders" text, "voice_actor_adv_tv_sentai_ova_dub" text );
SELECT "voice_actor_adv_tv_sentai_ova_dub" FROM "characters" WHERE "gatchaman"='jun';
2-17480471-2
Which Japanese voice actor had the Mecha of airplane?
CREATE TABLE "characters" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text, "rank" text, "bird_uniform" text, "weapon" text, "mecha" text, "japanese_voice_actor" text, "voice_actor_botp" text, "voice_actor_g_force" text, "voice_actor_harmony_gold_ova_dub" text, "voice_actor_eagle_riders" text, "voice_actor_adv_tv_sentai_ova_dub" text );
SELECT "japanese_voice_actor" FROM "characters" WHERE "mecha"='airplane';
2-17480471-2
Which 1st leg has a Team 1 of drita?
CREATE TABLE "eighth_finals" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "1st_leg" FROM "eighth_finals" WHERE "team_1"='drita';
2-17065288-2
Which Team 2 has a Team 1 of vardar?
CREATE TABLE "eighth_finals" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_2" FROM "eighth_finals" WHERE "team_1"='vardar';
2-17065288-2
Which Team 1 has a 2nd leg of 1–2?
CREATE TABLE "eighth_finals" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_1" FROM "eighth_finals" WHERE "2nd_leg"='1–2';
2-17065288-2
What years was the jersey number(s) smaller than 3?
CREATE TABLE "f" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text );
SELECT "years" FROM "f" WHERE "jersey_number_s"<3;
2-16772687-7
Which position was played by the player wearing jersey number 40?
CREATE TABLE "f" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text );
SELECT "position" FROM "f" WHERE "jersey_number_s"=40;
2-16772687-7
What was the jersey number(s) when the position was SG from North Carolina?
CREATE TABLE "f" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text );
SELECT "jersey_number_s" FROM "f" WHERE "position"='sg' AND "from"='north carolina';
2-16772687-7
Which nationality does Cincinnati belong to?
CREATE TABLE "f" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text );
SELECT "nationality" FROM "f" WHERE "from"='cincinnati';
2-16772687-7
Where is jersey number 3 from?
CREATE TABLE "f" ( "player" text, "nationality" text, "jersey_number_s" real, "position" text, "years" text, "from" text );
SELECT "from" FROM "f" WHERE "jersey_number_s"=3;
2-16772687-7
What pick number was the rhp with a hometown/school of university of hawaii?
CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text );
SELECT MIN("pick") FROM "first_round_selections" WHERE "position"='rhp' AND "hometown_school"='university of hawaii';
2-16768017-1
What player was drafted number 10?
CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text );
SELECT "player" FROM "first_round_selections" WHERE "pick"=10;
2-16768017-1
What number pick was the player with the hometown school of concordia college?
CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text );
SELECT "pick" FROM "first_round_selections" WHERE "hometown_school"='concordia college';
2-16768017-1
What is the date of game 66?
CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );
SELECT "date" FROM "season_schedule" WHERE "game"=66;
2-17064508-7
What is the game on February 21?
CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );
SELECT "game" FROM "season_schedule" WHERE "date"='february 21';
2-17064508-7
What is the average number of draws that has a played entry of less than 30 and a goal difference greater than 2?
CREATE TABLE "group_i" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT AVG("draws") FROM "group_i" WHERE "goal_difference">2 AND "played"<30;
2-17416195-2