output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "league" FROM "pitchers" WHERE "strikeouts"=451; |
## Task
Generate a SQL query to answer the following question:
`Name the league for strikeouts being 451`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pitchers" (
"pitcher" text,
"strikeouts" real,
"season" real,
"team" text,
"league" text,
"overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the league for strikeouts being 451`:
```sql
|
SELECT MAX("overall_rank") FROM "pitchers" WHERE "league"='NL/UA'; |
## Task
Generate a SQL query to answer the following question:
`Name the most overall rank for nl/ua league`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pitchers" (
"pitcher" text,
"strikeouts" real,
"season" real,
"team" text,
"league" text,
"overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most overall rank for nl/ua league`:
```sql
|
SELECT COUNT("pitcher") FROM "pitchers" WHERE "overall_rank"=9; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of pitcher for 9 overall rank`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pitchers" (
"pitcher" text,
"strikeouts" real,
"season" real,
"team" text,
"league" text,
"overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of pitcher for 9 overall rank`:
```sql
|
SELECT MAX("season") FROM "pitchers" WHERE "pitcher"='Old Hoss Radbourn'; |
## Task
Generate a SQL query to answer the following question:
`Name the most season for old hoss radbourn`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pitchers" (
"pitcher" text,
"strikeouts" real,
"season" real,
"team" text,
"league" text,
"overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most season for old hoss radbourn`:
```sql
|
SELECT MAX("week") FROM "table1_24278858_2" WHERE "opponent"='Amsterdam Admirals'; |
## Task
Generate a SQL query to answer the following question:
`What week did they play the amsterdam admirals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24278858_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What week did they play the amsterdam admirals?`:
```sql
|
SELECT "date" FROM "table1_24278858_2" WHERE "week"=8; |
## Task
Generate a SQL query to answer the following question:
`What date did the team play on week 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24278858_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the team play on week 8?`:
```sql
|
SELECT "country_or_region" FROM "table1_24285393_1" WHERE "highest_point"='Northwestern peak of Rysy'; |
## Task
Generate a SQL query to answer the following question:
`What country has the most height in the northwestern peak of rysy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24285393_1" (
"country_or_region" text,
"highest_point" text,
"maximum_elevation" text,
"lowest_point" text,
"minimum_elevation" text,
"elevation_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has the most height in the northwestern peak of rysy?`:
```sql
|
SELECT "highest_point" FROM "table1_24285393_1" WHERE "country_or_region"='Latvia'; |
## Task
Generate a SQL query to answer the following question:
`What are the highest point in latvia`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24285393_1" (
"country_or_region" text,
"highest_point" text,
"maximum_elevation" text,
"lowest_point" text,
"minimum_elevation" text,
"elevation_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the highest point in latvia`:
```sql
|
SELECT "maximum_elevation" FROM "table1_24285393_1" WHERE "country_or_region"='Netherlands'; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum elevation in netherlands?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24285393_1" (
"country_or_region" text,
"highest_point" text,
"maximum_elevation" text,
"lowest_point" text,
"minimum_elevation" text,
"elevation_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum elevation in netherlands?`:
```sql
|
SELECT "country_or_region" FROM "table1_24285393_1" WHERE "highest_point"='Mont Sokbaro'; |
## Task
Generate a SQL query to answer the following question:
`In what country is mont sokbaro a highest point`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24285393_1" (
"country_or_region" text,
"highest_point" text,
"maximum_elevation" text,
"lowest_point" text,
"minimum_elevation" text,
"elevation_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what country is mont sokbaro a highest point`:
```sql
|
SELECT COUNT("club") FROM "year_by_year" WHERE "third_place"='Drnovice'; |
## Task
Generate a SQL query to answer the following question:
`how many times was third place held by drnovice?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"season" text,
"champions" text,
"runner_up" text,
"third_place" text,
"top_goalscorer" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times was third place held by drnovice?`:
```sql
|
SELECT "top_goalscorer" FROM "year_by_year" WHERE "season"='2010-11'; |
## Task
Generate a SQL query to answer the following question:
`Who is the top goalscorer for the season 2010-11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"season" text,
"champions" text,
"runner_up" text,
"third_place" text,
"top_goalscorer" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the top goalscorer for the season 2010-11?`:
```sql
|
SELECT "third_place" FROM "year_by_year" WHERE "champions"='Baník Ostrava (1)'; |
## Task
Generate a SQL query to answer the following question:
`Who had third place when the champions is baník ostrava (1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"season" text,
"champions" text,
"runner_up" text,
"third_place" text,
"top_goalscorer" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had third place when the champions is baník ostrava (1)?`:
```sql
|
SELECT "top_goalscorer" FROM "year_by_year" WHERE "season"='2001-02'; |
## Task
Generate a SQL query to answer the following question:
`Who was the top goalscorer for season 2001-02?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"season" text,
"champions" text,
"runner_up" text,
"third_place" text,
"top_goalscorer" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the top goalscorer for season 2001-02?`:
```sql
|
SELECT "runner_up" FROM "year_by_year" WHERE "season"='2008-09'; |
## Task
Generate a SQL query to answer the following question:
`Who is the runner-up for the season 2008-09?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"season" text,
"champions" text,
"runner_up" text,
"third_place" text,
"top_goalscorer" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the runner-up for the season 2008-09?`:
```sql
|
SELECT "top_goalscorer" FROM "year_by_year" WHERE "season"='1998-99'; |
## Task
Generate a SQL query to answer the following question:
`Who is the top goalscorer for season 1998-99?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"season" text,
"champions" text,
"runner_up" text,
"third_place" text,
"top_goalscorer" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the top goalscorer for season 1998-99?`:
```sql
|
SELECT "championship" FROM "wins_18" WHERE "margin"='1 stroke' AND "54_holes"='2 shot deficit'; |
## Task
Generate a SQL query to answer the following question:
`In what tournament was the difference only 1 stroke and 54 holes with a 2 shot deficit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wins_18" (
"year" text,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what tournament was the difference only 1 stroke and 54 holes with a 2 shot deficit?`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_2430014_6" WHERE "title"='\" France : Cap Gris-Nez to Mont-Saint-Michel \"'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number directed by for " france : cap gris-nez to mont-saint-michel "`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2430014_6" (
"series_no" real,
"episode_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"uk_ratings_bbc2_rank" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number directed by for " france : cap gris-nez to mont-saint-michel "`:
```sql
|
SELECT "written_by" FROM "table1_2430014_6" WHERE "directed_by"='John Trefor'; |
## Task
Generate a SQL query to answer the following question:
`Name the written by for john trefor`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2430014_6" (
"series_no" real,
"episode_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"uk_ratings_bbc2_rank" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the written by for john trefor`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_2430014_8" WHERE "uk_ratings_bbc2_rank"='2.27m (5)'; |
## Task
Generate a SQL query to answer the following question:
`How many directors worked on the episode with 2.27m (5) is the ratings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2430014_8" (
"series_no" real,
"episode_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"uk_ratings_bbc2_rank" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many directors worked on the episode with 2.27m (5) is the ratings?`:
```sql
|
SELECT "title" FROM "table1_2430014_8" WHERE "episode_no"=2; |
## Task
Generate a SQL query to answer the following question:
`What is the title of episode 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2430014_8" (
"series_no" real,
"episode_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"uk_ratings_bbc2_rank" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of episode 2?`:
```sql
|
SELECT "written_by" FROM "table1_2430014_8" WHERE "uk_ratings_bbc2_rank"='2.27m (5)'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode what had the rating 2.27m (5)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2430014_8" (
"series_no" real,
"episode_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"uk_ratings_bbc2_rank" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode what had the rating 2.27m (5)?`:
```sql
|
SELECT "name" FROM "forbes_global_2000" WHERE "2013_rev_bil_usd"='14.5'; |
## Task
Generate a SQL query to answer the following question:
`Name the name for 14.5 2013 rev`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "forbes_global_2000" (
"april_2013_cum_rank" real,
"name" text,
"rank_2012" real,
"rank_2013" real,
"base" text,
"2013_rev_bil_usd" text,
"2013_profit_mil_usd" text,
"assets_2013_bil" text,
"market_cap_march_15_mil" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for 14.5 2013 rev`:
```sql
|
SELECT "2013_profit_mil_usd" FROM "forbes_global_2000" WHERE "assets_2013_bil"='11.2'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2013 profit for assets being 11.2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "forbes_global_2000" (
"april_2013_cum_rank" real,
"name" text,
"rank_2012" real,
"rank_2013" real,
"base" text,
"2013_rev_bil_usd" text,
"2013_profit_mil_usd" text,
"assets_2013_bil" text,
"market_cap_march_15_mil" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2013 profit for assets being 11.2`:
```sql
|
SELECT "assets_2013_bil" FROM "forbes_global_2000" WHERE "rank_2013"=1435; |
## Task
Generate a SQL query to answer the following question:
`Name the assets when the rank is 1435`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "forbes_global_2000" (
"april_2013_cum_rank" real,
"name" text,
"rank_2012" real,
"rank_2013" real,
"base" text,
"2013_rev_bil_usd" text,
"2013_profit_mil_usd" text,
"assets_2013_bil" text,
"market_cap_march_15_mil" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the assets when the rank is 1435`:
```sql
|
SELECT COUNT("april_2013_cum_rank") FROM "forbes_global_2000" WHERE "rank_2012"=225; |
## Task
Generate a SQL query to answer the following question:
`Name the number of rank for april 2013 for 2012 ran kbeing 225`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "forbes_global_2000" (
"april_2013_cum_rank" real,
"name" text,
"rank_2012" real,
"rank_2013" real,
"base" text,
"2013_rev_bil_usd" text,
"2013_profit_mil_usd" text,
"assets_2013_bil" text,
"market_cap_march_15_mil" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of rank for april 2013 for 2012 ran kbeing 225`:
```sql
|
SELECT "market_cap_march_15_mil" FROM "forbes_global_2000" WHERE "2013_rev_bil_usd"='2.8'; |
## Task
Generate a SQL query to answer the following question:
`Name the market cap where 2013 rev is 2.8`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "forbes_global_2000" (
"april_2013_cum_rank" real,
"name" text,
"rank_2012" real,
"rank_2013" real,
"base" text,
"2013_rev_bil_usd" text,
"2013_profit_mil_usd" text,
"assets_2013_bil" text,
"market_cap_march_15_mil" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the market cap where 2013 rev is 2.8`:
```sql
|
SELECT COUNT("assets_2013_bil") FROM "forbes_global_2000" WHERE "base"='Australia'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of assets for australia`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "forbes_global_2000" (
"april_2013_cum_rank" real,
"name" text,
"rank_2012" real,
"rank_2013" real,
"base" text,
"2013_rev_bil_usd" text,
"2013_profit_mil_usd" text,
"assets_2013_bil" text,
"market_cap_march_15_mil" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of assets for australia`:
```sql
|
SELECT "position" FROM "group_5" WHERE "event_6_atlas_stones"='6 (4 in 34.49s)'; |
## Task
Generate a SQL query to answer the following question:
`What is the position of the player who got 6 (4 in 34.49s) in the 6 atlas stones event?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_5" (
"position" text,
"name" text,
"nationality" text,
"event_1_medley" text,
"event_2_truck_pull" text,
"event_3_dead_lift" text,
"event_4_fingals_fingers" text,
"event_5_keg_toss" text,
"event_6_atlas_stones" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player who got 6 (4 in 34.49s) in the 6 atlas stones event?`:
```sql
|
SELECT "name" FROM "group_5" WHERE "nationality"='United States'; |
## Task
Generate a SQL query to answer the following question:
`Who are all the players from the united states?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_5" (
"position" text,
"name" text,
"nationality" text,
"event_1_medley" text,
"event_2_truck_pull" text,
"event_3_dead_lift" text,
"event_4_fingals_fingers" text,
"event_5_keg_toss" text,
"event_6_atlas_stones" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all the players from the united states?`:
```sql
|
SELECT COUNT("event_6_atlas_stones") FROM "group_5" WHERE "event_3_dead_lift"='2 (6 in 30.89s)'; |
## Task
Generate a SQL query to answer the following question:
`What is the score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_5" (
"position" text,
"name" text,
"nationality" text,
"event_1_medley" text,
"event_2_truck_pull" text,
"event_3_dead_lift" text,
"event_4_fingals_fingers" text,
"event_5_keg_toss" text,
"event_6_atlas_stones" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event?`:
```sql
|
SELECT "position" FROM "group_5" WHERE "event_6_atlas_stones"='5 (4 in 32.66s)'; |
## Task
Generate a SQL query to answer the following question:
`What is the position of the player with a 5 (4 in 32.66s) in the 6 atlas stones event?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_5" (
"position" text,
"name" text,
"nationality" text,
"event_1_medley" text,
"event_2_truck_pull" text,
"event_3_dead_lift" text,
"event_4_fingals_fingers" text,
"event_5_keg_toss" text,
"event_6_atlas_stones" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player with a 5 (4 in 32.66s) in the 6 atlas stones event?`:
```sql
|
SELECT "event_2_truck_pull" FROM "group_5" WHERE "event_4_fingals_fingers"='1 (5 in 33.84s)'; |
## Task
Generate a SQL query to answer the following question:
`What is the score in the 2 truck pull of the player who got 1 (5 in 33.84s) in the 4 fingals fingers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_5" (
"position" text,
"name" text,
"nationality" text,
"event_1_medley" text,
"event_2_truck_pull" text,
"event_3_dead_lift" text,
"event_4_fingals_fingers" text,
"event_5_keg_toss" text,
"event_6_atlas_stones" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score in the 2 truck pull of the player who got 1 (5 in 33.84s) in the 4 fingals fingers?`:
```sql
|
SELECT MAX("cuts_made") FROM "lpga_tour_career_summary" WHERE "top_10s"=0; |
## Task
Generate a SQL query to answer the following question:
`When 0 is the top 10's what is the highest amount of cuts made?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 0 is the top 10's what is the highest amount of cuts made?`:
```sql
|
SELECT MIN("3rd") FROM "lpga_tour_career_summary"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall amount of times they've been in 3rd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall amount of times they've been in 3rd?`:
```sql
|
SELECT MIN("money_list_rank") FROM "lpga_tour_career_summary" WHERE "year"=2011; |
## Task
Generate a SQL query to answer the following question:
`When 2011 is the year what is the lowest money list rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 2011 is the year what is the lowest money list rank?`:
```sql
|
SELECT MIN("money_list_rank") FROM "lpga_tour_career_summary"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall money list rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall money list rank?`:
```sql
|
SELECT MIN("tournaments_played") FROM "lpga_tour_career_summary" WHERE "best_finish"='T3'; |
## Task
Generate a SQL query to answer the following question:
`When t3 is the best finish what is the lowest amount of tournaments played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `When t3 is the best finish what is the lowest amount of tournaments played?`:
```sql
|
SELECT MAX("winners_play_off_legs_won") FROM "prize_money_won" WHERE "total_money_won"='£2,350'; |
## Task
Generate a SQL query to answer the following question:
`What is the latest amount of won legs in the payoffs when the prize money was £2,350?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "prize_money_won" (
"player" text,
"group_legs_won" real,
"play_off_legs_won" real,
"winners_group_legs_won" real,
"winners_play_off_legs_won" real,
"final_position_money_won" text,
"total_money_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest amount of won legs in the payoffs when the prize money was £2,350?`:
```sql
|
SELECT "winners_group_legs_won" FROM "prize_money_won" WHERE "player"='Mark Dudbridge'; |
## Task
Generate a SQL query to answer the following question:
`How many group legs were won with player Mark Dudbridge?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "prize_money_won" (
"player" text,
"group_legs_won" real,
"play_off_legs_won" real,
"winners_group_legs_won" real,
"winners_play_off_legs_won" real,
"final_position_money_won" text,
"total_money_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many group legs were won with player Mark Dudbridge?`:
```sql
|
SELECT MAX("winners_group_legs_won") FROM "prize_money_won" WHERE "total_money_won"='£21,850'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of group legs won when the prize money was £21,850?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "prize_money_won" (
"player" text,
"group_legs_won" real,
"play_off_legs_won" real,
"winners_group_legs_won" real,
"winners_play_off_legs_won" real,
"final_position_money_won" text,
"total_money_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest amount of group legs won when the prize money was £21,850?`:
```sql
|
SELECT COUNT("winners_play_off_legs_won") FROM "prize_money_won" WHERE "total_money_won"='£10,300'; |
## Task
Generate a SQL query to answer the following question:
`How many play-off legs were won when the prize money was £10,300?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "prize_money_won" (
"player" text,
"group_legs_won" real,
"play_off_legs_won" real,
"winners_group_legs_won" real,
"winners_play_off_legs_won" real,
"final_position_money_won" text,
"total_money_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many play-off legs were won when the prize money was £10,300?`:
```sql
|
SELECT MIN("winners_play_off_legs_won") FROM "prize_money_won"; |
## Task
Generate a SQL query to answer the following question:
`What is the least amount of playoff legs won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "prize_money_won" (
"player" text,
"group_legs_won" real,
"play_off_legs_won" real,
"winners_group_legs_won" real,
"winners_play_off_legs_won" real,
"final_position_money_won" text,
"total_money_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of playoff legs won?`:
```sql
|
SELECT "directed_by" FROM "table1_24319661_5" WHERE "no_in_series"=53; |
## Task
Generate a SQL query to answer the following question:
`Who directed episode 53 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24319661_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed episode 53 in the series?`:
```sql
|
SELECT "production_code" FROM "table1_24319661_5" WHERE "directed_by"='Robert Duncan McNeill'; |
## Task
Generate a SQL query to answer the following question:
`What as the production code for the episode directed by Robert Duncan McNeill?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24319661_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What as the production code for the episode directed by Robert Duncan McNeill?`:
```sql
|
SELECT "no_in_season" FROM "table1_24319661_5" WHERE "production_code"='BCW410'; |
## Task
Generate a SQL query to answer the following question:
`What episode number of the season had BCW410 as a production code?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24319661_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number of the season had BCW410 as a production code?`:
```sql
|
SELECT MAX("no_in_series") FROM "table1_24319661_5" WHERE "u_s_viewers_million"='2.77'; |
## Task
Generate a SQL query to answer the following question:
`What episode number in the series had 2.77 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24319661_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number in the series had 2.77 million U.S. viewers?`:
```sql
|
SELECT MAX("times_contested") FROM "welsh_boroughs" WHERE "county"='Montgomeryshire'; |
## Task
Generate a SQL query to answer the following question:
`Name the most times contested for montgomeryshire`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "welsh_boroughs" (
"borough" text,
"county" text,
"franchise_type" text,
"members" real,
"voters_in_1800" real,
"times_contested" real,
"fate_in_1832" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most times contested for montgomeryshire`:
```sql
|
SELECT "fate_in_1832" FROM "welsh_boroughs" WHERE "county"='Pembrokeshire'; |
## Task
Generate a SQL query to answer the following question:
`Name the fate in 1832 for pembrokeshire`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "welsh_boroughs" (
"borough" text,
"county" text,
"franchise_type" text,
"members" real,
"voters_in_1800" real,
"times_contested" real,
"fate_in_1832" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fate in 1832 for pembrokeshire`:
```sql
|
SELECT MIN("podiums") FROM "career_summary" WHERE "series"='Formula BMW Americas'; |
## Task
Generate a SQL query to answer the following question:
`what is the least number of podiums for a formula BMW Americas series? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least number of podiums for a formula BMW Americas series? `:
```sql
|
SELECT MAX("wins") FROM "career_summary" WHERE "series"='Formula 3 Euro Series'; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of wins in the formula 3 euro series? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of wins in the formula 3 euro series? `:
```sql
|
SELECT COUNT("position") FROM "career_summary" WHERE "points"='30'; |
## Task
Generate a SQL query to answer the following question:
`How many positions were given when 30 points were won? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions were given when 30 points were won? `:
```sql
|
SELECT MAX("poles") FROM "career_summary" WHERE "season"=2011; |
## Task
Generate a SQL query to answer the following question:
`How many pole positions were there for the 2011 season? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many pole positions were there for the 2011 season? `:
```sql
|
SELECT "conference_tournament" FROM "table1_24348134_3" WHERE "tournament_winner"='Kent State'; |
## Task
Generate a SQL query to answer the following question:
`List the tournament that kent state won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24348134_3" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the tournament that kent state won?`:
```sql
|
SELECT "tournament_winner" FROM "table1_24348134_3" WHERE "conference_tournament"='2001 MWC Men''s Basketball Tournament'; |
## Task
Generate a SQL query to answer the following question:
`List the team that won the 2001 mwc men's basketball tournament`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24348134_3" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the team that won the 2001 mwc men's basketball tournament`:
```sql
|
SELECT "regular_season_winner" FROM "table1_24348134_3" WHERE "tournament_winner"='Georgia State'; |
## Task
Generate a SQL query to answer the following question:
`What team won the regular season when georgia state won the tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24348134_3" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team won the regular season when georgia state won the tournament?`:
```sql
|
SELECT "tournament_venue_city" FROM "table1_24348134_3" WHERE "tournament_winner"='Oklahoma'; |
## Task
Generate a SQL query to answer the following question:
`In what city did oklahoma win the tournament.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24348134_3" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what city did oklahoma win the tournament.`:
```sql
|
SELECT "conference_player_of_the_year" FROM "table1_24348134_3" WHERE "tournament_venue_city"='Matadome ( Northridge, California )'; |
## Task
Generate a SQL query to answer the following question:
`List the players of the year for the tournament held in matadome ( northridge, california )?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24348134_3" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the players of the year for the tournament held in matadome ( northridge, california )?`:
```sql
|
SELECT COUNT("tournament_winner") FROM "table1_24348134_3" WHERE "regular_season_winner"='Iona , Siena & Niagara'; |
## Task
Generate a SQL query to answer the following question:
`List the number of tournament winners when iona , siena & niagara won in the regular season.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24348134_3" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of tournament winners when iona , siena & niagara won in the regular season.`:
```sql
|
SELECT MIN("total_population") FROM "table1_24346010_1" WHERE "guberniya"='Mogilev'; |
## Task
Generate a SQL query to answer the following question:
`What is the population of Mogilev?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24346010_1" (
"guberniya" text,
"total_population" real,
"belarusian" real,
"russian" real,
"polish" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population of Mogilev?`:
```sql
|
SELECT "polish" FROM "table1_24346010_1" WHERE "guberniya"='Vitebsk'; |
## Task
Generate a SQL query to answer the following question:
`What are the polish population where guberniya is vitebsk?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24346010_1" (
"guberniya" text,
"total_population" real,
"belarusian" real,
"russian" real,
"polish" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the polish population where guberniya is vitebsk?`:
```sql
|
SELECT MIN("polish") FROM "table1_24346010_1" WHERE "guberniya"='Grodno'; |
## Task
Generate a SQL query to answer the following question:
`What is the population of polish where guberniya is grodno?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24346010_1" (
"guberniya" text,
"total_population" real,
"belarusian" real,
"russian" real,
"polish" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population of polish where guberniya is grodno?`:
```sql
|
SELECT "real_life_eventual_outcome" FROM "table1_243664_1" WHERE "currently_part_of"='Amtrak'; |
## Task
Generate a SQL query to answer the following question:
`Name the real life for eventual outcome is amtrak`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_243664_1" (
"railroad" text,
"game_cost" text,
"real_life_years_of_operation" text,
"real_life_eventual_outcome" text,
"currently_part_of" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the real life for eventual outcome is amtrak`:
```sql
|
SELECT "real_life_years_of_operation" FROM "table1_243664_1" WHERE "currently_part_of"='Amtrak'; |
## Task
Generate a SQL query to answer the following question:
`Name the real life years of operation for amtrak`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_243664_1" (
"railroad" text,
"game_cost" text,
"real_life_years_of_operation" text,
"real_life_eventual_outcome" text,
"currently_part_of" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the real life years of operation for amtrak`:
```sql
|
SELECT "game_cost" FROM "table1_243664_1" WHERE "railroad"='Chicago and North Western'; |
## Task
Generate a SQL query to answer the following question:
`Name the game coast for chicago and north western`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_243664_1" (
"railroad" text,
"game_cost" text,
"real_life_years_of_operation" text,
"real_life_eventual_outcome" text,
"currently_part_of" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the game coast for chicago and north western`:
```sql
|
SELECT "game_cost" FROM "table1_243664_1" WHERE "real_life_eventual_outcome"='Merged with New York Central to form Penn Central'; |
## Task
Generate a SQL query to answer the following question:
`Name the game cost for merged with new york central to form penn central`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_243664_1" (
"railroad" text,
"game_cost" text,
"real_life_years_of_operation" text,
"real_life_eventual_outcome" text,
"currently_part_of" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the game cost for merged with new york central to form penn central`:
```sql
|
SELECT MIN("2007_usd") FROM "grp_lists_of_russian_federal_subjects_in" WHERE "federal_subjects"='Kabardino-Balkaria'; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum 2007 USD in Kabardino-Balkaria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grp_lists_of_russian_federal_subjects_in" (
"rank_2008" real,
"federal_subjects" text,
"russian_name" text,
"2008_rub" real,
"2008_usd" real,
"2007_rub" real,
"2007_usd" real,
"2005_rub" real,
"2005_usd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum 2007 USD in Kabardino-Balkaria?`:
```sql
|
SELECT "russian_name" FROM "grp_lists_of_russian_federal_subjects_in" WHERE "2005_rub"=139995; |
## Task
Generate a SQL query to answer the following question:
`What is the Russian name for the area with 139995 RUB in 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grp_lists_of_russian_federal_subjects_in" (
"rank_2008" real,
"federal_subjects" text,
"russian_name" text,
"2008_rub" real,
"2008_usd" real,
"2007_rub" real,
"2007_usd" real,
"2005_rub" real,
"2005_usd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Russian name for the area with 139995 RUB in 2005?`:
```sql
|
SELECT "2008_usd" FROM "grp_lists_of_russian_federal_subjects_in" WHERE "2005_usd"=2849; |
## Task
Generate a SQL query to answer the following question:
`What is the 2008 USD figure for the subject with 2849 USD in 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grp_lists_of_russian_federal_subjects_in" (
"rank_2008" real,
"federal_subjects" text,
"russian_name" text,
"2008_rub" real,
"2008_usd" real,
"2007_rub" real,
"2007_usd" real,
"2005_rub" real,
"2005_usd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2008 USD figure for the subject with 2849 USD in 2005?`:
```sql
|
SELECT "contestant" FROM "eliminated_contestants_weigh_in" WHERE "position_out_of_eliminated_contestants"='4th'; |
## Task
Generate a SQL query to answer the following question:
`Who is every contestant for the position of 4th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eliminated_contestants_weigh_in" (
"contestant" text,
"starting_weight_kg" text,
"final_weight_kg" text,
"weight_lost_kg" text,
"percentage_lost" text,
"position_out_of_eliminated_contestants" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every contestant for the position of 4th?`:
```sql
|
SELECT "weight_lost_kg" FROM "eliminated_contestants_weigh_in" WHERE "starting_weight_kg"='97.4'; |
## Task
Generate a SQL query to answer the following question:
`What is every amount for weight lost if the starting weight is 97.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eliminated_contestants_weigh_in" (
"contestant" text,
"starting_weight_kg" text,
"final_weight_kg" text,
"weight_lost_kg" text,
"percentage_lost" text,
"position_out_of_eliminated_contestants" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every amount for weight lost if the starting weight is 97.4?`:
```sql
|
SELECT "contestant" FROM "eliminated_contestants_weigh_in" WHERE "position_out_of_eliminated_contestants"='3rd'; |
## Task
Generate a SQL query to answer the following question:
`Who is every contestant for the position of 3rd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eliminated_contestants_weigh_in" (
"contestant" text,
"starting_weight_kg" text,
"final_weight_kg" text,
"weight_lost_kg" text,
"percentage_lost" text,
"position_out_of_eliminated_contestants" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every contestant for the position of 3rd?`:
```sql
|
SELECT "starting_weight_kg" FROM "eliminated_contestants_weigh_in" WHERE "weight_lost_kg"='54.6'; |
## Task
Generate a SQL query to answer the following question:
`What is the starting weight if weight lost is 54.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eliminated_contestants_weigh_in" (
"contestant" text,
"starting_weight_kg" text,
"final_weight_kg" text,
"weight_lost_kg" text,
"percentage_lost" text,
"position_out_of_eliminated_contestants" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the starting weight if weight lost is 54.6?`:
```sql
|
SELECT "position_out_of_eliminated_contestants" FROM "eliminated_contestants_weigh_in" WHERE "starting_weight_kg"='130.6'; |
## Task
Generate a SQL query to answer the following question:
`What is the position for starting weight of 130.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eliminated_contestants_weigh_in" (
"contestant" text,
"starting_weight_kg" text,
"final_weight_kg" text,
"weight_lost_kg" text,
"percentage_lost" text,
"position_out_of_eliminated_contestants" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position for starting weight of 130.6?`:
```sql
|
SELECT "final_weight_kg" FROM "eliminated_contestants_weigh_in" WHERE "contestant"='Chris'; |
## Task
Generate a SQL query to answer the following question:
`What is the final weight for contestant Chris?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "eliminated_contestants_weigh_in" (
"contestant" text,
"starting_weight_kg" text,
"final_weight_kg" text,
"weight_lost_kg" text,
"percentage_lost" text,
"position_out_of_eliminated_contestants" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the final weight for contestant Chris?`:
```sql
|
SELECT COUNT("aux_in") FROM "features_comparison" WHERE "version"='SoundDock series II'; |
## Task
Generate a SQL query to answer the following question:
`How many times did the sounddock series II aux in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "features_comparison" (
"version" text,
"dock_connection" text,
"aux_in" text,
"battery" text,
"i_phone_certified" text,
"video_out" text,
"dual_voltage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did the sounddock series II aux in?`:
```sql
|
SELECT "i_phone_certified" FROM "features_comparison" WHERE "version"='SoundDock series I v2'; |
## Task
Generate a SQL query to answer the following question:
`Was the sounddock series I v2 iphone certified?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "features_comparison" (
"version" text,
"dock_connection" text,
"aux_in" text,
"battery" text,
"i_phone_certified" text,
"video_out" text,
"dual_voltage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was the sounddock series I v2 iphone certified?`:
```sql
|
SELECT COUNT("aux_in") FROM "features_comparison" WHERE "dock_connection"='FireWire'; |
## Task
Generate a SQL query to answer the following question:
`How many connections aux in using FIrewire?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "features_comparison" (
"version" text,
"dock_connection" text,
"aux_in" text,
"battery" text,
"i_phone_certified" text,
"video_out" text,
"dual_voltage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many connections aux in using FIrewire?`:
```sql
|
SELECT COUNT("video_out") FROM "features_comparison" WHERE "version"='SoundDock Portable'; |
## Task
Generate a SQL query to answer the following question:
`how many video out connections does the sounddock portable have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "features_comparison" (
"version" text,
"dock_connection" text,
"aux_in" text,
"battery" text,
"i_phone_certified" text,
"video_out" text,
"dual_voltage" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many video out connections does the sounddock portable have?`:
```sql
|
SELECT "dual_voltage" FROM "features_comparison" WHERE "version"='SoundDock series I v2'; |
## Task
Generate a SQL query to answer the following question:
`Does the sounddock series I v2 have dual voltage?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "features_comparison" (
"version" text,
"dock_connection" text,
"aux_in" text,
"battery" text,
"i_phone_certified" text,
"video_out" text,
"dual_voltage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Does the sounddock series I v2 have dual voltage?`:
```sql
|
SELECT "dock_connection" FROM "features_comparison" WHERE "version"='SoundDock series III'; |
## Task
Generate a SQL query to answer the following question:
`What type of dock connection does the sounddock series III have? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "features_comparison" (
"version" text,
"dock_connection" text,
"aux_in" text,
"battery" text,
"i_phone_certified" text,
"video_out" text,
"dual_voltage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of dock connection does the sounddock series III have? `:
```sql
|
SELECT "game_site" FROM "table1_24396664_2" WHERE "kickoff"='7:00 p.m.'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game played that started at 7:00 p.m.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24396664_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played that started at 7:00 p.m.?`:
```sql
|
SELECT MAX("varsity_teams") FROM "members" WHERE "location"='West Roxbury, MA'; |
## Task
Generate a SQL query to answer the following question:
`how many varsity teams are in west roxbury, ma?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"school" text,
"mascot" text,
"location" text,
"founded" real,
"entered_isl" real,
"grades" text,
"number_of_students" text,
"varsity_teams" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many varsity teams are in west roxbury, ma?`:
```sql
|
SELECT "mascot" FROM "members" WHERE "school"='St. Paul''s School'; |
## Task
Generate a SQL query to answer the following question:
`what is the mascot of st. paul's school? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"school" text,
"mascot" text,
"location" text,
"founded" real,
"entered_isl" real,
"grades" text,
"number_of_students" text,
"varsity_teams" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the mascot of st. paul's school? `:
```sql
|
SELECT "location" FROM "members" WHERE "mascot"='Dragons'; |
## Task
Generate a SQL query to answer the following question:
`where are dragons used as mascots?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"school" text,
"mascot" text,
"location" text,
"founded" real,
"entered_isl" real,
"grades" text,
"number_of_students" text,
"varsity_teams" real
);
### SQL
Given the database schema, here is the SQL query that answers `where are dragons used as mascots?`:
```sql
|
SELECT MIN("founded") FROM "members" WHERE "school"='Lawrence Academy at Groton'; |
## Task
Generate a SQL query to answer the following question:
`when was lawrence academy at groton established? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"school" text,
"mascot" text,
"location" text,
"founded" real,
"entered_isl" real,
"grades" text,
"number_of_students" text,
"varsity_teams" real
);
### SQL
Given the database schema, here is the SQL query that answers `when was lawrence academy at groton established? `:
```sql
|
SELECT "school" FROM "members" WHERE "location"='Milton, MA'; |
## Task
Generate a SQL query to answer the following question:
`name the school located at Milton, ma.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"school" text,
"mascot" text,
"location" text,
"founded" real,
"entered_isl" real,
"grades" text,
"number_of_students" text,
"varsity_teams" real
);
### SQL
Given the database schema, here is the SQL query that answers `name the school located at Milton, ma.`:
```sql
|
SELECT COUNT("location") FROM "members" WHERE "varsity_teams"=17; |
## Task
Generate a SQL query to answer the following question:
`how many places have 17 varsity teams?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"school" text,
"mascot" text,
"location" text,
"founded" real,
"entered_isl" real,
"grades" text,
"number_of_students" text,
"varsity_teams" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many places have 17 varsity teams?`:
```sql
|
SELECT COUNT("episode_no") FROM "table1_24399615_10" WHERE "bbc_three_weekly_ranking"='N/A' AND "cable_rank"='N/A'; |
## Task
Generate a SQL query to answer the following question:
`Which episode had bbc ranking and canle ranking of n/a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24399615_10" (
"episode_no" real,
"airdate" text,
"viewers" text,
"bbc_three_weekly_ranking" text,
"cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode had bbc ranking and canle ranking of n/a?`:
```sql
|
SELECT "bbc_three_weekly_ranking" FROM "table1_24399615_10" WHERE "cable_rank"='6'; |
## Task
Generate a SQL query to answer the following question:
`List the number of bbc rankings with cable rankings of 6.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24399615_10" (
"episode_no" real,
"airdate" text,
"viewers" text,
"bbc_three_weekly_ranking" text,
"cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of bbc rankings with cable rankings of 6.`:
```sql
|
SELECT "viewers" FROM "table1_24399615_10" WHERE "cable_rank"='5'; |
## Task
Generate a SQL query to answer the following question:
`List the number of viewers when the cable rank for Russell Howard's Good New was 5.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24399615_10" (
"episode_no" real,
"airdate" text,
"viewers" text,
"bbc_three_weekly_ranking" text,
"cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of viewers when the cable rank for Russell Howard's Good New was 5.`:
```sql
|
SELECT COUNT("viewers") FROM "table1_24399615_10" WHERE "bbc_three_weekly_ranking"='6'; |
## Task
Generate a SQL query to answer the following question:
`How many individuals watched the show that had a bbc ranking of 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24399615_10" (
"episode_no" real,
"airdate" text,
"viewers" text,
"bbc_three_weekly_ranking" text,
"cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many individuals watched the show that had a bbc ranking of 6?`:
```sql
|
SELECT COUNT("cable_rank") FROM "series_3" WHERE "episode_no"=8; |
## Task
Generate a SQL query to answer the following question:
`How many times did episode number 8 air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_3" (
"episode_no" real,
"airdate" text,
"viewers" real,
"bbc_three_weekly_ranking" real,
"cable_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did episode number 8 air?`:
```sql
|
SELECT "airdate" FROM "series_3" WHERE "episode_no"=6; |
## Task
Generate a SQL query to answer the following question:
`When did episode number 6 air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_3" (
"episode_no" real,
"airdate" text,
"viewers" real,
"bbc_three_weekly_ranking" real,
"cable_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did episode number 6 air?`:
```sql
|
SELECT COUNT("viewers") FROM "series_2" WHERE "bbc_three_weekly_ranking"='1'; |
## Task
Generate a SQL query to answer the following question:
`How many items are listed under viewers column when the bbd three weekly ranking was 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2" (
"episode_no" real,
"airdate" text,
"viewers" real,
"bbc_three_weekly_ranking" text,
"cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many items are listed under viewers column when the bbd three weekly ranking was 1?`:
```sql
|
SELECT MIN("episode_no") FROM "series_2" WHERE "cable_rank"='8'; |
## Task
Generate a SQL query to answer the following question:
`What episode number had a cable ranking of 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2" (
"episode_no" real,
"airdate" text,
"viewers" real,
"bbc_three_weekly_ranking" text,
"cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number had a cable ranking of 8?`:
```sql
|
SELECT "airdate" FROM "series_2" WHERE "bbc_three_weekly_ranking"='N/A'; |
## Task
Generate a SQL query to answer the following question:
`What date did the episode air that had n/a for it's bbc three weekly ranking?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2" (
"episode_no" real,
"airdate" text,
"viewers" real,
"bbc_three_weekly_ranking" text,
"cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode air that had n/a for it's bbc three weekly ranking?`:
```sql
|
SELECT "airdate" FROM "series_2" WHERE "cable_rank"='17'; |
## Task
Generate a SQL query to answer the following question:
`What date did the episode air that had a ranking of 17 for cable?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_2" (
"episode_no" real,
"airdate" text,
"viewers" real,
"bbc_three_weekly_ranking" text,
"cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode air that had a ranking of 17 for cable?`:
```sql
|
SELECT "airdate" FROM "series_6" WHERE "bbc_three_weekly_ranking"='3'; |
## Task
Generate a SQL query to answer the following question:
`When 3 is the bbc three weekly ranking what is the airdate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_6" (
"episode_no" real,
"airdate" text,
"viewers" real,
"bbc_three_weekly_ranking" text,
"cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 3 is the bbc three weekly ranking what is the airdate?`:
```sql
|
SELECT "airdate" FROM "series_6" WHERE "cable_rank"='N/A' AND "viewers"=656000; |
## Task
Generate a SQL query to answer the following question:
`When 656000 is the amount of viewers and n/a is the cable rank what is the airdate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_6" (
"episode_no" real,
"airdate" text,
"viewers" real,
"bbc_three_weekly_ranking" text,
"cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 656000 is the amount of viewers and n/a is the cable rank what is the airdate?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.