question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Which award has Thelma Ritter won? | CREATE TABLE "list_of_superlative_academy_award_winner" (
"superlative" text,
"actress" text,
"record_set" text,
"year" real,
"notes" text
); | SELECT "superlative" FROM "list_of_superlative_academy_award_winner" WHERE "actress"='thelma ritter'; | 2-10966872-7 |
I want the lowest points diff for against being less than 578 and lost being 15 and points more than 26 | CREATE TABLE "table" (
"team" text,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"points_diff" real,
"points" real
); | SELECT MIN("points_diff") FROM "table" WHERE "against"<578 AND "lost"=15 AND "points">26; | 2-10814485-3 |
I want the total number of points for against of 753 and points diff more than -114 | CREATE TABLE "table" (
"team" text,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"points_diff" real,
"points" real
); | SELECT COUNT("points") FROM "table" WHERE "against"=753 AND "points_diff">-114; | 2-10814485-3 |
In What Week was the Attendance 75,866? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "week" FROM "schedule" WHERE "attendance"='75,866'; | 2-11003266-2 |
What Opponent has an Attendance of 74,246? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "opponent" FROM "schedule" WHERE "attendance"='74,246'; | 2-11003266-2 |
What Date is Week 1? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "date" FROM "schedule" WHERE "week"=1; | 2-11003266-2 |
Which team had 7 losses and 55 goals? | CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" text,
"ties" real,
"goals_for" real,
"goals_against" real
); | SELECT "team" FROM "final_standing" WHERE "losses"='7' AND "goals_for"=55; | 2-12085488-1 |
What is the largest 2000 GDP when the 2008 GDP is smaller than 3,632, 2010 GDP is 2,558 and 2009 GDP is larger than 2,239? | CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" (
"year" text,
"2010" real,
"2009" real,
"2008" real,
"2005" real,
"2000" real,
"1995" real,
"1990" real,
"1985" real
); | SELECT MAX("2000") FROM "gdp_per_capita_in_usd_in_main_years_1978" WHERE "2008"<'3,632' AND "2010"='2,558' AND "2009">'2,239'; | 2-1145364-9 |
What is the GDP in 2008 for the region where 2009 is less than 3,355, 2005 is larger than 1,103, 2010 GDP is 3,977 and 1995 GDP is larger than 413? | CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" (
"year" text,
"2010" real,
"2009" real,
"2008" real,
"2005" real,
"2000" real,
"1995" real,
"1990" real,
"1985" real
); | SELECT COUNT("2008") FROM "gdp_per_capita_in_usd_in_main_years_1978" WHERE "2009"<'3,355' AND "2005">'1,103' AND "2010"='3,977' AND "1995">413; | 2-1145364-9 |
What is the minimum 2010 GDP if the 2009 GDP is larger than 3,749, 1995 GDP is 876 and 2008 GDP is larger than 4,885? | CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" (
"year" text,
"2010" real,
"2009" real,
"2008" real,
"2005" real,
"2000" real,
"1995" real,
"1990" real,
"1985" real
); | SELECT MIN("2010") FROM "gdp_per_capita_in_usd_in_main_years_1978" WHERE "2009">'3,749' AND "1995"=876 AND "2008">'4,885'; | 2-1145364-9 |
What is the 1995 GDP when 1990 GDP is 441 and 1985 GDP is less than 359? | CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" (
"year" text,
"2010" real,
"2009" real,
"2008" real,
"2005" real,
"2000" real,
"1995" real,
"1990" real,
"1985" real
); | SELECT MIN("1995") FROM "gdp_per_capita_in_usd_in_main_years_1978" WHERE "1990"=441 AND "1985"<359; | 2-1145364-9 |
What is the maximum 1985 GDP for the region where 1990 GDP is less than 267, 2000 GDP is 333 and 2005 GDP is less than 658? | CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" (
"year" text,
"2010" real,
"2009" real,
"2008" real,
"2005" real,
"2000" real,
"1995" real,
"1990" real,
"1985" real
); | SELECT MAX("1985") FROM "gdp_per_capita_in_usd_in_main_years_1978" WHERE "1990"<267 AND "2000"=333 AND "2005"<658; | 2-1145364-9 |
When populatioin is greater than 7,747 and the type is V, what is the sum of code? | 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 COUNT("code") FROM "list_of_municipalities_in_quebec" WHERE "type"='v' AND "population">'7,747'; | 2-11218948-15 |
Who has ties of 5? | CREATE TABLE "most_doubles_wins" (
"name" text,
"tkm_career" text,
"ties" real,
"dou_w_l" text,
"sin_w_l" text
); | SELECT "name" FROM "most_doubles_wins" WHERE "ties"=5; | 2-11311764-4 |
Where did st kilda play as the away team? | CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_10" WHERE "away_team"='st kilda'; | 2-1164217-10 |
What home team scored 10.14 (74)? | CREATE TABLE "round_10" (
"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_10" WHERE "home_team_score"='10.14 (74)'; | 2-1164217-10 |
How big of a crowd does the home team of essendon have? | CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "crowd" FROM "round_10" WHERE "home_team"='essendon'; | 2-1164217-10 |
What is the MLB Draft status of the person who attended Seton Hall Preparatory School? | CREATE TABLE "2003_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
); | SELECT "mlb_draft" FROM "2003_team" WHERE "school"='seton hall preparatory school'; | 2-11677100-9 |
Where is the Hometown of the person that attended Kennedy-Kenrick Catholic High School? | CREATE TABLE "2003_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
); | SELECT "hometown" FROM "2003_team" WHERE "school"='kennedy-kenrick catholic high school'; | 2-11677100-9 |
Which Player attended George Washington High School? | CREATE TABLE "2003_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
); | SELECT "player" FROM "2003_team" WHERE "school"='george washington high school'; | 2-11677100-9 |
Where is the Hometown that the person who attended Camarillo High School is from? | CREATE TABLE "2003_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
); | SELECT "hometown" FROM "2003_team" WHERE "school"='camarillo high school'; | 2-11677100-9 |
How many people in total have attended games where carlton played as away? | 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 COUNT("crowd") FROM "round_18" WHERE "away_team"='carlton'; | 2-10826385-18 |
When the home team scored 19.15 (129)? | 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 MIN("crowd") FROM "round_18" WHERE "home_team_score"='19.15 (129)'; | 2-10826385-18 |
Which player has a long of less than 15 and an average of 6 yards. | CREATE TABLE "receiving" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
); | SELECT "player" FROM "receiving" WHERE "long"<15 AND "avg"=6; | 2-11784134-6 |
What years did Troy Hudson play for the Jazz? | CREATE TABLE "h" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "years_for_jazz" FROM "h" WHERE "player"='troy hudson'; | 2-11545282-8 |
What Nationality is the Iowa State team? | CREATE TABLE "h" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "nationality" FROM "h" WHERE "school_club_team"='iowa state'; | 2-11545282-8 |
What Nationality is Jeff Hornacek? | CREATE TABLE "h" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "nationality" FROM "h" WHERE "player"='jeff hornacek'; | 2-11545282-8 |
What Nationality is the Colorado State team? | CREATE TABLE "h" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "nationality" FROM "h" WHERE "school_club_team"='colorado'; | 2-11545282-8 |
What Player is from the Southern Illinois team? | CREATE TABLE "h" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "player" FROM "h" WHERE "school_club_team"='southern illinois'; | 2-11545282-8 |
What years did Eddie Hughes play for the Jazz? | CREATE TABLE "h" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
); | SELECT "years_for_jazz" FROM "h" WHERE "player"='eddie hughes'; | 2-11545282-8 |
Which Species has a medium Threat Level? | CREATE TABLE "feral_animals_introduced_species" (
"name" text,
"species" text,
"overview" text,
"introduced" text,
"feral" text,
"threat_level" text
); | SELECT "species" FROM "feral_animals_introduced_species" WHERE "threat_level"='medium'; | 2-1107553-1 |
What is the Overview with a medium Threat Level? | CREATE TABLE "feral_animals_introduced_species" (
"name" text,
"species" text,
"overview" text,
"introduced" text,
"feral" text,
"threat_level" text
); | SELECT "overview" FROM "feral_animals_introduced_species" WHERE "threat_level"='medium'; | 2-1107553-1 |
What is the Threat Levels with Rabbits in Australia? | CREATE TABLE "feral_animals_introduced_species" (
"name" text,
"species" text,
"overview" text,
"introduced" text,
"feral" text,
"threat_level" text
); | SELECT "threat_level" FROM "feral_animals_introduced_species" WHERE "overview"='rabbits in australia'; | 2-1107553-1 |
Which nominee won the Drama Desk Award for outstanding choreography? | CREATE TABLE "2004_broadway_revival" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
); | SELECT "nominee" FROM "2004_broadway_revival" WHERE "award"='drama desk award' AND "result"='won' AND "category"='outstanding choreography'; | 2-1195142-2 |
When was the last time a nominee for Best Revival of a Musical was selected? | CREATE TABLE "2004_broadway_revival" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
); | SELECT MAX("year") FROM "2004_broadway_revival" WHERE "nominee"='best revival of a musical'; | 2-1195142-2 |
Which Award is the winner for Outstanding Revival of a Musical given? | CREATE TABLE "2004_broadway_revival" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
); | SELECT "award" FROM "2004_broadway_revival" WHERE "category"='outstanding revival of a musical'; | 2-1195142-2 |
What did the home team score in the game where the away team scored 8.14 (62)? | CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team_score" FROM "round_8" WHERE "away_team_score"='8.14 (62)'; | 2-10808346-8 |
Who is the home team in the game where South Melbourne was the away team? | CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team_score" FROM "round_8" WHERE "away_team"='south melbourne'; | 2-10808346-8 |
What did the home team score in the game where the away team scored 9.13 (67)? | CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team_score" FROM "round_8" WHERE "away_team_score"='9.13 (67)'; | 2-10808346-8 |
In which venue did the home team score 10.11 (71) | CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_8" WHERE "home_team_score"='10.11 (71)'; | 2-10808346-8 |
I want the result for week larger than 10 for opponent of new england patriots | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
); | SELECT "result" FROM "schedule" WHERE "week">10 AND "opponent"='new england patriots'; | 2-11309578-2 |
I want the game site for week of 11 | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
); | SELECT "game_site" FROM "schedule" WHERE "week"=11; | 2-11309578-2 |
What is the average number of laps for mika salo's arrows car with a grid over 13? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("laps") FROM "race" WHERE "constructor"='arrows' AND "driver"='mika salo' AND "grid">13; | 2-1123332-2 |
Who drove the car with a grid of 7? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "race" WHERE "grid"=7; | 2-1123332-2 |
Which Report is Dated 9 March? | CREATE TABLE "scottish_cup" (
"round" text,
"date" text,
"opponent" text,
"score" text,
"aberdeen_scorer_s" text,
"attendance" real,
"report" text
); | SELECT "report" FROM "scottish_cup" WHERE "date"='9 march'; | 2-11768629-5 |
When Hamilton Academical is the Opponent, what is the total Attendance? | CREATE TABLE "scottish_cup" (
"round" text,
"date" text,
"opponent" text,
"score" text,
"aberdeen_scorer_s" text,
"attendance" real,
"report" text
); | SELECT COUNT("attendance") FROM "scottish_cup" WHERE "opponent"='hamilton academical'; | 2-11768629-5 |
How many in attendance with a loss of volquez (1–4)? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "attendance" FROM "game_log" WHERE "loss"='volquez (1–4)'; | 2-12076689-7 |
What record has a Score of 9–6? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "game_log" WHERE "score"='9–6'; | 2-12076689-7 |
What is the average number in attendance on September 16? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT AVG("attendance") FROM "game_log" WHERE "date"='september 16'; | 2-12076689-7 |
What is the sum of people in attendance on September 8? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT SUM("attendance") FROM "game_log" WHERE "date"='september 8'; | 2-12076689-7 |
What was Head Coach Jim Morris's best finish? | CREATE TABLE "participants" (
"school" text,
"conference" text,
"record_conference" text,
"head_coach" text,
"cws_appearances" text,
"cws_best_finish" text,
"cws_record" text
); | SELECT "cws_best_finish" FROM "participants" WHERE "head_coach"='jim morris'; | 2-10838850-3 |
What is the record when the visiting team was the montreal canadiens? | CREATE TABLE "schedule_and_results" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "record" FROM "schedule_and_results" WHERE "visitor"='montreal canadiens'; | 2-11446913-4 |
What nation has 187.84 points? | CREATE TABLE "ice_dancing" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"places" text
); | SELECT "nation" FROM "ice_dancing" WHERE "points"=187.84; | 2-11312764-6 |
What is the low point total for teams with 81 places? | CREATE TABLE "ice_dancing" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"places" text
); | SELECT MIN("points") FROM "ice_dancing" WHERE "places"='81'; | 2-11312764-6 |
What is the station number of the station at Dogsthorpe? | CREATE TABLE "stations" (
"station_number" text,
"district" text,
"location" text,
"type" text,
"appliances" text,
"registrations" text
); | SELECT "station_number" FROM "stations" WHERE "location"='dogsthorpe'; | 2-11934032-1 |
What is the type of the station with a 1 wrl appliance in Linton? | CREATE TABLE "stations" (
"station_number" text,
"district" text,
"location" text,
"type" text,
"appliances" text,
"registrations" text
); | SELECT "type" FROM "stations" WHERE "appliances"='1 wrl' AND "location"='linton'; | 2-11934032-1 |
What is the appliance at the station in St Neots? | CREATE TABLE "stations" (
"station_number" text,
"district" text,
"location" text,
"type" text,
"appliances" text,
"registrations" text
); | SELECT "appliances" FROM "stations" WHERE "location"='st neots'; | 2-11934032-1 |
What is the registration of the station at Cambridge? | CREATE TABLE "stations" (
"station_number" text,
"district" text,
"location" text,
"type" text,
"appliances" text,
"registrations" text
); | SELECT "registrations" FROM "stations" WHERE "district"='cambridge'; | 2-11934032-1 |
What is the location of the station at Huntingdonshire with a station number of c17? | CREATE TABLE "stations" (
"station_number" text,
"district" text,
"location" text,
"type" text,
"appliances" text,
"registrations" text
); | SELECT "location" FROM "stations" WHERE "district"='huntingdonshire' AND "station_number"='c17'; | 2-11934032-1 |
What is the registration of the station with a retained type and a station number of c03? | CREATE TABLE "stations" (
"station_number" text,
"district" text,
"location" text,
"type" text,
"appliances" text,
"registrations" text
); | SELECT "registrations" FROM "stations" WHERE "type"='retained' AND "station_number"='c03'; | 2-11934032-1 |
Name the nationality of the player with round more than 4 | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team_league" text
); | SELECT "nationality" FROM "draft_picks" WHERE "round">4; | 2-11821711-13 |
In what Year was the Rank 14.0 14? | CREATE TABLE "tallest_buildings" (
"rank" text,
"name" text,
"height_ft_m" text,
"floors" real,
"year" real
); | SELECT SUM("year") FROM "tallest_buildings" WHERE "rank"='14.0 14'; | 2-1115824-1 |
After 1971, what is the Rank with a Height ft (m) of 19.0 477 (145) and less than 35 Floors? | CREATE TABLE "tallest_buildings" (
"rank" text,
"name" text,
"height_ft_m" text,
"floors" real,
"year" real
); | SELECT "rank" FROM "tallest_buildings" WHERE "year">1971 AND "floors"<35 AND "height_ft_m"='19.0 477 (145)'; | 2-1115824-1 |
What Year has a Rank of 12.0 12? | CREATE TABLE "tallest_buildings" (
"rank" text,
"name" text,
"height_ft_m" text,
"floors" real,
"year" real
); | SELECT AVG("year") FROM "tallest_buildings" WHERE "rank"='12.0 12'; | 2-1115824-1 |
Which crowd has an Away team score of 8.10 (58)? | 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 "away_team_score"='8.10 (58)'; | 2-10809529-5 |
Which away team had a score of 17.13 (115)? | CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_17" WHERE "away_team_score"='17.13 (115)'; | 2-10869646-17 |
What did the away team score at VFL Park? | CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team_score" FROM "round_17" WHERE "venue"='vfl park'; | 2-10869646-17 |
How many people watched the game at Lake Oval? | CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT SUM("crowd") FROM "round_17" WHERE "venue"='lake oval'; | 2-10869646-17 |
Where did the home team score 15.21 (111)? | CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_17" WHERE "home_team_score"='15.21 (111)'; | 2-10869646-17 |
What was the Comp average, having Gino Guidugli as a player and a rating of more than 92.2? | CREATE TABLE "passing" (
"player" text,
"att" real,
"comp" real,
"yards" real,
"rating" real
); | SELECT AVG("comp") FROM "passing" WHERE "player"='gino guidugli' AND "rating">92.2; | 2-11994830-20 |
For the player with yards less than 138, and Comp more than 0, what was the highest Att.? | CREATE TABLE "passing" (
"player" text,
"att" real,
"comp" real,
"yards" real,
"rating" real
); | SELECT MAX("att") FROM "passing" WHERE "yards"<138 AND "comp">0; | 2-11994830-20 |
How many laps for grid of 9? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "laps" FROM "race" WHERE "grid"=9; | 2-1123276-2 |
What is the high lap total for a grid less than 6, and a Time/Retired of halfshaft? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("laps") FROM "race" WHERE "grid"<6 AND "time_retired"='halfshaft'; | 2-1123276-2 |
What is the Set 1 with a Score with 3–2? | CREATE TABLE "pool_b" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
); | SELECT "set_1" FROM "pool_b" WHERE "score"='3–2'; | 2-11822854-5 |
What is the Set 1 with a Set 2 of 15–5, and a Set 3 with 15–3? | CREATE TABLE "pool_b" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
); | SELECT "set_1" FROM "pool_b" WHERE "set_2"='15–5' AND "set_3"='15–3'; | 2-11822854-5 |
What is the Date with a Set 1 with 15–1? | CREATE TABLE "pool_b" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
); | SELECT "date" FROM "pool_b" WHERE "set_1"='15–1'; | 2-11822854-5 |
What is the Set 3 with a Date of 04 oct, and a Set 2 with 15–5? | CREATE TABLE "pool_b" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
); | SELECT "set_3" FROM "pool_b" WHERE "date"='04 oct' AND "set_2"='15–5'; | 2-11822854-5 |
What is the Set 3 with a Set 2 with 15–6? | CREATE TABLE "pool_b" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
); | SELECT "set_3" FROM "pool_b" WHERE "set_2"='15–6'; | 2-11822854-5 |
What is the Set 2 with a Total of 45–12, and a Set 3 with 15–2? | CREATE TABLE "pool_b" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
); | SELECT "set_2" FROM "pool_b" WHERE "total"='45–12' AND "set_3"='15–2'; | 2-11822854-5 |
What was the grid associated with under 26 laps and a Time/Retired of +6.077? | CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("grid") FROM "moto_gp_classification" WHERE "time_retired"='+6.077' AND "laps"<26; | 2-12020197-1 |
On 5 May 2011, what was the lead percentage? | CREATE TABLE "regional_vote" (
"date_s_conducted" text,
"cons" text,
"plaid_cymru" text,
"lib_dem" text,
"ukip" text,
"green" text,
"others" text,
"lead" text
); | SELECT "lead" FROM "regional_vote" WHERE "date_s_conducted"='5 may 2011'; | 2-11099297-2 |
On what date was the lead 8.6%? | CREATE TABLE "regional_vote" (
"date_s_conducted" text,
"cons" text,
"plaid_cymru" text,
"lib_dem" text,
"ukip" text,
"green" text,
"others" text,
"lead" text
); | SELECT "date_s_conducted" FROM "regional_vote" WHERE "lead"='8.6%'; | 2-11099297-2 |
what is the lifespan when the imperial height is 7ft 8 in and the nationality is fiji? | CREATE TABLE "men" (
"nationality" text,
"metric" text,
"imperial" text,
"name" text,
"lifespan" text
); | SELECT "lifespan" FROM "men" WHERE "imperial"='7ft 8 in' AND "nationality"='fiji'; | 2-11994740-1 |
what is the nationality with the metric height of 2.36m named sun ming-ming? | CREATE TABLE "men" (
"nationality" text,
"metric" text,
"imperial" text,
"name" text,
"lifespan" text
); | SELECT "nationality" FROM "men" WHERE "metric"='2.36m' AND "name"='sun ming-ming'; | 2-11994740-1 |
What is the grid total that had a retired for engine, teo fabi driving, and under 39 laps? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT SUM("grid") FROM "classification" WHERE "time_retired"='engine' AND "driver"='teo fabi' AND "laps"<39; | 2-1122954-1 |
What is the average grid for johnny dumfries with less than 8 laps? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("grid") FROM "classification" WHERE "driver"='johnny dumfries' AND "laps"<8; | 2-1122954-1 |
What is the low lap total for minardi - motori moderni, and a Grid smaller than 18? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MIN("laps") FROM "classification" WHERE "constructor"='minardi - motori moderni' AND "grid"<18; | 2-1122954-1 |
What constructor has a 12 grid? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "classification" WHERE "grid"=12; | 2-1122954-1 |
What is the average where the swimsuit is larger than 9.437? | CREATE TABLE "scores" (
"country" text,
"preliminaries" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT MAX("average") FROM "scores" WHERE "swimsuit">9.437; | 2-11970261-2 |
What is the evening gown score where the interview score is 9.22 and the preliminaries are larger than 9.057? | CREATE TABLE "scores" (
"country" text,
"preliminaries" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT SUM("evening_gown") FROM "scores" WHERE "interview"=9.22 AND "preliminaries">9.057; | 2-11970261-2 |
What is Pennsylvania's average where the swimsuit is smaller than 9.109 and the evening gown is smaller than 9.163? | CREATE TABLE "scores" (
"country" text,
"preliminaries" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT AVG("average") FROM "scores" WHERE "swimsuit"<9.109 AND "country"='pennsylvania' AND "evening_gown"<9.163; | 2-11970261-2 |
What is the preliminaries score where the swimsuit is smaller than 9.297, the evening gown is 9.617, and the interview is larger than 9.143? | CREATE TABLE "scores" (
"country" text,
"preliminaries" real,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT AVG("preliminaries") FROM "scores" WHERE "swimsuit"<9.297 AND "evening_gown"=9.617 AND "interview">9.143; | 2-11970261-2 |
For Amazon.com's device with a weight of 221g (7.8oz) how many screen pixels does the device have? | CREATE TABLE "electronic_paper_displays" (
"maker" text,
"model" text,
"intro_year" text,
"screen_size_inch" text,
"self_lit" text,
"screen_type" text,
"weight" text,
"screen_pixels" text,
"touch_screen" text,
"micro_sdhc" text
); | SELECT "screen_pixels" FROM "electronic_paper_displays" WHERE "maker"='amazon.com' AND "weight"='221g (7.8oz)'; | 2-1149661-1 |
How many 5K wins did Lynn Jennings, who had more than 0 10K wins, have? | CREATE TABLE "multiple_winners" (
"runner" text,
"country" text,
"5_k_wins" real,
"10_k_wins" real,
"total" real
); | SELECT SUM("5_k_wins") FROM "multiple_winners" WHERE "10_k_wins">0 AND "runner"='lynn jennings'; | 2-11137732-4 |
What is the average 10K wins the United States, which had 0 5K wins, have? | CREATE TABLE "multiple_winners" (
"runner" text,
"country" text,
"5_k_wins" real,
"10_k_wins" real,
"total" real
); | SELECT AVG("10_k_wins") FROM "multiple_winners" WHERE "country"='united states' AND "5_k_wins"=0; | 2-11137732-4 |
How many 5K wins did Emily Chebet, who had more than 2 total, have? | CREATE TABLE "multiple_winners" (
"runner" text,
"country" text,
"5_k_wins" real,
"10_k_wins" real,
"total" real
); | SELECT SUM("5_k_wins") FROM "multiple_winners" WHERE "runner"='emily chebet' AND "total">2; | 2-11137732-4 |
How many 5K wins did Emily Chebet, who had more than 2 total, have? | CREATE TABLE "multiple_winners" (
"runner" text,
"country" text,
"5_k_wins" real,
"10_k_wins" real,
"total" real
); | SELECT COUNT("5_k_wins") FROM "multiple_winners" WHERE "runner"='emily chebet' AND "total">2; | 2-11137732-4 |
What is the largest number of Peak lessons taught when the Evaluation average (Before April 2009) was 4.4? | CREATE TABLE "belt_requirements" (
"evaluation_average_from_february_2011" real,
"evaluation_average_from_april_2009" text,
"evaluation_average_before_april_2009" text,
"pct_of_negative_evaluations" text,
"submitting_schedule_on_time" text,
"punctuality_attendance_issues" text,
"peak_lessons_taught" real
); | SELECT MAX("peak_lessons_taught") FROM "belt_requirements" WHERE "evaluation_average_before_april_2009"='4.4'; | 2-12074447-4 |
What is the mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%? | CREATE TABLE "belt_requirements" (
"evaluation_average_from_february_2011" real,
"evaluation_average_from_april_2009" text,
"evaluation_average_before_april_2009" text,
"pct_of_negative_evaluations" text,
"submitting_schedule_on_time" text,
"punctuality_attendance_issues" text,
"peak_lessons_taught" real
); | SELECT "evaluation_average_before_april_2009" FROM "belt_requirements" WHERE "peak_lessons_taught"<80 AND "pct_of_negative_evaluations"='0.8%'; | 2-12074447-4 |
What is the mean Evaluation number (Before April 2009) when the percentage of negative evaluations was 0.8% and the mean Evaluation number of April 2009 was 4.2? | CREATE TABLE "belt_requirements" (
"evaluation_average_from_february_2011" real,
"evaluation_average_from_april_2009" text,
"evaluation_average_before_april_2009" text,
"pct_of_negative_evaluations" text,
"submitting_schedule_on_time" text,
"punctuality_attendance_issues" text,
"peak_lessons_taught" real
); | SELECT "evaluation_average_before_april_2009" FROM "belt_requirements" WHERE "pct_of_negative_evaluations"='0.8%' AND "evaluation_average_from_april_2009"='4.2'; | 2-12074447-4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.