question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Who were the runners-up at the Alfred Dunhill Links Championship? | CREATE TABLE "european_tour_wins_5" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "runner_s_up" FROM "european_tour_wins_5" WHERE "tournament"='alfred dunhill links championship'; | 2-10843991-1 |
Name the highest grid for Laps more than 137 and rank is less than 8 | CREATE TABLE "classification" (
"grid" real,
"driver" text,
"constructor" text,
"qual" real,
"rank" real,
"laps" real,
"time_retired" text
); | SELECT MAX("grid") FROM "classification" WHERE "laps">137 AND "rank"<8; | 2-1122035-1 |
I want the total number of rank for Grid less than 20 and dick rathmann and Qual more than 130.92 | CREATE TABLE "classification" (
"grid" real,
"driver" text,
"constructor" text,
"qual" real,
"rank" real,
"laps" real,
"time_retired" text
); | SELECT COUNT("rank") FROM "classification" WHERE "grid"<20 AND "driver"='dick rathmann' AND "qual">130.92; | 2-1122035-1 |
Which nation won 1 gold medal and 1 bronze, for a total of 2 medals? | CREATE TABLE "medal_count" (
"nation" text,
"gold" text,
"silver" text,
"bronze" text,
"total" real
); | SELECT "nation" FROM "medal_count" WHERE "gold"='1' AND "bronze"='1' AND "total"=2; | 2-11871998-2 |
What is the name of the Leading scorer when the Home was the Trail blazers? | CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT "leading_scorer" FROM "april" WHERE "home"='trail blazers'; | 2-11963209-9 |
I want the sum of NGC number for spiral galaxy and right acension of 08h14m40.4s | CREATE TABLE "2501_2600" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
); | SELECT SUM("ngc_number") FROM "2501_2600" WHERE "object_type"='spiral galaxy' AND "right_ascension_j2000"='08h14m40.4s'; | 2-11097664-6 |
Tell me the right ascension for open cluster and NGC number more than 2547 | CREATE TABLE "2501_2600" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
); | SELECT "right_ascension_j2000" FROM "2501_2600" WHERE "object_type"='open cluster' AND "ngc_number">2547; | 2-11097664-6 |
I want the constellation for declination for °45′ and right ascension of 07h58m | CREATE TABLE "2501_2600" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
); | SELECT "constellation" FROM "2501_2600" WHERE "declination_j2000"='°45′' AND "right_ascension_j2000"='07h58m'; | 2-11097664-6 |
I want the NGC number for right ascension of 08h11m13.6s | CREATE TABLE "2501_2600" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text,
"apparent_magnitude" real
); | SELECT "ngc_number" FROM "2501_2600" WHERE "right_ascension_j2000"='08h11m13.6s'; | 2-11097664-6 |
What is the average crowd when the home team is north melbourne? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT AVG("crowd") FROM "round_13" WHERE "home_team"='north melbourne'; | 2-10807673-13 |
What is the crowd total at mcg? | CREATE TABLE "round_13" (
"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_13" WHERE "venue"='mcg'; | 2-10807673-13 |
How many Red Breasted Nuthatch coins created before 2007 were minted, on average? | CREATE TABLE "canadian_wildlife_series" (
"year" real,
"animal" text,
"artist" text,
"finish" text,
"mintage" real,
"issue_price" text
); | SELECT AVG("mintage") FROM "canadian_wildlife_series" WHERE "animal"='red breasted nuthatch' AND "year"<2007; | 2-11916083-14 |
What year was the downy woodpecker coin created? | CREATE TABLE "canadian_wildlife_series" (
"year" real,
"animal" text,
"artist" text,
"finish" text,
"mintage" real,
"issue_price" text
); | SELECT SUM("year") FROM "canadian_wildlife_series" WHERE "animal"='downy woodpecker'; | 2-11916083-14 |
Which artist created coins before 2010? | CREATE TABLE "canadian_wildlife_series" (
"year" real,
"animal" text,
"artist" text,
"finish" text,
"mintage" real,
"issue_price" text
); | SELECT "artist" FROM "canadian_wildlife_series" WHERE "year"<2010; | 2-11916083-14 |
What is the game number against the team Boston? | 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 COUNT("game") FROM "game_log" WHERE "team"='boston'; | 2-11960610-7 |
What is the date of game 23? | 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 "game"=23; | 2-11960610-7 |
What percentage of Slovenes lived in the village of Roach in 1951? | CREATE TABLE "twin_town" (
"village_german" text,
"village_slovenian" text,
"number_of_peoople_1991" real,
"percent_of_slovenes_1991" text,
"percent_of_slovenes_1951" text
); | SELECT "percent_of_slovenes_1951" FROM "twin_town" WHERE "village_german"='roach'; | 2-10798255-1 |
Which Venue has an Away team of south melbourne? | CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_15" WHERE "away_team"='south melbourne'; | 2-10809351-15 |
Which Crowd has an Away team score of 17.11 (113)? | CREATE TABLE "round_15" (
"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_15" WHERE "away_team_score"='17.11 (113)'; | 2-10809351-15 |
Which Venue has a Home team score of 13.11 (89)? | CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_15" WHERE "home_team_score"='13.11 (89)'; | 2-10809351-15 |
Which Away team scored 21.10 (136)? | CREATE TABLE "round_6" (
"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_6" WHERE "away_team_score"='21.10 (136)'; | 2-10885968-6 |
What did the Melbourne team score in their away game? | CREATE TABLE "round_6" (
"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_6" WHERE "away_team"='melbourne'; | 2-10885968-6 |
Which Home team plays at the arden street oval Venue? | CREATE TABLE "round_6" (
"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_6" WHERE "venue"='arden street oval'; | 2-10885968-6 |
What is Home team Venue for the hawthorn team? | CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_6" WHERE "home_team"='hawthorn'; | 2-10885968-6 |
What Home team plays at the princes park Venue? | CREATE TABLE "round_6" (
"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_6" WHERE "venue"='princes park'; | 2-10885968-6 |
Was the game against the Rattlers at the United Sports Training Center a home game or an away game? | CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
); | SELECT "home_away" FROM "schedule" WHERE "opponent"='rattlers' AND "field"='united sports training center'; | 2-12058084-1 |
What was the opponent for the game at Multi-sport Field? | CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
); | SELECT "opponent" FROM "schedule" WHERE "field"='multi-sport field'; | 2-12058084-1 |
What is the result of the away game played on August 4? | CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
); | SELECT "result" FROM "schedule" WHERE "home_away"='away' AND "date"='august 4'; | 2-12058084-1 |
On which field was the game played on July 12? | CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"home_away" text,
"field" text,
"result" text
); | SELECT "field" FROM "schedule" WHERE "date"='july 12'; | 2-12058084-1 |
At what venue did Sigurd Rushfeldt score 1 point in the 2006 FIFA World Cup Qualification competition? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"result" text,
"competition" text,
"scored" real
); | SELECT "venue" FROM "international_goals" WHERE "scored"=1 AND "competition"='2006 fifa world cup qualification'; | 2-1207980-1 |
What date did Sigurd Rushfeldt score less than 2 points in the UEFA Euro 2004 qualifying competition? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"result" text,
"competition" text,
"scored" real
); | SELECT "date" FROM "international_goals" WHERE "scored"<2 AND "competition"='uefa euro 2004 qualifying'; | 2-1207980-1 |
What is the tournament on February 17, 2002? | CREATE TABLE "doubles_10_5_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
); | SELECT "tournament" FROM "doubles_10_5_5" WHERE "date"='february 17, 2002'; | 2-1111175-4 |
How many goals does mitsuo kato have? | CREATE TABLE "update_november_14_2012" (
"player" text,
"games" real,
"goals" real,
"first_games" text,
"last_games" text
); | SELECT MAX("goals") FROM "update_november_14_2012" WHERE "player"='mitsuo kato'; | 2-10813414-1 |
Which engine has the entrant scuderia ferrari and is driven by Raymond Sommer? | CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
); | SELECT "engine" FROM "entries" WHERE "entrant"='scuderia ferrari' AND "driver"='raymond sommer'; | 2-1122039-1 |
What Chassis does Reg Parnell drive? | CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
); | SELECT "chassis" FROM "entries" WHERE "driver"='reg parnell'; | 2-1122039-1 |
What is Ryan McCay's speed that has a rank better than 8? | CREATE TABLE "junior_manx_grand_prix" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
); | SELECT "speed" FROM "junior_manx_grand_prix" WHERE "rank">8 AND "rider"='ryan mccay'; | 2-11972799-7 |
What's the name of the team that went 113.316mph? | CREATE TABLE "junior_manx_grand_prix" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
); | SELECT "team" FROM "junior_manx_grand_prix" WHERE "speed"='113.316mph'; | 2-11972799-7 |
What's Matts Nilsson's team that's ranked better than 7? | CREATE TABLE "junior_manx_grand_prix" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
); | SELECT "team" FROM "junior_manx_grand_prix" WHERE "rank"<7 AND "rider"='matts nilsson'; | 2-11972799-7 |
What is the average drop zone time in the N drop zone for the 1st Pathfinder Prov.? | CREATE TABLE "air_movement_table_mission_boston" (
"serial" real,
"airborne_unit" text,
"troop_carrier_group" text,
"num_of_c_47s" real,
"uk_base" text,
"drop_zone" text,
"drop_zone_time" real
); | SELECT AVG("drop_zone_time") FROM "air_movement_table_mission_boston" WHERE "drop_zone"='n' AND "troop_carrier_group"='1st pathfinder prov.'; | 2-12026730-1 |
Which UK Base has an airborne unit of Pathfinders? | CREATE TABLE "air_movement_table_mission_boston" (
"serial" real,
"airborne_unit" text,
"troop_carrier_group" text,
"num_of_c_47s" real,
"uk_base" text,
"drop_zone" text,
"drop_zone_time" real
); | SELECT "uk_base" FROM "air_movement_table_mission_boston" WHERE "airborne_unit"='pathfinders'; | 2-12026730-1 |
What was the number of high assists for game 1? | CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
); | SELECT "high_assists" FROM "playoffs" WHERE "game"=1; | 2-11960944-10 |
Tell me the chief judge which has reason for termination of retirement | CREATE TABLE "former_judges" (
"state" text,
"born_died" text,
"active_service" text,
"chief_judge" text,
"senior_status" text,
"appointed_by" text,
"reason_for_termination" text
); | SELECT "chief_judge" FROM "former_judges" WHERE "reason_for_termination"='retirement'; | 2-11088781-2 |
For boozer (13) what is the high assists and high rebounds? | CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
); | SELECT "high_assists" FROM "playoffs" WHERE "high_rebounds"='boozer (13)'; | 2-11964263-13 |
What is the score for the game that is less than 4 and a high points of williams (28)? | CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
); | SELECT "score" FROM "playoffs" WHERE "game"<4 AND "high_points"='williams (28)'; | 2-11964263-13 |
Which athlete in the 76 kg class, did not advance at the end of Round 3. | CREATE TABLE "wrestling" (
"athlete" text,
"event" text,
"round_1" text,
"round_2" text,
"round_3" text,
"round_4" text,
"round_5" text,
"final" text
); | SELECT "athlete" FROM "wrestling" WHERE "round_3"='did not advance' AND "event"='76 kg'; | 2-10831471-37 |
Who owns the horse with a post position of less than 4 with jockey todd pletcher? | CREATE TABLE "the_full_chart" (
"finish_position" text,
"lengths_behind" text,
"post_position" real,
"horse_name" text,
"trainer" text,
"jockey" text,
"owner" text,
"post_time_odds" text
); | SELECT "owner" FROM "the_full_chart" WHERE "post_position"<4 AND "jockey"='todd pletcher'; | 2-11306889-2 |
What jockey is on hard spun? | CREATE TABLE "the_full_chart" (
"finish_position" text,
"lengths_behind" text,
"post_position" real,
"horse_name" text,
"trainer" text,
"jockey" text,
"owner" text,
"post_time_odds" text
); | SELECT "jockey" FROM "the_full_chart" WHERE "horse_name"='hard spun'; | 2-11306889-2 |
What horse does todd pletcher ride with odds of 14.20-1? | CREATE TABLE "the_full_chart" (
"finish_position" text,
"lengths_behind" text,
"post_position" real,
"horse_name" text,
"trainer" text,
"jockey" text,
"owner" text,
"post_time_odds" text
); | SELECT "horse_name" FROM "the_full_chart" WHERE "jockey"='todd pletcher' AND "post_time_odds"='14.20-1'; | 2-11306889-2 |
Who the Owner that has a Lengths Behind of 5½? | CREATE TABLE "the_full_chart" (
"finish_position" text,
"lengths_behind" text,
"post_position" real,
"horse_name" text,
"trainer" text,
"jockey" text,
"owner" text,
"post_time_odds" text
); | SELECT "owner" FROM "the_full_chart" WHERE "lengths_behind"='5½'; | 2-11306889-2 |
What is the date of birth and age of Gabriel Quak Jun Yi with 3 caps? | CREATE TABLE "current_squad" (
"name" text,
"date_of_birth_age" text,
"club" text,
"caps" text,
"goals" text
); | SELECT "date_of_birth_age" FROM "current_squad" WHERE "caps"='3' AND "name"='gabriel quak jun yi'; | 2-1205305-6 |
Which club is associated with Hafiz Abu Sujad? | CREATE TABLE "current_squad" (
"name" text,
"date_of_birth_age" text,
"club" text,
"caps" text,
"goals" text
); | SELECT "club" FROM "current_squad" WHERE "name"='hafiz abu sujad'; | 2-1205305-6 |
What is the sum of a rank whose nation is West Germany and has bronze larger than 0? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("rank") FROM "medal_table" WHERE "nation"='west germany' AND "bronze">0; | 2-11137150-4 |
What is the total of Bronze with a total smaller than 3, and a nation of Poland, and a rank larger than 4? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("bronze") FROM "medal_table" WHERE "total"<3 AND "nation"='poland' AND "rank">4; | 2-11137150-4 |
What were the total receipts when the money raised in 2Q was $33,120,440? | CREATE TABLE "democrats" (
"candidate" text,
"money_raised_2_q" text,
"loans_received_2_q" text,
"money_spent_2_q" text,
"total_receipts" text,
"cash_on_hand" text
); | SELECT "total_receipts" FROM "democrats" WHERE "money_raised_2_q"='$33,120,440'; | 2-12030247-8 |
How much money was spent in 2Q when the total receipts were $1,117,566? | CREATE TABLE "democrats" (
"candidate" text,
"money_raised_2_q" text,
"loans_received_2_q" text,
"money_spent_2_q" text,
"total_receipts" text,
"cash_on_hand" text
); | SELECT "money_spent_2_q" FROM "democrats" WHERE "total_receipts"='$1,117,566'; | 2-12030247-8 |
How much money was raised in the 2Q when the total receipts were $63,075,927? | CREATE TABLE "democrats" (
"candidate" text,
"money_raised_2_q" text,
"loans_received_2_q" text,
"money_spent_2_q" text,
"total_receipts" text,
"cash_on_hand" text
); | SELECT "money_raised_2_q" FROM "democrats" WHERE "total_receipts"='$63,075,927'; | 2-12030247-8 |
How much cash was on hand when the money spent in the 2Q was $16,042,388? | CREATE TABLE "democrats" (
"candidate" text,
"money_raised_2_q" text,
"loans_received_2_q" text,
"money_spent_2_q" text,
"total_receipts" text,
"cash_on_hand" text
); | SELECT "cash_on_hand" FROM "democrats" WHERE "money_spent_2_q"='$16,042,388'; | 2-12030247-8 |
When the driver peter gethin has a grid less than 25, what is the average number of laps? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("laps") FROM "classification" WHERE "driver"='peter gethin' AND "grid"<25; | 2-1122596-1 |
When the driver mike hailwood has a grid greater than 12 and a Time/Retired of + 2 laps, what is the average number of laps? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("laps") FROM "classification" WHERE "time_retired"='+ 2 laps' AND "driver"='mike hailwood' AND "grid">12; | 2-1122596-1 |
Which team was the home team when playing South Melbourne? | 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_score" FROM "round_4" WHERE "away_team"='south melbourne'; | 2-10790099-4 |
What did the home team when they played Richmond? | 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_score" FROM "round_4" WHERE "away_team"='richmond'; | 2-10790099-4 |
What was the crowd number when Hawthorn was the away team? | 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 MAX("crowd") FROM "round_4" WHERE "away_team"='hawthorn'; | 2-10790099-4 |
What is the stage reached for venue edmonton green? | CREATE TABLE "national_founders_cup" (
"season" text,
"stage_reached" text,
"against" text,
"score" text,
"venue" text
); | SELECT "stage_reached" FROM "national_founders_cup" WHERE "venue"='edmonton green'; | 2-11678695-2 |
What is the average round for Club team of garmisch-partenkirchen riessersee sc (germany 2)? | CREATE TABLE "2001_draft_picks" (
"round" real,
"overall" real,
"player" text,
"nationality" text,
"club_team" text
); | SELECT AVG("round") FROM "2001_draft_picks" WHERE "club_team"='garmisch-partenkirchen riessersee sc (germany 2)'; | 2-11803648-10 |
What richmond player played against st kilda? | CREATE TABLE "goal_to_win" (
"player" text,
"team" text,
"opponent" text,
"year" real,
"score" text
); | SELECT "player" FROM "goal_to_win" WHERE "opponent"='st kilda' AND "team"='richmond'; | 2-11694586-1 |
What player played in 2000? | CREATE TABLE "goal_to_win" (
"player" text,
"team" text,
"opponent" text,
"year" real,
"score" text
); | SELECT "player" FROM "goal_to_win" WHERE "year"=2000; | 2-11694586-1 |
What year for geelong player john roberts? | CREATE TABLE "goal_to_win" (
"player" text,
"team" text,
"opponent" text,
"year" real,
"score" text
); | SELECT "year" FROM "goal_to_win" WHERE "opponent"='geelong' AND "player"='john roberts'; | 2-11694586-1 |
What's the authority when the roll is 40? | CREATE TABLE "henderson_massey_local_board" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT "authority" FROM "henderson_massey_local_board" WHERE "roll"=40; | 2-12017602-6 |
What's the authority when the roll is less than 234 for the massey east area? | CREATE TABLE "henderson_massey_local_board" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT "authority" FROM "henderson_massey_local_board" WHERE "roll"<234 AND "area"='massey east'; | 2-12017602-6 |
What's the roll for summerland primary when decile is over 6? | CREATE TABLE "henderson_massey_local_board" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT "roll" FROM "henderson_massey_local_board" WHERE "decile">6 AND "name"='summerland primary'; | 2-12017602-6 |
What is the name where the delivered date is 1839/08? | CREATE TABLE "summary_table" (
"l_cr_no" real,
"type" text,
"manufacturer" text,
"delivered" text,
"name" text,
"jt_cttee_no" real,
"1845_disposal" text
); | SELECT "name" FROM "summary_table" WHERE "delivered"='1839/08'; | 2-1184344-1 |
What is the Original U.S. air-date for the Original Canadian air-date of december 9, 2007? | CREATE TABLE "episodes" (
"title" text,
"original_story_author" text,
"director" text,
"original_u_s_air_date" text,
"original_canadian_air_date" text
); | SELECT "original_u_s_air_date" FROM "episodes" WHERE "original_canadian_air_date"='december 9, 2007'; | 2-11360615-1 |
What is the Original Canadian air-date that was directed by Michael Tolkin? | CREATE TABLE "episodes" (
"title" text,
"original_story_author" text,
"director" text,
"original_u_s_air_date" text,
"original_canadian_air_date" text
); | SELECT "original_canadian_air_date" FROM "episodes" WHERE "director"='michael tolkin'; | 2-11360615-1 |
What is the name of the author of " jerry was a man "? | CREATE TABLE "episodes" (
"title" text,
"original_story_author" text,
"director" text,
"original_u_s_air_date" text,
"original_canadian_air_date" text
); | SELECT "original_story_author" FROM "episodes" WHERE "title"='\" jerry was a man \"'; | 2-11360615-1 |
What was the Original Canadian air-date for the episode directed by mark rydell? | CREATE TABLE "episodes" (
"title" text,
"original_story_author" text,
"director" text,
"original_u_s_air_date" text,
"original_canadian_air_date" text
); | SELECT "original_canadian_air_date" FROM "episodes" WHERE "director"='mark rydell'; | 2-11360615-1 |
Which home team faced an away team that scored 8.9 (57)? | 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" FROM "round_8" WHERE "away_team_score"='8.9 (57)'; | 2-10809529-8 |
Which home team's venue is junction oval? | 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" FROM "round_8" WHERE "venue"='junction oval'; | 2-10809529-8 |
Which venue was melbourne the away team of? | 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 "away_team"='melbourne'; | 2-10809529-8 |
What was the home teams score against the away team footscray? | 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"='footscray'; | 2-10809529-8 |
What is the average long that Ramon Richardson played and an average greater than 5.5? | CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"long" real
); | SELECT AVG("long") FROM "wide_receivers" WHERE "player"='ramon richardson' AND "avg">5.5; | 2-11755831-3 |
Which has and average less than 3 and the lowest yards? | CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"long" real
); | SELECT MIN("yards") FROM "wide_receivers" WHERE "avg"<3; | 2-11755831-3 |
What is the average rec that is greater than 10 and has 40 yards? | CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"long" real
); | SELECT AVG("rec") FROM "wide_receivers" WHERE "yards"=40 AND "avg">10; | 2-11755831-3 |
What was the high assists for game 31? | 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_assists" FROM "game_log" WHERE "game"=31; | 2-11959669-5 |
What team played in game 39? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "team" FROM "game_log" WHERE "game"=39; | 2-11959669-5 |
How many people attended game 42? | 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 "game"=42; | 2-11959669-5 |
What is the highest Shooting Total with a Bronze less than 0? | CREATE TABLE "asian_youth_games" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("total") FROM "asian_youth_games" WHERE "sport"='shooting' AND "bronze"<0; | 2-10882501-10 |
What is the lowest Silver in the Total Sport has less than 1 Gold and more than 1 Bronze? | CREATE TABLE "asian_youth_games" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("silver") FROM "asian_youth_games" WHERE "bronze">1 AND "sport"='total' AND "gold"<1; | 2-10882501-10 |
What is the football Bronze with more than 1 Silver? | CREATE TABLE "asian_youth_games" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("bronze") FROM "asian_youth_games" WHERE "sport"='football' AND "silver">1; | 2-10882501-10 |
With 1 Gold, more than 2 Bronze and Total greater than 1, what is the Silver? | CREATE TABLE "asian_youth_games" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("silver") FROM "asian_youth_games" WHERE "total">1 AND "gold"=1 AND "bronze">2; | 2-10882501-10 |
With more than 1 Gold and Silver and Total Sport, what is the Total? | CREATE TABLE "asian_youth_games" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("total") FROM "asian_youth_games" WHERE "silver">1 AND "sport"='total' AND "gold">1; | 2-10882501-10 |
What year does robin buck go 44 laps? | CREATE TABLE "nascar_canadian_tire_series" (
"year" real,
"date" text,
"driver" text,
"team" text,
"distance_duration" text
); | SELECT "year" FROM "nascar_canadian_tire_series" WHERE "distance_duration"='44 laps' AND "driver"='robin buck'; | 2-11095234-7 |
How many years does Team wal-mart / tide participate? | CREATE TABLE "nascar_canadian_tire_series" (
"year" real,
"date" text,
"driver" text,
"team" text,
"distance_duration" text
); | SELECT COUNT("year") FROM "nascar_canadian_tire_series" WHERE "team"='wal-mart / tide'; | 2-11095234-7 |
Which score has a Result of 11–0? | CREATE TABLE "international_career" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "international_career" WHERE "result"='11–0'; | 2-11237422-1 |
Which result has a Score of 1–1? | CREATE TABLE "international_career" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "result" FROM "international_career" WHERE "score"='1–1'; | 2-11237422-1 |
Which score has a Result of 11–0? | CREATE TABLE "international_career" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "international_career" WHERE "result"='11–0'; | 2-11237422-1 |
What is the score of the game with an 11-32-11 record? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "score" FROM "february" WHERE "record"='11-32-11'; | 2-12019734-7 |
What is the home team of the game where New Jersey was the visitor team and the record was 11-35-12? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "home" FROM "february" WHERE "visitor"='new jersey' AND "record"='11-35-12'; | 2-12019734-7 |
What is the visitor team of the game with Chicago as the home team? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "visitor" FROM "february" WHERE "home"='chicago'; | 2-12019734-7 |
What is the score of the game on February 27 with New Jersey as the visitor team? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "score" FROM "february" WHERE "visitor"='new jersey' AND "date"='february 27'; | 2-12019734-7 |
What is the home team of the game on February 3? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "home" FROM "february" WHERE "date"='february 3'; | 2-12019734-7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.