output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MAX("game") FROM "game_log" WHERE "score"='126-108'; |
## Task
Generate a SQL query to answer the following question:
`What game ended with a final score of 126-108?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" tex... |
SELECT "high_rebounds" FROM "game_log" WHERE "date"='february 6'; |
## Task
Generate a SQL query to answer the following question:
`What was the highest number of rebounds on February 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_poin... |
SELECT COUNT("viewers_in_millions") FROM "u_s_television_ratings" WHERE "finale"='may 16, 2007'; |
## Task
Generate a SQL query to answer the following question:
`How many people tuned in to the finale on May 16, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_television_ratings" (
"season" text,
"timeslot" text,
"premiere" text,
"... |
SELECT "timeslot" FROM "u_s_television_ratings" WHERE "finale"='may 20, 2003'; |
## Task
Generate a SQL query to answer the following question:
`What time did the season finale air on May 20, 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_television_ratings" (
"season" text,
"timeslot" text,
"premiere" text,
"fin... |
SELECT SUM("game") FROM "game_log" WHERE "team"='toronto'; |
## Task
Generate a SQL query to answer the following question:
`What was the total score where Toronto was played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" ... |
SELECT "weight_height" FROM "2009_squad_statistics" WHERE "player"='james donaldson'; |
## Task
Generate a SQL query to answer the following question:
`Which Weight & Height has a Player of james donaldson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_squad_statistics" (
"player" text,
"position" text,
"weight_height" text,
... |
SELECT "weight_height" FROM "2009_squad_statistics" WHERE "player"='michael worrincy'; |
## Task
Generate a SQL query to answer the following question:
`Which Weight & Height has a Player of michael worrincy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_squad_statistics" (
"player" text,
"position" text,
"weight_height" text,... |
SELECT "from" FROM "deployments" WHERE "tail_code"='ah-3xx' AND "area"='westpac' AND "aircraft"='a-4b'; |
## Task
Generate a SQL query to answer the following question:
`What was the deployed from date for the a-4b aircraft from westpac with a tail code of ah-3xx?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "deployments" (
"from" text,
"aircraft" te... |
SELECT "carrier" FROM "deployments" WHERE "from"='18 july 1968'; |
## Task
Generate a SQL query to answer the following question:
`Which carrier was deployed on 18 July 1968?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "deployments" (
"from" text,
"aircraft" text,
"carrier" text,
"air_wing" text,
"tail_co... |
SELECT "aircraft" FROM "deployments" WHERE "tail_code"='ah-3xx' AND "from"='16 june 1967'; |
## Task
Generate a SQL query to answer the following question:
`What is the type of aircraft that has a tail code of ah-3xx, deployed from 16 June 1967?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "deployments" (
"from" text,
"aircraft" text,
... |
SELECT "tail_code" FROM "deployments" WHERE "carrier"='cva-34' AND "air_wing"='cvw-16' AND "area"='vietnam war' AND "from"='16 june 1967'; |
## Task
Generate a SQL query to answer the following question:
`What was the tail code for the cva-34 carrier with an air wing of cvw-16, deployed from 16 June 1967 in the Vietnam War?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "deployments" (
"f... |
SELECT "air_wing" FROM "deployments" WHERE "area"='vietnam war' AND "tail_code"='ah-3xx' AND "from"='16 june 1967'; |
## Task
Generate a SQL query to answer the following question:
`What is the air wing for the craft with a tail code of ah-3xx, deployed from 16 June 1967 in the Vietnam War?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "deployments" (
"from" text,
... |
SELECT "air_wing" FROM "deployments" WHERE "from"='16 june 1967'; |
## Task
Generate a SQL query to answer the following question:
`What is the air wing for the craft that was deployed from 16 June 1967?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "deployments" (
"from" text,
"aircraft" text,
"carrier" text,
... |
SELECT "res" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "time"='2:48'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of the match that went to round 1 and only for 2:48?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"oppon... |
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "event"='k-1 mma romanex'; |
## Task
Generate a SQL query to answer the following question:
`The K-1 MMA Romanex event went how many rounds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" te... |
SELECT "res" FROM "mixed_martial_arts_record" WHERE "time"='2:48'; |
## Task
Generate a SQL query to answer the following question:
`What is the result for the match that was only 2:48 long?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"... |
SELECT "points_for" FROM "2007_08_table" WHERE "points_against"='571'; |
## Task
Generate a SQL query to answer the following question:
`What is Points For, when Points Against is 571?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_08_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_fo... |
SELECT "drawn" FROM "2007_08_table" WHERE "lost"='14' AND "bonus_points"='12'; |
## Task
Generate a SQL query to answer the following question:
`What is Drawn, when Lost is 14, and when Bonus Points is 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_08_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,... |
SELECT "points" FROM "2007_08_table" WHERE "club"='maesteg rfc'; |
## Task
Generate a SQL query to answer the following question:
`What is Points, when Club is Maesteg RFC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_08_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" tex... |
SELECT "points_for" FROM "2007_08_table" WHERE "points"='60' AND "club"='bedwas rfc'; |
## Task
Generate a SQL query to answer the following question:
`What is Points, when Points is 60, and when Club is Bedwas RFC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_08_table" (
"club" text,
"played" text,
"drawn" text,
"lost" te... |
SELECT "drawn" FROM "2007_08_table" WHERE "club"='newport rfc'; |
## Task
Generate a SQL query to answer the following question:
`What is Drawn, when Club is Newport RFC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_08_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text... |
SELECT "points_difference" FROM "2007_08_table" WHERE "points_against"='451'; |
## Task
Generate a SQL query to answer the following question:
`What is Points Difference, when Points Against is 451?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_08_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"po... |
SELECT MAX("silver") FROM "medal_table" WHERE "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`Which is the highest silver that has a gold less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"b... |
SELECT MIN("silver") FROM "medal_table" WHERE "rank"=1 AND "bronze">5; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest silver that has 1 as the rank, with a bronze greater than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real... |
SELECT MAX("silver") FROM "medal_table" WHERE "rank"=9 AND "nation"='germany' AND "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the highest silver that has 9 as the rank, germany as the nation, with a gold less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" ... |
SELECT "location_attendance" FROM "game_log" WHERE "record"='41–36'; |
## Task
Generate a SQL query to answer the following question:
`What shows for the location and attendance when the record is 41–36?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text... |
SELECT "score" FROM "game_log" WHERE "record"='40–36'; |
## Task
Generate a SQL query to answer the following question:
`What is the score when the record was 40–36?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
... |
SELECT "player" FROM "nfl_draft" WHERE "pick_num"<61 AND "college"='texas'; |
## Task
Generate a SQL query to answer the following question:
`WHo is the Player got a Pick # smaller than 61, and a College of texas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"... |
SELECT "college" FROM "nfl_draft" WHERE "round"<3 AND "pick_num">4 AND "position"='wide receiver'; |
## Task
Generate a SQL query to answer the following question:
`Name the College which has a Round smaller than 3, and a Pick # larger than 4, and a Position of wide receiver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,... |
SELECT MAX("round") FROM "nfl_draft" WHERE "player"='mike williams' AND "pick_num">4; |
## Task
Generate a SQL query to answer the following question:
`Which the highest Round has a Player of mike williams, and a Pick # larger than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player... |
SELECT AVG("pick_num") FROM "nfl_draft" WHERE "player"='mike williams'; |
## Task
Generate a SQL query to answer the following question:
`Name the average Pick # of mike williams?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" te... |
SELECT "date" FROM "game_log" WHERE "visitor"='buffalo'; |
## Task
Generate a SQL query to answer the following question:
`What date did the red wings play against the visitors, buffalo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
... |
SELECT "decision" FROM "game_log" WHERE "home"='atlanta'; |
## Task
Generate a SQL query to answer the following question:
`Who made the decision when atlanta was the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decisio... |
SELECT "decision" FROM "game_log" WHERE "home"='detroit' AND "visitor"='boston'; |
## Task
Generate a SQL query to answer the following question:
`Who made the decision when detroit was the home team and boston was the visitor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text... |
SELECT "decision" FROM "game_log" WHERE "home"='toronto'; |
## Task
Generate a SQL query to answer the following question:
`Who made the decision when toronto was the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decisio... |
SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "name"='cecil martin' AND "overall"<268; |
## Task
Generate a SQL query to answer the following question:
`The player Cecil Martin with an overall less than 268 has what total pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" rea... |
SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "pick"=1 AND "name"='cecil martin'; |
## Task
Generate a SQL query to answer the following question:
`With the pick of 1 Cecil Martin has what number as the overall?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overa... |
SELECT "position" FROM "washington_redskins_draft_history" WHERE "overall"=304; |
## Task
Generate a SQL query to answer the following question:
`What position does the player play with an overall of 304?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" r... |
SELECT "us_modern_rock" FROM "singles_and_e_ps" WHERE "code"='bad 0003'; |
## Task
Generate a SQL query to answer the following question:
`What is the US modern rock rank of code bad 0003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_and_e_ps" (
"title" text,
"release_date" text,
"format" text,
"code" text,... |
SELECT "format" FROM "singles_and_e_ps" WHERE "code"='9 40231-2 (us only)'; |
## Task
Generate a SQL query to answer the following question:
`What is the format of code 9 40231-2 (us only)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_and_e_ps" (
"title" text,
"release_date" text,
"format" text,
"code" text,
... |
SELECT "uk_singles_chart" FROM "singles_and_e_ps" WHERE "release_date"='26 february 1990'; |
## Task
Generate a SQL query to answer the following question:
`What is the UK singles chart rank of the single released on 26 February 1990?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_and_e_ps" (
"title" text,
"release_date" text,
"... |
SELECT "format" FROM "singles_and_e_ps" WHERE "code"='pro-cd-4662'; |
## Task
Generate a SQL query to answer the following question:
`What is the format of code pro-cd-4662?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_and_e_ps" (
"title" text,
"release_date" text,
"format" text,
"code" text,
"uk_sin... |
SELECT "city" FROM "mongolia" WHERE "mongolian_script"='ᠡᠷᠳᠡᠨᠢᠲᠦ'; |
## Task
Generate a SQL query to answer the following question:
`Which city has the mongolian script of ᠡᠷᠳᠡᠨᠢᠲᠦ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mongolia" (
"city" text,
"mongolian" text,
"mongolian_script" text,
"province" text... |
SELECT "mongolian" FROM "mongolia" WHERE "province"='municipality'; |
## Task
Generate a SQL query to answer the following question:
`Which mongolian has the province of municipality?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mongolia" (
"city" text,
"mongolian" text,
"mongolian_script" text,
"province" tex... |
SELECT SUM("year") FROM "ncaa_division_i_tournament_results" WHERE "bsu_head_coach"='bus conner'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the years with bus conner as the BSU head coach?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ncaa_division_i_tournament_results" (
"year" real,
"round" text,
"... |
SELECT "bsu_head_coach" FROM "ncaa_division_i_tournament_results" WHERE "opponent"='louisville' AND "year">1994; |
## Task
Generate a SQL query to answer the following question:
`Who is the BSU head coach of the tournament after 1994 with louisville as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ncaa_division_i_tournament_results" (
"year" real,... |
SELECT "result" FROM "ncaa_division_i_tournament_results" WHERE "year"=1994; |
## Task
Generate a SQL query to answer the following question:
`What is the result in 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ncaa_division_i_tournament_results" (
"year" real,
"round" text,
"opponent" text,
"result" text,
"bsu_... |
SELECT "result" FROM "ncaa_division_i_tournament_results" WHERE "year">1993 AND "round"='first four'; |
## Task
Generate a SQL query to answer the following question:
`What is the result after 1993 of the first four rounds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ncaa_division_i_tournament_results" (
"year" real,
"round" text,
"opponent" te... |
SELECT "opponent" FROM "ncaa_division_i_tournament_results" WHERE "bsu_head_coach"='bobby dye' AND "year"<1994; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent before 1994 with bobby dye as the BSU head coach?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ncaa_division_i_tournament_results" (
"year" real,
"round" text,
... |
SELECT "opponent" FROM "ncaa_division_i_tournament_results" WHERE "year"=1976; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent in 1976?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ncaa_division_i_tournament_results" (
"year" real,
"round" text,
"opponent" text,
"result" text,
"bsu... |
SELECT "date" FROM "results" WHERE "score"='0-2' AND "opponents"='bayer leverkusen'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Score is "0-2", and when Opponents is "Bayer Leverkusen"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"date" text,
"venue" text,
"opponents" text,
... |
SELECT "competition" FROM "results" WHERE "score"='2-1' AND "date"='october 22, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is Competition, when Score is "2-1", and when Date is "October 22, 2008"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"date" text,
"venue" text,
"opponents" text,... |
SELECT "match_report" FROM "results" WHERE "venue"='westfalenstadion , dortmund'; |
## Task
Generate a SQL query to answer the following question:
`What is Match Report, when Venue is "Westfalenstadion , Dortmund"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"date" text,
"venue" text,
"opponents" text,
"score" t... |
SELECT "date" FROM "results" WHERE "venue"='weserstadion , bremen'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Venue is "Weserstadion , Bremen"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"date" text,
"venue" text,
"opponents" text,
"score" text,
"compet... |
SELECT "date" FROM "results" WHERE "competition"='f' AND "opponents"='fc astoria walldorf'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Competition is "F", and when Opponents is "FC Astoria Walldorf"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"date" text,
"venue" text,
"opponents" ... |
SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "name"='charley taylor' AND "overall">3; |
## Task
Generate a SQL query to answer the following question:
`What is the pick of Charley Taylor, who has an overall greater than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
... |
SELECT "position" FROM "washington_redskins_draft_history" WHERE "overall"=143; |
## Task
Generate a SQL query to answer the following question:
`What is the position of the player with a 143 overall?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,... |
SELECT AVG("round") FROM "washington_redskins_draft_history" WHERE "position"='s' AND "college"='mississippi' AND "overall"<214; |
## Task
Generate a SQL query to answer the following question:
`What is the average round of the s position player from the college of Mississippi and has an overall less than 214?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_dra... |
SELECT COUNT("round") FROM "washington_redskins_draft_history" WHERE "position"='rb' AND "college"='purdue' AND "pick"<3; |
## Task
Generate a SQL query to answer the following question:
`What is the total round of the rb player from Purdue with a pick less than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" ... |
SELECT "category" FROM "awards" WHERE "nominated_work"='24'; |
## Task
Generate a SQL query to answer the following question:
`Which category has 24 nominated work?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
)... |
SELECT MIN("silver") FROM "medal_table" WHERE "bronze"=1 AND "total">1 AND "nation"='croatia'; |
## Task
Generate a SQL query to answer the following question:
`How many Silver medals did the Nation of Croatia receive with a Total medal of more than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
... |
SELECT AVG("gold") FROM "medal_table" WHERE "nation"='australia'; |
## Task
Generate a SQL query to answer the following question:
`How many Gold medals did Australia receive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
... |
SELECT MIN("total") FROM "medal_table" WHERE "silver"=16 AND "bronze"<32; |
## Task
Generate a SQL query to answer the following question:
`How many Total medals did the country with 16 Silver and less than 32 Bronze receive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold... |
SELECT MIN("bronze") FROM "medal_table" WHERE "rank"='11' AND "silver"<1; |
## Task
Generate a SQL query to answer the following question:
`How many Bronze medals for the Nation with a Rank of 11 and less than 1 Silver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real... |
SELECT AVG("episode_number") FROM "writer" WHERE "original_airdate"='march 21, 2010' AND "season"<3; |
## Task
Generate a SQL query to answer the following question:
`What is the average Episode Number, when Original Airdate is March 21, 2010, and when Season is less than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "writer" (
"year" real,
"sho... |
SELECT "show" FROM "writer" WHERE "episode_number"=1 AND "year"<2010 AND "original_airdate"='january 20, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is Show, when Episode Number is 1, when Year is less than 2010, and when Original Airdate is January 20, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "writer" (
"year" real,... |
SELECT COUNT("season") FROM "writer" WHERE "original_airdate"='january 24, 1999' AND "year"<1999; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Season(s), when Original Airdate is January 24, 1999, and when Year is less than 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "writer" (
"year" real,
... |
SELECT COUNT("game") FROM "schedule" WHERE "result"='l' AND "record"='2-6'; |
## Task
Generate a SQL query to answer the following question:
`How many games have a Result of l, and a Record of 2-6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"sco... |
SELECT SUM("attendance") FROM "schedule" WHERE "opponent"='green bay packers'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the green bay packers game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"score"... |
SELECT "attendance" FROM "schedule" WHERE "record"='1-1'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the game whose score was 1-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"scor... |
SELECT "date" FROM "schedule" WHERE "score"='24-7' AND "record"='4-10'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Score of 24-7, and a Record of 4-10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"score... |
SELECT MIN("round") FROM "washington_redskins_draft_history" WHERE "position"='g' AND "overall"<31; |
## Task
Generate a SQL query to answer the following question:
`Lowest round for g that was smaller than 31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" ... |
SELECT "semifinalists" FROM "doubles" WHERE "tournament"='cincinnati'; |
## Task
Generate a SQL query to answer the following question:
`What is the Semifinalists that has a Tournament of Cincinnati?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles" (
"tournament" text,
"surface" text,
"week" text,
"winner" t... |
SELECT "aggregate" FROM "european_competition_history" WHERE "club"='crvena zvezda'; |
## Task
Generate a SQL query to answer the following question:
`The Crvena Zvezda club has what aggregate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_competition_history" (
"season" text,
"competition" text,
"round" text,
"club" t... |
SELECT COUNT("assists") FROM "points_for_the_2008_09_season" WHERE "goals"=0 AND "points">1 AND "pims">0; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of assists of the player with 0 goals, more than 1 points, and more than 0 pims?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "points_for_the_2008_09_season" (
... |
SELECT "league_position" FROM "first_division" WHERE "attendance">'41,288' AND "opponents"='luton town'; |
## Task
Generate a SQL query to answer the following question:
`What is league position when manchester played against luton town when 41,288 fans attended?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_division" (
"date" text,
"opponents" ... |
SELECT COUNT("neutral_wins") FROM "big_ten_conference_3_10_1" WHERE "home_losses">2 AND "loss"=7 AND "away_wins">3; |
## Task
Generate a SQL query to answer the following question:
`How many Neutral Wins have Home Losses larger than 2, and a Loss of 7, and an Away Wins larger than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "big_ten_conference_3_10_1" (
"insti... |
SELECT COUNT("away_losses") FROM "big_ten_conference_3_10_1" WHERE "home_losses">3 AND "wins"<5; |
## Task
Generate a SQL query to answer the following question:
`How many Away Losses have Home Losses larger than 3, and Wins smaller than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "big_ten_conference_3_10_1" (
"institution" text,
"wins" re... |
SELECT AVG("home_wins") FROM "big_ten_conference_3_10_1" WHERE "neutral_wins"=1 AND "neutral_losses"<0; |
## Task
Generate a SQL query to answer the following question:
`Which Home Wins have Neutral Wins of 1, and Neutral Losses smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "big_ten_conference_3_10_1" (
"institution" text,
"wins" real,... |
SELECT MIN("wins") FROM "big_ten_conference_3_10_1" WHERE "home_losses">3 AND "neutral_losses"<0; |
## Task
Generate a SQL query to answer the following question:
`Which Wins is the lowest one that has Home Losses larger than 3, and Neutral Losses smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "big_ten_conference_3_10_1" (
"institut... |
SELECT "decision" FROM "western_conference_quarter_finals_vs_6_c" WHERE "visitor"='calgary' AND "score"='2 – 1' AND "series"='4 – 3'; |
## Task
Generate a SQL query to answer the following question:
`Which Decision has a Visitor of calgary, a Score of 2 – 1, and a Series of 4 – 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_conference_quarter_finals_vs_6_c" (
"date" text,... |
SELECT "visitor" FROM "western_conference_quarter_finals_vs_6_c" WHERE "series"='2 – 1'; |
## Task
Generate a SQL query to answer the following question:
`Which Visitor has a Series of 2 – 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_conference_quarter_finals_vs_6_c" (
"date" text,
"visitor" text,
"score" text,
"home" t... |
SELECT "visitor" FROM "western_conference_quarter_finals_vs_6_c" WHERE "home"='calgary' AND "date"='april 17'; |
## Task
Generate a SQL query to answer the following question:
`Which Visitor has a Home of calgary, and a Date of april 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_conference_quarter_finals_vs_6_c" (
"date" text,
"visitor" text,
... |
SELECT "decision" FROM "western_conference_quarter_finals_vs_6_c" WHERE "visitor"='vancouver' AND "score"='5 – 4'; |
## Task
Generate a SQL query to answer the following question:
`Which Decision has a Visitor of vancouver, and a Score of 5 – 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_conference_quarter_finals_vs_6_c" (
"date" text,
"visitor" text... |
SELECT "visitor" FROM "western_conference_quarter_finals_vs_6_c" WHERE "home"='vancouver' AND "decision"='cloutier'; |
## Task
Generate a SQL query to answer the following question:
`Which Visitor has a Home of vancouver, and a Decision of cloutier?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_conference_quarter_finals_vs_6_c" (
"date" text,
"visitor" te... |
SELECT "decision" FROM "western_conference_quarter_finals_vs_6_c" WHERE "series"='3 – 3'; |
## Task
Generate a SQL query to answer the following question:
`Which Decision has a Series of 3 – 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "western_conference_quarter_finals_vs_6_c" (
"date" text,
"visitor" text,
"score" text,
"home" ... |
SELECT "race_4" FROM "hot_wheels_v8_supercar_showdown" WHERE "race_1"='dsq'; |
## Task
Generate a SQL query to answer the following question:
`What's the value for race 4 when race 1 is dsq?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "hot_wheels_v8_supercar_showdown" (
"driver" text,
"race_1" text,
"race_2" text,
"rac... |
SELECT "race_4" FROM "hot_wheels_v8_supercar_showdown" WHERE "race_3"='dns' AND "race_2"='27'; |
## Task
Generate a SQL query to answer the following question:
`What's the value for race 4 when race 3 is dns and race 2 is 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "hot_wheels_v8_supercar_showdown" (
"driver" text,
"race_1" text,
"rac... |
SELECT "race_4" FROM "hot_wheels_v8_supercar_showdown" WHERE "driver"='kevin heffernan'; |
## Task
Generate a SQL query to answer the following question:
`What's the value for race 4 for driver kevin heffernan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "hot_wheels_v8_supercar_showdown" (
"driver" text,
"race_1" text,
"race_2" text... |
SELECT "date" FROM "game_log" WHERE "game"=4; |
## Task
Generate a SQL query to answer the following question:
`What was the date of game 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds... |
SELECT "high_points" FROM "game_log" WHERE "date"='november 12'; |
## Task
Generate a SQL query to answer the following question:
`Who had the most points in the game on November 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points"... |
SELECT "rank" FROM "top_appearances" WHERE "player"='isco alarcón'; |
## Task
Generate a SQL query to answer the following question:
`What rank is the team that has a player named Isco Alarcón?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_appearances" (
"rank" real,
"player" text,
"club_s" text,
"year_s" t... |
SELECT COUNT("rank") FROM "top_appearances" WHERE "club_s"='valencia' AND "u_17_caps"=20; |
## Task
Generate a SQL query to answer the following question:
`What is the rank of Club Valencia with a U-17 Caps of 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_appearances" (
"rank" real,
"player" text,
"club_s" text,
"year_s" tex... |
SELECT "high_assists" FROM "game_log" WHERE "high_points"='t. j. ford (29)'; |
## Task
Generate a SQL query to answer the following question:
`What is High Assists, when High Points is "T. J. Ford (29)"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"hig... |
SELECT "high_assists" FROM "game_log" WHERE "date"='march 10'; |
## Task
Generate a SQL query to answer the following question:
`What is High Assists, when Date is "March 10"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text... |
SELECT "record" FROM "game_log" WHERE "team"='@ atlanta'; |
## Task
Generate a SQL query to answer the following question:
`What is Record, when Team is "@ Atlanta"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"... |
SELECT "team" FROM "game_log" WHERE "location_attendance"='rose garden 20,020'; |
## Task
Generate a SQL query to answer the following question:
`What is Team, when Location Attendance is "Rose Garden 20,020"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"... |
SELECT "date" FROM "game_log" WHERE "high_points"='danny granger (32)'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when High Points is "Danny Granger (32)"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_poi... |
SELECT "place" FROM "final_round" WHERE "money"='20,903' AND "player"='bob gilder'; |
## Task
Generate a SQL query to answer the following question:
`What is the place when the player is Bob Gilder and the money was $20,903?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,... |
SELECT "place" FROM "final_round" WHERE "country"='united states' AND "player"='fuzzy zoeller'; |
## Task
Generate a SQL query to answer the following question:
`What is the Place when Fuzzy Zoeller plated in the United States?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.