output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("no_in_series") FROM "table1_11058032_1" WHERE "u_s_viewers_millions"='16.03'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes had 16.03 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11058032_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_... |
SELECT COUNT("interregnum_ended") FROM "list_of_imperial_vicars_1437_1792" WHERE "duration"='3 months, 6 days'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of interregnum for duration 3 months, 6 days?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_imperial_vicars_1437_1792" (
"interregnum_began" text,
"interre... |
SELECT "directed_by" FROM "table1_11075747_4" WHERE "episode_num"=8; |
## Task
Generate a SQL query to answer the following question:
`Who directed Episode 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11075747_4" (
"series_num" real,
"episode_num" real,
"title" text,
"directed_by" text,
"written_by"... |
SELECT "directed_by" FROM "table1_11075747_4" WHERE "title"='\"Tell-Tale Heart\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode called "Tell-tale Heart"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11075747_4" (
"series_num" real,
"episode_num" real,
"title" text,
"direct... |
SELECT "original_air_date" FROM "table1_11075747_4" WHERE "series_num"=36; |
## Task
Generate a SQL query to answer the following question:
`What was the original air date for Series 36?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11075747_4" (
"series_num" real,
"episode_num" real,
"title" text,
"directed_by... |
SELECT "written_by" FROM "table1_11075747_4" WHERE "series_num"=38; |
## Task
Generate a SQL query to answer the following question:
`Who wrote Series 38?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11075747_4" (
"series_num" real,
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" te... |
SELECT COUNT("pct") FROM "1973" WHERE "manhattan"='45,901'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage for manhattan 45,901?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1973" (
"1973_democratic_initial_primary" text,
"manhattan" text,
"the_bronx" text,
"br... |
SELECT "1973_democratic_initial_primary" FROM "1973" WHERE "queens"='19%'; |
## Task
Generate a SQL query to answer the following question:
`Who won the 1973 democratic initial primary for queens of 19%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1973" (
"1973_democratic_initial_primary" text,
"manhattan" text,
"the_... |
SELECT "manhattan" FROM "1973" WHERE "richmond_staten_is"='35%'; |
## Task
Generate a SQL query to answer the following question:
`What is the manhattan for richmond 35%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1973" (
"1973_democratic_initial_primary" text,
"manhattan" text,
"the_bronx" text,
"brookly... |
SELECT "queens" FROM "1973" WHERE "richmond_staten_is"='42%'; |
## Task
Generate a SQL query to answer the following question:
`What is the queens where richmond staten is 42%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1973" (
"1973_democratic_initial_primary" text,
"manhattan" text,
"the_bronx" text,
... |
SELECT "party" FROM "1932" WHERE "brooklyn"='51.0%'; |
## Task
Generate a SQL query to answer the following question:
`what's the party with brooklyn value of 51.0%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1932" (
"1932_before_recount" text,
"party" text,
"manhattan" text,
"the_bronx" text,
... |
SELECT "brooklyn" FROM "1932" WHERE "queens"='16.8%'; |
## Task
Generate a SQL query to answer the following question:
`what's the brooklyn with queens value of 16.8%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1932" (
"1932_before_recount" text,
"party" text,
"manhattan" text,
"the_bronx" text,... |
SELECT MIN("total") FROM "1932"; |
## Task
Generate a SQL query to answer the following question:
`what is the minimum total`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1932" (
"1932_before_recount" text,
"party" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
... |
SELECT "pct" FROM "1932" WHERE "total"=249887 AND "queens"='6.8%'; |
## Task
Generate a SQL query to answer the following question:
`what's the % with total value of 249887 and queens value of 6.8%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1932" (
"1932_before_recount" text,
"party" text,
"manhattan" text,
... |
SELECT "team" FROM "kensington_lakes_activities_association" WHERE "division"='Central' AND "location"='Livonia'; |
## Task
Generate a SQL query to answer the following question:
`Which teams were in the central division and located in livonia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kensington_lakes_activities_association" (
"team" text,
"location" text... |
SELECT "team" FROM "kensington_lakes_activities_association" WHERE "location"='Highland Township'; |
## Task
Generate a SQL query to answer the following question:
`Which teams are located in highland township?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kensington_lakes_activities_association" (
"team" text,
"location" text,
"joined" real,
... |
SELECT "conference" FROM "kensington_lakes_activities_association" WHERE "team"='Churchill Chargers'; |
## Task
Generate a SQL query to answer the following question:
`What conference was the churchill chargers team in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kensington_lakes_activities_association" (
"team" text,
"location" text,
"joined" ... |
SELECT "title" FROM "table1_11111116_7" WHERE "written_by"='Ken LaZebnik'; |
## Task
Generate a SQL query to answer the following question:
`What was the titles of the episodes written by ken lazebnik?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
"title" te... |
SELECT "directed_by" FROM "table1_11111116_7" WHERE "u_s_viewers_million"='2.81'; |
## Task
Generate a SQL query to answer the following question:
`Who directed an episode that had 2.81 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
"title" tex... |
SELECT "title" FROM "table1_11111116_7" WHERE "u_s_viewers_million"='3.02'; |
## Task
Generate a SQL query to answer the following question:
`What were the names of the episodes that had 3.02 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
... |
SELECT "original_air_date" FROM "table1_11111116_7" WHERE "title"='\"Winds of War\"'; |
## Task
Generate a SQL query to answer the following question:
`What were the original air dates of the episode named "winds of war"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
"... |
SELECT "directed_by" FROM "table1_11111116_7" WHERE "u_s_viewers_million"='2.61'; |
## Task
Generate a SQL query to answer the following question:
`Who directed episodes that had 2.61 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
"title" text,... |
SELECT "u_s_viewers_million" FROM "table1_11111116_8" WHERE "title"='\"Brace for Impact\"'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of U.S. viewers watched "Brace for Impact"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_8" (
"no_in_season" real,
"no_in_series" real,
"title" t... |
SELECT "u_s_viewers_million" FROM "table1_11111116_8" WHERE "original_air_date"='March 31, 2013'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of U.S. viewers watched the episode that first aired on March 31, 2013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_8" (
"no_in_season" real,
"no_... |
SELECT "written_by" FROM "table1_11111116_8" WHERE "u_s_viewers_million"='2.12'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episodes that were viewed by 2.12 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_8" (
"no_in_season" real,
"no_in_series" real,
"title... |
SELECT "original_air_date" FROM "table1_11111116_6" WHERE "written_by"='Rebecca Dameron'; |
## Task
Generate a SQL query to answer the following question:
`The episode written by Rebecca Dameron aired on what date? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
"title" tex... |
SELECT MIN("no_in_series") FROM "table1_11111116_6" WHERE "u_s_viewers_million"='3.6'; |
## Task
Generate a SQL query to answer the following question:
`Which episode in the series drew 3.6 million U.S. viewers? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
"title" tex... |
SELECT "written_by" FROM "table1_11111116_6" WHERE "original_air_date"='April 17, 2011'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode that aired on April 17, 2011? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"d... |
SELECT COUNT("original_air_date") FROM "table1_11111116_6" WHERE "no_in_series"=79; |
## Task
Generate a SQL query to answer the following question:
`How many times did episode 79 originally air? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directe... |
SELECT "u_s_viewers_million" FROM "table1_11111116_6" WHERE "title"='\"Line of Departure\"'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of views in the country watched "Line of Departure"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
... |
SELECT "mls_cup_winner" FROM "table1_11148572_1" WHERE "mls_cup_runner_up"='Colorado Rapids'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the shield winner in which the mls cup winner and mls cup runner up is colorado rapids?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11148572_1" (
"season" ... |
SELECT "mls_cup_winner" FROM "table1_11148572_1" WHERE "mls_supporters_shield_runner_up"='Chivas USA'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the shield winner in which the mls cup winner and mls supporters shield runner up is Chivas usa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11148572_1" (
... |
SELECT "mls_cup_runner_up" FROM "table1_11148572_1" WHERE "mls_cup_winner"='Real Salt Lake'; |
## Task
Generate a SQL query to answer the following question:
`who is the of the shield winnerin which the mls cup runner-up and mls cup winner is real salt lake?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11148572_1" (
"season" real,
... |
SELECT "mls_cup_runner_up" FROM "table1_11148572_1" WHERE "season"=2000; |
## Task
Generate a SQL query to answer the following question:
`Which shield winner has the mls cup runner up and the season is 2000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11148572_1" (
"season" real,
"mls_cup_winner" text,
"mls_... |
SELECT MAX("league_apps_sub") FROM "sheffield_united_career"; |
## Task
Generate a SQL query to answer the following question:
`League apps (sub) maximum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sheffield_united_career" (
"season" text,
"division" text,
"league_apps_sub" real,
"league_goals" real,
... |
SELECT MAX("league_apps_sub") FROM "sheffield_united_career" WHERE "total_goals"=11; |
## Task
Generate a SQL query to answer the following question:
`When total goals is 11 what was the league apps (sub)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sheffield_united_career" (
"season" text,
"division" text,
"league_apps_sub" re... |
SELECT "audition_city" FROM "regional_auditions" WHERE "callback_venue"='Charleston Area Convention Center'; |
## Task
Generate a SQL query to answer the following question:
`Which city had the charleston area convention center as its callback location`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regional_auditions" (
"episode_air_date" text,
"audition_c... |
SELECT "episode_air_date" FROM "regional_auditions" WHERE "callback_venue"='Rancho Bernardo Inn'; |
## Task
Generate a SQL query to answer the following question:
`When did the callbacks from rancho bernardo inn air`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regional_auditions" (
"episode_air_date" text,
"audition_city" text,
"date" text,... |
SELECT "owned_since" FROM "table1_11147852_1" WHERE "city_of_license_market"='Albuquerque'; |
## Task
Generate a SQL query to answer the following question:
`The station located in Albuquerque has been owned since what year?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11147852_1" (
"city_of_license_market" text,
"station" text,
... |
SELECT "channel_tv_dt" FROM "table1_11147852_1" WHERE "year_of_affiliation"='2002'; |
## Task
Generate a SQL query to answer the following question:
`What channels have stations that were affiliated in 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11147852_1" (
"city_of_license_market" text,
"station" text,
"channel... |
SELECT "city_of_license_market" FROM "table1_11147852_1" WHERE "station"='KTFK-DT'; |
## Task
Generate a SQL query to answer the following question:
`What market is KTFK-DT in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11147852_1" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"year_of_affili... |
SELECT "engine" FROM "volvo_850_quick_information_by_trim_leve" WHERE "performance"='0–100km/h: 10.5s, VMax km/h (mph)'; |
## Task
Generate a SQL query to answer the following question:
` what's the engine where performance is 0–100km/h: 10.5s, vmax km/h (mph)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engi... |
SELECT "turbo" FROM "volvo_850_quick_information_by_trim_leve" WHERE "trim"='2.0 20v'; |
## Task
Generate a SQL query to answer the following question:
` what's the turbo where trim is 2.0 20v`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text,
"turbo" text,
"fuel_... |
SELECT "torque" FROM "volvo_850_quick_information_by_trim_leve" WHERE "performance"='0–100km/h: 7.5s auto, VMax: km/h (mph)'; |
## Task
Generate a SQL query to answer the following question:
` what's the torque where performance is 0–100km/h: 7.5s auto, vmax: km/h (mph)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
... |
SELECT "transmission" FROM "volvo_850_quick_information_by_trim_leve" WHERE "turbo"='Yes (Mitsubishi TD04-16t )'; |
## Task
Generate a SQL query to answer the following question:
` what's the transmission where turbo is yes (mitsubishi td04-16t )`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" tex... |
SELECT "fuel_delivery" FROM "volvo_850_quick_information_by_trim_leve" WHERE "power"='hp (kW) @6500 rpm'; |
## Task
Generate a SQL query to answer the following question:
` what's the fuel delivery where power is hp (kw) @6500 rpm`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text,
"tu... |
SELECT "engine" FROM "volvo_850_quick_information_by_trim_leve" WHERE "turbo"='Yes (Mitsubishi TD04-15g )'; |
## Task
Generate a SQL query to answer the following question:
`" what's the engine with turbo being yes (mitsubishi td04-15g ) "`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text... |
SELECT "english_title" FROM "highest_rating_drama_series_of_2007" WHERE "finale"=33 AND "peak"=42; |
## Task
Generate a SQL query to answer the following question:
`What is the english title that has finale as 33 and peak as 42?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2007" (
"rank" real,
"english_title" text... |
SELECT "english_title" FROM "highest_rating_drama_series_of_2007" WHERE "premiere"<30.0 AND "finale">36.0; |
## Task
Generate a SQL query to answer the following question:
`What is the english title where the premiere is less than 30.0 and the finale is bigger than 36.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2007" (
... |
SELECT "rank" FROM "highest_rating_drama_series_of_2007" WHERE "chinese_title"='緣來自有機'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank of the chinese title 緣來自有機?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2007" (
"rank" real,
"english_title" text,
"chinese_title"... |
SELECT "hk_viewers" FROM "highest_rating_drama_series_of_2007" WHERE "chinese_title"='十兄弟'; |
## Task
Generate a SQL query to answer the following question:
`What amount is the number of hk viewers where chinese title is 十兄弟?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2007" (
"rank" real,
"english_title" ... |
SELECT "weekly_rank" FROM "u_s_ratings" WHERE "air_date"='November 12, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the weekly rank with an air date is november 12, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" ... |
SELECT "air_date" FROM "u_s_ratings" WHERE "episode"='\"Blowback\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the air date of the episode "blowback"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,
"share"... |
SELECT MIN("weekly_rank") FROM "u_s_ratings" WHERE "air_date"='November 26, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest weekly rank with an air date of november 26, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"r... |
SELECT "episode" FROM "u_s_ratings" WHERE "18_49_rating_share"='3.5/9'; |
## Task
Generate a SQL query to answer the following question:
`What is the episode where 18-49 has a rating/share of 3.5/9`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" tex... |
SELECT "viewers_m" FROM "u_s_ratings" WHERE "rating"='5.3'; |
## Task
Generate a SQL query to answer the following question:
`What is the viewers where the rating is 5.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,
"share" re... |
SELECT "18_49_rating_share" FROM "u_s_ratings" WHERE "viewers_m"='5.61'; |
## Task
Generate a SQL query to answer the following question:
`What is the 18-49 rating/share where the viewers is 5.61?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,... |
SELECT "highest" FROM "attendances" WHERE "stadium"='Balmoor'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest of balmoor/`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"ave... |
SELECT COUNT("capacity") FROM "attendances" WHERE "stadium"='Somerset Park'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of capacity at somerset park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"low... |
SELECT MIN("capacity") FROM "attendances" WHERE "team"='Airdrie United'; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum capacity where airdrie united is?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
... |
SELECT "stadium" FROM "attendances" WHERE "team"='Alloa Athletic'; |
## Task
Generate a SQL query to answer the following question:
`What is the stadium for alloa athletic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real... |
SELECT MIN("highest") FROM "attendances" WHERE "team"='Ayr United'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest of ayr united?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"... |
SELECT MIN("average") FROM "attendances"; |
## Task
Generate a SQL query to answer the following question:
`What is the average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
... |
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='Galway'; |
## Task
Generate a SQL query to answer the following question:
`When are team Galway's dates of appointment?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
... |
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='Damien Fox'; |
## Task
Generate a SQL query to answer the following question:
`When are the vacancy dates for outgoing manager Damien Fox?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_dep... |
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "replaced_by"='Davy FitzGerald'; |
## Task
Generate a SQL query to answer the following question:
`When is the date of vacancy of Davy Fitzgerald being a replacement?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manne... |
SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='John Meyler'; |
## Task
Generate a SQL query to answer the following question:
`Which team has the outgoing manager John Meyler?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" tex... |
SELECT COUNT("1_credit") FROM "see_also" WHERE "3_credits"=180; |
## Task
Generate a SQL query to answer the following question:
`How many times is 3 credits 180?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" real,
... |
SELECT "hand" FROM "see_also" WHERE "4_credits"=1600; |
## Task
Generate a SQL query to answer the following question:
`What is the hand for 4 credits is 1600?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" ... |
SELECT COUNT("3_credits") FROM "see_also" WHERE "5_credits"='5'; |
## Task
Generate a SQL query to answer the following question:
`How many 3 credits are there with 5 credits of 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4... |
SELECT COUNT("4_credits") FROM "see_also" WHERE "hand"='Two pair'; |
## Task
Generate a SQL query to answer the following question:
`How many 4 credits is the hand two pair?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits"... |
SELECT "duration" FROM "law_enforcement" WHERE "actor"='Christian de la Fuente'; |
## Task
Generate a SQL query to answer the following question:
`What duration is listed for Christian de la Fuente?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "law_enforcement" (
"character" text,
"position" text,
"actor" text,
"first_episo... |
SELECT "final_episode" FROM "law_enforcement" WHERE "position"='DEA Agent'; |
## Task
Generate a SQL query to answer the following question:
`What was the final episode for Dea Agent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "law_enforcement" (
"character" text,
"position" text,
"actor" text,
"first_episode" text,
... |
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='Greenock Morton'; |
## Task
Generate a SQL query to answer the following question:
`What days is greenock morton vacant?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_o... |
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Colin Hendry'; |
## Task
Generate a SQL query to answer the following question:
`What are the dates of the outgoing manager colin hendry does appointments? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
... |
SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='Jim McInally'; |
## Task
Generate a SQL query to answer the following question:
`What teams does jim mcinally manage?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_o... |
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "replaced_by"='John Brown'; |
## Task
Generate a SQL query to answer the following question:
`What days are vacant that were replaced by john brown?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departur... |
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='13 March 2008'; |
## Task
Generate a SQL query to answer the following question:
`What manner of departure is listed with an appointment date of 13 march 2008`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,... |
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Campbell Money'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of appointment for outgoing manager Campbell Money`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manne... |
SELECT MIN("lowest") FROM "attendances" WHERE "stadium"='East End Park'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest attendance that East End Park has ever had?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest... |
SELECT "team" FROM "attendances" WHERE "stadium"='Palmerston Park'; |
## Task
Generate a SQL query to answer the following question:
`What team plays at Palmerston Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
... |
SELECT MIN("lowest") FROM "attendances" WHERE "stadium"='Cappielow'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest attandance recorded at Cappielow?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
... |
SELECT MAX("highest") FROM "attendances" WHERE "team"='St. Johnstone'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest attendance at a game played by St. Johnstone?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"high... |
SELECT MIN("highest") FROM "attendances" WHERE "team"='Hamilton Academical'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest attandence at a Hamilton Academical game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest"... |
SELECT "champion" FROM "division_i" WHERE "semi_finalist_num2"='NA' AND "location"='Morrisville, NC'; |
## Task
Generate a SQL query to answer the following question:
` who is the champion where semi-finalist #2 is na and location is morrisville, nc`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" ... |
SELECT "score" FROM "division_i" WHERE "year"='2007'; |
## Task
Generate a SQL query to answer the following question:
` what's the score where year is 2007`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
... |
SELECT COUNT("semi_finalist_num2") FROM "division_i" WHERE "runner_up"='East Carolina'; |
## Task
Generate a SQL query to answer the following question:
`what is the total number of semi-finalist #2 where runner-up is east carolina`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text... |
SELECT "semi_finalist_num1" FROM "division_i" WHERE "runner_up"='Elon University'; |
## Task
Generate a SQL query to answer the following question:
` who is the semi-finalist #1 where runner-up is elon university`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up... |
SELECT "runner_up" FROM "division_i" WHERE "year"='2004' AND "champion"='North Carolina State'; |
## Task
Generate a SQL query to answer the following question:
` who is the runner-up where year is 2004 and champion is north carolina state`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text... |
SELECT "runner_up" FROM "division_i" WHERE "location"='Ellenton, FL' AND "year"='2004'; |
## Task
Generate a SQL query to answer the following question:
` who is the runner-up where location is ellenton, fl and year is 2004`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"run... |
SELECT "naturalisation_by_marriage" FROM "population_and_distribution" WHERE "numer_of_jamaicans_granted_british_citizenship"=3165; |
## Task
Generate a SQL query to answer the following question:
`what's the naturalisation by marriage with numer of jamaicans granted british citizenship being 3165`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_and_distribution" (
"year... |
SELECT COUNT("numer_of_jamaicans_granted_british_citizenship") FROM "population_and_distribution" WHERE "naturalisation_by_marriage"=1060; |
## Task
Generate a SQL query to answer the following question:
` how many numer of jamaicans granted british citizenship with naturalisation by marriage being 1060`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_and_distribution" (
"year"... |
SELECT "naturalisation_by_marriage" FROM "population_and_distribution" WHERE "registration_of_a_minor_child"=114; |
## Task
Generate a SQL query to answer the following question:
`what's the naturalisation by marriage with regbeingtration of a minor child being 114`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_and_distribution" (
"year" real,
"numer... |
SELECT "numer_of_jamaicans_granted_british_citizenship" FROM "population_and_distribution" WHERE "naturalisation_by_residence"=927; |
## Task
Generate a SQL query to answer the following question:
`what's the numer of jamaicans granted british citizenship with naturalisation by residence being 927`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_and_distribution" (
"year... |
SELECT MAX("year") FROM "population_and_distribution" WHERE "registration_of_a_minor_child"=281; |
## Task
Generate a SQL query to answer the following question:
`what is the maximum year with registration of a minor child being 281`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_and_distribution" (
"year" real,
"numer_of_jamaicans_gr... |
SELECT COUNT("episode_titles") FROM "table1_11220799_2" WHERE "first_air_date"='March 6, 2008'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes had their first air date on March 6, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11220799_2" (
"episode_titles" text,
"first_air_date" text,
"rewar... |
SELECT "finish" FROM "table1_11220799_2" WHERE "first_air_date"='March 6, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What were the results of episodes with the first air date of March 6, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11220799_2" (
"episode_titles" text,
"first_air_date"... |
SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "no_in_season"=15; |
## Task
Generate a SQL query to answer the following question:
`How many millions of viewers watched episode 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11230937_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"direc... |
SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "title"='\"Throwing Heat\"'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of viewers watched the "Throwing Heat" episode?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11230937_2" (
"no_in_series" real,
"no_in_season" real,
"titl... |
SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "directed_by"='Anthony Hemingway'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of viewers watched the episode directed by Anthony Hemingway?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11230937_2" (
"no_in_series" real,
"no_in_season"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.