question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What is the hometown for tre madden? | CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
); | SELECT "hometown" FROM "2010_team" WHERE "player"='tre madden'; | 2-11677691-4 |
What is the hometown for the player that is defensive back and went to alabama? | CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
); | SELECT "hometown" FROM "2010_team" WHERE "position"='defensive back' AND "college"='alabama'; | 2-11677691-4 |
What is the college for the player that went to ridge community high school and is defensive back? | CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
); | SELECT "college" FROM "2010_team" WHERE "position"='defensive back' AND "school"='ridge community high school'; | 2-11677691-4 |
What is the sum of Year with a Type of informal, and a Location with justus lipsius building, brussels, and a Date with 23 may? | CREATE TABLE "2010_present" (
"year" real,
"date" text,
"type" text,
"president" text,
"location" text
); | SELECT SUM("year") FROM "2010_present" WHERE "type"='informal' AND "location"='justus lipsius building, brussels' AND "date"='23 may'; | 2-11948277-2 |
What is the Type with a Location with justus lipsius building, brussels, and a Year of 2012, and a President with herman van rompuy (1st term), and a Date with 23 may? | CREATE TABLE "2010_present" (
"year" real,
"date" text,
"type" text,
"president" text,
"location" text
); | SELECT "type" FROM "2010_present" WHERE "location"='justus lipsius building, brussels' AND "year"=2012 AND "president"='herman van rompuy (1st term)' AND "date"='23 may'; | 2-11948277-2 |
What is the President with a Location of justus lipsius building, brussels, and a Type with scheduled, and a Year larger than 2011, and a Date with 18–19 october? | CREATE TABLE "2010_present" (
"year" real,
"date" text,
"type" text,
"president" text,
"location" text
); | SELECT "president" FROM "2010_present" WHERE "location"='justus lipsius building, brussels' AND "type"='scheduled' AND "year">2011 AND "date"='18–19 october'; | 2-11948277-2 |
What is the Location with a Year larger than 2011, and a President with herman van rompuy (2nd term), and a Date of 28–29 june, and a Type with scheduled? | CREATE TABLE "2010_present" (
"year" real,
"date" text,
"type" text,
"president" text,
"location" text
); | SELECT "location" FROM "2010_present" WHERE "year">2011 AND "president"='herman van rompuy (2nd term)' AND "date"='28–29 june' AND "type"='scheduled'; | 2-11948277-2 |
What is the President with a Year larger than 2011, and a Date with 23 may? | CREATE TABLE "2010_present" (
"year" real,
"date" text,
"type" text,
"president" text,
"location" text
); | SELECT "president" FROM "2010_present" WHERE "year">2011 AND "date"='23 may'; | 2-11948277-2 |
What is the Type with a Year larger than 2010, and a Location with justus lipsius building, brussels, and a President of herman van rompuy (2nd term), and a Date with 28–29 june? | CREATE TABLE "2010_present" (
"year" real,
"date" text,
"type" text,
"president" text,
"location" text
); | SELECT "type" FROM "2010_present" WHERE "year">2010 AND "location"='justus lipsius building, brussels' AND "president"='herman van rompuy (2nd term)' AND "date"='28–29 june'; | 2-11948277-2 |
What competition has a goal number of 13? | CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "international_goals" WHERE "goal"=13; | 2-1127788-3 |
What is the total of yards when asst. is 19, totaltk is 60 and sack is more than 0? | CREATE TABLE "defense" (
"player" text,
"tackles" real,
"asst" real,
"total_tk" real,
"sack" real,
"yards" real,
"fum_r" real
); | SELECT SUM("yards") FROM "defense" WHERE "asst"=19 AND "total_tk"=60 AND "sack">0; | 2-10966926-11 |
what is the total sack for mike green when fumr is less than 0? | CREATE TABLE "defense" (
"player" text,
"tackles" real,
"asst" real,
"total_tk" real,
"sack" real,
"yards" real,
"fum_r" real
); | SELECT SUM("sack") FROM "defense" WHERE "player"='mike green' AND "fum_r"<0; | 2-10966926-11 |
what is the total sack when totaltk is 1 and asst. is more than 0? | CREATE TABLE "defense" (
"player" text,
"tackles" real,
"asst" real,
"total_tk" real,
"sack" real,
"yards" real,
"fum_r" real
); | SELECT SUM("sack") FROM "defense" WHERE "total_tk"=1 AND "asst">0; | 2-10966926-11 |
what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0? | CREATE TABLE "defense" (
"player" text,
"tackles" real,
"asst" real,
"total_tk" real,
"sack" real,
"yards" real,
"fum_r" real
); | SELECT COUNT("tackles") FROM "defense" WHERE "fum_r"=0 AND "total_tk"=54 AND "yards"<0; | 2-10966926-11 |
what is the sum of totaltk when yards is less than 0? | CREATE TABLE "defense" (
"player" text,
"tackles" real,
"asst" real,
"total_tk" real,
"sack" real,
"yards" real,
"fum_r" real
); | SELECT SUM("total_tk") FROM "defense" WHERE "yards"<0; | 2-10966926-11 |
What class is after 1973 with 41 points? | CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
); | SELECT "class" FROM "grand_prix_motorcycle_racing_results" WHERE "year">1973 AND "points"=41; | 2-11625196-2 |
How many wins for bikes with under 54 points, team yamaha, a 250cc bike, and before 1977? | CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"wins" real
); | SELECT COUNT("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "points"<54 AND "team"='yamaha' AND "class"='250cc' AND "year"<1977; | 2-11625196-2 |
What distance did giovanni lombardi win after stage 5? | CREATE TABLE "stages" (
"stage" real,
"date" text,
"course" text,
"distance" text,
"winner" text,
"gc_leader" text
); | SELECT "distance" FROM "stages" WHERE "stage">5 AND "winner"='giovanni lombardi'; | 2-11198757-1 |
Who is the GC leader at ávila - segovia? | CREATE TABLE "stages" (
"stage" real,
"date" text,
"course" text,
"distance" text,
"winner" text,
"gc_leader" text
); | SELECT "gc_leader" FROM "stages" WHERE "course"='ávila - segovia'; | 2-11198757-1 |
How many grids have less than 41 laps and a Driver of pedro de la rosa? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT COUNT("grid") FROM "race" WHERE "laps"<41 AND "driver"='pedro de la rosa'; | 2-1123350-2 |
Which Time/Retired has a Grid smaller than 3, and a Driver of mika häkkinen? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "race" WHERE "grid"<3 AND "driver"='mika häkkinen'; | 2-1123350-2 |
What are toranosuke takagi's average laps? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("laps") FROM "race" WHERE "driver"='toranosuke takagi'; | 2-1123350-2 |
Which grid has a Time/Retired of +5.004? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MIN("grid") FROM "race" WHERE "time_retired"='+5.004'; | 2-1123350-2 |
What was the score of the game on November 9 when Atlanta was the visiting team? | CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "score" FROM "november" WHERE "visitor"='atlanta' AND "date"='november 9'; | 2-11870934-4 |
What was the score of the home game at Tampa Bay? | CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "score" FROM "november" WHERE "home"='tampa bay'; | 2-11870934-4 |
What was the date of the game where Ottawa was the home team and Atlanta is the visiting team? | CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "date" FROM "november" WHERE "visitor"='atlanta' AND "home"='ottawa'; | 2-11870934-4 |
I want the result for team of giants | CREATE TABLE "awards" (
"pitcher" text,
"date" text,
"team" text,
"result" text,
"site" text
); | SELECT "result" FROM "awards" WHERE "team"='giants'; | 2-11278-1 |
Tell me the pitcher on september 6, 2006 | CREATE TABLE "awards" (
"pitcher" text,
"date" text,
"team" text,
"result" text,
"site" text
); | SELECT "pitcher" FROM "awards" WHERE "date"='september 6, 2006'; | 2-11278-1 |
I want the date for rockies | CREATE TABLE "awards" (
"pitcher" text,
"date" text,
"team" text,
"result" text,
"site" text
); | SELECT "date" FROM "awards" WHERE "team"='rockies'; | 2-11278-1 |
I want the date for aníbal sánchez | CREATE TABLE "awards" (
"pitcher" text,
"date" text,
"team" text,
"result" text,
"site" text
); | SELECT "date" FROM "awards" WHERE "pitcher"='aníbal sánchez'; | 2-11278-1 |
I want the result for team of giants | CREATE TABLE "awards" (
"pitcher" text,
"date" text,
"team" text,
"result" text,
"site" text
); | SELECT "result" FROM "awards" WHERE "team"='giants'; | 2-11278-1 |
I want the site for september 29, 2013 | CREATE TABLE "awards" (
"pitcher" text,
"date" text,
"team" text,
"result" text,
"site" text
); | SELECT "site" FROM "awards" WHERE "date"='september 29, 2013'; | 2-11278-1 |
When the apparent magnitude is 10.5, what is the right ascension? | CREATE TABLE "5001_5100" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
); | SELECT "right_ascension_j2000" FROM "5001_5100" WHERE "apparent_magnitude"=10.5; | 2-11051845-1 |
Which livery is from 1919? | CREATE TABLE "north_british_railway_coaches" (
"number_name" text,
"description" text,
"current_status" text,
"livery" text,
"date" text
); | SELECT "livery" FROM "north_british_railway_coaches" WHERE "date"='1919'; | 2-1174877-12 |
Of the games with a record of 80-81, what was the highest attendance? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT MAX("attendance") FROM "game_log" WHERE "record"='80-81'; | 2-11867642-7 |
How many entries have a HK viewers of 2.23 million, and a Rank below 2? | CREATE TABLE "highest_rating_drama_series_of_2005" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
); | SELECT COUNT("peak") FROM "highest_rating_drama_series_of_2005" WHERE "hk_viewers"='2.23 million' AND "rank">2; | 2-11174272-1 |
What premiere has a finale of less than 41, peak less than 40, average above 31, and a Chinese title of 學警雄心? | CREATE TABLE "highest_rating_drama_series_of_2005" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
); | SELECT "premiere" FROM "highest_rating_drama_series_of_2005" WHERE "finale"<41 AND "peak"<40 AND "average">31 AND "chinese_title"='學警雄心'; | 2-11174272-1 |
What is the high average that has a Finale larger than 35, a HK viewers of 2.12 million, and a Peak larger than 40? | CREATE TABLE "highest_rating_drama_series_of_2005" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
); | SELECT MAX("average") FROM "highest_rating_drama_series_of_2005" WHERE "finale">35 AND "hk_viewers"='2.12 million' AND "peak">40; | 2-11174272-1 |
What is the score for the home team when the venue is Junction Oval? | 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 "home_team_score" FROM "round_18" WHERE "venue"='junction oval'; | 2-10887680-18 |
What is the location when the home team score is 11.16 (82) and the away team score is 18.13 (121)? | CREATE TABLE "round_18" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_18" WHERE "home_team_score"='11.16 (82)' AND "away_team_score"='18.13 (121)'; | 2-10887680-18 |
What is the lowest crowd number at the venue MCG? | 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 "venue"='mcg'; | 2-10887680-18 |
How many total viewers for "the summer house"? | CREATE TABLE "american_weekly_ratings" (
"episode" text,
"air_date" text,
"timeslot_est" text,
"rating" real,
"share" text,
"18_49_rating" text,
"viewers_millions" real,
"rank" text
); | SELECT SUM("viewers_millions") FROM "american_weekly_ratings" WHERE "episode"='\"the summer house\"'; | 2-11238597-4 |
Name the average round for jacksonville | CREATE TABLE "2011_supercross_results" (
"round" real,
"date" text,
"place" text,
"finished" text,
"total_points" real,
"standing" text
); | SELECT AVG("round") FROM "2011_supercross_results" WHERE "place"='jacksonville'; | 2-11091378-1 |
I want the standing for january 29 and finished of 3rd and total points less than 248 | CREATE TABLE "2011_supercross_results" (
"round" real,
"date" text,
"place" text,
"finished" text,
"total_points" real,
"standing" text
); | SELECT "standing" FROM "2011_supercross_results" WHERE "total_points"<248 AND "finished"='3rd' AND "date"='january 29'; | 2-11091378-1 |
What was the result and score of the game on February 22? | CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text
); | SELECT "result" FROM "season_schedule" WHERE "date"='february 22'; | 2-12027173-1 |
What is the largest Rd# for a PI GP greater than 0 and a Reg GP less than 62? | CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
); | SELECT MAX("rd_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pl_gp">0 AND "reg_gp"<62; | 2-11636955-23 |
Which team has a Reg GP over 62? | CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
); | SELECT "team_league" FROM "list_of_vancouver_canucks_draft_picks" WHERE "reg_gp">62; | 2-11636955-23 |
What is the total year with a Position of 12th? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
); | SELECT SUM("year") FROM "achievements" WHERE "position"='12th'; | 2-12070766-1 |
When a race had less than 18 laps and time/retired of accident, what was the smallest grid? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MIN("grid") FROM "race" WHERE "time_retired"='accident' AND "laps"<18; | 2-1123330-2 |
What is the time/retired for a grid over 17 with 74 laps? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "race" WHERE "grid">17 AND "laps"=74; | 2-1123359-2 |
What is the grid total for david coulthard? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT SUM("grid") FROM "race" WHERE "driver"='david coulthard'; | 2-1123359-2 |
What day did Chris Maddocks compete in the 35000 m? | CREATE TABLE "walking" (
"event" text,
"data" text,
"athlete" text,
"date" text,
"place" text
); | SELECT "date" FROM "walking" WHERE "athlete"='chris maddocks' AND "event"='35000 m'; | 2-11070660-2 |
Who has a walking data of 214.061km? | CREATE TABLE "walking" (
"event" text,
"data" text,
"athlete" text,
"date" text,
"place" text
); | SELECT "athlete" FROM "walking" WHERE "data"='214.061km'; | 2-11070660-2 |
Who has a walking data of 3:10:48+? | CREATE TABLE "walking" (
"event" text,
"data" text,
"athlete" text,
"date" text,
"place" text
); | SELECT "athlete" FROM "walking" WHERE "data"='3:10:48+'; | 2-11070660-2 |
what is the title of the episode with the original air date of october2,2002? | CREATE TABLE "season_1" (
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
); | SELECT "title" FROM "season_1" WHERE "original_air_date"='october2,2002'; | 2-1137274-1 |
what is the title of the episode with the production code of ad1a22? | CREATE TABLE "season_1" (
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
); | SELECT "title" FROM "season_1" WHERE "production_code"='ad1a22'; | 2-1137274-1 |
who was the director of the episode with production code ad1a26? | CREATE TABLE "season_1" (
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
); | SELECT "directed_by" FROM "season_1" WHERE "production_code"='ad1a26'; | 2-1137274-1 |
Who is the constructor whose circuit was Oulton Park? | CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "constructor" FROM "non_championship_race_results" WHERE "circuit"='oulton park'; | 2-1140113-5 |
What is the name of the race for which the circuit was Snetterton? | CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "race_name" FROM "non_championship_race_results" WHERE "circuit"='snetterton'; | 2-1140113-5 |
During what years did the Guard from Oklahoma with a height of 6-6 play for the Rockets? | CREATE TABLE "b" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
); | SELECT "years_for_rockets" FROM "b" WHERE "height_in_ft"='6-6' AND "position"='guard' AND "school_club_team_country"='oklahoma'; | 2-11734041-2 |
What was the away team's score at MCG when attendance was more than 24,365? | CREATE TABLE "round_3" (
"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_3" WHERE "crowd">'24,365' AND "venue"='mcg'; | 2-10788451-3 |
how many times what the position 6th, the competition was super league xvii and played was larger than 27? | CREATE TABLE "season_summaries" (
"competition" text,
"played" real,
"drawn" real,
"lost" real,
"position" text
); | SELECT COUNT("drawn") FROM "season_summaries" WHERE "position"='6th' AND "competition"='super league xvii' AND "played">27; | 2-1095938-1 |
What is the average cap number in scotland in 1986–1998 leass than 69? | CREATE TABLE "highest_goalscorers" (
"name" text,
"scotland_career" text,
"caps" real,
"goals" real,
"average" real
); | SELECT COUNT("average") FROM "highest_goalscorers" WHERE "caps"<69 AND "scotland_career"='1986–1998'; | 2-11525346-2 |
Which caps was in scotland in 1920–1923? | CREATE TABLE "highest_goalscorers" (
"name" text,
"scotland_career" text,
"caps" real,
"goals" real,
"average" real
); | SELECT "caps" FROM "highest_goalscorers" WHERE "scotland_career"='1920–1923'; | 2-11525346-2 |
What is the goal low with caps less than 38 and an average less than 1.083? | CREATE TABLE "highest_goalscorers" (
"name" text,
"scotland_career" text,
"caps" real,
"goals" real,
"average" real
); | SELECT MIN("goals") FROM "highest_goalscorers" WHERE "caps"<38 AND "average"<1.083; | 2-11525346-2 |
What is the goal top with caps of 38 and an average less than 0.579? | CREATE TABLE "highest_goalscorers" (
"name" text,
"scotland_career" text,
"caps" real,
"goals" real,
"average" real
); | SELECT MAX("goals") FROM "highest_goalscorers" WHERE "caps"=38 AND "average"<0.579; | 2-11525346-2 |
What is the low goal for kenny miller with an average smaller than 0.261? | CREATE TABLE "highest_goalscorers" (
"name" text,
"scotland_career" text,
"caps" real,
"goals" real,
"average" real
); | SELECT MIN("goals") FROM "highest_goalscorers" WHERE "name"='kenny miller' AND "average"<0.261; | 2-11525346-2 |
What home team plays at victoria park? | CREATE TABLE "round_11" (
"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_11" WHERE "venue"='victoria park'; | 2-10887680-11 |
What home team scored 23.17 (155)? | CREATE TABLE "round_11" (
"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_11" WHERE "home_team_score"='23.17 (155)'; | 2-10887680-11 |
Where did away team st kilda play with a crowd larger than 22,764? | CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_11" WHERE "crowd">'22,764' AND "away_team"='st kilda'; | 2-10887680-11 |
When north melbourne played as the home team, what was the away team score? | CREATE TABLE "round_11" (
"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_11" WHERE "home_team"='north melbourne'; | 2-10887680-11 |
What is the away team when home scored 17.15 (117)? | CREATE TABLE "round_11" (
"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_11" WHERE "home_team_score"='17.15 (117)'; | 2-10887680-11 |
What is the away team score at victoria park? | CREATE TABLE "round_11" (
"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_11" WHERE "venue"='victoria park'; | 2-10887680-11 |
What is the high goal against associated with 18 wins, a Goal Difference of 43, and under 6 draws? | CREATE TABLE "league_standings" (
"position" real,
"club" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"points" real,
"goal_difference" real
); | SELECT MAX("goals_against") FROM "league_standings" WHERE "wins"=18 AND "goal_difference"=43 AND "draws"<6; | 2-11236683-2 |
What is the average win total associated with under 4 draws, and under 15 goals? | CREATE TABLE "league_standings" (
"position" real,
"club" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"points" real,
"goal_difference" real
); | SELECT AVG("wins") FROM "league_standings" WHERE "draws"<4 AND "goals_for"<15; | 2-11236683-2 |
Who was the home team that played at Moorabbin Oval? | 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 "home_team" FROM "round_5" WHERE "venue"='moorabbin oval'; | 2-10883333-5 |
How large was the crowd when the away team scored 11.15 (81)? | 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 COUNT("crowd") FROM "round_5" WHERE "away_team_score"='11.15 (81)'; | 2-10883333-5 |
Who was the home team when the away team scored 12.19 (91) and the crowd was larger than 20,350? | 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 "home_team" FROM "round_5" WHERE "crowd">'20,350' AND "away_team_score"='12.19 (91)'; | 2-10883333-5 |
How large was the crowd when Carlton was the away team? | 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 COUNT("crowd") FROM "round_5" WHERE "away_team"='carlton'; | 2-10883333-5 |
Which home team scored 19.11 (125)? | 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 "home_team" FROM "round_5" WHERE "home_team_score"='19.11 (125)'; | 2-10883333-5 |
I want the sum of year for mark barron | CREATE TABLE "player_selections" (
"year" real,
"pick" text,
"player_name" text,
"position" text,
"college" text
); | SELECT SUM("year") FROM "player_selections" WHERE "player_name"='mark barron'; | 2-10948197-2 |
Tell me the year for defensive tackle and college of lsu | CREATE TABLE "player_selections" (
"year" real,
"pick" text,
"player_name" text,
"position" text,
"college" text
); | SELECT "year" FROM "player_selections" WHERE "position"='defensive tackle' AND "college"='lsu'; | 2-10948197-2 |
On April 28, what was the average number of people attending? | CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
); | SELECT AVG("attendance") FROM "playoffs" WHERE "date"='april 28'; | 2-11902580-11 |
Which player is a centre? | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
); | SELECT "player" FROM "draft_picks" WHERE "position"='centre'; | 2-11801035-20 |
What was the venue when Collingwood was the away team? | 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 "venue" FROM "round_5" WHERE "away_team"='collingwood'; | 2-10826385-5 |
Where did Brian Hightower play when he has the Conv of 0? | CREATE TABLE "most_tries_in_a_match" (
"player" text,
"tries" text,
"conv" text,
"venue" text,
"date" text
); | SELECT "venue" FROM "most_tries_in_a_match" WHERE "conv"='0' AND "player"='brian hightower'; | 2-1145226-8 |
What was Dick Hyland's conv? | CREATE TABLE "most_tries_in_a_match" (
"player" text,
"tries" text,
"conv" text,
"venue" text,
"date" text
); | SELECT "conv" FROM "most_tries_in_a_match" WHERE "player"='dick hyland'; | 2-1145226-8 |
How many tries took place on 06/07/1996? | CREATE TABLE "most_tries_in_a_match" (
"player" text,
"tries" text,
"conv" text,
"venue" text,
"date" text
); | SELECT "tries" FROM "most_tries_in_a_match" WHERE "date"='06/07/1996'; | 2-1145226-8 |
Which player played on 07/06/1997? | CREATE TABLE "most_tries_in_a_match" (
"player" text,
"tries" text,
"conv" text,
"venue" text,
"date" text
); | SELECT "player" FROM "most_tries_in_a_match" WHERE "date"='07/06/1997'; | 2-1145226-8 |
The home team scored 11.17 (83) on what day? | CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_4" WHERE "home_team_score"='11.17 (83)'; | 2-10809444-4 |
When the crowd was over 16,000 people and south melbourne was the away team, what date was the game? | CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_4" WHERE "crowd">'16,000' AND "away_team"='south melbourne'; | 2-10809444-4 |
Which home team scored 16.16 (112)? | CREATE TABLE "round_4" (
"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_4" WHERE "home_team_score"='16.16 (112)'; | 2-10809444-4 |
When the Away team is melbourne, what venue do they play at? | CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_4" WHERE "away_team"='melbourne'; | 2-10809444-4 |
What is the lowest interview of Texas, with an average larger than 9.531? | CREATE TABLE "final_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT MIN("interview") FROM "final_competition" WHERE "state"='texas' AND "average">9.531; | 2-12044284-2 |
What is the total interviews of Iowa, and with an evening gown smaller than 9.625? | CREATE TABLE "final_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT COUNT("interview") FROM "final_competition" WHERE "state"='iowa' AND "evening_gown"<9.625; | 2-12044284-2 |
What is the sum of the average of Hawaii, with an interviewer larger than 9.636? | CREATE TABLE "final_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT SUM("average") FROM "final_competition" WHERE "state"='hawaii' AND "interview">9.636; | 2-12044284-2 |
What is the highest evening gown with an average of 9.531 and swimsuit smaller than 9.449? | CREATE TABLE "final_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT MAX("evening_gown") FROM "final_competition" WHERE "average"=9.531 AND "swimsuit"<9.449; | 2-12044284-2 |
What is the sum of swimsuit with an evening gown of 9.773 and average larger than 9.674? | CREATE TABLE "final_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT SUM("swimsuit") FROM "final_competition" WHERE "evening_gown"=9.773 AND "average">9.674; | 2-12044284-2 |
What is the average of the swimsuit smaller than 9.545 , of Iowa, with an evening gown larger than 9.625? | CREATE TABLE "final_competition" (
"state" text,
"interview" real,
"swimsuit" real,
"evening_gown" real,
"average" real
); | SELECT AVG("average") FROM "final_competition" WHERE "swimsuit"<9.545 AND "state"='iowa' AND "evening_gown">9.625; | 2-12044284-2 |
Name the leading scorer for 1 april 2008 | CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
); | SELECT "leading_scorer" FROM "april" WHERE "date"='1 april 2008'; | 2-11961176-9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.