output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("date") FROM "calendar" WHERE "circuit"='Silverstone'; |
## Task
Generate a SQL query to answer the following question:
`On how many different dates was the race at the Silverstone circuit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_drivers" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `On how many different dates was the race at the Silverstone circuit?`:
```sql
|
SELECT "date" FROM "calendar" WHERE "circuit"='Donington Park'; |
## Task
Generate a SQL query to answer the following question:
`When was the circuit Donington Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_drivers" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the circuit Donington Park?`:
```sql
|
SELECT "weight" FROM "roster" WHERE "name"='Stuart Craig'; |
## Task
Generate a SQL query to answer the following question:
`What is the weight is the name is Stuart Craig?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" text,
"date_of_birth" text,
"home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weight is the name is Stuart Craig?`:
```sql
|
SELECT COUNT("date_of_birth") FROM "roster" WHERE "name"='Timo Higgins'; |
## Task
Generate a SQL query to answer the following question:
`If the name is Timo Higgins, what is the total date of birth amount?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" text,
"date_of_birth" text,
"home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the name is Timo Higgins, what is the total date of birth amount?`:
```sql
|
SELECT "position" FROM "roster" WHERE "height"='181cm'; |
## Task
Generate a SQL query to answer the following question:
`If the height is 181cm, what was the position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" text,
"date_of_birth" text,
"home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the height is 181cm, what was the position?`:
```sql
|
SELECT COUNT("name") FROM "roster" WHERE "weight"='78kg' AND "home_team"='UMBC'; |
## Task
Generate a SQL query to answer the following question:
`If the home team is UMBC and the weight is 78kg, what the the name total number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" text,
"date_of_birth" text,
"home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the home team is UMBC and the weight is 78kg, what the the name total number?`:
```sql
|
SELECT "date_of_birth" FROM "roster" WHERE "height"='185cm' AND "home_team"='Heaton Mersey'; |
## Task
Generate a SQL query to answer the following question:
`If the height is 185cm and the home team is Heaton Mersey, what is the date of birth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" text,
"date_of_birth" text,
"home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the height is 185cm and the home team is Heaton Mersey, what is the date of birth?`:
```sql
|
SELECT "u_s_viewers_million" FROM "table1_22347090_4" WHERE "no_in_season"=2; |
## Task
Generate a SQL query to answer the following question:
`How many viewers tuned in for season 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22347090_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers tuned in for season 2?`:
```sql
|
SELECT "directed_by" FROM "table1_22347090_4" WHERE "production_code"='3X6752'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that has 3x6752 listed as the production code?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22347090_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode that has 3x6752 listed as the production code?`:
```sql
|
SELECT MIN("no_in_series") FROM "table1_22347090_4" WHERE "u_s_viewers_million"='1.98'; |
## Task
Generate a SQL query to answer the following question:
`Which series number had 1.98 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22347090_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which series number had 1.98 million viewers?`:
```sql
|
SELECT "u_s_viewers_million" FROM "table1_22347090_5" WHERE "production_code"='3X6704'; |
## Task
Generate a SQL query to answer the following question:
`Name the viewers for production code for 3x6704`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22347090_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the viewers for production code for 3x6704`:
```sql
|
SELECT "u_s_viewers_million" FROM "table1_22347090_5" WHERE "production_code"='3X6706'; |
## Task
Generate a SQL query to answer the following question:
`Name the viewers for production code being 3x6706`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22347090_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the viewers for production code being 3x6706`:
```sql
|
SELECT "title" FROM "table1_22347090_5" WHERE "u_s_viewers_million"='1.54'; |
## Task
Generate a SQL query to answer the following question:
`Name the title that got 1.54 viewers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22347090_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the title that got 1.54 viewers`:
```sql
|
SELECT COUNT("no_in_season") FROM "table1_22347090_5" WHERE "no_in_series"=26; |
## Task
Generate a SQL query to answer the following question:
`Name the number of number in season for 26`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22347090_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of number in season for 26`:
```sql
|
SELECT "written_by" FROM "table1_22347090_6" WHERE "production_code"='3X7557'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode that has a production code 3x7557?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22347090_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode that has a production code 3x7557?`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_22347090_6" WHERE "u_s_viewers_million"='1.59'; |
## Task
Generate a SQL query to answer the following question:
`How many directors are there for the episode that had 1.59 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22347090_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many directors are there for the episode that had 1.59 million U.S. viewers?`:
```sql
|
SELECT "production_code" FROM "table1_22347090_6" WHERE "u_s_viewers_million"='1.32'; |
## Task
Generate a SQL query to answer the following question:
`What is the production code for the episode that had 1.32 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22347090_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for the episode that had 1.32 million U.S. viewers?`:
```sql
|
SELECT MIN("no_in_series") FROM "table1_22347090_6" WHERE "production_code"='3X7554'; |
## Task
Generate a SQL query to answer the following question:
`What episode number in the series had a production code of 3x7554?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22347090_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number in the series had a production code of 3x7554?`:
```sql
|
SELECT "title" FROM "table1_22347090_6" WHERE "no_in_series"=41; |
## Task
Generate a SQL query to answer the following question:
`What is the name of episode number 41 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22347090_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of episode number 41 in the series?`:
```sql
|
SELECT MIN("silver") FROM "list_of_olympic_medalists_in_athletics_m"; |
## Task
Generate a SQL query to answer the following question:
`Who has the minimum number of silver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the minimum number of silver?`:
```sql
|
SELECT "athlete" FROM "list_of_olympic_medalists_in_athletics_m" WHERE "rank"=8 AND "olympics"='1948–1952'; |
## Task
Generate a SQL query to answer the following question:
`Who is the athlete who's rank is 8 and competed in the olympics during 1948–1952?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the athlete who's rank is 8 and competed in the olympics during 1948–1952?`:
```sql
|
SELECT "nation" FROM "list_of_olympic_medalists_in_athletics_m" WHERE "olympics"='1924–1928' AND "bronze"=1; |
## Task
Generate a SQL query to answer the following question:
`What is the nation who won 1 bronze in the Olympics during 1924–1928?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nation who won 1 bronze in the Olympics during 1924–1928?`:
```sql
|
SELECT "athlete" FROM "list_of_olympic_medalists_in_athletics_m" WHERE "nation"='Ethiopia (ETH)' AND "rank">7.0; |
## Task
Generate a SQL query to answer the following question:
`Who is the athlete from the nation of Ethiopia (eth) who had a rank bigger than 7.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the athlete from the nation of Ethiopia (eth) who had a rank bigger than 7.0?`:
```sql
|
SELECT MAX("gold") FROM "list_of_olympic_medalists_in_athletics_m"; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of golds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of golds?`:
```sql
|
SELECT MIN("silver") FROM "list_of_olympic_medalists_in_athletics_m"; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest amount of silver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest amount of silver?`:
```sql
|
SELECT "nation" FROM "list_of_olympic_medalists_in_athletics_m" WHERE "athlete"='Abdon Pamich Category:Articles with hCards'; |
## Task
Generate a SQL query to answer the following question:
`Name the nation for abdon pamich category:articles with hcards`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nation for abdon pamich category:articles with hcards`:
```sql
|
SELECT MAX("silver") FROM "list_of_olympic_medalists_in_athletics_m" WHERE "athlete"='Ronald Weigel Category:Articles with hCards'; |
## Task
Generate a SQL query to answer the following question:
`Name the silver for ronald weigel category:articles with hcards`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the silver for ronald weigel category:articles with hcards`:
```sql
|
SELECT MIN("rank") FROM "list_of_olympic_medalists_in_athletics_m"; |
## Task
Generate a SQL query to answer the following question:
`What's the minimal rank of a athlete shown in the chart?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the minimal rank of a athlete shown in the chart?`:
```sql
|
SELECT MIN("gold") FROM "list_of_olympic_medalists_in_athletics_m"; |
## Task
Generate a SQL query to answer the following question:
`which is the minimun amount of gold medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `which is the minimun amount of gold medals?`:
```sql
|
SELECT MIN("silver") FROM "list_of_olympic_medalists_in_athletics_m"; |
## Task
Generate a SQL query to answer the following question:
`which is the minimun amount of silver medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `which is the minimun amount of silver medals?`:
```sql
|
SELECT MIN("total_min_2_medals") FROM "list_of_olympic_medalists_in_athletics_m"; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall number for total(min. 2 medals)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall number for total(min. 2 medals)?`:
```sql
|
SELECT MAX("rank") FROM "list_of_olympic_medalists_in_athletics_m" WHERE "gold"=4; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum rank of the nation that won 4 gold medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum rank of the nation that won 4 gold medals?`:
```sql
|
SELECT MAX("rank") FROM "list_of_olympic_medalists_in_athletics_m"; |
## Task
Generate a SQL query to answer the following question:
`Name the most rank`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most rank`:
```sql
|
SELECT MIN("rank") FROM "list_of_olympic_medalists_in_athletics_m" WHERE "gold"=2; |
## Task
Generate a SQL query to answer the following question:
`Name the most rank for 2 gold`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_olympic_medalists_in_athletics_m" (
"rank" real,
"athlete" text,
"nation" text,
"olympics" text,
"gold" real,
"silver" real,
"bronze" real,
"total_min_2_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most rank for 2 gold`:
```sql
|
SELECT MAX("total") FROM "table1_22360_3"; |
## Task
Generate a SQL query to answer the following question:
`Name the most total `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22360_3" (
"discipline" text,
"contested" text,
"number_of_olympiads" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most total `:
```sql
|
SELECT MIN("silver") FROM "table1_22360_3" WHERE "discipline"='Baseball'; |
## Task
Generate a SQL query to answer the following question:
`Name the silver for baseball`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22360_3" (
"discipline" text,
"contested" text,
"number_of_olympiads" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the silver for baseball`:
```sql
|
SELECT "discipline" FROM "table1_22360_3" WHERE "bronze"=0; |
## Task
Generate a SQL query to answer the following question:
`Name the discipline for bronze being 0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22360_3" (
"discipline" text,
"contested" text,
"number_of_olympiads" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the discipline for bronze being 0`:
```sql
|
SELECT MAX("tier_1_capital_million") FROM "table1_22368322_2" WHERE "institution"='Irish Nationwide'; |
## Task
Generate a SQL query to answer the following question:
`Name the most tier 1 capital for irish nationwide`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22368322_2" (
"institution" text,
"date_of_report" text,
"s_risk_weighted_asset_million" real,
"tier_1_capital_million" real,
"tier_1_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most tier 1 capital for irish nationwide`:
```sql
|
SELECT "institution" FROM "table1_22368322_2" WHERE "tier_1_capital_million"=1394; |
## Task
Generate a SQL query to answer the following question:
`Name the institution for tier 1 capital 1394`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22368322_2" (
"institution" text,
"date_of_report" text,
"s_risk_weighted_asset_million" real,
"tier_1_capital_million" real,
"tier_1_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the institution for tier 1 capital 1394`:
```sql
|
SELECT "tier_1_ratio" FROM "table1_22368322_2" WHERE "institution"='Irish Life and Permanent'; |
## Task
Generate a SQL query to answer the following question:
`Name the tier 1 ratio for irish life and permanent`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22368322_2" (
"institution" text,
"date_of_report" text,
"s_risk_weighted_asset_million" real,
"tier_1_capital_million" real,
"tier_1_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tier 1 ratio for irish life and permanent`:
```sql
|
SELECT COUNT("tier_1_capital_million") FROM "table1_22368322_2" WHERE "institution"='Allied Irish Banks'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of tier 1 capital for allied irish banks`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22368322_2" (
"institution" text,
"date_of_report" text,
"s_risk_weighted_asset_million" real,
"tier_1_capital_million" real,
"tier_1_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of tier 1 capital for allied irish banks`:
```sql
|
SELECT "date_of_report" FROM "table1_22368322_2" WHERE "tier_1_ratio"='3.9%'; |
## Task
Generate a SQL query to answer the following question:
`Name the date of report for tier 1 ratio being 3.9%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22368322_2" (
"institution" text,
"date_of_report" text,
"s_risk_weighted_asset_million" real,
"tier_1_capital_million" real,
"tier_1_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date of report for tier 1 ratio being 3.9%`:
```sql
|
SELECT "season" FROM "division_i" WHERE "finish_incl_championship"='April 18'; |
## Task
Generate a SQL query to answer the following question:
`What season ended on April 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"no" real,
"season" text,
"championship" real,
"no_of_teams" real,
"start_reg_season" text,
"finish_incl_championship" text,
"top_record" text,
"national_champion" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season ended on April 18?`:
```sql
|
SELECT "start_reg_season" FROM "division_i" WHERE "top_record"='Lindenwood (20–0–0)'; |
## Task
Generate a SQL query to answer the following question:
`When did the season start that ended with the top record of Lindenwood (20–0–0)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"no" real,
"season" text,
"championship" real,
"no_of_teams" real,
"start_reg_season" text,
"finish_incl_championship" text,
"top_record" text,
"national_champion" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the season start that ended with the top record of Lindenwood (20–0–0)?`:
```sql
|
SELECT "season" FROM "division_i" WHERE "no"=4; |
## Task
Generate a SQL query to answer the following question:
`What is the year range of season 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"no" real,
"season" text,
"championship" real,
"no_of_teams" real,
"start_reg_season" text,
"finish_incl_championship" text,
"top_record" text,
"national_champion" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year range of season 4?`:
```sql
|
SELECT "finish_incl_championship" FROM "division_i" WHERE "start_reg_season"='September 25'; |
## Task
Generate a SQL query to answer the following question:
`When is the finish of the season that started on September 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"no" real,
"season" text,
"championship" real,
"no_of_teams" real,
"start_reg_season" text,
"finish_incl_championship" text,
"top_record" text,
"national_champion" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the finish of the season that started on September 25?`:
```sql
|
SELECT "original_air_date" FROM "table1_22380270_1" WHERE "u_s_viewers_millions"='2.15'; |
## Task
Generate a SQL query to answer the following question:
`On what air date were there 2.15 million u.s. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22380270_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what air date were there 2.15 million u.s. viewers?`:
```sql
|
SELECT "u_s_viewers_millions" FROM "table1_22380270_1" WHERE "title"='\"Now You Lift Your Eyes to the Sun\"'; |
## Task
Generate a SQL query to answer the following question:
`How many u.s. views were there for the epidosde titled, "now you lift your eyes to the sun"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22380270_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many u.s. views were there for the epidosde titled, "now you lift your eyes to the sun"?`:
```sql
|
SELECT "written_by" FROM "table1_22380270_1" WHERE "u_s_viewers_millions"='2.15'; |
## Task
Generate a SQL query to answer the following question:
`Who was the writer for the episode with 2.15 million u.s.viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22380270_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer for the episode with 2.15 million u.s.viewers?`:
```sql
|
SELECT "spacewalkers" FROM "table1_22385461_1" WHERE "spacecraft"='STS-101 EVA 1'; |
## Task
Generate a SQL query to answer the following question:
`Who walked in space from STS-101 Eva 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22385461_1" (
"num" text,
"spacecraft" text,
"spacewalkers" text,
"start_utc" text,
"end_utc" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who walked in space from STS-101 Eva 1?`:
```sql
|
SELECT "end_utc" FROM "table1_22385461_8" WHERE "duration"='6 hours, 55 minutes'; |
## Task
Generate a SQL query to answer the following question:
`What is the end (UTC) if the duration is 6 hours, 55 minutes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22385461_8" (
"num" text,
"spacecraft" text,
"spacewalkers" text,
"start_utc" text,
"end_utc" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the end (UTC) if the duration is 6 hours, 55 minutes?`:
```sql
|
SELECT "spacewalkers" FROM "table1_22385461_8" WHERE "end_utc"='January 31, 2007 23:09'; |
## Task
Generate a SQL query to answer the following question:
`If the end (UTC) is January 31, 2007 23:09, what is the name of the spacewalkers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22385461_8" (
"num" text,
"spacecraft" text,
"spacewalkers" text,
"start_utc" text,
"end_utc" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the end (UTC) is January 31, 2007 23:09, what is the name of the spacewalkers?`:
```sql
|
SELECT "spacewalkers" FROM "table1_22385461_8" WHERE "end_utc"='October 30, 2007 15:53'; |
## Task
Generate a SQL query to answer the following question:
`What are the names of the spacewalkers for end (UTC) October 30, 2007 15:53?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22385461_8" (
"num" text,
"spacecraft" text,
"spacewalkers" text,
"start_utc" text,
"end_utc" text,
"duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the names of the spacewalkers for end (UTC) October 30, 2007 15:53?`:
```sql
|
SELECT "position" FROM "draft_picks" WHERE "player"='Bernie Doan'; |
## Task
Generate a SQL query to answer the following question:
`Which position is player bernie doan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position is player bernie doan?`:
```sql
|
SELECT MIN("pick_num") FROM "draft_picks" WHERE "position"='Goaltender'; |
## Task
Generate a SQL query to answer the following question:
`How many pick # are there for the goaltender position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many pick # are there for the goaltender position?`:
```sql
|
SELECT COUNT("college_junior_club_team") FROM "draft_picks" WHERE "player"='John Garrett'; |
## Task
Generate a SQL query to answer the following question:
`How many college/junior/clubteams have John garrett as the player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many college/junior/clubteams have John garrett as the player?`:
```sql
|
SELECT "player" FROM "draft_picks" WHERE "pick_num"=80; |
## Task
Generate a SQL query to answer the following question:
`Who is the player with the pick# 80?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player with the pick# 80?`:
```sql
|
SELECT "nationality" FROM "draft_picks" WHERE "player"='John Garrett'; |
## Task
Generate a SQL query to answer the following question:
`Which nationality is player John Garrett?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"pick_num" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nationality is player John Garrett?`:
```sql
|
SELECT "team_classification" FROM "jersey_progress" WHERE "combativity_prize"='Ricardo Serrano'; |
## Task
Generate a SQL query to answer the following question:
`what team had ricardo serrano for combativity prize?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage_winner" text,
"general_classification" text,
"sprints_classification" text,
"mountains_classification" text,
"youth_classification" text,
"team_classification" text,
"combativity_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `what team had ricardo serrano for combativity prize?`:
```sql
|
SELECT COUNT("production_stagemanager") FROM "past_board_members" WHERE "male_rep"='Gabriel Di Chiara'; |
## Task
Generate a SQL query to answer the following question:
`How many production stage managers worked with Gabriel di Chiara as the Male Rep?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_board_members" (
"year" text,
"chairman" text,
"artistic_director" text,
"performance_liaison" text,
"secretary" text,
"business_manager" text,
"production_stagemanager" text,
"dramaturge" text,
"public_relations" text,
"first_second_year_rep" text,
"male_rep" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many production stage managers worked with Gabriel di Chiara as the Male Rep?`:
```sql
|
SELECT COUNT("production_stagemanager") FROM "past_board_members" WHERE "secretary"='Rachel Hartmann'; |
## Task
Generate a SQL query to answer the following question:
`How many production stage managers worked with secretary Rachel Hartmann?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_board_members" (
"year" text,
"chairman" text,
"artistic_director" text,
"performance_liaison" text,
"secretary" text,
"business_manager" text,
"production_stagemanager" text,
"dramaturge" text,
"public_relations" text,
"first_second_year_rep" text,
"male_rep" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many production stage managers worked with secretary Rachel Hartmann?`:
```sql
|
SELECT "performance_liaison" FROM "past_board_members" WHERE "dramaturge"='Chrisena Ricci'; |
## Task
Generate a SQL query to answer the following question:
`Who were the performance liaisons for the dramaturge Chrisena Ricci?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_board_members" (
"year" text,
"chairman" text,
"artistic_director" text,
"performance_liaison" text,
"secretary" text,
"business_manager" text,
"production_stagemanager" text,
"dramaturge" text,
"public_relations" text,
"first_second_year_rep" text,
"male_rep" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the performance liaisons for the dramaturge Chrisena Ricci?`:
```sql
|
SELECT "first_second_year_rep" FROM "past_board_members" WHERE "performance_liaison"='Kira Josephson'; |
## Task
Generate a SQL query to answer the following question:
`Who was the first/second year rep. when the performance liaison was Kira Josephson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_board_members" (
"year" text,
"chairman" text,
"artistic_director" text,
"performance_liaison" text,
"secretary" text,
"business_manager" text,
"production_stagemanager" text,
"dramaturge" text,
"public_relations" text,
"first_second_year_rep" text,
"male_rep" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the first/second year rep. when the performance liaison was Kira Josephson?`:
```sql
|
SELECT "year" FROM "past_board_members" WHERE "first_second_year_rep"='Katie Pautler and Devery North'; |
## Task
Generate a SQL query to answer the following question:
`What year were the first/second year reps Katie Pautler and Devery North?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_board_members" (
"year" text,
"chairman" text,
"artistic_director" text,
"performance_liaison" text,
"secretary" text,
"business_manager" text,
"production_stagemanager" text,
"dramaturge" text,
"public_relations" text,
"first_second_year_rep" text,
"male_rep" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year were the first/second year reps Katie Pautler and Devery North?`:
```sql
|
SELECT "male_rep" FROM "past_board_members" WHERE "artistic_director"='Caroline Rhoads'; |
## Task
Generate a SQL query to answer the following question:
`Who was the male rep. when Caroline Rhoads was the artistic director?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_board_members" (
"year" text,
"chairman" text,
"artistic_director" text,
"performance_liaison" text,
"secretary" text,
"business_manager" text,
"production_stagemanager" text,
"dramaturge" text,
"public_relations" text,
"first_second_year_rep" text,
"male_rep" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the male rep. when Caroline Rhoads was the artistic director?`:
```sql
|
SELECT COUNT("driver") FROM "table1_2241101_1" WHERE "manufacturer"='Toyota'; |
## Task
Generate a SQL query to answer the following question:
`How many different drivers were there for the team when the manufacturer was Toyota?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2241101_1" (
"year" real,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different drivers were there for the team when the manufacturer was Toyota?`:
```sql
|
SELECT COUNT("year") FROM "table1_2241101_1" WHERE "date"='February 27'; |
## Task
Generate a SQL query to answer the following question:
`In how many different years did the race happen on February 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2241101_1" (
"year" real,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `In how many different years did the race happen on February 27?`:
```sql
|
SELECT "team" FROM "table1_2241101_1" WHERE "average_speed_mph"='107.063'; |
## Task
Generate a SQL query to answer the following question:
`What team had average speed of 107.063 mph?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2241101_1" (
"year" real,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team had average speed of 107.063 mph?`:
```sql
|
SELECT "report" FROM "table1_2241101_1" WHERE "year"=2010; |
## Task
Generate a SQL query to answer the following question:
`What was the report for 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2241101_1" (
"year" real,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the report for 2010?`:
```sql
|
SELECT COUNT("race_time") FROM "table1_2241259_1" WHERE "driver"='Kevin Harvick'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of race time for kevin harvick`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2241259_1" (
"year" real,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of race time for kevin harvick`:
```sql
|
SELECT "manufacturer" FROM "table1_2241841_1" WHERE "year"='2004'; |
## Task
Generate a SQL query to answer the following question:
`What manufacturer made the car that won in 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2241841_1" (
"year" text,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What manufacturer made the car that won in 2004?`:
```sql
|
SELECT COUNT("miles_km") FROM "table1_2241841_1" WHERE "manufacturer"='Dodge'; |
## Task
Generate a SQL query to answer the following question:
`How many wins are with Dodge vehicles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2241841_1" (
"year" text,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins are with Dodge vehicles?`:
```sql
|
SELECT "manufacturer" FROM "table1_2241841_1" WHERE "date"='May 21'; |
## Task
Generate a SQL query to answer the following question:
`Who made the car that won the race on May 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2241841_1" (
"year" text,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the car that won the race on May 21?`:
```sql
|
SELECT "laps" FROM "table1_2241841_1" WHERE "race_time"='4:17:18'; |
## Task
Generate a SQL query to answer the following question:
`In the race with a winning time of 4:17:18, how many laps were run?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2241841_1" (
"year" text,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the race with a winning time of 4:17:18, how many laps were run?`:
```sql
|
SELECT "team" FROM "table1_2241841_1" WHERE "race_time"='3:15:43'; |
## Task
Generate a SQL query to answer the following question:
`What team set a 3:15:43 winning time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2241841_1" (
"year" text,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team set a 3:15:43 winning time?`:
```sql
|
SELECT COUNT("hometown") FROM "delegates" WHERE "height"='1.80'; |
## Task
Generate a SQL query to answer the following question:
`How many different cities are represented by contestants whose height stands at 1.80?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different cities are represented by contestants whose height stands at 1.80?`:
```sql
|
SELECT "height" FROM "delegates" WHERE "contestant"='Alexandra Díaz Bello'; |
## Task
Generate a SQL query to answer the following question:
`How tall is contestant Alexandra Díaz Bello?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is contestant Alexandra Díaz Bello?`:
```sql
|
SELECT "contestant" FROM "delegates" WHERE "province_community"='Dajabón'; |
## Task
Generate a SQL query to answer the following question:
`Which contestant hails from Dajabón?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which contestant hails from Dajabón?`:
```sql
|
SELECT "province_community" FROM "delegates" WHERE "hometown"='Villa Bisonó'; |
## Task
Generate a SQL query to answer the following question:
`Which province is Villa Bisonó in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which province is Villa Bisonó in?`:
```sql
|
SELECT MAX("age") FROM "delegates" WHERE "contestant"='Valerie Chardonnens Vargas'; |
## Task
Generate a SQL query to answer the following question:
`How old is contestant Valerie Chardonnens Vargas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How old is contestant Valerie Chardonnens Vargas?`:
```sql
|
SELECT "original_south_korean_performer" FROM "principal_roles_and_cast_members" WHERE "original_manchester_performer"='Adebayo Bolaji'; |
## Task
Generate a SQL query to answer the following question:
`Who was the origianal south korean performer when Adebayo Bolaji performed in Manchester?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "principal_roles_and_cast_members" (
"character" text,
"original_manchester_performer" text,
"original_west_end_performer" text,
"original_broadway_performer" text,
"original_uk_tour_performer" text,
"original_non_equity_us_tour_performer" text,
"original_italian_tour_performer" text,
"original_south_korean_performer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the origianal south korean performer when Adebayo Bolaji performed in Manchester?`:
```sql
|
SELECT "character" FROM "principal_roles_and_cast_members" WHERE "original_manchester_performer"='Lisa Davina Phillip'; |
## Task
Generate a SQL query to answer the following question:
`What character did Lisa Davina Phillip portray?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "principal_roles_and_cast_members" (
"character" text,
"original_manchester_performer" text,
"original_west_end_performer" text,
"original_broadway_performer" text,
"original_uk_tour_performer" text,
"original_non_equity_us_tour_performer" text,
"original_italian_tour_performer" text,
"original_south_korean_performer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What character did Lisa Davina Phillip portray?`:
```sql
|
SELECT "original_broadway_performer" FROM "principal_roles_and_cast_members" WHERE "original_west_end_performer"='Sharon D. Clarke'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Broadway equivalent of Sharon D. Clarke's character?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "principal_roles_and_cast_members" (
"character" text,
"original_manchester_performer" text,
"original_west_end_performer" text,
"original_broadway_performer" text,
"original_uk_tour_performer" text,
"original_non_equity_us_tour_performer" text,
"original_italian_tour_performer" text,
"original_south_korean_performer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Broadway equivalent of Sharon D. Clarke's character?`:
```sql
|
SELECT "character" FROM "principal_roles_and_cast_members" WHERE "original_broadway_performer"='Moya Angela'; |
## Task
Generate a SQL query to answer the following question:
`What character did Moya Angela portray?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "principal_roles_and_cast_members" (
"character" text,
"original_manchester_performer" text,
"original_west_end_performer" text,
"original_broadway_performer" text,
"original_uk_tour_performer" text,
"original_non_equity_us_tour_performer" text,
"original_italian_tour_performer" text,
"original_south_korean_performer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What character did Moya Angela portray?`:
```sql
|
SELECT "character" FROM "principal_roles_and_cast_members" WHERE "original_west_end_performer"='Richard Fleeshman'; |
## Task
Generate a SQL query to answer the following question:
`What character did Richard Fleeshman portray?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "principal_roles_and_cast_members" (
"character" text,
"original_manchester_performer" text,
"original_west_end_performer" text,
"original_broadway_performer" text,
"original_uk_tour_performer" text,
"original_non_equity_us_tour_performer" text,
"original_italian_tour_performer" text,
"original_south_korean_performer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What character did Richard Fleeshman portray?`:
```sql
|
SELECT "original_manchester_performer" FROM "principal_roles_and_cast_members" WHERE "original_west_end_performer"='Lisa Davina Phillip'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Manchester performer of Lisa Davina Phillip's character?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "principal_roles_and_cast_members" (
"character" text,
"original_manchester_performer" text,
"original_west_end_performer" text,
"original_broadway_performer" text,
"original_uk_tour_performer" text,
"original_non_equity_us_tour_performer" text,
"original_italian_tour_performer" text,
"original_south_korean_performer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Manchester performer of Lisa Davina Phillip's character?`:
```sql
|
SELECT "european_tier" FROM "guitar_hero_on_tour_setlist" WHERE "artist"='Rick Springfield'; |
## Task
Generate a SQL query to answer the following question:
`Name the european tier for rick springfield`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "guitar_hero_on_tour_setlist" (
"year" real,
"song_title" text,
"artist" text,
"master_recording" text,
"na_uk_aus_jpn_nl_tier" text,
"european_tier" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the european tier for rick springfield`:
```sql
|
SELECT "song_title" FROM "guitar_hero_on_tour_setlist" WHERE "artist"='Europe'; |
## Task
Generate a SQL query to answer the following question:
`Name the song title for europe`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "guitar_hero_on_tour_setlist" (
"year" real,
"song_title" text,
"artist" text,
"master_recording" text,
"na_uk_aus_jpn_nl_tier" text,
"european_tier" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the song title for europe`:
```sql
|
SELECT COUNT("master_recording") FROM "guitar_hero_on_tour_setlist" WHERE "artist"='Doobie Brothers The Doobie Brothers'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of master recording for doobie brothers the doobie brothers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "guitar_hero_on_tour_setlist" (
"year" real,
"song_title" text,
"artist" text,
"master_recording" text,
"na_uk_aus_jpn_nl_tier" text,
"european_tier" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of master recording for doobie brothers the doobie brothers`:
```sql
|
SELECT "master_recording" FROM "guitar_hero_on_tour_setlist" WHERE "artist"='Europe'; |
## Task
Generate a SQL query to answer the following question:
`Name the master recording for europe`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "guitar_hero_on_tour_setlist" (
"year" real,
"song_title" text,
"artist" text,
"master_recording" text,
"na_uk_aus_jpn_nl_tier" text,
"european_tier" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the master recording for europe`:
```sql
|
SELECT "date" FROM "table1_22464685_1" WHERE "georgian_name"='ცხოვრება და უწყება ბაგრატონიანთა'; |
## Task
Generate a SQL query to answer the following question:
`what is the date for when the georgian name is ცხოვრება და უწყება ბაგრატონიანთა?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22464685_1" (
"english_name" text,
"georgian_name" text,
"transliteration" text,
"date" text,
"author" text,
"period_covered" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date for when the georgian name is ცხოვრება და უწყება ბაგრატონიანთა?`:
```sql
|
SELECT "transliteration" FROM "table1_22464685_1" WHERE "period_covered"='1125-1223'; |
## Task
Generate a SQL query to answer the following question:
`what is the transliteration during the period covered is 1125-1223?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22464685_1" (
"english_name" text,
"georgian_name" text,
"transliteration" text,
"date" text,
"author" text,
"period_covered" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the transliteration during the period covered is 1125-1223?`:
```sql
|
SELECT "author" FROM "table1_22464685_1" WHERE "english_name"='Histories and Eulogies of the Sovereigns'; |
## Task
Generate a SQL query to answer the following question:
`Who is the auther when the english name was histories and eulogies of the sovereigns?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22464685_1" (
"english_name" text,
"georgian_name" text,
"transliteration" text,
"date" text,
"author" text,
"period_covered" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the auther when the english name was histories and eulogies of the sovereigns?`:
```sql
|
SELECT "author" FROM "table1_22464685_1" WHERE "transliteration"='lasha-giorgis droindeli matiane'; |
## Task
Generate a SQL query to answer the following question:
`who is the auther when the transliteration is lasha-giorgis droindeli matiane?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22464685_1" (
"english_name" text,
"georgian_name" text,
"transliteration" text,
"date" text,
"author" text,
"period_covered" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the auther when the transliteration is lasha-giorgis droindeli matiane?`:
```sql
|
SELECT "transliteration" FROM "table1_22464685_1" WHERE "period_covered"='1125-1223'; |
## Task
Generate a SQL query to answer the following question:
`what is the transliteration where the period covered is 1125-1223?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22464685_1" (
"english_name" text,
"georgian_name" text,
"transliteration" text,
"date" text,
"author" text,
"period_covered" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the transliteration where the period covered is 1125-1223?`:
```sql
|
SELECT "state_class" FROM "table1_224840_3" WHERE "vacator"='John Laurance (F)'; |
## Task
Generate a SQL query to answer the following question:
`in which state where John Laurance (f) as a vacator?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_224840_3" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `in which state where John Laurance (f) as a vacator?`:
```sql
|
SELECT "reason_for_change" FROM "table1_224840_3" WHERE "vacator"='Henry Latimer (F)'; |
## Task
Generate a SQL query to answer the following question:
`when the vacator was Henry Latimer (f), what were the causes for modification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_224840_3" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `when the vacator was Henry Latimer (f), what were the causes for modification?`:
```sql
|
SELECT COUNT("date_of_successors_formal_installation") FROM "table1_224840_3" WHERE "successor"='Aaron Ogden (F)'; |
## Task
Generate a SQL query to answer the following question:
`how many times has Aaron Ogden (f), been a successor and has had a formal installation? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_224840_3" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times has Aaron Ogden (f), been a successor and has had a formal installation? `:
```sql
|
SELECT COUNT("5th_venue") FROM "list_of_fina_diving_world_series" WHERE "1st_venue"='Doha'; |
## Task
Generate a SQL query to answer the following question:
`How many 5th venue cities were there when Doha was the 1st venue city?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_fina_diving_world_series" (
"year" real,
"1st_venue" text,
"2nd_venue" text,
"3rd_venue" text,
"4th_venue" text,
"5th_venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many 5th venue cities were there when Doha was the 1st venue city?`:
```sql
|
SELECT COUNT("2nd_venue") FROM "list_of_fina_diving_world_series" WHERE "1st_venue"='Qingdao'; |
## Task
Generate a SQL query to answer the following question:
`When Qingdao was the 1st venue city, how many 2nd venue cities were there? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_fina_diving_world_series" (
"year" real,
"1st_venue" text,
"2nd_venue" text,
"3rd_venue" text,
"4th_venue" text,
"5th_venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Qingdao was the 1st venue city, how many 2nd venue cities were there? `:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.