output
stringlengths 27
479
| instruction
stringlengths 407
1.39k
|
|---|---|
SELECT "director" FROM "submissions" WHERE "original_title"='Biola tak berdawai';
|
## Task
Generate a SQL query to answer the following question:
`Who is the director of the fimm Biola Tak Berdawai?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of the fimm Biola Tak Berdawai?`:
```sql
|
SELECT "film_title_used_in_nomination" FROM "submissions" WHERE "original_title"='Biola tak berdawai';
|
## Task
Generate a SQL query to answer the following question:
`What title was used in the nomination for the title Biola Tak Berdawai?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title was used in the nomination for the title Biola Tak Berdawai?`:
```sql
|
SELECT COUNT("year_ceremony") FROM "submissions" WHERE "film_title_used_in_nomination"='Nagabonar';
|
## Task
Generate a SQL query to answer the following question:
`How many years have a film that uses the title "Nagabonar" in the nomination?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years have a film that uses the title "Nagabonar" in the nomination?`:
```sql
|
SELECT "director" FROM "submissions" WHERE "film_title_used_in_nomination"='Gie';
|
## Task
Generate a SQL query to answer the following question:
`Who is the director of the film Gie?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of the film Gie?`:
```sql
|
SELECT "try_bonus" FROM "2008_2009_table" WHERE "tries_against"='70';
|
## Task
Generate a SQL query to answer the following question:
`Name the try bonus for tries against is 70`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the try bonus for tries against is 70`:
```sql
|
SELECT "try_bonus" FROM "2008_2009_table" WHERE "tries_against"='43';
|
## Task
Generate a SQL query to answer the following question:
`What is the try bonus for when tries against is 43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the try bonus for when tries against is 43?`:
```sql
|
SELECT "drawn" FROM "2008_2009_table" WHERE "club"='Llandaff RFC';
|
## Task
Generate a SQL query to answer the following question:
`Name the drawn for llandaff rfc`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the drawn for llandaff rfc`:
```sql
|
SELECT "won" FROM "2008_2009_table" WHERE "try_bonus"='10';
|
## Task
Generate a SQL query to answer the following question:
`Name the won for try bonus of 10`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the won for try bonus of 10`:
```sql
|
SELECT "asset_acquired" FROM "table1_1373542_1" WHERE "date_announced"='July 2, 2006';
|
## Task
Generate a SQL query to answer the following question:
`It was announced on July 2, 2006 that what asset was acquired? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1373542_1" (
"asset_acquired" text,
"acquired_from" text,
"date_announced" text,
"date_completed" text,
"reported_cost" text
);
### SQL
Given the database schema, here is the SQL query that answers `It was announced on July 2, 2006 that what asset was acquired? `:
```sql
|
SELECT "date_announced" FROM "table1_1373542_1" WHERE "reported_cost"='US$9 million';
|
## Task
Generate a SQL query to answer the following question:
`On what date was it announced that an asset was acquired for US$9 Million? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1373542_1" (
"asset_acquired" text,
"acquired_from" text,
"date_announced" text,
"date_completed" text,
"reported_cost" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was it announced that an asset was acquired for US$9 Million? `:
```sql
|
SELECT "date_completed" FROM "table1_1373542_1" WHERE "date_announced"='February 22, 2007';
|
## Task
Generate a SQL query to answer the following question:
`On what date was the asset acquisition that was announced on February 22, 2007 completed? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1373542_1" (
"asset_acquired" text,
"acquired_from" text,
"date_announced" text,
"date_completed" text,
"reported_cost" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the asset acquisition that was announced on February 22, 2007 completed? `:
```sql
|
SELECT "asset_acquired" FROM "table1_1373542_1" WHERE "date_announced"='July 2, 2006';
|
## Task
Generate a SQL query to answer the following question:
`It is was announced on July 2, 2006 that what asset had been acquired? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1373542_1" (
"asset_acquired" text,
"acquired_from" text,
"date_announced" text,
"date_completed" text,
"reported_cost" text
);
### SQL
Given the database schema, here is the SQL query that answers `It is was announced on July 2, 2006 that what asset had been acquired? `:
```sql
|
SELECT "reported_cost" FROM "table1_1373542_1" WHERE "acquired_from"='Standard & Poor''s';
|
## Task
Generate a SQL query to answer the following question:
`What was the reported cost of the asset acquired from Standard & Poor's? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1373542_1" (
"asset_acquired" text,
"acquired_from" text,
"date_announced" text,
"date_completed" text,
"reported_cost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the reported cost of the asset acquired from Standard & Poor's? `:
```sql
|
SELECT "trim" FROM "engines" WHERE "fuel_mileage_latest_epa_mpg_us"='22 city, 30 hwy, 25 comb';
|
## Task
Generate a SQL query to answer the following question:
`what's the trim with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"trim" text,
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"transmission" text,
"fuel_mileage_latest_epa_mpg_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the trim with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb`:
```sql
|
SELECT "trim" FROM "engines" WHERE "fuel_mileage_latest_epa_mpg_us"='22 city, 30 hwy, 25 comb';
|
## Task
Generate a SQL query to answer the following question:
`what's the trim with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"trim" text,
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"transmission" text,
"fuel_mileage_latest_epa_mpg_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the trim with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb`:
```sql
|
SELECT "trim" FROM "engines" WHERE "engine"='3.5L LZ4 V6';
|
## Task
Generate a SQL query to answer the following question:
`what's the trim with engine being 3.5l lz4 v6`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"trim" text,
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"transmission" text,
"fuel_mileage_latest_epa_mpg_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the trim with engine being 3.5l lz4 v6`:
```sql
|
SELECT "torque" FROM "engines" WHERE "fuel_mileage_latest_epa_mpg_us"='22 city, 30 hwy, 25 comb';
|
## Task
Generate a SQL query to answer the following question:
`what's the torque with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"trim" text,
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"transmission" text,
"fuel_mileage_latest_epa_mpg_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the torque with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb`:
```sql
|
SELECT "torque" FROM "engines" WHERE "trim"='XE (2009)';
|
## Task
Generate a SQL query to answer the following question:
`what's the torque with trim being xe (2009)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"trim" text,
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"transmission" text,
"fuel_mileage_latest_epa_mpg_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the torque with trim being xe (2009)`:
```sql
|
SELECT "transmission" FROM "engines" WHERE "trim"='XE (2009)';
|
## Task
Generate a SQL query to answer the following question:
`what's the transmbeingsion with trim being xe (2009)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines" (
"trim" text,
"engine" text,
"displacement" text,
"power" text,
"torque" text,
"transmission" text,
"fuel_mileage_latest_epa_mpg_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the transmbeingsion with trim being xe (2009)`:
```sql
|
SELECT "director" FROM "table1_13740746_1" WHERE "written_by"='John Brown' AND "title"='\"Rain of Terror\"';
|
## Task
Generate a SQL query to answer the following question:
`Who is the director of the episode "rain of terror" that was written by John Brown?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13740746_1" (
"ep_no" real,
"title" text,
"director" text,
"written_by" text,
"original_air_date" text,
"production_no" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of the episode "rain of terror" that was written by John Brown?`:
```sql
|
SELECT MIN("production_no") FROM "table1_13740746_1" WHERE "title"='\"Rain of Terror\"';
|
## Task
Generate a SQL query to answer the following question:
`What is the production number of "rain of terror"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13740746_1" (
"ep_no" real,
"title" text,
"director" text,
"written_by" text,
"original_air_date" text,
"production_no" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production number of "rain of terror"?`:
```sql
|
SELECT "written_by" FROM "table1_13740746_1" WHERE "title"='\"Mercury Falling\"';
|
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode called "mercury falling"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13740746_1" (
"ep_no" real,
"title" text,
"director" text,
"written_by" text,
"original_air_date" text,
"production_no" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode called "mercury falling"?`:
```sql
|
SELECT "points" FROM "2006_2007_table" WHERE "points_for"='546';
|
## Task
Generate a SQL query to answer the following question:
`Nantyglo RFC had 546 points for and how many points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_2007_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Nantyglo RFC had 546 points for and how many points?`:
```sql
|
SELECT "club" FROM "2006_2007_table" WHERE "points_against"='523';
|
## Task
Generate a SQL query to answer the following question:
`What club had 523 points against? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_2007_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club had 523 points against? `:
```sql
|
SELECT "club" FROM "2006_2007_table" WHERE "points_for"='536';
|
## Task
Generate a SQL query to answer the following question:
`What club has 536 points for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_2007_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club has 536 points for?`:
```sql
|
SELECT COUNT("club") FROM "2006_2007_table" WHERE "won"='7';
|
## Task
Generate a SQL query to answer the following question:
`How many clubs had 7 wins? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_2007_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many clubs had 7 wins? `:
```sql
|
SELECT "club" FROM "2006_2007_table" WHERE "points_against"='404';
|
## Task
Generate a SQL query to answer the following question:
`What club had 404 points against? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_2007_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club had 404 points against? `:
```sql
|
SELECT "drawn" FROM "2006_2007_table" WHERE "tries_for"='54';
|
## Task
Generate a SQL query to answer the following question:
`Risca RFC has 54 tries for and how many draws? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_2007_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Risca RFC has 54 tries for and how many draws? `:
```sql
|
SELECT "club" FROM "2009_2010_table" WHERE "points"='36';
|
## Task
Generate a SQL query to answer the following question:
`What club has 36 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club has 36 points?`:
```sql
|
SELECT "lost" FROM "2009_2010_table" WHERE "points_for"='353';
|
## Task
Generate a SQL query to answer the following question:
`What are the lost where points lost is 353?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the lost where points lost is 353?`:
```sql
|
SELECT "won" FROM "2009_2010_table" WHERE "losing_bonus"='0';
|
## Task
Generate a SQL query to answer the following question:
`What are the won games with losing bonus of 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the won games with losing bonus of 0?`:
```sql
|
SELECT "club" FROM "2009_2010_table" WHERE "points_for"='565';
|
## Task
Generate a SQL query to answer the following question:
`Which club has 565 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club has 565 points?`:
```sql
|
SELECT "tries_for" FROM "2009_2010_table" WHERE "points"='77';
|
## Task
Generate a SQL query to answer the following question:
`How many tries where points is 77?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tries where points is 77?`:
```sql
|
SELECT "percentage_of_votes" FROM "parliamentary_elections" WHERE "number_of_deputies"=112;
|
## Task
Generate a SQL query to answer the following question:
`what's the percentage of votes with number of deputies being 112`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parliamentary_elections" (
"election_date" real,
"party_leader" text,
"number_of_votes_received" real,
"percentage_of_votes" text,
"number_of_deputies" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the percentage of votes with number of deputies being 112`:
```sql
|
SELECT "percentage_of_votes" FROM "parliamentary_elections" WHERE "number_of_deputies"=112;
|
## Task
Generate a SQL query to answer the following question:
`what's the percentage of votes with number of deputies being 112`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parliamentary_elections" (
"election_date" real,
"party_leader" text,
"number_of_votes_received" real,
"percentage_of_votes" text,
"number_of_deputies" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the percentage of votes with number of deputies being 112`:
```sql
|
SELECT "percentage_of_votes" FROM "parliamentary_elections" WHERE "election_date"=1981;
|
## Task
Generate a SQL query to answer the following question:
`what's the percentage of votes with election date being 1981`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parliamentary_elections" (
"election_date" real,
"party_leader" text,
"number_of_votes_received" real,
"percentage_of_votes" text,
"number_of_deputies" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the percentage of votes with election date being 1981`:
```sql
|
SELECT "number_of_deputies" FROM "parliamentary_elections" WHERE "number_of_votes_received"<1549176.2765483726 AND "election_date"=1969;
|
## Task
Generate a SQL query to answer the following question:
`what's the number of deputies with number of votes received being smaller than 1549176.2765483726 and election date being 1969`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "parliamentary_elections" (
"election_date" real,
"party_leader" text,
"number_of_votes_received" real,
"percentage_of_votes" text,
"number_of_deputies" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the number of deputies with number of votes received being smaller than 1549176.2765483726 and election date being 1969`:
```sql
|
SELECT "story_by" FROM "table1_13755296_1" WHERE "directed_by"='Dan Attias';
|
## Task
Generate a SQL query to answer the following question:
`Who wrote the sorry of the episode directed by Dan Attias? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13755296_1" (
"series_num" real,
"season_num" real,
"title" text,
"story_by" text,
"teleplay_by" text,
"directed_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the sorry of the episode directed by Dan Attias? `:
```sql
|
SELECT MIN("season_num") FROM "table1_13755296_1" WHERE "directed_by"='Dan Attias';
|
## Task
Generate a SQL query to answer the following question:
`What's the season number of the episode directed by Dan Attias? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13755296_1" (
"series_num" real,
"season_num" real,
"title" text,
"story_by" text,
"teleplay_by" text,
"directed_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the season number of the episode directed by Dan Attias? `:
```sql
|
SELECT "title" FROM "table1_13755296_1" WHERE "teleplay_by"='David Simon';
|
## Task
Generate a SQL query to answer the following question:
`What's the title of the episode written by David Simon? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13755296_1" (
"series_num" real,
"season_num" real,
"title" text,
"story_by" text,
"teleplay_by" text,
"directed_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the episode written by David Simon? `:
```sql
|
SELECT COUNT("founded") FROM "4_a_members" WHERE "high_school"='Skyline';
|
## Task
Generate a SQL query to answer the following question:
`What year was Skyline High School founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "4_a_members" (
"high_school" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"nickname" text,
"division" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Skyline High School founded?`:
```sql
|
SELECT COUNT("enrollment") FROM "4_a_members" WHERE "high_school"='Roosevelt';
|
## Task
Generate a SQL query to answer the following question:
`How many enrollment figures are provided for Roosevelt High School?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "4_a_members" (
"high_school" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"nickname" text,
"division" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many enrollment figures are provided for Roosevelt High School?`:
```sql
|
SELECT "location" FROM "4_a_members" WHERE "nickname"='Vikings';
|
## Task
Generate a SQL query to answer the following question:
`Which location has a team that is nicknamed the Vikings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "4_a_members" (
"high_school" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"nickname" text,
"division" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location has a team that is nicknamed the Vikings?`:
```sql
|
SELECT "founded" FROM "3_a_members" WHERE "location"='Kirkland';
|
## Task
Generate a SQL query to answer the following question:
`What year was Kirkland founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "3_a_members" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Kirkland founded?`:
```sql
|
SELECT "institution" FROM "3_a_members" WHERE "founded"=1923;
|
## Task
Generate a SQL query to answer the following question:
`Which institution was founded in 1923?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "3_a_members" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which institution was founded in 1923?`:
```sql
|
SELECT "location" FROM "3_a_members" WHERE "institution"='Interlake';
|
## Task
Generate a SQL query to answer the following question:
`Where is Interlake located?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "3_a_members" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is Interlake located?`:
```sql
|
SELECT "series" FROM "2006_nba_playoffs" WHERE "date"='May 23';
|
## Task
Generate a SQL query to answer the following question:
`What was the series count at on May 23? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_nba_playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the series count at on May 23? `:
```sql
|
SELECT MIN("game") FROM "game_log";
|
## Task
Generate a SQL query to answer the following question:
`What is the lowest numbered game on the list?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest numbered game on the list?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "location_attendance"='Delta Center';
|
## Task
Generate a SQL query to answer the following question:
`Who had the high rebounds at the delta center?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the high rebounds at the delta center?`:
```sql
|
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "record"='19-13';
|
## Task
Generate a SQL query to answer the following question:
`How many people had the high rebound total when the team was 19-13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people had the high rebound total when the team was 19-13?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "record"='24-17';
|
## Task
Generate a SQL query to answer the following question:
`Who had the high point total when the team was 24-17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the high point total when the team was 24-17?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "location_attendance"='Charlotte Arena';
|
## Task
Generate a SQL query to answer the following question:
`What was the score when the heat played at charlotte arena?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the heat played at charlotte arena?`:
```sql
|
SELECT "game" FROM "game_log" WHERE "record"='40-20';
|
## Task
Generate a SQL query to answer the following question:
`How many games had the team played after they were 40-20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games had the team played after they were 40-20?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='November 25';
|
## Task
Generate a SQL query to answer the following question:
`What was the score on November 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on November 25?`:
```sql
|
SELECT COUNT("high_points") FROM "game_log" WHERE "team"='New Orleans/Oklahoma City';
|
## Task
Generate a SQL query to answer the following question:
`How many players scored the most points when the opposing team was New Orleans/Oklahoma City?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players scored the most points when the opposing team was New Orleans/Oklahoma City?`:
```sql
|
SELECT COUNT("high_points") FROM "game_log" WHERE "game"=4;
|
## Task
Generate a SQL query to answer the following question:
`How many players scored the most points on game 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players scored the most points on game 4?`:
```sql
|
SELECT MAX("game") FROM "game_log" WHERE "record"='6-3';
|
## Task
Generate a SQL query to answer the following question:
`What was the last game where the record was 6-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the last game where the record was 6-3?`:
```sql
|
SELECT "country_region" FROM "table1_13779832_1" WHERE "seasons_and_winners"='Season 1, 2012: Demetra Malalan';
|
## Task
Generate a SQL query to answer the following question:
`what's the country/region with seasons and winners being season 1, 2012: demetra malalan`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13779832_1" (
"country_region" text,
"local_title" text,
"television_network" text,
"seasons_and_winners" text,
"judges" text,
"presenters" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the country/region with seasons and winners being season 1, 2012: demetra malalan`:
```sql
|
SELECT COUNT("local_title") FROM "table1_13779832_1" WHERE "television_network"='TV Nova Website';
|
## Task
Generate a SQL query to answer the following question:
` how many local title with televbeingion network being tv nova website`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13779832_1" (
"country_region" text,
"local_title" text,
"television_network" text,
"seasons_and_winners" text,
"judges" text,
"presenters" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many local title with televbeingion network being tv nova website`:
```sql
|
SELECT "judges" FROM "table1_13779832_1" WHERE "seasons_and_winners"='Season 1, 2013–2014: Upcoming season';
|
## Task
Generate a SQL query to answer the following question:
`who is the the judges with seasons and winners being season 1, 2013–2014: upcoming season`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13779832_1" (
"country_region" text,
"local_title" text,
"television_network" text,
"seasons_and_winners" text,
"judges" text,
"presenters" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the judges with seasons and winners being season 1, 2013–2014: upcoming season`:
```sql
|
SELECT "judges" FROM "table1_13779832_1" WHERE "local_title"='X Factor' AND "presenters"='Heikki Paasonen Jukka Rossi (Xtra Factor)';
|
## Task
Generate a SQL query to answer the following question:
`who is the the judges with local title being x factor and presenters being heikki paasonen jukka rossi (xtra factor)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13779832_1" (
"country_region" text,
"local_title" text,
"television_network" text,
"seasons_and_winners" text,
"judges" text,
"presenters" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the judges with local title being x factor and presenters being heikki paasonen jukka rossi (xtra factor)`:
```sql
|
SELECT "local_title" FROM "table1_13779832_1" WHERE "seasons_and_winners"='Series 1, 2006: Lucy Benjamin';
|
## Task
Generate a SQL query to answer the following question:
`what's the local title with seasons and winners being series 1, 2006: lucy benjamin`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13779832_1" (
"country_region" text,
"local_title" text,
"television_network" text,
"seasons_and_winners" text,
"judges" text,
"presenters" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the local title with seasons and winners being series 1, 2006: lucy benjamin`:
```sql
|
SELECT "country_region" FROM "table1_13779832_1" WHERE "presenters"='Heikki Paasonen Jukka Rossi (Xtra Factor)';
|
## Task
Generate a SQL query to answer the following question:
`what's the country/region with presenters being heikki paasonen jukka rossi (xtra factor)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13779832_1" (
"country_region" text,
"local_title" text,
"television_network" text,
"seasons_and_winners" text,
"judges" text,
"presenters" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the country/region with presenters being heikki paasonen jukka rossi (xtra factor)`:
```sql
|
SELECT COUNT("chroma_format") FROM "mpeg_2_profiles" WHERE "name"='High profile';
|
## Task
Generate a SQL query to answer the following question:
` how many chroma format with name being high profile`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mpeg_2_profiles" (
"abbr" text,
"name" text,
"picture_coding_types" text,
"chroma_format" text,
"aspect_ratios" text,
"scalable_modes" text,
"intra_dc_precision" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many chroma format with name being high profile`:
```sql
|
SELECT "chroma_format" FROM "mpeg_2_profiles" WHERE "scalable_modes"='SNR- or spatial-scalable' AND "intra_dc_precision"='8, 9, 10';
|
## Task
Generate a SQL query to answer the following question:
`what's the chroma format with scalable modes being snr- or spatial-scalable and intra dc precbeingion being 8, 9, 10`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mpeg_2_profiles" (
"abbr" text,
"name" text,
"picture_coding_types" text,
"chroma_format" text,
"aspect_ratios" text,
"scalable_modes" text,
"intra_dc_precision" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the chroma format with scalable modes being snr- or spatial-scalable and intra dc precbeingion being 8, 9, 10`:
```sql
|
SELECT "chroma_format" FROM "mpeg_2_profiles" WHERE "name"='High profile';
|
## Task
Generate a SQL query to answer the following question:
`what's the chroma format with name being high profile`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mpeg_2_profiles" (
"abbr" text,
"name" text,
"picture_coding_types" text,
"chroma_format" text,
"aspect_ratios" text,
"scalable_modes" text,
"intra_dc_precision" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the chroma format with name being high profile`:
```sql
|
SELECT "artist" FROM "table1_13789248_2" WHERE "song_title"='\" A Steel Guitar And A Glass Of Wine \"';
|
## Task
Generate a SQL query to answer the following question:
`who is the the artbeingt with song title being " a steel guitar and a glass of wine "`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13789248_2" (
"position" real,
"artist" text,
"song_title" text,
"highest_position" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the artbeingt with song title being " a steel guitar and a glass of wine "`:
```sql
|
SELECT "points" FROM "table1_13789248_2" WHERE "artist"='Dave Appell';
|
## Task
Generate a SQL query to answer the following question:
`what's the points with artbeingt being dave appell`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13789248_2" (
"position" real,
"artist" text,
"song_title" text,
"highest_position" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the points with artbeingt being dave appell`:
```sql
|
SELECT "artist" FROM "table1_13789248_2" WHERE "song_title"='\" A Little Bitty Tear \"';
|
## Task
Generate a SQL query to answer the following question:
`who is the the artbeingt with song title being " a little bitty tear "`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13789248_2" (
"position" real,
"artist" text,
"song_title" text,
"highest_position" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the artbeingt with song title being " a little bitty tear "`:
```sql
|
SELECT "artist" FROM "table1_13789248_2" WHERE "position"=32;
|
## Task
Generate a SQL query to answer the following question:
`who is the the artbeingt with position being 32`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13789248_2" (
"position" real,
"artist" text,
"song_title" text,
"highest_position" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the artbeingt with position being 32`:
```sql
|
SELECT COUNT("song_title") FROM "table1_13789248_2" WHERE "artist"='Chubby Checker';
|
## Task
Generate a SQL query to answer the following question:
` how many song title with artbeingt being chubby checker`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13789248_2" (
"position" real,
"artist" text,
"song_title" text,
"highest_position" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers ` how many song title with artbeingt being chubby checker`:
```sql
|
SELECT MIN("points") FROM "table1_13789248_2" WHERE "highest_position"=1;
|
## Task
Generate a SQL query to answer the following question:
`what is the minimum points with highest position being 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13789248_2" (
"position" real,
"artist" text,
"song_title" text,
"highest_position" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimum points with highest position being 1`:
```sql
|
SELECT MAX("transit_passengers") FROM "2008_data" WHERE "international_passengers"=4870184;
|
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of trnsit passeners when the total number of international passengers is 4870184?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2007_2008" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of trnsit passeners when the total number of international passengers is 4870184?`:
```sql
|
SELECT MAX("freight_metric_tonnes") FROM "2008_data" WHERE "airport"='Edinburgh';
|
## Task
Generate a SQL query to answer the following question:
`What is Edinburgh's airport's freight in metric tonnes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2007_2008" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Edinburgh's airport's freight in metric tonnes?`:
```sql
|
SELECT COUNT("transit_passengers") FROM "2008_data" WHERE "airport"='London Luton';
|
## Task
Generate a SQL query to answer the following question:
`How many different total number of transit passengers are there in London Luton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2007_2008" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different total number of transit passengers are there in London Luton?`:
```sql
|
SELECT "freight_metric_tonnes" FROM "2008_data" WHERE "transit_passengers"=147791;
|
## Task
Generate a SQL query to answer the following question:
`What are the total freights in metric tonnes when the total transit passengers is 147791?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2007_2008" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the total freights in metric tonnes when the total transit passengers is 147791?`:
```sql
|
SELECT "international_passengers" FROM "2008_data" WHERE "rank"=15;
|
## Task
Generate a SQL query to answer the following question:
`What is the total number of passengers of the airport ranked 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2007_2008" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of passengers of the airport ranked 15?`:
```sql
|
SELECT "original_title" FROM "table1_13834298_1" WHERE "film_title_used_in_nomination"='Lion''s Den';
|
## Task
Generate a SQL query to answer the following question:
`Whatis the original title for lion's den?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_13834298_1" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whatis the original title for lion's den?`:
```sql
|
SELECT "pct_change_2008_2009" FROM "2009_data" WHERE "airport"='Belfast International';
|
## Task
Generate a SQL query to answer the following question:
`What is the percent change from 08/09 for belfast international?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2008_2009" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percent change from 08/09 for belfast international?`:
```sql
|
SELECT "transit_passengers" FROM "2009_data" WHERE "airport"='London Gatwick';
|
## Task
Generate a SQL query to answer the following question:
`How many transit passengers at london gatwick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2008_2009" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many transit passengers at london gatwick?`:
```sql
|
SELECT "rank" FROM "2009_data" WHERE "freight_metric_tonnes"=255121;
|
## Task
Generate a SQL query to answer the following question:
`What is the rank of the airport with freight ( metric tonnes ) of 255121?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2008_2009" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the airport with freight ( metric tonnes ) of 255121?`:
```sql
|
SELECT "rank" FROM "2009_data" WHERE "freight_metric_tonnes"=23791;
|
## Task
Generate a SQL query to answer the following question:
`What is the rank of the airport with a freight ( metric tonnes ) of 23791?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2008_2009" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the airport with a freight ( metric tonnes ) of 23791?`:
```sql
|
SELECT "airport" FROM "2008_2009_data" WHERE "total_passengers_2009"=157933;
|
## Task
Generate a SQL query to answer the following question:
`what's the airport with total passengers 2009 being 157933`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_2009_data" (
"rank" real,
"airport" text,
"total_passengers_2008" real,
"total_passengers_2009" real,
"change_2008_09" text,
"aircraft_movements_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the airport with total passengers 2009 being 157933`:
```sql
|
SELECT MAX("total_passengers_2008") FROM "2008_2009_data" WHERE "change_2008_09"='6.5%';
|
## Task
Generate a SQL query to answer the following question:
`what being the maximum total passengers 2008 with change 2008/09 being 6.5%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_2009_data" (
"rank" real,
"airport" text,
"total_passengers_2008" real,
"total_passengers_2009" real,
"change_2008_09" text,
"aircraft_movements_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `what being the maximum total passengers 2008 with change 2008/09 being 6.5%`:
```sql
|
SELECT "airport" FROM "2008_2009_data" WHERE "aircraft_movements_2009"<238223.1659471435 AND "change_2008_09"='0.5%';
|
## Task
Generate a SQL query to answer the following question:
`what's the airport with aircraft movements 2009 being smaller than 238223.1659471435 and change 2008/09 being 0.5%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_2009_data" (
"rank" real,
"airport" text,
"total_passengers_2008" real,
"total_passengers_2009" real,
"change_2008_09" text,
"aircraft_movements_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the airport with aircraft movements 2009 being smaller than 238223.1659471435 and change 2008/09 being 0.5%`:
```sql
|
SELECT MAX("aircraft_movements_2009") FROM "2008_2009_data" WHERE "change_2008_09"='18.2%';
|
## Task
Generate a SQL query to answer the following question:
`what is the maximum aircraft movements 2009 with change 2008/09 being 18.2%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_2009_data" (
"rank" real,
"airport" text,
"total_passengers_2008" real,
"total_passengers_2009" real,
"change_2008_09" text,
"aircraft_movements_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum aircraft movements 2009 with change 2008/09 being 18.2%`:
```sql
|
SELECT "total_passengers_2008" FROM "2008_2009_data" WHERE "change_2008_09"='6.5%';
|
## Task
Generate a SQL query to answer the following question:
`what's the total passengers 2008 with change 2008/09 being 6.5%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_2009_data" (
"rank" real,
"airport" text,
"total_passengers_2008" real,
"total_passengers_2009" real,
"change_2008_09" text,
"aircraft_movements_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the total passengers 2008 with change 2008/09 being 6.5%`:
```sql
|
SELECT MAX("rank") FROM "2007_data" WHERE "airport"='Birmingham Airport';
|
## Task
Generate a SQL query to answer the following question:
`Name the rank of birmingham airport`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2006_2007" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rank of birmingham airport`:
```sql
|
SELECT MAX("transit_passengers") FROM "2007_data" WHERE "freight_metric_tonnes"=171078;
|
## Task
Generate a SQL query to answer the following question:
`Name the transit passengers for 171078`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2006_2007" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the transit passengers for 171078`:
```sql
|
SELECT MIN("year") FROM "past_winners" WHERE "womens_singles"='Beata Syta';
|
## Task
Generate a SQL query to answer the following question:
`Beata syta is the minimum year for womens singles.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Beata syta is the minimum year for womens singles.`:
```sql
|
SELECT MAX("aircraft_movements") FROM "2006_data" WHERE "international_passengers"=21002260;
|
## Task
Generate a SQL query to answer the following question:
`what is the maximum aircraft movements with international passengers being 21002260`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2005_2006" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum aircraft movements with international passengers being 21002260`:
```sql
|
SELECT MAX("freight_metric_tonnes") FROM "2006_data" WHERE "airport"='Liverpool';
|
## Task
Generate a SQL query to answer the following question:
`what is the maximum freight (metric tonnes) with airport being liverpool`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2005_2006" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum freight (metric tonnes) with airport being liverpool`:
```sql
|
SELECT "airport" FROM "2006_data" WHERE "pct_change_2005_2006"='13.0%';
|
## Task
Generate a SQL query to answer the following question:
`what's the airport with % change 2005/2006 being 13.0%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2005_2006" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the airport with % change 2005/2006 being 13.0%`:
```sql
|
SELECT MAX("aircraft_movements") FROM "2006_data" WHERE "airport"='Liverpool';
|
## Task
Generate a SQL query to answer the following question:
`what is the maximum aircraft movements with airport being liverpool`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2005_2006" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum aircraft movements with airport being liverpool`:
```sql
|
SELECT "total_passengers" FROM "2006_data" WHERE "freight_metric_tonnes"=827;
|
## Task
Generate a SQL query to answer the following question:
`what's the total passengers with freight (metric tonnes) being 827`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2005_2006" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the total passengers with freight (metric tonnes) being 827`:
```sql
|
SELECT COUNT("airport") FROM "2006_data" WHERE "rank"=4;
|
## Task
Generate a SQL query to answer the following question:
` how many airport with rank being 4`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_data" (
"rank" real,
"airport" text,
"total_passengers" real,
"pct_change_2005_2006" text,
"international_passengers" real,
"domestic_passengers" real,
"transit_passengers" real,
"aircraft_movements" real,
"freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers ` how many airport with rank being 4`:
```sql
|
SELECT COUNT("mens_singles") FROM "past_winners" WHERE "mens_doubles"='Pontus Jantti Lasse Lindelöf';
|
## Task
Generate a SQL query to answer the following question:
` how many mens singles with mens doubles being pontus jantti lasse lindelöf`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many mens singles with mens doubles being pontus jantti lasse lindelöf`:
```sql
|
SELECT "mens_doubles" FROM "past_winners" WHERE "mixed_doubles"='Jimm Aalto Nina Sarnesto';
|
## Task
Generate a SQL query to answer the following question:
`who is the the mens doubles with mixed doubles being jimm aalto nina sarnesto`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the mens doubles with mixed doubles being jimm aalto nina sarnesto`:
```sql
|
SELECT "mixed_doubles" FROM "past_winners" WHERE "year"=1972;
|
## Task
Generate a SQL query to answer the following question:
`who is the the mixed doubles with year being 1972`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the mixed doubles with year being 1972`:
```sql
|
SELECT "mens_doubles" FROM "past_winners" WHERE "year"=1978;
|
## Task
Generate a SQL query to answer the following question:
`who is the the mens doubles with year being 1978`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the mens doubles with year being 1978`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.