output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "pole_position" FROM "table1_24547593_1" WHERE "circuit"='Knockhill'; |
## Task
Generate a SQL query to answer the following question:
`Who was in the pole position for knockhill?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24547593_1" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_rider" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in the pole position for knockhill?`:
```sql
|
SELECT COUNT("date") FROM "table1_24547593_1" WHERE "circuit"='Knockhill'; |
## Task
Generate a SQL query to answer the following question:
`How many dates was knockhill?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24547593_1" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_rider" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates was knockhill?`:
```sql
|
SELECT "l3_cache" FROM "core_i7" WHERE "brand_name_list"='Core i7-2xxxQE, i7-26xxQM, i7-27xxQM'; |
## Task
Generate a SQL query to answer the following question:
`Name the l3 cache for core i7-2xxxqe, i7-26xxqm, i7-27xxqm`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "core_i7" (
"codename_main_article" text,
"brand_name_list" text,
"cores" real,
"l3_cache" text,
"socket" text,
"tdp" text,
"process" text,
"i_o_bus" text,
"release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the l3 cache for core i7-2xxxqe, i7-26xxqm, i7-27xxqm`:
```sql
|
SELECT "most_laps_led" FROM "2005_indy_car_series_schedule" WHERE "track"='Chicagoland Speedway'; |
## Task
Generate a SQL query to answer the following question:
`Who had most laps led at Chicagoland speedway? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_indy_car_series_schedule" (
"rnd" real,
"date" text,
"race_name" text,
"track" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had most laps led at Chicagoland speedway? `:
```sql
|
SELECT "race_name" FROM "2005_indy_car_series_schedule" WHERE "fastest_lap"='Buddy Rice'; |
## Task
Generate a SQL query to answer the following question:
`In what race did Buddy Rice hav fastest lap? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_indy_car_series_schedule" (
"rnd" real,
"date" text,
"race_name" text,
"track" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what race did Buddy Rice hav fastest lap? `:
```sql
|
SELECT "track" FROM "2005_indy_car_series_schedule" WHERE "date"='March 19'; |
## Task
Generate a SQL query to answer the following question:
`On what tra k was the march 19 race held? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_indy_car_series_schedule" (
"rnd" real,
"date" text,
"race_name" text,
"track" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what tra k was the march 19 race held? `:
```sql
|
SELECT "track" FROM "2005_indy_car_series_schedule" WHERE "race_name"='Argent Mortgage Indy 300'; |
## Task
Generate a SQL query to answer the following question:
`On what track is the Argent mortgage Indy 300 held? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_indy_car_series_schedule" (
"rnd" real,
"date" text,
"race_name" text,
"track" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what track is the Argent mortgage Indy 300 held? `:
```sql
|
SELECT "fastest_lap" FROM "2005_indy_car_series_schedule" WHERE "location"='Phoenix, Arizona'; |
## Task
Generate a SQL query to answer the following question:
`who held the fastes lap in Phoenix, Arizona? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2005_indy_car_series_schedule" (
"rnd" real,
"date" text,
"race_name" text,
"track" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"most_laps_led" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `who held the fastes lap in Phoenix, Arizona? `:
```sql
|
SELECT "played" FROM "statistics" WHERE "legs_won"=25 AND "100"=35; |
## Task
Generate a SQL query to answer the following question:
`How many games were played with 25 legs won with 35 100+?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" text,
"played" real,
"sets_won" real,
"sets_lost" real,
"legs_won" real,
"legs_lost" real,
"lwat" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were played with 25 legs won with 35 100+?`:
```sql
|
SELECT MAX("sets_lost") FROM "statistics" WHERE "3_dart_average"='87.55'; |
## Task
Generate a SQL query to answer the following question:
`How many sets were lost with a 3-dart average of 87.55?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" text,
"played" real,
"sets_won" real,
"sets_lost" real,
"legs_won" real,
"legs_lost" real,
"lwat" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many sets were lost with a 3-dart average of 87.55?`:
```sql
|
SELECT COUNT("player") FROM "statistics" WHERE "high_checkout"=84; |
## Task
Generate a SQL query to answer the following question:
`How man players checked out at 84?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" text,
"played" real,
"sets_won" real,
"sets_lost" real,
"legs_won" real,
"legs_lost" real,
"lwat" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How man players checked out at 84?`:
```sql
|
SELECT COUNT("3_dart_average") FROM "statistics" WHERE "player"='Gary Anderson'; |
## Task
Generate a SQL query to answer the following question:
`How man 3-dart averages did gary anderson have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" text,
"played" real,
"sets_won" real,
"sets_lost" real,
"legs_won" real,
"legs_lost" real,
"lwat" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How man 3-dart averages did gary anderson have?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "record"='3-3'; |
## Task
Generate a SQL query to answer the following question:
`List all results from the 3-3 scoring game.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all results from the 3-3 scoring game.`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "record"='4-4'; |
## Task
Generate a SQL query to answer the following question:
`List all opponents from the 4-4 scoring game.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all opponents from the 4-4 scoring game.`:
```sql
|
SELECT "record" FROM "schedule" WHERE "wildcats_points"=48; |
## Task
Generate a SQL query to answer the following question:
`List the record from the game where Wildcats had 48 points.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the record from the game where Wildcats had 48 points.`:
```sql
|
SELECT "wildcats_points" FROM "schedule" WHERE "opponent"='Baylor'; |
## Task
Generate a SQL query to answer the following question:
`How many points did the Wildcats get when Baylor was an opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the Wildcats get when Baylor was an opponent?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "date"='Oct. 4'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on Oct. 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on Oct. 4?`:
```sql
|
SELECT MIN("opponents") FROM "schedule"; |
## Task
Generate a SQL query to answer the following question:
`What was the minimum number for opponents?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the minimum number for opponents?`:
```sql
|
SELECT MIN("opponents") FROM "schedule" WHERE "opponent"='at Michigan State'; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum number of opponents' points for the game at Michigan State?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum number of opponents' points for the game at Michigan State?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "record"='5-2'; |
## Task
Generate a SQL query to answer the following question:
`Which opponent led to a 5-2 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent led to a 5-2 record?`:
```sql
|
SELECT COUNT("opponents") FROM "schedule" WHERE "opponent"='at Ole Miss'; |
## Task
Generate a SQL query to answer the following question:
`How many opponents' points numbers are associated with the game at Ole Miss?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many opponents' points numbers are associated with the game at Ole Miss?`:
```sql
|
SELECT COUNT("period") FROM "l" WHERE "name"='Yvon Le Roux'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of period for yvon le roux`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of period for yvon le roux`:
```sql
|
SELECT "period" FROM "l" WHERE "name"='Michel Llodra'; |
## Task
Generate a SQL query to answer the following question:
`Name the period for michel llodra`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the period for michel llodra`:
```sql
|
SELECT COUNT("position") FROM "l" WHERE "nationality"='Democratic Republic of the Congo'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of position for democratic republic of the congo`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of position for democratic republic of the congo`:
```sql
|
SELECT COUNT("name") FROM "m" WHERE "appearances"=101; |
## Task
Generate a SQL query to answer the following question:
`How many names correspond to the value 101 for appearances?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many names correspond to the value 101 for appearances?`:
```sql
|
SELECT "position" FROM "m" WHERE "name"='Thierry Morin'; |
## Task
Generate a SQL query to answer the following question:
`What positions correspond to the name Thierry Morin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What positions correspond to the name Thierry Morin?`:
```sql
|
SELECT "period" FROM "j" WHERE "appearances"=219; |
## Task
Generate a SQL query to answer the following question:
`What time period had appearances of 219?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "j" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time period had appearances of 219?`:
```sql
|
SELECT COUNT("period") FROM "j" WHERE "goals"=15; |
## Task
Generate a SQL query to answer the following question:
`How many periods had 15 goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "j" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many periods had 15 goals?`:
```sql
|
SELECT MIN("appearances") FROM "v" WHERE "name"='Pierre Vermeulen'; |
## Task
Generate a SQL query to answer the following question:
`at least how many times was Pierre Vermeulen at a game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "v" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `at least how many times was Pierre Vermeulen at a game?`:
```sql
|
SELECT "nationality" FROM "v" WHERE "name"='Richard Vanquelef'; |
## Task
Generate a SQL query to answer the following question:
`What country is Richard Vanquelef from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "v" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Richard Vanquelef from?`:
```sql
|
SELECT "nationality" FROM "v" WHERE "name"='Pierre Vermeulen'; |
## Task
Generate a SQL query to answer the following question:
`What country is Pierre Vermeulen from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "v" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Pierre Vermeulen from?`:
```sql
|
SELECT COUNT("appearances") FROM "s" WHERE "nationality"='Yugoslavia'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of appearances for yugoslavia`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of appearances for yugoslavia`:
```sql
|
SELECT "nationality" FROM "s" WHERE "position"='Defender' AND "appearances"=201; |
## Task
Generate a SQL query to answer the following question:
`Name the nationality for defender 201`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nationality for defender 201`:
```sql
|
SELECT "goals" FROM "s" WHERE "name"='Daniel Sanchez'; |
## Task
Generate a SQL query to answer the following question:
`Name the goals for daniel sanchez`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the goals for daniel sanchez`:
```sql
|
SELECT MIN("goals") FROM "s" WHERE "nationality"='Algeria'; |
## Task
Generate a SQL query to answer the following question:
`Name the most goals for algeria`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "s" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most goals for algeria`:
```sql
|
SELECT MIN("goals") FROM "t"; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest score.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "t" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest score.`:
```sql
|
SELECT MIN("appearances") FROM "t" WHERE "name"='Sammy Traoré'; |
## Task
Generate a SQL query to answer the following question:
`List the minimum impressions for sammy traoré`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "t" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the minimum impressions for sammy traoré`:
```sql
|
SELECT "period" FROM "t" WHERE "name"='Nabatingue Toko'; |
## Task
Generate a SQL query to answer the following question:
`During what years did nabatingue toko play. `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "t" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `During what years did nabatingue toko play. `:
```sql
|
SELECT COUNT("goals") FROM "p" WHERE "name"='Mauricio Pochettino'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of goals for mauricio pochettino`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "p" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of goals for mauricio pochettino`:
```sql
|
SELECT "period" FROM "p" WHERE "name"='Michel Prost'; |
## Task
Generate a SQL query to answer the following question:
`Name the period for michel prost`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "p" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the period for michel prost`:
```sql
|
SELECT "goals" FROM "p" WHERE "name"='Mauricio Pochettino'; |
## Task
Generate a SQL query to answer the following question:
`Name the goals for mauricio pochettino`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "p" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the goals for mauricio pochettino`:
```sql
|
SELECT "period" FROM "a" WHERE "appearances"=380; |
## Task
Generate a SQL query to answer the following question:
`Name the period for appearances being 380`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the period for appearances being 380`:
```sql
|
SELECT "appearances" FROM "a" WHERE "name"='Bernard Allou'; |
## Task
Generate a SQL query to answer the following question:
`Name the appearances for bernard allou`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the appearances for bernard allou`:
```sql
|
SELECT MAX("appearances") FROM "a" WHERE "name"='Bernard Allou'; |
## Task
Generate a SQL query to answer the following question:
`Name the most appearances for bernard allou`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "a" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most appearances for bernard allou`:
```sql
|
SELECT MAX("goals") FROM "f"; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of goals scored`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of goals scored`:
```sql
|
SELECT MIN("appearances") FROM "f"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of appearances a player had`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of appearances a player had`:
```sql
|
SELECT "nationality" FROM "f" WHERE "name"='Louis Floch'; |
## Task
Generate a SQL query to answer the following question:
`What is the nationality of Louis floch`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of Louis floch`:
```sql
|
SELECT "name" FROM "f" WHERE "appearances"=252; |
## Task
Generate a SQL query to answer the following question:
`Which player had 252 appearances`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player had 252 appearances`:
```sql
|
SELECT "nationality" FROM "f" WHERE "goals"=13; |
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the player who scored 13 goals`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f" (
"name" text,
"position" text,
"period" text,
"appearances" real,
"goals" real,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the player who scored 13 goals`:
```sql
|
SELECT COUNT("season") FROM "year_by_year" WHERE "final_record"='9–16–5'; |
## Task
Generate a SQL query to answer the following question:
`how many time is the final record is 9–16–5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"season" real,
"regular_season" text,
"playoffs" text,
"u_s_open_cup" text,
"concacaf" text,
"final_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many time is the final record is 9–16–5?`:
```sql
|
SELECT "flight_up" FROM "station_crews" WHERE "launch_date"='23 July 1980 18:33:03'; |
## Task
Generate a SQL query to answer the following question:
`What station was sent on flight up and was launched on 23 July 1980 18:33:03?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "station_crews" (
"expedition" text,
"crew" text,
"launch_date" text,
"flight_up" text,
"landing_date" text,
"flight_down" text,
"duration_days" text
);
### SQL
Given the database schema, here is the SQL query that answers `What station was sent on flight up and was launched on 23 July 1980 18:33:03?`:
```sql
|
SELECT "crew" FROM "station_crews" WHERE "flight_up"='Soyuz T-3'; |
## Task
Generate a SQL query to answer the following question:
`Who were the crews on the flight up of Soyuz T-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "station_crews" (
"expedition" text,
"crew" text,
"launch_date" text,
"flight_up" text,
"landing_date" text,
"flight_down" text,
"duration_days" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the crews on the flight up of Soyuz T-3?`:
```sql
|
SELECT "duration_days" FROM "station_crews" WHERE "flight_down"='Soyuz 35'; |
## Task
Generate a SQL query to answer the following question:
`How many days were the station of Soyuz 35 in flight down were in orbit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "station_crews" (
"expedition" text,
"crew" text,
"launch_date" text,
"flight_up" text,
"landing_date" text,
"flight_down" text,
"duration_days" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many days were the station of Soyuz 35 in flight down were in orbit?`:
```sql
|
SELECT COUNT("gn_divisions") FROM "table1_24574438_1" WHERE "ds_division"='Mannar'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of gn divisions for mannar`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24574438_1" (
"ds_division" text,
"main_town" text,
"gn_divisions" real,
"area_km_2" real,
"sri_lankan_tamil" real,
"sri_lankan_moors" real,
"sinhalese" real,
"indian_tamil" real,
"other" real,
"total" real,
"population_density_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of gn divisions for mannar`:
```sql
|
SELECT MAX("sinhalese") FROM "table1_24574438_1" WHERE "ds_division"='Manthai West'; |
## Task
Generate a SQL query to answer the following question:
`Name the sinhalese for manthai west`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24574438_1" (
"ds_division" text,
"main_town" text,
"gn_divisions" real,
"area_km_2" real,
"sri_lankan_tamil" real,
"sri_lankan_moors" real,
"sinhalese" real,
"indian_tamil" real,
"other" real,
"total" real,
"population_density_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sinhalese for manthai west`:
```sql
|
SELECT MIN("indian_tamil") FROM "table1_24574438_1" WHERE "population_density_km_2"=240; |
## Task
Generate a SQL query to answer the following question:
`Name the least indian tamil for population density being 240`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24574438_1" (
"ds_division" text,
"main_town" text,
"gn_divisions" real,
"area_km_2" real,
"sri_lankan_tamil" real,
"sri_lankan_moors" real,
"sinhalese" real,
"indian_tamil" real,
"other" real,
"total" real,
"population_density_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least indian tamil for population density being 240`:
```sql
|
SELECT "population_density_km_2" FROM "table1_24574438_1" WHERE "ds_division"='Manthai West'; |
## Task
Generate a SQL query to answer the following question:
`Name the popultion density being manthai west`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24574438_1" (
"ds_division" text,
"main_town" text,
"gn_divisions" real,
"area_km_2" real,
"sri_lankan_tamil" real,
"sri_lankan_moors" real,
"sinhalese" real,
"indian_tamil" real,
"other" real,
"total" real,
"population_density_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the popultion density being manthai west`:
```sql
|
SELECT COUNT("sinhalese") FROM "table1_24574438_1" WHERE "indian_tamil"=177; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of sinhalese for indian tamil being 177`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24574438_1" (
"ds_division" text,
"main_town" text,
"gn_divisions" real,
"area_km_2" real,
"sri_lankan_tamil" real,
"sri_lankan_moors" real,
"sinhalese" real,
"indian_tamil" real,
"other" real,
"total" real,
"population_density_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of sinhalese for indian tamil being 177`:
```sql
|
SELECT MIN("area_km_2") FROM "table1_24574438_1"; |
## Task
Generate a SQL query to answer the following question:
`Name the least area `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24574438_1" (
"ds_division" text,
"main_town" text,
"gn_divisions" real,
"area_km_2" real,
"sri_lankan_tamil" real,
"sri_lankan_moors" real,
"sinhalese" real,
"indian_tamil" real,
"other" real,
"total" real,
"population_density_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least area `:
```sql
|
SELECT COUNT("division_five") FROM "recent_champions" WHERE "division_one"='Westcott'; |
## Task
Generate a SQL query to answer the following question:
`When westcott is in division one how many leagues are in division 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "recent_champions" (
"season" text,
"premier_division" text,
"division_one" text,
"division_two" text,
"division_three" text,
"division_four" text,
"division_five" text
);
### SQL
Given the database schema, here is the SQL query that answers `When westcott is in division one how many leagues are in division 5?`:
```sql
|
SELECT "division_four" FROM "recent_champions" WHERE "division_five"='Godstone'; |
## Task
Generate a SQL query to answer the following question:
`When godstone is in division five who is in division four?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "recent_champions" (
"season" text,
"premier_division" text,
"division_one" text,
"division_two" text,
"division_three" text,
"division_four" text,
"division_five" text
);
### SQL
Given the database schema, here is the SQL query that answers `When godstone is in division five who is in division four?`:
```sql
|
SELECT "season" FROM "recent_champions" WHERE "division_four"='Wallington New Foresters'; |
## Task
Generate a SQL query to answer the following question:
`When the wallington new foresters are in division four what is the season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "recent_champions" (
"season" text,
"premier_division" text,
"division_one" text,
"division_two" text,
"division_three" text,
"division_four" text,
"division_five" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the wallington new foresters are in division four what is the season?`:
```sql
|
SELECT COUNT("season") FROM "recent_champions" WHERE "division_two"='Racing Epsom'; |
## Task
Generate a SQL query to answer the following question:
`When racing epsom is in division two how many seasons are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "recent_champions" (
"season" text,
"premier_division" text,
"division_one" text,
"division_two" text,
"division_three" text,
"division_four" text,
"division_five" text
);
### SQL
Given the database schema, here is the SQL query that answers `When racing epsom is in division two how many seasons are there?`:
```sql
|
SELECT COUNT("division_three") FROM "recent_champions" WHERE "division_two"='Westcott 1935'; |
## Task
Generate a SQL query to answer the following question:
`When westcott 1935 is in division two how many leagues are in division three?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "recent_champions" (
"season" text,
"premier_division" text,
"division_one" text,
"division_two" text,
"division_three" text,
"division_four" text,
"division_five" text
);
### SQL
Given the database schema, here is the SQL query that answers `When westcott 1935 is in division two how many leagues are in division three?`:
```sql
|
SELECT "division_one" FROM "recent_champions" WHERE "division_four"='Real Holmesdale Reserves'; |
## Task
Generate a SQL query to answer the following question:
`When real holmesdale reserves is division four who is in division one?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "recent_champions" (
"season" text,
"premier_division" text,
"division_one" text,
"division_two" text,
"division_three" text,
"division_four" text,
"division_five" text
);
### SQL
Given the database schema, here is the SQL query that answers `When real holmesdale reserves is division four who is in division one?`:
```sql
|
SELECT "duration" FROM "spacewalks" WHERE "spacecraft"='Salyut 7 – VE-4 – EVA 1'; |
## Task
Generate a SQL query to answer the following question:
`When salyut 7 – ve-4 – eva 1 is the spacecraft, what is the duration?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "spacewalks" (
"spacecraft" text,
"spacewalker" text,
"start_utc" text,
"end_utc" text,
"duration" text,
"comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `When salyut 7 – ve-4 – eva 1 is the spacecraft, what is the duration?`:
```sql
|
SELECT "end_utc" FROM "spacewalks" WHERE "comments"='First woman EVA'; |
## Task
Generate a SQL query to answer the following question:
`When first woman eva is the comment what is the end -utc?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "spacewalks" (
"spacecraft" text,
"spacewalker" text,
"start_utc" text,
"end_utc" text,
"duration" text,
"comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `When first woman eva is the comment what is the end -utc?`:
```sql
|
SELECT "series" FROM "career_results" WHERE "points"='68'; |
## Task
Generate a SQL query to answer the following question:
`What series did the racer earn 68 points in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_results" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What series did the racer earn 68 points in?`:
```sql
|
SELECT "duration_days" FROM "expeditions" WHERE "crew"='Georgi Grechko'; |
## Task
Generate a SQL query to answer the following question:
`Name the duration for georgi grechko`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "expeditions" (
"expedition" text,
"crew" text,
"launch_date" text,
"flight_up" text,
"landing_date" text,
"flight_down" text,
"duration_days" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the duration for georgi grechko`:
```sql
|
SELECT "flight_up" FROM "expeditions" WHERE "landing_date"='10 December 1982 19:02:36 UTC'; |
## Task
Generate a SQL query to answer the following question:
`Name the flight up for 10 december 1982 19:02:36 utc`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "expeditions" (
"expedition" text,
"crew" text,
"launch_date" text,
"flight_up" text,
"landing_date" text,
"flight_down" text,
"duration_days" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the flight up for 10 december 1982 19:02:36 utc`:
```sql
|
SELECT "launch_date" FROM "expeditions" WHERE "crew"='Vladimir Lyakhov , Aleksandr Pavlovich Aleksandrov'; |
## Task
Generate a SQL query to answer the following question:
`Name the launch date for vladimir lyakhov , aleksandr pavlovich aleksandrov`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "expeditions" (
"expedition" text,
"crew" text,
"launch_date" text,
"flight_up" text,
"landing_date" text,
"flight_down" text,
"duration_days" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the launch date for vladimir lyakhov , aleksandr pavlovich aleksandrov`:
```sql
|
SELECT "flight_down" FROM "expeditions" WHERE "crew"='Vladimir Vasyutin , Alexander Volkov'; |
## Task
Generate a SQL query to answer the following question:
`Name the flight down for vladimir vasyutin , alexander volkov`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "expeditions" (
"expedition" text,
"crew" text,
"launch_date" text,
"flight_up" text,
"landing_date" text,
"flight_down" text,
"duration_days" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the flight down for vladimir vasyutin , alexander volkov`:
```sql
|
SELECT COUNT("duration_days") FROM "expeditions" WHERE "crew"='Vladimir Vasyutin , Alexander Volkov'; |
## Task
Generate a SQL query to answer the following question:
`Name the duration for vladimir vasyutin , alexander volkov`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "expeditions" (
"expedition" text,
"crew" text,
"launch_date" text,
"flight_up" text,
"landing_date" text,
"flight_down" text,
"duration_days" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the duration for vladimir vasyutin , alexander volkov`:
```sql
|
SELECT "team" FROM "career_summary" WHERE "points"=38; |
## Task
Generate a SQL query to answer the following question:
`What team was he on the year he had 38 points? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was he on the year he had 38 points? `:
```sql
|
SELECT MIN("wins") FROM "career_summary" WHERE "poles"=10; |
## Task
Generate a SQL query to answer the following question:
`What was the least amount of wins when he had 10 poles? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the least amount of wins when he had 10 poles? `:
```sql
|
SELECT "team" FROM "career_summary" WHERE "points"='22'; |
## Task
Generate a SQL query to answer the following question:
`Name the team for 22 points`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team for 22 points`:
```sql
|
SELECT "f_laps" FROM "career_summary" WHERE "series"='GP2 Series'; |
## Task
Generate a SQL query to answer the following question:
`Name the f/laps for gp2 series`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the f/laps for gp2 series`:
```sql
|
SELECT MIN("wins") FROM "career_summary"; |
## Task
Generate a SQL query to answer the following question:
`Name the most wins`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most wins`:
```sql
|
SELECT MIN("races") FROM "career_summary" WHERE "team"='Carlin'; |
## Task
Generate a SQL query to answer the following question:
`Name the least races for carlin`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least races for carlin`:
```sql
|
SELECT "position" FROM "career_summary" WHERE "podiums"=0 AND "team"='Carlin'; |
## Task
Generate a SQL query to answer the following question:
`Name the position for 0 podiums and carlin team`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for 0 podiums and carlin team`:
```sql
|
SELECT "name_in_syriac" FROM "topographical_survey" WHERE "number_of_believers"=500; |
## Task
Generate a SQL query to answer the following question:
`Name the name in syriac for 500 believers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "topographical_survey" (
"name_of_village" text,
"name_in_syriac" text,
"number_of_believers" real,
"number_of_priests" real,
"number_of_churches" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name in syriac for 500 believers`:
```sql
|
SELECT MIN("number_of_believers") FROM "topographical_survey"; |
## Task
Generate a SQL query to answer the following question:
`Name the least number of believers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "topographical_survey" (
"name_of_village" text,
"name_in_syriac" text,
"number_of_believers" real,
"number_of_priests" real,
"number_of_churches" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least number of believers`:
```sql
|
SELECT MAX("number_of_believers") FROM "topographical_survey" WHERE "name_in_syriac"='ܓܘܝܠܢ'; |
## Task
Generate a SQL query to answer the following question:
`Name the most number of believers for ܓܘܝܠܢ`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "topographical_survey" (
"name_of_village" text,
"name_in_syriac" text,
"number_of_believers" real,
"number_of_priests" real,
"number_of_churches" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most number of believers for ܓܘܝܠܢ`:
```sql
|
SELECT "number_of_believers" FROM "topographical_survey" WHERE "name_of_village"='Khosrowa'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of believers for khosrowa`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "topographical_survey" (
"name_of_village" text,
"name_in_syriac" text,
"number_of_believers" real,
"number_of_priests" real,
"number_of_churches" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of believers for khosrowa`:
```sql
|
SELECT COUNT("number_of_believers") FROM "topographical_survey" WHERE "name_of_village"='Patavur'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of believers for patavur`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "topographical_survey" (
"name_of_village" text,
"name_in_syriac" text,
"number_of_believers" real,
"number_of_priests" real,
"number_of_churches" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of believers for patavur`:
```sql
|
SELECT "channel" FROM "table1_24598274_20" WHERE "local_title"='Live to Dance'; |
## Task
Generate a SQL query to answer the following question:
`The local title "Live to Dance" was aired in which channel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24598274_20" (
"country" text,
"local_title" text,
"presenter_s" text,
"judges" text,
"channel" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `The local title "Live to Dance" was aired in which channel?`:
```sql
|
SELECT "country" FROM "table1_24598274_20" WHERE "presenter_s"='Johanna Klum'; |
## Task
Generate a SQL query to answer the following question:
`Which country did Johanna Klum presented the show?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24598274_20" (
"country" text,
"local_title" text,
"presenter_s" text,
"judges" text,
"channel" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country did Johanna Klum presented the show?`:
```sql
|
SELECT MAX("released") FROM "tracklist" WHERE "song"='The In Crowd'; |
## Task
Generate a SQL query to answer the following question:
`Name the most released for the in crowd`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tracklist" (
"artist_band" text,
"song" text,
"disney_affiliated" text,
"released" real,
"us_exclusive" text,
"eu_exclusive" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most released for the in crowd`:
```sql
|
SELECT MAX("released") FROM "tracklist" WHERE "song"='Apologize'; |
## Task
Generate a SQL query to answer the following question:
`Name the most released for apologize`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tracklist" (
"artist_band" text,
"song" text,
"disney_affiliated" text,
"released" real,
"us_exclusive" text,
"eu_exclusive" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most released for apologize`:
```sql
|
SELECT MAX("released") FROM "tracklist" WHERE "song"='Right Here, Right Now'; |
## Task
Generate a SQL query to answer the following question:
`Name the most released for right here, right now`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tracklist" (
"artist_band" text,
"song" text,
"disney_affiliated" text,
"released" real,
"us_exclusive" text,
"eu_exclusive" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most released for right here, right now`:
```sql
|
SELECT "us_exclusive" FROM "tracklist" WHERE "artist_band"='Miley Cyrus'; |
## Task
Generate a SQL query to answer the following question:
`Name the us exclusive for miley cyrus`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tracklist" (
"artist_band" text,
"song" text,
"disney_affiliated" text,
"released" real,
"us_exclusive" text,
"eu_exclusive" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the us exclusive for miley cyrus`:
```sql
|
SELECT COUNT("clean_electric_grid_california_san_francisco") FROM "table1_24620684_2" WHERE "vehicle"='BMW ActiveE'; |
## Task
Generate a SQL query to answer the following question:
`When bmw activee is the vehicle type how many clean electric grid california (san francisco) measurements are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24620684_2" (
"vehicle" text,
"operating_mode" text,
"epa_rated_all_electric_range" text,
"epa_rated_combined_fuel_economy" text,
"clean_electric_grid_california_san_francisco" text,
"u_s_national_average_electric_mix" text,
"dirty_electric_grid_rocky_mountains_denver" text
);
### SQL
Given the database schema, here is the SQL query that answers `When bmw activee is the vehicle type how many clean electric grid california (san francisco) measurements are there?`:
```sql
|
SELECT "vehicle" FROM "table1_24620684_2" WHERE "epa_rated_combined_fuel_economy"='102 mpg-e (33kW-hrs/100mi)'; |
## Task
Generate a SQL query to answer the following question:
`When 102 mpg-e (33kw-hrs/100mi) is the epa rated combined fuel economy what is the vehicle type? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24620684_2" (
"vehicle" text,
"operating_mode" text,
"epa_rated_all_electric_range" text,
"epa_rated_combined_fuel_economy" text,
"clean_electric_grid_california_san_francisco" text,
"u_s_national_average_electric_mix" text,
"dirty_electric_grid_rocky_mountains_denver" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 102 mpg-e (33kw-hrs/100mi) is the epa rated combined fuel economy what is the vehicle type? `:
```sql
|
SELECT COUNT("vehicle") FROM "table1_24620684_2" WHERE "clean_electric_grid_california_san_francisco"='100 g/mi (62 g/km)'; |
## Task
Generate a SQL query to answer the following question:
`When 100 g/mi (62 g/km) is the clean electric grid california (san francisco) how many vehicles are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24620684_2" (
"vehicle" text,
"operating_mode" text,
"epa_rated_all_electric_range" text,
"epa_rated_combined_fuel_economy" text,
"clean_electric_grid_california_san_francisco" text,
"u_s_national_average_electric_mix" text,
"dirty_electric_grid_rocky_mountains_denver" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 100 g/mi (62 g/km) is the clean electric grid california (san francisco) how many vehicles are there?`:
```sql
|
SELECT "u_s_national_average_electric_mix" FROM "table1_24620684_2" WHERE "dirty_electric_grid_rocky_mountains_denver"='380 g/mi (236 g/km)'; |
## Task
Generate a SQL query to answer the following question:
`When 380 g/mi (236 g/km) is the dirty electric grid rocky mountains (denver) what is the u.s national average electric mix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24620684_2" (
"vehicle" text,
"operating_mode" text,
"epa_rated_all_electric_range" text,
"epa_rated_combined_fuel_economy" text,
"clean_electric_grid_california_san_francisco" text,
"u_s_national_average_electric_mix" text,
"dirty_electric_grid_rocky_mountains_denver" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 380 g/mi (236 g/km) is the dirty electric grid rocky mountains (denver) what is the u.s national average electric mix?`:
```sql
|
SELECT "u_s_national_average_electric_mix" FROM "table1_24620684_2" WHERE "vehicle"='BMW ActiveE'; |
## Task
Generate a SQL query to answer the following question:
`When bmw activee is the vehicle type what is the u.s national average electric mix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24620684_2" (
"vehicle" text,
"operating_mode" text,
"epa_rated_all_electric_range" text,
"epa_rated_combined_fuel_economy" text,
"clean_electric_grid_california_san_francisco" text,
"u_s_national_average_electric_mix" text,
"dirty_electric_grid_rocky_mountains_denver" text
);
### SQL
Given the database schema, here is the SQL query that answers `When bmw activee is the vehicle type what is the u.s national average electric mix?`:
```sql
|
SELECT COUNT("operating_mode") FROM "table1_24620684_2" WHERE "epa_rated_combined_fuel_economy"='87 mpg-e (39kW-hrs/100mi)'; |
## Task
Generate a SQL query to answer the following question:
`When 87 mpg-e (39kw-hrs/100mi) is the epa rated combined fuel economy how many operating modes are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24620684_2" (
"vehicle" text,
"operating_mode" text,
"epa_rated_all_electric_range" text,
"epa_rated_combined_fuel_economy" text,
"clean_electric_grid_california_san_francisco" text,
"u_s_national_average_electric_mix" text,
"dirty_electric_grid_rocky_mountains_denver" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 87 mpg-e (39kw-hrs/100mi) is the epa rated combined fuel economy how many operating modes are there?`:
```sql
|
SELECT "opponents" FROM "wta_tier_i_19_finals_13_titles_6_runner_" WHERE "score"='6–2, 3–6, 6–3'; |
## Task
Generate a SQL query to answer the following question:
`Name the opponents for 6–2, 3–6, 6–3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wta_tier_i_19_finals_13_titles_6_runner_" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponents for 6–2, 3–6, 6–3`:
```sql
|
SELECT "championship" FROM "wta_tier_i_19_finals_13_titles_6_runner_" WHERE "outcome"='Winner' AND "score"='7–5, 4–6, 6–1'; |
## Task
Generate a SQL query to answer the following question:
`Name the championship for outcome being winner for 7–5, 4–6, 6–1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wta_tier_i_19_finals_13_titles_6_runner_" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the championship for outcome being winner for 7–5, 4–6, 6–1`:
```sql
|
SELECT "score" FROM "wta_tier_i_19_finals_13_titles_6_runner_" WHERE "outcome"='Winner' AND "opponents"='Julie Halard-Decugis Ai Sugiyama'; |
## Task
Generate a SQL query to answer the following question:
`Name the score for winner and julie halard-decugis ai sugiyama`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wta_tier_i_19_finals_13_titles_6_runner_" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for winner and julie halard-decugis ai sugiyama`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.