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 Issue with less than 6 weeks on top and for the song " the friends of mr. cairo "? | 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 "weeks_on_top"<6 AND "song"='\" the friends of mr. cairo \"'; | 2-15476957-1 |
What is the sum of Weeks on Top for the Volume:Issue 34:9-12? | CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" real,
"song" text,
"artist" text
); | SELECT SUM("weeks_on_top") FROM "see_also" WHERE "volume_issue"='34:9-12'; | 2-15476957-1 |
How many Places (Posición) has a Draw (PE) larger than 2 and a Team (Equipo) of paraíso and a Won (PG) larger than 6? | CREATE TABLE "clausura_2008_standings" (
"place_posici_n" real,
"team_equipo" text,
"played_pj" real,
"won_pg" real,
"draw_pe" real,
"lost_pp" real,
"goals_scored_gf" real,
"goals_conceded_gc" real,
"dif" real,
"points_pts" real
); | SELECT COUNT("place_posici_n") FROM "clausura_2008_standings" WHERE "draw_pe">2 AND "team_equipo"='paraíso' AND "won_pg">6; | 2-15682968-3 |
How many league cups have yeovil town as the club, with a league less than 16? | CREATE TABLE "topscorers_in_order_of_league_goals" (
"player" text,
"club" text,
"league" real,
"fa_cup" real,
"fa_trophy" real,
"league_cup" real,
"total" real
); | SELECT COUNT("league_cup") FROM "topscorers_in_order_of_league_goals" WHERE "club"='yeovil town' AND "league"<16; | 2-15611166-4 |
What is the average FA Cup that has gary jones as the player, and an FA trophy greater than 5? | CREATE TABLE "topscorers_in_order_of_league_goals" (
"player" text,
"club" text,
"league" real,
"fa_cup" real,
"fa_trophy" real,
"league_cup" real,
"total" real
); | SELECT AVG("fa_cup") FROM "topscorers_in_order_of_league_goals" WHERE "player"='gary jones' AND "fa_trophy">5; | 2-15611166-4 |
What FA trophys have tony hemmings as the player, with a league greater than 15? | CREATE TABLE "topscorers_in_order_of_league_goals" (
"player" text,
"club" text,
"league" real,
"fa_cup" real,
"fa_trophy" real,
"league_cup" real,
"total" real
); | SELECT SUM("fa_trophy") FROM "topscorers_in_order_of_league_goals" WHERE "player"='tony hemmings' AND "league">15; | 2-15611166-4 |
What is the score where the country is Japan? | CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"purse" real,
"winner_s_share" real
); | SELECT "score" FROM "winners" WHERE "country"='japan'; | 2-15334783-1 |
What year has a winner's share smaller than 14,000? | CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"purse" real,
"winner_s_share" real
); | SELECT AVG("year") FROM "winners" WHERE "winner_s_share"<'14,000'; | 2-15334783-1 |
Which province has muju as the capital? | CREATE TABLE "provinces_of_unified_silla" (
"former_kingdom" text,
"province" text,
"hangul" text,
"hanja" text,
"capital" text,
"modern_equivalent" text
); | SELECT "province" FROM "provinces_of_unified_silla" WHERE "capital"='muju'; | 2-160510-1 |
What is the modern equivalent of 良州 in Hanja? | CREATE TABLE "provinces_of_unified_silla" (
"former_kingdom" text,
"province" text,
"hangul" text,
"hanja" text,
"capital" text,
"modern_equivalent" text
); | SELECT "modern_equivalent" FROM "provinces_of_unified_silla" WHERE "hanja"='良州'; | 2-160510-1 |
What is the capital of the province with 양주 in Hangul? | CREATE TABLE "provinces_of_unified_silla" (
"former_kingdom" text,
"province" text,
"hangul" text,
"hanja" text,
"capital" text,
"modern_equivalent" text
); | SELECT "capital" FROM "provinces_of_unified_silla" WHERE "hangul"='양주'; | 2-160510-1 |
What is the capital of the province with 漢州 in Hanja? | CREATE TABLE "provinces_of_unified_silla" (
"former_kingdom" text,
"province" text,
"hangul" text,
"hanja" text,
"capital" text,
"modern_equivalent" text
); | SELECT "capital" FROM "provinces_of_unified_silla" WHERE "hanja"='漢州'; | 2-160510-1 |
What is the Hanja for the sakju province? | CREATE TABLE "provinces_of_unified_silla" (
"former_kingdom" text,
"province" text,
"hangul" text,
"hanja" text,
"capital" text,
"modern_equivalent" text
); | SELECT "hanja" FROM "provinces_of_unified_silla" WHERE "province"='sakju'; | 2-160510-1 |
What is the fewest number of top-25s for events with more than 0 wins? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT MIN("top_25") FROM "summary" WHERE "wins">0; | 2-1610384-4 |
What is the highest number of top-10s in events with more than 0 wins? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT MAX("top_10") FROM "summary" WHERE "wins">0; | 2-1610384-4 |
What is the number of top-25s in events under 13, cuts made under 3, and 1 top-10? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT "top_25" FROM "summary" WHERE "events"<13 AND "cuts_made"<3 AND "top_10"=1; | 2-1610384-4 |
Which season had an average under 28, a rank under 10, and a partner of Janja Lesar? | CREATE TABLE "last_place_couples_average_ranks" (
"rank" real,
"celebrity" text,
"professional_partner" text,
"season" real,
"average" real
); | SELECT "season" FROM "last_place_couples_average_ranks" WHERE "average"<28 AND "rank"<10 AND "professional_partner"='janja lesar'; | 2-15988037-19 |
What is the highest season that had rank under 1? | CREATE TABLE "last_place_couples_average_ranks" (
"rank" real,
"celebrity" text,
"professional_partner" text,
"season" real,
"average" real
); | SELECT MAX("season") FROM "last_place_couples_average_ranks" WHERE "rank"<1; | 2-15988037-19 |
Who was the professional partner in season 4? | CREATE TABLE "last_place_couples_average_ranks" (
"rank" real,
"celebrity" text,
"professional_partner" text,
"season" real,
"average" real
); | SELECT "professional_partner" FROM "last_place_couples_average_ranks" WHERE "season"=4; | 2-15988037-19 |
Who had the highest rebounds against detroit? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "high_rebounds" FROM "game_log" WHERE "team"='detroit'; | 2-15780718-9 |
How much gold received by nation of uzbekistan (uzb)? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("gold") FROM "medal_table" WHERE "nation"='uzbekistan (uzb)'; | 2-15434862-1 |
Which team has the lowest gold and 0 silver? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("gold") FROM "medal_table" WHERE "silver"<0; | 2-15434862-1 |
How much gold when silver, bronze and total is smaller than 1? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("gold") FROM "medal_table" WHERE "silver"<1 AND "bronze"=1 AND "total"<1; | 2-15434862-1 |
What is the ICAO with commenced operations before 1989? | CREATE TABLE "see_also" (
"airline" text,
"airline_in_arabic" text,
"icao" text,
"callsign" text,
"commenced_operations" real
); | SELECT "icao" FROM "see_also" WHERE "commenced_operations"<1989; | 2-15620088-1 |
What is the lowest commenced operations that has a nouvelair callsign? | CREATE TABLE "see_also" (
"airline" text,
"airline_in_arabic" text,
"icao" text,
"callsign" text,
"commenced_operations" real
); | SELECT MIN("commenced_operations") FROM "see_also" WHERE "callsign"='nouvelair'; | 2-15620088-1 |
What callsign has commenced operations in 2011? | CREATE TABLE "see_also" (
"airline" text,
"airline_in_arabic" text,
"icao" text,
"callsign" text,
"commenced_operations" real
); | SELECT "callsign" FROM "see_also" WHERE "commenced_operations"=2011; | 2-15620088-1 |
What language is used when the service is sky primafila 10 and the package/option is qualsiasi? | CREATE TABLE "primafila" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
); | SELECT "language" FROM "primafila" WHERE "package_option"='qualsiasi' AND "television_service"='sky primafila 10'; | 2-15887683-6 |
What is the content when the package/option is qualsiasi and sky primafila 14 is the television service? | CREATE TABLE "primafila" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
); | SELECT "content" FROM "primafila" WHERE "package_option"='qualsiasi' AND "television_service"='sky primafila 14'; | 2-15887683-6 |
What is the HDTV that has television service of tv 8 mont blanc and content is general television? | CREATE TABLE "local_channels" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
); | SELECT "hdtv" FROM "local_channels" WHERE "content"='general television' AND "television_service"='tv 8 mont blanc'; | 2-15887683-14 |
Which city's IATA is nkg? | CREATE TABLE "list" (
"city" text,
"province" text,
"country" text,
"iata" text,
"airport" text
); | SELECT "city" FROM "list" WHERE "iata"='nkg'; | 2-1572931-2 |
Which airport is in Xinjiang province in the city Kuqa? | CREATE TABLE "list" (
"city" text,
"province" text,
"country" text,
"iata" text,
"airport" text
); | SELECT "airport" FROM "list" WHERE "province"='xinjiang' AND "city"='kuqa'; | 2-1572931-2 |
Which province's IATA is kix? | CREATE TABLE "list" (
"city" text,
"province" text,
"country" text,
"iata" text,
"airport" text
); | SELECT "province" FROM "list" WHERE "iata"='kix'; | 2-1572931-2 |
Which airport's IATA is pen? | CREATE TABLE "list" (
"city" text,
"province" text,
"country" text,
"iata" text,
"airport" text
); | SELECT "airport" FROM "list" WHERE "iata"='pen'; | 2-1572931-2 |
Which Event has a Record of 4:02.54? | CREATE TABLE "women" (
"event" text,
"record" text,
"nation" text,
"date" text,
"venue" text
); | SELECT "event" FROM "women" WHERE "record"='4:02.54'; | 2-1570167-4 |
Whcih Date has an Event of 3000 m? | CREATE TABLE "women" (
"event" text,
"record" text,
"nation" text,
"date" text,
"venue" text
); | SELECT "date" FROM "women" WHERE "event"='3000 m'; | 2-1570167-4 |
Which Record has a Date of 23 february 1986? | CREATE TABLE "women" (
"event" text,
"record" text,
"nation" text,
"date" text,
"venue" text
); | SELECT "record" FROM "women" WHERE "date"='23 february 1986'; | 2-1570167-4 |
Which Date has a Record of 8:39.49? | CREATE TABLE "women" (
"event" text,
"record" text,
"nation" text,
"date" text,
"venue" text
); | SELECT "date" FROM "women" WHERE "record"='8:39.49'; | 2-1570167-4 |
Which Record has a Date of 3 march 2013? | CREATE TABLE "women" (
"event" text,
"record" text,
"nation" text,
"date" text,
"venue" text
); | SELECT "record" FROM "women" WHERE "date"='3 march 2013'; | 2-1570167-4 |
Which Nation has a Record of 15.16 m? | CREATE TABLE "women" (
"event" text,
"record" text,
"nation" text,
"date" text,
"venue" text
); | SELECT "nation" FROM "women" WHERE "record"='15.16 m'; | 2-1570167-4 |
What is the Nationality of the Player with more than 8 Goals and Apps of 52? | CREATE TABLE "player_statistics" (
"pos" text,
"nationality" text,
"player" text,
"apps" real,
"goals" real
); | SELECT "nationality" FROM "player_statistics" WHERE "goals">8 AND "apps"=52; | 2-15610848-3 |
How many Apps did Player Gilberto with more than 1 Goals have? | CREATE TABLE "player_statistics" (
"pos" text,
"nationality" text,
"player" text,
"apps" real,
"goals" real
); | SELECT AVG("apps") FROM "player_statistics" WHERE "player"='gilberto' AND "goals">1; | 2-15610848-3 |
On what date was the 4th round, with home team Itabuna, played? | CREATE TABLE "second_three_matches" (
"round" text,
"date" text,
"home_team" text,
"score" text,
"away_team" text
); | SELECT "date" FROM "second_three_matches" WHERE "round"='4th' AND "home_team"='itabuna'; | 2-15468818-3 |
In the 6th round match with home team Bahia, who was the away team? | CREATE TABLE "second_three_matches" (
"round" text,
"date" text,
"home_team" text,
"score" text,
"away_team" text
); | SELECT "away_team" FROM "second_three_matches" WHERE "round"='6th' AND "home_team"='bahia'; | 2-15468818-3 |
For the 5th round match with away team of Bahia, what was the final score? | CREATE TABLE "second_three_matches" (
"round" text,
"date" text,
"home_team" text,
"score" text,
"away_team" text
); | SELECT "score" FROM "second_three_matches" WHERE "round"='5th' AND "away_team"='bahia'; | 2-15468818-3 |
Which League has a Regular Season of 2nd, southeast? | CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
); | SELECT "league" FROM "year_by_year" WHERE "regular_season"='2nd, southeast'; | 2-15672920-1 |
Who Playoffs has a Regular Season of on hiatus.? | CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
); | SELECT "playoffs" FROM "year_by_year" WHERE "regular_season"='on hiatus.'; | 2-15672920-1 |
What is the population of Kragerø? | CREATE TABLE "city_status_since_after_1996" (
"city" text,
"municipality" text,
"county" text,
"town_status" text,
"population" real
); | SELECT MIN("population") FROM "city_status_since_after_1996" WHERE "city"='kragerø'; | 2-157826-2 |
What is the highest population of a city that has a town status of 2010? | CREATE TABLE "city_status_since_after_1996" (
"city" text,
"municipality" text,
"county" text,
"town_status" text,
"population" real
); | SELECT MAX("population") FROM "city_status_since_after_1996" WHERE "town_status"='2010'; | 2-157826-2 |
What is the highest population within the municipality of Porsgrunn? | CREATE TABLE "city_status_since_after_1996" (
"city" text,
"municipality" text,
"county" text,
"town_status" text,
"population" real
); | SELECT MAX("population") FROM "city_status_since_after_1996" WHERE "municipality"='porsgrunn'; | 2-157826-2 |
What is the birthplace of the player who is 190 CM tall, plays the D position, and wears number 11? | CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_number" real,
"name_v_t_e" text,
"height_cm" real,
"weight_kg" real,
"birthplace" text,
"2009_10_team" text,
"nhl_rights_if_any" text
); | SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "position"='d' AND "height_cm"=190 AND "jersey_number"=11; | 2-15715109-54 |
What is the position of the player who played for the London Knights during 2009-2010? | CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_number" real,
"name_v_t_e" text,
"height_cm" real,
"weight_kg" real,
"birthplace" text,
"2009_10_team" text,
"nhl_rights_if_any" text
); | SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "2009_10_team"='london knights'; | 2-15715109-54 |
What's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT SUM("points") FROM "complete_formula_one_world_championship_" WHERE "year"<1971 AND "entrant"='scuderia ferrari' AND "engine"='ferrari v12'; | 2-159975-1 |
What's the least amount of points that Walter Wolf Racing had after 1974? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "year">1974 AND "entrant"='walter wolf racing'; | 2-159975-1 |
What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT SUM("year") FROM "achievements" WHERE "position"='6th' AND "competition"='commonwealth games'; | 2-16036069-1 |
What is the highest Year, when the Venue is Beijing, PR China? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT MAX("year") FROM "achievements" WHERE "venue"='beijing, pr china'; | 2-16036069-1 |
What is the average Year, when Competition is Oceania Youth Championships? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT AVG("year") FROM "achievements" WHERE "competition"='oceania youth championships'; | 2-16036069-1 |
What is Event, when Position is 4th? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT "event" FROM "achievements" WHERE "position"='4th'; | 2-16036069-1 |
What is the Date with a Format that is cd? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "date" FROM "release_history" WHERE "format"='cd'; | 2-15624634-2 |
What is the Catalog with a Date that is march 13, 2002? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "catalog" FROM "release_history" WHERE "date"='march 13, 2002'; | 2-15624634-2 |
What is the Label with a Catalog that is mhcl-20017? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "label" FROM "release_history" WHERE "catalog"='mhcl-20017'; | 2-15624634-2 |
What is the Catalog with a Date that is february 20, 2002? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "catalog" FROM "release_history" WHERE "date"='february 20, 2002'; | 2-15624634-2 |
What is the lightest Weight (kg), when the Jersey # is greater than 22, when the Position is F, and when the Birthdate is March 19, 1980? | CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1999_2000_team" text,
"nhl_rights" text
); | SELECT MIN("weight_kg") FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num">22 AND "position"='f' AND "birthdate"='march 19, 1980'; | 2-15715109-44 |
What is the Position, when the Birthplace is Buffalo, New York? | CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1999_2000_team" text,
"nhl_rights" text
); | SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "birthplace"='buffalo, new york'; | 2-15715109-44 |
What is the Birthplace, when the Jersey # is less than 18, when the Height (cm) is higher than 185, and when the Birthdate is March 3, 1980? | CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
"height_cm" real,
"weight_kg" real,
"birthdate" text,
"birthplace" text,
"1999_2000_team" text,
"nhl_rights" text
); | SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num"<18 AND "height_cm">185 AND "birthdate"='march 3, 1980'; | 2-15715109-44 |
What was the final score for the game with 65,309 people in attendance? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"game_site" text,
"final_score" text,
"record" text,
"tv_time" text,
"attendance" text
); | SELECT "final_score" FROM "schedule" WHERE "attendance"='65,309'; | 2-15353123-3 |
What average week number had the Chicago bears as the opponent? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"game_site" text,
"final_score" text,
"record" text,
"tv_time" text,
"attendance" text
); | SELECT AVG("week") FROM "schedule" WHERE "opponent"='chicago bears'; | 2-15353123-3 |
What is the record for the game against New England Patriots at the Rich Stadium? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"game_site" text,
"final_score" text,
"record" text,
"tv_time" text,
"attendance" text
); | SELECT "record" FROM "schedule" WHERE "game_site"='rich stadium' AND "opponent"='new england patriots'; | 2-15353123-3 |
What did the Dallara chassis with a 5 start in 2006 finish? | CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" real,
"team" text
); | SELECT "finish" FROM "indianapolis_500" WHERE "chassis"='dallara' AND "start"='5' AND "year"=2006; | 2-1615758-5 |
What is the chassis of the Honda Engine from 2008? | CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" real,
"team" text
); | SELECT "chassis" FROM "indianapolis_500" WHERE "engine"='honda' AND "year"=2008; | 2-1615758-5 |
What is the earliest year of the Honda Engine with a finish of 4? | CREATE TABLE "indianapolis_500" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" real,
"team" text
); | SELECT MIN("year") FROM "indianapolis_500" WHERE "engine"='honda' AND "finish"=4; | 2-1615758-5 |
What was 2002, when 2008 was, "career statistics"? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2002" FROM "singles_performance_timeline" WHERE "2008"='career statistics'; | 2-1551805-10 |
What was 2009, when 2001 was, "not masters series"? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2009" FROM "singles_performance_timeline" WHERE "2001"='not masters series'; | 2-1551805-10 |
What was 2011, when 2005 was 2R, and when 2003 was 2R? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2011" FROM "singles_performance_timeline" WHERE "2005"='2r' AND "2003"='2r'; | 2-1551805-10 |
What was 2009, when 2012 was A, when 2003 was A, and then the Tournament was the Madrid Masters? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2009" FROM "singles_performance_timeline" WHERE "2012"='a' AND "2003"='a' AND "tournament"='madrid masters'; | 2-1551805-10 |
What was 2002, when 2011 was, "atp masters series"? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2002" FROM "singles_performance_timeline" WHERE "2011"='atp masters series'; | 2-1551805-10 |
What was the lowest wins of Larry Nelson, who ranked less than 5? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT MIN("wins") FROM "leaders" WHERE "player"='larry nelson' AND "rank"<5; | 2-15346009-4 |
What is the sum of the earnings for rank 3? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT SUM("earnings") FROM "leaders" WHERE "rank"=3; | 2-15346009-4 |
What was the lowest rank which earned 24,920,665? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT MIN("rank") FROM "leaders" WHERE "earnings"='24,920,665'; | 2-15346009-4 |
What is the sum of wins for a rank less than 3, and earnings more than 24,920,665? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT SUM("wins") FROM "leaders" WHERE "rank"<3 AND "earnings">'24,920,665'; | 2-15346009-4 |
What is the country is ranked more than 4? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"wins" real
); | SELECT "country" FROM "leaders" WHERE "rank">4; | 2-15346009-4 |
What the total of Week with attendance of 53,147 | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT SUM("week") FROM "schedule" WHERE "attendance"='53,147'; | 2-15344826-1 |
What is the lowest week for December 26, 1999 | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT MIN("week") FROM "schedule" WHERE "date"='december 26, 1999'; | 2-15344826-1 |
What season has 6 races and the team is Australia? | CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real
); | SELECT "season" FROM "career_summary" WHERE "races"=6 AND "team"='australia'; | 2-15571499-1 |
What is the total number of Races when there were more than 8 wins? | CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real
); | SELECT COUNT("races") FROM "career_summary" WHERE "wins">8; | 2-15571499-1 |
Who's the Socialist ticket with a Republican ticket of john a. may? | CREATE TABLE "1936_state_election_results" (
"office" text,
"democratic_ticket" text,
"republican_ticket" text,
"american_labor_ticket" text,
"socialist_ticket" text
); | SELECT "socialist_ticket" FROM "1936_state_election_results" WHERE "republican_ticket"='john a. may'; | 2-15563399-1 |
Who's the Republican ticket with a Democratic ticket of m. william bray? | CREATE TABLE "1936_state_election_results" (
"office" text,
"democratic_ticket" text,
"republican_ticket" text,
"american_labor_ticket" text,
"socialist_ticket" text
); | SELECT "republican_ticket" FROM "1936_state_election_results" WHERE "democratic_ticket"='m. william bray'; | 2-15563399-1 |
Who's the Socialist ticket with a Democratic ticket of herbert h. lehman? | CREATE TABLE "1936_state_election_results" (
"office" text,
"democratic_ticket" text,
"republican_ticket" text,
"american_labor_ticket" text,
"socialist_ticket" text
); | SELECT "socialist_ticket" FROM "1936_state_election_results" WHERE "democratic_ticket"='herbert h. lehman'; | 2-15563399-1 |
Who's the Republican ticket with a Socialist ticket of frank r. crosswaith? | CREATE TABLE "1936_state_election_results" (
"office" text,
"democratic_ticket" text,
"republican_ticket" text,
"american_labor_ticket" text,
"socialist_ticket" text
); | SELECT "republican_ticket" FROM "1936_state_election_results" WHERE "socialist_ticket"='frank r. crosswaith'; | 2-15563399-1 |
Who's the Republican ticket with a Socialist ticket of edna mitchell blue? | CREATE TABLE "1936_state_election_results" (
"office" text,
"democratic_ticket" text,
"republican_ticket" text,
"american_labor_ticket" text,
"socialist_ticket" text
); | SELECT "republican_ticket" FROM "1936_state_election_results" WHERE "socialist_ticket"='edna mitchell blue'; | 2-15563399-1 |
what's the earliest year that serena williams had more than 2 sets? | CREATE TABLE "women" (
"aces" real,
"player" text,
"opponent" text,
"year" real,
"event" text,
"sets" real,
"result" text
); | SELECT MIN("year") FROM "women" WHERE "player"='serena williams' AND "sets">2; | 2-1612222-2 |
what's the earliest year that the wimbledon opponent was zheng jie? | CREATE TABLE "women" (
"aces" real,
"player" text,
"opponent" text,
"year" real,
"event" text,
"sets" real,
"result" text
); | SELECT MIN("year") FROM "women" WHERE "event"='wimbledon' AND "opponent"='zheng jie'; | 2-1612222-2 |
what year was the opponent caroline garcia? | CREATE TABLE "women" (
"aces" real,
"player" text,
"opponent" text,
"year" real,
"event" text,
"sets" real,
"result" text
); | SELECT SUM("year") FROM "women" WHERE "opponent"='caroline garcia'; | 2-1612222-2 |
what's the most recent year that samantha stosur was the opponent with 20 aces and having played more than 2 sets? | CREATE TABLE "women" (
"aces" real,
"player" text,
"opponent" text,
"year" real,
"event" text,
"sets" real,
"result" text
); | SELECT MAX("year") FROM "women" WHERE "aces"=20 AND "opponent"='samantha stosur' AND "sets">2; | 2-1612222-2 |
what year was the memphis event? | CREATE TABLE "women" (
"aces" real,
"player" text,
"opponent" text,
"year" real,
"event" text,
"sets" real,
"result" text
); | SELECT SUM("year") FROM "women" WHERE "event"='memphis'; | 2-1612222-2 |
What season did the player who had the number 26 play on who came from far eastern? | CREATE TABLE "a" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" real,
"acquisition_via" text
); | SELECT "season" FROM "a" WHERE "school_club_team"='far eastern' AND "number"=26; | 2-15463188-1 |
What season did the player who came from Cebu play in? | CREATE TABLE "a" (
"name" text,
"position" text,
"number" real,
"school_club_team" text,
"season" real,
"acquisition_via" text
); | SELECT "season" FROM "a" WHERE "school_club_team"='cebu'; | 2-15463188-1 |
How much did Champion jessica shepley share when she won? | CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winner_s_share" real
); | SELECT "winner_s_share" FROM "winners" WHERE "champion"='jessica shepley'; | 2-15315276-1 |
What was the country in the year 2012? | CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winner_s_share" real
); | SELECT "country" FROM "winners" WHERE "year"=2012; | 2-15315276-1 |
How many purses were there after 2012 that had a winner's share of less than 15,000? | CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" text,
"country" text,
"score" text,
"tournament_location" text,
"purse" real,
"winner_s_share" real
); | SELECT COUNT("purse") FROM "winners" WHERE "year">2012 AND "winner_s_share"<'15,000'; | 2-15315276-1 |
In what year was Letecke Zavody N.P., Jinonice the manufacturer? | CREATE TABLE "list" (
"country" text,
"automobile_name" text,
"manufacturer" text,
"engine_make_capacity" text,
"year" text
); | SELECT "year" FROM "list" WHERE "manufacturer"='letecke zavody n.p., jinonice'; | 2-15659438-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.