cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## 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 "character" FROM "principal_roles_and_cast_members" WHERE "original_manchester_performer"='Lisa Davina Phillip';
```
## 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 "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:
`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_broadway_performer"='Moya Angela';
```
## 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 "character" FROM "principal_roles_and_cast_members" WHERE "original_west_end_performer"='Richard Fleeshman';
```
## 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 "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:
`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 "european_tier" FROM "guitar_hero_on_tour_setlist" WHERE "artist"='Rick Springfield';
```
## 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 "song_title" FROM "guitar_hero_on_tour_setlist" WHERE "artist"='Europe';
```
## 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 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 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 "master_recording" FROM "guitar_hero_on_tour_setlist" WHERE "artist"='Europe';
```
## 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 "date" FROM "table1_22464685_1" WHERE "georgian_name"='ცხოვრება და უწყება ბაგრატონიანთა';
```
## 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 "transliteration" FROM "table1_22464685_1" WHERE "period_covered"='1125-1223';
```
## 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 "english_name"='Histories and Eulogies of the Sovereigns';
```
## 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 "author" FROM "table1_22464685_1" WHERE "transliteration"='lasha-giorgis droindeli matiane';
```
## 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 "transliteration" FROM "table1_22464685_1" WHERE "period_covered"='1125-1223';
```
## 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 "state_class" FROM "table1_224840_3" WHERE "vacator"='John Laurance (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 "reason_for_change" FROM "table1_224840_3" WHERE "vacator"='Henry Latimer (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("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 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("5th_venue") FROM "list_of_fina_diving_world_series" WHERE "1st_venue"='Doha';
```
## 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
                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:
`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 COUNT("1st_venue") FROM "list_of_fina_diving_world_series" WHERE "year"=2010;
```
## 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 "2nd_venue" FROM "list_of_fina_diving_world_series" WHERE "1st_venue"='Qingdao';
```
## 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 "3rd_venue" FROM "list_of_fina_diving_world_series" WHERE "2nd_venue"='Mexico City';
```
## 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 COUNT("vacator") FROM "table1_224840_4" WHERE "district"='Massachusetts 3rd';
```
## 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 "vacator" FROM "table1_224840_4" WHERE "date_successor_seated"='November 26, 1800';
```
## 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 "successor" FROM "table1_224840_4" WHERE "district"='Massachusetts 3rd';
```
## 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 "builder" FROM "collection" WHERE "date"='1930';
```
## 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 COUNT("builder") FROM "collection" WHERE "withdrawn"='1951' AND "number"='42';
```
## 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 "date" FROM "collection" WHERE "number"='1';
```
## 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 "number" FROM "collection" WHERE "operator"='Melbourne and Metropolitan Tramways Board';
```
## 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 "status" FROM "collection" WHERE "operator"='Toronto Transit Commission';
```
## 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 "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 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 "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:
`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 "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 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 "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 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 "studio_host" FROM "american_television" WHERE "year"='2010';
```
## 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 "vacator" 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 "reason_for_change" FROM "table1_224844_4" WHERE "district"='Connecticut At-large';
```
## 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 MIN("rank_asia") FROM "table1_2248784_4";
```
## 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"='Iraq';
```
## 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 "2011_gdp_ppp_billions_of_usd" FROM "table1_2248784_4" WHERE "country"='Israel';
```
## 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 COUNT("rank_asia") FROM "table1_2248784_4" WHERE "rank_mid_east"=1;
```
## 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_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:
`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_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 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_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 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 "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 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 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 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 MIN("rank_subcontinent") FROM "table1_2248784_3" WHERE "country"='Bangladesh';
```
## 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 "rank_world" FROM "table1_2248784_3" WHERE "rank_subcontinent"=7;
```
## 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 "country"='Pakistan';
```
## 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 "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 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("rank_world") FROM "table1_2248784_3" WHERE "country"='Bhutan';
```
## 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("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 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 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:
`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("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:
`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("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 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 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:
`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 COUNT("weight") FROM "roster" WHERE "home_town"='San Francisco, CA';
```
## 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 MAX("num") FROM "roster" WHERE "name"='Rickie Winslow';
```
## 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 COUNT("height") FROM "roster" WHERE "home_town"='Lagos, Nigeria';
```
## 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 "home_town" FROM "roster" WHERE "high_school"='Alvin';
```
## 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("height") FROM "roster" WHERE "high_school"='Bayside';
```
## 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("reason_for_change") FROM "table1_225095_4" WHERE "successor"='Edward Hempstead';
```
## 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 COUNT("vacator") FROM "table1_225095_4" WHERE "district"='North Carolina 3rd';
```
## 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 "vacator" FROM "table1_225095_4" WHERE "successor"='Shadrach Bond';
```
## 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_225096_4" WHERE "reason_for_change"='Until August 2, 1813';
```
## 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 "date_successor_seated" FROM "table1_225098_4" WHERE "district"='Massachusetts 20th';
```
## 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 "vacator" FROM "table1_225098_4" WHERE "district"='Pennsylvania 6th';
```
## 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 "successor" FROM "table1_225099_3" WHERE "state_class"='Maine (2)';
```
## 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 "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:
`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 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:
`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 "successor" FROM "table1_225099_3" WHERE "state_class"='Maine (2)';
```
## 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 "state_class" FROM "table1_225099_3" WHERE "reason_for_change"='Resigned May 15, 1820';
```
## 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 "trophy_presentation" FROM "1980s" WHERE "year"=1987;
```
## 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 "network" FROM "1980s" WHERE "s_analyst"='Eddie Arcaro';
```