output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "written_by" FROM "table1_27462209_1" WHERE "prod_code"=322; |
## Task
Generate a SQL query to answer the following question:
`Name who wrote the production code 322`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27462209_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_millions" text,
"original_u_s_air_date" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name who wrote the production code 322`:
```sql
|
SELECT "television_network" FROM "international_broadcasts" WHERE "television_channel"='Astro Pelangi & Astro Bintang'; |
## Task
Generate a SQL query to answer the following question:
`What is the television network with the television channel of Astro Pelangi & Astro Bintang?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_broadcasts" (
"country" text,
"series_programmes" text,
"series_seasons_programmes" text,
"television_channel" text,
"television_network" text,
"series_premiere" text,
"series_end" text,
"status" text,
"available" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the television network with the television channel of Astro Pelangi & Astro Bintang?`:
```sql
|
SELECT "status" FROM "international_broadcasts" WHERE "television_channel"='MediaCorp TV12 Suria'; |
## Task
Generate a SQL query to answer the following question:
`What was the status of the series that was run by tv channel Mediacorp tv12 Suria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_broadcasts" (
"country" text,
"series_programmes" text,
"series_seasons_programmes" text,
"television_channel" text,
"television_network" text,
"series_premiere" text,
"series_end" text,
"status" text,
"available" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the status of the series that was run by tv channel Mediacorp tv12 Suria?`:
```sql
|
SELECT "world_rank_by_qs_2013" FROM "universities" WHERE "members"='University of Otago'; |
## Task
Generate a SQL query to answer the following question:
`What was the world rank by QS in 2013 for the University of Otago?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "universities" (
"members" text,
"country" text,
"year_established" real,
"world_rank_by_the_wur_2013" text,
"world_rank_by_arwu_2013" text,
"world_rank_by_qs_2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the world rank by QS in 2013 for the University of Otago?`:
```sql
|
SELECT "world_rank_by_arwu_2013" FROM "universities" WHERE "world_rank_by_qs_2013"='90th'; |
## Task
Generate a SQL query to answer the following question:
`What was the world rank by ARWU in 2013 of university whose world rank by QS in 2013 was 90th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "universities" (
"members" text,
"country" text,
"year_established" real,
"world_rank_by_the_wur_2013" text,
"world_rank_by_arwu_2013" text,
"world_rank_by_qs_2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the world rank by ARWU in 2013 of university whose world rank by QS in 2013 was 90th?`:
```sql
|
SELECT "world_rank_by_arwu_2013" FROM "universities" WHERE "members"='University of Tübingen'; |
## Task
Generate a SQL query to answer the following question:
`What was the world rank by ARWU in 2013 of the University of Tübingen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "universities" (
"members" text,
"country" text,
"year_established" real,
"world_rank_by_the_wur_2013" text,
"world_rank_by_arwu_2013" text,
"world_rank_by_qs_2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the world rank by ARWU in 2013 of the University of Tübingen?`:
```sql
|
SELECT "world_rank_by_the_wur_2013" FROM "universities" WHERE "world_rank_by_qs_2013"='113th'; |
## Task
Generate a SQL query to answer the following question:
`What was the world rank by THE-WUR in 2013 of the university whose world rank by QS in 2013 was 113th? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "universities" (
"members" text,
"country" text,
"year_established" real,
"world_rank_by_the_wur_2013" text,
"world_rank_by_arwu_2013" text,
"world_rank_by_qs_2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the world rank by THE-WUR in 2013 of the university whose world rank by QS in 2013 was 113th? `:
```sql
|
SELECT "prod_no" FROM "table1_27481781_2" WHERE "title"='\"Random on Purpose\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the production number for the episode called "Random on Purpose"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27481781_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_no" real,
"viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production number for the episode called "Random on Purpose"?`:
```sql
|
SELECT COUNT("no_in_series") FROM "table1_27481781_2" WHERE "viewers_millions"='18.73'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes have 18.73 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27481781_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_no" real,
"viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes have 18.73 million viewers?`:
```sql
|
SELECT "result" FROM "results" WHERE "district"='Georgia''s 3rd'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the election for georgia's 3rd district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the election for georgia's 3rd district?`:
```sql
|
SELECT "incumbent" FROM "results" WHERE "district"='Georgia''s 8th'; |
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent from georgia's 8th district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the incumbent from georgia's 8th district?`:
```sql
|
SELECT "result" FROM "results" WHERE "incumbent"='Bob Barr'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the election with incumbent bob barr?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the election with incumbent bob barr?`:
```sql
|
SELECT "result" FROM "results" WHERE "incumbent"='John Lewis'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the election with incumbent john lewis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the election with incumbent john lewis?`:
```sql
|
SELECT "incumbent" FROM "results" WHERE "elected"=1978; |
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent for the election in 1978?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the incumbent for the election in 1978?`:
```sql
|
SELECT "judges" FROM "table1_27487310_5" WHERE "country"='Netherlands' AND "air_dates"='28 November 2011 – 24 December 2011'; |
## Task
Generate a SQL query to answer the following question:
`Who are the judges in the Netherlands for the season airing 28 November 2011 – 24 December 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27487310_5" (
"country" text,
"name" text,
"host_s" text,
"judges" text,
"network" text,
"air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the judges in the Netherlands for the season airing 28 November 2011 – 24 December 2011?`:
```sql
|
SELECT "name" FROM "table1_27487310_5" WHERE "network"='SBS 6'; |
## Task
Generate a SQL query to answer the following question:
`What is the version aired on SBS 6 called?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27487310_5" (
"country" text,
"name" text,
"host_s" text,
"judges" text,
"network" text,
"air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the version aired on SBS 6 called?`:
```sql
|
SELECT "air_dates" FROM "table1_27487310_5" WHERE "network"='ABS-CBN'; |
## Task
Generate a SQL query to answer the following question:
`What are the air dates of the show in ABS-CBN?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27487310_5" (
"country" text,
"name" text,
"host_s" text,
"judges" text,
"network" text,
"air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the air dates of the show in ABS-CBN?`:
```sql
|
SELECT "host_s" FROM "table1_27487310_5" WHERE "air_dates"='18 January 2012'; |
## Task
Generate a SQL query to answer the following question:
`Who is the host on the series aired on 18 January 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27487310_5" (
"country" text,
"name" text,
"host_s" text,
"judges" text,
"network" text,
"air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the host on the series aired on 18 January 2012?`:
```sql
|
SELECT "name" FROM "table1_27487310_5" WHERE "host_s"='unknown'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the series with the unknown host?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27487310_5" (
"country" text,
"name" text,
"host_s" text,
"judges" text,
"network" text,
"air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the series with the unknown host?`:
```sql
|
SELECT "points_per_game" FROM "season_by_season_statistics" WHERE "passing_yards_per_game"='179.6'; |
## Task
Generate a SQL query to answer the following question:
`What is every value for points per game if passing yards per game is 179.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season_statistics" (
"season" text,
"points_per_game" text,
"total_yards_per_game" text,
"rushing_yards_per_game" text,
"passing_yards_per_game" text,
"sacks" text,
"interceptions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for points per game if passing yards per game is 179.6?`:
```sql
|
SELECT "sacks" FROM "season_by_season_statistics" WHERE "interceptions"='19'; |
## Task
Generate a SQL query to answer the following question:
`What is every value for sacks if interceptions is 19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season_statistics" (
"season" text,
"points_per_game" text,
"total_yards_per_game" text,
"rushing_yards_per_game" text,
"passing_yards_per_game" text,
"sacks" text,
"interceptions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for sacks if interceptions is 19?`:
```sql
|
SELECT "passing_yards_per_game" FROM "season_by_season_statistics" WHERE "rushing_yards_per_game"='113.6'; |
## Task
Generate a SQL query to answer the following question:
`What is every value for passing yards per game if rushing yards per game is 113.6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season_statistics" (
"season" text,
"points_per_game" text,
"total_yards_per_game" text,
"rushing_yards_per_game" text,
"passing_yards_per_game" text,
"sacks" text,
"interceptions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for passing yards per game if rushing yards per game is 113.6?`:
```sql
|
SELECT "rushing_yards_per_game" FROM "season_by_season_statistics" WHERE "sacks"='25'; |
## Task
Generate a SQL query to answer the following question:
`What is every value for rushing yards per game if sacks if 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season_statistics" (
"season" text,
"points_per_game" text,
"total_yards_per_game" text,
"rushing_yards_per_game" text,
"passing_yards_per_game" text,
"sacks" text,
"interceptions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for rushing yards per game if sacks if 25?`:
```sql
|
SELECT "rushing_yards_per_game" FROM "season_by_season_statistics" WHERE "season"='1984'; |
## Task
Generate a SQL query to answer the following question:
`What is every value for rushing yards per game if the season is 1984?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season_statistics" (
"season" text,
"points_per_game" text,
"total_yards_per_game" text,
"rushing_yards_per_game" text,
"passing_yards_per_game" text,
"sacks" text,
"interceptions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for rushing yards per game if the season is 1984?`:
```sql
|
SELECT COUNT("season") FROM "season_by_season_statistics" WHERE "sacks"='39'; |
## Task
Generate a SQL query to answer the following question:
`How many seasons have a sacks of 39?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season_statistics" (
"season" text,
"points_per_game" text,
"total_yards_per_game" text,
"rushing_yards_per_game" text,
"passing_yards_per_game" text,
"sacks" text,
"interceptions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons have a sacks of 39?`:
```sql
|
SELECT "average" FROM "averages" WHERE "rank_by_average"=3; |
## Task
Generate a SQL query to answer the following question:
`Name the average for rank of 3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "averages" (
"rank_by_average" real,
"place" real,
"couple" text,
"total_points" real,
"number_of_dances" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average for rank of 3`:
```sql
|
SELECT "total_points" FROM "averages" WHERE "place"=2; |
## Task
Generate a SQL query to answer the following question:
`Name the total points for 2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "averages" (
"rank_by_average" real,
"place" real,
"couple" text,
"total_points" real,
"number_of_dances" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total points for 2`:
```sql
|
SELECT "decision" FROM "regular_season" WHERE "opponent"='Atlanta Thrashers'; |
## Task
Generate a SQL query to answer the following question:
`What is the decision when the opponents are atlanta thrashers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real,
"decision" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the decision when the opponents are atlanta thrashers?`:
```sql
|
SELECT COUNT("game") FROM "regular_season" WHERE "points"=57; |
## Task
Generate a SQL query to answer the following question:
`How many game entries are there when the points are 57?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real,
"decision" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many game entries are there when the points are 57?`:
```sql
|
SELECT MIN("a_o") FROM "awards_and_nominations"; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest año?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"a_o" real,
"trabajo_nominado" text,
"premio" text,
"categor_a" text,
"country" text,
"resultado" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest año?`:
```sql
|
SELECT COUNT("premio") FROM "awards_and_nominations" WHERE "categor_a"='Artist of the Year'; |
## Task
Generate a SQL query to answer the following question:
`How many premio are there when "Artist of the Year" was the categoria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"a_o" real,
"trabajo_nominado" text,
"premio" text,
"categor_a" text,
"country" text,
"resultado" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many premio are there when "Artist of the Year" was the categoria?`:
```sql
|
SELECT "resultado" FROM "awards_and_nominations" WHERE "country"='E.E.U.U'; |
## Task
Generate a SQL query to answer the following question:
`What was the resultado when E.E.U.U was the country?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"a_o" real,
"trabajo_nominado" text,
"premio" text,
"categor_a" text,
"country" text,
"resultado" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the resultado when E.E.U.U was the country?`:
```sql
|
SELECT "categor_a" FROM "awards_and_nominations" WHERE "country"='E.E.U.U'; |
## Task
Generate a SQL query to answer the following question:
`What was the categoria when E.E.U.U was the country?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"a_o" real,
"trabajo_nominado" text,
"premio" text,
"categor_a" text,
"country" text,
"resultado" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the categoria when E.E.U.U was the country?`:
```sql
|
SELECT "country" FROM "awards_and_nominations" WHERE "a_o"=2012; |
## Task
Generate a SQL query to answer the following question:
`When the año was 2012, who was the county?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"a_o" real,
"trabajo_nominado" text,
"premio" text,
"categor_a" text,
"country" text,
"resultado" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the año was 2012, who was the county?`:
```sql
|
SELECT "written_by" FROM "table1_27504682_1" WHERE "directed_by"='Lawrence Trilling'; |
## Task
Generate a SQL query to answer the following question:
`Name who wrote the episode by lawrence trilling`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27504682_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name who wrote the episode by lawrence trilling`:
```sql
|
SELECT "original_air_date" FROM "table1_27504682_1" WHERE "written_by"='Alex Taub'; |
## Task
Generate a SQL query to answer the following question:
`Name the air date for alex taub`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27504682_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the air date for alex taub`:
```sql
|
SELECT COUNT("opponent") FROM "regular_season" WHERE "game"=69; |
## Task
Generate a SQL query to answer the following question:
`How many games were numbered 69?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real,
"decision" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were numbered 69?`:
```sql
|
SELECT COUNT("march") FROM "regular_season" WHERE "opponent"='Pittsburgh Penguins'; |
## Task
Generate a SQL query to answer the following question:
`How many times did they play the pittsburgh penguins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real,
"decision" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did they play the pittsburgh penguins?`:
```sql
|
SELECT MIN("qtr_final_week") FROM "round_chart" WHERE "genre"='Dancing' AND "age_s"='32'; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest quarterfinal week when the genre is dancing and the act is 32?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_chart" (
"name_name_of_act" text,
"age_s" text,
"genre" text,
"act" text,
"hometown" text,
"qtr_final_week" real,
"semi_final_week" text,
"position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest quarterfinal week when the genre is dancing and the act is 32?`:
```sql
|
SELECT MIN("qtr_final_week") FROM "round_chart" WHERE "name_name_of_act"='Austin Anderson'; |
## Task
Generate a SQL query to answer the following question:
`What is the quarterfinal week for Austin Anderson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_chart" (
"name_name_of_act" text,
"age_s" text,
"genre" text,
"act" text,
"hometown" text,
"qtr_final_week" real,
"semi_final_week" text,
"position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the quarterfinal week for Austin Anderson?`:
```sql
|
SELECT "genre" FROM "round_chart" WHERE "age_s"='29-30'; |
## Task
Generate a SQL query to answer the following question:
`What is the genre for the group with ages 29-30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_chart" (
"name_name_of_act" text,
"age_s" text,
"genre" text,
"act" text,
"hometown" text,
"qtr_final_week" real,
"semi_final_week" text,
"position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the genre for the group with ages 29-30?`:
```sql
|
SELECT "age_s" FROM "round_chart" WHERE "act"='Rapper'; |
## Task
Generate a SQL query to answer the following question:
`What is the age of the act who is a rapper?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_chart" (
"name_name_of_act" text,
"age_s" text,
"genre" text,
"act" text,
"hometown" text,
"qtr_final_week" real,
"semi_final_week" text,
"position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the age of the act who is a rapper?`:
```sql
|
SELECT "hometown" FROM "round_chart" WHERE "name_name_of_act"='PLUtonic'; |
## Task
Generate a SQL query to answer the following question:
`What is the hometown of Plutonic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_chart" (
"name_name_of_act" text,
"age_s" text,
"genre" text,
"act" text,
"hometown" text,
"qtr_final_week" real,
"semi_final_week" text,
"position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown of Plutonic?`:
```sql
|
SELECT COUNT("semi_final_week") FROM "round_chart" WHERE "hometown"='Pittsburgh, Pennsylvania'; |
## Task
Generate a SQL query to answer the following question:
`How many semi-final weeks are there for acts from Pittsburgh, Pennsylvania?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_chart" (
"name_name_of_act" text,
"age_s" text,
"genre" text,
"act" text,
"hometown" text,
"qtr_final_week" real,
"semi_final_week" text,
"position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many semi-final weeks are there for acts from Pittsburgh, Pennsylvania?`:
```sql
|
SELECT "margin_of_victory" FROM "winners" WHERE "location"='Lake Forest, Illinois'; |
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory for the event in lake forest, illinois?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"player" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text,
"course" text,
"location" text,
"purse" real,
"winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory for the event in lake forest, illinois?`:
```sql
|
SELECT "to_par" FROM "winners" WHERE "player"='Zach Johnson'; |
## Task
Generate a SQL query to answer the following question:
`What was zach johnson's score to par?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"player" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text,
"course" text,
"location" text,
"purse" real,
"winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was zach johnson's score to par?`:
```sql
|
SELECT "score" FROM "winners" WHERE "course"='Bellerive Country Club'; |
## Task
Generate a SQL query to answer the following question:
`What was the winning score at bellerive country club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"player" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text,
"course" text,
"location" text,
"purse" real,
"winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score at bellerive country club?`:
```sql
|
SELECT COUNT("course") FROM "winners" WHERE "location"='Carmel, Indiana'; |
## Task
Generate a SQL query to answer the following question:
`How many courses are located in carmel, indiana?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"player" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text,
"course" text,
"location" text,
"purse" real,
"winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many courses are located in carmel, indiana?`:
```sql
|
SELECT COUNT("status") FROM "race_results" WHERE "entrant"='James Finch'; |
## Task
Generate a SQL query to answer the following question:
`How many status figures does James Finch have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"pos" real,
"sp" real,
"no" real,
"driver" text,
"car_name" text,
"car_make" text,
"entrant" text,
"laps" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many status figures does James Finch have?`:
```sql
|
SELECT "car_make" FROM "race_results" WHERE "driver"='Sterling Marlin'; |
## Task
Generate a SQL query to answer the following question:
`What is the car make for Sterling Marlin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"pos" real,
"sp" real,
"no" real,
"driver" text,
"car_name" text,
"car_make" text,
"entrant" text,
"laps" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the car make for Sterling Marlin?`:
```sql
|
SELECT "pos" FROM "race_results" WHERE "car_make"='Pontiac' AND "driver"='Bobby Hamilton'; |
## Task
Generate a SQL query to answer the following question:
`What is the finish position for cars by Pontiac driven by Bobby Hamilton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"pos" real,
"sp" real,
"no" real,
"driver" text,
"car_name" text,
"car_make" text,
"entrant" text,
"laps" real,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the finish position for cars by Pontiac driven by Bobby Hamilton?`:
```sql
|
SELECT "contestant" FROM "contestants" WHERE "sizes"='33-23-36'; |
## Task
Generate a SQL query to answer the following question:
`who are the participants that wear clothing in 33-23-36`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"represent" real,
"contestant" text,
"age" real,
"sizes" text,
"height" text,
"hometown" text,
"agency" text
);
### SQL
Given the database schema, here is the SQL query that answers `who are the participants that wear clothing in 33-23-36`:
```sql
|
SELECT MAX("age") FROM "contestants" WHERE "hometown"='Veraguas'; |
## Task
Generate a SQL query to answer the following question:
`what is the oldest and lives in veraguas`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"represent" real,
"contestant" text,
"age" real,
"sizes" text,
"height" text,
"hometown" text,
"agency" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the oldest and lives in veraguas`:
```sql
|
SELECT "hometown" FROM "contestants" WHERE "contestant"='Marelissa Him'; |
## Task
Generate a SQL query to answer the following question:
`where is the participant marelissa him from`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"represent" real,
"contestant" text,
"age" real,
"sizes" text,
"height" text,
"hometown" text,
"agency" text
);
### SQL
Given the database schema, here is the SQL query that answers `where is the participant marelissa him from`:
```sql
|
SELECT "agency" FROM "contestants" WHERE "sizes"='33-23-36'; |
## Task
Generate a SQL query to answer the following question:
`which company has a person that can wear clothing in 33-23-36`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"represent" real,
"contestant" text,
"age" real,
"sizes" text,
"height" text,
"hometown" text,
"agency" text
);
### SQL
Given the database schema, here is the SQL query that answers `which company has a person that can wear clothing in 33-23-36`:
```sql
|
SELECT "height" FROM "contestants" WHERE "sizes"='33-24-35'; |
## Task
Generate a SQL query to answer the following question:
`how tall is someone who is able to wear 33-24-35`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "contestants" (
"represent" real,
"contestant" text,
"age" real,
"sizes" text,
"height" text,
"hometown" text,
"agency" text
);
### SQL
Given the database schema, here is the SQL query that answers `how tall is someone who is able to wear 33-24-35`:
```sql
|
SELECT MIN("total_points") FROM "tournament_for_the_championship_of_canad" WHERE "best_winning_average"='7.3-71'; |
## Task
Generate a SQL query to answer the following question:
`If the best winning average is 7.3-71, what are the total points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_for_the_championship_of_canad" (
"players" text,
"games_won" real,
"games_lost" real,
"total_points" real,
"grand_average" text,
"best_winning_average" text,
"best_run" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the best winning average is 7.3-71, what are the total points?`:
```sql
|
SELECT "games_lost" FROM "tournament_for_the_championship_of_canad" WHERE "best_run"=138; |
## Task
Generate a SQL query to answer the following question:
`if the best run was 138, what is the amount of games lost?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_for_the_championship_of_canad" (
"players" text,
"games_won" real,
"games_lost" real,
"total_points" real,
"grand_average" text,
"best_winning_average" text,
"best_run" real
);
### SQL
Given the database schema, here is the SQL query that answers `if the best run was 138, what is the amount of games lost?`:
```sql
|
SELECT "best_winning_average" FROM "tournament_for_the_championship_of_canad" WHERE "games_won"=5; |
## Task
Generate a SQL query to answer the following question:
`If the games won are 5, what is the best winning average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_for_the_championship_of_canad" (
"players" text,
"games_won" real,
"games_lost" real,
"total_points" real,
"grand_average" text,
"best_winning_average" text,
"best_run" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the games won are 5, what is the best winning average?`:
```sql
|
SELECT MIN("total_points") FROM "tournament_for_the_championship_of_canad" WHERE "players"='William Jakes'; |
## Task
Generate a SQL query to answer the following question:
`If the player is William Jakes, what are the total points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_for_the_championship_of_canad" (
"players" text,
"games_won" real,
"games_lost" real,
"total_points" real,
"grand_average" text,
"best_winning_average" text,
"best_run" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the player is William Jakes, what are the total points?`:
```sql
|
SELECT "players" FROM "tournament_for_the_championship_of_canad" WHERE "grand_average"='12.76-202'; |
## Task
Generate a SQL query to answer the following question:
`If the grand average is 12.76-202, who is the player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_for_the_championship_of_canad" (
"players" text,
"games_won" real,
"games_lost" real,
"total_points" real,
"grand_average" text,
"best_winning_average" text,
"best_run" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the grand average is 12.76-202, who is the player?`:
```sql
|
SELECT COUNT("games_won") FROM "tournament_for_the_championship_of_canad" WHERE "best_winning_average"='20'; |
## Task
Generate a SQL query to answer the following question:
`How many players had a best winning average of 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_for_the_championship_of_canad" (
"players" text,
"games_won" real,
"games_lost" real,
"total_points" real,
"grand_average" text,
"best_winning_average" text,
"best_run" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many players had a best winning average of 20?`:
```sql
|
SELECT "record" FROM "regular_season" WHERE "date"='October 22'; |
## Task
Generate a SQL query to answer the following question:
`What was the October 22 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the October 22 record?`:
```sql
|
SELECT MAX("attendance") FROM "regular_season" WHERE "score"='6-4'; |
## Task
Generate a SQL query to answer the following question:
`What was the 6-4 score's maximum attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 6-4 score's maximum attendance?`:
```sql
|
SELECT "score" FROM "regular_season" WHERE "game"=1; |
## Task
Generate a SQL query to answer the following question:
`What was the score for game #1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for game #1?`:
```sql
|
SELECT "record" FROM "regular_season" WHERE "date"='October 16'; |
## Task
Generate a SQL query to answer the following question:
`What was the record for the October 16 game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for the October 16 game?`:
```sql
|
SELECT "record" FROM "regular_season" WHERE "first_star"='J. Oduya'; |
## Task
Generate a SQL query to answer the following question:
`What was the record in the game whose first star was J. Oduya?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record in the game whose first star was J. Oduya?`:
```sql
|
SELECT "score" FROM "regular_season" WHERE "first_star"='O. Pavelec'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game whose first star was O. Pavelec?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game whose first star was O. Pavelec?`:
```sql
|
SELECT "decision" FROM "regular_season" WHERE "date"='December 26'; |
## Task
Generate a SQL query to answer the following question:
`Who made the decision in the game played on December 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the decision in the game played on December 26?`:
```sql
|
SELECT "location" FROM "regular_season" WHERE "attendance"=10056; |
## Task
Generate a SQL query to answer the following question:
`Where was the game seen by 10056 people played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game seen by 10056 people played?`:
```sql
|
SELECT "first_star" FROM "regular_season" WHERE "record"='17-11-5'; |
## Task
Generate a SQL query to answer the following question:
`Who was the first star of the game with record of 17-11-5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the first star of the game with record of 17-11-5?`:
```sql
|
SELECT "decision" FROM "regular_season" WHERE "first_star"='V. Lecavalier'; |
## Task
Generate a SQL query to answer the following question:
`Who made the decisions in the game whose first star was V. Lecavalier?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the decisions in the game whose first star was V. Lecavalier?`:
```sql
|
SELECT "score" FROM "regular_season" WHERE "record"='22-16-6'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score the game where the Thrashers over-all record went to 22-16-6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score the game where the Thrashers over-all record went to 22-16-6?`:
```sql
|
SELECT "decision" FROM "regular_season" WHERE "score"='1-7'; |
## Task
Generate a SQL query to answer the following question:
`Who got the decision in the game, when the final score was 1-7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who got the decision in the game, when the final score was 1-7?`:
```sql
|
SELECT "date" FROM "regular_season" WHERE "first_star"='M. Grabovski'; |
## Task
Generate a SQL query to answer the following question:
`What date was M. Grabovski the first start of the game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date was M. Grabovski the first start of the game?`:
```sql
|
SELECT "record" FROM "regular_season" WHERE "opponent"='Carolina Hurricanes'; |
## Task
Generate a SQL query to answer the following question:
`What was the record for the game where the opponent was the Carolina Hurricanes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for the game where the opponent was the Carolina Hurricanes?`:
```sql
|
SELECT "date" FROM "regular_season" WHERE "record"='27-28-11'; |
## Task
Generate a SQL query to answer the following question:
`On which date was the record of 27-28-11 set?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `On which date was the record of 27-28-11 set?`:
```sql
|
SELECT "decision" FROM "regular_season" WHERE "record"='29-28-12'; |
## Task
Generate a SQL query to answer the following question:
`Who made the decision on the game where the record was 29-28-12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the decision on the game where the record was 29-28-12?`:
```sql
|
SELECT "decision" FROM "regular_season" WHERE "record"='27-28-11'; |
## Task
Generate a SQL query to answer the following question:
`Who made the decision on the game where the record was 27-28-11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the decision on the game where the record was 27-28-11?`:
```sql
|
SELECT "score" FROM "regular_season" WHERE "game"=5; |
## Task
Generate a SQL query to answer the following question:
`Name the score for game 5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for game 5`:
```sql
|
SELECT MAX("points") FROM "regular_season" WHERE "record"='1-3-1'; |
## Task
Generate a SQL query to answer the following question:
`Name the most points for 1-3-1 record`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most points for 1-3-1 record`:
```sql
|
SELECT "record" FROM "regular_season" WHERE "location_attendance"='Prudential Center - 12,880'; |
## Task
Generate a SQL query to answer the following question:
`Name the record for prudential center - 12,880`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record for prudential center - 12,880`:
```sql
|
SELECT COUNT("record") FROM "regular_season" WHERE "location_attendance"='HP Pavilion - 17,562'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of record for hp pavilion - 17,562`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of record for hp pavilion - 17,562`:
```sql
|
SELECT COUNT("october") FROM "game_log" WHERE "score"='6-1'; |
## Task
Generate a SQL query to answer the following question:
`On how many days in October was the score 6-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On how many days in October was the score 6-1?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "record"='3-5-1'; |
## Task
Generate a SQL query to answer the following question:
`What is the location and what was the attendance on those days when the score was 3-5-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location and what was the attendance on those days when the score was 3-5-1?`:
```sql
|
SELECT COUNT("location_attendance") FROM "game_log" WHERE "record"='2-5-1'; |
## Task
Generate a SQL query to answer the following question:
`How many times was the sabres record 2-5-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the sabres record 2-5-1?`:
```sql
|
SELECT "location_attendance" FROM "regular_season" WHERE "game"=41; |
## Task
Generate a SQL query to answer the following question:
`What was the location and attendance for game 41?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location and attendance for game 41?`:
```sql
|
SELECT MAX("january") FROM "regular_season" WHERE "record"='10-29-2'; |
## Task
Generate a SQL query to answer the following question:
`On what day of January was the record 10-29-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what day of January was the record 10-29-2?`:
```sql
|
SELECT MAX("points") FROM "regular_season" WHERE "score"='1-2'; |
## Task
Generate a SQL query to answer the following question:
`What are the most points scored in a game where the score was 1-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the most points scored in a game where the score was 1-2?`:
```sql
|
SELECT MAX("january") FROM "regular_season" WHERE "record"='15-29-3'; |
## Task
Generate a SQL query to answer the following question:
`On what day in January was the record 15-29-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what day in January was the record 15-29-3?`:
```sql
|
SELECT "opponent" FROM "regular_season" WHERE "record"='5-18-5'; |
## Task
Generate a SQL query to answer the following question:
`Against what team did the Islanders have a 5-18-5 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Against what team did the Islanders have a 5-18-5 record?`:
```sql
|
SELECT "opponent" FROM "regular_season" WHERE "score"='5-4'; |
## Task
Generate a SQL query to answer the following question:
`Against what opponent did the game end 5-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Against what opponent did the game end 5-4?`:
```sql
|
SELECT COUNT("december") FROM "regular_season" WHERE "record"='9-19-6'; |
## Task
Generate a SQL query to answer the following question:
`How many games were played against a team with a 9-19-6 record against the Islanders?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were played against a team with a 9-19-6 record against the Islanders?`:
```sql
|
SELECT COUNT("opponent") FROM "regular_season" WHERE "october"=9; |
## Task
Generate a SQL query to answer the following question:
`How many games did they play on october 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did they play on october 9?`:
```sql
|
SELECT MIN("points") FROM "regular_season" WHERE "game"=32; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of points for game 32?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of points for game 32?`:
```sql
|
SELECT "location_attendance" FROM "regular_season" WHERE "december"=1; |
## Task
Generate a SQL query to answer the following question:
`What is the location and attendance total from the game on December 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location and attendance total from the game on December 1?`:
```sql
|
SELECT "directed_by" FROM "table1_27547668_3" WHERE "viewers"=899000; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with 899000 viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27547668_3" (
"num" real,
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"viewers" real,
"original_airdate" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with 899000 viewers?`:
```sql
|
SELECT MIN("num") FROM "table1_27547668_3"; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest numbered episode in the series listed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27547668_3" (
"num" real,
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"viewers" real,
"original_airdate" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest numbered episode in the series listed?`:
```sql
|
SELECT "viewers" FROM "table1_27547668_3" WHERE "num"=13; |
## Task
Generate a SQL query to answer the following question:
`How many people watched episode number 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27547668_3" (
"num" real,
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"viewers" real,
"original_airdate" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people watched episode number 13?`:
```sql
|
SELECT "no" FROM "table1_27547668_3" WHERE "written_by"='Greg Nelson' AND "directed_by"='Keith Samples'; |
## Task
Generate a SQL query to answer the following question:
`What episode number in the season was written by Greg nelson and directed by Keith samples?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27547668_3" (
"num" real,
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"viewers" real,
"original_airdate" text,
"prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number in the season was written by Greg nelson and directed by Keith samples?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.