output
stringlengths 27
479
| instruction
stringlengths 407
1.39k
|
---|---|
SELECT MIN("ru") FROM "table1_10818465_1"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest ru?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10818465_1" (
"model" text,
"ru" real,
"max_processors" text,
"processor_frequency" text,
"max_memory" text,
"max_disk_capacity" text,
"ga_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest ru?`:
```sql
|
SELECT "ga_date" FROM "table1_10818465_1" WHERE "processor_frequency"='1.0, 1.2, 1.4GHz'; |
## Task
Generate a SQL query to answer the following question:
`What ga date do the models with 1.0, 1.2, 1.4ghz processor frequencies have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10818465_1" (
"model" text,
"ru" real,
"max_processors" text,
"processor_frequency" text,
"max_memory" text,
"max_disk_capacity" text,
"ga_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What ga date do the models with 1.0, 1.2, 1.4ghz processor frequencies have?`:
```sql
|
SELECT "ga_date" FROM "table1_10818465_1" WHERE "model"='T5120'; |
## Task
Generate a SQL query to answer the following question:
`What is the ga date of the t5120 model?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10818465_1" (
"model" text,
"ru" real,
"max_processors" text,
"processor_frequency" text,
"max_memory" text,
"max_disk_capacity" text,
"ga_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ga date of the t5120 model?`:
```sql
|
SELECT "sport" FROM "top_10_in_total_attendance" WHERE "league"='La Liga'; |
## Task
Generate a SQL query to answer the following question:
`What is the sport of the La Liga league?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_in_total_attendance" (
"league" text,
"sport" text,
"country" text,
"season" text,
"games" real,
"average_attendance" real,
"total_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sport of the La Liga league?`:
```sql
|
SELECT MIN("total_attendance") FROM "top_10_in_total_attendance" WHERE "sport"='Association football' AND "league"='Premier League'; |
## Task
Generate a SQL query to answer the following question:
`What's the minimum total attendance of the Premier League association football?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_in_total_attendance" (
"league" text,
"sport" text,
"country" text,
"season" text,
"games" real,
"average_attendance" real,
"total_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the minimum total attendance of the Premier League association football?`:
```sql
|
SELECT MIN("average_attendance") FROM "top_10_in_total_attendance" WHERE "season"='2013'; |
## Task
Generate a SQL query to answer the following question:
`What's the average attendance of the leagues in the season of 2013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_in_total_attendance" (
"league" text,
"sport" text,
"country" text,
"season" text,
"games" real,
"average_attendance" real,
"total_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average attendance of the leagues in the season of 2013?`:
```sql
|
SELECT COUNT("total_attendance") FROM "top_10_in_total_attendance" WHERE "season"='2010'; |
## Task
Generate a SQL query to answer the following question:
`What's the total attendance of the leagues in season of 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_in_total_attendance" (
"league" text,
"sport" text,
"country" text,
"season" text,
"games" real,
"average_attendance" real,
"total_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total attendance of the leagues in season of 2010?`:
```sql
|
SELECT "director" FROM "table1_10874596_1" WHERE "film_title_used_in_nomination"='Young Törless'; |
## Task
Generate a SQL query to answer the following question:
`Who were the directors of the film submitted with the title Young Törless?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10874596_1" (
"year_e_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the directors of the film submitted with the title Young Törless?`:
```sql
|
SELECT "original_title" FROM "table1_10874596_1" WHERE "film_title_used_in_nomination"='A Woman in Flames'; |
## Task
Generate a SQL query to answer the following question:
`What was the original title of the film submitted with the title A Woman in Flames?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10874596_1" (
"year_e_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original title of the film submitted with the title A Woman in Flames?`:
```sql
|
SELECT "year_e_ceremony" FROM "table1_10874596_1" WHERE "film_title_used_in_nomination"='The Enigma of Kaspar Hauser'; |
## Task
Generate a SQL query to answer the following question:
`In what years was a film submitted with the title The Enigma of Kaspar Hauser?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10874596_1" (
"year_e_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what years was a film submitted with the title The Enigma of Kaspar Hauser?`:
```sql
|
SELECT "director" FROM "table1_10874596_1" WHERE "original_title"='o.k.'; |
## Task
Generate a SQL query to answer the following question:
`Who were the directors of the film with the original title o.k.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10874596_1" (
"year_e_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the directors of the film with the original title o.k.?`:
```sql
|
SELECT "division" FROM "kansas_city_comets" WHERE "playoffs"='Division Semifinals'; |
## Task
Generate a SQL query to answer the following question:
`What is the division for the division semifinals playoffs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kansas_city_comets" (
"year" text,
"division" text,
"league" text,
"reg_season" text,
"playoffs" text,
"avg_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the division for the division semifinals playoffs?`:
```sql
|
SELECT "no_in_series" FROM "table1_10908676_7" WHERE "title"='\"Say Uncle\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the number in series of "say uncle"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10908676_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number in series of "say uncle"?`:
```sql
|
SELECT "title" FROM "table1_10908676_7" WHERE "written_by"='David Mamet'; |
## Task
Generate a SQL query to answer the following question:
`What is the title written by David Mamet?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10908676_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title written by David Mamet?`:
```sql
|
SELECT "finale" FROM "highest_rating_drama_series_of_2006" WHERE "chinese_title"='潮爆大狀'; |
## Task
Generate a SQL query to answer the following question:
`What was the finale for 潮爆大狀`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finale for 潮爆大狀`:
```sql
|
SELECT "finale" FROM "highest_rating_drama_series_of_2006" WHERE "chinese_title"='潮爆大狀'; |
## Task
Generate a SQL query to answer the following question:
`What was the finale for 潮爆大狀`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finale for 潮爆大狀`:
```sql
|
SELECT "hk_viewers" FROM "highest_rating_drama_series_of_2006" WHERE "premiere"=34; |
## Task
Generate a SQL query to answer the following question:
`How many viewers were there for the premier with 34`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers were there for the premier with 34`:
```sql
|
SELECT COUNT("peak") FROM "highest_rating_drama_series_of_2006" WHERE "chinese_title"='潮爆大狀'; |
## Task
Generate a SQL query to answer the following question:
`How many are listed under 潮爆大狀`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many are listed under 潮爆大狀`:
```sql
|
SELECT "director" FROM "season_2_1993_1994" WHERE "production_code"='2393059'; |
## Task
Generate a SQL query to answer the following question:
`Who was the director of the episode with a production code of 2393059?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_1993_1994" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director of the episode with a production code of 2393059?`:
```sql
|
SELECT COUNT("writer_s") FROM "season_2_1993_1994" WHERE "title"='\"Michael''s Game\"'; |
## Task
Generate a SQL query to answer the following question:
`How many people wrote "Michael's Game"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_1993_1994" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people wrote "Michael's Game"?`:
```sql
|
SELECT "original_air_date" FROM "season_2_1993_1994" WHERE "title"='\"Duet for One\"'; |
## Task
Generate a SQL query to answer the following question:
`When did the episode title "Duet For One" air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_1993_1994" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode title "Duet For One" air?`:
```sql
|
SELECT "title" FROM "table1_10935548_1" WHERE "u_s_viewers_millions"='16.38'; |
## Task
Generate a SQL query to answer the following question:
`Which episode had 16.38 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10935548_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode had 16.38 million U.S. viewers?`:
```sql
|
SELECT "production_code" FROM "table1_10935548_1" WHERE "written_by"='José Molina' AND "original_air_date"='October 12, 2004'; |
## Task
Generate a SQL query to answer the following question:
`What is the production code of the episode written by José Molina that aired on October 12, 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10935548_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code of the episode written by José Molina that aired on October 12, 2004?`:
```sql
|
SELECT "original_air_date" FROM "table1_10935548_1" WHERE "title"='\"Quarry\"'; |
## Task
Generate a SQL query to answer the following question:
`What was the original air date of the episode "Quarry"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10935548_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date of the episode "Quarry"?`:
```sql
|
SELECT "title" FROM "table1_10935548_1" WHERE "directed_by"='Jean de Segonzac'; |
## Task
Generate a SQL query to answer the following question:
`Which episode was directed by Jean de Segonzac?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10935548_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode was directed by Jean de Segonzac?`:
```sql
|
SELECT "original_air_date" FROM "table1_10953197_3" WHERE "production_code"='2394087'; |
## Task
Generate a SQL query to answer the following question:
`what are the original air dates with a production code of 2394087`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10953197_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are the original air dates with a production code of 2394087`:
```sql
|
SELECT "writer_s" FROM "table1_10953197_3" WHERE "title"='\"Boxing Sydney\"'; |
## Task
Generate a SQL query to answer the following question:
`Who are the writers for the title "boxing sydney"`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10953197_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the writers for the title "boxing sydney"`:
```sql
|
SELECT "production_code" FROM "table1_10953197_3" WHERE "title"='\"All About Brooke\"'; |
## Task
Generate a SQL query to answer the following question:
`What are the production codes for the title "all about brooke"`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10953197_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the production codes for the title "all about brooke"`:
```sql
|
SELECT "writer_s" FROM "table1_10953197_3" WHERE "production_code"='2394084'; |
## Task
Generate a SQL query to answer the following question:
`Who are the writer(s) for the production code 2394084`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10953197_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the writer(s) for the production code 2394084`:
```sql
|
SELECT COUNT("title") FROM "season_4_1995_1996" WHERE "production_code"='2395113A'; |
## Task
Generate a SQL query to answer the following question:
`What's the total number of episodes with the production code 2395113A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of episodes with the production code 2395113A?`:
```sql
|
SELECT MAX("no_in_series") FROM "season_4_1995_1996" WHERE "title"='\"Melrose Unglued\"'; |
## Task
Generate a SQL query to answer the following question:
`What's the number of the episode called "Melrose Unglued"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the episode called "Melrose Unglued"?`:
```sql
|
SELECT "writer_s" FROM "season_4_1995_1996" WHERE "production_code"='2395114'; |
## Task
Generate a SQL query to answer the following question:
`Who's the writer for the episode with a production code 2395114?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the writer for the episode with a production code 2395114?`:
```sql
|
SELECT "director" FROM "season_4_1995_1996" WHERE "title"='\"Full Metal Betsy\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode titled "Full Metal Betsy"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode titled "Full Metal Betsy"?`:
```sql
|
SELECT "no_in_season" FROM "season_4_1995_1996" WHERE "production_code"='2395118'; |
## Task
Generate a SQL query to answer the following question:
`What's the number of the episode with production code 2395118?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the episode with production code 2395118?`:
```sql
|
SELECT "writer_s" FROM "season_4_1995_1996" WHERE "production_code"='2395096'; |
## Task
Generate a SQL query to answer the following question:
`Who was the writer for the episode with production code 2395096?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer for the episode with production code 2395096?`:
```sql
|
SELECT "detectable_by" FROM "planets" WHERE "radial_velocity_m_s"='0.089'; |
## Task
Generate a SQL query to answer the following question:
`What generation of spectrograph is most likely to detect a planet with a radial velocity of 0.089 m/s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"semimajor_axis_au" text,
"orbital_period" text,
"radial_velocity_m_s" text,
"detectable_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What generation of spectrograph is most likely to detect a planet with a radial velocity of 0.089 m/s?`:
```sql
|
SELECT "orbital_period" FROM "planets" WHERE "semimajor_axis_au"='5.20'; |
## Task
Generate a SQL query to answer the following question:
`How long is the orbital period for the planet that has a semimajor axis of 5.20 au?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"semimajor_axis_au" text,
"orbital_period" text,
"radial_velocity_m_s" text,
"detectable_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `How long is the orbital period for the planet that has a semimajor axis of 5.20 au?`:
```sql
|
SELECT "detectable_by" FROM "planets" WHERE "planet"='Jupiter'; |
## Task
Generate a SQL query to answer the following question:
`What generation of spectrograph is Jupiter detected by?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"semimajor_axis_au" text,
"orbital_period" text,
"radial_velocity_m_s" text,
"detectable_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What generation of spectrograph is Jupiter detected by?`:
```sql
|
SELECT "planet" FROM "planets" WHERE "orbital_period"='11.86 years'; |
## Task
Generate a SQL query to answer the following question:
`Which planet has an orbital period of 11.86 years?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"semimajor_axis_au" text,
"orbital_period" text,
"radial_velocity_m_s" text,
"detectable_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which planet has an orbital period of 11.86 years?`:
```sql
|
SELECT "director" FROM "season_7_1998_1999" WHERE "production_code"='2398204'; |
## Task
Generate a SQL query to answer the following question:
`who directed the production code 2398204`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_7_1998_1999" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `who directed the production code 2398204`:
```sql
|
SELECT "original_air_date" FROM "season_7_1998_1999" WHERE "title"='\"Unpleasantville\"'; |
## Task
Generate a SQL query to answer the following question:
`when did "unpleasantville" air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_7_1998_1999" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `when did "unpleasantville" air?`:
```sql
|
SELECT "pick_num" FROM "table1_10960039_1" WHERE "player"='Alexis Bwenge'; |
## Task
Generate a SQL query to answer the following question:
`What is player Alexis Bwenge's pick number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10960039_1" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is player Alexis Bwenge's pick number?`:
```sql
|
SELECT "player" FROM "table1_10960039_1" WHERE "pick_num"=2; |
## Task
Generate a SQL query to answer the following question:
`What player is pick #2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10960039_1" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player is pick #2?`:
```sql
|
SELECT "player" FROM "table1_10960039_1" WHERE "college"='Saskatchewan'; |
## Task
Generate a SQL query to answer the following question:
`Which player's college is Saskatchewan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10960039_1" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player's college is Saskatchewan?`:
```sql
|
SELECT MIN("pick_num") FROM "table1_10960039_1" WHERE "college"='McMaster'; |
## Task
Generate a SQL query to answer the following question:
`What is McMaster College's pick number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10960039_1" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is McMaster College's pick number?`:
```sql
|
SELECT MIN("no_in_season") FROM "season_6_1997_1998"; |
## Task
Generate a SQL query to answer the following question:
`give the least number of times an episode was shown from 1997-1998`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_6_1997_1998" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `give the least number of times an episode was shown from 1997-1998`:
```sql
|
SELECT "original_air_date" FROM "season_6_1997_1998" WHERE "title"='\"The Doctor Is In... Deep\"'; |
## Task
Generate a SQL query to answer the following question:
`when was the episode named "the doctor is in... deep" first broadcast `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_6_1997_1998" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the episode named "the doctor is in... deep" first broadcast `:
```sql
|
SELECT COUNT("no_in_series") FROM "season_6_1997_1998" WHERE "title"='\"Coop de Grace\"'; |
## Task
Generate a SQL query to answer the following question:
`how many times does the episode called "coop de grace" appear `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_6_1997_1998" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times does the episode called "coop de grace" appear `:
```sql
|
SELECT MAX("no_in_season") FROM "season_6_1997_1998" WHERE "director"='Chip Chalmers' AND "production_code"='2397162'; |
## Task
Generate a SQL query to answer the following question:
`what is season 6 sum of both the number of times processing ID 2397162 was assigned and the number of times chip chalmers managed an episode `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_6_1997_1998" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is season 6 sum of both the number of times processing ID 2397162 was assigned and the number of times chip chalmers managed an episode `:
```sql
|
SELECT "player_name" FROM "table1_10966926_2" WHERE "college"='Michigan State'; |
## Task
Generate a SQL query to answer the following question:
`Which player went to Michigan State?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10966926_2" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player went to Michigan State?`:
```sql
|
SELECT "player_name" FROM "table1_10966926_2" WHERE "college"='Oklahoma'; |
## Task
Generate a SQL query to answer the following question:
`Which player went to college in Oklahoma?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10966926_2" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player went to college in Oklahoma?`:
```sql
|
SELECT "position" FROM "table1_10966926_2" WHERE "player_name"='Colt Brennan'; |
## Task
Generate a SQL query to answer the following question:
`Which position does Colt Brennan play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10966926_2" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position does Colt Brennan play?`:
```sql
|
SELECT "height" FROM "table1_10966926_2" WHERE "weight"=320; |
## Task
Generate a SQL query to answer the following question:
`What is the height of the person that weighs 320 pounds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10966926_2" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the person that weighs 320 pounds?`:
```sql
|
SELECT COUNT("college") FROM "round_four" WHERE "position"='DB'; |
## Task
Generate a SQL query to answer the following question:
`How many colleges have a DB position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many colleges have a DB position?`:
```sql
|
SELECT MAX("pick_num") FROM "round_four" WHERE "cfl_team"='Calgary Stampeders'; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of picks for the CFL team Calgary Stampeders?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of picks for the CFL team Calgary Stampeders?`:
```sql
|
SELECT COUNT("cfl_team") FROM "round_four" WHERE "college"='York'; |
## Task
Generate a SQL query to answer the following question:
`How many CFL teams are from York college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many CFL teams are from York college?`:
```sql
|
SELECT "cfl_team" FROM "round_four" WHERE "college"='Simon Fraser'; |
## Task
Generate a SQL query to answer the following question:
`What CFL teams are part of Simon Fraser college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What CFL teams are part of Simon Fraser college?`:
```sql
|
SELECT "player" FROM "round_four" WHERE "pick_num"=27; |
## Task
Generate a SQL query to answer the following question:
`Which players have a pick number of 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which players have a pick number of 27?`:
```sql
|
SELECT COUNT("pick_num") FROM "round_six" WHERE "player"='Brett Ralph'; |
## Task
Generate a SQL query to answer the following question:
`How many times were players named brett ralph were selected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times were players named brett ralph were selected?`:
```sql
|
SELECT "college" FROM "round_six" WHERE "player"='Lenard Semajuste'; |
## Task
Generate a SQL query to answer the following question:
`What schools did lenard semajuste play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What schools did lenard semajuste play for?`:
```sql
|
SELECT MAX("pick_num") FROM "round_six" WHERE "cfl_team"='Saskatchewan Roughriders'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest selection number for the saskatchewan roughriders team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest selection number for the saskatchewan roughriders team?`:
```sql
|
SELECT COUNT("pick_num") FROM "round_six" WHERE "position"='FB'; |
## Task
Generate a SQL query to answer the following question:
`How many fb players were drafted?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many fb players were drafted?`:
```sql
|
SELECT COUNT("player") FROM "round_six" WHERE "college"='Adams State'; |
## Task
Generate a SQL query to answer the following question:
`How many players played for adams state school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players played for adams state school?`:
```sql
|
SELECT "cfl_team" FROM "round_six" WHERE "college"='Northwood'; |
## Task
Generate a SQL query to answer the following question:
`What teams drafted players that played for northwood school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What teams drafted players that played for northwood school?`:
```sql
|
SELECT "college" FROM "round_five" WHERE "player"='Craig Zimmer'; |
## Task
Generate a SQL query to answer the following question:
`What college did Craig Zimmer go to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college did Craig Zimmer go to?`:
```sql
|
SELECT "pick_num" FROM "round_five" WHERE "college"='Regina'; |
## Task
Generate a SQL query to answer the following question:
`What is the pick number of regina?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick number of regina?`:
```sql
|
SELECT "player" FROM "round_five" WHERE "position"='LB' AND "cfl_team"='Saskatchewan Roughriders'; |
## Task
Generate a SQL query to answer the following question:
`What is the player who is lb and cfl team is saskatchewan roughriders?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the player who is lb and cfl team is saskatchewan roughriders?`:
```sql
|
SELECT "cfl_team" FROM "round_five" WHERE "position"='OL'; |
## Task
Generate a SQL query to answer the following question:
`What is the cfl team that has a position of ol?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the cfl team that has a position of ol?`:
```sql
|
SELECT COUNT("position") FROM "round_five" WHERE "pick_num"=43; |
## Task
Generate a SQL query to answer the following question:
`What is the number of position where the pick number is 43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of position where the pick number is 43?`:
```sql
|
SELECT "cfl_team" FROM "round_five" WHERE "player"='Ryan Folk'; |
## Task
Generate a SQL query to answer the following question:
`What is the cfl team with ryan folk?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the cfl team with ryan folk?`:
```sql
|
SELECT "release_date" FROM "singles" WHERE "reference"='KIDS-270'; |
## Task
Generate a SQL query to answer the following question:
`What release date is when kids-270 is a reference? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `What release date is when kids-270 is a reference? `:
```sql
|
SELECT "japanese_title" FROM "singles" WHERE "romaji_title"='Da.i.su.ki'; |
## Task
Generate a SQL query to answer the following question:
`what is the title where romaji is titles da.i.su.ki`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the title where romaji is titles da.i.su.ki`:
```sql
|
SELECT "japanese_title" FROM "singles" WHERE "reference"='KIDS-430'; |
## Task
Generate a SQL query to answer the following question:
`what are the title in japanese where the reference is kids-430?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `what are the title in japanese where the reference is kids-430?`:
```sql
|
SELECT "reference" FROM "singles" WHERE "romaji_title"='Heartbreak Sniper'; |
## Task
Generate a SQL query to answer the following question:
`who is the reference when romaji title is heartbreak sniper?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is the reference when romaji title is heartbreak sniper?`:
```sql
|
SELECT COUNT("oricon") FROM "albums" WHERE "japanese_title"='愛のバカ'; |
## Task
Generate a SQL query to answer the following question:
`What rank is 愛のバカ on the Japanese singles chart?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "albums" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is 愛のバカ on the Japanese singles chart?`:
```sql
|
SELECT COUNT("romaji_title") FROM "albums" WHERE "japanese_title"='Mi-Chemin'; |
## Task
Generate a SQL query to answer the following question:
`How many songs have mi-chemin as their Japanese name and romanji name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "albums" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many songs have mi-chemin as their Japanese name and romanji name?`:
```sql
|
SELECT "partial_thromboplastin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor X deficiency as seen in amyloid purpura'; |
## Task
Generate a SQL query to answer the following question:
`What was the partial thromboplastin time for factor x deficiency as seen in amyloid purpura`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the partial thromboplastin time for factor x deficiency as seen in amyloid purpura`:
```sql
|
SELECT COUNT("condition") FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='Unaffected' AND "bleeding_time"='Prolonged'; |
## Task
Generate a SQL query to answer the following question:
`How many conditions have an unaffected prothrombin time and a prolonged bleeding time`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many conditions have an unaffected prothrombin time and a prolonged bleeding time`:
```sql
|
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor X deficiency as seen in amyloid purpura'; |
## Task
Generate a SQL query to answer the following question:
`What was the bleeding time for the factor x deficiency as seen in amyloid purpura`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the bleeding time for the factor x deficiency as seen in amyloid purpura`:
```sql
|
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='Prolonged' AND "bleeding_time"='Prolonged'; |
## Task
Generate a SQL query to answer the following question:
`What conditions had both prolonged bleeding times and prolonged partial thromboplastin times`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What conditions had both prolonged bleeding times and prolonged partial thromboplastin times`:
```sql
|
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor XII deficiency'; |
## Task
Generate a SQL query to answer the following question:
`What was the bleeding time for factor xii deficiency`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the bleeding time for factor xii deficiency`:
```sql
|
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='Unaffected' AND "platelet_count"='Unaffected'; |
## Task
Generate a SQL query to answer the following question:
`What were the bleeding times when both the platelet count was unaffected and the partial thromboplastin time was unaffected`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the bleeding times when both the platelet count was unaffected and the partial thromboplastin time was unaffected`:
```sql
|
SELECT "tuesday" FROM "locations" WHERE "location"='Millhopper'; |
## Task
Generate a SQL query to answer the following question:
`what's the tuesday time with location being millhopper`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the tuesday time with location being millhopper`:
```sql
|
SELECT "wednesday" FROM "locations" WHERE "monday"='10:00-8:00'; |
## Task
Generate a SQL query to answer the following question:
`what's the wednesday time with monday being 10:00-8:00`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the wednesday time with monday being 10:00-8:00`:
```sql
|
SELECT "thursday" FROM "locations" WHERE "location"='Hawthorne'; |
## Task
Generate a SQL query to answer the following question:
`what's the thursday time with location being hawthorne`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the thursday time with location being hawthorne`:
```sql
|
SELECT "saturday" FROM "locations" WHERE "wednesday"='10:00-5:00'; |
## Task
Generate a SQL query to answer the following question:
`what's the saturday time with wednesday being 10:00-5:00`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the saturday time with wednesday being 10:00-5:00`:
```sql
|
SELECT "thursday" FROM "locations" WHERE "sunday"='1:00-5:00' AND "tuesday"='1:00-7:00'; |
## Task
Generate a SQL query to answer the following question:
`what's the thursday time with sunday being 1:00-5:00 and tuesday being 1:00-7:00`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the thursday time with sunday being 1:00-5:00 and tuesday being 1:00-7:00`:
```sql
|
SELECT "monday" FROM "locations" WHERE "tuesday"='9:00-6:00'; |
## Task
Generate a SQL query to answer the following question:
`what's the monday time with tuesday being 9:00-6:00`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the monday time with tuesday being 9:00-6:00`:
```sql
|
SELECT "report" FROM "race_results" WHERE "fastest_lap"='Paul Tracy'; |
## Task
Generate a SQL query to answer the following question:
`What are all the reports where Paul Tracy had the fastest lap?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rnd" real,
"race_name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the reports where Paul Tracy had the fastest lap?`:
```sql
|
SELECT "fastest_lap" FROM "race_results" WHERE "race_name"='Tenneco Automotive Grand Prix of Detroit'; |
## Task
Generate a SQL query to answer the following question:
`Who drove the fastest lap at the Tenneco Automotive Grand Prix of Detroit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rnd" real,
"race_name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who drove the fastest lap at the Tenneco Automotive Grand Prix of Detroit?`:
```sql
|
SELECT "fastest_lap" FROM "race_results" WHERE "winning_driver"='Max Papis'; |
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap in the races won by Max Papis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rnd" real,
"race_name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap in the races won by Max Papis?`:
```sql
|
SELECT COUNT("winning_driver") FROM "race_results" WHERE "rnd"=6; |
## Task
Generate a SQL query to answer the following question:
`In Round 6, how many winning drivers were there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rnd" real,
"race_name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `In Round 6, how many winning drivers were there?`:
```sql
|
SELECT "original_name" FROM "districts_of_bogor_city" WHERE "population_at_2010_census"=210450; |
## Task
Generate a SQL query to answer the following question:
`What are the original names of the districts where the population in the 2010 census was 210450?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
"original_name" text,
"area_in_km" text,
"population_at_2010_census" real,
"number_of_settlements_and_villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the original names of the districts where the population in the 2010 census was 210450?`:
```sql
|
SELECT "original_name" FROM "districts_of_bogor_city" WHERE "english_name"='South Bogor'; |
## Task
Generate a SQL query to answer the following question:
`What is the original name of the district with the current English name of South Bogor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
"original_name" text,
"area_in_km" text,
"population_at_2010_census" real,
"number_of_settlements_and_villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original name of the district with the current English name of South Bogor?`:
```sql
|
SELECT MIN("population_at_2010_census") FROM "districts_of_bogor_city" WHERE "english_name"='West Bogor'; |
## Task
Generate a SQL query to answer the following question:
`What is the listed population from the 2010 census of West Bogor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
"original_name" text,
"area_in_km" text,
"population_at_2010_census" real,
"number_of_settlements_and_villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the listed population from the 2010 census of West Bogor?`:
```sql
|
SELECT COUNT("english_name") FROM "districts_of_bogor_city" WHERE "area_in_km"='17.72'; |
## Task
Generate a SQL query to answer the following question:
`How many districts have an area of 17.72 KM2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
"original_name" text,
"area_in_km" text,
"population_at_2010_census" real,
"number_of_settlements_and_villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many districts have an area of 17.72 KM2?`:
```sql
|
SELECT "area_in_km" FROM "districts_of_bogor_city" WHERE "original_name"='Kecamatan Bogor Timur'; |
## Task
Generate a SQL query to answer the following question:
`What is the area in km2 for the district whose original name was Kecamatan Bogor Timur?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
"original_name" text,
"area_in_km" text,
"population_at_2010_census" real,
"number_of_settlements_and_villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area in km2 for the district whose original name was Kecamatan Bogor Timur?`:
```sql
|
SELECT COUNT("colour") FROM "production_overview" WHERE "registration_no"='MG-509'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of colour with the regisration number of mg-509?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "production_overview" (
"pilot_car_no" real,
"colour" text,
"serial_no" text,
"engine_no" real,
"registration_no" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of colour with the regisration number of mg-509?`:
```sql
|
SELECT "title" FROM "table1_11058032_1" WHERE "directed_by"='Mark Tinker'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode directed by Mark Tinker?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11058032_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 is the title of the episode directed by Mark Tinker?`:
```sql
|
SELECT MIN("no_in_season") FROM "table1_11058032_1" WHERE "directed_by"='Jeff Melman'; |
## Task
Generate a SQL query to answer the following question:
`What episode in the season was directed by Jeff Melman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11058032_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 episode in the season was directed by Jeff Melman?`:
```sql
|