output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "average_speed_mph" FROM "table1_17802778_1" WHERE "race_time"='1:45:00'; |
## Task
Generate a SQL query to answer the following question:
`What was the average speed (mph) for the racer who finished in 1:45:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17802778_1" (
"year" real,
"date" text,
"driver" text,
... |
SELECT "miles_km" FROM "table1_17802778_1" WHERE "race_time"='1:05:33'; |
## Task
Generate a SQL query to answer the following question:
`How many total miles recorded for the racer who finished in 1:05:33?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17802778_1" (
"year" real,
"date" text,
"driver" text,
"... |
SELECT "episode_num" FROM "table1_17810099_3" WHERE "title"='\"SWAT Kats Unplugged\"'; |
## Task
Generate a SQL query to answer the following question:
`what episode # was titled "SWAT Kats Unplugged"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17810099_3" (
"episode_num" text,
"season_num" real,
"title" text,
"writer_s... |
SELECT "title" FROM "table1_17810099_3" WHERE "episode_num"='21a'; |
## Task
Generate a SQL query to answer the following question:
`what was the title of the episode 21a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17810099_3" (
"episode_num" text,
"season_num" real,
"title" text,
"writer_s" text,
... |
SELECT "writer_s" FROM "table1_17810099_3" WHERE "episode_num"='14'; |
## Task
Generate a SQL query to answer the following question:
`who wrote episode 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17810099_3" (
"episode_num" text,
"season_num" real,
"title" text,
"writer_s" text,
"director" text,
... |
SELECT "originalairdate" FROM "table1_17810099_3" WHERE "title"='\"A Bright and Shiny Future\"'; |
## Task
Generate a SQL query to answer the following question:
`on what date did the episode titled "A Bright and Shiny Future" originally air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17810099_3" (
"episode_num" text,
"season_num" re... |
SELECT COUNT("e_greenberg") FROM "u_s_house_district_11" WHERE "county"='Morris'; |
## Task
Generate a SQL query to answer the following question:
`Who many votes did E. Greenberg receive in Morris County?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_house_district_11" (
"county" text,
"precincts" text,
"e_greenberg" text... |
SELECT "precincts" FROM "u_s_house_district_11" WHERE "g_hager"='19 (20%)'; |
## Task
Generate a SQL query to answer the following question:
`How many precincts are in the county where G. Hager received 19 (20%) votes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_house_district_11" (
"county" text,
"precincts" text,
... |
SELECT COUNT("slope_length") FROM "skilift_system" WHERE "elevation_groundstation"=1966; |
## Task
Generate a SQL query to answer the following question:
`Name the slope length for 1966 groundstation`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "skilift_system" (
"name_or_route" text,
"type" text,
"elevation_groundstation" real,
"e... |
SELECT "name_or_route" FROM "skilift_system" WHERE "slope_length"=336; |
## Task
Generate a SQL query to answer the following question:
`Name the name or route for slope length being 336`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "skilift_system" (
"name_or_route" text,
"type" text,
"elevation_groundstation" real,... |
SELECT MIN("slope_length") FROM "skilift_system" WHERE "type"='gondola'; |
## Task
Generate a SQL query to answer the following question:
`Name the slope length for gondola`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "skilift_system" (
"name_or_route" text,
"type" text,
"elevation_groundstation" real,
"elevation_mo... |
SELECT MIN("capacity_in_persons_hour") FROM "skilift_system" WHERE "construction_year_s"='1983'; |
## Task
Generate a SQL query to answer the following question:
`Name the least capacity for persons hour for 1983`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "skilift_system" (
"name_or_route" text,
"type" text,
"elevation_groundstation" real,... |
SELECT "player_of_the_round" FROM "calendar" WHERE "number_of_fixtures"=80; |
## Task
Generate a SQL query to answer the following question:
`Who is the player of the round with 80 fixtures? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" text,
"main_date" text,
"number_of_fixtures" real,
"clubs" tex... |
SELECT COUNT("new_entries_this_round") FROM "calendar" WHERE "round"='Fourth Round Proper'; |
## Task
Generate a SQL query to answer the following question:
`How many categories of new entries this round are there for the fourth round proper? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" text,
"main_date" text,
"num... |
SELECT COUNT("runner_up") FROM "table1_178242_7" WHERE "international_destination"='Japan'; |
## Task
Generate a SQL query to answer the following question:
`How many runner-ups were there when the show went to Japan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_178242_7" (
"season" text,
"the_mole" text,
"winner" text,
"runne... |
SELECT COUNT("winner") FROM "table1_178242_7" WHERE "runner_up"='Regina'; |
## Task
Generate a SQL query to answer the following question:
`How many won the prize when Regina was the runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_178242_7" (
"season" text,
"the_mole" text,
"winner" text,
"runner_up" ... |
SELECT "season" FROM "table1_178242_7" WHERE "the_mole"='Milouska'; |
## Task
Generate a SQL query to answer the following question:
`Which season is it when Milouska was the show's mole ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_178242_7" (
"season" text,
"the_mole" text,
"winner" text,
"runner_up"... |
SELECT "actor_required" FROM "characters" WHERE "actor_in_original_production"='Robert Austin'; |
## Task
Generate a SQL query to answer the following question:
`What were the requirements for the role played by Robert Austin in the original production?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"actor_in_original_production" t... |
SELECT "actor_in_original_production" FROM "characters" WHERE "actor_required"='Female, older'; |
## Task
Generate a SQL query to answer the following question:
`What actor played the "female, older" role in the original production?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"actor_in_original_production" text,
"actor_require... |
SELECT "flat_spin" FROM "characters" WHERE "actor_in_original_production"='Robert Austin'; |
## Task
Generate a SQL query to answer the following question:
`What FlatSpin actor played the same role as Robert Austin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"actor_in_original_production" text,
"actor_required" text,
"... |
SELECT COUNT("role_play") FROM "characters" WHERE "actor_required"='Male, younger'; |
## Task
Generate a SQL query to answer the following question:
`How many RolePlay actors played the role requiring a "male, younger" actor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"actor_in_original_production" text,
"actor_re... |
SELECT COUNT("role_play") FROM "characters" WHERE "flat_spin"='Tracy Taylor'; |
## Task
Generate a SQL query to answer the following question:
`How many RolePlay actors played the same role as FlatSpin's Tracy Taylor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"actor_in_original_production" text,
"actor_requ... |
SELECT "role_play" FROM "characters" WHERE "actor_in_original_production"='Alison Pargeter'; |
## Task
Generate a SQL query to answer the following question:
`What RolePlay actor played the same role Alison Pargeter played in the original production?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "characters" (
"actor_in_original_production" t... |
SELECT "church_name" FROM "churches_in_flora" WHERE "location_of_the_church"='Stavang'; |
## Task
Generate a SQL query to answer the following question:
`What's the name of the church in Stavang?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "churches_in_flora" (
"parish_prestegjeld" text,
"sub_parish_sokn" text,
"church_name" text,
... |
SELECT "church_name" FROM "churches_in_flora" WHERE "location_of_the_church"='Stavang'; |
## Task
Generate a SQL query to answer the following question:
`What's the name of the church in Stavang?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "churches_in_flora" (
"parish_prestegjeld" text,
"sub_parish_sokn" text,
"church_name" text,
... |
SELECT "sub_parish_sokn" FROM "churches_in_flora" WHERE "location_of_the_church"='Eikefjord'; |
## Task
Generate a SQL query to answer the following question:
`What's the sub-parish (sokn) of Eikefjord?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "churches_in_flora" (
"parish_prestegjeld" text,
"sub_parish_sokn" text,
"church_name" text,... |
SELECT COUNT("location_of_the_church") FROM "churches_in_flora" WHERE "year_built"='1957' AND "church_name"='Askrova bedehuskapell'; |
## Task
Generate a SQL query to answer the following question:
`On how many locations is there a church named Askrova Bedehuskapell, built in 1957?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "churches_in_flora" (
"parish_prestegjeld" text,
"sub... |
SELECT "parish_prestegjeld" FROM "churches_in_flora" WHERE "church_name"='Askrova bedehuskapell'; |
## Task
Generate a SQL query to answer the following question:
`In what parish is the Askrova Bedehuskapell church?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "churches_in_flora" (
"parish_prestegjeld" text,
"sub_parish_sokn" text,
"church_na... |
SELECT "channel" FROM "table1_178242_1" WHERE "host_s"='Art Rooijakkers'; |
## Task
Generate a SQL query to answer the following question:
`Which channel has the host Art Rooijakkers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_178242_1" (
"country_region" text,
"name" text,
"host_s" text,
"channel" text,
... |
SELECT "premiere_aired" FROM "table1_178242_1" WHERE "channel"='VIER'; |
## Task
Generate a SQL query to answer the following question:
`When did the program air on Vier?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_178242_1" (
"country_region" text,
"name" text,
"host_s" text,
"channel" text,
"premiere_... |
SELECT "name" FROM "table1_178242_1" WHERE "channel"='Nederland 3' AND "premiere_aired"='17 May 2008 – 21 June 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is the title that aired from 17 may 2008 – 21 june 2008 on Nederland 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_178242_1" (
"country_region" text,
"name" text,
"h... |
SELECT "seasons" FROM "table1_178242_1" WHERE "country_region"='Poland'; |
## Task
Generate a SQL query to answer the following question:
`How many seasons did the show run in Poland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_178242_1" (
"country_region" text,
"name" text,
"host_s" text,
"channel" text,
... |
SELECT "current_stock" FROM "table1_17839_1" WHERE "avg_trips_per_mile_1000"=4744; |
## Task
Generate a SQL query to answer the following question:
`When 4744 is the avg. trips per mile (x1000) what is the current stock?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17839_1" (
"name" text,
"map_colour" text,
"first_opera... |
SELECT "future_stock" FROM "table1_17839_1" WHERE "map_colour"='Green'; |
## Task
Generate a SQL query to answer the following question:
`When green is the map colour what is the future stock?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17839_1" (
"name" text,
"map_colour" text,
"first_operated" real,
"typ... |
SELECT COUNT("avg_trips_per_mile_1000") FROM "table1_17839_1" WHERE "map_colour"='Turquoise'; |
## Task
Generate a SQL query to answer the following question:
`When turquoise is the map colour how many avg. trips per mile (×1000) are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17839_1" (
"name" text,
"map_colour" text,
"f... |
SELECT "length" FROM "table1_17839_1" WHERE "map_colour"='Turquoise'; |
## Task
Generate a SQL query to answer the following question:
`When turquoise is the map colour what is the length?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17839_1" (
"name" text,
"map_colour" text,
"first_operated" real,
"type"... |
SELECT MAX("year_established") FROM "table1_1784514_1"; |
## Task
Generate a SQL query to answer the following question:
`What is the latest year a division was established?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1784514_1" (
"voivodeship_after_1569" text,
"capital" text,
"year_establish... |
SELECT "number_of_powiats" FROM "table1_1784514_1" WHERE "capital"='Mstsislaw'; |
## Task
Generate a SQL query to answer the following question:
`How many powiats have mstsislaw as a capital?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1784514_1" (
"voivodeship_after_1569" text,
"capital" text,
"year_established" re... |
SELECT COUNT("capital") FROM "table1_1784514_1" WHERE "voivodeship_after_1569"='Brest Litovsk Voivodeship'; |
## Task
Generate a SQL query to answer the following question:
`How many capitals had brest litovsk voivodeship as voivodeship after 1569?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1784514_1" (
"voivodeship_after_1569" text,
"capital" ... |
SELECT MAX("year_established") FROM "table1_1784514_1" WHERE "number_of_powiats"='5 powiats'; |
## Task
Generate a SQL query to answer the following question:
`What is the latest year established that had 5 powiats?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1784514_1" (
"voivodeship_after_1569" text,
"capital" text,
"year_estab... |
SELECT "parish_prestegjeld" FROM "churches_in_luster" WHERE "sub_parish_sogn"='Fortun'; |
## Task
Generate a SQL query to answer the following question:
`In what parish is the sub-parish fortun? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "churches_in_luster" (
"parish_prestegjeld" text,
"sub_parish_sogn" text,
"church_name" text,... |
SELECT "sub_parish_sogn" FROM "churches_in_luster" WHERE "location_of_the_church"='Fortun'; |
## Task
Generate a SQL query to answer the following question:
`What is the sub-parish of the church located in Fortun? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "churches_in_luster" (
"parish_prestegjeld" text,
"sub_parish_sogn" text,
"chu... |
SELECT MIN("year_built") FROM "churches_in_luster" WHERE "location_of_the_church"='Jostedal'; |
## Task
Generate a SQL query to answer the following question:
`What is the year that the oldest church was built in Jostedal? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "churches_in_luster" (
"parish_prestegjeld" text,
"sub_parish_sogn" text,... |
SELECT "parish_prestegjeld" FROM "churches_in_luster" WHERE "location_of_the_church"='Solvorn'; |
## Task
Generate a SQL query to answer the following question:
`What parishes are in Solvorn? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "churches_in_luster" (
"parish_prestegjeld" text,
"sub_parish_sogn" text,
"church_name" text,
"year_bu... |
SELECT COUNT("parish_prestegjeld") FROM "table1_178399_1" WHERE "church_name"='Vilnes kyrkje'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of parish for vilnes kyrkje`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_178399_1" (
"parish_prestegjeld" text,
"sub_parish_sokn" text,
"church_name" text,
... |
SELECT "parish_prestegjeld" FROM "table1_178399_1" WHERE "year_built"=1908; |
## Task
Generate a SQL query to answer the following question:
`Name the parish for 1908`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_178399_1" (
"parish_prestegjeld" text,
"sub_parish_sokn" text,
"church_name" text,
"year_built" real... |
SELECT MAX("year_built") FROM "table1_178399_1" WHERE "church_name"='Holmedal kyrkje'; |
## Task
Generate a SQL query to answer the following question:
`Name the maximum year built for holmedal kyrkje`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_178399_1" (
"parish_prestegjeld" text,
"sub_parish_sokn" text,
"church_name" te... |
SELECT MIN("week") FROM "schedule" WHERE "game_site"='Shea Stadium'; |
## Task
Generate a SQL query to answer the following question:
`What is the week where the game site is Shea Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_... |
SELECT "result" FROM "schedule" WHERE "week"=6; |
## Task
Generate a SQL query to answer the following question:
`For week 6, what were the results?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"reco... |
SELECT COUNT("week") FROM "schedule" WHERE "date"='November 3'; |
## Task
Generate a SQL query to answer the following question:
`In how many weeks was the game played on November 3 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
... |
SELECT "broadcast_date" FROM "serial_details_by_episode" WHERE "viewers_in_millions"='8.3'; |
## Task
Generate a SQL query to answer the following question:
`What is the broadcast date when 8.3 million viewers watched?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "serial_details_by_episode" (
"episode" text,
"broadcast_date" text,
"run_... |
SELECT "broadcast_date" FROM "serial_details_by_episode" WHERE "run_time"='25:12'; |
## Task
Generate a SQL query to answer the following question:
`What is the broadcast date of the episode with run time 25:12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "serial_details_by_episode" (
"episode" text,
"broadcast_date" text,
"ru... |
SELECT "viewers_in_millions" FROM "serial_details_by_episode" WHERE "run_time"='25:55'; |
## Task
Generate a SQL query to answer the following question:
`How many million viewers watched the episode that runs 25:55 minutes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "serial_details_by_episode" (
"episode" text,
"broadcast_date" text... |
SELECT "number_of_dances" FROM "average_score_chart" WHERE "couple"='Warren & Kym'; |
## Task
Generate a SQL query to answer the following question:
`How many dances did Warren & Kym have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_score_chart" (
"rank_by_average" real,
"place" real,
"couple" text,
"total_points" re... |
SELECT "total_points" FROM "average_score_chart" WHERE "average"='17.8'; |
## Task
Generate a SQL query to answer the following question:
`What are the total points for the team that averages 17.8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_score_chart" (
"rank_by_average" real,
"place" real,
"couple" text,... |
SELECT "average" FROM "average_score_chart" WHERE "couple"='Cody & Julianne'; |
## Task
Generate a SQL query to answer the following question:
`What is average for Cody & Julianne?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_score_chart" (
"rank_by_average" real,
"place" real,
"couple" text,
"total_points" real... |
SELECT "division_southwest" FROM "winners" WHERE "division_south"='Kožuf' AND "division_east"='Osogovo'; |
## Task
Generate a SQL query to answer the following question:
`what is the division southwest when division south was kožuf and division east was osogovo`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"season" text,
"division_north" te... |
SELECT "division_north" FROM "winners" WHERE "season"='2007–08'; |
## Task
Generate a SQL query to answer the following question:
`what is the division north in 2007–08`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"season" text,
"division_north" text,
"division_south" text,
"division_east" text,
... |
SELECT "division_north" FROM "winners" WHERE "division_south"='Kožuf' AND "division_southwest"='Ilinden Velmej'; |
## Task
Generate a SQL query to answer the following question:
`what is the division north when division south was kožuf and division southwest was ilinden velmej`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"season" text,
"division_n... |
SELECT COUNT("division_southwest") FROM "winners" WHERE "division_east"='Babi'; |
## Task
Generate a SQL query to answer the following question:
`how many division southwest was there when division east was babi`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"season" text,
"division_north" text,
"division_south" t... |
SELECT "division_east" FROM "winners" WHERE "division_north"='Milano'; |
## Task
Generate a SQL query to answer the following question:
`what is the division east when division north was milano`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"season" text,
"division_north" text,
"division_south" text,
"di... |
SELECT "written_by" FROM "table1_17901155_3" WHERE "no_in_season"=3; |
## Task
Generate a SQL query to answer the following question:
`who co-wrote Season 2, Episode 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17901155_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
... |
SELECT MAX("no_in_series") FROM "table1_17901155_3" WHERE "directed_by"='Kelly Sandefur'; |
## Task
Generate a SQL query to answer the following question:
`what is the series # for the episode directed by Kelly Sandefur?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17901155_3" (
"no_in_series" real,
"no_in_season" real,
"title... |
SELECT COUNT("prod_code") FROM "table1_17901155_3" WHERE "no_in_series"=32; |
## Task
Generate a SQL query to answer the following question:
`how many production codes were there for the episode that was 32 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_17901155_3" (
"no_in_series" real,
"no_in_season"... |
SELECT "year_ceremony" FROM "submissions" WHERE "original_title"='Milagros'; |
## Task
Generate a SQL query to answer the following question:
`What year was the film Milagros submitted?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title"... |
SELECT COUNT("year_ceremony") FROM "submissions" WHERE "film_title_used_in_nomination"='The Blossoming of Maximo Oliveros'; |
## Task
Generate a SQL query to answer the following question:
`How many years was the film The Blossoming of Maximo Oliveros entered?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nominati... |
SELECT COUNT("director") FROM "submissions" WHERE "original_title"='The Moises Padilla Story'; |
## Task
Generate a SQL query to answer the following question:
`How many directors were there for the film with the original title of The Moises Padilla Story?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"fi... |
SELECT "spacecraft" FROM "spaceports_with_achieved_vertical_launch" WHERE "launch_complex"='LC34'; |
## Task
Generate a SQL query to answer the following question:
`What spacecraft was launched from the LC34 launch complex? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "spaceports_with_achieved_vertical_launch" (
"spaceport" text,
"launch_comple... |
SELECT "spacecraft" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='22 Orbital'; |
## Task
Generate a SQL query to answer the following question:
`What spacecrafts had 22 orbital flights? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "spaceports_with_achieved_vertical_launch" (
"spaceport" text,
"launch_complex" text,
"launch... |
SELECT "launcher" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='37 Orbital'; |
## Task
Generate a SQL query to answer the following question:
`What launcher had spacecrafts that did 37 orbital flights? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "spaceports_with_achieved_vertical_launch" (
"spaceport" text,
"launch_comple... |
SELECT "launcher" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='37 Orbital'; |
## Task
Generate a SQL query to answer the following question:
`What launcher had spacecrafts that did 37 orbital flights? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "spaceports_with_achieved_vertical_launch" (
"spaceport" text,
"launch_comple... |
SELECT "years" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='134 Orbital'; |
## Task
Generate a SQL query to answer the following question:
`What years had 134 orbital flights? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "spaceports_with_achieved_vertical_launch" (
"spaceport" text,
"launch_complex" text,
"launcher" t... |
SELECT "country" FROM "table1_1792122_11" WHERE "title"='\"Amsterdam''s Futuristic Floating City\"'; |
## Task
Generate a SQL query to answer the following question:
`In what country did the "amsterdam's futuristic floating city" project take place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1792122_11" (
"no_in_series" real,
"no_in_sea... |
SELECT "status_at_production" FROM "table1_1792122_11" WHERE "project"='London Aquatics Centre'; |
## Task
Generate a SQL query to answer the following question:
`What is the status of the London Aquatics Centre project at the time of production?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1792122_11" (
"no_in_series" real,
"no_in_sea... |
SELECT "original_air_date" FROM "table1_1792122_11" WHERE "no_in_series"=71; |
## Task
Generate a SQL query to answer the following question:
`What was the original are date of series number 71?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1792122_11" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"co... |
SELECT MIN("no_in_series") FROM "table1_1792122_11" WHERE "title"='\"Rebuilding New York City''s Subway\"'; |
## Task
Generate a SQL query to answer the following question:
`What series number was the "rebuilding new york city's subway" project?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1792122_11" (
"no_in_series" real,
"no_in_season" real,
... |
SELECT "status_at_production" FROM "table1_1792122_11" WHERE "title"='\"Azerbaijan''s Amazing Transformation\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the status of the "azerbaijan's amazing transformation" project at the time of production?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1792122_11" (
"no_in_series" rea... |
SELECT "length" FROM "onshore_pipelines" WHERE "maximum_diameter"='450 mm'; |
## Task
Generate a SQL query to answer the following question:
`What is the length for a diameter totaling 450 mm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "onshore_pipelines" (
"name_year_commissioned" text,
"owner_operator" text,
"length"... |
SELECT "maximum_diameter" FROM "onshore_pipelines" WHERE "owner_operator"='Esperance Pipeline Co'; |
## Task
Generate a SQL query to answer the following question:
`What is Esperance pipeline co total diameter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "onshore_pipelines" (
"name_year_commissioned" text,
"owner_operator" text,
"length" text... |
SELECT "opponent" FROM "schedule" WHERE "date"='December 8'; |
## Task
Generate a SQL query to answer the following question:
`Name the opponent for december 8`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record... |
SELECT COUNT("week") FROM "schedule" WHERE "date"='October 26'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of weeks for october 26`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
... |
SELECT COUNT("attendance") FROM "schedule" WHERE "week"=6; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance record for week 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
... |
SELECT "result" FROM "schedule" WHERE "game_site"='Schaefer Stadium'; |
## Task
Generate a SQL query to answer the following question:
`For game site Schaefer Stadium, what were the results?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game... |
SELECT "outgoing_manage" FROM "managerial_changes" WHERE "incoming_manager"='João Pereira'; |
## Task
Generate a SQL query to answer the following question:
`Who was the outgoing manager when the incoming manager was joão pereira?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manage" text,
"m... |
SELECT "team" FROM "managerial_changes" WHERE "outgoing_manage"='João Alves'; |
## Task
Generate a SQL query to answer the following question:
`What team(s) had an outgoing manager of joão alves?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manage" text,
"manner" text,
"date_... |
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manage"='Bogićević'; |
## Task
Generate a SQL query to answer the following question:
`What day did the job open up when bogićević was outgoing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manage" text,
"manner" text,
... |
SELECT "0_100km_h_s" FROM "engines" WHERE "name"='2.0 8v'; |
## Task
Generate a SQL query to answer the following question:
`Name the 0-100 km/hs for name of 2.0 8v`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"name" text,
"volume" text,
"engine" text,
"fuel" text,
"output" text,
"torqu... |
SELECT "top_speed" FROM "engines" WHERE "0_100km_h_s"='12.7'; |
## Task
Generate a SQL query to answer the following question:
`Name the top speed for 0-100 km/hs for 12.7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"name" text,
"volume" text,
"engine" text,
"fuel" text,
"output" text,
"t... |
SELECT COUNT("co_2") FROM "engines" WHERE "engine_id_code_s"='ATD/AXR'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number for co 2 for atd/axr`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"name" text,
"volume" text,
"engine" text,
"fuel" text,
"output" text,
"to... |
SELECT "volume" FROM "engines" WHERE "co_2"='168 g/km'; |
## Task
Generate a SQL query to answer the following question:
`Name the volume for co 2 for 168 g/km`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"name" text,
"volume" text,
"engine" text,
"fuel" text,
"output" text,
"torque"... |
SELECT "tries_for" FROM "league_table" WHERE "tries_against"='60'; |
## Task
Generate a SQL query to answer the following question:
`When 60 is the tries against what is the tries for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" t... |
SELECT "lost" FROM "league_table" WHERE "tries_for"='22'; |
## Task
Generate a SQL query to answer the following question:
`When 22 is the tries for what is the lost?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"p... |
SELECT "club" FROM "league_table" WHERE "points"='98'; |
## Task
Generate a SQL query to answer the following question:
`When 98 is the points what is the club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"poin... |
SELECT "try_bonus" FROM "league_table" WHERE "tries_for"='80'; |
## Task
Generate a SQL query to answer the following question:
`When 80 is the tries for what is the try bonus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,... |
SELECT "lost" FROM "league_table" WHERE "tries_for"='55'; |
## Task
Generate a SQL query to answer the following question:
`When 55 is the tries for what is the lost?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"p... |
SELECT "points_against" FROM "league_table" WHERE "tries_for"='17'; |
## Task
Generate a SQL query to answer the following question:
`When 17 is the tries for what is the points against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" ... |
SELECT "drawn" FROM "league_table" WHERE "played"='Played'; |
## Task
Generate a SQL query to answer the following question:
`How many draws were there in played games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"p... |
SELECT "club" FROM "league_table" WHERE "drawn"='1' AND "won"='2'; |
## Task
Generate a SQL query to answer the following question:
`Which club had 2 wins and 1 draw?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for... |
SELECT "played" FROM "league_table" WHERE "tries_for"='56'; |
## Task
Generate a SQL query to answer the following question:
`How many times were there plays with a try of 56?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" tex... |
SELECT "tries_against" FROM "league_table" WHERE "points_for"='150'; |
## Task
Generate a SQL query to answer the following question:
`How many tries against were there with points of 150?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.