output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "fourth_place" FROM "yearly_results" WHERE "year"=1966; |
## Task
Generate a SQL query to answer the following question:
`What is the Fourth place with a Year that is 1966?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "yearly_results" (
"year" real,
"champion" text,
"runner_up" text,
"third_place" t... |
SELECT "champion" FROM "yearly_results" WHERE "year"=2008; |
## Task
Generate a SQL query to answer the following question:
`What is the Champion with a Year that is 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "yearly_results" (
"year" real,
"champion" text,
"runner_up" text,
"third_place" text,... |
SELECT "opponent" FROM "schedule" WHERE "date"='september 19, 1994'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent for the game played on September 19, 1994?`
### 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 COUNT("week") FROM "schedule" WHERE "attendance"='50,814'; |
## Task
Generate a SQL query to answer the following question:
`In which week was attendance at 50,814?`
### 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,
"attendance" text
);... |
SELECT "date" FROM "schedule" WHERE "week">6 AND "attendance"='bye'; |
## Task
Generate a SQL query to answer the following question:
`What date after Week 6 was a Bye?`
### 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,
"attendance" text
);
### S... |
SELECT "subjunctive" FROM "grammar" WHERE "inverse_subjunctive"='måchadns'; |
## Task
Generate a SQL query to answer the following question:
`What subjunctive also has an inverse subjunctive of måchadns?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grammar" (
"m_cha" text,
"indicative" text,
"imperative" text,
"subjun... |
SELECT "imperative" FROM "grammar" WHERE "m_cha"='3.sg'; |
## Task
Generate a SQL query to answer the following question:
`What imperative has måcha as 3.sg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grammar" (
"m_cha" text,
"indicative" text,
"imperative" text,
"subjunctive" text,
"inverse_sub... |
SELECT "inverse_subjunctive" FROM "grammar" WHERE "indicative"='si måchan'; |
## Task
Generate a SQL query to answer the following question:
`The indicative of si måchan has what as the inverse subjunctive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grammar" (
"m_cha" text,
"indicative" text,
"imperative" text,
"sub... |
SELECT "inverse_subjunctive" FROM "grammar" WHERE "imperative"='—' AND "subjunctive"='se måchadn'; |
## Task
Generate a SQL query to answer the following question:
`What inverse subjunctive has — as the imperative and a subjunctive of se måchadn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grammar" (
"m_cha" text,
"indicative" text,
"imperat... |
SELECT "imperative" FROM "grammar" WHERE "subjunctive"='du måchast'; |
## Task
Generate a SQL query to answer the following question:
`With a subjunctive of du måchast what is the imperative?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grammar" (
"m_cha" text,
"indicative" text,
"imperative" text,
"subjunctive... |
SELECT "subjunctive" FROM "grammar" WHERE "indicative"='se måchan(t)'; |
## Task
Generate a SQL query to answer the following question:
`What subjunctive has the indicative of se måchan(t)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grammar" (
"m_cha" text,
"indicative" text,
"imperative" text,
"subjunctive" te... |
SELECT AVG("win_pct") FROM "result_summary" WHERE "span"='2011–2013' AND "lost"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the Win % in the Span of 2011–2013 with a Lost of less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "result_summary" (
"opposition" text,
"span" text,
"lost" real,
... |
SELECT COUNT("tied") FROM "result_summary" WHERE "span"='2011–2013' AND "win_pct"<80; |
## Task
Generate a SQL query to answer the following question:
`How many games were Tied during the Span of 2011–2013 with a less than 80% Win %?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "result_summary" (
"opposition" text,
"span" text,
"l... |
SELECT MAX("capacity") FROM "brazil_s_20_busiest_airports_by_passenge" WHERE "annual_change"='13.14%' AND "total_passengers">'15,499,462'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Capacity that has 13.14% Annual change and Total Passengers larger than 15,499,462?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazil_s_20_busiest_airports_by_pass... |
SELECT "annual_change" FROM "brazil_s_20_busiest_airports_by_passenge" WHERE "capacity_in_use"='66.21%'; |
## Task
Generate a SQL query to answer the following question:
`Which Annual change has a Capacity in use of 66.21%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazil_s_20_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total_... |
SELECT COUNT("rank") FROM "brazil_s_20_busiest_airports_by_passenge" WHERE "total_passengers"='15,499,462'; |
## Task
Generate a SQL query to answer the following question:
`Which Rank that has a Total Passengers of 15,499,462?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazil_s_20_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total... |
SELECT AVG("capacity") FROM "brazil_s_20_busiest_airports_by_passenge" WHERE "annual_change"='53.4%' AND "total_passengers"<'7,822,848'; |
## Task
Generate a SQL query to answer the following question:
`How many Capacity has a Annual change of 53.4% and Total Passengers smaller than 7,822,848?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazil_s_20_busiest_airports_by_passenge" (
"r... |
SELECT "date_of_issue" FROM "the_sheets" WHERE "place_of_issue"='tallahassee, florida'; |
## Task
Generate a SQL query to answer the following question:
`On what date were sheets issued in Tallahassee, Florida?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_sheets" (
"ecosystem" text,
"date_of_issue" text,
"place_of_issue" text,
... |
SELECT "printer" FROM "the_sheets" WHERE "date_of_issue"='october 5, 2006'; |
## Task
Generate a SQL query to answer the following question:
`Which printer issued sheets on October 5, 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_sheets" (
"ecosystem" text,
"date_of_issue" text,
"place_of_issue" text,
"no_sta... |
SELECT MIN("silver") FROM "medal_table" WHERE "bronze">1 AND "nation"='total' AND "total">18; |
## Task
Generate a SQL query to answer the following question:
`What is the least amount of silver medals won by Total with more than 1 bronze and more than 18 total medals won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" te... |
SELECT COUNT("position") FROM "campeonato_paulista" WHERE "against"<28 AND "team"='americano-sp' AND "played">8; |
## Task
Generate a SQL query to answer the following question:
`How many positions have points against less than 28, americano-sp as the team, with a played greater than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"posit... |
SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "against"<15; |
## Task
Generate a SQL query to answer the following question:
`How many losses have points against less than 15?`
### 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" real,... |
SELECT AVG("played") FROM "campeonato_paulista" WHERE "against"<15; |
## Task
Generate a SQL query to answer the following question:
`What average played has an against less than 15?`
### 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" real,
... |
SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "played">8 AND "team"='ypiranga-sp' AND "position">5; |
## Task
Generate a SQL query to answer the following question:
`How many losses have a played greater than 8, ypiranga-sp as the team, with a position greater than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" r... |
SELECT "lost" FROM "campeonato_paulista" WHERE "position">2 AND "drawn">0 AND "against">15; |
## Task
Generate a SQL query to answer the following question:
`What lost has a position greater than 2, a drawn greater than 0, with an against greater than 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
... |
SELECT SUM("white_pct") FROM "ethnicities_by_region" WHERE "black_pct"<'5,8' AND "asian_or_amerindian_pct"<'0,2'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of White (%), when Black (%) is less than 5,8, and when Asian or Amerindian (%) is less than 0,2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ethnicities_by_region" (
... |
SELECT SUM("asian_or_amerindian_pct") FROM "ethnicities_by_region" WHERE "state"='sergipe' AND "brown_pct">'61,3'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Asian or Amerindian (%), when State is Sergipe, and when Brown (%) is greater than 61,3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ethnicities_by_region" (
"stat... |
SELECT COUNT("white_pct") FROM "ethnicities_by_region" WHERE "brown_pct"<'54,6' AND "asian_or_amerindian_pct">'1,3' AND "black_pct"<'5,3'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of White (%), when Brown (%) is less than 54,6, when Asian or Amerindian (%) is greater than 1,3, and when Black (%) is less than 5,3?`
### Database Schema
This query will run on a database whose schema is represented in this str... |
SELECT SUM("asian_or_amerindian_pct") FROM "ethnicities_by_region" WHERE "black_pct"='9,7' AND "white_pct">'45,7'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Asian or Amerindian (%), when Black (%) is 9,7, and when White (%) is greater than 45,7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ethnicities_by_region" (
"stat... |
SELECT COUNT("points") FROM "first_league" WHERE "lost">6 AND "match"<14; |
## Task
Generate a SQL query to answer the following question:
`How many points were there when there more than 6 losses and less than 14 matches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_league" (
"team" text,
"match" real,
"points"... |
SELECT MIN("lost") FROM "first_league" WHERE "points">23; |
## Task
Generate a SQL query to answer the following question:
`How few losses were the least number of losses and points higher than 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_league" (
"team" text,
"match" real,
"points" real,
... |
SELECT MAX("match") FROM "first_league" WHERE "points">18 AND "draw">1; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of matches with more than 18 points and more than 1 draw?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_league" (
"team" text,
"match" real,
"point... |
SELECT "champion" FROM "winners" WHERE "runner_up"='dick chapman' AND "venue"='st. andrews links'; |
## Task
Generate a SQL query to answer the following question:
`Who was the champion in the game played at the St. Andrews Links with Dick Chapman as the runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"venue" tex... |
SELECT "score" FROM "winners" WHERE "venue"='royal liverpool golf club' AND "champion"='willie hunter'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the match won by Willie Hunter at the Royal Liverpool Golf Club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"venue" text,
"champion"... |
SELECT "runner_up" FROM "winners" WHERE "country"='england' AND "venue"='royal porthcawl golf club'; |
## Task
Generate a SQL query to answer the following question:
`What player from England was the runner-up at the match played at the Royal Porthcawl Golf Club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"venue" text,
... |
SELECT "champion" FROM "winners" WHERE "runner_up"='c.a. palmer'; |
## Task
Generate a SQL query to answer the following question:
`Who was the champion in the match where C.A. Palmer was the runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"venue" text,
"champion" text,
"count... |
SELECT "champion" FROM "winners" WHERE "runner_up"='e.a. lassen'; |
## Task
Generate a SQL query to answer the following question:
`What player was the champion in the match where E.A. Lassen was the runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" text,
"venue" text,
"champion" text,
... |
SELECT "score" FROM "winners" WHERE "country"='england' AND "champion"='peter mcevoy' AND "runner_up"='paul mckellar'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the match played in England where Peter McEvoy was the champion and Paul McKellar was runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" te... |
SELECT "federal_state" FROM "federal_representation" WHERE "representatives_of_national_average"='6'; |
## Task
Generate a SQL query to answer the following question:
`Which federal state has 6 representatives of national average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "federal_representation" (
"federal_state" text,
"number_of_members" real,... |
SELECT "population_on_the_census_also_called_censo_2010" FROM "federal_representation" WHERE "deputies_required_ignoring_the_limits"<-6; |
## Task
Generate a SQL query to answer the following question:
`According to the 2010 census, what was the population for the federal state that had less than -6 deputies required ignoring the limits?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fed... |
SELECT MIN("block") FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "height"=206 AND "spike">356; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of blocks for players with height of 206 and more than 356 spikes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" (
"... |
SELECT COUNT("weight") FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "block"=340 AND "spike">353; |
## Task
Generate a SQL query to answer the following question:
`What is the number of weight values associated with 340 blocks and more than 353 spikes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" (
"name... |
SELECT "award" FROM "men" WHERE "actor"='forest whitaker' AND "year"=1989; |
## Task
Generate a SQL query to answer the following question:
`What award did Forest Whitaker win in 1989?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"year" real,
"actor" text,
"award" text,
"motion_picture" text,
"result" text
)... |
SELECT "motion_picture" FROM "men" WHERE "award"='best supporting actor' AND "actor"='samuel l. jackson' AND "year"<1997; |
## Task
Generate a SQL query to answer the following question:
`For what motion picture did Samuel L. Jackson win the best supporting actor award before 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"year" real,
"actor" text,
"awar... |
SELECT "actor" FROM "men" WHERE "year"=1966; |
## Task
Generate a SQL query to answer the following question:
`Which actor won in 1966?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"year" real,
"actor" text,
"award" text,
"motion_picture" text,
"result" text
);
### SQL
Given the... |
SELECT MIN("population_millions") FROM "nice_system" WHERE "inhabitants_per_mep"<'414,538' AND "influence"=2.06 AND "me_ps"<13; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest population in millions that has inhabitants per MEP less than 414,538, and an influence of 2.06, and MEPs less than 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "n... |
SELECT MIN("influence") FROM "nice_system" WHERE "population_millions"<60.64 AND "me_ps"<22 AND "inhabitants_per_mep"='454,059'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest influence with population in the millions less than 60.64, and MEPs less than 22, and 454,059 inhabitant per MEP?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nice_sy... |
SELECT MAX("population_millions") FROM "nice_system" WHERE "influence"=1.02; |
## Task
Generate a SQL query to answer the following question:
`What is the highest population in the millions that has an influence of 1.02?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nice_system" (
"member_state" text,
"population_millions" ... |
SELECT COUNT("me_ps") FROM "nice_system" WHERE "inhabitants_per_mep"='465,955' AND "influence"<1.79; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of MEPs that has 465,955 inhabitants per MEP and an influence smaller than 1.79?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nice_system" (
"member_state" te... |
SELECT SUM("population_millions") FROM "nice_system" WHERE "influence"<2.91 AND "me_ps"<13 AND "member_state"='latvia' AND "inhabitants_per_mep">'286,875'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the population in millions that has an influence less than 2.91, a MEP smaller than 13, a member of Latvia, and more than 286,875 inhabitants per MEP?`
### Database Schema
This query will run on a database whose schema is represented i... |
SELECT MAX("inhabitants_per_mep") FROM "nice_system" WHERE "me_ps">50 AND "member_state"='germany' AND "population_millions"<82.43; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of inhabitants per MEP that has MEPs larger than 50, a member of Germany, and a population less than 82.43 million?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABL... |
SELECT "world_rank" FROM "200_meters" WHERE "year"<1977 AND "location"='eugene'; |
## Task
Generate a SQL query to answer the following question:
`Which World Rank has a Year smaller than 1977, and a Location of eugene?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "200_meters" (
"year" real,
"result" real,
"world_rank" text,
... |
SELECT MIN("year") FROM "200_meters" WHERE "world_rank"='5th' AND "result">20.31; |
## Task
Generate a SQL query to answer the following question:
`What's the lowest Year with a World Rank of 5th, with a Result greater than 20.31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "200_meters" (
"year" real,
"result" real,
"world_ra... |
SELECT SUM("year") FROM "200_meters" WHERE "result"<20.26 AND "location"='eugene'; |
## Task
Generate a SQL query to answer the following question:
`Which Year has a Result smaller than 20.26, and a Location of eugene?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "200_meters" (
"year" real,
"result" real,
"world_rank" text,
"... |
SELECT COUNT("result") FROM "200_meters" WHERE "location"='brussels'; |
## Task
Generate a SQL query to answer the following question:
`What is the Result with a Location of brussels?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "200_meters" (
"year" real,
"result" real,
"world_rank" text,
"location" text,
"dat... |
SELECT AVG("year") FROM "200_meters" WHERE "result"<20.31 AND "world_rank"='5th'; |
## Task
Generate a SQL query to answer the following question:
`What Year has a Result smaller than 20.31, and a World Rank of 5th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "200_meters" (
"year" real,
"result" real,
"world_rank" text,
"lo... |
SELECT "record" FROM "january" WHERE "home"='nuggets'; |
## Task
Generate a SQL query to answer the following question:
`What is the record when the Nuggets are the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading... |
SELECT MIN("points") FROM "gp3_series" WHERE "races">16; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of points for Drivers that have raced in more than 16 Races?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gp3_series" (
"year" real,
"drivers" text,
"rac... |
SELECT MIN("races") FROM "gp3_series" WHERE "points"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the least number of Races for a Racer with less than 0 Points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gp3_series" (
"year" real,
"drivers" text,
"races" real,
"win... |
SELECT AVG("year") FROM "gp3_series" WHERE "poles"<2 AND "fast_laps"=0 AND "drivers"='adrian quaife-hobbs'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Year during which the Driver Adrian Quaife-Hobbs has fewer than 2 Poles, and 0 Fast laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gp3_series" (
"year" real,
... |
SELECT "city_of_license_market" FROM "television_stations" WHERE "station"='kpix'; |
## Task
Generate a SQL query to answer the following question:
`Which city contains the KPIX station?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television_stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"y... |
SELECT "station" FROM "television_stations" WHERE "channel_tv_dt"='3 (26)'; |
## Task
Generate a SQL query to answer the following question:
`Which station has channel TV (DT) of 3 (26)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television_stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" tex... |
SELECT "current_affiliation" FROM "television_stations" WHERE "years_owned"='1955–1995'; |
## Task
Generate a SQL query to answer the following question:
`What is the current affiliation when the years owned is between 1955–1995?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television_stations" (
"city_of_license_market" text,
"statio... |
SELECT "city_of_license_market" FROM "television_stations" WHERE "station"='kdka-tv'; |
## Task
Generate a SQL query to answer the following question:
`What is the city containing the KDKA-TV station?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television_stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt"... |
SELECT "channel_tv_dt" FROM "television_stations" WHERE "city_of_license_market"='baltimore'; |
## Task
Generate a SQL query to answer the following question:
`Which Channel TV is located in Baltimore?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "television_stations" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
... |
SELECT MIN("play_offs") FROM "topscorers_in_order_of_league_goals" WHERE "fa_cup"=2; |
## Task
Generate a SQL query to answer the following question:
`What is the least number of goals scored in the play-offs among the players that have scored 2 in the FA Cup?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "topscorers_in_order_of_league_... |
SELECT AVG("fa_cup") FROM "topscorers_in_order_of_league_goals" WHERE "total">20 AND "fa_trophy"<1 AND "league"<25; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of goals scored in the FA Cup among players that have more than 20 total goals, less than 1 FA Trophy goals, and less than 25 league goals?`
### Database Schema
This query will run on a database whose schema is represented in t... |
SELECT "lat_lon" FROM "u_s_unmanned_soft_landings_1966_1968" WHERE "u_s_mission"='surveyor 3'; |
## Task
Generate a SQL query to answer the following question:
`What is the latitude and longitude for Surveyor 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_unmanned_soft_landings_1966_1968" (
"u_s_mission" text,
"mass_kg" real,
"booste... |
SELECT MAX("mass_kg") FROM "u_s_unmanned_soft_landings_1966_1968" WHERE "landing_zone"='tycho crater'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest mass for Tycho Crater?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_unmanned_soft_landings_1966_1968" (
"u_s_mission" text,
"mass_kg" real,
"booster" text,... |
SELECT "field" FROM "list_of_geothermal_power_stations" WHERE "commissioned"='1958, 2005'; |
## Task
Generate a SQL query to answer the following question:
`What Field was Commissioned in 1958, 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_geothermal_power_stations" (
"name" text,
"location" text,
"field" text,
"capacit... |
SELECT "annual_generation_average_g_wh" FROM "list_of_geothermal_power_stations" WHERE "name"='kawerau (bope)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Annual Generation at Kawerau (Bope)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_geothermal_power_stations" (
"name" text,
"location" text,
"field" text,
"c... |
SELECT "name" FROM "list_of_geothermal_power_stations" WHERE "capacity_mw"=25; |
## Task
Generate a SQL query to answer the following question:
`What is the Name of the power station with a Capacity of 25 MW?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_geothermal_power_stations" (
"name" text,
"location" text,
"fi... |
SELECT "name" FROM "list_of_geothermal_power_stations" WHERE "field"='mokai'; |
## Task
Generate a SQL query to answer the following question:
`What is the Name of the power station in the Field of Mokai?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_geothermal_power_stations" (
"name" text,
"location" text,
"field... |
SELECT "goals" FROM "national_team" WHERE "gp_gs"='did not play' AND "year"='2004'; |
## Task
Generate a SQL query to answer the following question:
`How many goals were scored in 2004 when the gp/gs was "did not play"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_team" (
"year" text,
"gp_gs" text,
"goals" text,
"ass... |
SELECT "assists" FROM "national_team" WHERE "total_points"='2'; |
## Task
Generate a SQL query to answer the following question:
`How many assists were there when the total points was 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_team" (
"year" text,
"gp_gs" text,
"goals" text,
"assists" text,
... |
SELECT "total_points" FROM "national_team" WHERE "assists"='7'; |
## Task
Generate a SQL query to answer the following question:
`What was the total number of points when there were 7 assists?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_team" (
"year" text,
"gp_gs" text,
"goals" text,
"assists" t... |
SELECT "gp_gs" FROM "national_team" WHERE "assists"='1'; |
## Task
Generate a SQL query to answer the following question:
`What was the gp/gs when the assists was 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_team" (
"year" text,
"gp_gs" text,
"goals" text,
"assists" text,
"total_points... |
SELECT "gp_gs" FROM "national_team" WHERE "total_points"='did not play' AND "year"='2003'; |
## Task
Generate a SQL query to answer the following question:
`what was the gp/gs in 2003 when the total points was "did not play"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_team" (
"year" text,
"gp_gs" text,
"goals" text,
"assi... |
SELECT "outcome" FROM "doubles_titles_17" WHERE "partner"='jan pisecky'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome for Jan Pisecky and his partner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_titles_17" (
"outcome" text,
"date" real,
"tournament" text,
"partner"... |
SELECT "player" FROM "contestants" WHERE "weight"=235; |
## Task
Generate a SQL query to answer the following question:
`What player weight 235?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"pos" text,
"player" text,
"team" text,
"height" text,
"weight" real
);
### SQL
Given the d... |
SELECT "height" FROM "contestants" WHERE "pos"='f' AND "weight"<195; |
## Task
Generate a SQL query to answer the following question:
`What is the height of the F who weighs less than 195?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"pos" text,
"player" text,
"team" text,
"height" text,
"weigh... |
SELECT "team" FROM "contestants" WHERE "pos"='f' AND "player"='trey gilder'; |
## Task
Generate a SQL query to answer the following question:
`What team does F Trey Gilder play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"pos" text,
"player" text,
"team" text,
"height" text,
"weight" real
);
### ... |
SELECT "player" FROM "contestants" WHERE "team"='dakota wizards'; |
## Task
Generate a SQL query to answer the following question:
`What player plays for the Dakota Wizards?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"pos" text,
"player" text,
"team" text,
"height" text,
"weight" real
);
#... |
SELECT "player" FROM "contestants" WHERE "weight"=210 AND "team"='reno bighorns'; |
## Task
Generate a SQL query to answer the following question:
`Which player who weighs 210 plays for the Reno Bighorns?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"pos" text,
"player" text,
"team" text,
"height" text,
"we... |
SELECT "pos" FROM "contestants" WHERE "player"='brian butch'; |
## Task
Generate a SQL query to answer the following question:
`What position does Brian Butch play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"pos" text,
"player" text,
"team" text,
"height" text,
"weight" real
);
### SQ... |
SELECT "position" FROM "l" WHERE "player"='tyronn lue' AND "years_in_orlando"='2003–2004'; |
## Task
Generate a SQL query to answer the following question:
`Which Position has a Player of tyronn lue, and a Years in Orlando of 2003–2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" tex... |
SELECT "school_club_team" FROM "l" WHERE "player"='deandre liggins'; |
## Task
Generate a SQL query to answer the following question:
`Which School/Club Team has a Player of deandre liggins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" ... |
SELECT "position" FROM "l" WHERE "years_in_orlando"='1997–1998'; |
## Task
Generate a SQL query to answer the following question:
`Which Position has a Years in Orlando of 1997–1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text... |
SELECT "position" FROM "l" WHERE "school_club_team"='stanford'; |
## Task
Generate a SQL query to answer the following question:
`Which Position has a School/Club Team of stanford?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,... |
SELECT "school_club_team" FROM "l" WHERE "years_in_orlando"='1997–1998'; |
## Task
Generate a SQL query to answer the following question:
`Which School/Club Team has a Years in Orlando of 1997–1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlan... |
SELECT "position" FROM "l" WHERE "years_in_orlando"='2003–2004'; |
## Task
Generate a SQL query to answer the following question:
`Which Position has a Years in Orlando of 2003–2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text... |
SELECT "high_assists" FROM "game_log" WHERE "date"='february 27'; |
## Task
Generate a SQL query to answer the following question:
`What is the High assists with a Date that is february 27?`
### 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_p... |
SELECT "high_points" FROM "game_log" WHERE "game"=56; |
## Task
Generate a SQL query to answer the following question:
`What is the High points with a Game that is 56?`
### 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" tex... |
SELECT "distance" FROM "2007_08_season_as_a_three_year_old" WHERE "venue"='sale'; |
## Task
Generate a SQL query to answer the following question:
`In what Distance has a Venue of sale?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_08_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
... |
SELECT "winner_2nd" FROM "2007_08_season_as_a_three_year_old" WHERE "jockey"='c. symons'; |
## Task
Generate a SQL query to answer the following question:
`WHo is Winner/2nd that has c. symons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_08_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
... |
SELECT "race" FROM "2007_08_season_as_a_three_year_old" WHERE "jockey"='d. nikolic'; |
## Task
Generate a SQL query to answer the following question:
`Which Race that Jockey of d. nikolic is in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_08_season_as_a_three_year_old" (
"result" text,
"date" text,
"race" text,
"venue" t... |
SELECT "result" FROM "2007_08_season_as_a_three_year_old" WHERE "distance"='1200m' AND "weight_kg"=55.5; |
## Task
Generate a SQL query to answer the following question:
`Name The Result that has a Distance of 1200m, and a Weight (kg) of 55.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_08_season_as_a_three_year_old" (
"result" text,
"date" tex... |
SELECT "previous_team" FROM "selections" WHERE "nationality"='united states' AND "nba_years_a"=2 AND "pos"='f'; |
## Task
Generate a SQL query to answer the following question:
`What is the previous team of the United States player who had 2 NBA years and played the F position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "selections" (
"pos" text,
"national... |
SELECT "team" FROM "playoffs" WHERE "score"='108-107'; |
## Task
Generate a SQL query to answer the following question:
`Which Team has a Score of 108-107?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
... |
SELECT "record" FROM "playoffs" WHERE "date"='may 31'; |
## Task
Generate a SQL query to answer the following question:
`Which Record has a Date of may 31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.