question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Who had the high assists when the record was 33–15? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "high_assists" FROM "game_log" WHERE "record"='33–15'; | 2-17288845-8 |
What date was the location attendance at&t center 18,797, and a game earlier than 57? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "location_attendance"='at&t center 18,797' AND "game"<57; | 2-17288845-8 |
What player had the high assists when the Score was l 107–112 (ot)? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "high_assists" FROM "game_log" WHERE "score"='l 107–112 (ot)'; | 2-17288845-8 |
What was the result when they played the Miami Dolphins with a crowd of 21,881? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "result" FROM "schedule" WHERE "attendance">'21,881' AND "opponent"='miami dolphins'; | 2-17383560-2 |
Which company had a market value less than $5.59 billion, assets greater than $27.46 billion, and a rank above 39? | CREATE TABLE "list" (
"rank" real,
"rank_forbes_2000" real,
"name" text,
"headquarters" text,
"revenue_bn" real,
"profit_bn" real,
"assets_bn" real,
"market_value_bn" real,
"industry" text
); | SELECT "name" FROM "list" WHERE "market_value_bn"<5.59 AND "rank">39 AND "assets_bn">27.46; | 2-16256777-2 |
How many ranks have assets of $70.74 billion and market value greater than $11.29 billion? | CREATE TABLE "list" (
"rank" real,
"rank_forbes_2000" real,
"name" text,
"headquarters" text,
"revenue_bn" real,
"profit_bn" real,
"assets_bn" real,
"market_value_bn" real,
"industry" text
); | SELECT COUNT("rank") FROM "list" WHERE "assets_bn"=70.74 AND "market_value_bn">11.29; | 2-16256777-2 |
What is the sum of revenue in Hong Kong with a rank greater than 42, less than $3.46 billion in assets, and greater than $0.17 billion in profits? | CREATE TABLE "list" (
"rank" real,
"rank_forbes_2000" real,
"name" text,
"headquarters" text,
"revenue_bn" real,
"profit_bn" real,
"assets_bn" real,
"market_value_bn" real,
"industry" text
); | SELECT SUM("revenue_bn") FROM "list" WHERE "assets_bn"<3.46 AND "headquarters"='hong kong' AND "profit_bn">0.17 AND "rank">42; | 2-16256777-2 |
What is the sum of revenue for the banking industry with a Forbes 2000 rank under 53? | CREATE TABLE "list" (
"rank" real,
"rank_forbes_2000" real,
"name" text,
"headquarters" text,
"revenue_bn" real,
"profit_bn" real,
"assets_bn" real,
"market_value_bn" real,
"industry" text
); | SELECT SUM("revenue_bn") FROM "list" WHERE "industry"='banking' AND "rank_forbes_2000"<53; | 2-16256777-2 |
What is the highest number of gold medals when the silver is less than 0? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("gold") FROM "medal_table" WHERE "silver"<0; | 2-1751852-1 |
What was the most Nepalis admitted when the number of Sri Lankans was more than 5,520, Bangladeshis was more than 2,715, and Pakistanis more than 139,574? | CREATE TABLE "immigration" (
"year" text,
"indians_admitted" real,
"pakistanis_admitted" real,
"sri_lankans_admitted" real,
"bangladeshis_admitted" real,
"nepalis_admitted" real
); | SELECT MAX("nepalis_admitted") FROM "immigration" WHERE "sri_lankans_admitted">'5,520' AND "bangladeshis_admitted">'2,715' AND "pakistanis_admitted">'139,574'; | 2-1717824-3 |
What were the fewest number of Sri Lankans admitted when more than 4,270 Bangladeshis and more than 4,986 Pakistanis were admitted? | CREATE TABLE "immigration" (
"year" text,
"indians_admitted" real,
"pakistanis_admitted" real,
"sri_lankans_admitted" real,
"bangladeshis_admitted" real,
"nepalis_admitted" real
); | SELECT MIN("sri_lankans_admitted") FROM "immigration" WHERE "bangladeshis_admitted">'4,270' AND "pakistanis_admitted">'4,986'; | 2-1717824-3 |
How many Sri Lankans were admitted in 2004 when more than 594 Nepalis were admitted? | CREATE TABLE "immigration" (
"year" text,
"indians_admitted" real,
"pakistanis_admitted" real,
"sri_lankans_admitted" real,
"bangladeshis_admitted" real,
"nepalis_admitted" real
); | SELECT SUM("sri_lankans_admitted") FROM "immigration" WHERE "year"='2004' AND "nepalis_admitted">594; | 2-1717824-3 |
How many Bangladeshis were admitted when 714 Nepalis and 13,575 Pakistanis were admitted? | CREATE TABLE "immigration" (
"year" text,
"indians_admitted" real,
"pakistanis_admitted" real,
"sri_lankans_admitted" real,
"bangladeshis_admitted" real,
"nepalis_admitted" real
); | SELECT AVG("bangladeshis_admitted") FROM "immigration" WHERE "nepalis_admitted"=714 AND "pakistanis_admitted">'13,575'; | 2-1717824-3 |
What was the most Nepalis admitted when fewer than 1,896 Bangladeshis were admitted? | CREATE TABLE "immigration" (
"year" text,
"indians_admitted" real,
"pakistanis_admitted" real,
"sri_lankans_admitted" real,
"bangladeshis_admitted" real,
"nepalis_admitted" real
); | SELECT MAX("nepalis_admitted") FROM "immigration" WHERE "bangladeshis_admitted"<'1,896'; | 2-1717824-3 |
What is the frequency that the magazine issues that was first published on april 27, 2010? | CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"first_published" text
); | SELECT "frequency" FROM "special_editions" WHERE "first_published"='april 27, 2010'; | 2-16704362-2 |
What was the type of the magazine that was named dengeki game appli? | CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"first_published" text
); | SELECT "magazine_type" FROM "special_editions" WHERE "title"='dengeki game appli'; | 2-16704362-2 |
What is the name of the video game magazine that was issued bimonthly? | CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"first_published" text
); | SELECT "title" FROM "special_editions" WHERE "magazine_type"='video game' AND "frequency"='bimonthly'; | 2-16704362-2 |
What was the parent magazine for the manga magazine, dengeki moeoh that was issued bimonthly? | CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"first_published" text
); | SELECT "parent_magazine" FROM "special_editions" WHERE "frequency"='bimonthly' AND "magazine_type"='manga' AND "title"='dengeki moeoh'; | 2-16704362-2 |
What was the parent magazine of the magazine that was first published on december 16, 2004? | CREATE TABLE "special_editions" (
"title" text,
"parent_magazine" text,
"magazine_type" text,
"frequency" text,
"first_published" text
); | SELECT "parent_magazine" FROM "special_editions" WHERE "first_published"='december 16, 2004'; | 2-16704362-2 |
WHAT IS THE OVERALL AVERAGE WITH A 22 PICK, FROM RICE COLLEGE, AND ROUND BIGGER THAN 10? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "pick"=22 AND "college"='rice' AND "round">10; | 2-17100961-47 |
WHAT POSITION HAS A 23 PICK? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "position" FROM "washington_redskins_draft_history" WHERE "pick"=23; | 2-17100961-47 |
WHAT IS THE AVERAGE OVERALL WITH A ROUND LARGER THAN 9, AND RB POSITION? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "round">9 AND "position"='rb'; | 2-17100961-47 |
WHAT IS THE TOTAL NUMBER WITH A ROUND BIGGER THAN 7 AND PICK OF 21? | 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 "round">7 AND "pick"=21; | 2-17100961-47 |
WHAT POSITION IS 273? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "position" FROM "washington_redskins_draft_history" WHERE "overall"=273; | 2-17100961-47 |
What is the lowest Stls, when Rebs is greater than 8.6? | CREATE TABLE "college_statistics" (
"year" text,
"rebs" real,
"asts" real,
"stls" real,
"blks" real
); | SELECT MIN("stls") FROM "college_statistics" WHERE "rebs">8.6; | 2-1684650-1 |
What is the sum of Blks, when Stls is 1, and when Rebs is greater than 8.6? | CREATE TABLE "college_statistics" (
"year" text,
"rebs" real,
"asts" real,
"stls" real,
"blks" real
); | SELECT SUM("blks") FROM "college_statistics" WHERE "stls"=1 AND "rebs">8.6; | 2-1684650-1 |
Which opponent played in game 3 before October 18? | CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
); | SELECT "opponent" FROM "schedule_and_results" WHERE "october"<18 AND "game"=3; | 2-17323274-2 |
Which game was after October 24 and had a record of 6-2-1? | CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
); | SELECT "game" FROM "schedule_and_results" WHERE "october">24 AND "record"='6-2-1'; | 2-17323274-2 |
What was the lowest pick for the kicker after round 12? | CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school" text
); | SELECT MIN("pick") FROM "nfl_draft" WHERE "round">12 AND "position"='kicker'; | 2-16710917-1 |
How many picks had less than 11 rounds and a player of Charley Casey? | CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school" text
); | SELECT SUM("pick") FROM "nfl_draft" WHERE "round"<11 AND "player"='charley casey'; | 2-16710917-1 |
How many rounds had a position of kicker? | CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school" text
); | SELECT SUM("round") FROM "nfl_draft" WHERE "position"='kicker'; | 2-16710917-1 |
Which position had a pick larger than 80 and Walt Mainer as a player? | CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school" text
); | SELECT "position" FROM "nfl_draft" WHERE "pick">80 AND "player"='walt mainer'; | 2-16710917-1 |
What is the score of the match with deportes savio as the away team? | CREATE TABLE "round_11" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
); | SELECT "score" FROM "round_11" WHERE "away"='deportes savio'; | 2-17026847-13 |
What is the total attendance of the match with a 1:2 score? | CREATE TABLE "round_11" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
); | SELECT COUNT("attendance") FROM "round_11" WHERE "score"='1:2'; | 2-17026847-13 |
What is the home team of the match on 21 September 2008 with an attendance less than 2248 and a 2:0 score? | CREATE TABLE "round_11" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
); | SELECT "home" FROM "round_11" WHERE "attendance"<2248 AND "score"='2:0' AND "date"='21 september 2008'; | 2-17026847-13 |
What is the highest attendance of the match with a 2:0 score and vida as the away team? | CREATE TABLE "round_11" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
); | SELECT MAX("attendance") FROM "round_11" WHERE "score"='2:0' AND "away"='vida'; | 2-17026847-13 |
What is the score of the home team olimpia? | CREATE TABLE "round_11" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
); | SELECT "score" FROM "round_11" WHERE "home"='olimpia'; | 2-17026847-13 |
What is the score of the match with an attendance of 2248? | CREATE TABLE "round_11" (
"date" text,
"home" text,
"score" text,
"away" text,
"attendance" real
); | SELECT "score" FROM "round_11" WHERE "attendance"=2248; | 2-17026847-13 |
Which Seats up for election have an Election result larger than 8, and Staying councillors of 24? | CREATE TABLE "results" (
"party" text,
"previous_council" real,
"staying_councillors" real,
"seats_up_for_election" real,
"election_result" real,
"new_council" real
); | SELECT MAX("seats_up_for_election") FROM "results" WHERE "election_result">8 AND "staying_councillors"=24; | 2-17215289-1 |
Which New council has an Election result larger than 24? | CREATE TABLE "results" (
"party" text,
"previous_council" real,
"staying_councillors" real,
"seats_up_for_election" real,
"election_result" real,
"new_council" real
); | SELECT AVG("new_council") FROM "results" WHERE "election_result">24; | 2-17215289-1 |
Which Staying councillors have a New council of 7, and a Previous council larger than 8? | CREATE TABLE "results" (
"party" text,
"previous_council" real,
"staying_councillors" real,
"seats_up_for_election" real,
"election_result" real,
"new_council" real
); | SELECT AVG("staying_councillors") FROM "results" WHERE "new_council"=7 AND "previous_council">8; | 2-17215289-1 |
What was the record when they played in the Miami Arena, before game 24? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
); | SELECT "record" FROM "game_log" WHERE "game"<24 AND "location"='miami arena'; | 2-17344582-5 |
Who was the opponent when they played after Game 26 and their record was 23-4? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "game">26 AND "record"='23-4'; | 2-17344582-5 |
On what date did they play in Boston Garden with a record of 22-4? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "location"='boston garden' AND "record"='22-4'; | 2-17344582-5 |
What was their record on Wed. Dec. 5, when they played in Boston Garden? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
); | SELECT "record" FROM "game_log" WHERE "location"='boston garden' AND "date"='wed. dec. 5'; | 2-17344582-5 |
What place in Lon Hinkle in? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "place" FROM "second_round" WHERE "player"='lon hinkle'; | 2-17231351-4 |
What country does Mark Hayes play for? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "country" FROM "second_round" WHERE "player"='mark hayes'; | 2-17231351-4 |
What is the sum of To Par, when Country is "United States", and when Year(s) Won is "1973"? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
); | SELECT SUM("to_par") FROM "made_the_cut" WHERE "country"='united states' AND "year_s_won"='1973'; | 2-17245471-1 |
What is Player, when Total is greater than 288, and when Country is "South Africa"? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
); | SELECT "player" FROM "made_the_cut" WHERE "total">288 AND "country"='south africa'; | 2-17245471-1 |
What is Year(s) Won, when To Par is greater than 13? | CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
); | SELECT "year_s_won" FROM "made_the_cut" WHERE "to_par">13; | 2-17245471-1 |
What residence has representative Quincy Murphy? | CREATE TABLE "members_of_the_georgia_state_house_of_re" (
"district" real,
"representative" text,
"party" text,
"first_elected" real,
"residence" text
); | SELECT "residence" FROM "members_of_the_georgia_state_house_of_re" WHERE "representative"='quincy murphy'; | 2-17147208-2 |
Who is the home captain when the venue is adelaide oval? | CREATE TABLE "test_matches" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
); | SELECT "home_captain" FROM "test_matches" WHERE "venue"='adelaide oval'; | 2-17470911-1 |
What was the score in the September 20 game? | CREATE TABLE "pre_season" (
"date" text,
"time" text,
"opponent" text,
"location" text,
"score" text
); | SELECT "score" FROM "pre_season" WHERE "date"='september 20'; | 2-17040191-1 |
Where was the September 22 game played? | CREATE TABLE "pre_season" (
"date" text,
"time" text,
"opponent" text,
"location" text,
"score" text
); | SELECT "location" FROM "pre_season" WHERE "date"='september 22'; | 2-17040191-1 |
What was the score in the September 26 game? | CREATE TABLE "pre_season" (
"date" text,
"time" text,
"opponent" text,
"location" text,
"score" text
); | SELECT "score" FROM "pre_season" WHERE "date"='september 26'; | 2-17040191-1 |
Who was the opposing team in the game(s) that started at 7:30pm? | CREATE TABLE "pre_season" (
"date" text,
"time" text,
"opponent" text,
"location" text,
"score" text
); | SELECT "opponent" FROM "pre_season" WHERE "time"='7:30pm'; | 2-17040191-1 |
What was the score of the 7:00pm game at Scotiabank Place against the Philadelphia Flyers? | CREATE TABLE "pre_season" (
"date" text,
"time" text,
"opponent" text,
"location" text,
"score" text
); | SELECT "score" FROM "pre_season" WHERE "time"='7:00pm' AND "location"='scotiabank place' AND "opponent"='philadelphia flyers'; | 2-17040191-1 |
What is the attendance of the match on October 26? | CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"rank_num" text,
"site" text,
"result" text,
"attendance" text
); | SELECT "attendance" FROM "schedule" WHERE "date"='october 26'; | 2-16755551-1 |
What is the opponent number of the match with a w27-16 result? | CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"rank_num" text,
"site" text,
"result" text,
"attendance" text
); | SELECT "opponentnum" FROM "schedule" WHERE "result"='w27-16'; | 2-16755551-1 |
What is the result of the match with an attendance of 73,855? | CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"rank_num" text,
"site" text,
"result" text,
"attendance" text
); | SELECT "result" FROM "schedule" WHERE "attendance"='73,855'; | 2-16755551-1 |
What is the rank of the match on October 19? | CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"rank_num" text,
"site" text,
"result" text,
"attendance" text
); | SELECT "rank_num" FROM "schedule" WHERE "date"='october 19'; | 2-16755551-1 |
Who was the scorer when the opponent was aberdeen? | CREATE TABLE "league_cup" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
); | SELECT "scorers" FROM "league_cup" WHERE "opponent"='aberdeen'; | 2-16649684-6 |
When was the scorer mccoist (3), johnston, butcher, steven? | CREATE TABLE "league_cup" (
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
); | SELECT "date" FROM "league_cup" WHERE "scorers"='mccoist (3), johnston, butcher, steven'; | 2-16649684-6 |
What is Score, when Visitor is "Pittsburgh", and when Points is greater than 18? | CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
); | SELECT "score" FROM "game_log" WHERE "visitor"='pittsburgh' AND "points">18; | 2-17190456-4 |
What is the sum of Points, when Home is "Pittsburgh", when Date is "December 21", and when Attendance is greater than 5,307? | CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
); | SELECT SUM("points") FROM "game_log" WHERE "home"='pittsburgh' AND "date"='december 21' AND "attendance">'5,307'; | 2-17190456-4 |
What is the lowest Points, when Home is "Boston"? | CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
"record" text,
"points" real
); | SELECT MIN("points") FROM "game_log" WHERE "home"='boston'; | 2-17190456-4 |
what is the team when the high points is by charlie villanueva (24)? | 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 "high_points"='charlie villanueva (24)'; | 2-17058116-9 |
what is the location attendance when the high assists is by ramon sessions (8) on march 30? | 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 "location_attendance" FROM "game_log" WHERE "high_assists"='ramon sessions (8)' AND "date"='march 30'; | 2-17058116-9 |
Who had the high rebounds when the score was l 85–102 (ot)? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "high_rebounds" FROM "game_log" WHERE "score"='l 85–102 (ot)'; | 2-17058116-9 |
what is the location attendance when the score is w 86–77 (ot)? | 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 "location_attendance" FROM "game_log" WHERE "score"='w 86–77 (ot)'; | 2-17058116-9 |
what is the date when ramon sessions (8) had the high assists, richard jefferson (29) had the high points and the score was w 107–78 (ot)? | 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 "date" FROM "game_log" WHERE "high_assists"='ramon sessions (8)' AND "high_points"='richard jefferson (29)' AND "score"='w 107–78 (ot)'; | 2-17058116-9 |
who had the high rebounds when the team was @ toronto? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "high_rebounds" FROM "game_log" WHERE "team"='@ toronto'; | 2-17058116-9 |
What is the lowest pole with a Flap larger than 5, and a before race 155? | CREATE TABLE "by_season" (
"season" text,
"race" real,
"podium" real,
"pole" real,
"f_lap" real
); | SELECT MIN("pole") FROM "by_season" WHERE "f_lap">5 AND "race"<155; | 2-1694580-3 |
What was Fred Couples' score? | CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
); | SELECT COUNT("score") FROM "first_round" WHERE "player"='fred couples'; | 2-17231246-4 |
When Payne Stewart of the United States scored higher than 69, what was the To Par? | CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
); | SELECT "to_par" FROM "first_round" WHERE "country"='united states' AND "score">69 AND "player"='payne stewart'; | 2-17231246-4 |
What is the 2008 population in 함흥 (Ham Hyung)? | CREATE TABLE "north_korea_dprk" (
"city" text,
"korean" text,
"hancha" text,
"province" text,
"population_2008" real
); | SELECT SUM("population_2008") FROM "north_korea_dprk" WHERE "korean"='함흥'; | 2-16489766-6 |
what is the mountain peak when the location is 53.1370°n 119.2667°w? | CREATE TABLE "the_200_most_topographically_prominent_m" (
"rank" real,
"mountain_peak" text,
"region" text,
"mountain_range" text,
"location" text
); | SELECT "mountain_peak" FROM "the_200_most_topographically_prominent_m" WHERE "location"='53.1370°n 119.2667°w'; | 2-16214660-1 |
what is the region when the location is 49.7462°n 117.1419°w? | CREATE TABLE "the_200_most_topographically_prominent_m" (
"rank" real,
"mountain_peak" text,
"region" text,
"mountain_range" text,
"location" text
); | SELECT "region" FROM "the_200_most_topographically_prominent_m" WHERE "location"='49.7462°n 117.1419°w'; | 2-16214660-1 |
what is the rank when the mountain peak is isthmus peak? | CREATE TABLE "the_200_most_topographically_prominent_m" (
"rank" real,
"mountain_peak" text,
"region" text,
"mountain_range" text,
"location" text
); | SELECT "rank" FROM "the_200_most_topographically_prominent_m" WHERE "mountain_peak"='isthmus peak'; | 2-16214660-1 |
what is the mountain range when the region is british columbia and mountain pea is mount edziza? | CREATE TABLE "the_200_most_topographically_prominent_m" (
"rank" real,
"mountain_peak" text,
"region" text,
"mountain_range" text,
"location" text
); | SELECT "mountain_range" FROM "the_200_most_topographically_prominent_m" WHERE "region"='british columbia' AND "mountain_peak"='mount edziza'; | 2-16214660-1 |
What is the Born-Died dates of Xhafer Bej Ypi? | CREATE TABLE "1914_1925" (
"name" text,
"born_died" text,
"term_start" text,
"term_end" text,
"political_party" text
); | SELECT "born_died" FROM "1914_1925" WHERE "name"='xhafer bej ypi'; | 2-167235-2 |
What is the Name of the Prime Minister with a Born-Died of 1873–1933? | CREATE TABLE "1914_1925" (
"name" text,
"born_died" text,
"term_start" text,
"term_end" text,
"political_party" text
); | SELECT "name" FROM "1914_1925" WHERE "born_died"='1873–1933'; | 2-167235-2 |
What is the Term Start date of the Progressive Party Prime Minister? | CREATE TABLE "1914_1925" (
"name" text,
"born_died" text,
"term_start" text,
"term_end" text,
"political_party" text
); | SELECT "term_start" FROM "1914_1925" WHERE "political_party"='progressive party'; | 2-167235-2 |
What was the lead margin when Schweitzer had 55% and Jones had 2%? | CREATE TABLE "opinion_polling_for_the_united_states_gu" (
"poll_source" text,
"dates_administered" text,
"democrat_brian_schweitzer" text,
"republican_roy_brown" text,
"libertarian_stan_jones" text,
"lead_margin" real
); | SELECT SUM("lead_margin") FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_brian_schweitzer"='55%' AND "libertarian_stan_jones"='2%'; | 2-17538810-3 |
What is the percentage for Brown when the lead margin is 26? | CREATE TABLE "opinion_polling_for_the_united_states_gu" (
"poll_source" text,
"dates_administered" text,
"democrat_brian_schweitzer" text,
"republican_roy_brown" text,
"libertarian_stan_jones" text,
"lead_margin" real
); | SELECT "republican_roy_brown" FROM "opinion_polling_for_the_united_states_gu" WHERE "lead_margin"=26; | 2-17538810-3 |
What is the percentage for Schweitzer when the lead margin is 29? | CREATE TABLE "opinion_polling_for_the_united_states_gu" (
"poll_source" text,
"dates_administered" text,
"democrat_brian_schweitzer" text,
"republican_roy_brown" text,
"libertarian_stan_jones" text,
"lead_margin" real
); | SELECT "democrat_brian_schweitzer" FROM "opinion_polling_for_the_united_states_gu" WHERE "lead_margin"=29; | 2-17538810-3 |
What is the largest lead margin when Schweitzer has 55% and Jones is not an option? | CREATE TABLE "opinion_polling_for_the_united_states_gu" (
"poll_source" text,
"dates_administered" text,
"democrat_brian_schweitzer" text,
"republican_roy_brown" text,
"libertarian_stan_jones" text,
"lead_margin" real
); | SELECT MAX("lead_margin") FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_brian_schweitzer"='55%' AND "libertarian_stan_jones"='not an option'; | 2-17538810-3 |
What is Record, when Date is "November 22"? | CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text,
"points" real
); | SELECT "record" FROM "game_log" WHERE "date"='november 22'; | 2-17206737-5 |
What is Date, when Attendance is greater than 20,066, and when Visitor is "Boston Bruins"? | CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text,
"points" real
); | SELECT "date" FROM "game_log" WHERE "attendance">'20,066' AND "visitor"='boston bruins'; | 2-17206737-5 |
What is the attendance before week 1? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT COUNT("attendance") FROM "schedule" WHERE "week"<1; | 2-17386076-3 |
What was the date of the match with a winning score of –7 (67-72-69-69=277)? | CREATE TABLE "lpga_tour_wins_13" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "date" FROM "lpga_tour_wins_13" WHERE "winning_score"='–7 (67-72-69-69=277)'; | 2-1710991-1 |
Who was the home team in the match with an away team of Millwall? | CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "home_team" FROM "first_round_proper" WHERE "away_team"='millwall'; | 2-16312746-1 |
What is the score for the match that had a home team of Kidderminster Harriers? | CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "score" FROM "first_round_proper" WHERE "home_team"='kidderminster harriers'; | 2-16312746-1 |
What is the date of the match with a home team of Huddersfield Town and was a replay tie? | 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 "tie_no"='replay' AND "home_team"='huddersfield town'; | 2-16312746-1 |
Who was the home team for tie number 11? | CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "home_team" FROM "first_round_proper" WHERE "tie_no"='11'; | 2-16312746-1 |
Who was the rider with 120.953 mph speed? | CREATE TABLE "race_2_1000cc_superbike_race_final_stand" (
"rank" real,
"rider" text,
"team" text,
"time" text,
"speed" text
); | SELECT "rider" FROM "race_2_1000cc_superbike_race_final_stand" WHERE "speed"='120.953 mph'; | 2-17477518-2 |
What time did rider steve plater have? | CREATE TABLE "race_2_1000cc_superbike_race_final_stand" (
"rank" real,
"rider" text,
"team" text,
"time" text,
"speed" text
); | SELECT "time" FROM "race_2_1000cc_superbike_race_final_stand" WHERE "rider"='steve plater'; | 2-17477518-2 |
What is the rank of rider gary johnson, who had a speed of 120.979 mph? | CREATE TABLE "race_2_1000cc_superbike_race_final_stand" (
"rank" real,
"rider" text,
"team" text,
"time" text,
"speed" text
); | SELECT "rank" FROM "race_2_1000cc_superbike_race_final_stand" WHERE "speed"='120.979 mph' AND "rider"='gary johnson'; | 2-17477518-2 |
What club has less than 8 draws, 37 points, and less than 71 goals? | CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT "club" FROM "group_ii" WHERE "draws"<8 AND "points"=37 AND "goals_for"<71; | 2-17619574-4 |
What is the total number of goals when there are 3 draws, more than 18 losses, and played is smaller than 38? | CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT COUNT("goals_for") FROM "group_ii" WHERE "draws"=3 AND "losses">18 AND "played"<38; | 2-17619574-4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.