question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
How many points did the home team Essendon score?
CREATE TABLE "round_8" ( "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_8" WHERE "home_team"='essendon';
2-10807253-8
What character is in over 22 episodes?
CREATE TABLE "cast" ( "actor" text, "character" text, "duration" text, "no_of_series" text, "episodes" real );
SELECT "character" FROM "cast" WHERE "episodes">22;
2-11538407-1
What is the lowest number of episodes for anabel barnston?
CREATE TABLE "cast" ( "actor" text, "character" text, "duration" text, "no_of_series" text, "episodes" real );
SELECT MIN("episodes") FROM "cast" WHERE "actor"='anabel barnston';
2-11538407-1
What character is played by dani harmer for under 23 episodes?
CREATE TABLE "cast" ( "actor" text, "character" text, "duration" text, "no_of_series" text, "episodes" real );
SELECT "character" FROM "cast" WHERE "episodes"<23 AND "actor"='dani harmer';
2-11538407-1
How many episodes have a duration of 3?
CREATE TABLE "cast" ( "actor" text, "character" text, "duration" text, "no_of_series" text, "episodes" real );
SELECT COUNT("episodes") FROM "cast" WHERE "duration"='3';
2-11538407-1
On what date did the home team score 22.11 (143)?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_14" WHERE "home_team_score"='22.11 (143)';
2-10887680-14
What is the name of the home team whose opponent scored 18.16 (124)?
CREATE TABLE "round_14" ( "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_14" WHERE "away_team_score"='18.16 (124)';
2-10887680-14
What is the size of the crowd for the game where the away team scored 18.16 (124)?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MIN("crowd") FROM "round_14" WHERE "away_team_score"='18.16 (124)';
2-10887680-14
What is the name of the away team who play Collingwood?
CREATE TABLE "round_14" ( "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_14" WHERE "home_team"='collingwood';
2-10887680-14
What date did Collingwood play as the home team?
CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_14" WHERE "home_team"='collingwood';
2-10887680-14
What is the most recent year of disaffiliation of a CHCH-TV station that affiliated after 2001?
CREATE TABLE "owned_and_operated" ( "city_of_license_market" text, "station" text, "channel_tv_rf" text, "year_of_affiliation" real, "year_of_disaffiliation" real );
SELECT MAX("year_of_disaffiliation") FROM "owned_and_operated" WHERE "station"='chch-tv' AND "year_of_affiliation">2001;
2-10879231-1
What is the earliest year of disaffiliation of a CHCH-TV station, licensed in Hamilton, Ontario?
CREATE TABLE "owned_and_operated" ( "city_of_license_market" text, "station" text, "channel_tv_rf" text, "year_of_affiliation" real, "year_of_disaffiliation" real );
SELECT MIN("year_of_disaffiliation") FROM "owned_and_operated" WHERE "city_of_license_market"='hamilton, ontario';
2-10879231-1
How many bronze medals did west germany win when they had less than 2 silver medals?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("bronze") FROM "medal_table" WHERE "nation"='west germany' AND "silver"<2;
2-11154705-4
How many bronze medals were won when the total was larger than 2 and the more than 2 gold medals were won?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("bronze") FROM "medal_table" WHERE "total">2 AND "gold">2;
2-11154705-4
How many gold medals were won when more than 2 bronze medals were won?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("gold") FROM "medal_table" WHERE "bronze">2;
2-11154705-4
What was the PI GP fpr pick# 235 for Rd# larger than 12?
CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );
SELECT MIN("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pick_num"=235 AND "rd_num">12;
2-11636955-17
What was the largest crowd when South Melbourne was the away team?
CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MAX("crowd") FROM "round_10" WHERE "away_team"='south melbourne';
2-10885968-10
What is richmond's scores when they are the home team?
CREATE TABLE "round_10" ( "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_10" WHERE "home_team"='richmond';
2-10885968-10
What is south melbourne's scores when they are the away team?
CREATE TABLE "round_10" ( "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_10" WHERE "away_team"='south melbourne';
2-10885968-10
What dates were the matches at windy hill?
CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_10" WHERE "venue"='windy hill';
2-10885968-10
What is the average number of laps for the driver Piero Taruffi?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("laps") FROM "race" WHERE "driver"='piero taruffi';
2-1122061-2
Which driver has 12 laps and a grid of less than 10?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "driver" FROM "race" WHERE "laps"=12 AND "grid"<10;
2-1122061-2
What is the Illustration with a Design of tim nokes, and a First Day Cover Cancellation with calgary, alberta?
CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "design" text, "illustration" text, "paper_type" text, "first_day_cover_cancellation" text );
SELECT "illustration" FROM "2008" WHERE "design"='tim nokes' AND "first_day_cover_cancellation"='calgary, alberta';
2-11900773-6
What is the Date of Issue with a Theme with mental health?
CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "design" text, "illustration" text, "paper_type" text, "first_day_cover_cancellation" text );
SELECT "date_of_issue" FROM "2008" WHERE "theme"='mental health';
2-11900773-6
What is the Theme with a Design with sputnik design partners?
CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "design" text, "illustration" text, "paper_type" text, "first_day_cover_cancellation" text );
SELECT "theme" FROM "2008" WHERE "design"='sputnik design partners';
2-11900773-6
What is the Paper Type with a First Day Cover Cancellation with ottawa, on?
CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "design" text, "illustration" text, "paper_type" text, "first_day_cover_cancellation" text );
SELECT "paper_type" FROM "2008" WHERE "first_day_cover_cancellation"='ottawa, on';
2-11900773-6
What is the Paper Type with an Illustration with martin dee, ubc public affairs?
CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "design" text, "illustration" text, "paper_type" text, "first_day_cover_cancellation" text );
SELECT "paper_type" FROM "2008" WHERE "illustration"='martin dee, ubc public affairs';
2-11900773-6
What is the Theme with a Paper Type of tullis russell coatings, and a Date with Issue of 1 october 2008?
CREATE TABLE "2008" ( "date_of_issue" text, "theme" text, "design" text, "illustration" text, "paper_type" text, "first_day_cover_cancellation" text );
SELECT "theme" FROM "2008" WHERE "paper_type"='tullis russell coatings' AND "date_of_issue"='1 october 2008';
2-11900773-6
What is the tie number when the away team is Lewes?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "tie_no" FROM "first_round_proper" WHERE "away_team"='lewes';
2-11647944-2
What is the away team when the home team is Cheltenham Town?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "away_team" FROM "first_round_proper" WHERE "home_team"='cheltenham town';
2-11647944-2
What is the home team of the game with tie number 34?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "home_team" FROM "first_round_proper" WHERE "tie_no"='34';
2-11647944-2
What is the away team of the game with tie number 31?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='31';
2-11647944-2
How many goals for were scored for the team(s) that won fewer than 4 games and lost more than 6?
CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );
SELECT SUM("goals_for") FROM "final_standing" WHERE "wins"<4 AND "losses">6;
2-11893011-1
What is the average losses for the team(s) that played more than 8 games?
CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real );
SELECT AVG("losses") FROM "final_standing" WHERE "games_played">8;
2-11893011-1
What is the fleet size of the Vanguard 0-6-0dh class?
CREATE TABLE "fleet_details" ( "class" text, "type" text, "introduced" text, "fleet_size" real, "numbers" text );
SELECT "fleet_size" FROM "fleet_details" WHERE "class"='vanguard 0-6-0dh';
2-12085438-1
What is the year of introduction for the Electro-Diesel locomotive?
CREATE TABLE "fleet_details" ( "class" text, "type" text, "introduced" text, "fleet_size" real, "numbers" text );
SELECT "introduced" FROM "fleet_details" WHERE "type"='electro-diesel locomotive';
2-12085438-1
What is the average fleet size for the Shunter type introduced in 1959?
CREATE TABLE "fleet_details" ( "class" text, "type" text, "introduced" text, "fleet_size" real, "numbers" text );
SELECT AVG("fleet_size") FROM "fleet_details" WHERE "type"='shunter' AND "introduced"='1959';
2-12085438-1
What is the smallest fleet size with a type of shunter introduced in 1953?
CREATE TABLE "fleet_details" ( "class" text, "type" text, "introduced" text, "fleet_size" real, "numbers" text );
SELECT MIN("fleet_size") FROM "fleet_details" WHERE "type"='shunter' AND "introduced"='1953';
2-12085438-1
What show that was aired on January 24, 2008 with a rating larger than 3.6 had the lowest viewers? How Many Viewers in the millions?
CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "time_slot_est" text, "rating" real, "share" real, "18_49_rating_share" text, "viewers_m" real, "rank_overall" text );
SELECT MIN("viewers_m") FROM "weekly_ratings" WHERE "air_date"='january 24, 2008' AND "rating">3.6;
2-11244302-1
Which round has a car with a chassis of sf01?
CREATE TABLE "teams_and_drivers" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text );
SELECT "rounds" FROM "teams_and_drivers" WHERE "chassis"='sf01';
2-1137695-1
Which country has swimsuit more than 9.46 and interview more than 9.22 with average less than 9.6?
CREATE TABLE "scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT "country" FROM "scores" WHERE "average"<9.6 AND "interview">9.22 AND "swimsuit">9.46;
2-11689182-1
Which is the total number of evening gowns for swimsui less than 9.36 and average less than 9.23?
CREATE TABLE "scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT COUNT("evening_gown") FROM "scores" WHERE "swimsuit"<9.36 AND "average"<9.23;
2-11689182-1
Name the lowest average for interview more than 9.57 and delaware and evening gown more than 9.77
CREATE TABLE "scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT MIN("average") FROM "scores" WHERE "interview">9.57 AND "country"='delaware' AND "evening_gown">9.77;
2-11689182-1
Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73
CREATE TABLE "scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT SUM("swimsuit") FROM "scores" WHERE "average">9.23 AND "country"='delaware' AND "interview">9.73;
2-11689182-1
Name the sum of average for interview more than 9.57 and swimsuit more than 9.65
CREATE TABLE "scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT SUM("average") FROM "scores" WHERE "interview">9.57 AND "swimsuit">9.65;
2-11689182-1
Name the evening gown for swimsuit more than 9.51 for maryland
CREATE TABLE "scores" ( "country" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT "evening_gown" FROM "scores" WHERE "swimsuit">9.51 AND "country"='maryland';
2-11689182-1
What points awarded are higher than 6 but smaller than 9
CREATE TABLE "ranking_points" ( "finishing_position" text, "points_awarded_platinum" real, "points_awarded_gold" real, "points_awarded_silver" real, "points_awarded_satellite" real );
SELECT MAX("points_awarded_platinum") FROM "ranking_points" WHERE "points_awarded_gold"=9 AND "points_awarded_silver">6;
2-11254821-2
In the Canadian Grand Prix, what tyre was used when Jacky Ickx held pole position?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "tyre" FROM "season_review" WHERE "pole_position"='jacky ickx' AND "race"='canadian grand prix';
2-1140093-1
When Jackie Stewart had the fastest lap and Jochen Rindt held the pole position with a D tyre, what was the circuit?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "circuit" FROM "season_review" WHERE "tyre"='d' AND "pole_position"='jochen rindt' AND "fastest_lap"='jackie stewart';
2-1140093-1
What was the circuit when Jochen Rindt won?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "circuit" FROM "season_review" WHERE "winning_driver"='jochen rindt';
2-1140093-1
What tyre was used in Kyalami?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "tyre" FROM "season_review" WHERE "circuit"='kyalami';
2-1140093-1
Which driver had a grid number of 10?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "driver" FROM "race" WHERE "grid"=10;
2-1123421-2
Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "race" WHERE "grid"<3 AND "time_retired"='1:34:31.522';
2-1123421-2
Which constructor had a Time/Retired of collision, where the grid number was less than 18 and Nick Heidfeld was the driver?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "race" WHERE "time_retired"='collision' AND "grid"<18 AND "driver"='nick heidfeld';
2-1123421-2
What was the score for the record 20-14 when the attendance was over 35,196 and the Indians were opponents?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "score" FROM "game_log" WHERE "attendance">'35,196' AND "opponent"='indians' AND "record"='20-14';
2-11741681-3
What was the record on May 20?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "record" FROM "game_log" WHERE "date"='may 20';
2-11741681-3
What is the height in feet of player number 24?
CREATE TABLE "a" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );
SELECT "height_in_ft" FROM "a" WHERE "no_s"='24';
2-11734041-1
Who is the school, club, team or country that the Rockets played for 1967-68?
CREATE TABLE "a" ( "player" text, "no_s" text, "height_in_ft" text, "position" text, "years_for_rockets" text, "school_club_team_country" text );
SELECT "school_club_team_country" FROM "a" WHERE "years_for_rockets"='1967-68';
2-11734041-1
Which player has a Position of infielder, and a Hometown of atlanta, ga?
CREATE TABLE "1995_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );
SELECT "player" FROM "1995_team" WHERE "position"='infielder' AND "hometown"='atlanta, ga';
2-11677100-3
What MLB draft has a School of green valley high school?
CREATE TABLE "1995_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );
SELECT "mlb_draft" FROM "1995_team" WHERE "school"='green valley high school';
2-11677100-3
Which position has a School of green valley high school?
CREATE TABLE "1995_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );
SELECT "position" FROM "1995_team" WHERE "school"='green valley high school';
2-11677100-3
Which position has a Player of chad hutchinson?
CREATE TABLE "1995_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );
SELECT "position" FROM "1995_team" WHERE "player"='chad hutchinson';
2-11677100-3
Which position has a School of petal high school?
CREATE TABLE "1995_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text );
SELECT "position" FROM "1995_team" WHERE "school"='petal high school';
2-11677100-3
What is the date of week 8?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "date" FROM "schedule" WHERE "week"=8;
2-11172515-1
Which week has the lowest attendance of 48,102?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MIN("week") FROM "schedule" WHERE "attendance"='48,102';
2-11172515-1
What was the year with runs of 144?
CREATE TABLE "one_day_international_cricket_man_of_the" ( "runs" text, "against" text, "city_country" text, "venue" text, "result" text, "year" text );
SELECT "year" FROM "one_day_international_cricket_man_of_the" WHERE "runs"='144';
2-1160688-5
Name the place where adelaide oval is
CREATE TABLE "one_day_international_cricket_man_of_the" ( "runs" text, "against" text, "city_country" text, "venue" text, "result" text, "year" text );
SELECT "city_country" FROM "one_day_international_cricket_man_of_the" WHERE "venue"='adelaide oval';
2-1160688-5
Name the average zone for waddon marsh tram stop
CREATE TABLE "w" ( "stations" text, "place" text, "managed_by" text, "platforms" real, "zone" real );
SELECT AVG("zone") FROM "w" WHERE "stations"='waddon marsh tram stop';
2-11802780-15
Name the stations for zone 5 and 1 platform by tramlink
CREATE TABLE "w" ( "stations" text, "place" text, "managed_by" text, "platforms" real, "zone" real );
SELECT "stations" FROM "w" WHERE "managed_by"='tramlink' AND "zone"=5 AND "platforms"=1;
2-11802780-15
Name the total number of platforms that waddon railway station has
CREATE TABLE "w" ( "stations" text, "place" text, "managed_by" text, "platforms" real, "zone" real );
SELECT COUNT("platforms") FROM "w" WHERE "stations"='waddon railway station';
2-11802780-15
Name the average zone for waddon railway station and has more than 2 platforms
CREATE TABLE "w" ( "stations" text, "place" text, "managed_by" text, "platforms" real, "zone" real );
SELECT AVG("zone") FROM "w" WHERE "stations"='waddon railway station' AND "platforms">2;
2-11802780-15
What is Bob Ostovich's opponents record?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text, "location" text );
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='bob ostovich';
2-11042371-2
What location is Jimmy Smith fighting in?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text, "location" text );
SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='jimmy smith';
2-11042371-2
I want to know the D 49 + for D 42 √ of d 42 √
CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_41" text, "d_42" text, "d_43" text, "d_44" text, "d_45_o" text, "d_46_o" text, "d_47" text, "d_48" text, "d_49" text, "d_50" text );
SELECT "d_49" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_42"='d 42 √';
2-1106241-3
Tell me the D 50 + for D 48 + of d 53 +
CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_41" text, "d_42" text, "d_43" text, "d_44" text, "d_45_o" text, "d_46_o" text, "d_47" text, "d_48" text, "d_49" text, "d_50" text );
SELECT "d_50" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_48"='d 53 +';
2-1106241-3
I want to know the D 47 for D 46 O of majority→
CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_41" text, "d_42" text, "d_43" text, "d_44" text, "d_45_o" text, "d_46_o" text, "d_47" text, "d_48" text, "d_49" text, "d_50" text );
SELECT "d_47" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_46_o"='majority→';
2-1106241-3
What is the sum of all win% with average home/total attendance of 3,927 (19,633)?
CREATE TABLE "year_by_year_performance" ( "coach" text, "season" text, "record" text, "home" text, "away" text, "win_pct" real, "average_total_home_attendance" text );
SELECT SUM("win_pct") FROM "year_by_year_performance" WHERE "average_total_home_attendance"='3,927 (19,633)';
2-12029670-3
What is the away score with a record of 7-4, win% of 0.637, and 2010 season?
CREATE TABLE "year_by_year_performance" ( "coach" text, "season" text, "record" text, "home" text, "away" text, "win_pct" real, "average_total_home_attendance" text );
SELECT "away" FROM "year_by_year_performance" WHERE "record"='7-4' AND "win_pct"=0.637 AND "season"='2010';
2-12029670-3
What was the lowest win% with an away score of 3-2 in 2011 season?
CREATE TABLE "year_by_year_performance" ( "coach" text, "season" text, "record" text, "home" text, "away" text, "win_pct" real, "average_total_home_attendance" text );
SELECT MIN("win_pct") FROM "year_by_year_performance" WHERE "away"='3-2' AND "season"='2011';
2-12029670-3
What was the away score with a win% of 0.75 and average total/home attendance of 4,686 (18,744)?
CREATE TABLE "year_by_year_performance" ( "coach" text, "season" text, "record" text, "home" text, "away" text, "win_pct" real, "average_total_home_attendance" text );
SELECT "away" FROM "year_by_year_performance" WHERE "win_pct"=0.75 AND "average_total_home_attendance"='4,686 (18,744)';
2-12029670-3
What is the lowest win% in the 1999-2013 season?
CREATE TABLE "year_by_year_performance" ( "coach" text, "season" text, "record" text, "home" text, "away" text, "win_pct" real, "average_total_home_attendance" text );
SELECT MIN("win_pct") FROM "year_by_year_performance" WHERE "season"='1999-2013';
2-12029670-3
What's the record during 1925?
CREATE TABLE "the_american_meetings" ( "year" real, "event" text, "record" text, "athlete" text, "nationality" text );
SELECT "record" FROM "the_american_meetings" WHERE "year"=1925;
2-1102696-3
What is the earliest year that the discus throw event occur?
CREATE TABLE "the_american_meetings" ( "year" real, "event" text, "record" text, "athlete" text, "nationality" text );
SELECT MIN("year") FROM "the_american_meetings" WHERE "event"='discus throw';
2-1102696-3
What Haydon had a 33 Ben-Tahir?
CREATE TABLE "results_by_ward" ( "ward" text, "bello" text, "ben_tahir" text, "doucet" text, "furtenbacher" text, "gauthier" text, "haydon" text, "larter" text, "lawrance" text, "libweshya" text, "liscumb" text );
SELECT "haydon" FROM "results_by_ward" WHERE "ben_tahir"='33';
2-11447995-2
What Gauthier had a 15 Liscumb?
CREATE TABLE "results_by_ward" ( "ward" text, "bello" text, "ben_tahir" text, "doucet" text, "furtenbacher" text, "gauthier" text, "haydon" text, "larter" text, "lawrance" text, "libweshya" text, "liscumb" text );
SELECT "gauthier" FROM "results_by_ward" WHERE "liscumb"='15';
2-11447995-2
What Ben-Tahir has a 6 Liscumb and 3 Libweshya?
CREATE TABLE "results_by_ward" ( "ward" text, "bello" text, "ben_tahir" text, "doucet" text, "furtenbacher" text, "gauthier" text, "haydon" text, "larter" text, "lawrance" text, "libweshya" text, "liscumb" text );
SELECT "ben_tahir" FROM "results_by_ward" WHERE "liscumb"='6' AND "libweshya"='3';
2-11447995-2
What Bello has a 27 Liscumb and 6539 Libweshya?
CREATE TABLE "results_by_ward" ( "ward" text, "bello" text, "ben_tahir" text, "doucet" text, "furtenbacher" text, "gauthier" text, "haydon" text, "larter" text, "lawrance" text, "libweshya" text, "liscumb" text );
SELECT "bello" FROM "results_by_ward" WHERE "liscumb"='27' AND "libweshya"='6539';
2-11447995-2
What is the Furtenbacher with a 6 Liscumb, 10 Lawrance, and a 24 Ben-Tahir?
CREATE TABLE "results_by_ward" ( "ward" text, "bello" text, "ben_tahir" text, "doucet" text, "furtenbacher" text, "gauthier" text, "haydon" text, "larter" text, "lawrance" text, "libweshya" text, "liscumb" text );
SELECT "furtenbacher" FROM "results_by_ward" WHERE "liscumb"='6' AND "lawrance"='10' AND "ben_tahir"='24';
2-11447995-2
What is the Ben-Tahir with a 3269 Doucet?
CREATE TABLE "results_by_ward" ( "ward" text, "bello" text, "ben_tahir" text, "doucet" text, "furtenbacher" text, "gauthier" text, "haydon" text, "larter" text, "lawrance" text, "libweshya" text, "liscumb" text );
SELECT "ben_tahir" FROM "results_by_ward" WHERE "doucet"='3269';
2-11447995-2
How many attended the game that was a Loss of k. gross (1-1)?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT MAX("attendance") FROM "game_log" WHERE "loss"='k. gross (1-1)';
2-11800675-4
What is the score of the game with tie number 65?
CREATE TABLE "replays" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "score" FROM "replays" WHERE "tie_no"='65';
2-11318956-4
Which Home team had attendance 160?
CREATE TABLE "replays" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );
SELECT "home_team" FROM "replays" WHERE "attendance"='160';
2-11318956-4
What is the record of the game with a decision of Ellis and Vancouver as the visitor?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "record" text );
SELECT "record" FROM "february" WHERE "decision"='ellis' AND "visitor"='vancouver';
2-11756731-7
What is the record of the game with Mason as the decision and Nashville as the home team?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "record" text );
SELECT "record" FROM "february" WHERE "decision"='mason' AND "home"='nashville';
2-11756731-7
What is the date with Ellis as the decision and St. Louis as the visitor?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "record" text );
SELECT "date" FROM "february" WHERE "decision"='ellis' AND "visitor"='st. louis';
2-11756731-7
Which visiting team had a record of 31–31–8?
CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "visitor" FROM "march" WHERE "record"='31–31–8';
2-11771022-8
Where is Jeff Lebo's hometown?
CREATE TABLE "1985_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "hometown" FROM "1985_boys_team" WHERE "player"='jeff lebo';
2-11677760-7
Who is the player from Houston, TX?
CREATE TABLE "1985_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "player" FROM "1985_boys_team" WHERE "hometown"='houston, tx';
2-11677760-7
What is the earliest year with an entry from Rotary Watches Stanley BRM and a BRM P207 with more than 0 points?
CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT MIN("year") FROM "complete_formula_one_world_championship_" WHERE "entrant"='rotary watches stanley brm' AND "chassis"='brm p207' AND "points">0;
2-1203364-2
How many points were there in a year earlier than 1977, a Cosworth V8 engine, and an entry from HB Bewaking alarm systems?
CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT "points" FROM "complete_formula_one_world_championship_" WHERE "year"<1977 AND "engine"='cosworth v8' AND "entrant"='hb bewaking alarm systems';
2-1203364-2