output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "original_airdate" FROM "series_three" WHERE "title"='\"Man in the Machine\"'; |
## Task
Generate a SQL query to answer the following question:
`When did "Man in the Machine" originally air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_three" (
"num" real,
"title" text,
"original_airdate" text,
"timeslot" text,
"viewers_millions" text,
"nightly_rank" real,
"weekly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did "Man in the Machine" originally air?`:
```sql
|
SELECT "original_air_date" FROM "table1_23399481_2" WHERE "directed_by"='David Paymer'; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date of the episode that was directed by David Paymer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23399481_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of the episode that was directed by David Paymer?`:
```sql
|
SELECT "directed_by" FROM "table1_23399481_2" WHERE "u_s_viewers_in_millions"='2.14'; |
## Task
Generate a SQL query to answer the following question:
`If the amount of U.S. viewers is 2.14 million, who was the episode directed by?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23399481_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the amount of U.S. viewers is 2.14 million, who was the episode directed by?`:
```sql
|
SELECT "directed_by" FROM "table1_23399481_2" WHERE "u_s_viewers_in_millions"='2.05'; |
## Task
Generate a SQL query to answer the following question:
`If the amount of U.S. viewers is 2.05 milliom, who was the episode directed by?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23399481_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the amount of U.S. viewers is 2.05 milliom, who was the episode directed by?`:
```sql
|
SELECT "directed_by" FROM "table1_23399481_2" WHERE "u_s_viewers_in_millions"='2.22'; |
## Task
Generate a SQL query to answer the following question:
`What is the director name is the U.S. viewers is 2.22 million?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23399481_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the director name is the U.S. viewers is 2.22 million?`:
```sql
|
SELECT "airdate" FROM "us_ratings" WHERE "episode"='\"We Are No Longer in the Bible Belt\"'; |
## Task
Generate a SQL query to answer the following question:
`What date did "we are no longer in the bible belt" air on?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "us_ratings" (
"num" real,
"airdate" text,
"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 date did "we are no longer in the bible belt" air on?`:
```sql
|
SELECT "viewers_millions" FROM "us_ratings" WHERE "rating_share_18_49"='2.6/7'; |
## Task
Generate a SQL query to answer the following question:
`How many million viewers watched the episode that had a 2.6/7 rating/share (18-49)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "us_ratings" (
"num" real,
"airdate" text,
"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 `How many million viewers watched the episode that had a 2.6/7 rating/share (18-49)`:
```sql
|
SELECT "viewers_millions" FROM "us_ratings" WHERE "episode"='\"Nanna Is Kickin'' Your Butt\"'; |
## Task
Generate a SQL query to answer the following question:
`How many million viewers watched "nanna is kickin' your butt"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "us_ratings" (
"num" real,
"airdate" text,
"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 `How many million viewers watched "nanna is kickin' your butt"?`:
```sql
|
SELECT "viewers_millions" FROM "us_ratings" WHERE "airdate"='March 28, 2010'; |
## Task
Generate a SQL query to answer the following question:
`How many million viewers watched the episode that aired on March 28, 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "us_ratings" (
"num" real,
"airdate" text,
"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 `How many million viewers watched the episode that aired on March 28, 2010?`:
```sql
|
SELECT COUNT("rank_timeslot") FROM "us_ratings" WHERE "airdate"='May 2, 2010'; |
## Task
Generate a SQL query to answer the following question:
`How many rankings (timeslot) were there for the episode that aired on May 2, 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "us_ratings" (
"num" real,
"airdate" text,
"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 `How many rankings (timeslot) were there for the episode that aired on May 2, 2010?`:
```sql
|
SELECT "written_by" FROM "table1_23399481_3" WHERE "title"='\"What Are You Made Of?\"'; |
## Task
Generate a SQL query to answer the following question:
`Who was the writer for the episode called "What Are You Made of?"`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23399481_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer for the episode called "What Are You Made of?"`:
```sql
|
SELECT "series_num" FROM "table1_23399481_3" WHERE "u_s_viewers_in_millions"='1.42'; |
## Task
Generate a SQL query to answer the following question:
`What episode had 1.42 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23399481_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode had 1.42 million viewers?`:
```sql
|
SELECT "original_air_date" FROM "table1_23399481_3" WHERE "season_num"=4; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date for episode 4? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23399481_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date for episode 4? `:
```sql
|
SELECT "written_by" FROM "table1_23399481_3" WHERE "title"='\"And the Rocky Goes To...\"'; |
## Task
Generate a SQL query to answer the following question:
`Who was the writer for the show titled "and the rocky goes to..."?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23399481_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer for the show titled "and the rocky goes to..."?`:
```sql
|
SELECT "team" FROM "race_results" WHERE "chassis_engine"='Lola T92/00/ Buick'; |
## Task
Generate a SQL query to answer the following question:
`Which team uses lola t92/00/ buick for their chassis/engine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"pos" real,
"no" real,
"driver" text,
"team" text,
"chassis_engine" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team uses lola t92/00/ buick for their chassis/engine?`:
```sql
|
SELECT MAX("points") FROM "race_results" WHERE "pos"=18; |
## Task
Generate a SQL query to answer the following question:
`When the pos equals 18 what is the max amount of points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"pos" real,
"no" real,
"driver" text,
"team" text,
"chassis_engine" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the pos equals 18 what is the max amount of points?`:
```sql
|
SELECT COUNT("no") FROM "race_results" WHERE "chassis_engine"='Lola T92/00/ Buick'; |
## Task
Generate a SQL query to answer the following question:
`How many drivers used lola t92/00/ buick for their chassis/engine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"pos" real,
"no" real,
"driver" text,
"team" text,
"chassis_engine" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many drivers used lola t92/00/ buick for their chassis/engine?`:
```sql
|
SELECT MIN("no_in_series") FROM "table1_23403578_3" WHERE "written_by"='Bernie Ancheta' AND "no_in_season"=5; |
## Task
Generate a SQL query to answer the following question:
`What's the series number of the episode with a season number 5, written by Bernie Ancheta?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23403578_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the series number of the episode with a season number 5, written by Bernie Ancheta?`:
```sql
|
SELECT "original_air_date" FROM "table1_23403578_3" WHERE "prod_code"='213'; |
## Task
Generate a SQL query to answer the following question:
`When did the episode with production code 213 air for the first time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23403578_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode with production code 213 air for the first time?`:
```sql
|
SELECT "directed_by" FROM "table1_23403578_3" WHERE "prod_code"='208'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with production code 208?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23403578_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with production code 208?`:
```sql
|
SELECT "u_s_viewers_in_millions" FROM "table1_23403578_3" WHERE "title"='\"Ball of Trash\"'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of people in the US saw the episode titled "Ball of Trash"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23403578_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of people in the US saw the episode titled "Ball of Trash"?`:
```sql
|
SELECT "direction" FROM "24_mountains" WHERE "24_mountains"='Wei 未 Kun 坤 Shen 申'; |
## Task
Generate a SQL query to answer the following question:
`What is every direction with 24 mountains as Wei 未 Kun 坤 Shen 申?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_mountains" (
"direction" text,
"number" real,
"trigram" text,
"24_mountains" text,
"bearing_degrees" text,
"nature" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every direction with 24 mountains as Wei 未 Kun 坤 Shen 申?`:
```sql
|
SELECT COUNT("24_mountains") FROM "24_mountains" WHERE "bearing_degrees"='67.6 - 82.5 82.6 - 97.5 97.6 - 112.5'; |
## Task
Generate a SQL query to answer the following question:
`How many values for 24 mountains when the bearing or degrees is 67.6 - 82.5 82.6 - 97.5 97.6 - 112.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_mountains" (
"direction" text,
"number" real,
"trigram" text,
"24_mountains" text,
"bearing_degrees" text,
"nature" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values for 24 mountains when the bearing or degrees is 67.6 - 82.5 82.6 - 97.5 97.6 - 112.5?`:
```sql
|
SELECT "trigram" FROM "24_mountains" WHERE "direction"='Northwest'; |
## Task
Generate a SQL query to answer the following question:
`What is every trigram when direction is Northwest?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_mountains" (
"direction" text,
"number" real,
"trigram" text,
"24_mountains" text,
"bearing_degrees" text,
"nature" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every trigram when direction is Northwest?`:
```sql
|
SELECT "24_mountains" FROM "24_mountains" WHERE "direction"='Northeast'; |
## Task
Generate a SQL query to answer the following question:
`What are all values for 24 mountains when direction is Northeast?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_mountains" (
"direction" text,
"number" real,
"trigram" text,
"24_mountains" text,
"bearing_degrees" text,
"nature" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all values for 24 mountains when direction is Northeast?`:
```sql
|
SELECT "total_career_titles" FROM "chronological_list_of_grand_slam_singles" WHERE "player"='Roy Emerson'; |
## Task
Generate a SQL query to answer the following question:
`How many career titles does roy emerson have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chronological_list_of_grand_slam_singles" (
"years_led" text,
"span_of_years_led" real,
"player" text,
"titles_won_at_point_of_lead" real,
"total_career_titles" real,
"tournament_at_which_lead_began" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many career titles does roy emerson have?`:
```sql
|
SELECT COUNT("total_career_titles") FROM "chronological_list_of_grand_slam_singles" WHERE "span_of_years_led"=5; |
## Task
Generate a SQL query to answer the following question:
`What were the total career titles of the player who led for 5 years?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chronological_list_of_grand_slam_singles" (
"years_led" text,
"span_of_years_led" real,
"player" text,
"titles_won_at_point_of_lead" real,
"total_career_titles" real,
"tournament_at_which_lead_began" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the total career titles of the player who led for 5 years?`:
```sql
|
SELECT MIN("span_of_years_led") FROM "chronological_list_of_grand_slam_singles" WHERE "tournament_at_which_lead_began"='Australian Championships'; |
## Task
Generate a SQL query to answer the following question:
`Of the players whose lead began at the australian championships, what was the shortest span of years led?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chronological_list_of_grand_slam_singles" (
"years_led" text,
"span_of_years_led" real,
"player" text,
"titles_won_at_point_of_lead" real,
"total_career_titles" real,
"tournament_at_which_lead_began" text
);
### SQL
Given the database schema, here is the SQL query that answers `Of the players whose lead began at the australian championships, what was the shortest span of years led?`:
```sql
|
SELECT "tournament_at_which_lead_began" FROM "chronological_list_of_grand_slam_singles" WHERE "player"='William Renshaw' AND "titles_won_at_point_of_lead"=7; |
## Task
Generate a SQL query to answer the following question:
`At which tournament did william renshaw begin his lead when he had won 7 titles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chronological_list_of_grand_slam_singles" (
"years_led" text,
"span_of_years_led" real,
"player" text,
"titles_won_at_point_of_lead" real,
"total_career_titles" real,
"tournament_at_which_lead_began" text
);
### SQL
Given the database schema, here is the SQL query that answers `At which tournament did william renshaw begin his lead when he had won 7 titles?`:
```sql
|
SELECT "tournament_at_which_lead_began" FROM "chronological_list_of_grand_slam_singles" WHERE "player"='Pete Sampras'; |
## Task
Generate a SQL query to answer the following question:
`At what tournament did pete sampras begin his lead?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chronological_list_of_grand_slam_singles" (
"years_led" text,
"span_of_years_led" real,
"player" text,
"titles_won_at_point_of_lead" real,
"total_career_titles" real,
"tournament_at_which_lead_began" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what tournament did pete sampras begin his lead?`:
```sql
|
SELECT "directed_by" FROM "table1_2342078_2" WHERE "written_by"='Sherwood Schwartz'; |
## Task
Generate a SQL query to answer the following question:
`Who are all directors when Sherwood Schwartz is the writer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2342078_2" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_order_they_were_made_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all directors when Sherwood Schwartz is the writer?`:
```sql
|
SELECT MAX("episode_num") FROM "table1_2342078_2" WHERE "written_by"='Paul West'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest episode# with the writer Paul West?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2342078_2" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_order_they_were_made_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest episode# with the writer Paul West?`:
```sql
|
SELECT "production_code_order_they_were_made_num" FROM "table1_2342078_2" WHERE "episode_num"=13; |
## Task
Generate a SQL query to answer the following question:
`What is every production code for episode # 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2342078_2" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_order_they_were_made_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every production code for episode # 13?`:
```sql
|
SELECT MAX("episode_num") FROM "table1_2342078_4" WHERE "written_by"='Harry Winkler'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest episode number written by Harry Winkler?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2342078_4" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest episode number written by Harry Winkler?`:
```sql
|
SELECT "directed_by" FROM "table1_2342078_4" WHERE "written_by"='Brad Radnitz'; |
## Task
Generate a SQL query to answer the following question:
`List all directors when Brad Radnitz was the writer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2342078_4" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `List all directors when Brad Radnitz was the writer?`:
```sql
|
SELECT "original_airdate" FROM "table1_2342078_6" WHERE "written_by"='Howard Ostroff'; |
## Task
Generate a SQL query to answer the following question:
`Name the airdate for the episode written by howard ostroff`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2342078_6" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the airdate for the episode written by howard ostroff`:
```sql
|
SELECT COUNT("production_code_num") FROM "table1_2342078_6" WHERE "episode_num"=109; |
## Task
Generate a SQL query to answer the following question:
`Name the production code # for episode 109`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2342078_6" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the production code # for episode 109`:
```sql
|
SELECT "directed_by" FROM "table1_2342078_6" WHERE "written_by"='George Tibbles'; |
## Task
Generate a SQL query to answer the following question:
`Name who drected the episode written by george tibbles`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2342078_6" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name who drected the episode written by george tibbles`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_2342078_5" WHERE "title"='\"Fright Night\"'; |
## Task
Generate a SQL query to answer the following question:
`How many different people directed the episode titled "Fright Night"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2342078_5" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different people directed the episode titled "Fright Night"?`:
```sql
|
SELECT MIN("episode_num") FROM "table1_2342078_5" WHERE "title"='\"Everyone Can''t Be George Washington\"'; |
## Task
Generate a SQL query to answer the following question:
`What's the number of the episode titled "Everyone can't be George Washington"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2342078_5" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the episode titled "Everyone can't be George Washington"?`:
```sql
|
SELECT COUNT("original_airdate") FROM "table1_2342078_5" WHERE "title"='\"Everyone Can''t Be George Washington\"'; |
## Task
Generate a SQL query to answer the following question:
`How many original air dates are there for the episode titled "Everyone can't be George Washington"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2342078_5" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many original air dates are there for the episode titled "Everyone can't be George Washington"?`:
```sql
|
SELECT "title" FROM "table1_2342078_5" WHERE "written_by"='Harry Winkler'; |
## Task
Generate a SQL query to answer the following question:
`What's the title of the episode written by Harry Winkler?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2342078_5" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the episode written by Harry Winkler?`:
```sql
|
SELECT MIN("production_code_num") FROM "table1_2342078_5" WHERE "title"='\"The Subject Was Noses\"'; |
## Task
Generate a SQL query to answer the following question:
`What's the production code of the episode titled "The subject was noses"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2342078_5" (
"episode_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_airdate" text,
"production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the production code of the episode titled "The subject was noses"?`:
```sql
|
SELECT "act" FROM "final" WHERE "place_came"='1st Place (Won the Series)'; |
## Task
Generate a SQL query to answer the following question:
`During the 1st Place (Won the Series), who was the act?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final" (
"place_came" text,
"artist" text,
"category" text,
"act" text,
"semi_final" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the 1st Place (Won the Series), who was the act?`:
```sql
|
SELECT "semi_final" FROM "final" WHERE "act"='Playing on Glasses'; |
## Task
Generate a SQL query to answer the following question:
`During the act, Playing on Glasses, what was the semi-final?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final" (
"place_came" text,
"artist" text,
"category" text,
"act" text,
"semi_final" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the act, Playing on Glasses, what was the semi-final?`:
```sql
|
SELECT "result" FROM "final" WHERE "act"='Performance of \"Lost\" by Anouk'; |
## Task
Generate a SQL query to answer the following question:
`During the act, Performance of "Lost" by Anouk, what was the result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final" (
"place_came" text,
"artist" text,
"category" text,
"act" text,
"semi_final" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the act, Performance of "Lost" by Anouk, what was the result?`:
```sql
|
SELECT "result" FROM "final" WHERE "act"='Performance of \"Lost\" by Anouk'; |
## Task
Generate a SQL query to answer the following question:
`During the act, Performance of "Lost" by Anouk, what was the result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final" (
"place_came" text,
"artist" text,
"category" text,
"act" text,
"semi_final" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the act, Performance of "Lost" by Anouk, what was the result?`:
```sql
|
SELECT "place_came" FROM "final" WHERE "artist"='Erlend Bratland'; |
## Task
Generate a SQL query to answer the following question:
`What was the final place came for the performance of Erlend Bratland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final" (
"place_came" text,
"artist" text,
"category" text,
"act" text,
"semi_final" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final place came for the performance of Erlend Bratland?`:
```sql
|
SELECT COUNT("result") FROM "final" WHERE "act"='Performance of \"Lost\" by Anouk'; |
## Task
Generate a SQL query to answer the following question:
`During the act, Performance of "Lost" by Anouk, what was the result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final" (
"place_came" text,
"artist" text,
"category" text,
"act" text,
"semi_final" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the act, Performance of "Lost" by Anouk, what was the result?`:
```sql
|
SELECT MIN("imr") FROM "table1_23423_2" WHERE "life_expectancy_males"='64.3'; |
## Task
Generate a SQL query to answer the following question:
`How many imr* have 64.3 life expectancy males?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23423_2" (
"period" text,
"live_births_per_year" text,
"deaths_per_year" text,
"natural_change_per_year" text,
"cbr" text,
"cdr" text,
"nc" text,
"tfr" text,
"imr" real,
"life_expectancy_total" text,
"life_expectancy_males" text,
"life_expectancy_females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many imr* have 64.3 life expectancy males?`:
```sql
|
SELECT "imr" FROM "table1_23423_2" WHERE "tfr"='4.31'; |
## Task
Generate a SQL query to answer the following question:
`How many imr* have tfr* of 4.31?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23423_2" (
"period" text,
"live_births_per_year" text,
"deaths_per_year" text,
"natural_change_per_year" text,
"cbr" text,
"cdr" text,
"nc" text,
"tfr" text,
"imr" real,
"life_expectancy_total" text,
"life_expectancy_males" text,
"life_expectancy_females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many imr* have tfr* of 4.31?`:
```sql
|
SELECT "deaths_per_year" FROM "table1_23423_2" WHERE "life_expectancy_females"='66.3'; |
## Task
Generate a SQL query to answer the following question:
`How many deaths per year have 66.3 as the life expectancy females?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23423_2" (
"period" text,
"live_births_per_year" text,
"deaths_per_year" text,
"natural_change_per_year" text,
"cbr" text,
"cdr" text,
"nc" text,
"tfr" text,
"imr" real,
"life_expectancy_total" text,
"life_expectancy_males" text,
"life_expectancy_females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many deaths per year have 66.3 as the life expectancy females?`:
```sql
|
SELECT COUNT("imr") FROM "table1_23423_2" WHERE "tfr"='5.35'; |
## Task
Generate a SQL query to answer the following question:
`How many imr* have tfr* 5.35?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23423_2" (
"period" text,
"live_births_per_year" text,
"deaths_per_year" text,
"natural_change_per_year" text,
"cbr" text,
"cdr" text,
"nc" text,
"tfr" text,
"imr" real,
"life_expectancy_total" text,
"life_expectancy_males" text,
"life_expectancy_females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many imr* have tfr* 5.35?`:
```sql
|
SELECT "leagues_entering_at_this_round" FROM "teams" WHERE "winners_from_previous_round"='16'; |
## Task
Generate a SQL query to answer the following question:
`Which leagues entered in rounds where there were 16 winners from the previous round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which leagues entered in rounds where there were 16 winners from the previous round?`:
```sql
|
SELECT "round" FROM "teams" WHERE "clubs_involved"=32; |
## Task
Generate a SQL query to answer the following question:
`Which rounds had 32 clubs involved?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rounds had 32 clubs involved?`:
```sql
|
SELECT "round" FROM "teams" WHERE "new_entries_this_round"='24'; |
## Task
Generate a SQL query to answer the following question:
`Which round had 24 new entries?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round had 24 new entries?`:
```sql
|
SELECT "leagues_entering_at_this_round" FROM "teams" WHERE "round"='Extra Preliminary Round'; |
## Task
Generate a SQL query to answer the following question:
`Which leagues entered an extra preliminary round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which leagues entered an extra preliminary round?`:
```sql
|
SELECT "location" FROM "game_log" WHERE "opponent"='Buffalo Sabres'; |
## Task
Generate a SQL query to answer the following question:
`Name the location of buffalo sabres`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location of buffalo sabres`:
```sql
|
SELECT "game" FROM "game_log" WHERE "record"='13–17–9'; |
## Task
Generate a SQL query to answer the following question:
`Name the game for 13–17–9`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the game for 13–17–9`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='December 19'; |
## Task
Generate a SQL query to answer the following question:
`Name the score for december 19`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for december 19`:
```sql
|
SELECT "date" FROM "game_log" WHERE "opponent"='New York Islanders'; |
## Task
Generate a SQL query to answer the following question:
`Name the date for new york islanders`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for new york islanders`:
```sql
|
SELECT COUNT("opponent") FROM "game_log" WHERE "date"='December 3'; |
## Task
Generate a SQL query to answer the following question:
`Name the opponents for december 3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponents for december 3`:
```sql
|
SELECT COUNT("game") FROM "game_log" WHERE "opponent"='Carolina Hurricanes'; |
## Task
Generate a SQL query to answer the following question:
`How many games did they play the carolina hurricanes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did they play the carolina hurricanes?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "points"=62; |
## Task
Generate a SQL query to answer the following question:
`What was the score when they had 62 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,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when they had 62 points?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "points"=9; |
## Task
Generate a SQL query to answer the following question:
`What team did the Maple Leafs score 9 points against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team did the Maple Leafs score 9 points against?`:
```sql
|
SELECT "sat_29_aug" FROM "2009_junior_classic_practice_times_and_l" WHERE "tues_25_aug"='23'' 18.82 97.102mph'; |
## Task
Generate a SQL query to answer the following question:
`What time was achieved on Saturday 29th August by the rider who recorded 23' 18.82 97.102mph on Tuesday 25th August?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_junior_classic_practice_times_and_l" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text,
"sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was achieved on Saturday 29th August by the rider who recorded 23' 18.82 97.102mph on Tuesday 25th August?`:
```sql
|
SELECT "sat_29_aug" FROM "2009_junior_classic_practice_times_and_l" WHERE "mon_24_aug"='24'' 17.26 93.208mph'; |
## Task
Generate a SQL query to answer the following question:
`What time was achieved on Saturday 29th August by the rider who recorded 24' 17.26 93.208mph on Monday 24th August?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_junior_classic_practice_times_and_l" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text,
"sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was achieved on Saturday 29th August by the rider who recorded 24' 17.26 93.208mph on Monday 24th August?`:
```sql
|
SELECT "sat_29_aug" FROM "2009_junior_classic_practice_times_and_l" WHERE "tues_25_aug"='22'' 54.20 98.842mph'; |
## Task
Generate a SQL query to answer the following question:
`What time was achieved on Saturday 29th August by the rider who recorded 22' 54.20 98.842mph on Tuesday 25th August?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_junior_classic_practice_times_and_l" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text,
"sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was achieved on Saturday 29th August by the rider who recorded 22' 54.20 98.842mph on Tuesday 25th August?`:
```sql
|
SELECT "sat_29_aug" FROM "2009_junior_classic_practice_times_and_l" WHERE "fri_28_aug"='25'' 01.89 90.438mph'; |
## Task
Generate a SQL query to answer the following question:
`What time was achieved on Saturday 29th August by the rider who recorded 25' 01.89 90.438mph on Friday 28th August?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_junior_classic_practice_times_and_l" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text,
"sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was achieved on Saturday 29th August by the rider who recorded 25' 01.89 90.438mph on Friday 28th August?`:
```sql
|
SELECT "wed_26_aug" FROM "2009_newcomers_race_b_practice_times_and" WHERE "rider"='Andrew Farrell 400cc Kawasaki'; |
## Task
Generate a SQL query to answer the following question:
`What was the event on Wed 26 Aug where rider is Andrew Farrell 400cc Kawasaki?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_newcomers_race_b_practice_times_and" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the event on Wed 26 Aug where rider is Andrew Farrell 400cc Kawasaki?`:
```sql
|
SELECT "thurs_27_aug" FROM "2009_newcomers_race_b_practice_times_and" WHERE "tues_25_aug"='23'' 00.59 98.384mph'; |
## Task
Generate a SQL query to answer the following question:
`What was the event on Thurs 27 Aug when Tues 25 Aug was 23' 00.59 98.384mph?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_newcomers_race_b_practice_times_and" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the event on Thurs 27 Aug when Tues 25 Aug was 23' 00.59 98.384mph?`:
```sql
|
SELECT "tues_25_aug" FROM "2009_newcomers_race_b_practice_times_and" WHERE "mon_24_aug"='22'' 24.56 101.021mph'; |
## Task
Generate a SQL query to answer the following question:
`What was the Tues 25 Aug time and speed when Mon 24 Aug was 22' 24.56 101.021mph?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_newcomers_race_b_practice_times_and" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Tues 25 Aug time and speed when Mon 24 Aug was 22' 24.56 101.021mph?`:
```sql
|
SELECT "rider" FROM "2009_newcomers_race_b_practice_times_and" WHERE "fri_28_aug"='24'' 23.36 92.820mph'; |
## Task
Generate a SQL query to answer the following question:
`Who was the rider when Fri 28 Aug was 24' 23.36 92.820mph?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_newcomers_race_b_practice_times_and" (
"rank" real,
"rider" text,
"mon_24_aug" text,
"tues_25_aug" text,
"wed_26_aug" text,
"thurs_27_aug" text,
"fri_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the rider when Fri 28 Aug was 24' 23.36 92.820mph?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "attendance"=32194; |
## Task
Generate a SQL query to answer the following question:
`Which opponent has 32194 as the attendance?`
### 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 `Which opponent has 32194 as the attendance?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "attendance"=36102; |
## Task
Generate a SQL query to answer the following question:
`Which opponent has 36102 is the attendance?`
### 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 `Which opponent has 36102 is the attendance?`:
```sql
|
SELECT MAX("attendance") FROM "schedule"; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance?`
### 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 is the attendance?`:
```sql
|
SELECT "hometown" FROM "delegates" WHERE "province"='Huesca'; |
## Task
Generate a SQL query to answer the following question:
`What is the hometown of contestants who are from the province of Huesca?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province" text,
"contestant" text,
"age" real,
"height_in" text,
"height_mt" text,
"hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown of contestants who are from the province of Huesca?`:
```sql
|
SELECT "height_in" FROM "delegates" WHERE "province"='La Rioja'; |
## Task
Generate a SQL query to answer the following question:
`What is the height in inches of contestants who are from the province of La Rioja?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province" text,
"contestant" text,
"age" real,
"height_in" text,
"height_mt" text,
"hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height in inches of contestants who are from the province of La Rioja?`:
```sql
|
SELECT COUNT("age") FROM "delegates" WHERE "hometown"='Andujar'; |
## Task
Generate a SQL query to answer the following question:
`How many contestants of whatever age are there whose hometown of Andujar?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province" text,
"contestant" text,
"age" real,
"height_in" text,
"height_mt" text,
"hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many contestants of whatever age are there whose hometown of Andujar?`:
```sql
|
SELECT "height_in" FROM "delegates" WHERE "province"='La Rioja'; |
## Task
Generate a SQL query to answer the following question:
`How tall are contestants whose home province is La Rioja?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province" text,
"contestant" text,
"age" real,
"height_in" text,
"height_mt" text,
"hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall are contestants whose home province is La Rioja?`:
```sql
|
SELECT MAX("service") FROM "list_of_duronto_express_trains" WHERE "train_name"='Jammu Duronto'; |
## Task
Generate a SQL query to answer the following question:
`What's the service number of the Jammu Duronto train? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_duronto_express_trains" (
"service" real,
"train_number" real,
"train_name" text,
"source" text,
"departure" text,
"destination" text,
"arrival" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the service number of the Jammu Duronto train? `:
```sql
|
SELECT "train_name" FROM "list_of_duronto_express_trains" WHERE "destination"='Madurai Junction'; |
## Task
Generate a SQL query to answer the following question:
`What's the name of the train to Madurai Junction?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_duronto_express_trains" (
"service" real,
"train_number" real,
"train_name" text,
"source" text,
"departure" text,
"destination" text,
"arrival" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the train to Madurai Junction?`:
```sql
|
SELECT "service" FROM "list_of_duronto_express_trains" WHERE "train_name"='Pune Duronto' AND "departure"='21:35'; |
## Task
Generate a SQL query to answer the following question:
`What's the service number of the Pune Duronto train that departures at 21:35?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_duronto_express_trains" (
"service" real,
"train_number" real,
"train_name" text,
"source" text,
"departure" text,
"destination" text,
"arrival" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the service number of the Pune Duronto train that departures at 21:35?`:
```sql
|
SELECT "train_name" FROM "list_of_duronto_express_trains" WHERE "destination"='Bhubaneswar'; |
## Task
Generate a SQL query to answer the following question:
`What's the name of the train that goes to Bhubaneswar?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_duronto_express_trains" (
"service" real,
"train_number" real,
"train_name" text,
"source" text,
"departure" text,
"destination" text,
"arrival" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the train that goes to Bhubaneswar?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "opponent"='Pittsburgh Penguins'; |
## Task
Generate a SQL query to answer the following question:
`What is the record when the opposing team was the Pittsburgh Penguins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when the opposing team was the Pittsburgh Penguins?`:
```sql
|
SELECT MIN("game") FROM "game_log" WHERE "opponent"='Buffalo Sabres'; |
## Task
Generate a SQL query to answer the following question:
`What was the game number when the opposing team was the Buffalo Sabres?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the game number when the opposing team was the Buffalo Sabres?`:
```sql
|
SELECT "prod_code" FROM "table1_234886_3" WHERE "title"='\"Kafelnikov\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the product code for the episode titled "Kafelnikov"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_234886_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the product code for the episode titled "Kafelnikov"?`:
```sql
|
SELECT "directed_by" FROM "table1_234886_3" WHERE "no_in_series"=44; |
## Task
Generate a SQL query to answer the following question:
`Who directed episode no. 44 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_234886_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed episode no. 44 in the series?`:
```sql
|
SELECT COUNT("no_in_season") FROM "table1_234886_3" WHERE "prod_code"='2-05'; |
## Task
Generate a SQL query to answer the following question:
`What is the number in the season of the episode with a production code of 2-05?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_234886_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number in the season of the episode with a production code of 2-05?`:
```sql
|
SELECT "title" FROM "table1_234886_3" WHERE "prod_code"='2-19'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode with the production code 2-19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_234886_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode with the production code 2-19?`:
```sql
|
SELECT COUNT("title") FROM "table1_234886_3" WHERE "no_in_series"=29; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of titles for the episode numbered 29 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_234886_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of titles for the episode numbered 29 in the series?`:
```sql
|
SELECT "title" FROM "table1_23492454_1" WHERE "directed_by"='Jessica Yu'; |
## Task
Generate a SQL query to answer the following question:
`What was the name of the episode directed by Jessica Yu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23492454_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the episode directed by Jessica Yu?`:
```sql
|
SELECT "directed_by" FROM "table1_23492454_1" WHERE "written_by"='Shonda Rhimes'; |
## Task
Generate a SQL query to answer the following question:
`who directed the episode written by Shonda Rhimes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23492454_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `who directed the episode written by Shonda Rhimes?`:
```sql
|
SELECT COUNT("no_in_series") FROM "table1_23492454_1" WHERE "no_in_season"=18; |
## Task
Generate a SQL query to answer the following question:
`How many episodes in the series are also episode 18 in the season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_23492454_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes in the series are also episode 18 in the season?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "date"='March 16'; |
## Task
Generate a SQL query to answer the following question:
`Who is every opponent on the date of March 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every opponent on the date of March 16?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "opponent"='Atlanta Thrashers'; |
## Task
Generate a SQL query to answer the following question:
`What is every score for the opponent of Atlanta Thrashers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every score for the opponent of Atlanta Thrashers?`:
```sql
|
SELECT "location" FROM "game_log" WHERE "date"='March 20'; |
## Task
Generate a SQL query to answer the following question:
`What is every location for the date of March 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every location for the date of March 20?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "location"='Verizon Center' AND "points"=68; |
## Task
Generate a SQL query to answer the following question:
`What is every score at the location of Verizon Center and points of 68?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every score at the location of Verizon Center and points of 68?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "record"='30–34–12'; |
## Task
Generate a SQL query to answer the following question:
`What is every date with a record of 30–34–12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every date with a record of 30–34–12?`:
```sql
|
SELECT MAX("officers_o_s") FROM "growth_personnel" WHERE "total_usaaf"=2373882; |
## Task
Generate a SQL query to answer the following question:
`How many officers o/s were there on the day when the number of USAAF was 2373882?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "growth_personnel" (
"date" text,
"total_usaaf" real,
"tot_officers" real,
"tot_enlisted" real,
"num_overseas" real,
"officers_o_s" real,
"enlisted_o_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many officers o/s were there on the day when the number of USAAF was 2373882?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.