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 series number that has a production code of 50021–50025?
|
CREATE TABLE "season_5_1992" (
"number_in_series" real,
"number_in_season" real,
"title" text,
"directed_by" text,
"original_air_date" text,
"production_code" text
);
|
SELECT MAX("number_in_series") FROM "season_5_1992" WHERE "production_code"='50021–50025';
|
2-1267576-5
|
Which county team has jimmy finn as the player?
|
CREATE TABLE "references" (
"position" text,
"player" text,
"county_team" text,
"club_team_s" text,
"team_number" real
);
|
SELECT "county_team" FROM "references" WHERE "player"='jimmy finn';
|
2-12380583-1
|
How many team numbers have john keane as the player?
|
CREATE TABLE "references" (
"position" text,
"player" text,
"county_team" text,
"club_team_s" text,
"team_number" real
);
|
SELECT COUNT("team_number") FROM "references" WHERE "player"='john keane';
|
2-12380583-1
|
Which position has john keane as the player?
|
CREATE TABLE "references" (
"position" text,
"player" text,
"county_team" text,
"club_team_s" text,
"team_number" real
);
|
SELECT "position" FROM "references" WHERE "player"='john keane';
|
2-12380583-1
|
What was the loss of the game when the record was 27-17?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT "loss" FROM "game_log" WHERE "record"='27-17';
|
2-12206491-3
|
Which average purse was earned by Erika Wicoff and has a winner's share greater than $9,750?
|
CREATE TABLE "winners" (
"year" text,
"champion" text,
"country" text,
"score" text,
"purse" real,
"winner_s_share" real
);
|
SELECT AVG("purse") FROM "winners" WHERE "champion"='erika wicoff' AND "winner_s_share">'9,750';
|
2-12743746-1
|
What are the smallest goals with wins smaller than 16, and a Draws larger than 14?
|
CREATE TABLE "group_b_relegation" (
"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("goals_against") FROM "group_b_relegation" WHERE "wins"<16 AND "draws">14;
|
2-12109851-6
|
What are the average wins with a Points of 42-2, and Goals against of 67, and Played smaller than 44?
|
CREATE TABLE "group_b_relegation" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
|
SELECT AVG("wins") FROM "group_b_relegation" WHERE "points"='42-2' AND "goals_against"=67 AND "played"<44;
|
2-12109851-6
|
Which average wins have a Club of barcelona atlètic, and Goals for larger than 56?
|
CREATE TABLE "group_b_relegation" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
|
SELECT AVG("wins") FROM "group_b_relegation" WHERE "club"='barcelona atlètic' AND "goals_for">56;
|
2-12109851-6
|
Which lowest position has goals against smaller than 78, Points of 42-2, and Wins larger than 15?
|
CREATE TABLE "group_b_relegation" (
"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("position") FROM "group_b_relegation" WHERE "goals_against"<78 AND "points"='42-2' AND "wins">15;
|
2-12109851-6
|
Which lowest played has a Position of 2, and Goals against larger than 53?
|
CREATE TABLE "group_b_relegation" (
"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("played") FROM "group_b_relegation" WHERE "position"=2 AND "goals_against">53;
|
2-12109851-6
|
How many goal differences have Played larger than 44?
|
CREATE TABLE "group_b_relegation" (
"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 "group_b_relegation" WHERE "played">44;
|
2-12109851-6
|
What year was the race in Vienna, Austria?
|
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
|
SELECT MIN("year") FROM "achievements" WHERE "venue"='vienna, austria';
|
2-13252602-1
|
What event (Extra) in 2002 did the competitor compete in and place 8th?
|
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
|
SELECT "extra" FROM "achievements" WHERE "year"=2002 AND "result"='8th';
|
2-13252602-1
|
Where was the Olympic Games held?
|
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
|
SELECT "venue" FROM "achievements" WHERE "tournament"='olympic games';
|
2-13252602-1
|
That is the value for Try bonus when the value for Points is 418?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "try_bonus" FROM "2009_2010_table" WHERE "points_for"='418';
|
2-12886178-3
|
What is the Club, when the value for Played is 22, and when the value for Tries is 41?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "club" FROM "2009_2010_table" WHERE "played"='22' AND "tries_for"='41';
|
2-12886178-3
|
What is the value for Drawn, when the value for Losing bonus is 6?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "drawn" FROM "2009_2010_table" WHERE "losing_bonus"='6';
|
2-12886178-3
|
What is the value for Lost, when the value for Try bonus is 2, and when the value for Losing bonus is 4?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "lost" FROM "2009_2010_table" WHERE "try_bonus"='2' AND "losing_bonus"='4';
|
2-12886178-3
|
What is the Losing bonus, when the value for Points is 43?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "losing_bonus" FROM "2009_2010_table" WHERE "points"='43';
|
2-12886178-3
|
What is the Club, when the value for Lost is 9, and when the value for Tries is 55?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "club" FROM "2009_2010_table" WHERE "lost"='9' AND "tries_for"='55';
|
2-12886178-3
|
What is the largest draw with 37 games from England?
|
CREATE TABLE "managers_since_1970" (
"nationality" text,
"cambridge_united_career" text,
"games" real,
"drawn" real,
"lost" real,
"pct_won" text,
"pts_game" text
);
|
SELECT MAX("drawn") FROM "managers_since_1970" WHERE "nationality"='england' AND "games"=37;
|
2-12267709-1
|
How many draws have a Cambridge United career of 2008–2009 and less than 13 losses?
|
CREATE TABLE "managers_since_1970" (
"nationality" text,
"cambridge_united_career" text,
"games" real,
"drawn" real,
"lost" real,
"pct_won" text,
"pts_game" text
);
|
SELECT COUNT("drawn") FROM "managers_since_1970" WHERE "cambridge_united_career"='2008–2009' AND "lost"<13;
|
2-12267709-1
|
What was the record at the game when the score was 1–0?
|
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "record" FROM "game_log" WHERE "score"='1–0';
|
2-12791739-2
|
What was the score of the game when the record was 19–13–3?
|
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "score" FROM "game_log" WHERE "record"='19–13–3';
|
2-12791739-2
|
Who was the visiting team when the score was 1–3?
|
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "visitor" FROM "game_log" WHERE "score"='1–3';
|
2-12791739-2
|
Who was the home team when there was a record of 20–13–3?
|
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "home" FROM "game_log" WHERE "record"='20–13–3';
|
2-12791739-2
|
What was the date of the game with the record of 18–10–2?
|
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "date" FROM "game_log" WHERE "record"='18–10–2';
|
2-12791739-2
|
Visitor of minnesota has what average attendance?
|
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
|
SELECT AVG("attendance") FROM "december" WHERE "visitor"='minnesota';
|
2-13218650-4
|
Date of december 29 has what visitor?
|
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
|
SELECT "visitor" FROM "december" WHERE "date"='december 29';
|
2-13218650-4
|
Score of 2 – 3 has what attendance?
|
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
|
SELECT "attendance" FROM "december" WHERE "score"='2 – 3';
|
2-13218650-4
|
With a record of 48-51 for the team, the lowest 2005 attendance was listed as how many?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT MIN("attendance") FROM "game_log" WHERE "record"='48-51';
|
2-13041602-5
|
What would be the lowest Attendance that also showed a loss of Obermueller (1-2)?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT MIN("attendance") FROM "game_log" WHERE "loss"='obermueller (1-2)';
|
2-13041602-5
|
What was the stadium for the game held on October 31?
|
CREATE TABLE "2013_season" (
"week" real,
"date" text,
"visiting_team" text,
"host_team" text,
"stadium" text
);
|
SELECT "stadium" FROM "2013_season" WHERE "date"='october 31';
|
2-12771946-8
|
How many weeks in total were games played at Cleveland Browns Stadium?
|
CREATE TABLE "2013_season" (
"week" real,
"date" text,
"visiting_team" text,
"host_team" text,
"stadium" text
);
|
SELECT COUNT("week") FROM "2013_season" WHERE "stadium"='cleveland browns stadium';
|
2-12771946-8
|
What was the surface on 23 October 2011?
|
CREATE TABLE "singles_5_1_4" (
"outcome" text,
"date" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
|
SELECT "surface" FROM "singles_5_1_4" WHERE "date"='23 october 2011';
|
2-12450517-4
|
Which Notre Dame coach lost 15 games?
|
CREATE TABLE "coaching_records" (
"years" text,
"coach" text,
"seasons" real,
"wins" real,
"losses" real,
"ties" text,
"pct" text
);
|
SELECT "coach" FROM "coaching_records" WHERE "losses"=15;
|
2-1245667-6
|
How many losses did Notre Dame have in 1904?
|
CREATE TABLE "coaching_records" (
"years" text,
"coach" text,
"seasons" real,
"wins" real,
"losses" real,
"ties" text,
"pct" text
);
|
SELECT AVG("losses") FROM "coaching_records" WHERE "years"='1904';
|
2-1245667-6
|
What was the winning percent of Notre Dame in 1905?
|
CREATE TABLE "coaching_records" (
"years" text,
"coach" text,
"seasons" real,
"wins" real,
"losses" real,
"ties" text,
"pct" text
);
|
SELECT "pct" FROM "coaching_records" WHERE "years"='1905';
|
2-1245667-6
|
Who is the home captain that played at Edgbaston?
|
CREATE TABLE "australia_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
|
SELECT "home_captain" FROM "australia_in_england" WHERE "venue"='edgbaston';
|
2-12410929-26
|
Who is the home captain that played at Edgbaston?
|
CREATE TABLE "australia_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
|
SELECT "home_captain" FROM "australia_in_england" WHERE "venue"='edgbaston';
|
2-12410929-26
|
For the matches with home captain Graham Gooch played on the dates 3,4,5,6,7 June 1993, what was the result?
|
CREATE TABLE "australia_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
|
SELECT "result" FROM "australia_in_england" WHERE "home_captain"='graham gooch' AND "date"='3,4,5,6,7 june 1993';
|
2-12410929-26
|
What was the venue for the matches played on the dates 3,4,5,6,7 June 1993?
|
CREATE TABLE "australia_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
|
SELECT "venue" FROM "australia_in_england" WHERE "date"='3,4,5,6,7 june 1993';
|
2-12410929-26
|
Who was the away captain for matches played at Trent Bridge?
|
CREATE TABLE "australia_in_england" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
);
|
SELECT "away_captain" FROM "australia_in_england" WHERE "venue"='trent bridge';
|
2-12410929-26
|
Which rank is Hawthorn?
|
CREATE TABLE "most_career_games" (
"rank" real,
"games" real,
"player" text,
"club_clubs" text,
"career_span" text
);
|
SELECT "rank" FROM "most_career_games" WHERE "club_clubs"='hawthorn';
|
2-12161422-21
|
What is the First Performance when the status is past and the style was ballet, tap?
|
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
|
SELECT "first_performance" FROM "billy_elliot" WHERE "status"='past' AND "style"='ballet, tap';
|
2-12586867-22
|
What was the Last Performance when the status is current cast, and a Name of noah parets?
|
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
|
SELECT "last_performance" FROM "billy_elliot" WHERE "status"='current cast' AND "name"='noah parets';
|
2-12586867-22
|
What is the style for Giuseppe Bausilio?
|
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
|
SELECT "style" FROM "billy_elliot" WHERE "name"='giuseppe bausilio';
|
2-12586867-22
|
Which opponent has the event Jungle Fight 6?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "event"='jungle fight 6';
|
2-12763075-2
|
Which is the method under the event Jungle Fight 2?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
|
SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='jungle fight 2';
|
2-12763075-2
|
What is the total number of points when draw is 4?
|
CREATE TABLE "apertura_2004_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
|
SELECT COUNT("points") FROM "apertura_2004_standings" WHERE "draw"=4;
|
2-13018938-1
|
what is the goals scored when draw is less than 8, points is 19 and goals conceded is more than 26?
|
CREATE TABLE "apertura_2004_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
|
SELECT SUM("goals_scored") FROM "apertura_2004_standings" WHERE "draw"<8 AND "points"=19 AND "goals_conceded">26;
|
2-13018938-1
|
what is the points when the goals conceded is less than 24, place is less than 6 and goals scored is less than 26?
|
CREATE TABLE "apertura_2004_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
|
SELECT SUM("points") FROM "apertura_2004_standings" WHERE "goals_conceded"<24 AND "place"<6 AND "goals_scored"<26;
|
2-13018938-1
|
what is the place when losses is less than 12 and points is less than 19?
|
CREATE TABLE "apertura_2004_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
|
SELECT SUM("place") FROM "apertura_2004_standings" WHERE "lost"<12 AND "points"<19;
|
2-13018938-1
|
what is the average place when lost is more than 12?
|
CREATE TABLE "apertura_2004_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
|
SELECT AVG("place") FROM "apertura_2004_standings" WHERE "lost">12;
|
2-13018938-1
|
In what Year were there 48 of 120 Seats and a % votes larger than 34.18?
|
CREATE TABLE "chamber_of_deputies_election" (
"year" real,
"designation" text,
"pct_votes" real,
"seats" text,
"pct_seats" real
);
|
SELECT SUM("year") FROM "chamber_of_deputies_election" WHERE "seats"='48 of 120' AND "pct_votes">34.18;
|
2-1311781-2
|
After 1993, what is the Seats with a % votes of 38.72?
|
CREATE TABLE "chamber_of_deputies_election" (
"year" real,
"designation" text,
"pct_votes" real,
"seats" text,
"pct_seats" real
);
|
SELECT "seats" FROM "chamber_of_deputies_election" WHERE "year">1993 AND "pct_votes"=38.72;
|
2-1311781-2
|
What is the highest Isolation (km) when the elevation was smaller than 1320, and a Municipality of hinnøya?
|
CREATE TABLE "see_also" (
"peak" text,
"elevation_m" real,
"prominence_m" real,
"isolation_km" real,
"municipality" text,
"county" text
);
|
SELECT MAX("isolation_km") FROM "see_also" WHERE "elevation_m"<1320 AND "municipality"='hinnøya';
|
2-12280396-1
|
What is the average Isolation in the municipality of Sunndal at an elevation of more than 1850?
|
CREATE TABLE "see_also" (
"peak" text,
"elevation_m" real,
"prominence_m" real,
"isolation_km" real,
"municipality" text,
"county" text
);
|
SELECT AVG("isolation_km") FROM "see_also" WHERE "municipality"='sunndal' AND "elevation_m">1850;
|
2-12280396-1
|
What is the highest elevation for the peak daurmål, and an Isolation (km) larger than 4?
|
CREATE TABLE "see_also" (
"peak" text,
"elevation_m" real,
"prominence_m" real,
"isolation_km" real,
"municipality" text,
"county" text
);
|
SELECT MAX("elevation_m") FROM "see_also" WHERE "peak"='daurmål' AND "isolation_km">4;
|
2-12280396-1
|
What country has an Elevation less than 1833 and an Isolation (km) larger than 18, and a Peak of store lenangstind?
|
CREATE TABLE "see_also" (
"peak" text,
"elevation_m" real,
"prominence_m" real,
"isolation_km" real,
"municipality" text,
"county" text
);
|
SELECT "county" FROM "see_also" WHERE "elevation_m"<1833 AND "isolation_km">18 AND "peak"='store lenangstind';
|
2-12280396-1
|
What country has a prominence less than 1292 and an Isolation (km) of 14?
|
CREATE TABLE "see_also" (
"peak" text,
"elevation_m" real,
"prominence_m" real,
"isolation_km" real,
"municipality" text,
"county" text
);
|
SELECT "county" FROM "see_also" WHERE "prominence_m"<1292 AND "isolation_km"=14;
|
2-12280396-1
|
Which lane did George Bovell swim in?
|
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT SUM("lane") FROM "heats" WHERE "name"='george bovell';
|
2-12386222-3
|
What is the average of the top-25 with 16 cuts and less than 23 events?
|
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
|
SELECT AVG("top_25") FROM "summary" WHERE "cuts_made"=16 AND "events"<23;
|
2-1221065-10
|
What is the highest top-25 with more than 9 top-10 but less than 29 events?
|
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
|
SELECT MAX("top_25") FROM "summary" WHERE "top_10">9 AND "events"<29;
|
2-1221065-10
|
What's the Overall average that has brad scioli, and a Pick # larger than 5?
|
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
|
SELECT AVG("overall") FROM "indianapolis_colts_draft_history" WHERE "name"='brad scioli' AND "pick_num">5;
|
2-13312898-47
|
What's the lowest Overall average that has a College of Arkansas, and a Round larger than 3?
|
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
|
SELECT MIN("overall") FROM "indianapolis_colts_draft_history" WHERE "college"='arkansas' AND "round">3;
|
2-13312898-47
|
Which highest Overall has a Pick # of 4, and a Round larger than 7?
|
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
|
SELECT MAX("overall") FROM "indianapolis_colts_draft_history" WHERE "pick_num"=4 AND "round">7;
|
2-13312898-47
|
What's the overall average that has a round less than 7, and a Pick # of 4?
|
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
|
SELECT AVG("overall") FROM "indianapolis_colts_draft_history" WHERE "round"<7 AND "pick_num"=4;
|
2-13312898-47
|
Who is the no. 4 team that has the no. 5 player Susana Telmo?
|
CREATE TABLE "nominations" (
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"intruder" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"final" text
);
|
SELECT "no_4" FROM "nominations" WHERE "no_5"='susana telmo';
|
2-12531692-2
|
Who is the no. 9 team that has a no. 6 player of paulo?
|
CREATE TABLE "nominations" (
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"intruder" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"final" text
);
|
SELECT "no_9" FROM "nominations" WHERE "no_6"='paulo';
|
2-12531692-2
|
Who this the no. 8 team that has a no. 9 player, Telmo?
|
CREATE TABLE "nominations" (
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"intruder" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"final" text
);
|
SELECT "no_8" FROM "nominations" WHERE "no_9"='telmo';
|
2-12531692-2
|
Name the nickname with age of 4.9
|
CREATE TABLE "geography_and_environment" (
"island" text,
"nickname" text,
"area" text,
"population_as_of_2010" real,
"highest_point" text,
"elevation" text,
"age_ma" text
);
|
SELECT "nickname" FROM "geography_and_environment" WHERE "age_ma"='4.9';
|
2-13270-1
|
Name the island with age ma of 1.0
|
CREATE TABLE "geography_and_environment" (
"island" text,
"nickname" text,
"area" text,
"population_as_of_2010" real,
"highest_point" text,
"elevation" text,
"age_ma" text
);
|
SELECT "island" FROM "geography_and_environment" WHERE "age_ma"='1.0';
|
2-13270-1
|
Name the elevation of the gathering place
|
CREATE TABLE "geography_and_environment" (
"island" text,
"nickname" text,
"area" text,
"population_as_of_2010" real,
"highest_point" text,
"elevation" text,
"age_ma" text
);
|
SELECT "elevation" FROM "geography_and_environment" WHERE "nickname"='the gathering place';
|
2-13270-1
|
Name the most point with population less than 144,444 and age of 1.0
|
CREATE TABLE "geography_and_environment" (
"island" text,
"nickname" text,
"area" text,
"population_as_of_2010" real,
"highest_point" text,
"elevation" text,
"age_ma" text
);
|
SELECT "highest_point" FROM "geography_and_environment" WHERE "population_as_of_2010"<'144,444' AND "age_ma"='1.0';
|
2-13270-1
|
Who won when mahesh manjrekar was the 2nd runner-up?
|
CREATE TABLE "series_winners" (
"season" real,
"season_premiere_date" text,
"season_finale_date" text,
"winner" text,
"1st_runner_up" text,
"2nd_runner_up" text
);
|
SELECT "winner" FROM "series_winners" WHERE "2nd_runner_up"='mahesh manjrekar';
|
2-13133962-1
|
When was the season finale of a show with season premiere on 12 December 2010?
|
CREATE TABLE "series_winners" (
"season" real,
"season_premiere_date" text,
"season_finale_date" text,
"winner" text,
"1st_runner_up" text,
"2nd_runner_up" text
);
|
SELECT "season_finale_date" FROM "series_winners" WHERE "season_premiere_date"='12 december 2010';
|
2-13133962-1
|
Game site of kingdome, and a Result of w 24-6 has what record?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
|
SELECT "record" FROM "schedule" WHERE "game_site"='kingdome' AND "result"='w 24-6';
|
2-13258876-2
|
Attendance larger than 60,967, and a Opponent of at cleveland browns has what record?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
|
SELECT "record" FROM "schedule" WHERE "attendance">'60,967' AND "opponent"='at cleveland browns';
|
2-13258876-2
|
Date of september 25, 1983 is what game site?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
|
SELECT "game_site" FROM "schedule" WHERE "date"='september 25, 1983';
|
2-13258876-2
|
What stadium held the game that had a score of 6–3?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"stadium" text
);
|
SELECT "stadium" FROM "game_log" WHERE "score"='6–3';
|
2-12238353-15
|
What was the date of the game that had a loss of Reed (0–2)?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"stadium" text
);
|
SELECT "date" FROM "game_log" WHERE "loss"='reed (0–2)';
|
2-12238353-15
|
What was the date of the game attended by more than 44,835 with a record of 0–1?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"stadium" text
);
|
SELECT "date" FROM "game_log" WHERE "attendance">'44,835' AND "record"='0–1';
|
2-12238353-15
|
On which Date was there a record of 11-8?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "date" FROM "game_log" WHERE "record"='11-8';
|
2-12207528-2
|
How many podiums associated with 1 vuelta and over 7 tours?
|
CREATE TABLE "most_grand_tour_podiums" (
"name" text,
"tour" real,
"giro" real,
"vuelta" real,
"total" real
);
|
SELECT COUNT("total") FROM "most_grand_tour_podiums" WHERE "vuelta"=1 AND "tour">7;
|
2-1286819-4
|
What is the total for miguel induráin with a Vuelta larger than 1?
|
CREATE TABLE "most_grand_tour_podiums" (
"name" text,
"tour" real,
"giro" real,
"vuelta" real,
"total" real
);
|
SELECT MIN("total") FROM "most_grand_tour_podiums" WHERE "name"='miguel induráin' AND "vuelta">1;
|
2-1286819-4
|
What is the grid associated with a Time/Retired of + 1 lap, and under 7 points?
|
CREATE TABLE "race" (
"name" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
|
SELECT MIN("grid") FROM "race" WHERE "time_retired"='+ 1 lap' AND "points"<7;
|
2-12933450-2
|
What grid is associated with 67 laps?
|
CREATE TABLE "race" (
"name" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
|
SELECT "grid" FROM "race" WHERE "laps"=67;
|
2-12933450-2
|
Name the nation for 8 june 1983 for marlies gohr
|
CREATE TABLE "all_time_top_25_women" (
"rank" real,
"time" text,
"wind_m_s" text,
"athlete" text,
"nation" text,
"date" text,
"location" text
);
|
SELECT "nation" FROM "all_time_top_25_women" WHERE "date"='8 june 1983' AND "athlete"='marlies gohr';
|
2-1231316-3
|
Name the athlete for bulgaria with rank less than 22
|
CREATE TABLE "all_time_top_25_women" (
"rank" real,
"time" text,
"wind_m_s" text,
"athlete" text,
"nation" text,
"date" text,
"location" text
);
|
SELECT "athlete" FROM "all_time_top_25_women" WHERE "rank"<22 AND "nation"='bulgaria';
|
2-1231316-3
|
What engine was used by Ram Penthouse Rizla Racing in 1978?
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" real
);
|
SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "year">1978 AND "entrant"='ram penthouse rizla racing';
|
2-1226565-1
|
Which College has a Year smaller than 1962, and a Position of rb?
|
CREATE TABLE "players_selected" (
"year" real,
"pick" text,
"player_name" text,
"college" text,
"position" text
);
|
SELECT "college" FROM "players_selected" WHERE "year"<1962 AND "position"='rb';
|
2-12392214-1
|
Which Year has a College of nebraska, and a Pick of 2?
|
CREATE TABLE "players_selected" (
"year" real,
"pick" text,
"player_name" text,
"college" text,
"position" text
);
|
SELECT "year" FROM "players_selected" WHERE "college"='nebraska' AND "pick"='2';
|
2-12392214-1
|
Which Pick has a Year larger than 1983, and a Player name of brian jozwiak?
|
CREATE TABLE "players_selected" (
"year" real,
"pick" text,
"player_name" text,
"college" text,
"position" text
);
|
SELECT "pick" FROM "players_selected" WHERE "year">1983 AND "player_name"='brian jozwiak';
|
2-12392214-1
|
Which lowest year has a Position of rb, and a College of louisiana state?
|
CREATE TABLE "players_selected" (
"year" real,
"pick" text,
"player_name" text,
"college" text,
"position" text
);
|
SELECT MIN("year") FROM "players_selected" WHERE "position"='rb' AND "college"='louisiana state';
|
2-12392214-1
|
How many years have a Player name of ronnie bull?
|
CREATE TABLE "players_selected" (
"year" real,
"pick" text,
"player_name" text,
"college" text,
"position" text
);
|
SELECT SUM("year") FROM "players_selected" WHERE "player_name"='ronnie bull';
|
2-12392214-1
|
Who was the recipient of an award of £4,203?
|
CREATE TABLE "2005" (
"film" text,
"director_s" text,
"producer_s" text,
"recipient" text,
"date" text,
"award" text
);
|
SELECT "recipient" FROM "2005" WHERE "award"='£4,203';
|
2-12181447-6
|
Who directed the film that received an award of £6,245?
|
CREATE TABLE "2005" (
"film" text,
"director_s" text,
"producer_s" text,
"recipient" text,
"date" text,
"award" text
);
|
SELECT "director_s" FROM "2005" WHERE "award"='£6,245';
|
2-12181447-6
|
Who directed the film that Avie Luthra received an award for?
|
CREATE TABLE "2005" (
"film" text,
"director_s" text,
"producer_s" text,
"recipient" text,
"date" text,
"award" text
);
|
SELECT "director_s" FROM "2005" WHERE "recipient"='avie luthra';
|
2-12181447-6
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.