question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What was the average week of a game with a result of l 10-7 attended by 37,500?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT AVG("week") FROM "schedule" WHERE "result"='l 10-7' AND "attendance"<'37,500';
2-15125111-1
What was the average attendance on October 30, 1938?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT AVG("attendance") FROM "schedule" WHERE "date"='october 30, 1938';
2-15125111-1
When did Yugoslavia play a friendly game in Belgrade?
CREATE TABLE "1974" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text );
SELECT "date" FROM "1974" WHERE "city"='belgrade' AND "type_of_game"='friendly';
2-14305653-52
When was the WC 1974 Qualifying game?
CREATE TABLE "1974" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text );
SELECT "date" FROM "1974" WHERE "type_of_game"='wc 1974 qualifying';
2-14305653-52
What city did Yugoslavia play Norway in?
CREATE TABLE "1974" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text );
SELECT "city" FROM "1974" WHERE "opponent"='norway';
2-14305653-52
Who did Yugoslavia play against that led to a result of 2:3?
CREATE TABLE "1974" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text );
SELECT "opponent" FROM "1974" WHERE "results"='2:3';
2-14305653-52
What is the final score of the runner-up on 9 February 1992?
CREATE TABLE "doubles_10_6_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_final" text, "score_in_final" text );
SELECT "score_in_final" FROM "doubles_10_6_4" WHERE "outcome"='runner-up' AND "date"='9 february 1992';
2-15097001-5
Which opponent has a time of 1:50?
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 "time"='1:50';
2-1433370-2
Which opponent has a time of 2:35?
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 "time"='2:35';
2-1433370-2
What is the time when the opponent is stephanie palmer?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='stephanie palmer';
2-1433370-2
What tournament has Samantha Stosur as the opponent in the final?
CREATE TABLE "singles_wins_5" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "tournament" FROM "singles_wins_5" WHERE "opponent_in_the_final"='samantha stosur';
2-1398079-3
What date is the zürich, switzerland tournament?
CREATE TABLE "singles_wins_5" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "date" FROM "singles_wins_5" WHERE "tournament"='zürich, switzerland';
2-1398079-3
What is the date of the Sydney, Australia tournament with a hard surface?
CREATE TABLE "singles_wins_5" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "date" FROM "singles_wins_5" WHERE "surface"='hard' AND "tournament"='sydney, australia';
2-1398079-3
Which Result has a Date of 4 april 1993?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "result" FROM "international_goals" WHERE "date"='4 april 1993';
2-15290075-1
Which Venue has a Result of 5-1, and a Score of 3-0?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "venue" FROM "international_goals" WHERE "result"='5-1' AND "score"='3-0';
2-15290075-1
Which Score has a Result of 5-1?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "score" FROM "international_goals" WHERE "result"='5-1';
2-15290075-1
Which Venue has a Result of 5-1, and a Score of 1-0?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "venue" FROM "international_goals" WHERE "result"='5-1' AND "score"='1-0';
2-15290075-1
Which Venue has a Result of 5-0?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "venue" FROM "international_goals" WHERE "result"='5-0';
2-15290075-1
What did winner Gary Player par?
CREATE TABLE "winners" ( "year" real, "date" text, "winner" text, "score" text, "to_par" text, "winner_s_share" real );
SELECT "to_par" FROM "winners" WHERE "winner"='gary player';
2-14112941-1
How many PATAs does an nForce Professional 3400 MCP have?
CREATE TABLE "comparison_of_nvidia_chipsets" ( "model" text, "processors_supported" text, "fsb_ht_frequency_m_hz" text, "memory" text, "pci_express" text, "sata" real, "pata" real, "sound" text, "network" text, "features" text );
SELECT SUM("pata") FROM "comparison_of_nvidia_chipsets" WHERE "model"='nforce professional 3400 mcp';
2-14306107-12
Which PCI-Express has a DDR 266/333/400 Registered/ECC memory and Enhanced AC'97 2.3 sound?
CREATE TABLE "comparison_of_nvidia_chipsets" ( "model" text, "processors_supported" text, "fsb_ht_frequency_m_hz" text, "memory" text, "pci_express" text, "sata" real, "pata" real, "sound" text, "network" text, "features" text );
SELECT "pci_express" FROM "comparison_of_nvidia_chipsets" WHERE "memory"='ddr 266/333/400 registered/ecc' AND "sound"='enhanced ac''97 2.3';
2-14306107-12
Which FSB/HT frequency (MHz) has a SATA larger than 6 and DDR 266/333/400 Registered/ECC memory?
CREATE TABLE "comparison_of_nvidia_chipsets" ( "model" text, "processors_supported" text, "fsb_ht_frequency_m_hz" text, "memory" text, "pci_express" text, "sata" real, "pata" real, "sound" text, "network" text, "features" text );
SELECT "fsb_ht_frequency_m_hz" FROM "comparison_of_nvidia_chipsets" WHERE "sata">6 AND "memory"='ddr 266/333/400 registered/ecc';
2-14306107-12
Which network has model nForce Professional 3400 MCP?
CREATE TABLE "comparison_of_nvidia_chipsets" ( "model" text, "processors_supported" text, "fsb_ht_frequency_m_hz" text, "memory" text, "pci_express" text, "sata" real, "pata" real, "sound" text, "network" text, "features" text );
SELECT "network" FROM "comparison_of_nvidia_chipsets" WHERE "model"='nforce professional 3400 mcp';
2-14306107-12
Which institution has more than 19,020 students in london with a research funding of more than 7,734?
CREATE TABLE "members" ( "institution" text, "location" text, "established" real, "gained_university_status" real, "vice_chancellor" text, "total_number_of_students" real, "research_funding_000" real );
SELECT "institution" FROM "members" WHERE "total_number_of_students">'19,020' AND "location"='london' AND "research_funding_000">'7,734';
2-142950-1
Which institution gained university status after 1932 and has a research funding more than 7,238?
CREATE TABLE "members" ( "institution" text, "location" text, "established" real, "gained_university_status" real, "vice_chancellor" text, "total_number_of_students" real, "research_funding_000" real );
SELECT "institution" FROM "members" WHERE "research_funding_000">'7,238' AND "gained_university_status">1932;
2-142950-1
What model has an engine of 1,868 cc?
CREATE TABLE "fiat_scudo_engines" ( "model" text, "engine" text, "displacement" text, "valvetrain" text, "fuel_system" text, "max_power_at_rpm" text, "max_torque_at_rpm" text, "years" text );
SELECT "model" FROM "fiat_scudo_engines" WHERE "displacement"='1,868 cc';
2-1530048-1
What College team has 8 rounds?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round"=8;
2-14208855-18
What nationality is Daryn Fersovich?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "nationality" FROM "draft_picks" WHERE "player"='daryn fersovich';
2-14208855-18
What day was the ground subiaco?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text );
SELECT "date" FROM "round_17" WHERE "ground"='subiaco';
2-14312471-2
Which home team had a score of 11.11 (77)?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text );
SELECT "home_team" FROM "round_17" WHERE "home_team_score"='11.11 (77)';
2-14312471-2
What's the average crowd when the away team score was 14.14 (98)?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text );
SELECT AVG("crowd") FROM "round_17" WHERE "away_team_score"='14.14 (98)';
2-14312471-2
Which away team score had a home team score of 15.8 (98)?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text );
SELECT "away_team_score" FROM "round_17" WHERE "home_team_score"='15.8 (98)';
2-14312471-2
What was the home team score for essendon?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text );
SELECT "home_team_score" FROM "round_17" WHERE "home_team"='essendon';
2-14312471-2
What was the crowd size for the Home team of melbourne?
CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text );
SELECT COUNT("crowd") FROM "round_17" WHERE "home_team"='melbourne';
2-14312471-2
Which Score has a Couple of cristián & cheryl, and a Style of cha-cha-cha?
CREATE TABLE "week_10" ( "couple" text, "score" text, "style" text, "music" text, "result" text );
SELECT "score" FROM "week_10" WHERE "couple"='cristián & cheryl' AND "style"='cha-cha-cha';
2-15116785-16
Which Score has a Couple comprised of jason & edyta, and a Style of freestyle?
CREATE TABLE "week_10" ( "couple" text, "score" text, "style" text, "music" text, "result" text );
SELECT "score" FROM "week_10" WHERE "couple"='jason & edyta' AND "style"='freestyle';
2-15116785-16
Which music is jive?
CREATE TABLE "week_10" ( "couple" text, "score" text, "style" text, "music" text, "result" text );
SELECT "music" FROM "week_10" WHERE "style"='jive';
2-15116785-16
Which Couple has a Result of third place, and a Style of cha-cha-cha?
CREATE TABLE "week_10" ( "couple" text, "score" text, "style" text, "music" text, "result" text );
SELECT "couple" FROM "week_10" WHERE "result"='third place' AND "style"='cha-cha-cha';
2-15116785-16
Which Score has a Result of third place, and a Style of cha-cha-cha?
CREATE TABLE "week_10" ( "couple" text, "score" text, "style" text, "music" text, "result" text );
SELECT "score" FROM "week_10" WHERE "result"='third place' AND "style"='cha-cha-cha';
2-15116785-16
Which Music has a Score of 30 (10, 10, 10), and a Style of cha-cha-cha?
CREATE TABLE "week_10" ( "couple" text, "score" text, "style" text, "music" text, "result" text );
SELECT "music" FROM "week_10" WHERE "score"='30 (10, 10, 10)' AND "style"='cha-cha-cha';
2-15116785-16
What is the Australian National Kennel Council Toy Dogs Group with papillon as the Kennel Club breed?
CREATE TABLE "toy_group_breeds_of_major_kennel_clubs_k" ( "the_kennel_club_uk_toy_group" text, "canadian_kennel_club_toy_dogs_group" text, "american_kennel_club_toy_group" text, "australian_national_kennel_council_toy_dogs_group" text, "new_zealand_kennel_club_toy_group" text );
SELECT "australian_national_kennel_council_toy_dogs_group" FROM "toy_group_breeds_of_major_kennel_clubs_k" WHERE "the_kennel_club_uk_toy_group"='papillon';
2-1515697-1
What is the New Zealand Kennel Club Toy Group with papillon as the Australian National Kennel Council Toy Dogs Group breed?
CREATE TABLE "toy_group_breeds_of_major_kennel_clubs_k" ( "the_kennel_club_uk_toy_group" text, "canadian_kennel_club_toy_dogs_group" text, "american_kennel_club_toy_group" text, "australian_national_kennel_council_toy_dogs_group" text, "new_zealand_kennel_club_toy_group" text );
SELECT "new_zealand_kennel_club_toy_group" FROM "toy_group_breeds_of_major_kennel_clubs_k" WHERE "australian_national_kennel_council_toy_dogs_group"='papillon';
2-1515697-1
What is the Canadian Kennel Club Toy Dogs Group with the australian silky terrier as the Australian National Kennel Council Toy Dogs Group breed?
CREATE TABLE "toy_group_breeds_of_major_kennel_clubs_k" ( "the_kennel_club_uk_toy_group" text, "canadian_kennel_club_toy_dogs_group" text, "american_kennel_club_toy_group" text, "australian_national_kennel_council_toy_dogs_group" text, "new_zealand_kennel_club_toy_group" text );
SELECT "canadian_kennel_club_toy_dogs_group" FROM "toy_group_breeds_of_major_kennel_clubs_k" WHERE "australian_national_kennel_council_toy_dogs_group"='australian silky terrier';
2-1515697-1
What is the Kennel Club (UK) Toy Group with the shih-tzu as the American Kennel Club Toy Group breed?
CREATE TABLE "toy_group_breeds_of_major_kennel_clubs_k" ( "the_kennel_club_uk_toy_group" text, "canadian_kennel_club_toy_dogs_group" text, "american_kennel_club_toy_group" text, "australian_national_kennel_council_toy_dogs_group" text, "new_zealand_kennel_club_toy_group" text );
SELECT "the_kennel_club_uk_toy_group" FROM "toy_group_breeds_of_major_kennel_clubs_k" WHERE "american_kennel_club_toy_group"='shih-tzu';
2-1515697-1
What prize amount was awarded at the event with 453 entrants?
CREATE TABLE "event_schedule" ( "entrants" real, "winner" text, "prize" text, "runner_up" text, "results" text );
SELECT "prize" FROM "event_schedule" WHERE "entrants"=453;
2-13663314-1
What were the overall event results when Michael Demichele was runner-up?
CREATE TABLE "event_schedule" ( "entrants" real, "winner" text, "prize" text, "runner_up" text, "results" text );
SELECT "results" FROM "event_schedule" WHERE "runner_up"='michael demichele';
2-13663314-1
What were the results of the event where $817,781 was awarded to less than 1,236 entrants?
CREATE TABLE "event_schedule" ( "entrants" real, "winner" text, "prize" text, "runner_up" text, "results" text );
SELECT "results" FROM "event_schedule" WHERE "entrants"<'1,236' AND "prize"='$817,781';
2-13663314-1
What was the fewest entrants in an event won by Grant Hinkle?
CREATE TABLE "event_schedule" ( "entrants" real, "winner" text, "prize" text, "runner_up" text, "results" text );
SELECT MIN("entrants") FROM "event_schedule" WHERE "winner"='grant hinkle';
2-13663314-1
How many entrants did the events won by Frank Gary average?
CREATE TABLE "event_schedule" ( "entrants" real, "winner" text, "prize" text, "runner_up" text, "results" text );
SELECT AVG("entrants") FROM "event_schedule" WHERE "winner"='frank gary';
2-13663314-1
What medal was won in the 1996 Atlanta games in wrestling?
CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text );
SELECT "medal" FROM "list_of_medalists" WHERE "games"='1996 atlanta' AND "sport"='wrestling';
2-14811071-1
Who won a medal at the 2008 Beijing Olympics?
CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text );
SELECT "name" FROM "list_of_medalists" WHERE "games"='2008 beijing';
2-14811071-1
What event did Cristina Iovu participate in?
CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text );
SELECT "event" FROM "list_of_medalists" WHERE "name"='cristina iovu';
2-14811071-1
At which games was a bronze medal won in the 94kg men's weightlifting event?
CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text );
SELECT "games" FROM "list_of_medalists" WHERE "medal"='bronze' AND "sport"='weightlifting' AND "event"='94kg men''s weightlifting';
2-14811071-1
Which sport has 94kg men's weightlifting as one of its events?
CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text );
SELECT "sport" FROM "list_of_medalists" WHERE "event"='94kg men''s weightlifting';
2-14811071-1
What is the Name of the Quarterback with a Pick # less than 11?
CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "pick_num"<11 AND "position"='quarterback';
2-15198842-17
What is donovan's surname?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "surname" FROM "player_roster" WHERE "first"='donovan';
2-15273269-6
How many throws did james get?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "throws" FROM "player_roster" WHERE "first"='james';
2-15273269-6
When is Biddle's DOB?
CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text );
SELECT "d_o_b" FROM "player_roster" WHERE "surname"='biddle';
2-15273269-6
Average larger than 2,279, and a Team of queen of the south, and a Capacity larger than 6,412 has what lowest of the sum?
CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );
SELECT SUM("lowest") FROM "attendances" WHERE "average">'2,279' AND "team"='queen of the south' AND "capacity">'6,412';
2-14003085-5
Highest larger than 2,169, and a Average larger than 3,502 involves which team?
CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );
SELECT "team" FROM "attendances" WHERE "highest">'2,169' AND "average">'3,502';
2-14003085-5
Highest smaller than 3,378, and a Stadium of cappielow has what average capacity?
CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );
SELECT AVG("capacity") FROM "attendances" WHERE "highest"<'3,378' AND "stadium"='cappielow';
2-14003085-5
Who is the opponent of the game with 33,628 folks in attendance?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "opponent" FROM "game_log" WHERE "attendance"='33,628';
2-13974494-9
What is the loss of the game with 38,062 folks in attendance?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "loss" FROM "game_log" WHERE "attendance"='38,062';
2-13974494-9
What is the score of the game that 33,531 people went too?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "score" FROM "game_log" WHERE "attendance"='33,531';
2-13974494-9
What is the date of the game with 38,062 people in attendance?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "date" FROM "game_log" WHERE "attendance"='38,062';
2-13974494-9
What is Brendan Locke's College/Junior/Club Team (League)?
CREATE TABLE "draft_picks" ( "round" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "player"='brendan locke';
2-14208842-14
What League's Round is Sup and Position is Right Wing?
CREATE TABLE "draft_picks" ( "round" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "position"='right wing' AND "round"='sup';
2-14208842-14
In what Round is the Position Goaltender?
CREATE TABLE "draft_picks" ( "round" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "round" FROM "draft_picks" WHERE "position"='goaltender';
2-14208842-14
In what League is Left Wing Yanick Dupre?
CREATE TABLE "draft_picks" ( "round" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "position"='left wing' AND "player"='yanick dupre';
2-14208842-14
In what League in Round 6 is the Position Right Wing?
CREATE TABLE "draft_picks" ( "round" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "position"='right wing' AND "round"='6';
2-14208842-14
In what Round is John Parco a Center?
CREATE TABLE "draft_picks" ( "round" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "round" FROM "draft_picks" WHERE "position"='center' AND "player"='john parco';
2-14208842-14
Which team had 15 draws?
CREATE TABLE "county_cricket" ( "season" text, "team" text, "wins" text, "losses" text, "draws" text );
SELECT "team" FROM "county_cricket" WHERE "draws"='15';
2-14417906-11
Which season had 16 losses for the Hampshire team?
CREATE TABLE "county_cricket" ( "season" text, "team" text, "wins" text, "losses" text, "draws" text );
SELECT "season" FROM "county_cricket" WHERE "losses"='16' AND "team"='hampshire';
2-14417906-11
Which season had 0 wins and 5 losses for the Surrey team?
CREATE TABLE "county_cricket" ( "season" text, "team" text, "wins" text, "losses" text, "draws" text );
SELECT "season" FROM "county_cricket" WHERE "wins"='0' AND "losses"='5' AND "team"='surrey';
2-14417906-11
Which season had 10 draws?
CREATE TABLE "county_cricket" ( "season" text, "team" text, "wins" text, "losses" text, "draws" text );
SELECT "season" FROM "county_cricket" WHERE "draws"='10';
2-14417906-11
How many draws did Durham have?
CREATE TABLE "county_cricket" ( "season" text, "team" text, "wins" text, "losses" text, "draws" text );
SELECT "draws" FROM "county_cricket" WHERE "team"='durham';
2-14417906-11
How many wins happened with 8 draws?
CREATE TABLE "county_cricket" ( "season" text, "team" text, "wins" text, "losses" text, "draws" text );
SELECT "wins" FROM "county_cricket" WHERE "draws"='8';
2-14417906-11
What was the grid of Jenson Button?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text );
SELECT "grid" FROM "race" WHERE "driver"='jenson button';
2-14232966-2
Who was the constructor of the car that went 56 laps and had a grid of 15?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text );
SELECT "constructor" FROM "race" WHERE "laps"='56' AND "grid"='15';
2-14232966-2
Who was the contstructor of the car having a grid of 20?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text );
SELECT "constructor" FROM "race" WHERE "grid"='20';
2-14232966-2
What was the time of the car having a constructor of Renault, which went 40 laps?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text );
SELECT "time_retired" FROM "race" WHERE "constructor"='renault' AND "laps"='40';
2-14232966-2
Who constructed the car that had a grid of 6?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text );
SELECT "constructor" FROM "race" WHERE "grid"='6';
2-14232966-2
Can you tell me the sum of Podiums that has the Season of 2006, and the Races larger than 16?
CREATE TABLE "by_season" ( "season" text, "races" real, "podiums" real, "pole" real, "f_lap" real );
SELECT SUM("podiums") FROM "by_season" WHERE "season"='2006' AND "races">16;
2-13985563-1
Can you tell me the sum of FLap that has the Pole larger than 0, and the Podiums of 6?
CREATE TABLE "by_season" ( "season" text, "races" real, "podiums" real, "pole" real, "f_lap" real );
SELECT SUM("f_lap") FROM "by_season" WHERE "pole">0 AND "podiums"=6;
2-13985563-1
Name the home with record of 33-18-9
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "february" WHERE "record"='33-18-9';
2-14208941-6
Name the score for detroit home and record of 33-18-9
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "score" FROM "february" WHERE "home"='detroit' AND "record"='33-18-9';
2-14208941-6
Name the score for toronto visitor and record of 29-17-8
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "score" FROM "february" WHERE "visitor"='toronto' AND "record"='29-17-8';
2-14208941-6
Name the home for detroit visitor and date of february 29
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "february" WHERE "visitor"='detroit' AND "date"='february 29';
2-14208941-6
Which Music has a Record label of moviebox/ speed records / music waves?
CREATE TABLE "discography" ( "year" real, "album" text, "record_label" text, "info" text, "music" text );
SELECT "music" FROM "discography" WHERE "record_label"='moviebox/ speed records / music waves';
2-15217634-1
Which Year is the highest one that has a Record label of supertone melodies?
CREATE TABLE "discography" ( "year" real, "album" text, "record_label" text, "info" text, "music" text );
SELECT MAX("year") FROM "discography" WHERE "record_label"='supertone melodies';
2-15217634-1
Which Record label has an Album of tera roop?
CREATE TABLE "discography" ( "year" real, "album" text, "record_label" text, "info" text, "music" text );
SELECT "record_label" FROM "discography" WHERE "album"='tera roop';
2-15217634-1
Which Record label has an Album of rambo?
CREATE TABLE "discography" ( "year" real, "album" text, "record_label" text, "info" text, "music" text );
SELECT "record_label" FROM "discography" WHERE "album"='rambo';
2-15217634-1
Which Info has an Album of romeo?
CREATE TABLE "discography" ( "year" real, "album" text, "record_label" text, "info" text, "music" text );
SELECT "info" FROM "discography" WHERE "album"='romeo';
2-15217634-1
What was the average attendance when the record was 58–49?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT AVG("attendance") FROM "game_log" WHERE "record"='58–49';
2-14250040-7
What was the attendance when the score was 8–7?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT SUM("attendance") FROM "game_log" WHERE "score"='8–7';
2-14250040-7
What was the attendance for july 18?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT COUNT("attendance") FROM "game_log" WHERE "date"='july 18';
2-14250040-7
How many strokes to par when the score is 1 up?
CREATE TABLE "major_tournaments_hosted" ( "year" real, "tournament" text, "winner" text, "country" text, "score" text, "to_par" text, "margin_of_victory" text, "winner_s_share" text );
SELECT "to_par" FROM "major_tournaments_hosted" WHERE "score"='1 up';
2-15280042-2
Name the series for game 5
CREATE TABLE "nba_finals" ( "game" text, "date" text, "result" text, "site" text, "series" text );
SELECT "series" FROM "nba_finals" WHERE "game"='game 5';
2-15148390-10
Name the site for game of game 2
CREATE TABLE "nba_finals" ( "game" text, "date" text, "result" text, "site" text, "series" text );
SELECT "site" FROM "nba_finals" WHERE "game"='game 2';
2-15148390-10
Name the site with game of game 6
CREATE TABLE "nba_finals" ( "game" text, "date" text, "result" text, "site" text, "series" text );
SELECT "site" FROM "nba_finals" WHERE "game"='game 6';
2-15148390-10