output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "pick_num" FROM "1978_pittsburgh_steelers_draft_selection" WHERE "round">7 AND "college"='maryland'; |
## Task
Generate a SQL query to answer the following question:
`What pick number was from the college of maryland and was picked in a round larger than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1978_pittsburgh_steelers_draft_selection" (
"ro... |
SELECT SUM("overall") FROM "atlanta_falcons_draft_history" WHERE "pick_num"=26; |
## Task
Generate a SQL query to answer the following question:
`How much Overall has a Pick # of 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
... |
SELECT "position" FROM "atlanta_falcons_draft_history" WHERE "round"<14 AND "college"='illinois'; |
## Task
Generate a SQL query to answer the following question:
`Which Position has a Round smaller than 14, and a College of illinois?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
... |
SELECT SUM("overall") FROM "atlanta_falcons_draft_history" WHERE "round"<6 AND "pick_num"=26; |
## Task
Generate a SQL query to answer the following question:
`How much Overall has a Round smaller than 6, and a Pick # of 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"over... |
SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "name"='roy hall'; |
## Task
Generate a SQL query to answer the following question:
`What is Roy Hall's highest round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"po... |
SELECT COUNT("overall") FROM "atlanta_falcons_draft_history" WHERE "pick_num">2 AND "name"='claude humphrey'; |
## Task
Generate a SQL query to answer the following question:
`How much Overall has a Pick # larger than 2, and a Name of claude humphrey?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" re... |
SELECT "opponent" FROM "regular_season" WHERE "score"='5–0'; |
## Task
Generate a SQL query to answer the following question:
`What is the oppenent when the score was 5–0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"recor... |
SELECT "opponent" FROM "regular_season" WHERE "game"<57 AND "score"='4–5'; |
## Task
Generate a SQL query to answer the following question:
`What is the opponent before game 57 when the score was 4–5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score"... |
SELECT "score" FROM "regular_season" WHERE "points">74 AND "game"=57; |
## Task
Generate a SQL query to answer the following question:
`What is the score when the points are larger than 74 and the game is 57?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" te... |
SELECT MAX("year") FROM "complete_formula_one_results" WHERE "chassis"='toro rosso str1' AND "points"<1; |
## Task
Generate a SQL query to answer the following question:
`When is the latest year that an entrant has toro rosso str1 chassis and under 1 point?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"ent... |
SELECT COUNT("year") FROM "complete_formula_one_results" WHERE "engine"='mercedes fo 108w 2.4l v8' AND "points">0; |
## Task
Generate a SQL query to answer the following question:
`How many entrants have a mercedes fo 108w 2.4l v8 engine and over 0 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,... |
SELECT "engine" FROM "complete_formula_one_results" WHERE "points"=3; |
## Task
Generate a SQL query to answer the following question:
`What is the engine for the car with 3 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" ... |
SELECT "torque_rpm" FROM "duratec_ti_vct" WHERE "code"='1.6 duratec ti-vct' AND "power_rpm"='ps (kw; hp)@6300'; |
## Task
Generate a SQL query to answer the following question:
`Code of 1.6 duratec ti-vct, and a Power@rpm of ps (kw; hp)@6300 has what torque@rpm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "duratec_ti_vct" (
"code" text,
"years" text,
"dis... |
SELECT "torque_rpm" FROM "duratec_ti_vct" WHERE "code"='1.6 duratec ti-vct' AND "power_rpm"='ps (kw; hp)@6000'; |
## Task
Generate a SQL query to answer the following question:
`Code of 1.6 duratec ti-vct, and a Power@rpm of ps (kw; hp)@6000 has what torque@rpm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "duratec_ti_vct" (
"code" text,
"years" text,
"dis... |
SELECT "code" FROM "duratec_ti_vct" WHERE "torque_rpm"='n·m (lb·ft)@4050'; |
## Task
Generate a SQL query to answer the following question:
`torque@rpm of n·m (lb·ft)@4050 has what code?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "duratec_ti_vct" (
"code" text,
"years" text,
"displacement_bore_x_stroke_type" text,
"... |
SELECT "international_tourism_expenditure_2012" FROM "international_tourism_expenditure_2012" WHERE "international_tourism_expenditure_2011"='$33.3 billion'; |
## Task
Generate a SQL query to answer the following question:
`Which International tourism expenditure (2012) has an International tourism expenditure (2011) of $33.3 billion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_tourism_expen... |
SELECT "unwto_region" FROM "international_tourism_expenditure_2012" WHERE "country"='italy'; |
## Task
Generate a SQL query to answer the following question:
`What is Italy's UNWTO region?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_tourism_expenditure_2012" (
"rank" real,
"country" text,
"unwto_region" text,
"internati... |
SELECT "international_tourism_expenditure_2011" FROM "international_tourism_expenditure_2012" WHERE "country"='china'; |
## Task
Generate a SQL query to answer the following question:
`What is China's International tourism expenditure (2011)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_tourism_expenditure_2012" (
"rank" real,
"country" text,
"unw... |
SELECT "format" FROM "dvd_and_blu_ray_releases" WHERE "num_episodes"<22 AND "num_disc_s"=4 AND "region_4"='n/a'; |
## Task
Generate a SQL query to answer the following question:
`What was the format for the 4 disc season that had less than 22 episodes and n/a for region 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dvd_and_blu_ray_releases" (
"dvd_season" te... |
SELECT MIN("top_25") FROM "summary" WHERE "tournament"='the open championship' AND "top_10">3; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Top-25 for the open championship, with a Top-10 larger than 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" r... |
SELECT MAX("top_5") FROM "summary" WHERE "tournament"='the open championship' AND "top_25"<9; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Top-5 when the Tournament is the open championship, with a Top-25 less than 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" ... |
SELECT AVG("top_25") FROM "summary" WHERE "top_10"<7 AND "tournament"='the open championship' AND "top_5">1; |
## Task
Generate a SQL query to answer the following question:
`What is the average Top-25 that has a Top-10 less than 7, and the Tournament is the open championship, with a Top-5more than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
... |
SELECT COUNT("top_5") FROM "summary" WHERE "top_25"=6 AND "cuts_made"<12; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Top-5 when the Top-25 is 6, and a Cuts made are less than 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"... |
SELECT "date" FROM "february" WHERE "home"='wizards'; |
## Task
Generate a SQL query to answer the following question:
`Which date had a home team of the Wizards?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" te... |
SELECT MAX("week") FROM "season_schedule" WHERE "date"='november 12, 1967' AND "attendance"<'34,761'; |
## Task
Generate a SQL query to answer the following question:
`What was the latest week with a date of November 12, 1967 and less than 34,761 in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" tex... |
SELECT "date" FROM "season_schedule" WHERE "week"<3 AND "opponent"='houston oilers'; |
## Task
Generate a SQL query to answer the following question:
`What is the date for the game with an opponent of the Houston Oilers from before week 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
... |
SELECT SUM("game") FROM "game_log" WHERE "team"='new york'; |
## Task
Generate a SQL query to answer the following question:
`What is the total for New York's game?`
### 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,
"hig... |
SELECT "round" FROM "nfl_draft" WHERE "college"='indiana'; |
## Task
Generate a SQL query to answer the following question:
`What round was a player from Indiana picked?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" text,
"player" text,
"position" text,
"college"... |
SELECT COUNT("losses") FROM "overall_results_in_the_ipl" WHERE "total"=17 AND "wins">10; |
## Task
Generate a SQL query to answer the following question:
`How many losses had a total of 17 and more than 10 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall_results_in_the_ipl" (
"year" text,
"total" real,
"wins" real,
"loss... |
SELECT "pct_win" FROM "overall_results_in_the_ipl" WHERE "total">16 AND "losses"<7; |
## Task
Generate a SQL query to answer the following question:
`What is the win percentage when there's more than 16 totals and less than 7 losses?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall_results_in_the_ipl" (
"year" text,
"total" r... |
SELECT MIN("no_result") FROM "overall_results_in_the_ipl" WHERE "year"='2012' AND "wins">10; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest no result when the year was 2012 and there were more than 10 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall_results_in_the_ipl" (
"year" text,
"tota... |
SELECT "socialist_ticket" FROM "1924_state_election_results" WHERE "democratic_ticket"='george k. shuler'; |
## Task
Generate a SQL query to answer the following question:
`What is the name on the Socialist ticket when the Democratic ticket is george k. shuler?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1924_state_election_results" (
"office" text,
"... |
SELECT "democratic_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='franklin p. brill'; |
## Task
Generate a SQL query to answer the following question:
`What is the name on the Democratic ticket when the Workers ticket is franklin p. brill?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1924_state_election_results" (
"office" text,
"d... |
SELECT "democratic_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='james p. cannon'; |
## Task
Generate a SQL query to answer the following question:
`What is the name on the Democratic ticket when the Workers ticket is james p. cannon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1924_state_election_results" (
"office" text,
"dem... |
SELECT "office" FROM "1924_state_election_results" WHERE "republican_ticket"='seymour lowman'; |
## Task
Generate a SQL query to answer the following question:
`What is the Office when the Republican ticket shows seymour lowman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1924_state_election_results" (
"office" text,
"democratic_ticket" te... |
SELECT "republican_ticket" FROM "1924_state_election_results" WHERE "socialist_ticket"='louis waldman'; |
## Task
Generate a SQL query to answer the following question:
`What is the name on the Republican ticket when the Socialist ticket was louis waldman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1924_state_election_results" (
"office" text,
"de... |
SELECT "republican_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='edward lindgren'; |
## Task
Generate a SQL query to answer the following question:
`What is the name on the Republican ticket when the Workers ticket is edward lindgren?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1924_state_election_results" (
"office" text,
"dem... |
SELECT "democratic_ticket" FROM "1930_state_election_results" WHERE "socialist_labor_ticket"='belle j. rosen'; |
## Task
Generate a SQL query to answer the following question:
`Who's the Democratic ticket with a Socialist Labor ticket of belle j. rosen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1930_state_election_results" (
"office" text,
"democratic_t... |
SELECT "socialist_labor_ticket" FROM "1930_state_election_results" WHERE "republican_ticket"='cuthbert w. pound'; |
## Task
Generate a SQL query to answer the following question:
`Who's the Socialist Labor ticket with a Republican ticket of cuthbert w. pound?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1930_state_election_results" (
"office" text,
"democrati... |
SELECT "office" FROM "1930_state_election_results" WHERE "republican_ticket"='daniel h. conway'; |
## Task
Generate a SQL query to answer the following question:
`Which Office has a Republican ticket of daniel h. conway?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1930_state_election_results" (
"office" text,
"democratic_ticket" text,
"rep... |
SELECT "socialist_ticket" FROM "1930_state_election_results" WHERE "law_preservation_ticket"='(none)' AND "socialist_labor_ticket"='belle j. rosen'; |
## Task
Generate a SQL query to answer the following question:
`Who's the Socialist ticket with a Law Preservation ticket of (none), and a Socialist Labor ticket of belle j. rosen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1930_state_election_res... |
SELECT "office" FROM "1930_state_election_results" WHERE "democratic_ticket"='herbert h. lehman'; |
## Task
Generate a SQL query to answer the following question:
`Which Office has a Democratic ticket of herbert h. lehman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1930_state_election_results" (
"office" text,
"democratic_ticket" text,
"re... |
SELECT "socialist_ticket" FROM "1930_state_election_results" WHERE "socialist_labor_ticket"='charles m. carlson'; |
## Task
Generate a SQL query to answer the following question:
`Who's the Socialist ticket with a Socialist Labor ticket of charles m. carlson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1930_state_election_results" (
"office" text,
"democrati... |
SELECT "bowl_game" FROM "summary_table" WHERE "season">2008 AND "location"='new orleans, louisiana'; |
## Task
Generate a SQL query to answer the following question:
`Which bowl game has a season greater than 2008, with new orleans, Louisiana as the location?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary_table" (
"season" real,
"bowl_game"... |
SELECT "result" FROM "summary_table" WHERE "bowl_game"='1947 sun bowl'; |
## Task
Generate a SQL query to answer the following question:
`What result has 1947 sun bowl as the bowl game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary_table" (
"season" real,
"bowl_game" text,
"result" text,
"opponent" text,
... |
SELECT "result" FROM "summary_table" WHERE "opponent"='texas longhorns'; |
## Task
Generate a SQL query to answer the following question:
`What result has texas longhorns as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary_table" (
"season" real,
"bowl_game" text,
"result" text,
"opponent" text,
... |
SELECT "location" FROM "summary_table" WHERE "attendance"='51,212'; |
## Task
Generate a SQL query to answer the following question:
`What location has 51,212 as the attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary_table" (
"season" real,
"bowl_game" text,
"result" text,
"opponent" text,
"sta... |
SELECT "3rd_place" FROM "by_season" WHERE "2nd_place"='real madrid'; |
## Task
Generate a SQL query to answer the following question:
`Who was the 3rd place team in the season in which Real Madrid finished 2nd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" text,
"1st_place" text,
"2nd_place" ... |
SELECT "season" FROM "by_season" WHERE "3rd_place"='cska moscow' AND "1st_place"='panathinaikos'; |
## Task
Generate a SQL query to answer the following question:
`Which season had a 3rd place of CSKA Moscow and 1st place of Panathinaikos?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" text,
"1st_place" text,
"2nd_place" ... |
SELECT "02_00_pm" FROM "afternoon" WHERE "time"='monday'; |
## Task
Generate a SQL query to answer the following question:
`Who preforms at 2:00PM on Monday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "afternoon" (
"time" text,
"12_00_pm" text,
"01_00_pm" text,
"02_00_pm" text,
"03_00_pm" text,
... |
SELECT "03_00_pm" FROM "afternoon" WHERE "time"='tuesday'; |
## Task
Generate a SQL query to answer the following question:
`Who preforms at 3:00PM on Tuesday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "afternoon" (
"time" text,
"12_00_pm" text,
"01_00_pm" text,
"02_00_pm" text,
"03_00_pm" text,
... |
SELECT "05_55_pm" FROM "afternoon" WHERE "time"='monday'; |
## Task
Generate a SQL query to answer the following question:
`Who preforms at 5:55PM on Monday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "afternoon" (
"time" text,
"12_00_pm" text,
"01_00_pm" text,
"02_00_pm" text,
"03_00_pm" text,
... |
SELECT "pictorials" FROM "2001" WHERE "date"='5-01'; |
## Task
Generate a SQL query to answer the following question:
`Which Pictorials is on 5-01?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2001" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"20_questions" text,
"pictorials" t... |
SELECT "cover_model" FROM "2001" WHERE "pictorials"='brande roderick-pmoy, naked news'; |
## Task
Generate a SQL query to answer the following question:
`Which Cover model has a Pictorials of brande roderick-pmoy, naked news?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2001" (
"date" text,
"cover_model" text,
"centerfold_model" te... |
SELECT "cover_model" FROM "2001" WHERE "centerfold_model"='jennifer walcott'; |
## Task
Generate a SQL query to answer the following question:
`which Cover model has a Centerfold model of jennifer walcott?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2001" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"20_... |
SELECT "cover_model" FROM "2001" WHERE "20_questions"='edward burns'; |
## Task
Generate a SQL query to answer the following question:
`Which over model has a 20 Questions of edward burns?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2001" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"20_questions... |
SELECT "centerfold_model" FROM "2001" WHERE "cover_model"='irina voronina'; |
## Task
Generate a SQL query to answer the following question:
`Which Centerfold model has a Cover model of irina voronina?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2001" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"20_qu... |
SELECT "centerfold_model" FROM "2001" WHERE "date"='3-01'; |
## Task
Generate a SQL query to answer the following question:
`Which Centerfold model has a Date of 3-01?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2001" (
"date" text,
"cover_model" text,
"centerfold_model" text,
"20_questions" text,
... |
SELECT "score" FROM "pool_f" WHERE "date"='15 aug' AND "time"='17:30'; |
## Task
Generate a SQL query to answer the following question:
`What is the score on 15 Aug with a 17:30 time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_f" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"se... |
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "opponent"='paul sutherland'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of round values that had opponents named Paul Sutherland?`
### 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" tex... |
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='10-6'; |
## Task
Generate a SQL query to answer the following question:
`Which opponent led to a record of 10-6?`
### 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,
"e... |
SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='9-4'; |
## Task
Generate a SQL query to answer the following question:
`Which method led to a record of 9-4?`
### 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,
"even... |
SELECT "song" FROM "episode_8_2_march_2008" WHERE "index"='m6'; |
## Task
Generate a SQL query to answer the following question:
`What song had an index of m6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_8_2_march_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text
);... |
SELECT "song" FROM "episode_8_2_march_2008" WHERE "score"='6.5 + 6.0 + 6.0 + 5.5 = 24.0'; |
## Task
Generate a SQL query to answer the following question:
`For which song was the score 6.5 + 6.0 + 6.0 + 5.5 = 24.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_8_2_march_2008" (
"index" text,
"name" text,
"song" text,
"group_... |
SELECT MIN("points") FROM "torneio_rio_s_o_paulo" WHERE "against"=23 AND "played"<8; |
## Task
Generate a SQL query to answer the following question:
`When the played number is less than 8 and against is 23, what is the least amount of points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"... |
SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "position"<5 AND "team"='corinthians'; |
## Task
Generate a SQL query to answer the following question:
`When the corinthians have a position of less than 5, what is the average against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,... |
SELECT COUNT("position") FROM "torneio_rio_s_o_paulo" WHERE "points"<6; |
## Task
Generate a SQL query to answer the following question:
`What position has less than 6 Points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"agains... |
SELECT COUNT("against") FROM "torneio_rio_s_o_paulo" WHERE "difference"='10' AND "played">8; |
## Task
Generate a SQL query to answer the following question:
`What is the number of against when the difference is 10 and played is greater than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" t... |
SELECT "stake_president" FROM "other_stakes_with_congregations_in_arkan" WHERE "organized"='april 18, 1965'; |
## Task
Generate a SQL query to answer the following question:
`What was the stake president when the organized date is April 18, 1965?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_stakes_with_congregations_in_arkan" (
"stake" text,
"organ... |
SELECT "organized" FROM "other_stakes_with_congregations_in_arkan" WHERE "stake_president"='henry john platt'; |
## Task
Generate a SQL query to answer the following question:
`What is the organized section when the stake president was henry john platt?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "other_stakes_with_congregations_in_arkan" (
"stake" text,
"... |
SELECT "award" FROM "awards_and_nominations" WHERE "category"='mercury prize'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the award given for the category Mercury Prize?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" te... |
SELECT COUNT("year") FROM "awards_and_nominations" WHERE "award"='mercury prize'; |
## Task
Generate a SQL query to answer the following question:
`How many years has the Mercury Prize award been given?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nomina... |
SELECT COUNT("year") FROM "awards_and_nominations" WHERE "award"='mercury prize'; |
## Task
Generate a SQL query to answer the following question:
`For how many years has the Mercury Prize been awarded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nomina... |
SELECT "result" FROM "awards_and_nominations" WHERE "year"<2009 AND "award"='mercury prize'; |
## Task
Generate a SQL query to answer the following question:
`In what year, prior to 2009, was the Mercury Prize awarded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"n... |
SELECT MIN("points") FROM "campeonato_paulista" WHERE "against"=50 AND "played"<20; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Points when against is 50, and there are less than 20 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
... |
SELECT AVG("position") FROM "campeonato_paulista" WHERE "against"<57 AND "team"='juventus'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Position with less than 57 against and the team is Juventus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
... |
SELECT MAX("position") FROM "campeonato_paulista" WHERE "against"<41 AND "lost">7; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Position when the against is less than 41, and lost is more than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" t... |
SELECT AVG("lost") FROM "campeonato_paulista" WHERE "against"=57; |
## Task
Generate a SQL query to answer the following question:
`What is the average Lost when there are 57 against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" rea... |
SELECT MIN("lost") FROM "campeonato_paulista" WHERE "team"='são paulo railway' AND "points">21; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Lost for são paulo railway, Points more than 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real... |
SELECT "unit" FROM "newly_named_birds" WHERE "location"='mongolia'; |
## Task
Generate a SQL query to answer the following question:
`What unit is in Mongolia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newly_named_birds" (
"name" text,
"status" text,
"authors" text,
"unit" text,
"location" text,
"notes"... |
SELECT "unit" FROM "newly_named_birds" WHERE "location"='argentina'; |
## Task
Generate a SQL query to answer the following question:
`What unit is in Argentina?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newly_named_birds" (
"name" text,
"status" text,
"authors" text,
"unit" text,
"location" text,
"notes... |
SELECT "name" FROM "newly_named_birds" WHERE "location"='china'; |
## Task
Generate a SQL query to answer the following question:
`What name is located in China?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newly_named_birds" (
"name" text,
"status" text,
"authors" text,
"unit" text,
"location" text,
"n... |
SELECT "unit" FROM "newly_named_birds" WHERE "location"='china' AND "authors"='zhou zhang'; |
## Task
Generate a SQL query to answer the following question:
`What unit is located in China and has Zhou Zhang as an author?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newly_named_birds" (
"name" text,
"status" text,
"authors" text,
"uni... |
SELECT "manufacturer" FROM "250cc_classification" WHERE "laps"<20 AND "grid"=21; |
## Task
Generate a SQL query to answer the following question:
`What kind of Manufacturer has a Laps smaller than 20 and a Grid of 21`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"lap... |
SELECT "airline" FROM "commercial_airlines" WHERE "fleet_size">17 AND "iata"='pr'; |
## Task
Generate a SQL query to answer the following question:
`Which Airline has a Fleet size larger than 17, and a IATA of pr?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "commercial_airlines" (
"airline" text,
"icao" text,
"iata" text,
"c... |
SELECT "icao" FROM "commercial_airlines" WHERE "fleet_size"=2; |
## Task
Generate a SQL query to answer the following question:
`Which ICAO has a Fleet size of 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "commercial_airlines" (
"airline" text,
"icao" text,
"iata" text,
"callsign" text,
"commenced_ope... |
SELECT SUM("fleet_size") FROM "commercial_airlines" WHERE "iata"='pr' AND "commenced_operations"<1941; |
## Task
Generate a SQL query to answer the following question:
`What is the of Fleet size with a IATA of pr, and a Commenced operations smaller than 1941?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "commercial_airlines" (
"airline" text,
"icao"... |
SELECT "icao" FROM "commercial_airlines" WHERE "commenced_operations">2011; |
## Task
Generate a SQL query to answer the following question:
`Which ICAO has a Commenced operations larger than 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "commercial_airlines" (
"airline" text,
"icao" text,
"iata" text,
"callsign" ... |
SELECT "status" FROM "insects" WHERE "authors"='woodruff'; |
## Task
Generate a SQL query to answer the following question:
`What is the Status with an Author that is woodruff?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "insects" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"locati... |
SELECT MAX("pick_num") FROM "round_six" WHERE "cfl_team"='toronto argonauts'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Pick # when the CFL Team is the Toronto Argonauts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
... |
SELECT "cfl_team" FROM "round_six" WHERE "pick_num"=48; |
## Task
Generate a SQL query to answer the following question:
`What is the CFL Team with #48 as the pick number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"... |
SELECT "college" FROM "round_six" WHERE "position"='db' AND "cfl_team"='winnipeg blue bombers'; |
## Task
Generate a SQL query to answer the following question:
`What is the College with a Position of db, and the CFL Team was Winnipeg Blue Bombers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
... |
SELECT "cfl_team" FROM "round_six" WHERE "player"='will grant'; |
## Task
Generate a SQL query to answer the following question:
`What is the CFL Team with Will Grant?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" tex... |
SELECT MAX("year") FROM "ry_ky_an_missions_to_edo" WHERE "number_in_entourage"='99' AND "mission_type"='gratitude'; |
## Task
Generate a SQL query to answer the following question:
`What is the latest year of a gratitude type mission with 99 in the entourage?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ry_ky_an_missions_to_edo" (
"year" real,
"mission_type" te... |
SELECT "lead_envoy" FROM "ry_ky_an_missions_to_edo" WHERE "ry_ky_an_king"='shō eki'; |
## Task
Generate a SQL query to answer the following question:
`Who was the lead envoy of the mission with the Ryūkyūan King shō eki?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ry_ky_an_missions_to_edo" (
"year" real,
"mission_type" text,
"s... |
SELECT "lead_envoy" FROM "ry_ky_an_missions_to_edo" WHERE "ry_ky_an_king"='shō kei' AND "mission_type"='congratulation' AND "year"=1718; |
## Task
Generate a SQL query to answer the following question:
`Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ry_ky_an_missions_to_edo" (
"year" real,
"m... |
SELECT "lead_envoy" FROM "ry_ky_an_missions_to_edo" WHERE "ry_ky_an_king"='shō kō'; |
## Task
Generate a SQL query to answer the following question:
`Who was the lead envoy with the Ryūkyūan King shō kō?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ry_ky_an_missions_to_edo" (
"year" real,
"mission_type" text,
"shogun" text,
"... |
SELECT "opponent" FROM "schedule" WHERE "date"='10/20/1979*'; |
## Task
Generate a SQL query to answer the following question:
`On 10/20/1979*, who was the Opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"location" text,
"result" text,
"attendance" real
... |
SELECT AVG("attendance") FROM "schedule" WHERE "result"='w 30-23'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Attendance at a game with a Result of w 30-23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"location" text,
"resul... |
SELECT MIN("attendance") FROM "schedule" WHERE "result"='w 25-17'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Attendance at a game with the Result of w 25-17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"location" text,
"resu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.