question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What date has a Home team score of 11.18 (84)?
CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_16" WHERE "home_team_score"='11.18 (84)';
2-10807253-16
What home team score has a Away team of melbourne?
CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_16" WHERE "away_team"='melbourne';
2-10807253-16
What away team is the home team richmond?
CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_16" WHERE "home_team"='richmond';
2-10807253-16
When Giancarlo Fisichella was the Driver and there were less than 52 Laps, what was the highest Grid?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MAX("grid") FROM "classification" WHERE "driver"='giancarlo fisichella' AND "laps"<52;
2-1123541-1
Which Constructor has a Grid less than 17, Laps under 52, and Olivier Panis as the Driver?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "classification" WHERE "grid"<17 AND "laps"<52 AND "driver"='olivier panis';
2-1123541-1
Which 2006 cfl draft pick played college ball at Idaho state?
CREATE TABLE "round_six" ( "pick_num" text, "cfl_team" text, "player" text, "position" text, "college" text );
SELECT "pick_num" FROM "round_six" WHERE "college"='idaho state';
2-10812403-6
What position did the CFL player drafted out of college of toronto in 2007 play?
CREATE TABLE "round_six" ( "pick_num" text, "cfl_team" text, "player" text, "position" text, "college" text );
SELECT "position" FROM "round_six" WHERE "college"='toronto';
2-10812403-6
What was the Date of Death of the person whose Date of Birth was 28 May 1371?
CREATE TABLE "house_of_valois_burgundy_1405_1482" ( "name" text, "date_of_birth" text, "date_of_death" text, "reign" text, "relationship_with_predecessor" text );
SELECT "date_of_death" FROM "house_of_valois_burgundy_1405_1482" WHERE "date_of_birth"='28 may 1371';
2-1178691-9
What was the Reign of the person whose Date of Birth was 22 March 1459?
CREATE TABLE "house_of_valois_burgundy_1405_1482" ( "name" text, "date_of_birth" text, "date_of_death" text, "reign" text, "relationship_with_predecessor" text );
SELECT "reign" FROM "house_of_valois_burgundy_1405_1482" WHERE "date_of_birth"='22 march 1459';
2-1178691-9
Tell me the average year with a record of 33-33
CREATE TABLE "year_by_year_record" ( "year" real, "record" text, "finish" text, "manager" text, "playoffs" text );
SELECT AVG("year") FROM "year_by_year_record" WHERE "record"='33-33';
2-1196050-1
Name the total number of years for a 39-31 record
CREATE TABLE "year_by_year_record" ( "year" real, "record" text, "finish" text, "manager" text, "playoffs" text );
SELECT COUNT("year") FROM "year_by_year_record" WHERE "record"='39-31';
2-1196050-1
Name the least year for gene hassell manager and 6th finish
CREATE TABLE "year_by_year_record" ( "year" real, "record" text, "finish" text, "manager" text, "playoffs" text );
SELECT MIN("year") FROM "year_by_year_record" WHERE "manager"='gene hassell' AND "finish"='6th';
2-1196050-1
Name the finish for a 39-31 record
CREATE TABLE "year_by_year_record" ( "year" real, "record" text, "finish" text, "manager" text, "playoffs" text );
SELECT "finish" FROM "year_by_year_record" WHERE "record"='39-31';
2-1196050-1
What is the lowest goal difference for the club ud alzira, with a played larger than 38?
CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MIN("goal_difference") FROM "final_table" WHERE "club"='ud alzira' AND "played">38;
2-12107896-2
What is the goal difference sum that has goals against smaller than 33, draws larger than 13?
CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT SUM("goal_difference") FROM "final_table" WHERE "goals_against"<33 AND "draws">13;
2-12107896-2
Name the transfer fee for damia
CREATE TABLE "out" ( "name" text, "country" text, "status" text, "moving_to" text, "transfer_window" text, "transfer_fee" text );
SELECT "transfer_fee" FROM "out" WHERE "name"='damia';
2-11873099-3
Name the moving to with a transfer fee of free with a transfer status for rodri
CREATE TABLE "out" ( "name" text, "country" text, "status" text, "moving_to" text, "transfer_window" text, "transfer_fee" text );
SELECT "moving_to" FROM "out" WHERE "transfer_fee"='free' AND "status"='transfer' AND "name"='rodri';
2-11873099-3
When was the game played at the Western Oval venue?
CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_3" WHERE "venue"='western oval';
2-10826072-3
What is the home team score for the team that played an away game at North Melbourne?
CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_3" WHERE "away_team"='north melbourne';
2-10826072-3
What is the livery of the locomotive with a serial number 83-1010?
CREATE TABLE "locomotives" ( "locomotive" text, "serial_no" text, "entered_service" text, "gauge" text, "livery" text );
SELECT "livery" FROM "locomotives" WHERE "serial_no"='83-1010';
2-11373937-1
What is the livery on the locomotive with a serial number 83-1011?
CREATE TABLE "locomotives" ( "locomotive" text, "serial_no" text, "entered_service" text, "gauge" text, "livery" text );
SELECT "livery" FROM "locomotives" WHERE "serial_no"='83-1011';
2-11373937-1
What is the locomotive with a standard gauge and a serial number of 83-1015?
CREATE TABLE "locomotives" ( "locomotive" text, "serial_no" text, "entered_service" text, "gauge" text, "livery" text );
SELECT "locomotive" FROM "locomotives" WHERE "gauge"='standard' AND "serial_no"='83-1015';
2-11373937-1
What is the date of entered service for the locomotive with a broad gauge and a serial no of 83-1018?
CREATE TABLE "locomotives" ( "locomotive" text, "serial_no" text, "entered_service" text, "gauge" text, "livery" text );
SELECT "entered_service" FROM "locomotives" WHERE "gauge"='broad' AND "serial_no"='83-1018';
2-11373937-1
What was the venue on October 16, 1996?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "venue" FROM "international_goals" WHERE "date"='october 16, 1996';
2-1154919-1
What's the score at the October 30, 1996 1998 fifa world cup qualification with a result of win?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "score" FROM "international_goals" WHERE "result"='win' AND "competition"='1998 fifa world cup qualification' AND "date"='october 30, 1996';
2-1154919-1
When was the friendship cup?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "date" FROM "international_goals" WHERE "competition"='friendship cup';
2-1154919-1
What is the smallest number for Cars per Set built in 1977-1979 larger than 32?
CREATE TABLE "class_253_and_254" ( "class" text, "operator" text, "number" real, "year_built" text, "cars_per_set" real, "unit_numbers" text );
SELECT MIN("cars_per_set") FROM "class_253_and_254" WHERE "year_built"='1977-1979' AND "number">32;
2-1131463-1
What unit has cars per set larger than 9 built in 1982?
CREATE TABLE "class_253_and_254" ( "class" text, "operator" text, "number" real, "year_built" text, "cars_per_set" real, "unit_numbers" text );
SELECT "unit_numbers" FROM "class_253_and_254" WHERE "cars_per_set">9 AND "year_built"='1982';
2-1131463-1
What is the largest number of cars per set that is less than 9?
CREATE TABLE "class_253_and_254" ( "class" text, "operator" text, "number" real, "year_built" text, "cars_per_set" real, "unit_numbers" text );
SELECT MAX("number") FROM "class_253_and_254" WHERE "cars_per_set"<9;
2-1131463-1
What year was the class 253 larger than 18 built?
CREATE TABLE "class_253_and_254" ( "class" text, "operator" text, "number" real, "year_built" text, "cars_per_set" real, "unit_numbers" text );
SELECT "year_built" FROM "class_253_and_254" WHERE "class"='class 253' AND "number">18;
2-1131463-1
What is the margin for the Masters Tournament (2) championship?
CREATE TABLE "wins_14" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text );
SELECT "margin" FROM "wins_14" WHERE "championship"='masters tournament (2)';
2-11570261-1
How many years had 54 holes and a 2 shot lead?
CREATE TABLE "wins_14" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text );
SELECT COUNT("year") FROM "wins_14" WHERE "54_holes"='2 shot lead';
2-11570261-1
What is the round of 54 holes in which Phil Mickelson was the runner-up?
CREATE TABLE "wins_14" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text );
SELECT "54_holes" FROM "wins_14" WHERE "runner_s_up"='phil mickelson';
2-11570261-1
What is the championship when the margin was 2 strokes, there were 54 holes with a 1 shot lead, and the runner-up was David Duval?
CREATE TABLE "wins_14" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text );
SELECT "championship" FROM "wins_14" WHERE "margin"='2 strokes' AND "54_holes"='1 shot lead' AND "runner_s_up"='david duval';
2-11570261-1
What is the home team of the April 14 game?
CREATE TABLE "quarter_finals_1_vs_nashville_predators_" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT "home" FROM "quarter_finals_1_vs_nashville_predators_" WHERE "date"='april 14';
2-11756731-10
What is the date of the game with Detroit as the visitor team?
CREATE TABLE "quarter_finals_1_vs_nashville_predators_" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT "date" FROM "quarter_finals_1_vs_nashville_predators_" WHERE "visitor"='detroit';
2-11756731-10
How many vieweres for the episode with a share of 1, a Rating larger than 0.7000000000000001, and a Rank (#) of 100/102?
CREATE TABLE "u_s_nielsen_ratings" ( "episode" text, "airdate" text, "rating" real, "share" real, "18_49_rating_share" text, "viewers_m" real, "rank_num" text );
SELECT "viewers_m" FROM "u_s_nielsen_ratings" WHERE "share"=1 AND "rating">0.7000000000000001 AND "rank_num"='100/102';
2-11303927-2
Name the lead tpt for bass of kevin tomanka and alto 1 of alan moffett
CREATE TABLE "history_of_ggb_members" ( "alto_1" text, "alto_2" text, "tenor" text, "lead_tpt" text, "tpt_2" text, "tpt_3" text, "mello" text, "lead_bone" text, "bass_bone" text, "bass" text, "drums" text );
SELECT "lead_tpt" FROM "history_of_ggb_members" WHERE "bass"='kevin tomanka' AND "alto_1"='alan moffett';
2-12057147-2
What was the crowd size at the moorabbin oval venue?
CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT COUNT("crowd") FROM "round_13" WHERE "venue"='moorabbin oval';
2-10826385-13
What was the home team score in the game where the away team scored 11.8 (74)?
CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_13" WHERE "away_team_score"='11.8 (74)';
2-10826385-13
What did the home team score against the away team collingwood?
CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_13" WHERE "away_team"='collingwood';
2-10826385-13
what is the 1-letter for the amino acid asparagine?
CREATE TABLE "table_of_standard_amino_acid_abbreviatio" ( "amino_acid" text, "3_letter" text, "1_letter" text, "side_chain_polarity" text, "side_chain_charge_p_h_7_4" text, "hydropathy_index" text );
SELECT "1_letter" FROM "table_of_standard_amino_acid_abbreviatio" WHERE "amino_acid"='asparagine';
2-1207-4
what is the side-chain polarity for the amino acid with the 1-letter v?
CREATE TABLE "table_of_standard_amino_acid_abbreviatio" ( "amino_acid" text, "3_letter" text, "1_letter" text, "side_chain_polarity" text, "side_chain_charge_p_h_7_4" text, "hydropathy_index" text );
SELECT "side_chain_polarity" FROM "table_of_standard_amino_acid_abbreviatio" WHERE "1_letter"='v';
2-1207-4
What is the side-chain charge (ph 7.4) for the amino acid with the 1-letter p?
CREATE TABLE "table_of_standard_amino_acid_abbreviatio" ( "amino_acid" text, "3_letter" text, "1_letter" text, "side_chain_polarity" text, "side_chain_charge_p_h_7_4" text, "hydropathy_index" text );
SELECT "side_chain_charge_p_h_7_4" FROM "table_of_standard_amino_acid_abbreviatio" WHERE "1_letter"='p';
2-1207-4
What was home team North Melbourne's opponents score?
CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_9" WHERE "home_team"='north melbourne';
2-10784349-9
What was Melbourne's score as the home team?
CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_9" WHERE "home_team"='melbourne';
2-10784349-9
Who was the away team at Junction Oval?
CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_9" WHERE "venue"='junction oval';
2-10784349-9
What is the USCA that's Total is smaller than 14, with 1 Joint Music Award, MRHMA of 2, and RTHK of 3?
CREATE TABLE "major_awards" ( "year" real, "mrhma" text, "usca" text, "rthk" text, "joint_music_award" text, "total" real );
SELECT "usca" FROM "major_awards" WHERE "total"<14 AND "joint_music_award"='1' AND "mrhma"='2' AND "rthk"='3';
2-1166530-1
What is the Total with a Joint Music Award of 1, RTHK of 4, and USCA of 4?
CREATE TABLE "major_awards" ( "year" real, "mrhma" text, "usca" text, "rthk" text, "joint_music_award" text, "total" real );
SELECT "total" FROM "major_awards" WHERE "joint_music_award"='1' AND "rthk"='4' AND "usca"='4';
2-1166530-1
How many Joint Music Awards were there with a RTHK of 1, in a Year before 2006?
CREATE TABLE "major_awards" ( "year" real, "mrhma" text, "usca" text, "rthk" text, "joint_music_award" text, "total" real );
SELECT "joint_music_award" FROM "major_awards" WHERE "year"<2006 AND "rthk"='1';
2-1166530-1
How many Joint Music Awards are there when the Total is larger than 18, in a Year after 2007?
CREATE TABLE "major_awards" ( "year" real, "mrhma" text, "usca" text, "rthk" text, "joint_music_award" text, "total" real );
SELECT "joint_music_award" FROM "major_awards" WHERE "total">18 AND "year">2007;
2-1166530-1
Which lane did the athlete swim in who had a semi-final time of 49.19?
CREATE TABLE "final_classification" ( "athlete" text, "final" real, "lane" real, "semi" real, "quart" real, "heat" real );
SELECT MIN("lane") FROM "final_classification" WHERE "semi"=49.19;
2-10962033-2
Which species is male?
CREATE TABLE "original_farthing_wood_animals" ( "animal_name" text, "species" text, "books" text, "tv_series" text, "gender" text, "tv_seasons" text );
SELECT "species" FROM "original_farthing_wood_animals" WHERE "gender"='male';
2-11206371-1
What was the home teams score at Junction Oval?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_1" WHERE "venue"='junction oval';
2-10809271-1
What President has a Presidency greater than 7?
CREATE TABLE "list_of_presidents" ( "presidency" real, "president" text, "date_of_birth" text, "took_office" real, "left_office" text );
SELECT "president" FROM "list_of_presidents" WHERE "presidency">7;
2-11052-1
What is the highest Presidency that Took Office after 1974 and Left Office in 1998?
CREATE TABLE "list_of_presidents" ( "presidency" real, "president" text, "date_of_birth" text, "took_office" real, "left_office" text );
SELECT MAX("presidency") FROM "list_of_presidents" WHERE "left_office"='1998' AND "took_office">1974;
2-11052-1
What is the Took Office Date of the Presidency that Left Office Incumbent?
CREATE TABLE "list_of_presidents" ( "presidency" real, "president" text, "date_of_birth" text, "took_office" real, "left_office" text );
SELECT SUM("took_office") FROM "list_of_presidents" WHERE "left_office"='incumbent';
2-11052-1
What was the greatest Took Office dates that Left Office in 1998?
CREATE TABLE "list_of_presidents" ( "presidency" real, "president" text, "date_of_birth" text, "took_office" real, "left_office" text );
SELECT MAX("took_office") FROM "list_of_presidents" WHERE "left_office"='1998';
2-11052-1
What is the average Laps for andrea de cesaris?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("laps") FROM "race" WHERE "driver"='andrea de cesaris';
2-1123181-2
What is the lowest Grid for jj lehto with over 51 laps?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MIN("grid") FROM "race" WHERE "laps">51 AND "driver"='jj lehto';
2-1123181-2
What is the average Grid that has a Time/Retired of +2 laps, and under 51 laps?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("grid") FROM "race" WHERE "time_retired"='+2 laps' AND "laps"<51;
2-1123181-2
What's the Home teams Venue near Victoria Park?
CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_18" WHERE "venue"='victoria park';
2-10806194-18
What is the Home team with a crowd relevant to footscray?
CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "crowd" FROM "round_18" WHERE "home_team"='footscray';
2-10806194-18
What is the team's record when they play nashville at home?
CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "record" FROM "december" WHERE "home"='nashville';
2-11786815-5
What is the decision when they're at phoenix?
CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "decision" FROM "december" WHERE "visitor"='phoenix';
2-11786815-5
What was the score in the Tournament of Frankfurt?
CREATE TABLE "2006" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text );
SELECT "score" FROM "2006" WHERE "tournament"='frankfurt';
2-11346282-8
Who was the winner in the Tournament of Graz-Seiersberg?
CREATE TABLE "2006" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text );
SELECT "winner" FROM "2006" WHERE "tournament"='graz-seiersberg';
2-11346282-8
Who earned third place when the winner was Paul Haarhuis?
CREATE TABLE "2006" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text );
SELECT "third_place" FROM "2006" WHERE "winner"='paul haarhuis';
2-11346282-8
what is the most laps with the time/retired is differential and the grid is more than 2?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MAX("laps") FROM "classification" WHERE "time_retired"='differential' AND "grid">2;
2-1122988-1
what is the least laps when the grid is 5?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT MIN("laps") FROM "classification" WHERE "grid"=5;
2-1122988-1
On what date was Anniston Army Depot (SE Industrial Area) deleted?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "deleted" FROM "superfund_sites" WHERE "name"='anniston army depot (se industrial area)';
2-10834544-1
In what county is the entry that has a Construction Completed date of 07/19/2000 and a Listed date of 09/21/1984 located?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "county" FROM "superfund_sites" WHERE "listed"='09/21/1984' AND "construction_completed"='07/19/2000';
2-10834544-1
On what date was Stauffer Chemical Company (Lemoyne Plant), which was listed on 09/21/1984, deleted?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "deleted" FROM "superfund_sites" WHERE "listed"='09/21/1984' AND "name"='stauffer chemical company (lemoyne plant)';
2-10834544-1
What was the Proposed date of the entry that has a CERCLIS ID of al0001058056?
CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text );
SELECT "proposed" FROM "superfund_sites" WHERE "cerclis_id"='al0001058056';
2-10834544-1
What first appeared in 1966 in the comic X-2-Y?
CREATE TABLE "x" ( "name" text, "original_publisher" text, "first_appearance" text, "year" real, "date" text );
SELECT "first_appearance" FROM "x" WHERE "year"=1966 AND "name"='x-2-y';
2-11210891-1
Which baseball team is class AAA?
CREATE TABLE "former_current_professional_teams" ( "team" text, "sport" text, "league" text, "played" text, "class" text, "championships" text );
SELECT "team" FROM "former_current_professional_teams" WHERE "sport"='baseball' AND "class"='aaa';
2-1163422-1
Where does Collingwood play their games?
CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_3" WHERE "away_team"='collingwood';
2-10823950-3
Which position does Robert Nkemdiche play?
CREATE TABLE "2012_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );
SELECT "position" FROM "2012_team" WHERE "player"='robert nkemdiche';
2-11677691-10
What is Reuben Foster's college?
CREATE TABLE "2012_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );
SELECT "college" FROM "2012_team" WHERE "player"='reuben foster';
2-11677691-10
Which position does the player from Muscle Shoals, Alabama play?
CREATE TABLE "2012_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );
SELECT "position" FROM "2012_team" WHERE "hometown"='muscle shoals, alabama';
2-11677691-10
Which player is attending college at Virginia?
CREATE TABLE "2012_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );
SELECT "player" FROM "2012_team" WHERE "college"='virginia';
2-11677691-10
Which player attended Hoover High School?
CREATE TABLE "2012_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );
SELECT "player" FROM "2012_team" WHERE "school"='hoover high school';
2-11677691-10
What is the team's record on may 12 when they play the giants?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "record" FROM "game_log" WHERE "opponent"='giants' AND "date"='may 12';
2-11512165-5
What is the attendance at the game where San Jose was the visitor on May 4?
CREATE TABLE "western_conference_semi_finals" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real );
SELECT "attendance" FROM "western_conference_semi_finals" WHERE "visitor"='san jose' AND "date"='may 4';
2-11801912-11
Who was the home team on the May 2 game?
CREATE TABLE "western_conference_semi_finals" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real );
SELECT "home" FROM "western_conference_semi_finals" WHERE "date"='may 2';
2-11801912-11
What is the decision of the game with more than 17,496 attendance on April 30?
CREATE TABLE "western_conference_semi_finals" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real );
SELECT "decision" FROM "western_conference_semi_finals" WHERE "attendance">'17,496' AND "date"='april 30';
2-11801912-11
What date is the crowd larger than 20,000?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_4" WHERE "crowd">'20,000';
2-10807673-4
Which away team has a score of more that 11.13 (79)
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_4" WHERE "away_team_score"='11.13 (79)';
2-10807673-4
What was the record when the score was 11-10?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "score"='11-10';
2-11652183-7
What was the record when the attendance was 22,713?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "attendance"='22,713';
2-11652183-7
What was the attendance at the game when the record was 49-61?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "attendance" FROM "game_log" WHERE "record"='49-61';
2-11652183-7
On what date was there a game in which the opponent was the Detroit Tigers, and the attendance was 38,639?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "date" FROM "game_log" WHERE "opponent"='detroit tigers' AND "attendance"='38,639';
2-11652183-7
What is the free sotware with the latest stable date version of 1.1?
CREATE TABLE "general" ( "software" text, "latest_stable_date_version" text, "cost_usd" text, "open_source" text, "license" text );
SELECT "software" FROM "general" WHERE "cost_usd"='free' AND "latest_stable_date_version"='1.1';
2-11634225-1
Name the software with the latest stable date of 0.6.1
CREATE TABLE "general" ( "software" text, "latest_stable_date_version" text, "cost_usd" text, "open_source" text, "license" text );
SELECT "software" FROM "general" WHERE "latest_stable_date_version"='0.6.1';
2-11634225-1
Name the cost for latest stable date of online
CREATE TABLE "general" ( "software" text, "latest_stable_date_version" text, "cost_usd" text, "open_source" text, "license" text );
SELECT "cost_usd" FROM "general" WHERE "latest_stable_date_version"='online';
2-11634225-1
What is the birth place of the prime minister who served George V and entered office on 23 October 1922?
CREATE TABLE "prime_ministers" ( "name" text, "entered_office" text, "left_office" text, "political_party" text, "monarchs_served" text, "birth_place" text );
SELECT "birth_place" FROM "prime_ministers" WHERE "monarchs_served"='george v' AND "entered_office"='23 october 1922';
2-11042765-1
To which political party did the prime minister who served under George V and was born in Manchester belong?
CREATE TABLE "prime_ministers" ( "name" text, "entered_office" text, "left_office" text, "political_party" text, "monarchs_served" text, "birth_place" text );
SELECT "political_party" FROM "prime_ministers" WHERE "monarchs_served"='george v' AND "birth_place"='manchester';
2-11042765-1
What date did the prime minister who entered office on 7 December 1916 leave office?
CREATE TABLE "prime_ministers" ( "name" text, "entered_office" text, "left_office" text, "political_party" text, "monarchs_served" text, "birth_place" text );
SELECT "left_office" FROM "prime_ministers" WHERE "entered_office"='7 december 1916';
2-11042765-1
What monarch(s) did Stanley Baldwin (1st ministry) serve?
CREATE TABLE "prime_ministers" ( "name" text, "entered_office" text, "left_office" text, "political_party" text, "monarchs_served" text, "birth_place" text );
SELECT "monarchs_served" FROM "prime_ministers" WHERE "name"='stanley baldwin (1st ministry)';
2-11042765-1
What is the date of the game played at rich stadium?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text );
SELECT "date" FROM "schedule" WHERE "game_site"='rich stadium';
2-10918196-1