output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("1st_venue") FROM "list_of_fina_diving_world_series" WHERE "year"=2010; |
## Task
Generate a SQL query to answer the following question:
`In 2010, how many 1st 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 `In 2010, how many 1st venue cities were there? `:
```sql
|
SELECT "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, who was in the 2nd venue?`
### 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, who was in the 2nd venue?`:
```sql
|
SELECT "3rd_venue" FROM "list_of_fina_diving_world_series" WHERE "2nd_venue"='Mexico City'; |
## Task
Generate a SQL query to answer the following question:
`What city was in the 3rd venue when Mexico City was in the 2nd? `
### 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 `What city was in the 3rd venue when Mexico City was in the 2nd? `:
```sql
|
SELECT COUNT("vacator") FROM "table1_224840_4" WHERE "district"='Massachusetts 3rd'; |
## Task
Generate a SQL query to answer the following question:
`How many seats became avaliable in Massachusetts 3rd district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_224840_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats became avaliable in Massachusetts 3rd district?`:
```sql
|
SELECT "vacator" FROM "table1_224840_4" WHERE "date_successor_seated"='November 26, 1800'; |
## Task
Generate a SQL query to answer the following question:
`Who left office on November 26, 1800?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_224840_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who left office on November 26, 1800?`:
```sql
|
SELECT "successor" FROM "table1_224840_4" WHERE "district"='Massachusetts 3rd'; |
## Task
Generate a SQL query to answer the following question:
`Who was the latest to take office in Massachusetts 3rd district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_224840_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the latest to take office in Massachusetts 3rd district?`:
```sql
|
SELECT "builder" FROM "collection" WHERE "date"='1930'; |
## Task
Generate a SQL query to answer the following question:
`List the builder from 1930.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "collection" (
"date" text,
"builder" text,
"type" text,
"operator" text,
"number" text,
"withdrawn" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the builder from 1930.`:
```sql
|
SELECT COUNT("builder") FROM "collection" WHERE "withdrawn"='1951' AND "number"='42'; |
## Task
Generate a SQL query to answer the following question:
`List the number of builders where the withdrawn is 1951 and number is 42.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "collection" (
"date" text,
"builder" text,
"type" text,
"operator" text,
"number" text,
"withdrawn" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of builders where the withdrawn is 1951 and number is 42.`:
```sql
|
SELECT "date" FROM "collection" WHERE "number"='1'; |
## Task
Generate a SQL query to answer the following question:
`List the date for number 1.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "collection" (
"date" text,
"builder" text,
"type" text,
"operator" text,
"number" text,
"withdrawn" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the date for number 1.`:
```sql
|
SELECT "number" FROM "collection" WHERE "operator"='Melbourne and Metropolitan Tramways Board'; |
## Task
Generate a SQL query to answer the following question:
`List the number for the operator melbourne and metropolitan tramways board.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "collection" (
"date" text,
"builder" text,
"type" text,
"operator" text,
"number" text,
"withdrawn" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number for the operator melbourne and metropolitan tramways board.`:
```sql
|
SELECT "status" FROM "collection" WHERE "operator"='Toronto Transit Commission'; |
## Task
Generate a SQL query to answer the following question:
`List the status for the operator Toronto transit commission.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "collection" (
"date" text,
"builder" text,
"type" text,
"operator" text,
"number" text,
"withdrawn" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the status for the operator Toronto transit commission.`:
```sql
|
SELECT "network" FROM "american_television" WHERE "studio_host"='Bob Costas' AND "ice_level_reporters"='Darren Pang'; |
## Task
Generate a SQL query to answer the following question:
`Which network has bob costas as the studio host and darren pang as the ice level reporters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_television" (
"year" text,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"ice_level_reporters" text,
"studio_host" text,
"studio_analysts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which network has bob costas as the studio host and darren pang as the ice level reporters?`:
```sql
|
SELECT "play_by_play" FROM "american_television" WHERE "studio_analysts"='Mike Milbury' AND "ice_level_reporters"='Darren Pang'; |
## Task
Generate a SQL query to answer the following question:
`Which play-by-play has mike milbury as the studio analyst and darren pang as the ice level reporters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_television" (
"year" text,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"ice_level_reporters" text,
"studio_host" text,
"studio_analysts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which play-by-play has mike milbury as the studio analyst and darren pang as the ice level reporters?`:
```sql
|
SELECT "color_commentator_s" FROM "american_television" WHERE "ice_level_reporters"='Brian Engblom'; |
## Task
Generate a SQL query to answer the following question:
`Who is the color commentator when brian engblom is ice level reporters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_television" (
"year" text,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"ice_level_reporters" text,
"studio_host" text,
"studio_analysts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the color commentator when brian engblom is ice level reporters?`:
```sql
|
SELECT "play_by_play" FROM "american_television" WHERE "network"='NBC' AND "ice_level_reporters"='Darren Pang'; |
## Task
Generate a SQL query to answer the following question:
`Who is the play-by-play when nbc is the network and darren pang is the ice level reporters?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_television" (
"year" text,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"ice_level_reporters" text,
"studio_host" text,
"studio_analysts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the play-by-play when nbc is the network and darren pang is the ice level reporters?`:
```sql
|
SELECT "studio_host" FROM "american_television" WHERE "year"='2010'; |
## Task
Generate a SQL query to answer the following question:
`Who is the studio host for the year 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "american_television" (
"year" text,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"ice_level_reporters" text,
"studio_host" text,
"studio_analysts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the studio host for the year 2010?`:
```sql
|
SELECT "vacator" FROM "table1_224844_4" WHERE "district"='Connecticut At-large'; |
## Task
Generate a SQL query to answer the following question:
`Who left a seat open for the district of connecticut at-large`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_224844_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who left a seat open for the district of connecticut at-large`:
```sql
|
SELECT "reason_for_change" FROM "table1_224844_4" WHERE "district"='Connecticut At-large'; |
## Task
Generate a SQL query to answer the following question:
`Why was a seat left open fo Connecticut at-large?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_224844_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Why was a seat left open fo Connecticut at-large?`:
```sql
|
SELECT MIN("rank_asia") FROM "table1_2248784_4"; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest Asian rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2248784_4" (
"rank_mid_east" real,
"rank_asia" real,
"rank_world" real,
"country" text,
"2011_gdp_ppp_billions_of_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest Asian rank?`:
```sql
|
SELECT "2011_gdp_ppp_billions_of_usd" FROM "table1_2248784_4" WHERE "country"='Iraq'; |
## Task
Generate a SQL query to answer the following question:
`What 2011 GDP (PPP) billions of USD does Iraq have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2248784_4" (
"rank_mid_east" real,
"rank_asia" real,
"rank_world" real,
"country" text,
"2011_gdp_ppp_billions_of_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2011 GDP (PPP) billions of USD does Iraq have?`:
```sql
|
SELECT "2011_gdp_ppp_billions_of_usd" FROM "table1_2248784_4" WHERE "country"='Israel'; |
## Task
Generate a SQL query to answer the following question:
`What 2011 GDP (PPP) billions of USD does Israel have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2248784_4" (
"rank_mid_east" real,
"rank_asia" real,
"rank_world" real,
"country" text,
"2011_gdp_ppp_billions_of_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2011 GDP (PPP) billions of USD does Israel have?`:
```sql
|
SELECT COUNT("rank_asia") FROM "table1_2248784_4" WHERE "rank_mid_east"=1; |
## Task
Generate a SQL query to answer the following question:
`How many asian rank have 1 as a mideast rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2248784_4" (
"rank_mid_east" real,
"rank_asia" real,
"rank_world" real,
"country" text,
"2011_gdp_ppp_billions_of_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many asian rank have 1 as a mideast rank?`:
```sql
|
SELECT "gdp_ppp_per_capita_2010_african_world_rank_2010" FROM "list_of_african_countries_by_gdp_per_cap" WHERE "nation"='Malawi'; |
## Task
Generate a SQL query to answer the following question:
`Gdp per capita for malawi`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_african_countries_by_gdp_per_cap" (
"gdp_ppp_per_capita_2010_african_world_rank_2010" text,
"nation" text,
"gdp_by_agriculture_2010" text,
"gdp_by_industry_2010" text,
"gdp_by_services_2010" text,
"total_gdp_ppp_2010_african_world_rank_2010" text,
"gdp_real_growth_rate_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Gdp per capita for malawi`:
```sql
|
SELECT "gdp_world_rank" FROM "list_of_asian_countries_by_gdp_per_capit" WHERE "asian_rank"=15; |
## Task
Generate a SQL query to answer the following question:
`Name the gdp world rank for asian rank being 15`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_asian_countries_by_gdp_per_capit" (
"asian_rank" real,
"world_rank" real,
"country" text,
"gdp_per_capita" text,
"gdp_world_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gdp world rank for asian rank being 15`:
```sql
|
SELECT "gdp_per_capita" FROM "list_of_asian_countries_by_gdp_per_capit" WHERE "gdp_world_rank"='131'; |
## Task
Generate a SQL query to answer the following question:
`Name the gdp per capita for world rank being 131`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_asian_countries_by_gdp_per_capit" (
"asian_rank" real,
"world_rank" real,
"country" text,
"gdp_per_capita" text,
"gdp_world_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gdp per capita for world rank being 131`:
```sql
|
SELECT "gdp_world_rank" FROM "list_of_asian_countries_by_gdp_per_capit" WHERE "asian_rank"=20; |
## Task
Generate a SQL query to answer the following question:
`Name the gdp world rank for asian rank being 20`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_asian_countries_by_gdp_per_capit" (
"asian_rank" real,
"world_rank" real,
"country" text,
"gdp_per_capita" text,
"gdp_world_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gdp world rank for asian rank being 20`:
```sql
|
SELECT MAX("world_rank") FROM "list_of_asian_countries_by_gdp_per_capit" WHERE "asian_rank"=31; |
## Task
Generate a SQL query to answer the following question:
`Name the most world rank for asian rank being 31`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_asian_countries_by_gdp_per_capit" (
"asian_rank" real,
"world_rank" real,
"country" text,
"gdp_per_capita" text,
"gdp_world_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most world rank for asian rank being 31`:
```sql
|
SELECT MIN("rank_subcontinent") FROM "table1_2248784_3" WHERE "country"='Bangladesh'; |
## Task
Generate a SQL query to answer the following question:
`Name the least rank subcontinent for bangladesh`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2248784_3" (
"rank_subcontinent" real,
"rank_asia" real,
"rank_world" real,
"country" text,
"2011_gdp_ppp_billions_of_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least rank subcontinent for bangladesh`:
```sql
|
SELECT "rank_world" FROM "table1_2248784_3" WHERE "rank_subcontinent"=7; |
## Task
Generate a SQL query to answer the following question:
`Name the rank world for 7 rank subcontinent`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2248784_3" (
"rank_subcontinent" real,
"rank_asia" real,
"rank_world" real,
"country" text,
"2011_gdp_ppp_billions_of_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rank world for 7 rank subcontinent`:
```sql
|
SELECT "2011_gdp_ppp_billions_of_usd" FROM "table1_2248784_3" WHERE "country"='Pakistan'; |
## Task
Generate a SQL query to answer the following question:
`Name the 2011 gdp for pakistan`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2248784_3" (
"rank_subcontinent" real,
"rank_asia" real,
"rank_world" real,
"country" text,
"2011_gdp_ppp_billions_of_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2011 gdp for pakistan`:
```sql
|
SELECT "2011_gdp_ppp_billions_of_usd" FROM "table1_2248784_3" WHERE "rank_world"=65; |
## Task
Generate a SQL query to answer the following question:
`Name the 2011 gdp for 65 rank world`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2248784_3" (
"rank_subcontinent" real,
"rank_asia" real,
"rank_world" real,
"country" text,
"2011_gdp_ppp_billions_of_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2011 gdp for 65 rank world`:
```sql
|
SELECT COUNT("rank_world") FROM "table1_2248784_3" WHERE "country"='Bhutan'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of rank world for bhutan`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2248784_3" (
"rank_subcontinent" real,
"rank_asia" real,
"rank_world" real,
"country" text,
"2011_gdp_ppp_billions_of_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of rank world for bhutan`:
```sql
|
SELECT COUNT("world_rank") FROM "list_of_african_countries_by_gdp_per_cap" WHERE "nation"='Nigeria'; |
## Task
Generate a SQL query to answer the following question:
`How many items were listed under world rank under the nation of Nigeria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_african_countries_by_gdp_per_cap" (
"african_rank" real,
"world_rank" real,
"nation" text,
"gdp_per_capita" text,
"total_gdp_world_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many items were listed under world rank under the nation of Nigeria?`:
```sql
|
SELECT COUNT("gdp_per_capita") FROM "list_of_african_countries_by_gdp_per_cap" WHERE "nation"='Burkina Faso'; |
## Task
Generate a SQL query to answer the following question:
`How many items are listed under gdp per capita under the nation of Burkina Faso?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_african_countries_by_gdp_per_cap" (
"african_rank" real,
"world_rank" real,
"nation" text,
"gdp_per_capita" text,
"total_gdp_world_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many items are listed under gdp per capita under the nation of Burkina Faso?`:
```sql
|
SELECT MIN("total_gdp_world_rank") FROM "list_of_african_countries_by_gdp_per_cap" WHERE "gdp_per_capita"='$1,163'; |
## Task
Generate a SQL query to answer the following question:
`What is the total gdp world rank when the gdp per capita was listed at $1,163?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_african_countries_by_gdp_per_cap" (
"african_rank" real,
"world_rank" real,
"nation" text,
"gdp_per_capita" text,
"total_gdp_world_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total gdp world rank when the gdp per capita was listed at $1,163?`:
```sql
|
SELECT MIN("world_rank") FROM "list_of_country_by_historical_gdp_ppp_pe" WHERE "south_american_rank"=3; |
## Task
Generate a SQL query to answer the following question:
`Name the least world rank for south american rank 3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_country_by_historical_gdp_ppp_pe" (
"south_american_rank" real,
"world_rank" real,
"nation" text,
"2011_imf" text,
"2008_cia_factbook" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least world rank for south american rank 3`:
```sql
|
SELECT MIN("south_american_rank") FROM "list_of_country_by_historical_gdp_ppp_pe" WHERE "nation"='Venezuela'; |
## Task
Generate a SQL query to answer the following question:
`Name the south american rank for venezuela`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_country_by_historical_gdp_ppp_pe" (
"south_american_rank" real,
"world_rank" real,
"nation" text,
"2011_imf" text,
"2008_cia_factbook" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the south american rank for venezuela`:
```sql
|
SELECT COUNT("weight") FROM "roster" WHERE "home_town"='San Francisco, CA'; |
## Task
Generate a SQL query to answer the following question:
`How many weight stats are there for players from San Francisco, CA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"num" real,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text,
"high_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many weight stats are there for players from San Francisco, CA?`:
```sql
|
SELECT MAX("num") FROM "roster" WHERE "name"='Rickie Winslow'; |
## Task
Generate a SQL query to answer the following question:
`What was rickie winslow's number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"num" real,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text,
"high_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was rickie winslow's number?`:
```sql
|
SELECT COUNT("height") FROM "roster" WHERE "home_town"='Lagos, Nigeria'; |
## Task
Generate a SQL query to answer the following question:
`How many height entries are there for players from lagos, nigeria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"num" real,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text,
"high_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many height entries are there for players from lagos, nigeria?`:
```sql
|
SELECT "home_town" FROM "roster" WHERE "high_school"='Alvin'; |
## Task
Generate a SQL query to answer the following question:
`What is the hometown of the players from alvin high school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"num" real,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text,
"high_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown of the players from alvin high school?`:
```sql
|
SELECT COUNT("height") FROM "roster" WHERE "high_school"='Bayside'; |
## Task
Generate a SQL query to answer the following question:
`How many height entries are there for players from bayside high school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"num" real,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text,
"high_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many height entries are there for players from bayside high school?`:
```sql
|
SELECT COUNT("reason_for_change") FROM "table1_225095_4" WHERE "successor"='Edward Hempstead'; |
## Task
Generate a SQL query to answer the following question:
`How many reasons for change were listed when Edward Hempstead was the successor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225095_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many reasons for change were listed when Edward Hempstead was the successor?`:
```sql
|
SELECT COUNT("vacator") FROM "table1_225095_4" WHERE "district"='North Carolina 3rd'; |
## Task
Generate a SQL query to answer the following question:
`How many Vacators were listed when the district was North Carolina 3rd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225095_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Vacators were listed when the district was North Carolina 3rd?`:
```sql
|
SELECT "vacator" FROM "table1_225095_4" WHERE "successor"='Shadrach Bond'; |
## Task
Generate a SQL query to answer the following question:
`Who was the vacator when Shadrach Bond was the successor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225095_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the vacator when Shadrach Bond was the successor?`:
```sql
|
SELECT "date_successor_seated" FROM "table1_225096_4" WHERE "reason_for_change"='Until August 2, 1813'; |
## Task
Generate a SQL query to answer the following question:
`When was the successor who got his seat because of "until august 2, 1813" seated?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225096_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the successor who got his seat because of "until august 2, 1813" seated?`:
```sql
|
SELECT "date_successor_seated" FROM "table1_225098_4" WHERE "district"='Massachusetts 20th'; |
## Task
Generate a SQL query to answer the following question:
`The successor for the Massachusetts 20th district was seated on what date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225098_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `The successor for the Massachusetts 20th district was seated on what date?`:
```sql
|
SELECT "vacator" FROM "table1_225098_4" WHERE "district"='Pennsylvania 6th'; |
## Task
Generate a SQL query to answer the following question:
`Who vacated the Pennsylvania 6th district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225098_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who vacated the Pennsylvania 6th district?`:
```sql
|
SELECT "successor" FROM "table1_225099_3" WHERE "state_class"='Maine (2)'; |
## Task
Generate a SQL query to answer the following question:
`Who was the successor for the state of Maine (2) ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225099_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 `Who was the successor for the state of Maine (2) ?`:
```sql
|
SELECT "date_of_successors_formal_installation" FROM "table1_225099_3" WHERE "reason_for_change"='Resigned December 4, 1819'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of successors formal installation when the reason for change is resigned december 4, 1819?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225099_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 `What is the date of successors formal installation when the reason for change is resigned december 4, 1819?`:
```sql
|
SELECT COUNT("date_of_successors_formal_installation") FROM "table1_225099_3" WHERE "successor"='John W. Walker (DR)'; |
## Task
Generate a SQL query to answer the following question:
`How many entries are shown for date of successors formal installation where successor is john w. walker (dr)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225099_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 entries are shown for date of successors formal installation where successor is john w. walker (dr)?`:
```sql
|
SELECT "successor" FROM "table1_225099_3" WHERE "state_class"='Maine (2)'; |
## Task
Generate a SQL query to answer the following question:
`Who was the successor for the state (class) of maine (2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225099_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 `Who was the successor for the state (class) of maine (2)?`:
```sql
|
SELECT "state_class" FROM "table1_225099_3" WHERE "reason_for_change"='Resigned May 15, 1820'; |
## Task
Generate a SQL query to answer the following question:
`what is the state for reason for change is resigned may 15, 1820?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225099_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 `what is the state for reason for change is resigned may 15, 1820?`:
```sql
|
SELECT "trophy_presentation" FROM "1980s" WHERE "year"=1987; |
## Task
Generate a SQL query to answer the following question:
`Who is the trophy presentation in the year 1987?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1980s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the trophy presentation in the year 1987?`:
```sql
|
SELECT "network" FROM "1980s" WHERE "s_analyst"='Eddie Arcaro'; |
## Task
Generate a SQL query to answer the following question:
`Which network has s analyst of eddie arcaro?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1980s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which network has s analyst of eddie arcaro?`:
```sql
|
SELECT "reporters" FROM "1980s" WHERE "year"=1984; |
## Task
Generate a SQL query to answer the following question:
`Who are the reporters for the year of 1984?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1980s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the reporters for the year of 1984?`:
```sql
|
SELECT COUNT("trophy_presentation") FROM "1980s" WHERE "year"=1987; |
## Task
Generate a SQL query to answer the following question:
`How many trophy presentations where in the year 1987?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1980s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many trophy presentations where in the year 1987?`:
```sql
|
SELECT MIN("year") FROM "1980s" WHERE "reporters"='Howard Cosell and Jack Whitaker' AND "s_analyst"='Bill Hartack'; |
## Task
Generate a SQL query to answer the following question:
`In which year were howard cosell and jack whitaker reporters and s analyst is bill hartack?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1980s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which year were howard cosell and jack whitaker reporters and s analyst is bill hartack?`:
```sql
|
SELECT "race_caller" FROM "1980s" WHERE "s_host"='Jim McKay and Al Michaels' AND "year"=1987; |
## Task
Generate a SQL query to answer the following question:
`Who is the race caller when jim mckay and al michaels were s hosts in the year 1987?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1980s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the race caller when jim mckay and al michaels were s hosts in the year 1987?`:
```sql
|
SELECT "s_host" FROM "1970s" WHERE "s_analyst"='John Rotz and Howard Cosell'; |
## Task
Generate a SQL query to answer the following question:
`Name the host for john rotz and howard cosell`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the host for john rotz and howard cosell`:
```sql
|
SELECT "race_caller" FROM "1970s" WHERE "s_host"='Jim McKay' AND "reporters"='Howard Cosell'; |
## Task
Generate a SQL query to answer the following question:
`Name the race caller for jim mckay and howard cosell`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the race caller for jim mckay and howard cosell`:
```sql
|
SELECT "race_caller" FROM "1970s" WHERE "trophy_presentation"='Jim McKay and Howard Cosell' AND "reporters"='Howard Cosell' AND "s_analyst"='Eddie Arcaro'; |
## Task
Generate a SQL query to answer the following question:
`Name the race caller for jim mckay and howard cosell and eddie arcaro`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the race caller for jim mckay and howard cosell and eddie arcaro`:
```sql
|
SELECT "reporters" FROM "1970s" WHERE "race_caller"='Dave Johnson' AND "s_analyst"='Eddie Arcaro and Howard Cosell'; |
## Task
Generate a SQL query to answer the following question:
`Name the reporters for dave johnson for eddie arcaro and howard cosell`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the reporters for dave johnson for eddie arcaro and howard cosell`:
```sql
|
SELECT "reporters" FROM "1970s" WHERE "s_analyst"='Howard Cosell'; |
## Task
Generate a SQL query to answer the following question:
`Name the reporters for howard cosell`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the reporters for howard cosell`:
```sql
|
SELECT COUNT("reporters") FROM "1970s" WHERE "s_analyst"='Heywood Hale Broun'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of reporters for heywood hale broun`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of reporters for heywood hale broun`:
```sql
|
SELECT "province" FROM "by_elevation" WHERE "elevation_m"=4550; |
## Task
Generate a SQL query to answer the following question:
`Which province has an elevation of 4550? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_elevation" (
"num" real,
"district" text,
"province" text,
"region" text,
"ubigeo" real,
"elevation_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which province has an elevation of 4550? `:
```sql
|
SELECT "province" FROM "by_elevation" WHERE "district"='San Antonio de Chuca'; |
## Task
Generate a SQL query to answer the following question:
`Which province is in the district of San Antonio de Chuca? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_elevation" (
"num" real,
"district" text,
"province" text,
"region" text,
"ubigeo" real,
"elevation_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which province is in the district of San Antonio de Chuca? `:
```sql
|
SELECT COUNT("elevation_m") FROM "by_elevation" WHERE "district"='Paratia'; |
## Task
Generate a SQL query to answer the following question:
`How many elevations are listed for Paratia? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_elevation" (
"num" real,
"district" text,
"province" text,
"region" text,
"ubigeo" real,
"elevation_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many elevations are listed for Paratia? `:
```sql
|
SELECT "province" FROM "by_elevation" WHERE "district"='Condoroma'; |
## Task
Generate a SQL query to answer the following question:
`What province is in the district of Condoroma? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_elevation" (
"num" real,
"district" text,
"province" text,
"region" text,
"ubigeo" real,
"elevation_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What province is in the district of Condoroma? `:
```sql
|
SELECT "reporters" FROM "2000s" WHERE "year"=2003; |
## Task
Generate a SQL query to answer the following question:
`Name the reporters for 2003`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the reporters for 2003`:
```sql
|
SELECT COUNT("race_caller") FROM "2000s" WHERE "trophy_presentation"='Bob Costas and Charlsie Cantey'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number for race caller for bob costas and charlsie cantey`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number for race caller for bob costas and charlsie cantey`:
```sql
|
SELECT "race_caller" FROM "1990s" WHERE "year"=1994; |
## Task
Generate a SQL query to answer the following question:
`Who is the race caller for the year 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1990s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the race caller for the year 1994?`:
```sql
|
SELECT COUNT("reporters") FROM "1990s" WHERE "year"=1993; |
## Task
Generate a SQL query to answer the following question:
`How many reporters for the year 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1990s" (
"year" real,
"network" text,
"race_caller" text,
"s_host" text,
"s_analyst" text,
"reporters" text,
"trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many reporters for the year 1993?`:
```sql
|
SELECT "starting_odds" FROM "the_field" WHERE "opening_odds"='2-1'; |
## Task
Generate a SQL query to answer the following question:
`What were the starting odds for the opening odds of 2-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_field" (
"post" real,
"horse_name" text,
"trainer" text,
"jockey" text,
"opening_odds" text,
"starting_odds" text,
"finishing_pos" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the starting odds for the opening odds of 2-1?`:
```sql
|
SELECT "jockey" FROM "the_field" WHERE "opening_odds"='4-1'; |
## Task
Generate a SQL query to answer the following question:
`Who was the jockey with opening odds of 4-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_field" (
"post" real,
"horse_name" text,
"trainer" text,
"jockey" text,
"opening_odds" text,
"starting_odds" text,
"finishing_pos" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the jockey with opening odds of 4-1?`:
```sql
|
SELECT COUNT("jockey") FROM "the_field" WHERE "trainer"='Eoin Harty'; |
## Task
Generate a SQL query to answer the following question:
`HOw many jockeys had eoin harty as a trainer`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_field" (
"post" real,
"horse_name" text,
"trainer" text,
"jockey" text,
"opening_odds" text,
"starting_odds" text,
"finishing_pos" real
);
### SQL
Given the database schema, here is the SQL query that answers `HOw many jockeys had eoin harty as a trainer`:
```sql
|
SELECT "post" FROM "the_field" WHERE "horse_name"='Chocolate Candy'; |
## Task
Generate a SQL query to answer the following question:
`Which post had the horse named chocolate candy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_field" (
"post" real,
"horse_name" text,
"trainer" text,
"jockey" text,
"opening_odds" text,
"starting_odds" text,
"finishing_pos" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which post had the horse named chocolate candy?`:
```sql
|
SELECT "date_successor_seated" FROM "table1_225199_4" WHERE "district"='Virginia 11th'; |
## Task
Generate a SQL query to answer the following question:
`What is every date successor seated for the Virginia 11th District?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225199_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every date successor seated for the Virginia 11th District?`:
```sql
|
SELECT "successor" FROM "table1_225200_4" WHERE "date_successor_seated"='Not filled this congress'; |
## Task
Generate a SQL query to answer the following question:
`Name the successor for not filled this congress`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225200_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the successor for not filled this congress`:
```sql
|
SELECT "district" FROM "table1_225200_4" WHERE "reason_for_change"='Rep. Warren R. Davis died during previous congress'; |
## Task
Generate a SQL query to answer the following question:
`Name the district for rep. warren r. davis died during previous congress`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225200_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the district for rep. warren r. davis died during previous congress`:
```sql
|
SELECT COUNT("reason_for_change") FROM "table1_225200_4" WHERE "date_successor_seated"='Not filled this congress'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of reason for change for not filled this congress`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225200_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of reason for change for not filled this congress`:
```sql
|
SELECT "vacator" FROM "table1_225200_4" WHERE "reason_for_change"='Resigned February 26, 1836 because of ill health'; |
## Task
Generate a SQL query to answer the following question:
`Name the vacator for resigned february 26, 1836 because of ill health`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225200_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the vacator for resigned february 26, 1836 because of ill health`:
```sql
|
SELECT "vacator" FROM "table1_225205_3" WHERE "reason_for_change"='Failure to elect'; |
## Task
Generate a SQL query to answer the following question:
`Name the vacator for failure to elect`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225205_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 `Name the vacator for failure to elect`:
```sql
|
SELECT "state_class" FROM "table1_225205_3" WHERE "reason_for_change"='Iowa admitted to the Union December 28, 1846'; |
## Task
Generate a SQL query to answer the following question:
`Name the state class for iowa admitted to the union december 28, 1846`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225205_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 `Name the state class for iowa admitted to the union december 28, 1846`:
```sql
|
SELECT "vacator" FROM "table1_225206_3" WHERE "reason_for_change"='Failure to elect'; |
## Task
Generate a SQL query to answer the following question:
`Who was the vacator when the reason for change was failure to elect?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_225206_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 `Who was the vacator when the reason for change was failure to elect?`:
```sql
|
SELECT COUNT("nat") FROM "squad_stats" WHERE "total_g"=6; |
## Task
Generate a SQL query to answer the following question:
`Name the number of nat for total g of 6`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_stats" (
"player" text,
"nat" text,
"pos" text,
"l_apps" real,
"l_g" real,
"c_apps" real,
"c_g" real,
"total_apps" real,
"total_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of nat for total g of 6`:
```sql
|
SELECT "l_g" FROM "squad_stats" WHERE "player"='Rubio'; |
## Task
Generate a SQL query to answer the following question:
`Name the l g for rubio`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_stats" (
"player" text,
"nat" text,
"pos" text,
"l_apps" real,
"l_g" real,
"c_apps" real,
"c_g" real,
"total_apps" real,
"total_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the l g for rubio`:
```sql
|
SELECT MIN("total_apps") FROM "squad_stats" WHERE "player"='Txema'; |
## Task
Generate a SQL query to answer the following question:
`Name the least total apaps for txema`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_stats" (
"player" text,
"nat" text,
"pos" text,
"l_apps" real,
"l_g" real,
"c_apps" real,
"c_g" real,
"total_apps" real,
"total_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least total apaps for txema`:
```sql
|
SELECT COUNT("pop_km") FROM "overview_of_the_regions" WHERE "administrative_centre"='Egilsstaðir'; |
## Task
Generate a SQL query to answer the following question:
`when administrative centre is egilsstaðir, what is the pop./ km²?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overview_of_the_regions" (
"num" real,
"name" text,
"name_english" text,
"population_2008_07_01" real,
"area_km" real,
"pop_km" text,
"iso_3166_2" text,
"administrative_centre" text
);
### SQL
Given the database schema, here is the SQL query that answers `when administrative centre is egilsstaðir, what is the pop./ km²?`:
```sql
|
SELECT "administrative_centre" FROM "overview_of_the_regions" WHERE "name_english"='Southern Region'; |
## Task
Generate a SQL query to answer the following question:
`when the name is southern region, what is the administrative centre?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overview_of_the_regions" (
"num" real,
"name" text,
"name_english" text,
"population_2008_07_01" real,
"area_km" real,
"pop_km" text,
"iso_3166_2" text,
"administrative_centre" text
);
### SQL
Given the database schema, here is the SQL query that answers `when the name is southern region, what is the administrative centre?`:
```sql
|
SELECT "pop_km" FROM "overview_of_the_regions" WHERE "area_km"=22721; |
## Task
Generate a SQL query to answer the following question:
`when the area (km²) is 22721, what is the pop./ km²?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overview_of_the_regions" (
"num" real,
"name" text,
"name_english" text,
"population_2008_07_01" real,
"area_km" real,
"pop_km" text,
"iso_3166_2" text,
"administrative_centre" text
);
### SQL
Given the database schema, here is the SQL query that answers `when the area (km²) is 22721, what is the pop./ km²?`:
```sql
|
SELECT MAX("population_2008_07_01") FROM "overview_of_the_regions" WHERE "administrative_centre"='Selfoss'; |
## Task
Generate a SQL query to answer the following question:
`What is the max pop of 2008 for selfoss?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overview_of_the_regions" (
"num" real,
"name" text,
"name_english" text,
"population_2008_07_01" real,
"area_km" real,
"pop_km" text,
"iso_3166_2" text,
"administrative_centre" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the max pop of 2008 for selfoss?`:
```sql
|
SELECT "pop_km" FROM "overview_of_the_regions" WHERE "num"=4; |
## Task
Generate a SQL query to answer the following question:
`When the # is 4, what is the pop./ km²?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overview_of_the_regions" (
"num" real,
"name" text,
"name_english" text,
"population_2008_07_01" real,
"area_km" real,
"pop_km" text,
"iso_3166_2" text,
"administrative_centre" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the # is 4, what is the pop./ km²?`:
```sql
|
SELECT "player" FROM "squad_stats" WHERE "l_apps"=17; |
## Task
Generate a SQL query to answer the following question:
`Name the player for l apps for 17`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_stats" (
"player" text,
"nat" text,
"pos" text,
"l_apps" real,
"l_g" real,
"c_apps" real,
"c_g" real,
"total_apps" real,
"total_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the player for l apps for 17`:
```sql
|
SELECT MIN("total_apps") FROM "squad_stats" WHERE "player"='Jaime'; |
## Task
Generate a SQL query to answer the following question:
`Name the least total apps for jaime`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_stats" (
"player" text,
"nat" text,
"pos" text,
"l_apps" real,
"l_g" real,
"c_apps" real,
"c_g" real,
"total_apps" real,
"total_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least total apps for jaime`:
```sql
|
SELECT COUNT("l_g") FROM "squad_stats" WHERE "c_g">1.0 AND "c_apps"=3; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of lg for cg is larger than 1.0 for c apps is 3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_stats" (
"player" text,
"nat" text,
"pos" text,
"l_apps" real,
"l_g" real,
"c_apps" real,
"c_g" real,
"total_apps" real,
"total_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of lg for cg is larger than 1.0 for c apps is 3`:
```sql
|
SELECT "result" FROM "table1_22577693_1" WHERE "runner_up"='[[|]] 151/8 (50.0 overs)'; |
## Task
Generate a SQL query to answer the following question:
`If the runner-up is [[|]] 151/8 (50.0 overs), what were the results?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22577693_1" (
"details" text,
"host_nation_s" text,
"final_venue" text,
"winner" text,
"result" text,
"runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the runner-up is [[|]] 151/8 (50.0 overs), what were the results?`:
```sql
|
SELECT "host_nation_s" FROM "table1_22577693_1" WHERE "winner"='Hong Kong 207/6 (47.1 overs)'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the host nations if the winner was Hong Kong 207/6 (47.1 overs)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22577693_1" (
"details" text,
"host_nation_s" text,
"final_venue" text,
"winner" text,
"result" text,
"runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the host nations if the winner was Hong Kong 207/6 (47.1 overs)?`:
```sql
|
SELECT "host_nation_s" FROM "table1_22577693_1" WHERE "winner"='Hong Kong 207/6 (47.1 overs)'; |
## Task
Generate a SQL query to answer the following question:
`If the winner is Hong Kong 207/6 (47.1 overs), what is the name of the hosting nation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22577693_1" (
"details" text,
"host_nation_s" text,
"final_venue" text,
"winner" text,
"result" text,
"runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the winner is Hong Kong 207/6 (47.1 overs), what is the name of the hosting nation?`:
```sql
|
SELECT "details" FROM "table1_22577693_1" WHERE "result"='Kuwait won by 72 runs Scorecard'; |
## Task
Generate a SQL query to answer the following question:
`If the results are Kuwait won by 72 runs scorecard, what are the details?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22577693_1" (
"details" text,
"host_nation_s" text,
"final_venue" text,
"winner" text,
"result" text,
"runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the results are Kuwait won by 72 runs scorecard, what are the details?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.