output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "power" FROM "s_rebroadcaster_of_cbqt_fm" WHERE "city_of_license"='sioux lookout'; |
## Task
Generate a SQL query to answer the following question:
`What is Power, when City of License is Sioux Lookout?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_rebroadcaster_of_cbqt_fm" (
"city_of_license" text,
"identifier" text,
"freque... |
SELECT "identifier" FROM "s_rebroadcaster_of_cbqt_fm" WHERE "city_of_license"='hornepayne'; |
## Task
Generate a SQL query to answer the following question:
`What is Identifier, when City of License is Hornepayne?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_rebroadcaster_of_cbqt_fm" (
"city_of_license" text,
"identifier" text,
"freq... |
SELECT "city_of_license" FROM "s_rebroadcaster_of_cbqt_fm" WHERE "frequency"='101.1'; |
## Task
Generate a SQL query to answer the following question:
`What is City of License, when Frequency is 101.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s_rebroadcaster_of_cbqt_fm" (
"city_of_license" text,
"identifier" text,
"frequency"... |
SELECT "le_5_model" FROM "le_5_model_specifications" WHERE "le_5_a"='130'; |
## Task
Generate a SQL query to answer the following question:
`Which LE-5 Model has an LE-5A of 130?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "le_5_model_specifications" (
"le_5_model" text,
"le_5" text,
"le_5_a" text,
"le_5_b" text,
"... |
SELECT "series" FROM "career_summary" WHERE "races"=14 AND "position"='12th'; |
## Task
Generate a SQL query to answer the following question:
`What Series had 14 races and 12th position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real... |
SELECT "season" FROM "career_summary" WHERE "series"='formula bmw usa'; |
## Task
Generate a SQL query to answer the following question:
`What season was the Formula BMW USA in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real,
... |
SELECT "series" FROM "career_summary" WHERE "podiums">10; |
## Task
Generate a SQL query to answer the following question:
`What series had more than 10 Podiums?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real,
"p... |
SELECT "status" FROM "newly_named_dinosaurs" WHERE "authors"='colbert'; |
## Task
Generate a SQL query to answer the following question:
`What is the Status with an Author that is colbert?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" te... |
SELECT "college" FROM "round_3" WHERE "pick">18 AND "pba_team"='barangay ginebra kings'; |
## Task
Generate a SQL query to answer the following question:
`What college was the draft pick number larger than 18 that went to the Barangay ginebra kings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"pick" real,
"player" text,
... |
SELECT SUM("pick") FROM "round_3" WHERE "pba_team"='san miguel beermen' AND "college"='san sebastian'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the pick numbers for the player that went to San Miguel Beermen who played at San Sebastian?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"pick" real,
... |
SELECT COUNT("pick") FROM "round_3" WHERE "pba_team"='san miguel beermen' AND "player"='rommel daep'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of picks for PBA team san miguel beermen who picked rommel daep?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"pick" real,
"player" text,
"coun... |
SELECT "player" FROM "round_3" WHERE "country_of_origin"='united states' AND "college"='ohlone'; |
## Task
Generate a SQL query to answer the following question:
`What player came from the United States and went to Ohlone college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"pick" real,
"player" text,
"country_of_origin" text,
... |
SELECT "champions" FROM "results" WHERE "year">1999 AND "runners_up"='changwon lg sakers'; |
## Task
Generate a SQL query to answer the following question:
`Who won after 1999 with changwon lg sakers as runners-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"champions" text,
"result" text,
"runners_up" text... |
SELECT "result" FROM "results" WHERE "year">2007 AND "runners_up"='seoul samsung thunders' AND "champions"='jeonju kcc egis'; |
## Task
Generate a SQL query to answer the following question:
`What is the result for the champions jeonju kcc egis with runners-up seoul samsung thunders after 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"champio... |
SELECT "winning_team" FROM "results" WHERE "year"=2013; |
## Task
Generate a SQL query to answer the following question:
`What was the winning team in 2013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"venue" text,
"winning_team" text,
"score" text,
"usa_captain" text,
... |
SELECT MAX("year") FROM "results" WHERE "winning_team"='europe' AND "usa_captain"='kathy whitworth'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest year that Europe won, when the USA's Captain was Kathy Whitworth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"venue" text,
"winning_t... |
SELECT "winning_team" FROM "results" WHERE "usa_captain"='beth daniel'; |
## Task
Generate a SQL query to answer the following question:
`When the USA's captain was Beth Daniel, who was the winning team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"venue" text,
"winning_team" text,
"score"... |
SELECT "season" FROM "season_by_season" WHERE "league"='bundesliga' AND "european_competitions"='played korac cup'; |
## Task
Generate a SQL query to answer the following question:
`What is the Season when league shows bundesliga, and a European competition of played korac cup?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season" (
"season" text,
"tie... |
SELECT AVG("tier") FROM "season_by_season" WHERE "postseason"='–' AND "season"='2012–13'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Tier when the postseason shows -, and the season is 2012–13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season" (
"season" text,
"tier" real,
"leag... |
SELECT "european_competitions" FROM "season_by_season" WHERE "tier">2; |
## Task
Generate a SQL query to answer the following question:
`What is the European competition when the tier is more than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season" (
"season" text,
"tier" real,
"league" text,
"posts... |
SELECT "outcome" FROM "singles_7_4_titles_3_runner_ups" WHERE "surface"='grass'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the match played on grass?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_7_4_titles_3_runner_ups" (
"outcome" text,
"date_final" text,
"tournament" ... |
SELECT "outcome" FROM "singles_7_4_titles_3_runner_ups" WHERE "date_final"='february 17, 2003'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the match on February 17, 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_7_4_titles_3_runner_ups" (
"outcome" text,
"date_final" text,
"tournam... |
SELECT AVG("wins") FROM "group_b" WHERE "team"='usa'; |
## Task
Generate a SQL query to answer the following question:
`How many average wins have USA as the team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b" (
"pos" real,
"team" text,
"wins" real,
"ties" real,
"losses" real,
"goals"... |
SELECT AVG("wins") FROM "group_b" WHERE "team"='great britain'; |
## Task
Generate a SQL query to answer the following question:
`What are the average wins that have great britain as the team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b" (
"pos" real,
"team" text,
"wins" real,
"ties" real,
"loss... |
SELECT AVG("pick_num") FROM "nfl_draft" WHERE "college"='carson-newman' AND "round"<7; |
## Task
Generate a SQL query to answer the following question:
`What's the average draft pick number from Carson-Newman College before Round 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" t... |
SELECT "college" FROM "nfl_draft" WHERE "pick_num"=155; |
## Task
Generate a SQL query to answer the following question:
`Which college has a pick number of 155?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text... |
SELECT "score_in_the_final" FROM "itf_circuit_doubles_9_4_5" WHERE "date"='november 3, 2002'; |
## Task
Generate a SQL query to answer the following question:
`What score in the final has november 3, 2002 as the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "itf_circuit_doubles_9_4_5" (
"outcome" text,
"date" text,
"tournament" text,... |
SELECT "surface" FROM "itf_circuit_doubles_9_4_5" WHERE "partner"='natalia gussoni'; |
## Task
Generate a SQL query to answer the following question:
`What surface has natalia gussoni as the partner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "itf_circuit_doubles_9_4_5" (
"outcome" text,
"date" text,
"tournament" text,
"surfa... |
SELECT "outcome" FROM "itf_circuit_doubles_9_4_5" WHERE "date"='september 23, 2013'; |
## Task
Generate a SQL query to answer the following question:
`What outcome has September 23, 2013 as the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "itf_circuit_doubles_9_4_5" (
"outcome" text,
"date" text,
"tournament" text,
"surfa... |
SELECT "score_in_the_final" FROM "itf_circuit_doubles_9_4_5" WHERE "surface"='hard' AND "date"='june 13, 2011'; |
## Task
Generate a SQL query to answer the following question:
`What score in the final has hard as the surface, and june 13, 2011 as the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "itf_circuit_doubles_9_4_5" (
"outcome" text,
"date" text... |
SELECT "date" FROM "itf_circuit_doubles_9_4_5" WHERE "partner"='elke clijsters'; |
## Task
Generate a SQL query to answer the following question:
`What date has elke clijsters as the partner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "itf_circuit_doubles_9_4_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" ... |
SELECT "round" FROM "calendar" WHERE "prize_money"='£120,000'; |
## Task
Generate a SQL query to answer the following question:
`What is the Round with a Prize of money that is £120,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" text,
"date_weekend_of" text,
"matches" real,
"clubs" ... |
SELECT "matches" FROM "calendar" WHERE "prize_money"='£1,000,000'; |
## Task
Generate a SQL query to answer the following question:
`What is the Match with a Prize of money that is £1,000,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" text,
"date_weekend_of" text,
"matches" real,
"clubs... |
SELECT "role" FROM "film" WHERE "title"='alvin and the chipmunks meet frankenstein'; |
## Task
Generate a SQL query to answer the following question:
`When alvin and the chipmunks meet frankenstein, what was the role?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "film" (
"year" real,
"title" text,
"producer" text,
"actor" text,... |
SELECT MIN("year") FROM "film" WHERE "role"='alvin seville simon seville david ''dave'' seville' AND "title"='alvin and the chipmunks meet the wolfman'; |
## Task
Generate a SQL query to answer the following question:
`What's the earliest year with a role of alvin seville simon seville david 'dave' seville, and a Title of alvin and the chipmunks meet the wolfman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE ... |
SELECT AVG("year") FROM "film" WHERE "role"='alvin seville simon seville david ''dave'' seville' AND "title"='the chipmunk adventure'; |
## Task
Generate a SQL query to answer the following question:
`What's the average year for the Role of alvin seville simon seville david 'dave' seville, and a Title of the chipmunk adventure?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "film" (
"... |
SELECT "role" FROM "film" WHERE "title"='the chipmunk adventure'; |
## Task
Generate a SQL query to answer the following question:
`What was the role in the chipmunk adventure?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "film" (
"year" real,
"title" text,
"producer" text,
"actor" text,
"role" text
);
### ... |
SELECT "role" FROM "film" WHERE "year"=2007; |
## Task
Generate a SQL query to answer the following question:
`What role was played in 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "film" (
"year" real,
"title" text,
"producer" text,
"actor" text,
"role" text
);
### SQL
Given the d... |
SELECT COUNT("points") FROM "indy_car_series" WHERE "engine"='chevrolet' AND "team"='kv racing technology'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of points for the KV Racing Technology team when they use a chevrolet engine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_car_series" (
"year" real,
"... |
SELECT "engine" FROM "indy_car_series" WHERE "chassis"='dallara' AND "rank"='6th' AND "points"=384; |
## Task
Generate a SQL query to answer the following question:
`Which engine has a chassis of dallara, is ranked 6th, and has 384 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_car_series" (
"year" real,
"team" text,
"chassis" text,... |
SELECT "engine" FROM "indy_car_series" WHERE "rank"='3rd' AND "points"=513; |
## Task
Generate a SQL query to answer the following question:
`Which engine is used when there is a 3rd place rank and 513 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_car_series" (
"year" real,
"team" text,
"chassis" text,
"en... |
SELECT "chassis" FROM "indy_car_series" WHERE "rank"='3rd'; |
## Task
Generate a SQL query to answer the following question:
`What is the chassis when the rank is 3rd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_car_series" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,... |
SELECT COUNT("year") FROM "indy_car_series" WHERE "team"='andretti autosport'; |
## Task
Generate a SQL query to answer the following question:
`What are the years that Andretti Autosport is a team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_car_series" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
... |
SELECT "team" FROM "indy_car_series" WHERE "rank"='3rd' AND "year"=2008; |
## Task
Generate a SQL query to answer the following question:
`Which team is ranked 3rd in 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indy_car_series" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"poin... |
SELECT AVG("oilers_points") FROM "schedule" WHERE "record"='10–6' AND "oilers_first_downs">14; |
## Task
Generate a SQL query to answer the following question:
`Which Oilers points have a Record of 10–6, and Oilers first downs larger than 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" tex... |
SELECT MAX("oilers_points") FROM "schedule" WHERE "opponent"='san francisco 49ers' AND "opponents">19; |
## Task
Generate a SQL query to answer the following question:
`Which Oilers points have an Opponent of san francisco 49ers, and Opponents larger than 19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"oppo... |
SELECT SUM("game") FROM "schedule" WHERE "opponent"='at kansas city chiefs' AND "attendance"<'40,213'; |
## Task
Generate a SQL query to answer the following question:
`Which Game has an Opponent of at kansas city chiefs, and an Attendance smaller than 40,213?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opp... |
SELECT "country" FROM "release_history" WHERE "date"='18 may 2004'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the country that has 18 May 2004 as the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"for... |
SELECT "catalog" FROM "release_history" WHERE "country"='australia'; |
## Task
Generate a SQL query to answer the following question:
`What catalog has Australia as the country?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"catalog" ... |
SELECT "format" FROM "release_history" WHERE "date"='7 april 2003' AND "catalog"='584 2112'; |
## Task
Generate a SQL query to answer the following question:
`In what format was the release that was dated 7 April 2003 from catalog 584 2112?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"country" text,
"date" text,
"lab... |
SELECT "date" FROM "release_history" WHERE "format"='lp'; |
## Task
Generate a SQL query to answer the following question:
`What date was the release when the format was lp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"ca... |
SELECT "date" FROM "release_history" WHERE "label"='parlophone' AND "catalog"='582 2912'; |
## Task
Generate a SQL query to answer the following question:
`What date is the release when the label was Parlophone and the catalog was 582 2912?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"country" text,
"date" text,
"... |
SELECT "catalog" FROM "release_history" WHERE "country"='united kingdom'; |
## Task
Generate a SQL query to answer the following question:
`What catalog has the United Kingdom as the country?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"country" text,
"date" text,
"label" text,
"format" text,
"... |
SELECT "nationality" FROM "a" WHERE "position"='guard' AND "school_club_team"='virginia'; |
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the guard for the chool/Club Team in Virginia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a" (
"player" text,
"nationality" text,
"position" text,
"... |
SELECT "school_club_team" FROM "a" WHERE "nationality"='united states' AND "player"='arron afflalo'; |
## Task
Generate a SQL query to answer the following question:
`What is the School/Club Team with a nationality of United States for Arron Afflalo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a" (
"player" text,
"nationality" text,
"position"... |
SELECT "years_in_orlando" FROM "a" WHERE "player"='carlos arroyo'; |
## Task
Generate a SQL query to answer the following question:
`What is the Years in Orlando for carlos arroyo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
... |
SELECT "player" FROM "a" WHERE "years_in_orlando"='1989–1991'; |
## Task
Generate a SQL query to answer the following question:
`What is the Player for Orlando in 1989–1991?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"sc... |
SELECT "position" FROM "a" WHERE "years_in_orlando"='1989–1999'; |
## Task
Generate a SQL query to answer the following question:
`What is the Position for Orlando for 1989–1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
... |
SELECT "player" FROM "mcla_division_2" WHERE "school"='western washington university' AND "position"='midfield' AND "year">2009; |
## Task
Generate a SQL query to answer the following question:
`Which player was from Western Washington University, played midfield, and was from years after 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mcla_division_2" (
"year" real,
"te... |
SELECT "team" FROM "mcla_division_2" WHERE "player"='bubba vanegdom'; |
## Task
Generate a SQL query to answer the following question:
`Which team was Bubba Vanegdom from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mcla_division_2" (
"year" real,
"team" text,
"player" text,
"position" text,
"school" text
);
... |
SELECT "position" FROM "mcla_division_2" WHERE "school"='pacific lutheran university' AND "player"='greg fredlund' AND "year">2010; |
## Task
Generate a SQL query to answer the following question:
`What was the position of the player from Pacific Lutheran University named Greg Fredlund in years after 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mcla_division_2" (
"year" re... |
SELECT "position" FROM "mcla_division_2" WHERE "year">2008 AND "player"='greg fredlund'; |
## Task
Generate a SQL query to answer the following question:
`What was the position of Greg Fredlund in years after 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mcla_division_2" (
"year" real,
"team" text,
"player" text,
"position" t... |
SELECT "home_team" FROM "fifth_round_proper" WHERE "tie_no"='8'; |
## Task
Generate a SQL query to answer the following question:
`What home team has 8 ties?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text,
"... |
SELECT "year" FROM "winners" WHERE "winner_female"='kim gevaert' AND "talent_male"='xavier de baerdemaeker'; |
## Task
Generate a SQL query to answer the following question:
`What year had Kim Gevaert as the female winner and Xavier de Baerdemaeker as the male talent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"winner_male" text... |
SELECT "talent_female" FROM "winners" WHERE "year"=1999; |
## Task
Generate a SQL query to answer the following question:
`Who is the female talent in 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"winner_male" text,
"winner_female" text,
"talent_male" text,
"talent_fe... |
SELECT "talent_male" FROM "winners" WHERE "year"=1991; |
## Task
Generate a SQL query to answer the following question:
`Who is the male talent in 1991?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"winner_male" text,
"winner_female" text,
"talent_male" text,
"talent_fema... |
SELECT "winner_male" FROM "winners" WHERE "winner_female"='marleen renders' AND "year">1998; |
## Task
Generate a SQL query to answer the following question:
`Who is the male winner the year after 1998 with Marleen Renders as the female winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"winner_male" text,
"win... |
SELECT MIN("avg_g") FROM "passing" WHERE "effic">34.36 AND "name"='wesley carroll'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest avg/g that has an effic greater than 34.36, with wesley carroll as the name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
... |
SELECT MIN("avg_g") FROM "passing" WHERE "att_cmp_int"='2-9-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest avg/g that has 2-9-0 for the att-cmp-int?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
"effic" real,
"att_cmp_int" text,... |
SELECT "att_cmp_int" FROM "passing" WHERE "gp_gs"='12' AND "avg_g"=174.3; |
## Task
Generate a SQL query to answer the following question:
`What is the att-cmp-int that has 12 for the gp-gs and 174.3 as the avg/g?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
"effic" real,
"att_c... |
SELECT "song" FROM "see_also" WHERE "issue_date_s"='19 june'; |
## Task
Generate a SQL query to answer the following question:
`What is the Song with an Issue Date(s) that is 19 june?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" real,
"... |
SELECT "minimum_height" FROM "tunnels" WHERE "name_of_the_tunnel"='little switzerland tunnel'; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum Height of the Little Switzerland Tunnel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tunnels" (
"milepost" real,
"name_of_the_tunnel" text,
"length" text,
"... |
SELECT COUNT("milepost") FROM "tunnels" WHERE "name_of_the_tunnel"='twin tunnel #1 north'; |
## Task
Generate a SQL query to answer the following question:
`What is the Milepost of the Twin Tunnel #1 North?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tunnels" (
"milepost" real,
"name_of_the_tunnel" text,
"length" text,
"maximum_hei... |
SELECT SUM("population") FROM "by_population" WHERE "density"=50.09 AND "rank">30; |
## Task
Generate a SQL query to answer the following question:
`WHat is the number of Population has a Density of 50.09 and a Rank larger than 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_population" (
"rank" real,
"province" text,
"pop... |
SELECT SUM("density") FROM "by_population" WHERE "population">'290,458' AND "area"=91.6; |
## Task
Generate a SQL query to answer the following question:
`What is the Density that has a Population larger than 290,458, and an Area of 91.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_population" (
"rank" real,
"province" text,
"po... |
SELECT "icelandic" FROM "words_derived_from_non_indo_european_lan" WHERE "english"='bride'; |
## Task
Generate a SQL query to answer the following question:
`What is the Icelandic word for the English word bride?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "words_derived_from_non_indo_european_lan" (
"english" text,
"german" text,
"dut... |
SELECT "english" FROM "words_derived_from_non_indo_european_lan" WHERE "icelandic"='hlaupa'; |
## Task
Generate a SQL query to answer the following question:
`What is the ENglish word for the Icelandic word hlaupa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "words_derived_from_non_indo_european_lan" (
"english" text,
"german" text,
"du... |
SELECT "russian" FROM "words_derived_from_non_indo_european_lan" WHERE "greek"='greek'; |
## Task
Generate a SQL query to answer the following question:
`What is the Russian word for the Greek word greek?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "words_derived_from_non_indo_european_lan" (
"english" text,
"german" text,
"dutch" ... |
SELECT "english" FROM "words_derived_from_non_indo_european_lan" WHERE "latin"='uxor'; |
## Task
Generate a SQL query to answer the following question:
`What is the English word for the Latin word uxor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "words_derived_from_non_indo_european_lan" (
"english" text,
"german" text,
"dutch" t... |
SELECT "latin" FROM "words_derived_from_non_indo_european_lan" WHERE "english"='bone'; |
## Task
Generate a SQL query to answer the following question:
`What is the Latin word for the English word bone?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "words_derived_from_non_indo_european_lan" (
"english" text,
"german" text,
"dutch" t... |
SELECT MIN("against") FROM "2005_ladder" WHERE "ballarat_fl"='bacchus marsh' AND "wins"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest against that has bacchus marsh as a ballarat fl, with wins less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_ladder" (
"ballarat_fl" text,
"wins" rea... |
SELECT MIN("draws") FROM "2005_ladder" WHERE "losses">0 AND "against"<1728 AND "ballarat_fl"='melton' AND "byes"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest draws that have losses greater than 0, an against less than 1728, melton as the ballarat fl, and byes less than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_l... |
SELECT COUNT("losses") FROM "2005_ladder" WHERE "byes">2; |
## Task
Generate a SQL query to answer the following question:
`How many losses have byes greater than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_ladder" (
"ballarat_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real... |
SELECT MIN("draws") FROM "2005_ladder" WHERE "losses">0 AND "against">1353 AND "wins"=2 AND "ballarat_fl"='ballarat'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest draws that have losses less than 0, an against greater than 1353, 2 as the wins, and ballarat as ballarat fl?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_ladder... |
SELECT COUNT("year") FROM "winners" WHERE "position"='halfback' AND "pct_of_points_possible"='80.64%'; |
## Task
Generate a SQL query to answer the following question:
`What is the total year of the winner who plays the halfback position with a % of points possible of 80.64%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"win... |
SELECT SUM("year") FROM "winners" WHERE "school"='army' AND "position"='halfback' AND "pct_of_points_possible"='39.01%'; |
## Task
Generate a SQL query to answer the following question:
`What is the year of the winner from the army school, plays the halfback position, and has a % of points possible of 39.01%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"ye... |
SELECT "position" FROM "winners" WHERE "school"='ohio state' AND "points"='412'; |
## Task
Generate a SQL query to answer the following question:
`What position does the winner from Ohio State with 412 points play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"winner" text,
"school" text,
"position"... |
SELECT "pct_of_points_possible" FROM "winners" WHERE "school"='penn state'; |
## Task
Generate a SQL query to answer the following question:
`What is the % of points possible of the winner from Penn State?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"winner" text,
"school" text,
"position" tex... |
SELECT "position" FROM "winners" WHERE "points"='792'; |
## Task
Generate a SQL query to answer the following question:
`What is the position of the winner with 792 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"winner" text,
"school" text,
"position" text,
"points... |
SELECT SUM("attendance") FROM "game_log" WHERE "opponent"='new jersey saints' AND "date"='february 21, 1988'; |
## Task
Generate a SQL query to answer the following question:
`How many were in Attendance on February 21, 1988 against the New Jersey Saints?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"at_vs" text,
"opponent" text... |
SELECT "opponent" FROM "game_log" WHERE "date"='february 6, 1988'; |
## Task
Generate a SQL query to answer the following question:
`What was the Opponent on February 6, 1988?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real... |
SELECT MAX("top_10") FROM "summary" WHERE "top_25"=4 AND "top_5">1; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Top-10, when Top-25 is 4, and when Top-5 is greater than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" rea... |
SELECT "wins" FROM "summary" WHERE "top_25"<4 AND "top_5">0; |
## Task
Generate a SQL query to answer the following question:
`What is Wins, when Top-25 is less than 4, and when Top-5 is greater than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
... |
SELECT COUNT("wins") FROM "summary" WHERE "top_25"<4 AND "top_10"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Wins, when Top-25 is less than 4, and when Top-10 is less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,... |
SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='liverpool'; |
## Task
Generate a SQL query to answer the following question:
`Which home team played in the matchup with an away team of Liverpool?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" ... |
SELECT "date" FROM "fourth_round_proper" WHERE "tie_no"='5'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of tie number 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" ... |
SELECT "away_team" FROM "fourth_round_proper" WHERE "tie_no"='9'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team for tie number 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"d... |
SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='replay' AND "home_team"='millwall'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the replay at Millwall?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text... |
SELECT "home_team" FROM "fourth_round_proper" WHERE "tie_no"='16'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team for tie number 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"... |
SELECT SUM("gold") FROM "medal_table" WHERE "total"=5 AND "bronze"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the golds of the nation with 5 total and less than 0 bronze medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gol... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.