question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What state has a swimsuit less than 9.277, gown more than 8.944 and preliminary greater than 8.483? | CREATE TABLE "final_competition_scores" (
"state" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT "state" FROM "final_competition_scores" WHERE "swimsuit"<9.277 AND "evening_gown">8.944 AND "preliminary"<8.483; | 2-17516967-1 |
What is the average when interview is 9.465 and evening gown is less than 9.454? | CREATE TABLE "final_competition_scores" (
"state" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT SUM("average") FROM "final_competition_scores" WHERE "interview"=9.465 AND "evening_gown"<9.454; | 2-17516967-1 |
What is the best preliminary score from a contestant from Oklahoma with evening gown less than 8.853? | CREATE TABLE "final_competition_scores" (
"state" text,
"preliminary" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT MAX("preliminary") FROM "final_competition_scores" WHERE "state"='oklahoma' AND "evening_gown"<8.853; | 2-17516967-1 |
What is Written By, when Originalairdate is 25 April 1993? | CREATE TABLE "episodes" (
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text
); | SELECT "written_by" FROM "episodes" WHERE "originalairdate"='25 april 1993'; | 2-16257363-1 |
What is Directed By, when Episode # is 7? | CREATE TABLE "episodes" (
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text
); | SELECT "directed_by" FROM "episodes" WHERE "episode_num"=7; | 2-16257363-1 |
WHAT IS THE LOWEST AVERAGE FINISH FOR 40TH POSITION, WITH A TOP 5 LARGER THAN 0? | CREATE TABLE "nascar_sprint_cup_series" (
"year" text,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"position" text
); | SELECT MIN("avg_finish") FROM "nascar_sprint_cup_series" WHERE "position"='40th' AND "top_5">0; | 2-1671401-1 |
What country has 50 supermarkets? | CREATE TABLE "europe" (
"country" text,
"first_store" text,
"hypermarkets" text,
"supermarkets" text,
"hard_discounters" text
); | SELECT "country" FROM "europe" WHERE "supermarkets"='50'; | 2-167638-3 |
What country has 370 supermarkets? | CREATE TABLE "europe" (
"country" text,
"first_store" text,
"hypermarkets" text,
"supermarkets" text,
"hard_discounters" text
); | SELECT "country" FROM "europe" WHERE "supermarkets"='370'; | 2-167638-3 |
What country has a fire store of 1991 and a hard discounter of 397? | CREATE TABLE "europe" (
"country" text,
"first_store" text,
"hypermarkets" text,
"supermarkets" text,
"hard_discounters" text
); | SELECT "country" FROM "europe" WHERE "first_store"='1991' AND "hard_discounters"='397'; | 2-167638-3 |
Which engine is in all rounds with Tsugio Matsuda driving? | CREATE TABLE "teams_and_drivers" (
"team" text,
"driver" text,
"chassis" text,
"engine" text,
"rounds" text
); | SELECT "engine" FROM "teams_and_drivers" WHERE "rounds"='all' AND "driver"='tsugio matsuda'; | 2-16670746-1 |
Which engine is used by Team Lemans with Hiroaki Ishiura driving? | CREATE TABLE "teams_and_drivers" (
"team" text,
"driver" text,
"chassis" text,
"engine" text,
"rounds" text
); | SELECT "engine" FROM "teams_and_drivers" WHERE "team"='team lemans' AND "driver"='hiroaki ishiura'; | 2-16670746-1 |
What is the least rank with more than 3 losses and less than 25 sets lost? | CREATE TABLE "eliminations_standing" (
"rank" real,
"team" text,
"loss" real,
"sets_won" real,
"sets_lost" real,
"percentage" text
); | SELECT MIN("rank") FROM "eliminations_standing" WHERE "loss">3 AND "sets_lost"<25; | 2-16348031-4 |
What is the least rank with more than 16 sets won and less than 1 loss? | CREATE TABLE "eliminations_standing" (
"rank" real,
"team" text,
"loss" real,
"sets_won" real,
"sets_lost" real,
"percentage" text
); | SELECT MIN("rank") FROM "eliminations_standing" WHERE "sets_won">16 AND "loss"<1; | 2-16348031-4 |
Who was the home team when the away team was Telford United? | CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "home_team" FROM "fifth_round_proper" WHERE "away_team"='telford united'; | 2-17438338-5 |
What was the score when the away team was West Ham United? | CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "score" FROM "fifth_round_proper" WHERE "away_team"='west ham united'; | 2-17438338-5 |
What is the Tie Number when the home team was West Ham United? | CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "tie_no" FROM "fifth_round_proper" WHERE "home_team"='west ham united'; | 2-17438338-5 |
Name the Model Number which has a FSB Speed of 400 mhz? | CREATE TABLE "ultra_low_voltage_90_nm" (
"model_number" text,
"clock_speed" text,
"l2_cache" text,
"fsb_speed" text,
"voltage_range" text,
"socket" text
); | SELECT "model_number" FROM "ultra_low_voltage_90_nm" WHERE "fsb_speed"='400 mhz'; | 2-16316920-4 |
Name the Voltage Range which has a FSB Speed of 400 mhz, and a Clock Speed of 1 ghz? | CREATE TABLE "ultra_low_voltage_90_nm" (
"model_number" text,
"clock_speed" text,
"l2_cache" text,
"fsb_speed" text,
"voltage_range" text,
"socket" text
); | SELECT "voltage_range" FROM "ultra_low_voltage_90_nm" WHERE "fsb_speed"='400 mhz' AND "clock_speed"='1 ghz'; | 2-16316920-4 |
Name the L2 Cache which has a Clock Speed of 1.5 ghz? | CREATE TABLE "ultra_low_voltage_90_nm" (
"model_number" text,
"clock_speed" text,
"l2_cache" text,
"fsb_speed" text,
"voltage_range" text,
"socket" text
); | SELECT "l2_cache" FROM "ultra_low_voltage_90_nm" WHERE "clock_speed"='1.5 ghz'; | 2-16316920-4 |
What is the earliest game against Orlando? | CREATE TABLE "regular_season" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT MIN("game") FROM "regular_season" WHERE "team"='orlando'; | 2-17323092-7 |
Which Week has an Attendance of 72,855? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT MAX("week") FROM "schedule" WHERE "attendance"='72,855'; | 2-16729059-1 |
Which Week has a Date of december 8, 1991? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT AVG("week") FROM "schedule" WHERE "date"='december 8, 1991'; | 2-16729059-1 |
Which Opponent has a Date of november 24, 1991? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "opponent" FROM "schedule" WHERE "date"='november 24, 1991'; | 2-16729059-1 |
Which location has a rank of 147? | CREATE TABLE "the_200_most_topographically_isolated_su" (
"rank" real,
"mountain_peak" text,
"state" text,
"mountain_range" text,
"location" text
); | SELECT "location" FROM "the_200_most_topographically_isolated_su" WHERE "rank"=147; | 2-16243048-1 |
Which mountain range contains Sierra Blanca Peak? | CREATE TABLE "the_200_most_topographically_isolated_su" (
"rank" real,
"mountain_peak" text,
"state" text,
"mountain_range" text,
"location" text
); | SELECT "mountain_range" FROM "the_200_most_topographically_isolated_su" WHERE "mountain_peak"='sierra blanca peak'; | 2-16243048-1 |
Which location is in Oregon, ranked under 121, and contains Mount McLoughlin? | CREATE TABLE "the_200_most_topographically_isolated_su" (
"rank" real,
"mountain_peak" text,
"state" text,
"mountain_range" text,
"location" text
); | SELECT "location" FROM "the_200_most_topographically_isolated_su" WHERE "state"='oregon' AND "rank"<121 AND "mountain_peak"='mount mcloughlin'; | 2-16243048-1 |
What is the film, television series, or miniseries with a nomination in 2001? | CREATE TABLE "golden_globe_awards_fictional_presidents" (
"year" real,
"category" text,
"president" text,
"nominee" text,
"film_or_television_series_or_miniseries" text
); | SELECT "film_or_television_series_or_miniseries" FROM "golden_globe_awards_fictional_presidents" WHERE "year"=2001; | 2-1673723-13 |
In what year was Martin Sheen nominated? | CREATE TABLE "golden_globe_awards_fictional_presidents" (
"year" real,
"category" text,
"president" text,
"nominee" text,
"film_or_television_series_or_miniseries" text
); | SELECT "year" FROM "golden_globe_awards_fictional_presidents" WHERE "nominee"='martin sheen'; | 2-1673723-13 |
Who was the president in 1999? | CREATE TABLE "golden_globe_awards_fictional_presidents" (
"year" real,
"category" text,
"president" text,
"nominee" text,
"film_or_television_series_or_miniseries" text
); | SELECT "president" FROM "golden_globe_awards_fictional_presidents" WHERE "year"=1999; | 2-1673723-13 |
Which Date has a Status of second test? | CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "date" FROM "matches" WHERE "status"='second test'; | 2-17007880-1 |
Which Venue has an Against of 25? | CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "venue" FROM "matches" WHERE "against"=25; | 2-17007880-1 |
Which Status has a Date of 19/05/1981? | CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "status" FROM "matches" WHERE "date"='19/05/1981'; | 2-17007880-1 |
Which Against has a Date of 30/05/1981? | CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT COUNT("against") FROM "matches" WHERE "date"='30/05/1981'; | 2-17007880-1 |
Which Date has an Against smaller than 21, and a Status of second test? | CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "date" FROM "matches" WHERE "against"<21 AND "status"='second test'; | 2-17007880-1 |
What is Rochester, when Syracuse is Cardiff Dark Gray Shale, and when Albany is (Mt. Marion Fm.)? | CREATE TABLE "members_of_the_marcellus_formation_from_" (
"buffalo" text,
"rochester" text,
"syracuse" text,
"utica" text,
"albany" text
); | SELECT "rochester" FROM "members_of_the_marcellus_formation_from_" WHERE "syracuse"='cardiff dark gray shale' AND "albany"='(mt. marion fm.)'; | 2-16738000-1 |
What is Albany, when Buffalo is Oatka Creek Shale, and when Syracuse is Cardiff Dark Gray Shale? | CREATE TABLE "members_of_the_marcellus_formation_from_" (
"buffalo" text,
"rochester" text,
"syracuse" text,
"utica" text,
"albany" text
); | SELECT "albany" FROM "members_of_the_marcellus_formation_from_" WHERE "buffalo"='oatka creek shale' AND "syracuse"='cardiff dark gray shale'; | 2-16738000-1 |
What is Syracuse, when Utica is Union Springs Shale And Limestone, and when Rochester is Union Springs Shale And Limestone? | CREATE TABLE "members_of_the_marcellus_formation_from_" (
"buffalo" text,
"rochester" text,
"syracuse" text,
"utica" text,
"albany" text
); | SELECT "syracuse" FROM "members_of_the_marcellus_formation_from_" WHERE "utica"='union springs shale and limestone' AND "rochester"='union springs shale and limestone'; | 2-16738000-1 |
What is Syracuse, when Utica is Solsville Shale And Sandstone? | CREATE TABLE "members_of_the_marcellus_formation_from_" (
"buffalo" text,
"rochester" text,
"syracuse" text,
"utica" text,
"albany" text
); | SELECT "syracuse" FROM "members_of_the_marcellus_formation_from_" WHERE "utica"='solsville shale and sandstone'; | 2-16738000-1 |
What is Syracuse, when Buffalo is Oatka Creek Shale, and when Albany is Berne? | CREATE TABLE "members_of_the_marcellus_formation_from_" (
"buffalo" text,
"rochester" text,
"syracuse" text,
"utica" text,
"albany" text
); | SELECT "syracuse" FROM "members_of_the_marcellus_formation_from_" WHERE "buffalo"='oatka creek shale' AND "albany"='berne'; | 2-16738000-1 |
What is the Name of the Players with a Rank of 18? | CREATE TABLE "ice_dancing" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"placings" real
); | SELECT "name" FROM "ice_dancing" WHERE "rank"=18; | 2-16831299-5 |
How many Points for the couple ranking 17 with Placings larger than 100? | CREATE TABLE "ice_dancing" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"placings" real
); | SELECT "points" FROM "ice_dancing" WHERE "placings">100 AND "rank"=17; | 2-16831299-5 |
What is the Rank of the couple with less than 408.8 Points and Placings of 160? | CREATE TABLE "ice_dancing" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"placings" real
); | SELECT "rank" FROM "ice_dancing" WHERE "points"<408.8 AND "placings"=160; | 2-16831299-5 |
What is the Place of the couple with a Rank smaller than 7 and 514.55 Points? | CREATE TABLE "ice_dancing" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"placings" real
); | SELECT SUM("placings") FROM "ice_dancing" WHERE "rank"<7 AND "points"=514.55; | 2-16831299-5 |
What is the total Lane with a Mark of 47.02, and a Heat higher than 5? | CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"mark" text
); | SELECT SUM("lane") FROM "heats" WHERE "mark"='47.02' AND "heat">5; | 2-16194679-2 |
With a Mark of 46.47, What is the lowest Heat? | CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"mark" text
); | SELECT MIN("heat") FROM "heats" WHERE "mark"='46.47'; | 2-16194679-2 |
What is the Country that has Richard Buck Lane higher than 3? | CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"country" text,
"mark" text
); | SELECT "country" FROM "heats" WHERE "lane">3 AND "name"='richard buck'; | 2-16194679-2 |
When did Louise, Princess royal get married? | CREATE TABLE "britain" (
"name_dates" text,
"eldest_daughter_from_date_to_date" text,
"father" text,
"date_married" text,
"husband_dates" text
); | SELECT "date_married" FROM "britain" WHERE "name_dates"='louise, princess royal'; | 2-172426-4 |
What are the Djurgården scorers that have a Score of 2-1? | CREATE TABLE "svenska_cupen_2005" (
"date" text,
"venue" text,
"opponents" text,
"score" text,
"round" text,
"djurg_rden_scorers" text,
"attendance" text
); | SELECT "djurg_rden_scorers" FROM "svenska_cupen_2005" WHERE "score"='2-1'; | 2-16514823-3 |
What are the Opponents that have Djurgården scorers of sjölund (2)? | CREATE TABLE "svenska_cupen_2005" (
"date" text,
"venue" text,
"opponents" text,
"score" text,
"round" text,
"djurg_rden_scorers" text,
"attendance" text
); | SELECT "opponents" FROM "svenska_cupen_2005" WHERE "djurg_rden_scorers"='sjölund (2)'; | 2-16514823-3 |
What is the Score that has a Date of 2005-10-29? | CREATE TABLE "svenska_cupen_2005" (
"date" text,
"venue" text,
"opponents" text,
"score" text,
"round" text,
"djurg_rden_scorers" text,
"attendance" text
); | SELECT "score" FROM "svenska_cupen_2005" WHERE "date"='2005-10-29'; | 2-16514823-3 |
What is the Score that has an Attendance of 4 679? | CREATE TABLE "svenska_cupen_2005" (
"date" text,
"venue" text,
"opponents" text,
"score" text,
"round" text,
"djurg_rden_scorers" text,
"attendance" text
); | SELECT "score" FROM "svenska_cupen_2005" WHERE "attendance"='4 679'; | 2-16514823-3 |
What is the Date that has a Round of semifinal? | CREATE TABLE "svenska_cupen_2005" (
"date" text,
"venue" text,
"opponents" text,
"score" text,
"round" text,
"djurg_rden_scorers" text,
"attendance" text
); | SELECT "date" FROM "svenska_cupen_2005" WHERE "round"='semifinal'; | 2-16514823-3 |
Which Round is the highest one that has a College of arizona, and an Overall larger than 120? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT MAX("round") FROM "washington_redskins_draft_history" WHERE "college"='arizona' AND "overall">120; | 2-17100961-10 |
Which Pick has a Name of ed hickerson, and a Round smaller than 10? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "name"='ed hickerson' AND "round"<10; | 2-17100961-10 |
How much Overall has a Pick of 10, and a Round smaller than 8, and a Position of e, and a College of tennessee? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "pick"=10 AND "round"<8 AND "position"='e' AND "college"='tennessee'; | 2-17100961-10 |
What date was the away team Morecambe? | CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "date" FROM "first_round_proper" WHERE "away_team"='morecambe'; | 2-17620547-2 |
What team was the away team when the home team was Grimsby Town? | CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "away_team" FROM "first_round_proper" WHERE "home_team"='grimsby town'; | 2-17620547-2 |
What team was the away team when the home team was Hereford United? | CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "away_team" FROM "first_round_proper" WHERE "home_team"='hereford united'; | 2-17620547-2 |
What team was the away team when the tie no is 40? | CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='40'; | 2-17620547-2 |
What was the 1st leg score for the team with an Agg score of 151-134? | CREATE TABLE "second_preliminary_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "1st_leg" FROM "second_preliminary_round" WHERE "agg"='151-134'; | 2-17306260-2 |
What was the team Unics Kazan's 1st leg score? | CREATE TABLE "second_preliminary_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "1st_leg" FROM "second_preliminary_round" WHERE "team_num1"='unics kazan'; | 2-17306260-2 |
Who was the first team when the second team was Kalise Gran Canaria? | CREATE TABLE "second_preliminary_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_num1" FROM "second_preliminary_round" WHERE "team_num2"='kalise gran canaria'; | 2-17306260-2 |
Which second team had a first leg score of 83-69? | CREATE TABLE "second_preliminary_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_num2" FROM "second_preliminary_round" WHERE "1st_leg"='83-69'; | 2-17306260-2 |
Which Team #1 had a 2nd leg score of 88-83? | CREATE TABLE "second_preliminary_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_num1" FROM "second_preliminary_round" WHERE "2nd_leg"='88-83'; | 2-17306260-2 |
What was the score of game 30? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"location_attendance" text,
"record" text
); | SELECT "score" FROM "game_log" WHERE "game"=30; | 2-17322817-6 |
Who was the high scorer in the Toronto game? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"location_attendance" text,
"record" text
); | SELECT "high_points" FROM "game_log" WHERE "team"='toronto'; | 2-17322817-6 |
What is the highest date in october for a game number larger than 8 with a record of 4-4-0? | CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
); | SELECT MAX("october") FROM "schedule_and_results" WHERE "record"='4-4-0' AND "game">8; | 2-17562992-2 |
When the tom watson is playing for the United States and the To par is under 14, what's the total? | CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" text,
"to_par" real
); | SELECT "total" FROM "missed_the_cut" WHERE "country"='united states' AND "to_par"<14 AND "player"='tom watson'; | 2-16514575-3 |
What player has a total of 158/ | CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" text,
"to_par" real
); | SELECT "player" FROM "missed_the_cut" WHERE "total"='158'; | 2-16514575-3 |
If 1967 is the winning year and a player has a total recorded as wd with a To par under 16, what's the players name? | CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" text,
"to_par" real
); | SELECT "player" FROM "missed_the_cut" WHERE "total"='wd' AND "to_par"<16 AND "year_s_won"='1967'; | 2-16514575-3 |
How many kicks did he get in the year when he played 7 games? | CREATE TABLE "statistics" (
"season" text,
"team" text,
"games" text,
"disposals" text,
"kicks" text,
"handballs" text,
"marks" text,
"tackles" text,
"goals" text,
"behinds" text
); | SELECT "kicks" FROM "statistics" WHERE "games"='7'; | 2-1756688-1 |
How many marks did he get in 2005? | CREATE TABLE "statistics" (
"season" text,
"team" text,
"games" text,
"disposals" text,
"kicks" text,
"handballs" text,
"marks" text,
"tackles" text,
"goals" text,
"behinds" text
); | SELECT "marks" FROM "statistics" WHERE "season"='2005'; | 2-1756688-1 |
How many wins did West Ham get when Millwall had more than 23 goal and 5 wins, and they tied 8 times? | CREATE TABLE "record_by_competition" (
"competition" text,
"played" real,
"millwall_wins" real,
"drawn" real,
"west_ham_wins" real,
"millwall_goals" real,
"west_ham_goals" real
); | SELECT "west_ham_wins" FROM "record_by_competition" WHERE "millwall_wins">5 AND "millwall_goals">23 AND "drawn"=8; | 2-17579291-1 |
What is the least number of wins West Ham got when they tied 27 times? | CREATE TABLE "record_by_competition" (
"competition" text,
"played" real,
"millwall_wins" real,
"drawn" real,
"west_ham_wins" real,
"millwall_goals" real,
"west_ham_goals" real
); | SELECT MIN("west_ham_wins") FROM "record_by_competition" WHERE "drawn">27; | 2-17579291-1 |
what is the attendance when the date is october 22, 2000? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "attendance" FROM "schedule" WHERE "date"='october 22, 2000'; | 2-16434052-1 |
What is the highest value for 2000, when the value for 1950 is 3.5, and when the value for 1970 is greater than 3.4? | CREATE TABLE "share_of_global_gdp_ppp_pct" (
"region" text,
"1950" real,
"1960" real,
"1970" real,
"1980" real,
"1990" real,
"2000" real
); | SELECT MAX("2000") FROM "share_of_global_gdp_ppp_pct" WHERE "1950"=3.5 AND "1970">3.4; | 2-16234875-1 |
What is the lowest value for 1990, when the Region is East Asia (10 Economies), and when 1960 has a value less than 12.6? | CREATE TABLE "share_of_global_gdp_ppp_pct" (
"region" text,
"1950" real,
"1960" real,
"1970" real,
"1980" real,
"1990" real,
"2000" real
); | SELECT MIN("1990") FROM "share_of_global_gdp_ppp_pct" WHERE "region"='east asia (10 economies)' AND "1960"<12.6; | 2-16234875-1 |
What is the average value for 1970, when the Region is East Europe (7 Economies), and when 2000 has a value greater than 2? | CREATE TABLE "share_of_global_gdp_ppp_pct" (
"region" text,
"1950" real,
"1960" real,
"1970" real,
"1980" real,
"1990" real,
"2000" real
); | SELECT AVG("1970") FROM "share_of_global_gdp_ppp_pct" WHERE "region"='east europe (7 economies)' AND "2000">2; | 2-16234875-1 |
What is the highest value for 1970, when the value for 1960 is less than 61.9, when the value for 1980 is less than 3.8, when the value for 1990 is 3.3, and when the value for 2000 is greater than 3.2? | CREATE TABLE "share_of_global_gdp_ppp_pct" (
"region" text,
"1950" real,
"1960" real,
"1970" real,
"1980" real,
"1990" real,
"2000" real
); | SELECT MAX("1970") FROM "share_of_global_gdp_ppp_pct" WHERE "1960"<61.9 AND "1980"<3.8 AND "1990"=3.3 AND "2000">3.2; | 2-16234875-1 |
What is the lowest value for 1960, when the value for 2000 is less than 8.4, when the value for 1950 is greater than 3.5, and when the value for 1990 is less than 3.3? | CREATE TABLE "share_of_global_gdp_ppp_pct" (
"region" text,
"1950" real,
"1960" real,
"1970" real,
"1980" real,
"1990" real,
"2000" real
); | SELECT MIN("1960") FROM "share_of_global_gdp_ppp_pct" WHERE "2000"<8.4 AND "1950">3.5 AND "1990"<3.3; | 2-16234875-1 |
What average drawn has a played greater than 42? | CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
); | SELECT AVG("drawn") FROM "final_table" WHERE "played">42; | 2-17369130-1 |
What is the highest played that has a position less than 17, and 63 as the goals for? | CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
); | SELECT MAX("played") FROM "final_table" WHERE "position"<17 AND "goals_for"=63; | 2-17369130-1 |
What is the lowest played that has a position greater than 6, 61 as the goals against, with a loss less than 16? | CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
); | SELECT MIN("played") FROM "final_table" WHERE "position">6 AND "goals_against"=61 AND "lost"<16; | 2-17369130-1 |
What is the highest goals for that has a drawn less than 11, with a played less than 42? | CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
); | SELECT MAX("goals_for") FROM "final_table" WHERE "drawn"<11 AND "played"<42; | 2-17369130-1 |
What is the average goals for that has +40 as the goals difference, with points 1 greater than 55? | CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
); | SELECT AVG("goals_for") FROM "final_table" WHERE "goal_difference"='+40' AND "points_1">55; | 2-17369130-1 |
Can you tell me the average Total that has the To par of 15? | CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
); | SELECT AVG("total") FROM "missed_the_cut" WHERE "to_par"=15; | 2-17162166-3 |
Can you tell me the Country that has the To par larger than 9, and the Year(s) won of 1984? | CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
); | SELECT "country" FROM "missed_the_cut" WHERE "to_par">9 AND "year_s_won"='1984'; | 2-17162166-3 |
Who produced the track that is 4:16 long? | CREATE TABLE "turkish_cd_track_listings" (
"track" real,
"title" text,
"songwriter_s" text,
"producer_s" text,
"length" text
); | SELECT "producer_s" FROM "turkish_cd_track_listings" WHERE "length"='4:16'; | 2-16431493-2 |
Who produced track 7? | CREATE TABLE "turkish_cd_track_listings" (
"track" real,
"title" text,
"songwriter_s" text,
"producer_s" text,
"length" text
); | SELECT "producer_s" FROM "turkish_cd_track_listings" WHERE "track"=7; | 2-16431493-2 |
What is the contract length when rejected is the status? | CREATE TABLE "contracts" (
"nat" text,
"name" text,
"status" text,
"contract_length" text,
"expiry_date" real,
"source" text
); | SELECT "contract_length" FROM "contracts" WHERE "status"='rejected'; | 2-17596418-3 |
what is the average drawn when the points is more than 15, lost is 1 and played is less than 14? | CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
); | SELECT AVG("drawn") FROM "first_round" WHERE "points">15 AND "lost"=1 AND "played"<14; | 2-16501954-14 |
what is the lowest position when points is more than 11, name is ea schongau and lost is less than 3? | CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
); | SELECT MIN("position") FROM "first_round" WHERE "points">11 AND "name"='ea schongau' AND "lost"<3; | 2-16501954-14 |
what is the average lost when played is more than 14? | CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
); | SELECT AVG("lost") FROM "first_round" WHERE "played">14; | 2-16501954-14 |
what is the sum of drawn when points is less than 15, lost is 8 and position is more than 6? | CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
); | SELECT SUM("drawn") FROM "first_round" WHERE "points"<15 AND "lost"=8 AND "position">6; | 2-16501954-14 |
what is the lowest points when name is ehc münchen ii and position is less than 7? | CREATE TABLE "first_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
); | SELECT MIN("points") FROM "first_round" WHERE "name"='ehc münchen ii' AND "position"<7; | 2-16501954-14 |
what is the result when the week is earlier than 9 and attendance is 25,188? | CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"attendance" text
); | SELECT "result" FROM "season_schedule" WHERE "week"<9 AND "attendance"='25,188'; | 2-17507817-3 |
What is Team, when High Points is "Rashard Lewis (18)"? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
); | SELECT "team" FROM "game_log" WHERE "high_points"='rashard lewis (18)'; | 2-17311797-12 |
What is High Rebounds, when High Assists is "Rafer Alston , Rashard Lewis , Hedo Türkoğlu (3)"? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
); | SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='rafer alston , rashard lewis , hedo türkoğlu (3)'; | 2-17311797-12 |
What is Team, when High Points is "Rashard Lewis , Mickaël Piétrus (17)"? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
); | SELECT "team" FROM "game_log" WHERE "high_points"='rashard lewis , mickaël piétrus (17)'; | 2-17311797-12 |
What is the highest Game, when Team is "Celtics", and when High Assists is "Hedo Türkoğlu (4)"? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
); | SELECT MAX("game") FROM "game_log" WHERE "team"='celtics' AND "high_assists"='hedo türkoğlu (4)'; | 2-17311797-12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.