question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Name the record for february 27 | 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 "record" FROM "game_log" WHERE "date"='february 27'; | 2-11959669-6 |
Name the team for 48 game | 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 "team" FROM "game_log" WHERE "game"=48; | 2-11959669-6 |
What's the average of shows that had a timeslot rank greater that 3 but still had a smaller viewership less than 4.87? | CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"rating" real,
"share" real,
"18_49_rating_share" text,
"viewers_m" real,
"rank_timeslot" real,
"rank_night" real,
"rank_overall" real
); | SELECT AVG("share") FROM "weekly_ratings" WHERE "rank_timeslot">3 AND "viewers_m"<4.87; | 2-11317610-2 |
Which division in the AFC Conference had a total of 10 wins and appeared more than 18 times? | CREATE TABLE "statistics" (
"conference" text,
"division" text,
"appearances" real,
"wins" real,
"losses" real
); | SELECT "division" FROM "statistics" WHERE "conference"='afc' AND "wins"=10 AND "appearances">18; | 2-10944289-12 |
How many losses did the East Division have who appeared 18 times and lost 8? | CREATE TABLE "statistics" (
"conference" text,
"division" text,
"appearances" real,
"wins" real,
"losses" real
); | SELECT MIN("wins") FROM "statistics" WHERE "division"='east' AND "losses"=8 AND "appearances"<18; | 2-10944289-12 |
How many losses did the division who appeared less than 16 times have? | CREATE TABLE "statistics" (
"conference" text,
"division" text,
"appearances" real,
"wins" real,
"losses" real
); | SELECT "losses" FROM "statistics" WHERE "appearances"<16; | 2-10944289-12 |
How many medals for spain with 1 silver? | CREATE TABLE "medal_count" (
"nation" text,
"gold" text,
"silver" text,
"bronze" text,
"total" real
); | SELECT SUM("total") FROM "medal_count" WHERE "silver"='1' AND "nation"='spain'; | 2-11672796-2 |
How many silvers for finland? | CREATE TABLE "medal_count" (
"nation" text,
"gold" text,
"silver" text,
"bronze" text,
"total" real
); | SELECT "silver" FROM "medal_count" WHERE "nation"='finland'; | 2-11672796-2 |
How many medals for spain that has 1 silver and 1 bronze? | CREATE TABLE "medal_count" (
"nation" text,
"gold" text,
"silver" text,
"bronze" text,
"total" real
); | SELECT COUNT("total") FROM "medal_count" WHERE "silver"='1' AND "bronze"='1' AND "nation"='spain'; | 2-11672796-2 |
What is the record when they play the canucks and have under 98 points? | CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text,
"points" real
); | SELECT "record" FROM "regular_season" WHERE "points"<98 AND "opponent"='canucks'; | 2-11801795-8 |
How many attended the game against the sharks with over 86 points? | CREATE TABLE "regular_season" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text,
"arena" text,
"points" real
); | SELECT AVG("attendance") FROM "regular_season" WHERE "points">86 AND "opponent"='sharks'; | 2-11801795-8 |
Name the song that has a track larger than 7 and means death. | CREATE TABLE "track_listing" (
"track" real,
"title" text,
"translation" text,
"composer" text,
"recorded" text
); | SELECT "recorded" FROM "track_listing" WHERE "track">7 AND "translation"='death'; | 2-1187463-1 |
Which track 7 title was recorded in 1959-09-15? | CREATE TABLE "track_listing" (
"track" real,
"title" text,
"translation" text,
"composer" text,
"recorded" text
); | SELECT "title" FROM "track_listing" WHERE "recorded"='1959-09-15' AND "track"=7; | 2-1187463-1 |
Which track translates to Flemish Women? | CREATE TABLE "track_listing" (
"track" real,
"title" text,
"translation" text,
"composer" text,
"recorded" text
); | SELECT "track" FROM "track_listing" WHERE "translation"='flemish women'; | 2-1187463-1 |
What is the high capacity that has an average under 489 and a highest over 778? | CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
); | SELECT MAX("capacity") FROM "attendances" WHERE "average"<489 AND "highest">778; | 2-11206787-5 |
On the album titled “Loud” who was the other performer on the song directed by Melina Matsoukas? | CREATE TABLE "music_videos" (
"title" text,
"other_performer_s" text,
"director_s" text,
"album" text,
"year" real
); | SELECT "other_performer_s" FROM "music_videos" WHERE "director_s"='melina matsoukas' AND "album"='loud'; | 2-11972762-2 |
What is the decision when vancouver is at home and winnipeg is away? | CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "decision" FROM "october" WHERE "home"='vancouver' AND "visitor"='winnipeg'; | 2-11128774-2 |
What is the record of the team from chicago? | CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "october" WHERE "home"='chicago'; | 2-11128774-2 |
Where was the away team st kilda? | CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_18" WHERE "away_team"='st kilda'; | 2-10808933-18 |
Which club has 1 cap? | CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
); | SELECT "club_province" FROM "2007_rugby_world_cup_squads" WHERE "caps"=1; | 2-11783766-9 |
Which position has a club of Meralomas and a player named David Biddle? | CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
); | SELECT "position" FROM "2007_rugby_world_cup_squads" WHERE "club_province"='meralomas' AND "player"='david biddle'; | 2-11783766-9 |
What is the average number of caps for Meralomas with positions of centre? | CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
); | SELECT AVG("caps") FROM "2007_rugby_world_cup_squads" WHERE "club_province"='meralomas' AND "position"='centre'; | 2-11783766-9 |
Who are the scorers when the score is 9-2? | CREATE TABLE "games_for_zrinjski_in_european_competiti" (
"date" text,
"venue" text,
"opponent" text,
"score" text,
"scorers" text,
"competition" text
); | SELECT "scorers" FROM "games_for_zrinjski_in_european_competiti" WHERE "score"='9-2'; | 2-11391829-1 |
What is the smallest population in a region greater than 9? | CREATE TABLE "list_of_municipalities_in_quebec" (
"code" real,
"type" text,
"name" text,
"area_km_2" real,
"population" real,
"regional_county_municipality" text,
"region" real
); | SELECT MIN("population") FROM "list_of_municipalities_in_quebec" WHERE "region">9; | 2-11218948-6 |
What is the average area for code 98030 with population over 312? | CREATE TABLE "list_of_municipalities_in_quebec" (
"code" real,
"type" text,
"name" text,
"area_km_2" real,
"population" real,
"regional_county_municipality" text,
"region" real
); | SELECT AVG("area_km_2") FROM "list_of_municipalities_in_quebec" WHERE "code"=98030 AND "population">312; | 2-11218948-6 |
What is the attendance on may 28? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "attendance" FROM "game_log" WHERE "date"='may 28'; | 2-11512253-3 |
On the Date of 4 Oct 2009, who was the Runner(s)-up? | CREATE TABLE "japan_golf_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "runner_s_up" FROM "japan_golf_tour_wins_10" WHERE "date"='4 oct 2009'; | 2-11750182-1 |
On the Date of 2 Aug 2009, who was the Runner(s)-up? | CREATE TABLE "japan_golf_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "runner_s_up" FROM "japan_golf_tour_wins_10" WHERE "date"='2 aug 2009'; | 2-11750182-1 |
Which Tournament was on the Date 6 Sep 2009? | CREATE TABLE "japan_golf_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "tournament" FROM "japan_golf_tour_wins_10" WHERE "date"='6 sep 2009'; | 2-11750182-1 |
What was the Winning score for the Mynavi ABC Championship Tournament? | CREATE TABLE "japan_golf_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "winning_score" FROM "japan_golf_tour_wins_10" WHERE "tournament"='mynavi abc championship'; | 2-11750182-1 |
What was the Winning score when the Margin of victory is 5 strokes and the Date was 6 Sep 2009? | CREATE TABLE "japan_golf_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "winning_score" FROM "japan_golf_tour_wins_10" WHERE "margin_of_victory"='5 strokes' AND "date"='6 sep 2009'; | 2-11750182-1 |
Who was the Runner(s)-up on the Date 4 Oct 2009? | CREATE TABLE "japan_golf_tour_wins_10" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "runner_s_up" FROM "japan_golf_tour_wins_10" WHERE "date"='4 oct 2009'; | 2-11750182-1 |
What is the score with third place of stefan edberg? | CREATE TABLE "2009" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "score" FROM "2009" WHERE "third_place"='stefan edberg'; | 2-11346282-11 |
Name the runner-up for algarve tournament | CREATE TABLE "2009" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "runner_up" FROM "2009" WHERE "tournament"='algarve'; | 2-11346282-11 |
I want to know the tournament that has a third place of magnus gustafsson | CREATE TABLE "2009" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "tournament" FROM "2009" WHERE "third_place"='magnus gustafsson'; | 2-11346282-11 |
Who was the winner when the third place was fernando meligeni? | CREATE TABLE "2009" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "winner" FROM "2009" WHERE "third_place"='fernando meligeni'; | 2-11346282-11 |
Name the tournament for patrick rafter winning | CREATE TABLE "2009" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "tournament" FROM "2009" WHERE "winner"='patrick rafter'; | 2-11346282-11 |
Who was the owner in 1996 of trainer Nick Zito? | CREATE TABLE "winners_of_the_barbaro_stakes_since_1993" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance" text,
"time" text,
"purse" text
); | SELECT "owner" FROM "winners_of_the_barbaro_stakes_since_1993" WHERE "trainer"='nick zito' AND "year"='1996'; | 2-11554453-1 |
What year did jockey Ramon Dominguez have a distance of 1-1/16? | CREATE TABLE "winners_of_the_barbaro_stakes_since_1993" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance" text,
"time" text,
"purse" text
); | SELECT "year" FROM "winners_of_the_barbaro_stakes_since_1993" WHERE "distance"='1-1/16' AND "jockey"='ramon dominguez'; | 2-11554453-1 |
Who was the owner of the trainer Steve Klesaris? | CREATE TABLE "winners_of_the_barbaro_stakes_since_1993" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance" text,
"time" text,
"purse" text
); | SELECT "owner" FROM "winners_of_the_barbaro_stakes_since_1993" WHERE "trainer"='steve klesaris'; | 2-11554453-1 |
Who is the owner of the Raglan Road winner? | CREATE TABLE "winners_of_the_barbaro_stakes_since_1993" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance" text,
"time" text,
"purse" text
); | SELECT "owner" FROM "winners_of_the_barbaro_stakes_since_1993" WHERE "winner"='raglan road'; | 2-11554453-1 |
What year was Burning Roma the winner? | CREATE TABLE "winners_of_the_barbaro_stakes_since_1993" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance" text,
"time" text,
"purse" text
); | SELECT "year" FROM "winners_of_the_barbaro_stakes_since_1993" WHERE "winner"='burning roma'; | 2-11554453-1 |
What is the win/loss of coach Peter German? | CREATE TABLE "honour_board" (
"season" real,
"position" real,
"win_loss" text,
"coach" text,
"captain" text,
"dudley_tuckey_medal" text,
"leading_goalkicker" text
); | SELECT "win_loss" FROM "honour_board" WHERE "coach"='peter german'; | 2-1165048-1 |
Name the home team scored 9.8 (62) | CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_14" WHERE "home_team_score"='9.8 (62)'; | 2-10790397-14 |
Which tyre was before 1995 with 142 laps? | CREATE TABLE "complete_24_hours_of_le_mans_results" (
"year" real,
"class" text,
"tyres" text,
"team" text,
"co_drivers" text,
"laps" real,
"pos" text,
"class_pos" text
); | SELECT "tyres" FROM "complete_24_hours_of_le_mans_results" WHERE "year"<1995 AND "laps"=142; | 2-1189516-4 |
Which tyres has more than 5 laps with team nissan motorsports international? | CREATE TABLE "complete_24_hours_of_le_mans_results" (
"year" real,
"class" text,
"tyres" text,
"team" text,
"co_drivers" text,
"laps" real,
"pos" text,
"class_pos" text
); | SELECT "tyres" FROM "complete_24_hours_of_le_mans_results" WHERE "laps">5 AND "team"='nissan motorsports international'; | 2-1189516-4 |
What position that has m tyres and 352 or more laps? | CREATE TABLE "complete_24_hours_of_le_mans_results" (
"year" real,
"class" text,
"tyres" text,
"team" text,
"co_drivers" text,
"laps" real,
"pos" text,
"class_pos" text
); | SELECT "pos" FROM "complete_24_hours_of_le_mans_results" WHERE "tyres"='m' AND "laps">352; | 2-1189516-4 |
who is the team 2 when the 1st leg is 2-2? | CREATE TABLE "relegation_playoffs" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_2" FROM "relegation_playoffs" WHERE "1st_leg"='2-2'; | 2-11125453-25 |
who is the team 2 when the team 1 is sestese(e16)? | CREATE TABLE "relegation_playoffs" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_2" FROM "relegation_playoffs" WHERE "team_1"='sestese(e16)'; | 2-11125453-25 |
who is the team 2 when the 2nd leg is 3-4? | CREATE TABLE "relegation_playoffs" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_2" FROM "relegation_playoffs" WHERE "2nd_leg"='3-4'; | 2-11125453-25 |
who is the team 2 when the 1st leg is 1-1 and the team 1 is verucchio(f15)? | CREATE TABLE "relegation_playoffs" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_2" FROM "relegation_playoffs" WHERE "1st_leg"='1-1' AND "team_1"='verucchio(f15)'; | 2-11125453-25 |
What is the largest base pair with a Strain of unspecified? | CREATE TABLE "list_of_sequenced_bacterial_genomes" (
"species" text,
"strain" text,
"type" text,
"base_pairs" real,
"genes" real
); | SELECT MAX("base_pairs") FROM "list_of_sequenced_bacterial_genomes" WHERE "strain"='unspecified'; | 2-11664498-16 |
What is the lowst base pair with a Species of borrelia garinii, and a Genes larger than 832? | CREATE TABLE "list_of_sequenced_bacterial_genomes" (
"species" text,
"strain" text,
"type" text,
"base_pairs" real,
"genes" real
); | SELECT MIN("base_pairs") FROM "list_of_sequenced_bacterial_genomes" WHERE "species"='borrelia garinii' AND "genes">832; | 2-11664498-16 |
What type has an unspecified species and less than 367 genes? | CREATE TABLE "list_of_sequenced_bacterial_genomes" (
"species" text,
"strain" text,
"type" text,
"base_pairs" real,
"genes" real
); | SELECT "type" FROM "list_of_sequenced_bacterial_genomes" WHERE "species"='unspecified' AND "genes"<367; | 2-11664498-16 |
What base pair has 832 genes? | CREATE TABLE "list_of_sequenced_bacterial_genomes" (
"species" text,
"strain" text,
"type" text,
"base_pairs" real,
"genes" real
); | SELECT "base_pairs" FROM "list_of_sequenced_bacterial_genomes" WHERE "genes"=832; | 2-11664498-16 |
How many genes have a Species of leptospira interrogans, and a Base Pairs smaller than 4,277,185? | CREATE TABLE "list_of_sequenced_bacterial_genomes" (
"species" text,
"strain" text,
"type" text,
"base_pairs" real,
"genes" real
); | SELECT SUM("genes") FROM "list_of_sequenced_bacterial_genomes" WHERE "species"='leptospira interrogans' AND "base_pairs"<'4,277,185'; | 2-11664498-16 |
Which competition was ranked 9? | CREATE TABLE "scotland_national_team" (
"rank" real,
"date" text,
"stadium" text,
"opponent" text,
"competition" text,
"score_scotland_s_score_is_shown_first" text
); | SELECT "competition" FROM "scotland_national_team" WHERE "rank"=9; | 2-11773502-4 |
What was Scotland's score at the rank 3 Competition of BHC? | CREATE TABLE "scotland_national_team" (
"rank" real,
"date" text,
"stadium" text,
"opponent" text,
"competition" text,
"score_scotland_s_score_is_shown_first" text
); | SELECT "score_scotland_s_score_is_shown_first" FROM "scotland_national_team" WHERE "competition"='bhc' AND "rank"=3; | 2-11773502-4 |
What is the sum of draws with 274-357 goals? | CREATE TABLE "all_time_table" (
"rank" real,
"club_1" text,
"seasons" real,
"spells" real,
"played_2" real,
"drawn" real,
"lost" real,
"goals" text,
"points_3" text
); | SELECT SUM("drawn") FROM "all_time_table" WHERE "goals"='274-357'; | 2-1167698-3 |
What is the lowest played 2 number with less than 83 losses and less than 65 draws with Chernomorets Novorossiysk in season 8? | CREATE TABLE "all_time_table" (
"rank" real,
"club_1" text,
"seasons" real,
"spells" real,
"played_2" real,
"drawn" real,
"lost" real,
"goals" text,
"points_3" text
); | SELECT MIN("played_2") FROM "all_time_table" WHERE "lost">83 AND "seasons"=8 AND "club_1"='chernomorets novorossiysk' AND "drawn"<65; | 2-1167698-3 |
What is the rank number with 562-506 goals before season 13? | CREATE TABLE "all_time_table" (
"rank" real,
"club_1" text,
"seasons" real,
"spells" real,
"played_2" real,
"drawn" real,
"lost" real,
"goals" text,
"points_3" text
); | SELECT COUNT("rank") FROM "all_time_table" WHERE "goals"='562-506' AND "seasons"<13; | 2-1167698-3 |
How many seasons have goals of 261-338 with more than 111 losses? | CREATE TABLE "all_time_table" (
"rank" real,
"club_1" text,
"seasons" real,
"spells" real,
"played_2" real,
"drawn" real,
"lost" real,
"goals" text,
"points_3" text
); | SELECT COUNT("seasons") FROM "all_time_table" WHERE "goals"='261-338' AND "lost">111; | 2-1167698-3 |
What is the highest season number with 57 draws, rank 20, and more than 1 spell? | CREATE TABLE "all_time_table" (
"rank" real,
"club_1" text,
"seasons" real,
"spells" real,
"played_2" real,
"drawn" real,
"lost" real,
"goals" text,
"points_3" text
); | SELECT MAX("seasons") FROM "all_time_table" WHERE "drawn"=57 AND "rank"=20 AND "spells">1; | 2-1167698-3 |
What was the results of the game at Doha? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "result" FROM "international_goals" WHERE "venue"='doha'; | 2-11860857-3 |
What was the score during the competition of 1998 fifa world cup qualification? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "international_goals" WHERE "competition"='1998 fifa world cup qualification'; | 2-11860857-3 |
What is the competition that took place on October 1, 1994? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "international_goals" WHERE "date"='october 1, 1994'; | 2-11860857-3 |
What is the competition that had a 2-2 result? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "international_goals" WHERE "result"='2-2'; | 2-11860857-3 |
Where did the competition take place that had a 4-2 result? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "venue" FROM "international_goals" WHERE "result"='4-2'; | 2-11860857-3 |
Where was the competition that took place that had a 5-1 result? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "venue" FROM "international_goals" WHERE "result"='5-1'; | 2-11860857-3 |
Tell me the highest goals with tries less than 1 and fullback position | CREATE TABLE "1996_squad_statistics" (
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
); | SELECT MAX("goals") FROM "1996_squad_statistics" WHERE "tries"<1 AND "position"='fullback'; | 2-10818970-7 |
Tell me the lowest tries for goals more than 0 with centre position and points less than 54 | CREATE TABLE "1996_squad_statistics" (
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
); | SELECT MIN("tries") FROM "1996_squad_statistics" WHERE "goals">0 AND "position"='centre' AND "points"<54; | 2-10818970-7 |
I want to know the player with tries more than 1 and position of hooker with points less than 54 | CREATE TABLE "1996_squad_statistics" (
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
); | SELECT "player" FROM "1996_squad_statistics" WHERE "tries">1 AND "points"<54 AND "position"='hooker'; | 2-10818970-7 |
Tell me the player with points larger than 36 and goals more than 0 with tries of 12 | CREATE TABLE "1996_squad_statistics" (
"player" text,
"position" text,
"tries" real,
"goals" real,
"points" real
); | SELECT "player" FROM "1996_squad_statistics" WHERE "points">36 AND "goals">0 AND "tries"=12; | 2-10818970-7 |
What Tournament was the 2010 Olympic Games? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "tournament" FROM "singles_performance_timeline" WHERE "2010"='olympic games'; | 2-11801126-5 |
Which width had an entered service year of 2010? | CREATE TABLE "current_fleet" (
"ship" text,
"built" real,
"entered_service" real,
"route" text,
"gross_tonnage" text,
"length" text,
"width" text,
"passengers" real,
"vessels" real,
"knots" real
); | SELECT "width" FROM "current_fleet" WHERE "entered_service"=2010; | 2-12053121-1 |
What is the most recent built year when the year of entering service was more recent than 2003, and the knots is less than 27? | CREATE TABLE "current_fleet" (
"ship" text,
"built" real,
"entered_service" real,
"route" text,
"gross_tonnage" text,
"length" text,
"width" text,
"passengers" real,
"vessels" real,
"knots" real
); | SELECT MAX("built") FROM "current_fleet" WHERE "entered_service">2003 AND "knots"<27; | 2-12053121-1 |
How many knots did the Ms Moby Vincent have when passengers was less than 1.6? | CREATE TABLE "current_fleet" (
"ship" text,
"built" real,
"entered_service" real,
"route" text,
"gross_tonnage" text,
"length" text,
"width" text,
"passengers" real,
"vessels" real,
"knots" real
); | SELECT COUNT("knots") FROM "current_fleet" WHERE "ship"='ms moby vincent' AND "passengers"<1.6; | 2-12053121-1 |
Where did Richmond play as the away team? | CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_16" WHERE "away_team"='richmond'; | 2-10790099-16 |
When the phillies 1:15 pm played on April 9, what was the attendance? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "attendance" FROM "game_log" WHERE "opponent"='phillies 1:15 pm' AND "date"='april 9'; | 2-11195757-1 |
When was there a score of 5-1? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "date" FROM "game_log" WHERE "score"='5-1'; | 2-11195757-1 |
What is the average number of silvers for nations with over 1 bronze medal? | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("silver") FROM "medal_table" WHERE "bronze">1; | 2-11456020-2 |
What is the Interregnum ended for Count Palatine of Saxony of frederick augustus i, elector of saxony? | CREATE TABLE "list_of_imperial_vicars_1437_1792" (
"interregnum_began" text,
"interregnum_ended" text,
"duration" text,
"count_palatine_of_saxony" text,
"count_palatine_of_the_rhine" text
); | SELECT "interregnum_ended" FROM "list_of_imperial_vicars_1437_1792" WHERE "count_palatine_of_saxony"='frederick augustus i, elector of saxony'; | 2-11071897-1 |
What is the Interregnum ended for Count Palatine of Saxony of john george ii, elector of saxony? | CREATE TABLE "list_of_imperial_vicars_1437_1792" (
"interregnum_began" text,
"interregnum_ended" text,
"duration" text,
"count_palatine_of_saxony" text,
"count_palatine_of_the_rhine" text
); | SELECT "interregnum_ended" FROM "list_of_imperial_vicars_1437_1792" WHERE "count_palatine_of_saxony"='john george ii, elector of saxony'; | 2-11071897-1 |
What is the duration for Count Palatine of the Rhine of charles albert, elector of bavaria? | CREATE TABLE "list_of_imperial_vicars_1437_1792" (
"interregnum_began" text,
"interregnum_ended" text,
"duration" text,
"count_palatine_of_saxony" text,
"count_palatine_of_the_rhine" text
); | SELECT "duration" FROM "list_of_imperial_vicars_1437_1792" WHERE "count_palatine_of_the_rhine"='charles albert, elector of bavaria'; | 2-11071897-1 |
What is the name of the Count Palatine of the Rhine with a Interregnum began of 2 april 1657 death of ferdinand iii? | CREATE TABLE "list_of_imperial_vicars_1437_1792" (
"interregnum_began" text,
"interregnum_ended" text,
"duration" text,
"count_palatine_of_saxony" text,
"count_palatine_of_the_rhine" text
); | SELECT "count_palatine_of_the_rhine" FROM "list_of_imperial_vicars_1437_1792" WHERE "interregnum_began"='2 april 1657 death of ferdinand iii'; | 2-11071897-1 |
What is the Interregnum ended for the person with a Duration of 3 months, 6 days? | CREATE TABLE "list_of_imperial_vicars_1437_1792" (
"interregnum_began" text,
"interregnum_ended" text,
"duration" text,
"count_palatine_of_saxony" text,
"count_palatine_of_the_rhine" text
); | SELECT "interregnum_ended" FROM "list_of_imperial_vicars_1437_1792" WHERE "duration"='3 months, 6 days'; | 2-11071897-1 |
What was the crowd size when the home team was Hawthorn? | CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "crowd" FROM "round_5" WHERE "home_team"='hawthorn'; | 2-10809351-5 |
What is the total share with Timeslot of 8:30 p.m., anAir Date of march 27, 2008, and a Rank greater than 65? | CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"rating" real,
"share" real,
"18_49_rating_share" text,
"viewers_m" real,
"rank_timeslot" real,
"rank_night" text,
"rank_overall" real
); | SELECT SUM("share") FROM "weekly_ratings" WHERE "timeslot"='8:30 p.m.' AND "air_date"='march 27, 2008' AND "rank_overall">65; | 2-11235762-2 |
How many viewers have an Air Date of march 20, 2008, and an 18-49 (Rating/Share) of 2.3/7? | CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"rating" real,
"share" real,
"18_49_rating_share" text,
"viewers_m" real,
"rank_timeslot" real,
"rank_night" text,
"rank_overall" real
); | SELECT "viewers_m" FROM "weekly_ratings" WHERE "air_date"='march 20, 2008' AND "18_49_rating_share"='2.3/7'; | 2-11235762-2 |
What is the total number of Viewers with a Rank (Night) of n/a, and a Timeslot of 8:30 p.m.? | CREATE TABLE "weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot" text,
"rating" real,
"share" real,
"18_49_rating_share" text,
"viewers_m" real,
"rank_timeslot" real,
"rank_night" text,
"rank_overall" real
); | SELECT COUNT("viewers_m") FROM "weekly_ratings" WHERE "rank_night"='n/a' AND "timeslot"='8:30 p.m.'; | 2-11235762-2 |
How many people attended the game when Calgary was the home team and the decision was McLean? | CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT COUNT("attendance") FROM "april" WHERE "decision"='mclean' AND "home"='calgary'; | 2-11128774-8 |
What is the record of the game when Los Angeles was the home team? | CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "april" WHERE "home"='los angeles'; | 2-11128774-8 |
What is the record of the game with a score of 1 – 5? | CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "april" WHERE "score"='1 – 5'; | 2-11128774-8 |
What is the least number of people to attend a game when Los Angeles was the home team? | CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT MIN("attendance") FROM "april" WHERE "home"='los angeles'; | 2-11128774-8 |
who is the runner- up when the tournament is santiago? | CREATE TABLE "2011" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "runner_up" FROM "2011" WHERE "tournament"='santiago'; | 2-11346282-13 |
what is the score when the runner-up is richard krajicek? | CREATE TABLE "2011" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "score" FROM "2011" WHERE "runner_up"='richard krajicek'; | 2-11346282-13 |
what is the tournament when the score is 7-6(0), 6-3? | CREATE TABLE "2011" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "tournament" FROM "2011" WHERE "score"='7-6(0), 6-3'; | 2-11346282-13 |
who is third place when the tournament is delray beach? | CREATE TABLE "2011" (
"tournament" text,
"winner" text,
"runner_up" text,
"score" text,
"third_place" text
); | SELECT "third_place" FROM "2011" WHERE "tournament"='delray beach'; | 2-11346282-13 |
What was the score in the Continental Qualifier on February 23, 2003? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "international_goals" WHERE "competition"='continental qualifier' AND "date"='february 23, 2003'; | 2-11945983-1 |
What was the score for the World Cup Qualifier? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "international_goals" WHERE "competition"='world cup qualifier'; | 2-11945983-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.