question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Who is the athlete who was picked before round 9, had an overall draft pick after number 143 and plays the position of db? | CREATE TABLE "1980_packers_draft_selections" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
); | SELECT "player" FROM "1980_packers_draft_selections" WHERE "round"<9 AND "overall">143 AND "position"='db'; | 2-14656102-1 |
What is the highest round of the player with an overall of 152? | CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "overall"=152; | 2-15198842-20 |
What is the average round of the defensive back player with a pick # greater than 5 and an overall less than 152? | CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT AVG("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num">5 AND "position"='defensive back' AND "overall"<152; | 2-15198842-20 |
What is the average overall of John Ayres, who had a pick # greater than 4? | CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT AVG("overall") FROM "atlanta_falcons_draft_history" WHERE "name"='john ayres' AND "pick_num">4; | 2-15198842-20 |
What is the name of the player with a pick # less than 5 and an overall of 284? | 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"<5 AND "overall"=284; | 2-15198842-20 |
What is the average overall of Ken Whisenhunt, who has a pick # of 5? | CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT AVG("overall") FROM "atlanta_falcons_draft_history" WHERE "pick_num"=5 AND "name"='ken whisenhunt'; | 2-15198842-20 |
What is the lowest pick # of John Ayres? | CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT MIN("pick_num") FROM "atlanta_falcons_draft_history" WHERE "name"='john ayres'; | 2-15198842-20 |
What is the name of team with Palmeiras 4-2 portuguesa as the last match? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"last_match" text,
"replaced_by" text
); | SELECT "team" FROM "managerial_changes" WHERE "last_match"='palmeiras 4-2 portuguesa'; | 2-14406743-5 |
What was the manner of departure replaced by tita? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"last_match" text,
"replaced_by" text
); | SELECT "manner_of_departure" FROM "managerial_changes" WHERE "replaced_by"='tita'; | 2-14406743-5 |
What is the name of the last match that had a sacked manner of departure and a geninho outgoing manner? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"last_match" text,
"replaced_by" text
); | SELECT "last_match" FROM "managerial_changes" WHERE "manner_of_departure"='sacked' AND "outgoing_manager"='geninho'; | 2-14406743-5 |
What is the last match with a vacancy date of round 2 and Ney Franco as outgoing manager? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"last_match" text,
"replaced_by" text
); | SELECT "last_match" FROM "managerial_changes" WHERE "date_of_vacancy"='round 2' AND "outgoing_manager"='ney franco'; | 2-14406743-5 |
What is the last match with a resigned manner of departure and a round 1 date of vacancy? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"last_match" text,
"replaced_by" text
); | SELECT "last_match" FROM "managerial_changes" WHERE "manner_of_departure"='resigned' AND "date_of_vacancy"='round 1'; | 2-14406743-5 |
What was the issue date for the single with a Volume:Issue of 47:8-9? | CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" real,
"song" text,
"artist" text
); | SELECT "issue_date_s" FROM "see_also" WHERE "volume_issue"='47:8-9'; | 2-15174451-1 |
What is the highest effic with an avg/g of 91.9? | CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
"effic" real,
"att_cmp_int" text,
"avg_g" real
); | SELECT MAX("effic") FROM "passing" WHERE "avg_g"=91.9; | 2-15019672-22 |
What is the att-cmp-int with an effic smaller than 117.88 and a gp-gs of 10-0? | CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
"effic" real,
"att_cmp_int" text,
"avg_g" real
); | SELECT "att_cmp_int" FROM "passing" WHERE "effic"<117.88 AND "gp_gs"='10-0'; | 2-15019672-22 |
What is the sum avg/g with an effic of 858.4? | CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
"effic" real,
"att_cmp_int" text,
"avg_g" real
); | SELECT SUM("avg_g") FROM "passing" WHERE "effic"=858.4; | 2-15019672-22 |
What is the mascot for the school in 32 Hendricks County? | CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
); | SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "county"='32 hendricks'; | 2-13986492-11 |
What is the mascot for the school with a student body larger than 2,191 in Noblesville? | CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
); | SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "enrollment">'2,191' AND "school"='noblesville'; | 2-13986492-11 |
Where is Lafayette T. Jefferson School in 79 Tippecanoe county? | CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
); | SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "county"='79 tippecanoe' AND "school"='lafayette t. jefferson'; | 2-13986492-11 |
Where is the school with Royals as their mascot? | CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
); | SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='royals'; | 2-13986492-11 |
What was the score for the game on February 12? | CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "score" FROM "game_log" WHERE "date"='february 12'; | 2-14083524-6 |
What was the score for the game on February 29? | CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "score" FROM "game_log" WHERE "date"='february 29'; | 2-14083524-6 |
Where was the home team in the game played against Chicago? | CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "home" FROM "game_log" WHERE "visitor"='chicago'; | 2-14083524-6 |
Which Season has a Game of fcs midwest region, and a Score of 40-33? | CREATE TABLE "fcs_regional_championship_games" (
"season" real,
"game" text,
"record" text,
"opponent" text,
"score" text,
"result" text
); | SELECT MAX("season") FROM "fcs_regional_championship_games" WHERE "game"='fcs midwest region' AND "score"='40-33'; | 2-14133106-2 |
Which Game has a Result of win, and an Opponent of new hampshire, and a Season smaller than 2008? | CREATE TABLE "fcs_regional_championship_games" (
"season" real,
"game" text,
"record" text,
"opponent" text,
"score" text,
"result" text
); | SELECT "game" FROM "fcs_regional_championship_games" WHERE "result"='win' AND "opponent"='new hampshire' AND "season"<2008; | 2-14133106-2 |
Which Season has a Score of 39-27? | CREATE TABLE "fcs_regional_championship_games" (
"season" real,
"game" text,
"record" text,
"opponent" text,
"score" text,
"result" text
); | SELECT MAX("season") FROM "fcs_regional_championship_games" WHERE "score"='39-27'; | 2-14133106-2 |
What result has a goal of 5? | CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "result" FROM "international_goals" WHERE "goal"=5; | 2-14394530-1 |
What's the record on May 25? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "game_log" WHERE "date"='may 25'; | 2-14026681-4 |
What's greatest attendance on May 7? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT MAX("attendance") FROM "game_log" WHERE "date"='may 7'; | 2-14026681-4 |
Which January has a Record of 28–14–8? | CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT "january" FROM "regular_season" WHERE "record"='28–14–8'; | 2-14311305-5 |
Which Points is the highest one that has a Game smaller than 43, and a January larger than 8? | CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT MAX("points") FROM "regular_season" WHERE "game"<43 AND "january">8; | 2-14311305-5 |
What is the mean number of wins for the norton team in 1966, when there are 8 points? | CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
); | SELECT AVG("wins") FROM "motorcycle_grand_prix_results" WHERE "team"='norton' AND "year"=1966 AND "points"=8; | 2-15212423-2 |
What is the most recent year for the ajs team when there are fewer than 0 wins? | CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
); | SELECT MAX("year") FROM "motorcycle_grand_prix_results" WHERE "team"='ajs' AND "wins"<0; | 2-15212423-2 |
What is the smallest point amount for years prior to 1958 when the class is 350cc? | CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
); | SELECT MIN("points") FROM "motorcycle_grand_prix_results" WHERE "year"<1958 AND "class"='350cc'; | 2-15212423-2 |
What is the largest amount of wins when there are less than 5 points, the class is 500cc, the team is norton, and the year is more recent than 1955? | CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
); | SELECT MAX("wins") FROM "motorcycle_grand_prix_results" WHERE "points"<5 AND "class"='500cc' AND "team"='norton' AND "year">1955; | 2-15212423-2 |
What was the first prize for the FTOPS XIII series with more than 5,291 entrants? | CREATE TABLE "ftops_main_event_winners" (
"series" text,
"date" text,
"entrants" real,
"winner" text,
"first_prize" text
); | SELECT "first_prize" FROM "ftops_main_event_winners" WHERE "entrants">'5,291' AND "series"='ftops xiii'; | 2-14442986-1 |
When was the game that had a first prize of $161,480? | CREATE TABLE "ftops_main_event_winners" (
"series" text,
"date" text,
"entrants" real,
"winner" text,
"first_prize" text
); | SELECT "date" FROM "ftops_main_event_winners" WHERE "first_prize"='$161,480'; | 2-14442986-1 |
Who won on May 2011? | CREATE TABLE "ftops_main_event_winners" (
"series" text,
"date" text,
"entrants" real,
"winner" text,
"first_prize" text
); | SELECT "winner" FROM "ftops_main_event_winners" WHERE "date"='may 2011'; | 2-14442986-1 |
What is the general classification with a 13 stage? | CREATE TABLE "classification_leadership" (
"stage" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text
); | SELECT "general_classification" FROM "classification_leadership" WHERE "stage"='13'; | 2-14710984-2 |
What is teh stage with Daniele Bennati as the points classification and Giovanni VIsconti as the general classification? | CREATE TABLE "classification_leadership" (
"stage" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text
); | SELECT "stage" FROM "classification_leadership" WHERE "points_classification"='daniele bennati' AND "general_classification"='giovanni visconti'; | 2-14710984-2 |
What is the general classification of the stage 3 with Daniele Bennati as the points classification and Morris Possoni as the young rider classification. | CREATE TABLE "classification_leadership" (
"stage" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text
); | SELECT "general_classification" FROM "classification_leadership" WHERE "points_classification"='daniele bennati' AND "young_rider_classification"='morris possoni' AND "stage"='3'; | 2-14710984-2 |
What is the general classification with riccardo riccò as the young rider classification? | CREATE TABLE "classification_leadership" (
"stage" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text
); | SELECT "general_classification" FROM "classification_leadership" WHERE "young_rider_classification"='riccardo riccò'; | 2-14710984-2 |
What is the point classification with chris anker sørensen as the young rider classification and Christian vande velde as the general classification? | CREATE TABLE "classification_leadership" (
"stage" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text
); | SELECT "points_classification" FROM "classification_leadership" WHERE "young_rider_classification"='chris anker sørensen' AND "general_classification"='christian vande velde'; | 2-14710984-2 |
What is the point classification of stage 15? | CREATE TABLE "classification_leadership" (
"stage" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text
); | SELECT "points_classification" FROM "classification_leadership" WHERE "stage"='15'; | 2-14710984-2 |
what week number was at memorial stadium? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
); | SELECT AVG("week") FROM "schedule" WHERE "game_site"='memorial stadium'; | 2-13782583-1 |
before week 12 what was the attendance on 1983-11-21? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
); | SELECT SUM("attendance") FROM "schedule" WHERE "date"='1983-11-21' AND "week"<12; | 2-13782583-1 |
on week 16, what was the lowest attendance? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
); | SELECT MIN("attendance") FROM "schedule" WHERE "week"=16; | 2-13782583-1 |
Who won the women's doubles when andrey antropov won the men's singles and marina yakusheva won the womens' singles? | CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT "women_s_doubles" FROM "past_winners" WHERE "men_s_singles"='andrey antropov' AND "women_s_singles"='marina yakusheva'; | 2-13857295-1 |
At what venue is the margin of victory 7 strokes? | CREATE TABLE "lpga_event" (
"year" real,
"date" text,
"venue" text,
"champion" text,
"country" text,
"score" real,
"to_par" text,
"margin_of_victory" text,
"purse" real,
"winner_s_share" real
); | SELECT "venue" FROM "lpga_event" WHERE "margin_of_victory"='7 strokes'; | 2-1520559-2 |
What was the purse when Sherri Steinhauer was champion at Woburn Golf and Country Club? | CREATE TABLE "lpga_event" (
"year" real,
"date" text,
"venue" text,
"champion" text,
"country" text,
"score" real,
"to_par" text,
"margin_of_victory" text,
"purse" real,
"winner_s_share" real
); | SELECT COUNT("purse") FROM "lpga_event" WHERE "champion"='sherri steinhauer' AND "venue"='woburn golf and country club'; | 2-1520559-2 |
What is the exit date of the player who transferred to Cardiff City? | CREATE TABLE "first_team" (
"exit_date" text,
"pos" text,
"player" text,
"to_club" text,
"transfer_fee" text
); | SELECT "exit_date" FROM "first_team" WHERE "to_club"='cardiff city'; | 2-14986996-16 |
What is the exit date of the player who transferred to Portsmouth? | CREATE TABLE "first_team" (
"exit_date" text,
"pos" text,
"player" text,
"to_club" text,
"transfer_fee" text
); | SELECT "exit_date" FROM "first_team" WHERE "to_club"='portsmouth'; | 2-14986996-16 |
Which player has a position of FW? | CREATE TABLE "first_team" (
"exit_date" text,
"pos" text,
"player" text,
"to_club" text,
"transfer_fee" text
); | SELECT "player" FROM "first_team" WHERE "pos"='fw'; | 2-14986996-16 |
Which Frequency MHz has an ERP W larger than 4, and a Call sign of w218ap? | CREATE TABLE "repeaters" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"fcc_info" text
); | SELECT "frequency_m_hz" FROM "repeaters" WHERE "erp_w">4 AND "call_sign"='w218ap'; | 2-14163566-1 |
Which City of license has a Frequency MHz of 91.5 fm? | CREATE TABLE "repeaters" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"fcc_info" text
); | SELECT "city_of_license" FROM "repeaters" WHERE "frequency_m_hz"='91.5 fm'; | 2-14163566-1 |
Which City of license has a Call sign of w220ba? | CREATE TABLE "repeaters" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"fcc_info" text
); | SELECT "city_of_license" FROM "repeaters" WHERE "call_sign"='w220ba'; | 2-14163566-1 |
Which ERP W has a Frequency MHz of 89.3 fm? | CREATE TABLE "repeaters" (
"call_sign" text,
"frequency_m_hz" text,
"city_of_license" text,
"erp_w" real,
"fcc_info" text
); | SELECT MAX("erp_w") FROM "repeaters" WHERE "frequency_m_hz"='89.3 fm'; | 2-14163566-1 |
How many wins does a player who have $7,188,408 earnings with lower than rank 5? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT MIN("wins") FROM "leaders" WHERE "earnings"='7,188,408' AND "rank">5; | 2-14611590-4 |
How many wins does Greg Norman have? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT SUM("wins") FROM "leaders" WHERE "player"='greg norman'; | 2-14611590-4 |
What is the lowest number played with a position of 6 and less than 1 draw? | CREATE TABLE "campeonato_brasileiro_s_rie_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"won_by_2_or_more_goals_difference" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT MIN("played") FROM "campeonato_brasileiro_s_rie_a" WHERE "position"=6 AND "drawn"<1; | 2-15172914-2 |
What is the highest against value for Palmeiras and position less than 4? | CREATE TABLE "campeonato_brasileiro_s_rie_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"won_by_2_or_more_goals_difference" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT MAX("against") FROM "campeonato_brasileiro_s_rie_a" WHERE "team"='palmeiras' AND "position"<4; | 2-15172914-2 |
What is the highest number played with more than 2 lost for Palmeiras and less than 1 draw? | CREATE TABLE "campeonato_brasileiro_s_rie_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"won_by_2_or_more_goals_difference" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT MAX("played") FROM "campeonato_brasileiro_s_rie_a" WHERE "lost">2 AND "team"='palmeiras' AND "drawn"<1; | 2-15172914-2 |
What is the average number lost when the against value is less than 5? | CREATE TABLE "campeonato_brasileiro_s_rie_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"won_by_2_or_more_goals_difference" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT AVG("lost") FROM "campeonato_brasileiro_s_rie_a" WHERE "against"<5; | 2-15172914-2 |
How many values for a win by 2 or more goals correspond to a difference of 2, more than 9 points, and the America-RJ team when more than 7 are played? | CREATE TABLE "campeonato_brasileiro_s_rie_a" (
"position" real,
"team" text,
"points" real,
"played" real,
"won_by_2_or_more_goals_difference" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT COUNT("won_by_2_or_more_goals_difference") FROM "campeonato_brasileiro_s_rie_a" WHERE "difference"='2' AND "points">9 AND "team"='america-rj' AND "played">7; | 2-15172914-2 |
What is the average total of the census after 1971 with 10,412 (32.88%) Serbs? | CREATE TABLE "national_structure_of_the_population_in_" (
"year_of_census" real,
"total" real,
"croats" text,
"serbs" text,
"others" text
); | SELECT AVG("total") FROM "national_structure_of_the_population_in_" WHERE "year_of_census">1971 AND "serbs"='10,412 (32.88%)'; | 2-149283-2 |
what is the school that hosts jim goodman | CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
); | SELECT "school_club_team" FROM "nfl_draft" WHERE "player"='jim goodman'; | 2-14877732-1 |
Which Surface has a Date of january 2, 2006? | CREATE TABLE "singles_6" (
"date" text,
"tournament" text,
"surface" text,
"opponen" text,
"score" text
); | SELECT "surface" FROM "singles_6" WHERE "date"='january 2, 2006'; | 2-14924949-9 |
Which tournament happened on september 25, 2006? | CREATE TABLE "singles_6" (
"date" text,
"tournament" text,
"surface" text,
"opponen" text,
"score" text
); | SELECT "tournament" FROM "singles_6" WHERE "date"='september 25, 2006'; | 2-14924949-9 |
When did joão souza play? | CREATE TABLE "singles_6" (
"date" text,
"tournament" text,
"surface" text,
"opponen" text,
"score" text
); | SELECT "date" FROM "singles_6" WHERE "opponen"='joão souza'; | 2-14924949-9 |
Which Surface has a Score of 7–5, 6–4? | CREATE TABLE "singles_6" (
"date" text,
"tournament" text,
"surface" text,
"opponen" text,
"score" text
); | SELECT "surface" FROM "singles_6" WHERE "score"='7–5, 6–4'; | 2-14924949-9 |
What is the highest NFL Draft that has jeff robinson as the player, with an overall pick less than 98? | CREATE TABLE "top_nfl_draft_selections" (
"player" text,
"position" text,
"overall_pick" real,
"round" text,
"nfl_draft" real,
"franchise" text
); | SELECT MAX("nfl_draft") FROM "top_nfl_draft_selections" WHERE "player"='jeff robinson' AND "overall_pick"<98; | 2-15164733-4 |
What position has 1958 as the NFL Draft, and jerry kramer as the player? | CREATE TABLE "top_nfl_draft_selections" (
"player" text,
"position" text,
"overall_pick" real,
"round" text,
"nfl_draft" real,
"franchise" text
); | SELECT "position" FROM "top_nfl_draft_selections" WHERE "nfl_draft"=1958 AND "player"='jerry kramer'; | 2-15164733-4 |
What is the highest overall pick that has c as the position, with an NFL Draft greater than 1977? | CREATE TABLE "top_nfl_draft_selections" (
"player" text,
"position" text,
"overall_pick" real,
"round" text,
"nfl_draft" real,
"franchise" text
); | SELECT MAX("overall_pick") FROM "top_nfl_draft_selections" WHERE "position"='c' AND "nfl_draft">1977; | 2-15164733-4 |
What was the score at Spartan Stadium when San Jose was the Home team? | CREATE TABLE "mls_regular_season" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
); | SELECT "score" FROM "mls_regular_season" WHERE "home_team"='san jose' AND "venue"='spartan stadium'; | 2-14431699-3 |
Where was the game on September 11, 2004? | CREATE TABLE "mls_regular_season" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
); | SELECT "venue" FROM "mls_regular_season" WHERE "date"='september 11, 2004'; | 2-14431699-3 |
Who was the home team on September 20, 1998 at Spartan Stadium? | CREATE TABLE "mls_regular_season" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
); | SELECT "home_team" FROM "mls_regular_season" WHERE "venue"='spartan stadium' AND "date"='september 20, 1998'; | 2-14431699-3 |
What method has a round less than 3, and 3:36 as the time? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" real,
"time" text,
"location" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"<3 AND "time"='3:36'; | 2-14344822-2 |
What method has randy couture as the opponent? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"round" real,
"time" text,
"location" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='randy couture'; | 2-14344822-2 |
What is the median household income where the per capita is $28,789? | CREATE TABLE "counties" (
"county" text,
"population" real,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text
); | SELECT "median_household_income" FROM "counties" WHERE "per_capita_income"='$28,789'; | 2-1356555-2 |
What is the median income for a family whose per capita income is $18,296? | CREATE TABLE "counties" (
"county" text,
"population" real,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text
); | SELECT "median_family_income" FROM "counties" WHERE "per_capita_income"='$18,296'; | 2-1356555-2 |
What is the resolution of the network Canal de las Estrellas? | CREATE TABLE "television" (
"dish" text,
"callsign" text,
"network" text,
"resolution" text,
"city_of_license" text,
"official_website" text
); | SELECT "resolution" FROM "television" WHERE "network"='canal de las estrellas'; | 2-136773-8 |
What is the resolution of the network Carismatv? | CREATE TABLE "television" (
"dish" text,
"callsign" text,
"network" text,
"resolution" text,
"city_of_license" text,
"official_website" text
); | SELECT "resolution" FROM "television" WHERE "network"='carismatv'; | 2-136773-8 |
Which dish belongs to the network that has the official website of ksat.com? | CREATE TABLE "television" (
"dish" text,
"callsign" text,
"network" text,
"resolution" text,
"city_of_license" text,
"official_website" text
); | SELECT "dish" FROM "television" WHERE "official_website"='ksat.com'; | 2-136773-8 |
In which city is the network latv licensed? | CREATE TABLE "television" (
"dish" text,
"callsign" text,
"network" text,
"resolution" text,
"city_of_license" text,
"official_website" text
); | SELECT "city_of_license" FROM "television" WHERE "network"='latv'; | 2-136773-8 |
In which city is the network with the callsign kgns-dt3 licensed? | CREATE TABLE "television" (
"dish" text,
"callsign" text,
"network" text,
"resolution" text,
"city_of_license" text,
"official_website" text
); | SELECT "city_of_license" FROM "television" WHERE "callsign"='kgns-dt3'; | 2-136773-8 |
How many in the introduced section had Fokker as a manufacturer, a quantity of 5, and retired later than 1999? | CREATE TABLE "list_of_braathens_aircraft" (
"manufacturer" text,
"model" text,
"quantity" real,
"introduced" real,
"retired" real
); | SELECT SUM("introduced") FROM "list_of_braathens_aircraft" WHERE "manufacturer"='fokker' AND "quantity"=5 AND "retired">1999; | 2-150761-1 |
What is the total number of quantity when the introductory year was 1984? | CREATE TABLE "list_of_braathens_aircraft" (
"manufacturer" text,
"model" text,
"quantity" real,
"introduced" real,
"retired" real
); | SELECT SUM("quantity") FROM "list_of_braathens_aircraft" WHERE "introduced"=1984; | 2-150761-1 |
How many in the introduced segment retired later than 1994 and had Fokker as a manufacturer? | CREATE TABLE "list_of_braathens_aircraft" (
"manufacturer" text,
"model" text,
"quantity" real,
"introduced" real,
"retired" real
); | SELECT COUNT("introduced") FROM "list_of_braathens_aircraft" WHERE "retired">1994 AND "manufacturer"='fokker'; | 2-150761-1 |
How many in the quantity section had Fokker as a manufacturer and retired later than 1999? | CREATE TABLE "list_of_braathens_aircraft" (
"manufacturer" text,
"model" text,
"quantity" real,
"introduced" real,
"retired" real
); | SELECT COUNT("quantity") FROM "list_of_braathens_aircraft" WHERE "manufacturer"='fokker' AND "retired">1999; | 2-150761-1 |
Which Championship has a Scoreboard that is 22-14? | CREATE TABLE "mano_parejas" (
"year" text,
"champion" text,
"subchampion" text,
"scoreboard" text,
"fronton" text
); | SELECT "champion" FROM "mano_parejas" WHERE "scoreboard"='22-14'; | 2-14948141-2 |
What year was the building with a top 3 rank and a height of 274 (84) ft (m) completed? | CREATE TABLE "skyline" (
"rank" real,
"name" text,
"height_ft_m" text,
"floors_stories" real,
"year_completed" real
); | SELECT MAX("year_completed") FROM "skyline" WHERE "rank"<3 AND "height_ft_m"='274 (84)'; | 2-136320-2 |
How many floors are in the 274 (84) ft (m) building that is ranked number 1? | CREATE TABLE "skyline" (
"rank" real,
"name" text,
"height_ft_m" text,
"floors_stories" real,
"year_completed" real
); | SELECT AVG("floors_stories") FROM "skyline" WHERE "height_ft_m"='274 (84)' AND "rank">1; | 2-136320-2 |
Which is the highest ranked building with more than 15 floors? | CREATE TABLE "skyline" (
"rank" real,
"name" text,
"height_ft_m" text,
"floors_stories" real,
"year_completed" real
); | SELECT MAX("rank") FROM "skyline" WHERE "floors_stories">15; | 2-136320-2 |
What is the highest points scored for the team with a position larger than 5, who had less than 4 wins and more than 8 draws? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT MAX("scored") FROM "torneo_apertura" WHERE "position">5 AND "wins"<4 AND "draws">8; | 2-14889048-1 |
What is the average number conceded for hte team that had less than 19 points, played more than 18 games and had a position less than 10? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT AVG("conceded") FROM "torneo_apertura" WHERE "points"<19 AND "position"<10 AND "played">18; | 2-14889048-1 |
What was the sum of the draws for the team that had 11 wins, less than 38 points, and a position smaller than 4? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT SUM("draws") FROM "torneo_apertura" WHERE "position"<4 AND "wins"=11 AND "points"<38; | 2-14889048-1 |
What was the lowest number of wins for the team that scored more than 14 points and had a position of 7? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT MIN("wins") FROM "torneo_apertura" WHERE "position"=7 AND "scored">14; | 2-14889048-1 |
What is the total number scored for the team that had 19 points and a position larger than 4? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT COUNT("scored") FROM "torneo_apertura" WHERE "position">4 AND "points"=19; | 2-14889048-1 |
What is the lowest number conceded for the team that had less than 8 wins, scored 21, and had less than 23 points? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT MIN("conceded") FROM "torneo_apertura" WHERE "wins"<8 AND "scored"=21 AND "points"<23; | 2-14889048-1 |
Which Date has a Result of l 14–13? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
); | SELECT "date" FROM "schedule" WHERE "result"='l 14–13'; | 2-13963486-2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.