output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "mix_artist" FROM "table1_23649244_1" WHERE "artist_1"='Shlomo'; |
## Task
Generate a SQL query to answer the following question:
`Which mix artists have shlomo as artist 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23649244_1" (
"song_1_title" text,
"artist_1" text,
"song_2_title" text,
"artist_2" text,
"mix_artist" text,
"guitar_part" text,
"level" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mix artists have shlomo as artist 1?`:
```sql
|
SELECT COUNT("season") FROM "professional_league_1951_present" WHERE "champion"='Melgar'; |
## Task
Generate a SQL query to answer the following question:
`How many season had Melgar as a champion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "professional_league_1951_present" (
"season" real,
"champion" text,
"count" real,
"runners_up" text,
"third_place" text,
"top_scorer" text,
"top_scorers_club" text,
"goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many season had Melgar as a champion?`:
```sql
|
SELECT "season" FROM "professional_league_1951_present" WHERE "top_scorers_club"='Sporting Cristal' AND "champion"='Universitario'; |
## Task
Generate a SQL query to answer the following question:
`What year was the season with the top scoring club being Sporting Cristal and the champion was Universitario?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "professional_league_1951_present" (
"season" real,
"champion" text,
"count" real,
"runners_up" text,
"third_place" text,
"top_scorer" text,
"top_scorers_club" text,
"goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the season with the top scoring club being Sporting Cristal and the champion was Universitario?`:
```sql
|
SELECT "third_place" FROM "professional_league_1951_present" WHERE "season"=1980; |
## Task
Generate a SQL query to answer the following question:
`Who was in third place in the 1980 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "professional_league_1951_present" (
"season" real,
"champion" text,
"count" real,
"runners_up" text,
"third_place" text,
"top_scorer" text,
"top_scorers_club" text,
"goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in third place in the 1980 season?`:
```sql
|
SELECT "open_cup" FROM "year_by_year" WHERE "league"='USL PDL' AND "playoffs"='Did not qualify'; |
## Task
Generate a SQL query to answer the following question:
`Name the open cup for usl pdl for did not qualify`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the open cup for usl pdl for did not qualify`:
```sql
|
SELECT COUNT("open_cup") FROM "year_by_year" WHERE "year"=1996; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of open cup for 1996`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of open cup for 1996`:
```sql
|
SELECT "open_cup" FROM "year_by_year" WHERE "playoffs"='Division Finals'; |
## Task
Generate a SQL query to answer the following question:
`Name the open cup for division finals`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the open cup for division finals`:
```sql
|
SELECT "position" FROM "fiba_euro_basket_2009_squads" WHERE "height_m"='2.16'; |
## Task
Generate a SQL query to answer the following question:
`Name the position for 2.16`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for 2.16`:
```sql
|
SELECT "no" FROM "fiba_euro_basket_2009_squads" WHERE "height_m"='1.96'; |
## Task
Generate a SQL query to answer the following question:
`Name the number for 1.96 height`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number for 1.96 height`:
```sql
|
SELECT "height_m" FROM "fiba_euro_basket_2009_squads" WHERE "no"=7; |
## Task
Generate a SQL query to answer the following question:
`Name the height for number 7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the height for number 7`:
```sql
|
SELECT "player" FROM "fiba_euro_basket_2009_squads" WHERE "no"=5; |
## Task
Generate a SQL query to answer the following question:
`name the player for number 5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `name the player for number 5`:
```sql
|
SELECT "height_m" FROM "fiba_euro_basket_2009_squads" WHERE "height_f"='6'' 07\"'; |
## Task
Generate a SQL query to answer the following question:
`Identify every player's height in meters if the player is exactly 6' 07" tall in feet`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Identify every player's height in meters if the player is exactly 6' 07" tall in feet`:
```sql
|
SELECT "height_f" FROM "fiba_euro_basket_2009_squads" WHERE "position"='Center'; |
## Task
Generate a SQL query to answer the following question:
`For all players playing at the center, list the height in feet.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `For all players playing at the center, list the height in feet.`:
```sql
|
SELECT "no" FROM "fiba_euro_basket_2009_squads" WHERE "position"='Center'; |
## Task
Generate a SQL query to answer the following question:
`Display the serial numbers for the players who play at the center.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Display the serial numbers for the players who play at the center.`:
```sql
|
SELECT MAX("year_born") FROM "fiba_euro_basket_2009_squads" WHERE "player"='Ido Kozikaro'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of birth for basket baller called ido kozikaro`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of birth for basket baller called ido kozikaro`:
```sql
|
SELECT COUNT("position") FROM "fiba_euro_basket_2009_squads" WHERE "height_f"='6'' 07\"'; |
## Task
Generate a SQL query to answer the following question:
`How many positions are available for players who are 6' 07"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions are available for players who are 6' 07"?`:
```sql
|
SELECT "height_m" FROM "fiba_euro_basket_2009_squads" WHERE "player"='Lior Eliyahu'; |
## Task
Generate a SQL query to answer the following question:
`How tall is the basket ball player lior eliyahu in meters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is the basket ball player lior eliyahu in meters?`:
```sql
|
SELECT "average" FROM "averages" WHERE "number_of_dances"=4; |
## Task
Generate a SQL query to answer the following question:
`What was the average score for the couple that had 4 dances?`
### 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_earned" real,
"number_of_dances" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average score for the couple that had 4 dances?`:
```sql
|
SELECT COUNT("average") FROM "averages" WHERE "number_of_dances"=12; |
## Task
Generate a SQL query to answer the following question:
`How many averages were listed for the couple who had 12 dances?`
### 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_earned" real,
"number_of_dances" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many averages were listed for the couple who had 12 dances?`:
```sql
|
SELECT MAX("total_points_earned") FROM "averages" WHERE "average"='29.0'; |
## Task
Generate a SQL query to answer the following question:
`How many total points were earned from the couple that averaged 29.0 points?`
### 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_earned" real,
"number_of_dances" real,
"average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total points were earned from the couple that averaged 29.0 points?`:
```sql
|
SELECT "album_s" FROM "table1_23667534_1" WHERE "song_s_title"='It''s Going So Badly'; |
## Task
Generate a SQL query to answer the following question:
`What album was the song It's going so badly on?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23667534_1" (
"episode_title" text,
"song_s_title" text,
"writer" text,
"singer_s" text,
"album_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What album was the song It's going so badly on?`:
```sql
|
SELECT "album_s" FROM "table1_23667534_1" WHERE "song_s_title"='My Chariot'; |
## Task
Generate a SQL query to answer the following question:
`What album was the song My Chariot on?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23667534_1" (
"episode_title" text,
"song_s_title" text,
"writer" text,
"singer_s" text,
"album_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What album was the song My Chariot on?`:
```sql
|
SELECT "singer_s" FROM "table1_23667534_1" WHERE "song_s_title"='He''s Bigfoot'; |
## Task
Generate a SQL query to answer the following question:
`Who sand He's Bigfoot?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23667534_1" (
"episode_title" text,
"song_s_title" text,
"writer" text,
"singer_s" text,
"album_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who sand He's Bigfoot?`:
```sql
|
SELECT "album_s" FROM "table1_23667534_1" WHERE "episode_title"='Toy to the World' AND "song_s_title"='Shimmy Jimmy'; |
## Task
Generate a SQL query to answer the following question:
`What album was the song Shimmy Jimmy from the episode titled Toy to the world on?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23667534_1" (
"episode_title" text,
"song_s_title" text,
"writer" text,
"singer_s" text,
"album_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What album was the song Shimmy Jimmy from the episode titled Toy to the world on?`:
```sql
|
SELECT "player" FROM "fiba_euro_basket_2009_squads" WHERE "height_m"='2.07'; |
## Task
Generate a SQL query to answer the following question:
`which players have a height of 2.07m? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `which players have a height of 2.07m? `:
```sql
|
SELECT "current_club" FROM "fiba_euro_basket_2009_squads" WHERE "height_m"='2.14'; |
## Task
Generate a SQL query to answer the following question:
`Which clubs have players with height 2.14m?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which clubs have players with height 2.14m?`:
```sql
|
SELECT "player" FROM "fiba_euro_basket_2009_squads" WHERE "year_born"=1983 AND "position"='Forward'; |
## Task
Generate a SQL query to answer the following question:
`Which players were born in 1983 and play as forward position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which players were born in 1983 and play as forward position?`:
```sql
|
SELECT "current_club" FROM "fiba_euro_basket_2009_squads" WHERE "player"='Artūrs Štālbergs'; |
## Task
Generate a SQL query to answer the following question:
`What is every current club for the player Artūrs Štālbergs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every current club for the player Artūrs Štālbergs?`:
```sql
|
SELECT COUNT("player") FROM "fiba_euro_basket_2009_squads" WHERE "height_m"='2.07'; |
## Task
Generate a SQL query to answer the following question:
`How many players have a height of 2.07?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players have a height of 2.07?`:
```sql
|
SELECT MAX("year_born") FROM "fiba_euro_basket_2009_squads" WHERE "current_club"='Barons LMT'; |
## Task
Generate a SQL query to answer the following question:
`What is the latest year born when the current club is Barons LMT?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year born when the current club is Barons LMT?`:
```sql
|
SELECT COUNT("current_club") FROM "fiba_euro_basket_2009_squads" WHERE "player"='Aigars Vitols'; |
## Task
Generate a SQL query to answer the following question:
`How many current clubs have the player Aigars Vitols?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many current clubs have the player Aigars Vitols?`:
```sql
|
SELECT "year_born" FROM "fiba_euro_basket_2009_squads" WHERE "height_m"='1.88'; |
## Task
Generate a SQL query to answer the following question:
`What is every year born for height of 1.88?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every year born for height of 1.88?`:
```sql
|
SELECT "no" FROM "fiba_euro_basket_2009_squads" WHERE "player"='Aigars Vitols'; |
## Task
Generate a SQL query to answer the following question:
`What is every number when the player is Aigars Vitols?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fiba_euro_basket_2009_squads" (
"no" real,
"player" text,
"height_m" text,
"height_f" text,
"position" text,
"year_born" real,
"current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every number when the player is Aigars Vitols?`:
```sql
|
SELECT MAX("high_schools") FROM "enrollment" WHERE "district_wide"=31851; |
## Task
Generate a SQL query to answer the following question:
`Name the most high schools for 31851`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enrollment" (
"year" text,
"district_wide" real,
"high_schools" real,
"middle_schools" real,
"elementary_schools" real,
"other_programs_adjustments" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most high schools for 31851`:
```sql
|
SELECT MAX("district_wide") FROM "enrollment" WHERE "other_programs_adjustments"=1639; |
## Task
Generate a SQL query to answer the following question:
`Name the most district wide for 1639 other programs`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enrollment" (
"year" text,
"district_wide" real,
"high_schools" real,
"middle_schools" real,
"elementary_schools" real,
"other_programs_adjustments" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most district wide for 1639 other programs`:
```sql
|
SELECT COUNT("elementary_schools") FROM "enrollment" WHERE "district_wide"=31851; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of elementary schools for 31851`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enrollment" (
"year" text,
"district_wide" real,
"high_schools" real,
"middle_schools" real,
"elementary_schools" real,
"other_programs_adjustments" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of elementary schools for 31851`:
```sql
|
SELECT MAX("middle_schools") FROM "enrollment" WHERE "year"='2005-2006'; |
## Task
Generate a SQL query to answer the following question:
`Name the most middle schools for 2005-2006`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enrollment" (
"year" text,
"district_wide" real,
"high_schools" real,
"middle_schools" real,
"elementary_schools" real,
"other_programs_adjustments" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most middle schools for 2005-2006`:
```sql
|
SELECT "may_2009" FROM "average_polling" WHERE "jul_2009"='7.2%'; |
## Task
Generate a SQL query to answer the following question:
`If the polling average in July 2009 was 7.2%, what was it in May 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_polling" (
"party" text,
"result_parliam_election_2005" text,
"result_county_elections_2007" text,
"aug_2008" text,
"sep_2008" text,
"oct_2008" text,
"nov_2008" text,
"dec_2008" text,
"jan_2009" text,
"feb_2009" text,
"mar_2009" text,
"apr_2009" text,
"may_2009" text,
"jun_2009" text,
"jul_2009" text,
"aug_2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the polling average in July 2009 was 7.2%, what was it in May 2009?`:
```sql
|
SELECT "aug_2008" FROM "average_polling" WHERE "sep_2008"='5.0%'; |
## Task
Generate a SQL query to answer the following question:
`What was the polling average in Aug 2009 when is was 5.0% in Sep 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_polling" (
"party" text,
"result_parliam_election_2005" text,
"result_county_elections_2007" text,
"aug_2008" text,
"sep_2008" text,
"oct_2008" text,
"nov_2008" text,
"dec_2008" text,
"jan_2009" text,
"feb_2009" text,
"mar_2009" text,
"apr_2009" text,
"may_2009" text,
"jun_2009" text,
"jul_2009" text,
"aug_2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the polling average in Aug 2009 when is was 5.0% in Sep 2009?`:
```sql
|
SELECT COUNT("oct_2008") FROM "average_polling" WHERE "aug_2008"='30.8%'; |
## Task
Generate a SQL query to answer the following question:
`How many polling percentages were there in October 2008 when is was 30.8% in Aug 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_polling" (
"party" text,
"result_parliam_election_2005" text,
"result_county_elections_2007" text,
"aug_2008" text,
"sep_2008" text,
"oct_2008" text,
"nov_2008" text,
"dec_2008" text,
"jan_2009" text,
"feb_2009" text,
"mar_2009" text,
"apr_2009" text,
"may_2009" text,
"jun_2009" text,
"jul_2009" text,
"aug_2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many polling percentages were there in October 2008 when is was 30.8% in Aug 2008?`:
```sql
|
SELECT "party" FROM "average_polling" WHERE "dec_2008"='6.3%'; |
## Task
Generate a SQL query to answer the following question:
`Name the party/s when the polling percentage was 6.3% in Dec 2008.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_polling" (
"party" text,
"result_parliam_election_2005" text,
"result_county_elections_2007" text,
"aug_2008" text,
"sep_2008" text,
"oct_2008" text,
"nov_2008" text,
"dec_2008" text,
"jan_2009" text,
"feb_2009" text,
"mar_2009" text,
"apr_2009" text,
"may_2009" text,
"jun_2009" text,
"jul_2009" text,
"aug_2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the party/s when the polling percentage was 6.3% in Dec 2008.`:
```sql
|
SELECT "jul_2009" FROM "average_polling" WHERE "result_parliam_election_2005"='6.5%'; |
## Task
Generate a SQL query to answer the following question:
`What was the polling percentage in Jul 2009 when the Parliament Election result of 2005 was 6.5%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_polling" (
"party" text,
"result_parliam_election_2005" text,
"result_county_elections_2007" text,
"aug_2008" text,
"sep_2008" text,
"oct_2008" text,
"nov_2008" text,
"dec_2008" text,
"jan_2009" text,
"feb_2009" text,
"mar_2009" text,
"apr_2009" text,
"may_2009" text,
"jun_2009" text,
"jul_2009" text,
"aug_2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the polling percentage in Jul 2009 when the Parliament Election result of 2005 was 6.5%?`:
```sql
|
SELECT "nov_2008" FROM "average_polling" WHERE "aug_2008"='1.7%'; |
## Task
Generate a SQL query to answer the following question:
`What was the polling percentage in Nov 2008 when it was 1.7% in Aug 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_polling" (
"party" text,
"result_parliam_election_2005" text,
"result_county_elections_2007" text,
"aug_2008" text,
"sep_2008" text,
"oct_2008" text,
"nov_2008" text,
"dec_2008" text,
"jan_2009" text,
"feb_2009" text,
"mar_2009" text,
"apr_2009" text,
"may_2009" text,
"jun_2009" text,
"jul_2009" text,
"aug_2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the polling percentage in Nov 2008 when it was 1.7% in Aug 2008?`:
```sql
|
SELECT "week_32" FROM "average_polling" WHERE "week_33"='31.9%'; |
## Task
Generate a SQL query to answer the following question:
`What is the week 32 result when week 33 is 31.9%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_polling" (
"party" text,
"week_32" text,
"week_33" text,
"week_34" text,
"week_35" text,
"week_36" text,
"week_37" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 32 result when week 33 is 31.9%?`:
```sql
|
SELECT "week_37" FROM "average_polling" WHERE "week_33"='14.3%'; |
## Task
Generate a SQL query to answer the following question:
`List all week 37 results when week 33 is 14.3%.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_polling" (
"party" text,
"week_32" text,
"week_33" text,
"week_34" text,
"week_35" text,
"week_36" text,
"week_37" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all week 37 results when week 33 is 14.3%.`:
```sql
|
SELECT COUNT("week_36") FROM "average_polling" WHERE "week_32"='13.2%'; |
## Task
Generate a SQL query to answer the following question:
`List the full amount of week 36 results when week 32 is 13.2%.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "average_polling" (
"party" text,
"week_32" text,
"week_33" text,
"week_34" text,
"week_35" text,
"week_36" text,
"week_37" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the full amount of week 36 results when week 32 is 13.2%.`:
```sql
|
SELECT "est" FROM "table1_23685890_2" WHERE "land_area_km"='4563'; |
## Task
Generate a SQL query to answer the following question:
`On what year was the local government area with a surface of 4563 square kilometers established?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23685890_2" (
"local_government_area" text,
"type" text,
"major_town" text,
"land_area_km" text,
"pop_2006" real,
"density_km_2" real,
"towns" real,
"est" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what year was the local government area with a surface of 4563 square kilometers established?`:
```sql
|
SELECT "major_town" FROM "table1_23685890_2" WHERE "local_government_area"='Outback Areas Community Development Trust'; |
## Task
Generate a SQL query to answer the following question:
`Which major town is located within the Outback Areas Community Development Trust?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23685890_2" (
"local_government_area" text,
"type" text,
"major_town" text,
"land_area_km" text,
"pop_2006" real,
"density_km_2" real,
"towns" real,
"est" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which major town is located within the Outback Areas Community Development Trust?`:
```sql
|
SELECT MIN("towns") FROM "table1_23685890_2" WHERE "land_area_km"='110'; |
## Task
Generate a SQL query to answer the following question:
`How many towns exist on the government area with a surface of 110 square kilometers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23685890_2" (
"local_government_area" text,
"type" text,
"major_town" text,
"land_area_km" text,
"pop_2006" real,
"density_km_2" real,
"towns" real,
"est" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many towns exist on the government area with a surface of 110 square kilometers?`:
```sql
|
SELECT "type" FROM "table1_23685890_2" WHERE "local_government_area"='Yalata'; |
## Task
Generate a SQL query to answer the following question:
`What type of local government area is Yalata?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23685890_2" (
"local_government_area" text,
"type" text,
"major_town" text,
"land_area_km" text,
"pop_2006" real,
"density_km_2" real,
"towns" real,
"est" real
);
### SQL
Given the database schema, here is the SQL query that answers `What type of local government area is Yalata?`:
```sql
|
SELECT "pop_2006" FROM "table1_23685890_2" WHERE "major_town"='Coober Pedy'; |
## Task
Generate a SQL query to answer the following question:
`What was the 2006 population count of the local government area where Coober Pedy is located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23685890_2" (
"local_government_area" text,
"type" text,
"major_town" text,
"land_area_km" text,
"pop_2006" real,
"density_km_2" real,
"towns" real,
"est" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2006 population count of the local government area where Coober Pedy is located?`:
```sql
|
SELECT MAX("week") FROM "schedule" WHERE "attendance"=20114; |
## Task
Generate a SQL query to answer the following question:
`During what week was the game attended by 20114 people?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `During what week was the game attended by 20114 people?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "date"='July 28'; |
## Task
Generate a SQL query to answer the following question:
` What was the record in game played on July 28?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers ` What was the record in game played on July 28?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "opponent"='Eskimos'; |
## Task
Generate a SQL query to answer the following question:
`What was the record in the game against Eskimos?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record in the game against Eskimos?`:
```sql
|
SELECT "name" FROM "2012" WHERE "wsop_earnings"='$36,372'; |
## Task
Generate a SQL query to answer the following question:
`Whose WSOP earnings were $36,372? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012" (
"name" text,
"starting_chip_count" real,
"wsop_bracelets" real,
"wsop_cashes" real,
"wsop_earnings" text,
"final_place" text,
"prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whose WSOP earnings were $36,372? `:
```sql
|
SELECT "wsop_cashes" FROM "2012" WHERE "wsop_earnings"='0'; |
## Task
Generate a SQL query to answer the following question:
`The person who had 0 WSOP earnings had how man WSOP cashes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012" (
"name" text,
"starting_chip_count" real,
"wsop_bracelets" real,
"wsop_cashes" real,
"wsop_earnings" text,
"final_place" text,
"prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `The person who had 0 WSOP earnings had how man WSOP cashes?`:
```sql
|
SELECT "name" FROM "2012" WHERE "wsop_cashes"=2 AND "final_place"='6th'; |
## Task
Generate a SQL query to answer the following question:
`Who had 2 WSOP cashes and was 6th in final place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012" (
"name" text,
"starting_chip_count" real,
"wsop_bracelets" real,
"wsop_cashes" real,
"wsop_earnings" text,
"final_place" text,
"prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had 2 WSOP cashes and was 6th in final place?`:
```sql
|
SELECT MIN("wsop_bracelets") FROM "2012"; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest amount of WSOP bracelets anyone had?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012" (
"name" text,
"starting_chip_count" real,
"wsop_bracelets" real,
"wsop_cashes" real,
"wsop_earnings" text,
"final_place" text,
"prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest amount of WSOP bracelets anyone had?`:
```sql
|
SELECT "wsop_cashes" FROM "2012" WHERE "wsop_earnings"='$126,796'; |
## Task
Generate a SQL query to answer the following question:
`The person who had $126,796 WSOP earnings had how many WSOP cashes? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2012" (
"name" text,
"starting_chip_count" real,
"wsop_bracelets" real,
"wsop_cashes" real,
"wsop_earnings" text,
"final_place" text,
"prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `The person who had $126,796 WSOP earnings had how many WSOP cashes? `:
```sql
|
SELECT MAX("high_10_profile") FROM "table1_237036_2" WHERE "high_profile"=80; |
## Task
Generate a SQL query to answer the following question:
`What is the high 10 profile number when the high profile is 80?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_237036_2" (
"level" text,
"luma_samples_s" real,
"macroblocks_s" real,
"luma_samples" real,
"macroblocks" real,
"baseline_extended_and_main_profiles" real,
"high_profile" real,
"high_10_profile" real,
"examples_for_high_resolution_highest_frame_rate_max_stored_frames_toggle_additional_details" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the high 10 profile number when the high profile is 80?`:
```sql
|
SELECT MIN("baseline_extended_and_main_profiles") FROM "table1_237036_2" WHERE "level"='1.3'; |
## Task
Generate a SQL query to answer the following question:
`What is the baseline extended and main profiles when level is 1.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_237036_2" (
"level" text,
"luma_samples_s" real,
"macroblocks_s" real,
"luma_samples" real,
"macroblocks" real,
"baseline_extended_and_main_profiles" real,
"high_profile" real,
"high_10_profile" real,
"examples_for_high_resolution_highest_frame_rate_max_stored_frames_toggle_additional_details" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the baseline extended and main profiles when level is 1.3?`:
```sql
|
SELECT "level" FROM "table1_237036_2" WHERE "macroblocks_s"=11880 AND "high_10_profile"=6000; |
## Task
Generate a SQL query to answer the following question:
`What level has 11880 macroblocks and high 10 profile is 6000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_237036_2" (
"level" text,
"luma_samples_s" real,
"macroblocks_s" real,
"luma_samples" real,
"macroblocks" real,
"baseline_extended_and_main_profiles" real,
"high_profile" real,
"high_10_profile" real,
"examples_for_high_resolution_highest_frame_rate_max_stored_frames_toggle_additional_details" text
);
### SQL
Given the database schema, here is the SQL query that answers `What level has 11880 macroblocks and high 10 profile is 6000?`:
```sql
|
SELECT "luma_samples_s" FROM "table1_237036_2" WHERE "level"='1.3'; |
## Task
Generate a SQL query to answer the following question:
`What are the luma samples at level 1.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_237036_2" (
"level" text,
"luma_samples_s" real,
"macroblocks_s" real,
"luma_samples" real,
"macroblocks" real,
"baseline_extended_and_main_profiles" real,
"high_profile" real,
"high_10_profile" real,
"examples_for_high_resolution_highest_frame_rate_max_stored_frames_toggle_additional_details" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the luma samples at level 1.3?`:
```sql
|
SELECT "high_10_profile" FROM "table1_237036_2" WHERE "high_profile"=160; |
## Task
Generate a SQL query to answer the following question:
`What is the high 10 profile when high profile is 160?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_237036_2" (
"level" text,
"luma_samples_s" real,
"macroblocks_s" real,
"luma_samples" real,
"macroblocks" real,
"baseline_extended_and_main_profiles" real,
"high_profile" real,
"high_10_profile" real,
"examples_for_high_resolution_highest_frame_rate_max_stored_frames_toggle_additional_details" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the high 10 profile when high profile is 160?`:
```sql
|
SELECT "original_air_date" FROM "table1_23705843_1" WHERE "ratings_millions"='1.92'; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date if the ratings is 1.92 million?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23705843_1" (
"episode" text,
"director" text,
"writer" text,
"original_air_date" text,
"ratings_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date if the ratings is 1.92 million?`:
```sql
|
SELECT "writer" FROM "table1_23705843_1" WHERE "ratings_millions"='2.61'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the writer when the ratings was 2.61 million?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23705843_1" (
"episode" text,
"director" text,
"writer" text,
"original_air_date" text,
"ratings_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the writer when the ratings was 2.61 million?`:
```sql
|
SELECT "originalairdate" FROM "table1_2370579_1" WHERE "title"='\"The Killing (part two)\"'; |
## Task
Generate a SQL query to answer the following question:
`What date did the episode "the killing (part two)" originally air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2370579_1" (
"episode_num" real,
"prod_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text,
"filmed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode "the killing (part two)" originally air?`:
```sql
|
SELECT "directed_by" FROM "table1_2370579_1" WHERE "written_by"='Tony O''Grady (pseudonym of Brian Clemens)'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode written by Tony O'Grady (pseudonym of brian clemens)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2370579_1" (
"episode_num" real,
"prod_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text,
"filmed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode written by Tony O'Grady (pseudonym of brian clemens)?`:
```sql
|
SELECT MIN("prod_num") FROM "table1_2370579_1" WHERE "episode_num"=23; |
## Task
Generate a SQL query to answer the following question:
`What is the production number for episode 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2370579_1" (
"episode_num" real,
"prod_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text,
"filmed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production number for episode 23?`:
```sql
|
SELECT "filmed" FROM "table1_2370579_1" WHERE "title"='\"Storm Warning (part one)\"'; |
## Task
Generate a SQL query to answer the following question:
`What month and year was "storm warning (part one)" filmed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2370579_1" (
"episode_num" real,
"prod_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"originalairdate" text,
"filmed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What month and year was "storm warning (part one)" filmed?`:
```sql
|
SELECT "romanian_colloquial" FROM "future_tense" WHERE "english"='(s)he will sing'; |
## Task
Generate a SQL query to answer the following question:
`What is the colloquial translation of (s)he will sing? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "future_tense" (
"aromanian_gramustean_farshirot" text,
"romanian_archaic" text,
"romanian_colloquial" text,
"romanian_modern" text,
"english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the colloquial translation of (s)he will sing? `:
```sql
|
SELECT "date" FROM "bowl_games" WHERE "city"='El Paso, Texas'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the game played in El Paso, Texas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"bowl_game" text,
"date" text,
"stadium" text,
"city" text,
"television" text,
"matchup_results" text,
"attendance" real,
"payout_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game played in El Paso, Texas?`:
```sql
|
SELECT COUNT("matchup_results") FROM "bowl_games" WHERE "city"='San Diego, California'; |
## Task
Generate a SQL query to answer the following question:
`How many different matchup/results appear in San Diego, California?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"bowl_game" text,
"date" text,
"stadium" text,
"city" text,
"television" text,
"matchup_results" text,
"attendance" real,
"payout_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different matchup/results appear in San Diego, California?`:
```sql
|
SELECT COUNT("television") FROM "bowl_games" WHERE "matchup_results"='Iowa State 14, Minnesota 13'; |
## Task
Generate a SQL query to answer the following question:
`How many different items appear in the television column when the results where Iowa State 14, Minnesota 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"bowl_game" text,
"date" text,
"stadium" text,
"city" text,
"television" text,
"matchup_results" text,
"attendance" real,
"payout_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different items appear in the television column when the results where Iowa State 14, Minnesota 13?`:
```sql
|
SELECT COUNT("attendance") FROM "bowl_games" WHERE "stadium"='Sun Devil Stadium'; |
## Task
Generate a SQL query to answer the following question:
`How many different items appear in he attendance column at Sun Devil Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"bowl_game" text,
"date" text,
"stadium" text,
"city" text,
"television" text,
"matchup_results" text,
"attendance" real,
"payout_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different items appear in he attendance column at Sun Devil Stadium?`:
```sql
|
SELECT "bowl_game" FROM "bowl_games" WHERE "matchup_results"='Oklahoma 31, Stanford 27'; |
## Task
Generate a SQL query to answer the following question:
`In what bowl game was the result Oklahoma 31, Stanford 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"bowl_game" text,
"date" text,
"stadium" text,
"city" text,
"television" text,
"matchup_results" text,
"attendance" real,
"payout_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what bowl game was the result Oklahoma 31, Stanford 27?`:
```sql
|
SELECT "television" FROM "bowl_games" WHERE "date"='December 28, 2009'; |
## Task
Generate a SQL query to answer the following question:
`What was the television that was dated December 28, 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bowl_games" (
"bowl_game" text,
"date" text,
"stadium" text,
"city" text,
"television" text,
"matchup_results" text,
"attendance" real,
"payout_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the television that was dated December 28, 2009?`:
```sql
|
SELECT "rank" FROM "manufacturer_s_worldwide_ranking" WHERE "2009_revenue"='$296,000,000'; |
## Task
Generate a SQL query to answer the following question:
`Which rank has a 2009 revenue of $296,000,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "manufacturer_s_worldwide_ranking" (
"rank" real,
"company_name" text,
"2008_rank" text,
"2009_revenue" text,
"north_american_brands" text,
"world_headquarters" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rank has a 2009 revenue of $296,000,000?`:
```sql
|
SELECT "country" FROM "manufacturer_s_worldwide_ranking" WHERE "company_name"='Doosan Infracore'; |
## Task
Generate a SQL query to answer the following question:
`Which country has doosan infracore as then company name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "manufacturer_s_worldwide_ranking" (
"rank" real,
"company_name" text,
"2008_rank" text,
"2009_revenue" text,
"north_american_brands" text,
"world_headquarters" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has doosan infracore as then company name?`:
```sql
|
SELECT COUNT("north_american_brands") FROM "manufacturer_s_worldwide_ranking" WHERE "world_headquarters"='Sagamihara'; |
## Task
Generate a SQL query to answer the following question:
`How many north american brands have world headquarters in sagamihara?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "manufacturer_s_worldwide_ranking" (
"rank" real,
"company_name" text,
"2008_rank" text,
"2009_revenue" text,
"north_american_brands" text,
"world_headquarters" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many north american brands have world headquarters in sagamihara?`:
```sql
|
SELECT "company_name" FROM "manufacturer_s_worldwide_ranking" WHERE "world_headquarters"='Nagaokakyo, Kyoto'; |
## Task
Generate a SQL query to answer the following question:
`Which company name has headquarters in nagaokakyo, kyoto?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "manufacturer_s_worldwide_ranking" (
"rank" real,
"company_name" text,
"2008_rank" text,
"2009_revenue" text,
"north_american_brands" text,
"world_headquarters" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which company name has headquarters in nagaokakyo, kyoto?`:
```sql
|
SELECT COUNT("company_name") FROM "manufacturer_s_worldwide_ranking" WHERE "2008_rank"='N/A'; |
## Task
Generate a SQL query to answer the following question:
`Which company name has a 2008 rank of n/a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "manufacturer_s_worldwide_ranking" (
"rank" real,
"company_name" text,
"2008_rank" text,
"2009_revenue" text,
"north_american_brands" text,
"world_headquarters" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which company name has a 2008 rank of n/a?`:
```sql
|
SELECT "bore_mm" FROM "engines" WHERE "vehicle_code"='T214'; |
## Task
Generate a SQL query to answer the following question:
`what is the bore where the vehicle code is t214?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"vehicle_code" text,
"bore_mm" text,
"stroke_mm" text,
"capacity_cm_3" real,
"compression_ratio" text,
"torque_n_m" real,
"power_hp" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the bore where the vehicle code is t214?`:
```sql
|
SELECT "compression_ratio" FROM "engines" WHERE "torque_n_m"=208; |
## Task
Generate a SQL query to answer the following question:
`what is the compression ratio whre the torque is 208?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"vehicle_code" text,
"bore_mm" text,
"stroke_mm" text,
"capacity_cm_3" real,
"compression_ratio" text,
"torque_n_m" real,
"power_hp" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the compression ratio whre the torque is 208?`:
```sql
|
SELECT "vehicle_code" FROM "engines" WHERE "bore_mm"='79.4'; |
## Task
Generate a SQL query to answer the following question:
`what is the vehicle code where the bore is 79.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"vehicle_code" text,
"bore_mm" text,
"stroke_mm" text,
"capacity_cm_3" real,
"compression_ratio" text,
"torque_n_m" real,
"power_hp" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the vehicle code where the bore is 79.4?`:
```sql
|
SELECT "stroke_mm" FROM "engines" WHERE "vehicle_code"='T211'; |
## Task
Generate a SQL query to answer the following question:
`what is the stroke where the vehicle code is t211?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"vehicle_code" text,
"bore_mm" text,
"stroke_mm" text,
"capacity_cm_3" real,
"compression_ratio" text,
"torque_n_m" real,
"power_hp" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the stroke where the vehicle code is t211?`:
```sql
|
SELECT "rating_share_18_49" FROM "season_1_2010" WHERE "viewers_millions"='5.90'; |
## Task
Generate a SQL query to answer the following question:
`What was the rating/share for 18-49 for the episode that had 5.90 million viewers? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2010" (
"no" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rating/share for 18-49 for the episode that had 5.90 million viewers? `:
```sql
|
SELECT "episode" FROM "season_1_2010" WHERE "no"=3; |
## Task
Generate a SQL query to answer the following question:
`What was the title of episode 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2010" (
"no" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title of episode 3?`:
```sql
|
SELECT MIN("no") FROM "season_1_2010" WHERE "rating"='4.7'; |
## Task
Generate a SQL query to answer the following question:
`What number episode had a rating of 4.7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2010" (
"no" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What number episode had a rating of 4.7?`:
```sql
|
SELECT MIN("share") FROM "season_1_2010" WHERE "episode"='\"Lisa Kudrow\"'; |
## Task
Generate a SQL query to answer the following question:
`What was the share for the "Lisa Kudrow" episode? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2010" (
"no" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the share for the "Lisa Kudrow" episode? `:
```sql
|
SELECT "rating" FROM "season_1_2010" WHERE "viewers_millions"='5.90'; |
## Task
Generate a SQL query to answer the following question:
`What was the rating for the episode that had 5.90 million viewers? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2010" (
"no" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rating for the episode that had 5.90 million viewers? `:
```sql
|
SELECT MIN("no") FROM "season_1_2010" WHERE "rating"='4.2'; |
## Task
Generate a SQL query to answer the following question:
`What number episode had a 4.2 rating? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_1_2010" (
"no" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What number episode had a 4.2 rating? `:
```sql
|
SELECT COUNT("winning_coach") FROM "by_year" WHERE "top_team_in_regular_season_points"='Kansas City Spurs (110 points)'; |
## Task
Generate a SQL query to answer the following question:
`What is the winning coach total number if the top team in regular season (points) is the Kansas City Spurs (110 points)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_year" (
"year" real,
"winner_number_of_titles" text,
"runners_up" text,
"top_team_in_regular_season_points" text,
"top_scorer_points" text,
"winning_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning coach total number if the top team in regular season (points) is the Kansas City Spurs (110 points)?`:
```sql
|
SELECT "winner_number_of_titles" FROM "by_year" WHERE "top_team_in_regular_season_points"='New York Cosmos (200 points)'; |
## Task
Generate a SQL query to answer the following question:
`If the top team in regular season (points) is the New York Cosmos (200 points), what is the winner (number of titles)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_year" (
"year" real,
"winner_number_of_titles" text,
"runners_up" text,
"top_team_in_regular_season_points" text,
"top_scorer_points" text,
"winning_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the top team in regular season (points) is the New York Cosmos (200 points), what is the winner (number of titles)?`:
```sql
|
SELECT "winner_number_of_titles" FROM "by_year" WHERE "runners_up"='Fort Lauderdale Strikers'; |
## Task
Generate a SQL query to answer the following question:
`If the runner-up is the Fort Lauderdale Strikers, what is the winner (number of titles)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_year" (
"year" real,
"winner_number_of_titles" text,
"runners_up" text,
"top_team_in_regular_season_points" text,
"top_scorer_points" text,
"winning_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the runner-up is the Fort Lauderdale Strikers, what is the winner (number of titles)?`:
```sql
|
SELECT COUNT("other") FROM "table1_23777640_1" WHERE "gn_divisions"=95; |
## Task
Generate a SQL query to answer the following question:
`How many figures for Other in the district where the GN division is 95?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23777640_1" (
"administrative_district" text,
"ds_divisions" real,
"gn_divisions" real,
"total_area_km_2" real,
"land_area_km_2" real,
"sri_lankan_tamil" real,
"sri_lankan_moors" real,
"sinhalese" real,
"indian_tamil" real,
"other" real,
"total" real,
"population_density_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures for Other in the district where the GN division is 95?`:
```sql
|
SELECT "market_share" FROM "in_operation" WHERE "technology"='CDMA EVDO GSM EDGE HSPA+'; |
## Task
Generate a SQL query to answer the following question:
`What was the market share of the operator whose technology is CDMA EVDO GSM EDGE HSPA+?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in_operation" (
"rank" real,
"operators_name" text,
"technology" text,
"subscribers_in_millions" text,
"ownership" text,
"market_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the market share of the operator whose technology is CDMA EVDO GSM EDGE HSPA+?`:
```sql
|
SELECT MIN("rank") FROM "in_operation" WHERE "technology"='CDMA EVDO'; |
## Task
Generate a SQL query to answer the following question:
`What was the rank of operator whose technology is CDMA EVDO?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in_operation" (
"rank" real,
"operators_name" text,
"technology" text,
"subscribers_in_millions" text,
"ownership" text,
"market_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of operator whose technology is CDMA EVDO?`:
```sql
|
SELECT MIN("production_code") FROM "table1_23793770_1" WHERE "directed_by"='Michael Morris'; |
## Task
Generate a SQL query to answer the following question:
`What was the production code for the episode directed by Michael Morris?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23793770_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production code for the episode directed by Michael Morris?`:
```sql
|
SELECT "title" FROM "table1_23793770_1" WHERE "directed_by"='Allison Liddi-Brown'; |
## Task
Generate a SQL query to answer the following question:
`What is the title the episode directed by Allison Liddi-Brown?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23793770_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title the episode directed by Allison Liddi-Brown?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.