output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT AVG("grid") FROM "moto_gp_classification" WHERE "time_retired"='+1 lap' AND "laps">27; |
## Task
Generate a SQL query to answer the following question:
`What is the grid average with a +1 lap time and more than 27 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps"... |
SELECT "laps" FROM "moto_gp_classification" WHERE "grid">17 AND "rider"='tetsuya harada'; |
## Task
Generate a SQL query to answer the following question:
`Which lap has more than 17 grids with tetsuya harada?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"tim... |
SELECT "danish_title" FROM "submissions" WHERE "year"<1978 AND "director"='bent christensen'; |
## Task
Generate a SQL query to answer the following question:
`Prior to 1978, what is the Danish of the Film directed by Bent Christensen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year" real,
"english_title" text,
"danish_... |
SELECT "director" FROM "submissions" WHERE "english_title"='the olsen gang sees red'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Director of the Olsen Gang Sees Red?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year" real,
"english_title" text,
"danish_title" text,
"director" te... |
SELECT SUM("year") FROM "submissions" WHERE "director"='erik clausen' AND "english_title"='the dark side of the moon'; |
## Task
Generate a SQL query to answer the following question:
`What is the submission Year of the Film The Dark Side of the Moon directed by Erik Clausen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year" real,
"english_title" ... |
SELECT MIN("year") FROM "submissions" WHERE "english_title"='the art of crying'; |
## Task
Generate a SQL query to answer the following question:
`What is the Year of submission of the Film The Art of Crying?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year" real,
"english_title" text,
"danish_title" text,
... |
SELECT "home_town" FROM "roster" WHERE "weight"=201; |
## Task
Generate a SQL query to answer the following question:
`Which Home Town had the weight of 201?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_... |
SELECT "position" FROM "roster" WHERE "year"='sophomore' AND "name"='darnell jackson'; |
## Task
Generate a SQL query to answer the following question:
`What Position did the sophomore Darnell Jackson play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" real,
"year"... |
SELECT "2007" FROM "sales_and_production_figures" WHERE "1999"='β' AND "model"='seat mii'; |
## Task
Generate a SQL query to answer the following question:
`what kind of 2007 has a 1999 of β, and a Model of seat mii?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sales_and_production_figures" (
"model" text,
"1998" text,
"1999" text,
... |
SELECT "2005" FROM "sales_and_production_figures" WHERE "2006"='126,511'; |
## Task
Generate a SQL query to answer the following question:
`Which 2005 has a 2006 of 126,511?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sales_and_production_figures" (
"model" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text... |
SELECT "2004" FROM "sales_and_production_figures" WHERE "2003"='36,026'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2004 which has a 2003 of 36,026?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sales_and_production_figures" (
"model" text,
"1998" text,
"1999" text,
"2000" text,
"20... |
SELECT "2007" FROM "sales_and_production_figures" WHERE "2011"='191,183'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2007 which has a 2011 of 191,183? Question 4`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sales_and_production_figures" (
"model" text,
"1998" text,
"1999" text,
"2000"... |
SELECT "2011" FROM "sales_and_production_figures" WHERE "2002"='β' AND "model"='seat marbella'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2011 which has a 2002 of β, and a Model of seat marbella?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sales_and_production_figures" (
"model" text,
"1998" text,
"1999" t... |
SELECT "2003" FROM "sales_and_production_figures" WHERE "2000"='β' AND "2007"='β' AND "2010"='β'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2003 which has a 2000 of β, and a 2007 of β, and a 2010 of β?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sales_and_production_figures" (
"model" text,
"1998" text,
"199... |
SELECT "affiliation" FROM "2013_2014_teams" WHERE "nickname"='dukes'; |
## Task
Generate a SQL query to answer the following question:
`Who is affiliated with the Dukes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_2014_teams" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"nickname... |
SELECT "school" FROM "2013_2014_teams" WHERE "location"='radford, va'; |
## Task
Generate a SQL query to answer the following question:
`What school is in Radford, Va?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_2014_teams" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"nickname" t... |
SELECT "nickname" FROM "2013_2014_teams" WHERE "affiliation"='public' AND "founded">1838 AND "location"='harrisonburg, va'; |
## Task
Generate a SQL query to answer the following question:
`What school has a public nickname, founded after 1838 in Harrisonburg, Va?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2013_2014_teams" (
"school" text,
"location" text,
"founded... |
SELECT MIN("pick") FROM "washington_redskins_draft_history" WHERE "name"='mike flater'; |
## Task
Generate a SQL query to answer the following question:
`Lowest pick for mike flater?`
### 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" text,
"positio... |
SELECT "home" FROM "game_log" WHERE "points"=23 AND "date"='january 2'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team on January 2 with 23 points?`
### 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,
"attendance... |
SELECT "record" FROM "game_log" WHERE "visitor"='st. louis'; |
## Task
Generate a SQL query to answer the following question:
`What is the record when St. Louis is 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,
"home" text,
"attendance"... |
SELECT "score" FROM "game_log" WHERE "date"='november 1'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for the game on November 1?`
### 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 "location_attendance" FROM "game_log" WHERE "team"='new jersey'; |
## Task
Generate a SQL query to answer the following question:
`What were the location and attendance for the game against New Jersey?`
### 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" te... |
SELECT "2011" FROM "doubles_performance_timeline" WHERE "2009"='grand slam tournaments'; |
## Task
Generate a SQL query to answer the following question:
`Where were the 2009 and 2011 Grand Slam Tournaments?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2008" text,
"2009" text,
"2... |
SELECT "second_vice_president" FROM "1928_1944" WHERE "third_vice_president"='gen. juan alonso' AND "inaugurated"='15 march 1940'; |
## Task
Generate a SQL query to answer the following question:
`What is Second Vice President, when Third Vice President is "Gen. Juan Alonso", and when Inaugurated is "15 March 1940"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1928_1944" (
"fir... |
SELECT "left_office" FROM "1928_1944" WHERE "inaugurated"='15 march 1930'; |
## Task
Generate a SQL query to answer the following question:
`What is Left Office, when Inaugurate is "15 March 1930"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1928_1944" (
"first_vice_president" text,
"second_vice_president" text,
"thir... |
SELECT "second_vice_president" FROM "1928_1944" WHERE "inaugurated"='26 march 1928'; |
## Task
Generate a SQL query to answer the following question:
`What is Second Vice President, when Inaugurated is "26 March 1928"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1928_1944" (
"first_vice_president" text,
"second_vice_president" te... |
SELECT "second_vice_president" FROM "1928_1944" WHERE "inaugurated"='15 march 1935'; |
## Task
Generate a SQL query to answer the following question:
`What is Second Vice President, when Inaugurated is "15 March 1935"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1928_1944" (
"first_vice_president" text,
"second_vice_president" te... |
SELECT "third_vice_president" FROM "1928_1944" WHERE "inaugurated"='15 march 1934'; |
## Task
Generate a SQL query to answer the following question:
`What is Third Vice President, when Inaugurated is "15 March 1934"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1928_1944" (
"first_vice_president" text,
"second_vice_president" tex... |
SELECT "third_vice_president" FROM "1928_1944" WHERE "second_vice_president"='baudelio palma'; |
## Task
Generate a SQL query to answer the following question:
`What is Third Vice President, when Second Vice President is "Baudelio Palma"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1928_1944" (
"first_vice_president" text,
"second_vice_pre... |
SELECT "score" FROM "regular_season" WHERE "date"='july 18'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game from July 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_poin... |
SELECT MAX("attendance") FROM "regular_season" WHERE "week"=9; |
## Task
Generate a SQL query to answer the following question:
`What was the Attendance on Week 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
)... |
SELECT "opponent" FROM "regular_season" WHERE "result"='w 13β0'; |
## Task
Generate a SQL query to answer the following question:
`What is the Opponent of the game with a Result of w 13β0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text... |
SELECT "score" FROM "schedule_and_results" WHERE "january"<4; |
## Task
Generate a SQL query to answer the following question:
`What was the score in January that was less than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"january" real,
"opponent" text,
"score" te... |
SELECT "date" FROM "other_wins_11" WHERE "margin_of_victory"='playoff' AND "runner_s_up"='yueh-chyn huang'; |
## Task
Generate a SQL query to answer the following question:
`Which date was the event that Yani won in a playoff over Yueh-Chyn Huang?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_wins_11" (
"date" text,
"winning_score" text,
"to_par"... |
SELECT "latitude" FROM "faculae" WHERE "longitude"='147.1w'; |
## Task
Generate a SQL query to answer the following question:
`What is the latitude of the point with a longitude of 147.1w?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "faculae" (
"name" text,
"latitude" text,
"longitude" text,
"diameter" ... |
SELECT "isbn_uk" FROM "game_books" WHERE "author"='dave martin' AND "isbn_us"='n/a'; |
## Task
Generate a SQL query to answer the following question:
`What is ISBN UK, when Author is "Dave Martin", and when ISBN US is "N/A"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_books" (
"title" text,
"author" text,
"isbn_uk" text,
... |
SELECT "isbn_us" FROM "game_books" WHERE "title"='crisis in space'; |
## Task
Generate a SQL query to answer the following question:
`What is ISBN US, when Title is "Crisis In Space"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_books" (
"title" text,
"author" text,
"isbn_uk" text,
"isbn_us" text,
"tv_c... |
SELECT "author" FROM "game_books" WHERE "tv_companions_featured"='peri brown' AND "title"='race against time'; |
## Task
Generate a SQL query to answer the following question:
`What is Author, when TV Companions Featured is "Peri Brown", and when Title is "Race Against Time"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_books" (
"title" text,
"author"... |
SELECT "title" FROM "game_books" WHERE "tv_companions_featured"='k-9'; |
## Task
Generate a SQL query to answer the following question:
`What is Title, when TV Companions Featured is "K-9"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_books" (
"title" text,
"author" text,
"isbn_uk" text,
"isbn_us" text,
"t... |
SELECT "isbn_us" FROM "game_books" WHERE "title"='mission to venus'; |
## Task
Generate a SQL query to answer the following question:
`What is ISBN US, when Title is "Mission To Venus"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_books" (
"title" text,
"author" text,
"isbn_uk" text,
"isbn_us" text,
"tv_... |
SELECT "tv_companions_featured" FROM "game_books" WHERE "author"='william emms'; |
## Task
Generate a SQL query to answer the following question:
`What is TV Companions Featured, when Author is "William Emms"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_books" (
"title" text,
"author" text,
"isbn_uk" text,
"isbn_us" ... |
SELECT "date" FROM "uefa_champions_league" WHERE "result"='2β2' AND "venue"='h'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Result of 2β2, and a Venue of H?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "uefa_champions_league" (
"date" text,
"round" text,
"opponent" text,
"venue" text,... |
SELECT "player" FROM "made_the_cut" WHERE "to_par">7 AND "total"=298; |
## Task
Generate a SQL query to answer the following question:
`Which player had a to par score larger than 7 and a total score of 298?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" te... |
SELECT "location" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "event"='superbrawl 16'; |
## Task
Generate a SQL query to answer the following question:
`In which location did he win the Superbrawl 16 event?`
### 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,
"meth... |
SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='technical submission (forearm choke)'; |
## Task
Generate a SQL query to answer the following question:
`What was his record when the method was technical submission (forearm choke)?`
### 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,
... |
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"='2' AND "event"='ufc 49'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in round 2 of the UFC 49 event?`
### 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,
"metho... |
SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='joe stevenson'; |
## Task
Generate a SQL query to answer the following question:
`What was the round when he fought Joe Stevenson?`
### 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" t... |
SELECT "date" FROM "game_log" WHERE "score"='94-74 w'; |
## Task
Generate a SQL query to answer the following question:
`On which date was the score 94-74 w?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" te... |
SELECT "location_attendance" FROM "game_log" WHERE "opponent"='at chicago bulls'; |
## Task
Generate a SQL query to answer the following question:
`When they played at Chicago Bulls, what was the Location/Attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" ... |
SELECT "opponent" FROM "game_log" WHERE "game"='44'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in Game 44?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
... |
SELECT "opponent" FROM "game_log" WHERE "location_attendance"='delta center' AND "record"='27-13'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when they played at Delta Center with a record of 27-13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
... |
SELECT "date" FROM "game_log" WHERE "game"='41'; |
## Task
Generate a SQL query to answer the following question:
`What was the date for Game 41?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
... |
SELECT "opposing_team" FROM "fa_cup" WHERE "against"=3 AND "date"='11 february 1950'; |
## Task
Generate a SQL query to answer the following question:
`Which Opposing Team has an Against of 3, and a Date of 11 february 1950?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fa_cup" (
"opposing_team" text,
"against" real,
"date" text,
... |
SELECT "venue" FROM "fa_cup" WHERE "opposing_team"='manchester united' AND "round"='5th round replay'; |
## Task
Generate a SQL query to answer the following question:
`Which Venue has an Opposing Team of manchester united, and a Round of 5th round replay?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fa_cup" (
"opposing_team" text,
"against" real,
... |
SELECT AVG("against") FROM "fa_cup" WHERE "date"='28 january 1950'; |
## Task
Generate a SQL query to answer the following question:
`Which Against has a Date of 28 january 1950?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fa_cup" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"round" te... |
SELECT COUNT("year") FROM "achievements" WHERE "result"='3rd' AND "venue"='edinburgh, scotland'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of years wehre anna thompson had a 3rd place result at edinburgh, scotland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"tourn... |
SELECT "year" FROM "achievements" WHERE "result"='7th'; |
## Task
Generate a SQL query to answer the following question:
`What year did anna thompson have a 7th place result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
... |
SELECT AVG("year") FROM "achievements" WHERE "tournament"='world cross country championships' AND "venue"='st etienne, france' AND "extra"='team competition' AND "result"='8th'; |
## Task
Generate a SQL query to answer the following question:
`What is the average year that anna thompson had an 8th place result in team competition at the world cross country championships in st etienne, france with`
### Database Schema
This query will run on a database whose schema is represented in this string:... |
SELECT MAX("total_matches") FROM "solheim_cup_record" WHERE "points_won">1.5 AND "year"='2002' AND "points_pct"<50; |
## Task
Generate a SQL query to answer the following question:
`What is the total matches in 2002 where points won is larger than 1.5 and the points % is smaller than 50?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "solheim_cup_record" (
"year" te... |
SELECT SUM("loss") FROM "rushing" WHERE "avg_g"=89.9; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE LOSS WITH AN AVERAGE OF 89.9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rushing" (
"name" text,
"gp_gs" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" r... |
SELECT COUNT("loss") FROM "rushing" WHERE "long"<24 AND "gain">116; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE NUMBER OF LOSSES WITH A LONG SMALLER THAN 24, AND GAIN BIGGER THAN 116?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rushing" (
"name" text,
"gp_gs" text,
"gain" real,... |
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "opponent"='kevin asplund'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds did Brett go against Kevin Asplund?`
### 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... |
SELECT "round" FROM "mixed_martial_arts_record" WHERE "event"='strikeforce: shamrock vs. diaz'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds did Brett go for the Strikeforce: Shamrock vs. Diaz match?`
### 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,
"op... |
SELECT COUNT("average_relative_annual_growth_pct") FROM "table" WHERE "rank"='41' AND "july_1_2013_projection">'2,204,000'; |
## Task
Generate a SQL query to answer the following question:
`What is the Average relative annual growth (%) for the country that ranks 41 and has a July 1, 2013 projection larger than 2,204,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table"... |
SELECT "opponent" FROM "game_log" WHERE "record"='22-10'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Record of 22-10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
);
### ... |
SELECT "score" FROM "game_log" WHERE "opponent"='@ seattle'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has an Opponent of @ seattle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
);
... |
SELECT "record" FROM "game_log" WHERE "result"='loss' AND "opponent"='@ la clippers'; |
## Task
Generate a SQL query to answer the following question:
`Which Record has a Result of loss, and an Opponent of @ la clippers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"result... |
SELECT "score" FROM "game_log" WHERE "opponent"='@ la lakers' AND "record"='8-6'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has an Opponent of @ la lakers, and a Record of 8-6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"result" te... |
SELECT "opponent" FROM "game_log" WHERE "result"='win' AND "date"='march 17'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Result of win, and a Date of march 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"result" text,
... |
SELECT "score" FROM "game_log" WHERE "date"='may 4'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has a Date of may 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
);
### SQL
G... |
SELECT MIN("pd_per_game") FROM "2009_nbl_ladder_championship_round" WHERE "rank"<4 AND "winning_pct"='78.6%' AND "streak"='w1' AND "pa_per_game"<81.5; |
## Task
Generate a SQL query to answer the following question:
`Which PD per game has a Rank smaller than 4, a Winning % of 78.6%, a Streak of w1, and a PA per game smaller than 81.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_nbl_ladder_cham... |
SELECT AVG("loss") FROM "2009_nbl_ladder_championship_round" WHERE "last_5"='4-1' AND "streak"='w2' AND "pa_per_game"<88.43; |
## Task
Generate a SQL query to answer the following question:
`Which Loss has a Last 5 of 4-1, a Streak of w2, and a PA per game smaller than 88.43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_nbl_ladder_championship_round" (
"rank" real,
... |
SELECT "last_5" FROM "2009_nbl_ladder_championship_round" WHERE "rank"=7; |
## Task
Generate a SQL query to answer the following question:
`Which Last 5 has a Rank of 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_nbl_ladder_championship_round" (
"rank" real,
"team" text,
"played" real,
"loss" real,
"last_5"... |
SELECT MIN("played") FROM "2009_nbl_ladder_championship_round" WHERE "pd_per_game">6.28 AND "loss"<4; |
## Task
Generate a SQL query to answer the following question:
`Which Played has a PD per game larger than 6.28, and a Loss smaller than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_nbl_ladder_championship_round" (
"rank" real,
"team" te... |
SELECT MIN("pf_per_game") FROM "2009_nbl_ladder_championship_round" WHERE "rank"=5; |
## Task
Generate a SQL query to answer the following question:
`Which PF per game has a Rank of 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_nbl_ladder_championship_round" (
"rank" real,
"team" text,
"played" real,
"loss" real,
"la... |
SELECT "record" FROM "mixed_martial_arts_record" WHERE "round"='3'; |
## Task
Generate a SQL query to answer the following question:
`What was the score in Round 3?`
### 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" text,
"event" tex... |
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='matt serra'; |
## Task
Generate a SQL query to answer the following question:
`What was the record for opponent Matt Serra?`
### 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" text,... |
SELECT "event" FROM "mixed_martial_arts_record" WHERE "round"='1' AND "opponent"='lance wipf'; |
## Task
Generate a SQL query to answer the following question:
`What was the event for round 1 against Lance Wipf?`
### 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"... |
SELECT COUNT("area_km") FROM "political_subdivision" WHERE "population_2007"='6,176'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Area (kmΒ²), when Population (2007) is 6,176?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "political_subdivision" (
"barangay" text,
"area_km" real,
"po... |
SELECT AVG("population_2010") FROM "political_subdivision" WHERE "population_2007"='4,875' AND "area_km">1.456; |
## Task
Generate a SQL query to answer the following question:
`What is the average Population (2010), when Population (2007) is 4,875, and when Area (kmΒ²) is greater than 1.456?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "political_subdivision" (
... |
SELECT "laps" FROM "classification" WHERE "car_no"='23'; |
## Task
Generate a SQL query to answer the following question:
`How many laps did car 23 do?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team" text,
"laps" text,
"time_ret... |
SELECT "laps" FROM "classification" WHERE "fin_pos"='17'; |
## Task
Generate a SQL query to answer the following question:
`How many laps did the car do that had a final position of 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team"... |
SELECT "grid" FROM "classification" WHERE "team"='racing professionals'; |
## Task
Generate a SQL query to answer the following question:
`What grid did the team racing professionals race on?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team" text,
... |
SELECT "car_no" FROM "classification" WHERE "time_retired"='+0.3844'; |
## Task
Generate a SQL query to answer the following question:
`What car number had a race time of +0.3844?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team" text,
"laps" te... |
SELECT "points" FROM "classification" WHERE "time_retired"='collision' AND "car_no"='10'; |
## Task
Generate a SQL query to answer the following question:
`How many points were scored by car number 10 that ended with a collision?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" te... |
SELECT "driver" FROM "classification" WHERE "fin_pos"='14'; |
## Task
Generate a SQL query to answer the following question:
`Who was the driver who had a final position of 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"fin_pos" text,
"car_no" text,
"driver" text,
"team" text,
"l... |
SELECT "money" FROM "final_leaderboard" WHERE "player"='justin leonard'; |
## Task
Generate a SQL query to answer the following question:
`what is the money ($) for player justin leonard?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"... |
SELECT "place" FROM "final_leaderboard" WHERE "score"='76-69-71-70=286'; |
## Task
Generate a SQL query to answer the following question:
`what is the place when the score is 76-69-71-70=286?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,... |
SELECT "place" FROM "final_leaderboard" WHERE "player"='costantino rocca'; |
## Task
Generate a SQL query to answer the following question:
`what is the place for costantino rocca?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" t... |
SELECT MAX("money") FROM "final_leaderboard" WHERE "player"='bernhard langer'; |
## Task
Generate a SQL query to answer the following question:
`what is the highest money ($) for bernhard langer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
... |
SELECT "score" FROM "men_s_national_team" WHERE "report"='fifa' AND "date"='october 13, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the FIFA report on October 13, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_national_team" (
"date" text,
"venue" text,
"score" text,
"competiti... |
SELECT "venue" FROM "men_s_national_team" WHERE "report"='eaff' AND "date"='june 24, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What venue has a EAFF report on June 24, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
... |
SELECT "venue" FROM "men_s_national_team" WHERE "date"='october 13, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the venue on October 13, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_national_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"report... |
SELECT "site" FROM "schedule" WHERE "result"='w13-7'; |
## Task
Generate a SQL query to answer the following question:
`At what Site was the Result W13-7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
### ... |
SELECT "attendance" FROM "schedule" WHERE "date"='11/09/1946'; |
## Task
Generate a SQL query to answer the following question:
`What was the Attendance on 11/09/1946?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
... |
SELECT "site" FROM "schedule" WHERE "attendance"='45,000'; |
## Task
Generate a SQL query to answer the following question:
`What Site had an Attendance of 45,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
... |
SELECT "result" FROM "schedule" WHERE "date"='11/02/1946'; |
## Task
Generate a SQL query to answer the following question:
`What was the Result on 11/02/1946?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
### ... |
SELECT "mark" FROM "60_metres" WHERE "points">813 AND "country"='united states' AND "react">0.152; |
## Task
Generate a SQL query to answer the following question:
`What mark has over 813 points in the United States, and a 0.152 react?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "60_metres" (
"lane" real,
"name" text,
"country" text,
"mark"... |
SELECT MIN("total") FROM "missed_the_cut" WHERE "year_s_won"='1968 , 1971' AND "to_par"<11; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Total, when Year(s) Won is "1968 , 1971", and when To Par is less than 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country"... |
SELECT MIN("to_par") FROM "missed_the_cut" WHERE "player"='johnny miller'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest To Par, when Player is "Johnny Miller"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"tota... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.