output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "monarch" FROM "capetian_associate_kings" WHERE "co_kingship_ceased"='13 October 1131'; |
## Task
Generate a SQL query to answer the following question:
`Name the monarch for 13 october 1131`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "capetian_associate_kings" (
"co_king" text,
"relationship_to_monarch" text,
"crowned" text,
"co_kingship_ceased" text,
"reason" text,
"monarch" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the monarch for 13 october 1131`:
```sql
|
SELECT "playoffs" FROM "year_by_year" WHERE "open_cup"='Did not qualify' AND "year"=1998; |
## Task
Generate a SQL query to answer the following question:
`What was the playoff result where the league did not qualify in the Open Cup in 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the playoff result where the league did not qualify in the Open Cup in 1998?`:
```sql
|
SELECT MIN("year") FROM "year_by_year" WHERE "regular_season"='3rd, Southeast' AND "league"='USL PDL'; |
## Task
Generate a SQL query to answer the following question:
`What was the earliest year where USL PDL played in 3rd, Southeast season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest year where USL PDL played in 3rd, Southeast season?`:
```sql
|
SELECT "open_cup" FROM "year_by_year" WHERE "year"=2003; |
## Task
Generate a SQL query to answer the following question:
`What was the Open Cup results for the year 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Open Cup results for the year 2003?`:
```sql
|
SELECT MAX("total_evm_votes") FROM "results_of_the_2009_indian_general_elect"; |
## Task
Generate a SQL query to answer the following question:
`What is the highest total for evm votes`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_of_the_2009_indian_general_elect" (
"sl_no" real,
"name" text,
"party_name" text,
"postal_ballot" real,
"10_thiruvottiyur" real,
"11_dr_radhakrishnan_nagar" real,
"12_perambur_sc" real,
"13_kolathur_sc" real,
"16_thiru_vi_ka_nagar" real,
"17_royapuram" real,
"total_evm_votes" real,
"total_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total for evm votes`:
```sql
|
SELECT "total_votes" FROM "results_of_the_2009_indian_general_elect" WHERE "party_name"='DMK'; |
## Task
Generate a SQL query to answer the following question:
`What is DMK's total number of votes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_of_the_2009_indian_general_elect" (
"sl_no" real,
"name" text,
"party_name" text,
"postal_ballot" real,
"10_thiruvottiyur" real,
"11_dr_radhakrishnan_nagar" real,
"12_perambur_sc" real,
"13_kolathur_sc" real,
"16_thiru_vi_ka_nagar" real,
"17_royapuram" real,
"total_evm_votes" real,
"total_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is DMK's total number of votes?`:
```sql
|
SELECT "episode" FROM "table1_24051050_1" WHERE "contest"='Heat 1'; |
## Task
Generate a SQL query to answer the following question:
`In what episode did heat 1 take place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24051050_1" (
"episode" real,
"contest" text,
"original_airdate" text,
"challengers_female" text,
"challengers_male" text,
"events" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what episode did heat 1 take place?`:
```sql
|
SELECT "events" FROM "table1_24051050_1" WHERE "episode"=12; |
## Task
Generate a SQL query to answer the following question:
`What events took place in episode 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24051050_1" (
"episode" real,
"contest" text,
"original_airdate" text,
"challengers_female" text,
"challengers_male" text,
"events" text
);
### SQL
Given the database schema, here is the SQL query that answers `What events took place in episode 12?`:
```sql
|
SELECT "challengers_female" FROM "table1_24051050_1" WHERE "episode"=28; |
## Task
Generate a SQL query to answer the following question:
`Which female challengers featured in episode 28?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24051050_1" (
"episode" real,
"contest" text,
"original_airdate" text,
"challengers_female" text,
"challengers_male" text,
"events" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which female challengers featured in episode 28?`:
```sql
|
SELECT COUNT("name") FROM "2009_10_roster" WHERE "hometown"='Los Angeles'; |
## Task
Generate a SQL query to answer the following question:
`How many players came from Los Angeles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_10_roster" (
"name" text,
"number" real,
"pos" text,
"height" text,
"weight" real,
"year" text,
"hometown" text,
"high_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players came from Los Angeles?`:
```sql
|
SELECT "height" FROM "2009_10_roster" WHERE "hometown"='Los Angeles'; |
## Task
Generate a SQL query to answer the following question:
`What is the height when the player is from Los Angeles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_10_roster" (
"name" text,
"number" real,
"pos" text,
"height" text,
"weight" real,
"year" text,
"hometown" text,
"high_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height when the player is from Los Angeles?`:
```sql
|
SELECT "height" FROM "2009_10_roster" WHERE "name"='Kammeon Holsey'; |
## Task
Generate a SQL query to answer the following question:
`What is Kammeon Holsey's height?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_10_roster" (
"name" text,
"number" real,
"pos" text,
"height" text,
"weight" real,
"year" text,
"hometown" text,
"high_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Kammeon Holsey's height?`:
```sql
|
SELECT "high_school" FROM "2009_10_roster" WHERE "number"=5; |
## Task
Generate a SQL query to answer the following question:
`What is the high school of the player number 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_10_roster" (
"name" text,
"number" real,
"pos" text,
"height" text,
"weight" real,
"year" text,
"hometown" text,
"high_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the high school of the player number 5?`:
```sql
|
SELECT "12_37_35" FROM "records" WHERE "hengelo_netherlands"='Hengelo, Netherlands'; |
## Task
Generate a SQL query to answer the following question:
`What is the 12::37.35 when hengelo , netherlands is hengelo, netherlands?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "records" (
"world_record" text,
"kenenisa_bekele_eth" text,
"12_37_35" text,
"hengelo_netherlands" text,
"31_may_2004" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 12::37.35 when hengelo , netherlands is hengelo, netherlands?`:
```sql
|
SELECT "hengelo_netherlands" FROM "records" WHERE "31_may_2004"='8 June 2006'; |
## Task
Generate a SQL query to answer the following question:
`what is hengelo , netherlands when 31 may 2004 is 8 june 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "records" (
"world_record" text,
"kenenisa_bekele_eth" text,
"12_37_35" text,
"hengelo_netherlands" text,
"31_may_2004" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is hengelo , netherlands when 31 may 2004 is 8 june 2006?`:
```sql
|
SELECT "31_may_2004" FROM "records" WHERE "12_37_35"='13:19.43'; |
## Task
Generate a SQL query to answer the following question:
`what is 31 may 2004 when 12:37.35 is 13:19.43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "records" (
"world_record" text,
"kenenisa_bekele_eth" text,
"12_37_35" text,
"hengelo_netherlands" text,
"31_may_2004" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is 31 may 2004 when 12:37.35 is 13:19.43?`:
```sql
|
SELECT COUNT("world_record") FROM "records" WHERE "kenenisa_bekele_eth"='Marílson Gomes dos Santos ( BRA )'; |
## Task
Generate a SQL query to answer the following question:
`How many times is kenenisa bekele ( eth ) is marílson gomes dos santos ( bra )?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "records" (
"world_record" text,
"kenenisa_bekele_eth" text,
"12_37_35" text,
"hengelo_netherlands" text,
"31_may_2004" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is kenenisa bekele ( eth ) is marílson gomes dos santos ( bra )?`:
```sql
|
SELECT "against" FROM "singles_performances_4_2" WHERE "opponent"='Andreas Vinciguerra'; |
## Task
Generate a SQL query to answer the following question:
`What is every entry for against with opponent Andreas Vinciguerra?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performances_4_2" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"win_lose" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every entry for against with opponent Andreas Vinciguerra?`:
```sql
|
SELECT "against" FROM "singles_performances_4_2" WHERE "opponent"='Andreas Vinciguerra'; |
## Task
Generate a SQL query to answer the following question:
`What is every entry for against with opponent Andreas Vinciguerra?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performances_4_2" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"win_lose" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every entry for against with opponent Andreas Vinciguerra?`:
```sql
|
SELECT "surface" FROM "singles_performances_4_2" WHERE "against"='Sweden'; |
## Task
Generate a SQL query to answer the following question:
`What is every surface against Sweden?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performances_4_2" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"win_lose" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every surface against Sweden?`:
```sql
|
SELECT "win_lose" FROM "singles_performances_4_2" WHERE "against"='Sweden'; |
## Task
Generate a SQL query to answer the following question:
`What is every entry in the win/lose against Sweden?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performances_4_2" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"win_lose" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every entry in the win/lose against Sweden?`:
```sql
|
SELECT COUNT("production_code") FROM "table1_2409041_3" WHERE "original_air_date"='November 16, 1990'; |
## Task
Generate a SQL query to answer the following question:
`How many production codes have an original airdate of November 16, 1990?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many production codes have an original airdate of November 16, 1990?`:
```sql
|
SELECT MIN("no_in_series") FROM "table1_2409041_3" WHERE "original_air_date"='March 1, 1991'; |
## Task
Generate a SQL query to answer the following question:
`What series number had an original airdate of March 1, 1991?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What series number had an original airdate of March 1, 1991?`:
```sql
|
SELECT "directed_by" FROM "table1_2409041_3" WHERE "title"='\"Torn Between Two Lovers\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed "Torn Between Two Lovers"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed "Torn Between Two Lovers"?`:
```sql
|
SELECT COUNT("production_code") FROM "table1_2409041_3" WHERE "no_in_series"=39; |
## Task
Generate a SQL query to answer the following question:
`How many production codes were in series 39?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many production codes were in series 39?`:
```sql
|
SELECT "written_by" FROM "table1_2409041_3" WHERE "no_in_season"=23; |
## Task
Generate a SQL query to answer the following question:
`Who wrote season 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote season 23?`:
```sql
|
SELECT MIN("production_code") FROM "table1_2409041_5" WHERE "no_in_series"=86; |
## Task
Generate a SQL query to answer the following question:
`What is the production code for episode number 86 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for episode number 86 in the series?`:
```sql
|
SELECT MIN("no_in_series") FROM "table1_2409041_5" WHERE "title"='\"Dance to the Music\"'; |
## Task
Generate a SQL query to answer the following question:
`What episode number in the series is "dance to the music"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number in the series is "dance to the music"?`:
```sql
|
SELECT MAX("production_code") FROM "table1_2409041_5" WHERE "original_air_date"='January 8, 1993'; |
## Task
Generate a SQL query to answer the following question:
`What is the production code for the episode that originally aired on January 8, 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for the episode that originally aired on January 8, 1993?`:
```sql
|
SELECT "written_by" FROM "table1_2409041_5" WHERE "original_air_date"='January 15, 1993'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode that originally aired on January 15, 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode that originally aired on January 15, 1993?`:
```sql
|
SELECT "title" FROM "table1_2409041_5" WHERE "no_in_series"=77; |
## Task
Generate a SQL query to answer the following question:
`What is the name of episode number 77 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of episode number 77 in the series?`:
```sql
|
SELECT "directed_by" FROM "table1_2409041_2" WHERE "no_in_series"=17; |
## Task
Generate a SQL query to answer the following question:
`When 17 is the number in series who is the director?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 17 is the number in series who is the director?`:
```sql
|
SELECT "original_air_date" FROM "table1_2409041_2" WHERE "no_in_series"=21; |
## Task
Generate a SQL query to answer the following question:
`When 21 is the number in series what is the air date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 21 is the number in series what is the air date?`:
```sql
|
SELECT "written_by" FROM "table1_2409041_2" WHERE "production_code"=446004; |
## Task
Generate a SQL query to answer the following question:
`When 446004 is the production code who are the writers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 446004 is the production code who are the writers?`:
```sql
|
SELECT COUNT("original_air_date") FROM "table1_2409041_2" WHERE "title"='\"Body Damage\"'; |
## Task
Generate a SQL query to answer the following question:
`When "body damage" is the title how many air dates are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When "body damage" is the title how many air dates are there?`:
```sql
|
SELECT "directed_by" FROM "table1_2409041_9" WHERE "title"='\"What Do You Know?\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed "what do you know?"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed "what do you know?"?`:
```sql
|
SELECT "title" FROM "table1_2409041_9" WHERE "written_by"='Gary M. Goodrich'; |
## Task
Generate a SQL query to answer the following question:
`What was the name of the epiode written by Gary M. Goodrich?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the epiode written by Gary M. Goodrich?`:
```sql
|
SELECT "directed_by" FROM "table1_2409041_9" WHERE "no_in_series"=179; |
## Task
Generate a SQL query to answer the following question:
`Who directed episode number 179 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed episode number 179 in the series?`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_2409041_9" WHERE "title"='\"Odd Man In\"'; |
## Task
Generate a SQL query to answer the following question:
`How many people directed "odd man in"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people directed "odd man in"?`:
```sql
|
SELECT "voltage" FROM "tillamook_0_25_m" WHERE "part_number_s"='TT80503300'; |
## Task
Generate a SQL query to answer the following question:
`What's the voltage of the model with part number TT80503300?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tillamook_0_25_m" (
"model_number" text,
"frequency" text,
"l1_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"s_spec_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the voltage of the model with part number TT80503300?`:
```sql
|
SELECT "frequency" FROM "tillamook_0_25_m" WHERE "part_number_s"='TT80503300'; |
## Task
Generate a SQL query to answer the following question:
`What's the frequency of the model with part number TT80503300?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tillamook_0_25_m" (
"model_number" text,
"frequency" text,
"l1_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"s_spec_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the frequency of the model with part number TT80503300?`:
```sql
|
SELECT "part_number_s" FROM "tillamook_0_25_m" WHERE "tdp"='2.9 (Max.4.1~5.4) W'; |
## Task
Generate a SQL query to answer the following question:
`What's the part number of the model with TDP of 2.9 (max.4.1~5.4) w?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tillamook_0_25_m" (
"model_number" text,
"frequency" text,
"l1_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"s_spec_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the part number of the model with TDP of 2.9 (max.4.1~5.4) w?`:
```sql
|
SELECT "l1_cache" FROM "tillamook_0_25_m" WHERE "s_spec_number"='SL2Z3, SL28Q (myA0)'; |
## Task
Generate a SQL query to answer the following question:
`What's the l1 cache of the model with sspec number sl2z3, sl28q (mya0)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tillamook_0_25_m" (
"model_number" text,
"frequency" text,
"l1_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"s_spec_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the l1 cache of the model with sspec number sl2z3, sl28q (mya0)?`:
```sql
|
SELECT COUNT("region_4_australia") FROM "table1_240936_2" WHERE "region_2_uk"='July 9, 2007'; |
## Task
Generate a SQL query to answer the following question:
`How many region 4 dates are associated with a region 2 date of July 9, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_240936_2" (
"dvd_name" text,
"ep_num" text,
"region_1_us" text,
"region_1_can" text,
"region_2_uk" text,
"region_2_germany" text,
"region_4_australia" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many region 4 dates are associated with a region 2 date of July 9, 2007?`:
```sql
|
SELECT "region_1_can" FROM "table1_240936_2" WHERE "region_1_us"='January 16, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the region 1 (Canada) date associated with a region 1 (US) date of January 16, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_240936_2" (
"dvd_name" text,
"ep_num" text,
"region_1_us" text,
"region_1_can" text,
"region_2_uk" text,
"region_2_germany" text,
"region_4_australia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region 1 (Canada) date associated with a region 1 (US) date of January 16, 2007?`:
```sql
|
SELECT "region_4_australia" FROM "table1_240936_2" WHERE "region_1_us"='January 16, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the region 4 (Aus) date associated with a region 1 (US) date of January 16, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_240936_2" (
"dvd_name" text,
"ep_num" text,
"region_1_us" text,
"region_1_can" text,
"region_2_uk" text,
"region_2_germany" text,
"region_4_australia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region 4 (Aus) date associated with a region 1 (US) date of January 16, 2007?`:
```sql
|
SELECT "region_2_uk" FROM "table1_240936_2" WHERE "region_4_australia"='July 31, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is the region 2 (UK) date associated with a region 4 (Aus) date of July 31, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_240936_2" (
"dvd_name" text,
"ep_num" text,
"region_1_us" text,
"region_1_can" text,
"region_2_uk" text,
"region_2_germany" text,
"region_4_australia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region 2 (UK) date associated with a region 4 (Aus) date of July 31, 2008?`:
```sql
|
SELECT "region_1_can" FROM "table1_240936_2" WHERE "region_2_uk"='May 18, 2009'; |
## Task
Generate a SQL query to answer the following question:
`What is the region 1 (Canada) date associated with a region 2 (UK) date of May 18, 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_240936_2" (
"dvd_name" text,
"ep_num" text,
"region_1_us" text,
"region_1_can" text,
"region_2_uk" text,
"region_2_germany" text,
"region_4_australia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region 1 (Canada) date associated with a region 2 (UK) date of May 18, 2009?`:
```sql
|
SELECT COUNT("no_in_season") FROM "table1_2409041_6" WHERE "title"='\"All the Wrong Moves\"'; |
## Task
Generate a SQL query to answer the following question:
`How many seasons included an episode titled "all the wrong moves"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons included an episode titled "all the wrong moves"?`:
```sql
|
SELECT "directed_by" FROM "table1_2409041_6" WHERE "original_air_date"='September 24, 1993'; |
## Task
Generate a SQL query to answer the following question:
`Who was the director for the episode airing on September 24, 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director for the episode airing on September 24, 1993?`:
```sql
|
SELECT COUNT("no_in_series") FROM "table1_2409041_6" WHERE "no_in_season"=18; |
## Task
Generate a SQL query to answer the following question:
`In which series was season 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `In which series was season 18?`:
```sql
|
SELECT "written_by" FROM "table1_2409041_6" WHERE "title"='\"Car Wars\"'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode "car wars"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode "car wars"?`:
```sql
|
SELECT "title" FROM "table1_2409041_6" WHERE "no_in_season"=2; |
## Task
Generate a SQL query to answer the following question:
`What is the title of season 2? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2409041_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of season 2? `:
```sql
|
SELECT "brand_name" FROM "variants" WHERE "model_list"='E4xxx'; |
## Task
Generate a SQL query to answer the following question:
`What is the brand name associated with a model name e4xxx?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the brand name associated with a model name e4xxx?`:
```sql
|
SELECT "brand_name" FROM "variants" WHERE "model_list"='E4xxx'; |
## Task
Generate a SQL query to answer the following question:
`What is the brand name associated with the model named e4xxx?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the brand name associated with the model named e4xxx?`:
```sql
|
SELECT "brand_name" FROM "variants" WHERE "model_list"='4x0'; |
## Task
Generate a SQL query to answer the following question:
`What is the brand name associated with the model 4x0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the brand name associated with the model 4x0?`:
```sql
|
SELECT "cores" FROM "variants" WHERE "model_list"='E2xxx'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of cores associated with model name e2xxx?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of cores associated with model name e2xxx?`:
```sql
|
SELECT "tdp" FROM "variants" WHERE "model_list"='4x0'; |
## Task
Generate a SQL query to answer the following question:
`What is the wattage/TDP associated with model name 4x0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the wattage/TDP associated with model name 4x0?`:
```sql
|
SELECT "tdp" FROM "variants" WHERE "socket"='BGA956' AND "processor"='Penryn-3M'; |
## Task
Generate a SQL query to answer the following question:
`When the socket is bga956 and processor is penryn-3m, what is the tdp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the socket is bga956 and processor is penryn-3m, what is the tdp?`:
```sql
|
SELECT "processor" FROM "variants" WHERE "model_list"='P9xxx'; |
## Task
Generate a SQL query to answer the following question:
`Whats the processor for p9xxx?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whats the processor for p9xxx?`:
```sql
|
SELECT "l2_cache" FROM "variants" WHERE "tdp"='5.5-10 W'; |
## Task
Generate a SQL query to answer the following question:
`What's the l2 cache of the model with TDP of 5.5-10 w?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the l2 cache of the model with TDP of 5.5-10 w?`:
```sql
|
SELECT "model_list" FROM "variants" WHERE "socket"='BGA479' AND "tdp"='5.5 W'; |
## Task
Generate a SQL query to answer the following question:
`What's the model of the processor with BGA479 socket and a 5.5 w TDP?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the model of the processor with BGA479 socket and a 5.5 w TDP?`:
```sql
|
SELECT "model_list" FROM "variants" WHERE "tdp"='5.5 W'; |
## Task
Generate a SQL query to answer the following question:
`What's the model of the processor with a 5.5 w TDP?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the model of the processor with a 5.5 w TDP?`:
```sql
|
SELECT MIN("cores") FROM "variants"; |
## Task
Generate a SQL query to answer the following question:
`What's the smallest number for cores of any of the processor models?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest number for cores of any of the processor models?`:
```sql
|
SELECT "model_list" FROM "variants" WHERE "processor"='Yorkfield' AND "brand_name"='Xeon'; |
## Task
Generate a SQL query to answer the following question:
`what is the model where the processor is yorkfield and the brand name is xeon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the model where the processor is yorkfield and the brand name is xeon?`:
```sql
|
SELECT "socket" FROM "variants" WHERE "brand_name"='Core 2 Extreme'; |
## Task
Generate a SQL query to answer the following question:
`what is the socket that has a brand name of core 2 extreme?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the socket that has a brand name of core 2 extreme?`:
```sql
|
SELECT "processor" FROM "variants" WHERE "model_list"='X33x0'; |
## Task
Generate a SQL query to answer the following question:
`what is the name of the processor for model x33x0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the processor for model x33x0?`:
```sql
|
SELECT MIN("before") FROM "table1_24108789_4"; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest number in before?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24108789_4" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"winnings" real,
"after" real,
"before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest number in before?`:
```sql
|
SELECT MAX("after") FROM "table1_24108789_4" WHERE "player"='Steve Stricker'; |
## Task
Generate a SQL query to answer the following question:
`What is the latest after when the player is Steve Stricker?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24108789_4" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"winnings" real,
"after" real,
"before" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest after when the player is Steve Stricker?`:
```sql
|
SELECT "before" FROM "table1_24108789_4" WHERE "player"='Geoff Ogilvy'; |
## Task
Generate a SQL query to answer the following question:
`List all before numbers when Geoff Ogilvy was playing.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24108789_4" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"winnings" real,
"after" real,
"before" real
);
### SQL
Given the database schema, here is the SQL query that answers `List all before numbers when Geoff Ogilvy was playing.`:
```sql
|
SELECT MIN("events") FROM "reset_points" WHERE "num"=7; |
## Task
Generate a SQL query to answer the following question:
`Name the least events for number 7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least events for number 7`:
```sql
|
SELECT COUNT("events") FROM "reset_points" WHERE "points"=3031; |
## Task
Generate a SQL query to answer the following question:
`Name the number of events for 3031`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of events for 3031`:
```sql
|
SELECT "player" FROM "reset_points" WHERE "events"=22; |
## Task
Generate a SQL query to answer the following question:
`Name the player for 22 events`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the player for 22 events`:
```sql
|
SELECT MIN("points") FROM "reset_points" WHERE "num"=6; |
## Task
Generate a SQL query to answer the following question:
`Name the least points for number 6`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least points for number 6`:
```sql
|
SELECT MAX("num") FROM "reset_points" WHERE "player"='Steve Stricker'; |
## Task
Generate a SQL query to answer the following question:
`Name the most number for steve stricker`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most number for steve stricker`:
```sql
|
SELECT COUNT("points") FROM "reset_points" WHERE "reset_points"=800; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of points for 800 reset`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of points for 800 reset`:
```sql
|
SELECT "kennedy_pct" FROM "by_county" WHERE "coakley_pct"='37.9%'; |
## Task
Generate a SQL query to answer the following question:
`What percentage did kennedy win while coakly won 37.9%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"coakley_pct" text,
"coakley_votes" real,
"brown_pct" text,
"brown_votes" real,
"kennedy_pct" text,
"kennedy_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage did kennedy win while coakly won 37.9%`:
```sql
|
SELECT MIN("kennedy_votes") FROM "by_county" WHERE "coakley_pct"='66.2%'; |
## Task
Generate a SQL query to answer the following question:
`How many votes did kennedy win when coakley won 66.2%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"coakley_pct" text,
"coakley_votes" real,
"brown_pct" text,
"brown_votes" real,
"kennedy_pct" text,
"kennedy_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did kennedy win when coakley won 66.2%`:
```sql
|
SELECT "coakley_pct" FROM "by_county" WHERE "kennedy_pct"='1.6%'; |
## Task
Generate a SQL query to answer the following question:
`What was the percentage of votes for coakley when kennedy won 1.6%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"coakley_pct" text,
"coakley_votes" real,
"brown_pct" text,
"brown_votes" real,
"kennedy_pct" text,
"kennedy_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage of votes for coakley when kennedy won 1.6%`:
```sql
|
SELECT COUNT("kennedy_votes") FROM "by_county" WHERE "coakley_votes"=2139; |
## Task
Generate a SQL query to answer the following question:
`How many votes did kennedy win when coaklely won 2139 votes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"coakley_pct" text,
"coakley_votes" real,
"brown_pct" text,
"brown_votes" real,
"kennedy_pct" text,
"kennedy_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did kennedy win when coaklely won 2139 votes?`:
```sql
|
SELECT COUNT("location") FROM "schedule" WHERE "week"=7; |
## Task
Generate a SQL query to answer the following question:
`How many locations did the team play at on week 7?`
### 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 `How many locations did the team play at on week 7?`:
```sql
|
SELECT "final_score" FROM "schedule" WHERE "opponent"='Lions'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the games VS the Lions?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the games VS the Lions?`:
```sql
|
SELECT COUNT("date") FROM "schedule" WHERE "opponent"='Alouettes'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of dates for alouettes`
### 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 `Name the number of dates for alouettes`:
```sql
|
SELECT MIN("attendance") FROM "schedule" WHERE "final_score"='L 36–1'; |
## Task
Generate a SQL query to answer the following question:
`Name the least attendance for l 36–1`
### 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 `Name the least attendance for l 36–1`:
```sql
|
SELECT "final_score" FROM "schedule" WHERE "location"='Exhibition Stadium' AND "date"='September 10'; |
## Task
Generate a SQL query to answer the following question:
`Name the final score for exhibition stadium for september 10`
### 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 `Name the final score for exhibition stadium for september 10`:
```sql
|
SELECT COUNT("record") FROM "schedule" WHERE "week"=11; |
## Task
Generate a SQL query to answer the following question:
`Name the number of record for week 11`
### 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 `Name the number of record for week 11`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "week"=12; |
## Task
Generate a SQL query to answer the following question:
`Name the opponent for week 12`
### 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 `Name the opponent for week 12`:
```sql
|
SELECT COUNT("opponent") FROM "schedule" WHERE "date"='October 3'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of opponent for october 3`
### 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 `Name the total number of opponent for october 3`:
```sql
|
SELECT "final_score" FROM "schedule" WHERE "week"=5; |
## Task
Generate a SQL query to answer the following question:
`Name the final score for week 5`
### 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 `Name the final score for week 5`:
```sql
|
SELECT "directed_by" FROM "table1_24132054_1" WHERE "no_in_series"=28; |
## Task
Generate a SQL query to answer the following question:
`Who directed episode 28 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24132054_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 episode 28 in the series?`:
```sql
|
SELECT "directed_by" FROM "table1_24132054_1" WHERE "title"='\"Go Your Own Way\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed "go your own way"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24132054_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 "go your own way"?`:
```sql
|
SELECT MIN("no_in_season") FROM "table1_24132054_1" WHERE "title"='\"Easy as Pie\"'; |
## Task
Generate a SQL query to answer the following question:
`What episode in the season was "easy as pie"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24132054_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 "easy as pie"?`:
```sql
|
SELECT MIN("no_in_series") FROM "table1_24132083_1" WHERE "written_by"='Lauren Gussis'; |
## Task
Generate a SQL query to answer the following question:
`What in the series number of the episode written by Lauren Gussis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24132083_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 in the series number of the episode written by Lauren Gussis?`:
```sql
|
SELECT COUNT("original_air_date") FROM "table1_24132083_1" WHERE "directed_by"='Marcos Siega' AND "written_by"='Scott Buck'; |
## Task
Generate a SQL query to answer the following question:
`On how many different dates did the episode directed by Marcos Siega and written by Scott Buck air for the first time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24132083_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 `On how many different dates did the episode directed by Marcos Siega and written by Scott Buck air for the first time?`:
```sql
|
SELECT "directed_by" FROM "table1_24132083_1" WHERE "title"='\"If I Had a Hammer\"'; |
## Task
Generate a SQL query to answer the following question:
`Who was the director of the episode called "If I had a hammer"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24132083_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 was the director of the episode called "If I had a hammer"?`:
```sql
|
SELECT MIN("no_in_series") FROM "table1_24132083_1" WHERE "written_by"='Tim Schlattmann'; |
## Task
Generate a SQL query to answer the following question:
`What's the series number of the episode written by Tim Schlattmann?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24132083_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's the series number of the episode written by Tim Schlattmann?`:
```sql
|
SELECT "semifinal_matches" FROM "wct_1985" WHERE "commercial_name"='Buick WCT Finals'; |
## Task
Generate a SQL query to answer the following question:
`Who played in the semi finals matches at the Buick WCT finals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wct_1985" (
"date_final" text,
"tournament" text,
"commercial_name" text,
"category" text,
"prize_money_surface" text,
"final_match" text,
"semifinal_matches" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played in the semi finals matches at the Buick WCT finals?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "final_score"='L 28–15'; |
## Task
Generate a SQL query to answer the following question:
`Name the date for l 28–15 `
### 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 `Name the date for l 28–15 `:
```sql
|
SELECT "location" FROM "schedule" WHERE "opponent"='Tiger-Cats'; |
## Task
Generate a SQL query to answer the following question:
`When tiger-cats is the opponent what is the location?`
### 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 `When tiger-cats is the opponent what is the location?`:
```sql
|
SELECT "location" FROM "schedule" WHERE "week"=4; |
## Task
Generate a SQL query to answer the following question:
`When 4 is the week what is the location?`
### 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 `When 4 is the week what is the location?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.