output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "title" FROM "table1_27547668_2" WHERE "prod_code"=102; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode with production code 102?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27547668_2" (
"num" 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 title of the episode with production code 102?`:
```sql
|
SELECT "original_airdate" FROM "table1_27547668_2" WHERE "num"=6; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date of # 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27547668_2" (
"num" 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 original air date of # 6?`:
```sql
|
SELECT "original_airdate" FROM "table1_27547668_2" WHERE "viewers"=908000; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date of the episode with 908000 viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27547668_2" (
"num" 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 original air date of the episode with 908000 viewers?`:
```sql
|
SELECT COUNT("season_premiere") FROM "table1_27553627_2" WHERE "viewers_in_millions"='15.27'; |
## Task
Generate a SQL query to answer the following question:
`How many season premieres had 15.27 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27553627_2" (
"season" text,
"episodes" real,
"timeslot_est" text,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"rank" text,
"viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many season premieres had 15.27 million viewers?`:
```sql
|
SELECT "season_finale" FROM "table1_27553627_2" WHERE "rank"='20th'; |
## Task
Generate a SQL query to answer the following question:
`When was the season finale that ranked 20th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27553627_2" (
"season" text,
"episodes" real,
"timeslot_est" text,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"rank" text,
"viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the season finale that ranked 20th?`:
```sql
|
SELECT "tv_season" FROM "table1_27553627_2" WHERE "viewers_in_millions"='14.54'; |
## Task
Generate a SQL query to answer the following question:
`What tv season year had 14.54 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27553627_2" (
"season" text,
"episodes" real,
"timeslot_est" text,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"rank" text,
"viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tv season year had 14.54 million viewers?`:
```sql
|
SELECT "season_premiere" FROM "table1_27553627_2" WHERE "season_finale"='May 22, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What season premiere date had a finale on may 22, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27553627_2" (
"season" text,
"episodes" real,
"timeslot_est" text,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"rank" text,
"viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season premiere date had a finale on may 22, 2007?`:
```sql
|
SELECT MAX("episodes") FROM "table1_27553627_2" WHERE "viewers_in_millions"='14.41'; |
## Task
Generate a SQL query to answer the following question:
`What episode number had 14.41 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27553627_2" (
"season" text,
"episodes" real,
"timeslot_est" text,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"rank" text,
"viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number had 14.41 million viewers?`:
```sql
|
SELECT MIN("rnd") FROM "table1_27561505_2" WHERE "circuit"='Laguna Seca'; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum rnd at Laguna Seca?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27561505_2" (
"rnd" real,
"circuit" text,
"sports_2_0_winning_team" text,
"sports_2_0_winning_team" text,
"gt_2_0_winning_team" text,
"gt_2_0_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum rnd at Laguna Seca?`:
```sql
|
SELECT COUNT("gt_2_0_winning_team") FROM "table1_27561503_2" WHERE "sports_2_0_winning_team"='#16 Trans Ocean Motors' AND "circuit"='Castle Rock'; |
## Task
Generate a SQL query to answer the following question:
`Name the gt 2.0 winning team for sports 2.0 winning team for #16 trans ocean motors for castle rock`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27561503_2" (
"rnd" real,
"circuit" text,
"sports_2_0_winning_team" text,
"sports_2_0_winning_team" text,
"gt_2_0_winning_team" text,
"gt_2_0_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gt 2.0 winning team for sports 2.0 winning team for #16 trans ocean motors for castle rock`:
```sql
|
SELECT MIN("rnd") FROM "table1_27561503_2" WHERE "sports_2_0_winning_team"='Hap Sharp'; |
## Task
Generate a SQL query to answer the following question:
`Name the rnd for hap sharp`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27561503_2" (
"rnd" real,
"circuit" text,
"sports_2_0_winning_team" text,
"sports_2_0_winning_team" text,
"gt_2_0_winning_team" text,
"gt_2_0_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rnd for hap sharp`:
```sql
|
SELECT COUNT("results") FROM "table1_27561503_2" WHERE "sports_2_0_winning_team"='#23 Lotus'; |
## Task
Generate a SQL query to answer the following question:
`Name the results for #23 lotus`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27561503_2" (
"rnd" real,
"circuit" text,
"sports_2_0_winning_team" text,
"sports_2_0_winning_team" text,
"gt_2_0_winning_team" text,
"gt_2_0_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the results for #23 lotus`:
```sql
|
SELECT "sports_2_0_winning_team" FROM "table1_27561503_2" WHERE "sports_2_0_winning_team"='Hap Sharp' AND "circuit"='Castle Rock'; |
## Task
Generate a SQL query to answer the following question:
`Name the sports 2.0 winning team for hap sharp and castle rock`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27561503_2" (
"rnd" real,
"circuit" text,
"sports_2_0_winning_team" text,
"sports_2_0_winning_team" text,
"gt_2_0_winning_team" text,
"gt_2_0_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sports 2.0 winning team for hap sharp and castle rock`:
```sql
|
SELECT "results" FROM "table1_27561503_2" WHERE "gt_2_0_winning_team"='Herb Wetanson'; |
## Task
Generate a SQL query to answer the following question:
`Name results for herb wetanson`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27561503_2" (
"rnd" real,
"circuit" text,
"sports_2_0_winning_team" text,
"sports_2_0_winning_team" text,
"gt_2_0_winning_team" text,
"gt_2_0_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name results for herb wetanson`:
```sql
|
SELECT "province" FROM "table1_27592654_2" WHERE "electorate"='Collingwood'; |
## Task
Generate a SQL query to answer the following question:
`What was the province if the electorate was Collingwood?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27592654_2" (
"member" text,
"electorate" text,
"province" text,
"m_ps_term" text,
"election_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the province if the electorate was Collingwood?`:
```sql
|
SELECT "province" FROM "table1_27592654_2" WHERE "election_date"='5 Cannot handle non-empty timestamp argument! 1861'; |
## Task
Generate a SQL query to answer the following question:
`What was the province with an election date of 5 cannot handle non-empty timestamp argument! 1861?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27592654_2" (
"member" text,
"electorate" text,
"province" text,
"m_ps_term" text,
"election_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the province with an election date of 5 cannot handle non-empty timestamp argument! 1861?`:
```sql
|
SELECT "races" FROM "career_summary" WHERE "final_placing"='5th'; |
## Task
Generate a SQL query to answer the following question:
`Name the races for final placing being 5th`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team_name" text,
"races" real,
"poles" real,
"wins" real,
"podiums" real,
"f_laps" real,
"points" real,
"final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the races for final placing being 5th`:
```sql
|
SELECT MAX("poles") FROM "career_summary" WHERE "podiums"=4; |
## Task
Generate a SQL query to answer the following question:
`Name the post poles for 4 podiums`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team_name" text,
"races" real,
"poles" real,
"wins" real,
"podiums" real,
"f_laps" real,
"points" real,
"final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the post poles for 4 podiums`:
```sql
|
SELECT "result" FROM "performances" WHERE "song_choice"='\"Olhar 43\"'; |
## Task
Generate a SQL query to answer the following question:
`What was the result for Barreto when his song choice was "Olhar 43"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for Barreto when his song choice was "Olhar 43"?`:
```sql
|
SELECT "song_choice" FROM "performances" WHERE "theme"='Samba'; |
## Task
Generate a SQL query to answer the following question:
`What was Barreto's song choice when the theme was samba?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Barreto's song choice when the theme was samba?`:
```sql
|
SELECT "song_choice" FROM "performances" WHERE "original_artist"='Patricia Marx'; |
## Task
Generate a SQL query to answer the following question:
`What was Barreto's song choice where the original artist was Patricia Marx?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Barreto's song choice where the original artist was Patricia Marx?`:
```sql
|
SELECT "week_num" FROM "performances" WHERE "original_artist"='Leila Pinheiro'; |
## Task
Generate a SQL query to answer the following question:
`In which week # was the original artist of Barreto's song choice was Leila Pinheiro?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which week # was the original artist of Barreto's song choice was Leila Pinheiro?`:
```sql
|
SELECT "original_artist" FROM "performances" WHERE "song_choice"='\"É Preciso Saber Viver\"'; |
## Task
Generate a SQL query to answer the following question:
`Who is the original artist of "É Preciso Saber Viver"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the original artist of "É Preciso Saber Viver"?`:
```sql
|
SELECT MIN("year") FROM "doubles_19_9_titles_10_runners_up"; |
## Task
Generate a SQL query to answer the following question:
`When did the earliest tournament happened?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_19_9_titles_10_runners_up" (
"outcome" text,
"year" real,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the earliest tournament happened?`:
```sql
|
SELECT "partner" FROM "doubles_19_9_titles_10_runners_up" WHERE "score"='6–2, 3–6, 6–7 (7-9)'; |
## Task
Generate a SQL query to answer the following question:
`Who was Petrova's partner where she scored 6–2, 3–6, 6–7 (7-9)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_19_9_titles_10_runners_up" (
"outcome" text,
"year" real,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Petrova's partner where she scored 6–2, 3–6, 6–7 (7-9)?`:
```sql
|
SELECT "opponents" FROM "doubles_19_9_titles_10_runners_up" WHERE "partner"='Vania King'; |
## Task
Generate a SQL query to answer the following question:
`Who were Petrova's opponents with Vania King?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_19_9_titles_10_runners_up" (
"outcome" text,
"year" real,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were Petrova's opponents with Vania King?`:
```sql
|
SELECT COUNT("series_num") FROM "table1_27610775_1" WHERE "directed_by"='Sean McNamara' AND "title"='\"Blue in the Face\"'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes titled "Blue in the face" were directed by Sean McNamara?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27610775_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes titled "Blue in the face" were directed by Sean McNamara?`:
```sql
|
SELECT "written_by" FROM "table1_27610775_1" WHERE "prod_code"=211; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with the production code 211?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27610775_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with the production code 211?`:
```sql
|
SELECT MAX("prod_code") FROM "table1_27610775_1" WHERE "directed_by"='Sean McNamara'; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum production code of the episode directed by Sean McNamara?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27610775_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum production code of the episode directed by Sean McNamara?`:
```sql
|
SELECT COUNT("audition_city") FROM "regional_auditions" WHERE "episode_air_date"='June 24, 2010'; |
## Task
Generate a SQL query to answer the following question:
`How many audition city's are there with an episode air date of June 24, 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regional_auditions" (
"episode_air_date" text,
"audition_city" text,
"audition_date" text,
"audition_venue" text,
"guest_fourth_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many audition city's are there with an episode air date of June 24, 2010?`:
```sql
|
SELECT "episode_air_date" FROM "regional_auditions" WHERE "audition_venue"='Nego Quirido Sambadrome'; |
## Task
Generate a SQL query to answer the following question:
`List all episode air dates that auditioned at Nego Quirido Sambadrome?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regional_auditions" (
"episode_air_date" text,
"audition_city" text,
"audition_date" text,
"audition_venue" text,
"guest_fourth_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all episode air dates that auditioned at Nego Quirido Sambadrome?`:
```sql
|
SELECT "episode_air_date" FROM "regional_auditions" WHERE "guest_fourth_judge"='Luiza Possi'; |
## Task
Generate a SQL query to answer the following question:
`List all episode air dates where Luiza Possi was the guest fourth judge?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regional_auditions" (
"episode_air_date" text,
"audition_city" text,
"audition_date" text,
"audition_venue" text,
"guest_fourth_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all episode air dates where Luiza Possi was the guest fourth judge?`:
```sql
|
SELECT COUNT("episode_air_date") FROM "regional_auditions" WHERE "audition_city"='Rio de Janeiro'; |
## Task
Generate a SQL query to answer the following question:
`How many episode air dates are there for auditioning city Rio De Janeiro?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regional_auditions" (
"episode_air_date" text,
"audition_city" text,
"audition_date" text,
"audition_venue" text,
"guest_fourth_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episode air dates are there for auditioning city Rio De Janeiro?`:
```sql
|
SELECT "episode_air_date" FROM "regional_auditions" WHERE "audition_venue"='Nego Quirido Sambadrome'; |
## Task
Generate a SQL query to answer the following question:
`List all episode air dates whose audition venues were Nego Quirido Sambadrome?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regional_auditions" (
"episode_air_date" text,
"audition_city" text,
"audition_date" text,
"audition_venue" text,
"guest_fourth_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all episode air dates whose audition venues were Nego Quirido Sambadrome?`:
```sql
|
SELECT "audition_venue" FROM "regional_auditions" WHERE "guest_fourth_judge"='Peninha'; |
## Task
Generate a SQL query to answer the following question:
`Where was the audition venue where Peninha was the guest fourth judge?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regional_auditions" (
"episode_air_date" text,
"audition_city" text,
"audition_date" text,
"audition_venue" text,
"guest_fourth_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the audition venue where Peninha was the guest fourth judge?`:
```sql
|
SELECT "song_choice" FROM "performances" WHERE "original_artist"='Marisa Monte'; |
## Task
Generate a SQL query to answer the following question:
`Which song was picked that was originally performed by Marisa Monte?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which song was picked that was originally performed by Marisa Monte?`:
```sql
|
SELECT "original_artist" FROM "performances" WHERE "song_choice"='\"Sozinho\"'; |
## Task
Generate a SQL query to answer the following question:
`Who was the original artist of the song choice "Sozinho"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the original artist of the song choice "Sozinho"?`:
```sql
|
SELECT "result" FROM "performances" WHERE "original_artist"='Caetano Veloso'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the performance of the song by Caetano Veloso?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the performance of the song by Caetano Veloso?`:
```sql
|
SELECT "order_num" FROM "performances" WHERE "theme"='Male Singers'; |
## Task
Generate a SQL query to answer the following question:
`What was the order # of the theme Male Singers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the order # of the theme Male Singers?`:
```sql
|
SELECT "theme" FROM "performances" WHERE "original_artist"='Rosana'; |
## Task
Generate a SQL query to answer the following question:
`What was the theme when original artist Rosana's song was performed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the theme when original artist Rosana's song was performed?`:
```sql
|
SELECT COUNT("week_num") FROM "performances" WHERE "theme"='Judge''s Choice' AND "order_num"='4'; |
## Task
Generate a SQL query to answer the following question:
`How many different weeks are there in order number 4 that were judge's choice?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different weeks are there in order number 4 that were judge's choice?`:
```sql
|
SELECT "song_choice" FROM "performances" WHERE "week_num"='Top 5' AND "original_artist"='Marisa Monte'; |
## Task
Generate a SQL query to answer the following question:
`What Marisa Monte song choice was song during top 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Marisa Monte song choice was song during top 5?`:
```sql
|
SELECT "original_artist" FROM "performances" WHERE "theme"='Top 12 Men'; |
## Task
Generate a SQL query to answer the following question:
`Who was the original artist of the Top 12 Men theme?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the original artist of the Top 12 Men theme?`:
```sql
|
SELECT "result" FROM "performances" WHERE "theme"='Top 12 Men'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the Top 12 Men theme?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the Top 12 Men theme?`:
```sql
|
SELECT "week_num" FROM "performances" WHERE "result"='Bottom 3'; |
## Task
Generate a SQL query to answer the following question:
`What week number was the result bottom 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performances" (
"week_num" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What week number was the result bottom 3?`:
```sql
|
SELECT "points_per_game" FROM "international_stats" WHERE "assists_per_game"='1.5'; |
## Task
Generate a SQL query to answer the following question:
`How many points per game did he have when he had 1.5 assists per game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_stats" (
"tournament" text,
"games_played" real,
"points_per_game" text,
"rebounds_per_game" text,
"assists_per_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points per game did he have when he had 1.5 assists per game?`:
```sql
|
SELECT "rebounds_per_game" FROM "international_stats" WHERE "tournament"='2006 FIBA World Championship'; |
## Task
Generate a SQL query to answer the following question:
`How many rebounds per game did he have at the 2006 fiba world championship?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_stats" (
"tournament" text,
"games_played" real,
"points_per_game" text,
"rebounds_per_game" text,
"assists_per_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rebounds per game did he have at the 2006 fiba world championship?`:
```sql
|
SELECT "rebounds_per_game" FROM "international_stats" WHERE "tournament"='2003 EuroBasket'; |
## Task
Generate a SQL query to answer the following question:
`How many rebounds per game did he have at the 2003 eurobasket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_stats" (
"tournament" text,
"games_played" real,
"points_per_game" text,
"rebounds_per_game" text,
"assists_per_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rebounds per game did he have at the 2003 eurobasket?`:
```sql
|
SELECT "assists_per_game" FROM "international_stats" WHERE "points_per_game"='6.8'; |
## Task
Generate a SQL query to answer the following question:
`How many assists per game did he have when he had 6.8 points per game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_stats" (
"tournament" text,
"games_played" real,
"points_per_game" text,
"rebounds_per_game" text,
"assists_per_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many assists per game did he have when he had 6.8 points per game?`:
```sql
|
SELECT "prod_code" FROM "table1_27622417_1" WHERE "no_in_series"=87; |
## Task
Generate a SQL query to answer the following question:
`which is the production code when the number of the episode in series is 87? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27622417_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" text
);
### SQL
Given the database schema, here is the SQL query that answers `which is the production code when the number of the episode in series is 87? `:
```sql
|
SELECT COUNT("directed_by") FROM "table1_27622417_1" WHERE "title"='\"Magic Unmasked\"'; |
## Task
Generate a SQL query to answer the following question:
`how many directors had the episode called "magic unmasked"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27622417_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" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many directors had the episode called "magic unmasked"?`:
```sql
|
SELECT "no_in_series" FROM "table1_27622417_1" WHERE "prod_code"='405'; |
## Task
Generate a SQL query to answer the following question:
`what is the number of the episode in the series whose production code is 405?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27622417_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" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of the episode in the series whose production code is 405?`:
```sql
|
SELECT "original_u_s_air_date" FROM "table1_27622417_1" WHERE "prod_code"='415'; |
## Task
Generate a SQL query to answer the following question:
`when was the premiere of the episode whose production code is 415? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27622417_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" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the premiere of the episode whose production code is 415? `:
```sql
|
SELECT "written_by" FROM "table1_27622417_1" WHERE "prod_code"='411'; |
## Task
Generate a SQL query to answer the following question:
`who were the writers in the episode whose production code was 411? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27622417_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" text
);
### SQL
Given the database schema, here is the SQL query that answers `who were the writers in the episode whose production code was 411? `:
```sql
|
SELECT "directed_by" FROM "table1_27622417_1" WHERE "no_in_season"=17; |
## Task
Generate a SQL query to answer the following question:
`who were the director of the episode whose number in the season is 17? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27622417_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" text
);
### SQL
Given the database schema, here is the SQL query that answers `who were the director of the episode whose number in the season is 17? `:
```sql
|
SELECT "currency" FROM "main_issuers" WHERE "negotiable_debt_at_mid_2005_us_dollar_bn_equivalent"=1300; |
## Task
Generate a SQL query to answer the following question:
`Name the currency for negotiable debt being 1300`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_issuers" (
"currency" text,
"country" text,
"generic_name_or_nickname" text,
"rating_s_p_moodys" text,
"negotiable_debt_at_mid_2005_us_dollar_bn_equivalent" real,
"government_financial_liabilities_as_pct_of_gdp_end_2003_source_oecd" text,
"issuer" text,
"internet_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the currency for negotiable debt being 1300`:
```sql
|
SELECT "country" FROM "main_issuers" WHERE "currency"='Yen'; |
## Task
Generate a SQL query to answer the following question:
`Name the country that has the yen`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_issuers" (
"currency" text,
"country" text,
"generic_name_or_nickname" text,
"rating_s_p_moodys" text,
"negotiable_debt_at_mid_2005_us_dollar_bn_equivalent" real,
"government_financial_liabilities_as_pct_of_gdp_end_2003_source_oecd" text,
"issuer" text,
"internet_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country that has the yen`:
```sql
|
SELECT COUNT("country") FROM "main_issuers" WHERE "currency"='US dollar'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of countries that have the us dollar`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_issuers" (
"currency" text,
"country" text,
"generic_name_or_nickname" text,
"rating_s_p_moodys" text,
"negotiable_debt_at_mid_2005_us_dollar_bn_equivalent" real,
"government_financial_liabilities_as_pct_of_gdp_end_2003_source_oecd" text,
"issuer" text,
"internet_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of countries that have the us dollar`:
```sql
|
SELECT "country" FROM "main_issuers" WHERE "currency"='US dollar'; |
## Task
Generate a SQL query to answer the following question:
`Name the country for the us dollar`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_issuers" (
"currency" text,
"country" text,
"generic_name_or_nickname" text,
"rating_s_p_moodys" text,
"negotiable_debt_at_mid_2005_us_dollar_bn_equivalent" real,
"government_financial_liabilities_as_pct_of_gdp_end_2003_source_oecd" text,
"issuer" text,
"internet_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country for the us dollar`:
```sql
|
SELECT COUNT("team") FROM "personnel_and_sponsorship" WHERE "head_coach"='Mahdi Ali'; |
## Task
Generate a SQL query to answer the following question:
`How many teams have a head coach named mahdi ali?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "personnel_and_sponsorship" (
"team" text,
"chairman" text,
"head_coach" text,
"captain" text,
"kitmaker" text,
"shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams have a head coach named mahdi ali?`:
```sql
|
SELECT COUNT("captain") FROM "personnel_and_sponsorship" WHERE "kitmaker"='N/A'; |
## Task
Generate a SQL query to answer the following question:
`How many captains have the kitmaker as n/a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "personnel_and_sponsorship" (
"team" text,
"chairman" text,
"head_coach" text,
"captain" text,
"kitmaker" text,
"shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many captains have the kitmaker as n/a?`:
```sql
|
SELECT COUNT("kitmaker") FROM "personnel_and_sponsorship" WHERE "team"='Ittihad Kalba'; |
## Task
Generate a SQL query to answer the following question:
`How many kitmaker correspond to team ittihad kalba?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "personnel_and_sponsorship" (
"team" text,
"chairman" text,
"head_coach" text,
"captain" text,
"kitmaker" text,
"shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many kitmaker correspond to team ittihad kalba?`:
```sql
|
SELECT "captain" FROM "personnel_and_sponsorship" WHERE "shirt_sponsor"='N/A'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the captain when teh shirt sponsor is n/a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "personnel_and_sponsorship" (
"team" text,
"chairman" text,
"head_coach" text,
"captain" text,
"kitmaker" text,
"shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the captain when teh shirt sponsor is n/a?`:
```sql
|
SELECT COUNT("captain") FROM "personnel_and_sponsorship" WHERE "shirt_sponsor"='Toshiba'; |
## Task
Generate a SQL query to answer the following question:
`How many captains when the shirt sponsor is toshiba?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "personnel_and_sponsorship" (
"team" text,
"chairman" text,
"head_coach" text,
"captain" text,
"kitmaker" text,
"shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many captains when the shirt sponsor is toshiba?`:
```sql
|
SELECT "chairman" FROM "personnel_and_sponsorship" WHERE "captain"='Fawzi Bashir'; |
## Task
Generate a SQL query to answer the following question:
`Who is the chairman when teh captain is fawzi bashir?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "personnel_and_sponsorship" (
"team" text,
"chairman" text,
"head_coach" text,
"captain" text,
"kitmaker" text,
"shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the chairman when teh captain is fawzi bashir?`:
```sql
|
SELECT "season" FROM "career_summary" WHERE "f_laps"=0 AND "races"=2; |
## Task
Generate a SQL query to answer the following question:
`Which season had f/laps is 0 and races is 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season had f/laps is 0 and races is 2?`:
```sql
|
SELECT COUNT("points") FROM "career_summary" WHERE "position"='6th'; |
## Task
Generate a SQL query to answer the following question:
`How many entries are there for points for the 6th position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries are there for points for the 6th position?`:
```sql
|
SELECT COUNT("season") FROM "career_summary" WHERE "position"='2nd'; |
## Task
Generate a SQL query to answer the following question:
`How many season are shown for the 2nd position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many season are shown for the 2nd position?`:
```sql
|
SELECT "wins" FROM "career_summary" WHERE "position"='7th'; |
## Task
Generate a SQL query to answer the following question:
`What are the wins for the 7th position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the wins for the 7th position?`:
```sql
|
SELECT "position" FROM "career_summary" WHERE "series"='Austria Formel 3 Cup'; |
## Task
Generate a SQL query to answer the following question:
`What is the position for the austria formel 3 cup series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position for the austria formel 3 cup series?`:
```sql
|
SELECT COUNT("ppi_pixels_per_inch") FROM "retina_display_models" WHERE "ppcm_pixels_per_cm"=87; |
## Task
Generate a SQL query to answer the following question:
`How many different PPI does the model with ppcm of 87 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "retina_display_models" (
"model" text,
"ppi_pixels_per_inch" real,
"ppcm_pixels_per_cm" real,
"resolution" text,
"typical_viewing_distance_in_cm" text,
"pixels_per_degree_ppd" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different PPI does the model with ppcm of 87 have?`:
```sql
|
SELECT "resolution" FROM "retina_display_models" WHERE "pixels_per_degree_ppd"=69; |
## Task
Generate a SQL query to answer the following question:
`What's the resolution of the model with a PPD of 69?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "retina_display_models" (
"model" text,
"ppi_pixels_per_inch" real,
"ppcm_pixels_per_cm" real,
"resolution" text,
"typical_viewing_distance_in_cm" text,
"pixels_per_degree_ppd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the resolution of the model with a PPD of 69?`:
```sql
|
SELECT "ihsa_music_class" FROM "current_membership" WHERE "mascot"='Lancers'; |
## Task
Generate a SQL query to answer the following question:
`What is the IHSA music class for the mascot that is the lancers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_membership" (
"school" text,
"location" text,
"mascot" text,
"colors" text,
"enrollment" real,
"ihsa_classes_2_3_4" text,
"ihsa_music_class" text,
"ihsa_football_class" text,
"ihsa_cheerleading_class" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSA music class for the mascot that is the lancers?`:
```sql
|
SELECT "ihsa_cheerleading_class" FROM "current_membership" WHERE "enrollment"=2600; |
## Task
Generate a SQL query to answer the following question:
`What is the IHSA cheerleading class for the enrollment of 2600?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_membership" (
"school" text,
"location" text,
"mascot" text,
"colors" text,
"enrollment" real,
"ihsa_classes_2_3_4" text,
"ihsa_music_class" text,
"ihsa_football_class" text,
"ihsa_cheerleading_class" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSA cheerleading class for the enrollment of 2600?`:
```sql
|
SELECT "colors" FROM "current_membership" WHERE "enrollment"=2020; |
## Task
Generate a SQL query to answer the following question:
`What are the colors for the enrollment of 2020?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_membership" (
"school" text,
"location" text,
"mascot" text,
"colors" text,
"enrollment" real,
"ihsa_classes_2_3_4" text,
"ihsa_music_class" text,
"ihsa_football_class" text,
"ihsa_cheerleading_class" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the colors for the enrollment of 2020?`:
```sql
|
SELECT MIN("old_membership_total") FROM "ice_hockey"; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest number for old membership total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ice_hockey" (
"conference" text,
"old_membership_total" real,
"new_membership_total" real,
"net_change" text,
"members_added" real,
"members_lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number for old membership total?`:
```sql
|
SELECT MIN("members_lost") FROM "ice_hockey" WHERE "net_change"='−1'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of members lost when the net change is −1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ice_hockey" (
"conference" text,
"old_membership_total" real,
"new_membership_total" real,
"net_change" text,
"members_added" real,
"members_lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of members lost when the net change is −1?`:
```sql
|
SELECT MAX("new_membership_total") FROM "ice_hockey" WHERE "members_lost">1.0; |
## Task
Generate a SQL query to answer the following question:
`What is the new membership total if the members lost is bigger than 1.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ice_hockey" (
"conference" text,
"old_membership_total" real,
"new_membership_total" real,
"net_change" text,
"members_added" real,
"members_lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the new membership total if the members lost is bigger than 1.0?`:
```sql
|
SELECT "members_added" FROM "ice_hockey" WHERE "conference"='NCHC (men only)'; |
## Task
Generate a SQL query to answer the following question:
`How many members were added at the nchc (men only) conference?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ice_hockey" (
"conference" text,
"old_membership_total" real,
"new_membership_total" real,
"net_change" text,
"members_added" real,
"members_lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many members were added at the nchc (men only) conference?`:
```sql
|
SELECT "new_membership_total" FROM "ice_hockey" WHERE "conference"='NCHC (men only)'; |
## Task
Generate a SQL query to answer the following question:
`What was the new membership total at the nchc (men only) conference?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ice_hockey" (
"conference" text,
"old_membership_total" real,
"new_membership_total" real,
"net_change" text,
"members_added" real,
"members_lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the new membership total at the nchc (men only) conference?`:
```sql
|
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "incoming_manager"='Štefan Tarkovič'; |
## Task
Generate a SQL query to answer the following question:
`What is the outgoing manager when the incoming manager is štefan tarkovič?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"table" text,
"incoming_manager" text,
"date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the outgoing manager when the incoming manager is štefan tarkovič?`:
```sql
|
SELECT COUNT("team") FROM "managerial_changes" WHERE "date_of_vacancy"='30 October 2010'; |
## Task
Generate a SQL query to answer the following question:
`How many dates of vacancy were on 30 october 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"table" text,
"incoming_manager" text,
"date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates of vacancy were on 30 october 2010?`:
```sql
|
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_vacancy"='28 September 2010'; |
## Task
Generate a SQL query to answer the following question:
`What is the manner of departure when the date of vacancy is 28 september 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"table" text,
"incoming_manager" text,
"date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the manner of departure when the date of vacancy is 28 september 2010?`:
```sql
|
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "date_of_vacancy"='24 November 2010'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of appointment when the date of vacancy is 24 november 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"table" text,
"incoming_manager" text,
"date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of appointment when the date of vacancy is 24 november 2010?`:
```sql
|
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "date_of_vacancy"='10 October 2010'; |
## Task
Generate a SQL query to answer the following question:
`What is the outgoing manager when the date of vacancy is 10 october 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"table" text,
"incoming_manager" text,
"date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the outgoing manager when the date of vacancy is 10 october 2010?`:
```sql
|
SELECT "table" FROM "managerial_changes" WHERE "team"='Slovan Bratislava'; |
## Task
Generate a SQL query to answer the following question:
`What is the table when the team is slovan bratislava?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"table" text,
"incoming_manager" text,
"date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the table when the team is slovan bratislava?`:
```sql
|
SELECT COUNT("visitors_total") FROM "table1_27685921_1" WHERE "exhibitors_total"=1654; |
## Task
Generate a SQL query to answer the following question:
`how many people come to visit when the 1654 exhibitions`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27685921_1" (
"year" real,
"exhibitors_domestic" real,
"exhibitors_foreign" real,
"exhibitors_total" real,
"visitors_total" real,
"visitors_foreign_in_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many people come to visit when the 1654 exhibitions`:
```sql
|
SELECT MAX("year") FROM "table1_27685921_1" WHERE "exhibitors_total"=1701; |
## Task
Generate a SQL query to answer the following question:
`what is the most time where exhibitions is 1701`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27685921_1" (
"year" real,
"exhibitors_domestic" real,
"exhibitors_foreign" real,
"exhibitors_total" real,
"visitors_total" real,
"visitors_foreign_in_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the most time where exhibitions is 1701`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "date"='March 14'; |
## Task
Generate a SQL query to answer the following question:
`who had high points on march 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `who had high points on march 14?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "game"=69; |
## Task
Generate a SQL query to answer the following question:
`who had high rebounds at game 69?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `who had high rebounds at game 69?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "date"='January 17'; |
## Task
Generate a SQL query to answer the following question:
`Who were the 76ers opponents on January 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the 76ers opponents on January 17?`:
```sql
|
SELECT COUNT("high_points") FROM "game_log" WHERE "game"=34; |
## Task
Generate a SQL query to answer the following question:
`How many players held the high point records for game 34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players held the high point records for game 34?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='January 7'; |
## Task
Generate a SQL query to answer the following question:
`What the win - loss recored for January 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the win - loss recored for January 7?`:
```sql
|
SELECT COUNT("high_points") FROM "game_log" WHERE "date"='October 5'; |
## Task
Generate a SQL query to answer the following question:
`How many people led in points during the game on October 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people led in points during the game on October 5?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "location_attendance"='The Palace of Auburn Hills 14,554'; |
## Task
Generate a SQL query to answer the following question:
`Name the date for the palace of auburn hills 14,554`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for the palace of auburn hills 14,554`:
```sql
|
SELECT MIN("game") FROM "game_log" WHERE "score"='L 109–116 (OT)'; |
## Task
Generate a SQL query to answer the following question:
`Name the least game for l 109–116 (ot)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least game for l 109–116 (ot)`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "team"='Charlotte'; |
## Task
Generate a SQL query to answer the following question:
`Name the high rebounds for charlotte`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the high rebounds for charlotte`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "location_attendance"='Wells Fargo Center 16,695'; |
## Task
Generate a SQL query to answer the following question:
`Name the high rebounds for wells fargo center 16,695`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the high rebounds for wells fargo center 16,695`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "high_points"='Brook Lopez (15)'; |
## Task
Generate a SQL query to answer the following question:
`Who got the high rebounds if Brook Lopez (15) earned the high points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who got the high rebounds if Brook Lopez (15) earned the high points?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "team"='@ Indiana'; |
## Task
Generate a SQL query to answer the following question:
`Who got high assists for team @ Indiana?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who got high assists for team @ Indiana?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.