cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What's the average finish in 2008?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average finish in 2008?`:
```sql
                SELECT "avg_finish" FROM "nascar_nationwide_series" WHERE "year"=2008;
```
## Task
Generate a SQL query to answer the following question:
`What's #14 FitzBradshaw Racing's top 5 result?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's #14 FitzBradshaw Racing's top 5 result?`:
```sql
                SELECT MAX("top_5") FROM "nascar_nationwide_series" WHERE "team_s"='#14 FitzBradshaw Racing';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the episode performed by Sue Manchester?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "america_rock" (
  "episode_title" text,
  "subject" text,
  "music_by" text,
  "lyrics_by" text,
  "performed_by" text,
  "first_aired" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the episode performed by Sue Manchester?`:
```sql
                SELECT "first_aired" FROM "america_rock" WHERE "performed_by"='Sue Manchester';
```
## Task
Generate a SQL query to answer the following question:
`Who is the music by for episode the Elbow Room?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "america_rock" (
  "episode_title" text,
  "subject" text,
  "music_by" text,
  "lyrics_by" text,
  "performed_by" text,
  "first_aired" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the music by for episode the Elbow Room?`:
```sql
                SELECT "music_by" FROM "america_rock" WHERE "episode_title"='Elbow Room';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the episode performed by Essra Mohawk`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "america_rock" (
  "episode_title" text,
  "subject" text,
  "music_by" text,
  "lyrics_by" text,
  "performed_by" text,
  "first_aired" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the episode performed by Essra Mohawk`:
```sql
                SELECT "episode_title" FROM "america_rock" WHERE "performed_by"='Essra Mohawk';
```
## Task
Generate a SQL query to answer the following question:
`When five is the new channel what is the date of original removal?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "returning_this_year_after_a_break_of_one" (
  "programme" text,
  "date_s_of_original_removal" text,
  "original_channel" text,
  "date_of_return" text,
  "new_channel_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `When five is the new channel what is the date of original removal?`:
```sql
                SELECT "date_s_of_original_removal" FROM "returning_this_year_after_a_break_of_one" WHERE "new_channel_s"='Five';
```
## Task
Generate a SQL query to answer the following question:
`When bbc two is the original channel what is the date of original removal?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "returning_this_year_after_a_break_of_one" (
  "programme" text,
  "date_s_of_original_removal" text,
  "original_channel" text,
  "date_of_return" text,
  "new_channel_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `When bbc two is the original channel what is the date of original removal?`:
```sql
                SELECT "date_s_of_original_removal" FROM "returning_this_year_after_a_break_of_one" WHERE "original_channel"='BBC Two';
```
## Task
Generate a SQL query to answer the following question:
`When bbc two is the new channel what is the date of return?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "returning_this_year_after_a_break_of_one" (
  "programme" text,
  "date_s_of_original_removal" text,
  "original_channel" text,
  "date_of_return" text,
  "new_channel_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `When bbc two is the new channel what is the date of return?`:
```sql
                SELECT "date_of_return" FROM "returning_this_year_after_a_break_of_one" WHERE "new_channel_s"='BBC Two';
```
## Task
Generate a SQL query to answer the following question:
`What's team #2 in the round where team $1 is Ilisiakos?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "third_round" (
  "team_num1" text,
  "agg_score" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's team #2 in the round where team $1 is Ilisiakos?`:
```sql
                SELECT "team_num2" FROM "third_round" WHERE "team_num1"='Ilisiakos';
```
## Task
Generate a SQL query to answer the following question:
`What's the team #2 in the round where team #1 is Iraklis?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "third_round" (
  "team_num1" text,
  "agg_score" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the team #2 in the round where team #1 is Iraklis?`:
```sql
                SELECT "team_num2" FROM "third_round" WHERE "team_num1"='Iraklis';
```
## Task
Generate a SQL query to answer the following question:
`What's the 1st leg result in the round where team #1 is Iraklis?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "third_round" (
  "team_num1" text,
  "agg_score" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 1st leg result in the round where team #1 is Iraklis?`:
```sql
                SELECT "1st_leg" FROM "third_round" WHERE "team_num1"='Iraklis';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2nd leg result in the round where Panionios is team #2?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "third_round" (
  "team_num1" text,
  "agg_score" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2nd leg result in the round where Panionios is team #2?`:
```sql
                SELECT "2nd_leg" FROM "third_round" WHERE "team_num2"='Panionios';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2nd leg result in the round where team #1 is Iraklis?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "third_round" (
  "team_num1" text,
  "agg_score" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2nd leg result in the round where team #1 is Iraklis?`:
```sql
                SELECT "2nd_leg" FROM "third_round" WHERE "team_num1"='Iraklis';
```
## Task
Generate a SQL query to answer the following question:
`What is the dma when the format is rhythmic contemporary?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "stations" (
  "dma" real,
  "market" text,
  "station" text,
  "frequency" text,
  "branding" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the dma when the format is rhythmic contemporary?`:
```sql
                SELECT MIN("dma") FROM "stations" WHERE "format"='Rhythmic Contemporary';
```
## Task
Generate a SQL query to answer the following question:
`Which frequency is station wlfv-fm?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "stations" (
  "dma" real,
  "market" text,
  "station" text,
  "frequency" text,
  "branding" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which frequency is station wlfv-fm?`:
```sql
                SELECT "frequency" FROM "stations" WHERE "station"='WLFV-FM';
```
## Task
Generate a SQL query to answer the following question:
`Which station has the frequency of 107.3?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "stations" (
  "dma" real,
  "market" text,
  "station" text,
  "frequency" text,
  "branding" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which station has the frequency of 107.3?`:
```sql
                SELECT "station" FROM "stations" WHERE "frequency"='107.3';
```
## Task
Generate a SQL query to answer the following question:
`What is dma?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "stations" (
  "dma" real,
  "market" text,
  "station" text,
  "frequency" text,
  "branding" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is dma?`:
```sql
                SELECT MIN("dma") FROM "stations";
```
## Task
Generate a SQL query to answer the following question:
`What is the dma of branding is big oldies 107.3 with the station warv-fm?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "stations" (
  "dma" real,
  "market" text,
  "station" text,
  "frequency" text,
  "branding" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the dma of branding is big oldies 107.3 with the station warv-fm?`:
```sql
                SELECT "dma" FROM "stations" WHERE "branding"='Big Oldies 107.3' AND "station"='WARV-FM';
```
## Task
Generate a SQL query to answer the following question:
`Which branding has the format of southern country?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "stations" (
  "dma" real,
  "market" text,
  "station" text,
  "frequency" text,
  "branding" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which branding has the format of southern country?`:
```sql
                SELECT "branding" FROM "stations" WHERE "format"='Southern Country';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of gentle personalities?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "fuxi_earlier_heaven" (
  "name" text,
  "nature" text,
  "season" text,
  "personality" text,
  "family" text,
  "direction" text,
  "meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of gentle personalities?`:
```sql
                SELECT COUNT("direction") FROM "fuxi_earlier_heaven" WHERE "personality"='Gentle';
```
## Task
Generate a SQL query to answer the following question:
`What is the meaning of a gentle personality?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "fuxi_earlier_heaven" (
  "name" text,
  "nature" text,
  "season" text,
  "personality" text,
  "family" text,
  "direction" text,
  "meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the meaning of a gentle personality?`:
```sql
                SELECT "meaning" FROM "fuxi_earlier_heaven" WHERE "personality"='Gentle';
```
## Task
Generate a SQL query to answer the following question:
`Who in the family has a gentle personality?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "fuxi_earlier_heaven" (
  "name" text,
  "nature" text,
  "season" text,
  "personality" text,
  "family" text,
  "direction" text,
  "meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who in the family has a gentle personality?`:
```sql
                SELECT "family" FROM "fuxi_earlier_heaven" WHERE "personality"='Gentle';
```
## Task
Generate a SQL query to answer the following question:
`Which mission number has alternate name 1962-f01`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "launches" (
  "mission_no" text,
  "cover_name" text,
  "launch_date" text,
  "nssdc_id_no" text,
  "alt_name" text,
  "camera" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mission number has alternate name 1962-f01`:
```sql
                SELECT "mission_no" FROM "launches" WHERE "alt_name"='1962-F01';
```
## Task
Generate a SQL query to answer the following question:
`What are the notes of the satellite whose nssdc id number is 1959-002a?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "launches" (
  "mission_no" text,
  "cover_name" text,
  "launch_date" text,
  "nssdc_id_no" text,
  "alt_name" text,
  "camera" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes of the satellite whose nssdc id number is 1959-002a?`:
```sql
                SELECT "notes" FROM "launches" WHERE "nssdc_id_no"='1959-002A';
```
## Task
Generate a SQL query to answer the following question:
`What are the alternative name/s of those satellites whose nssdc id number is 1970-054a?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "launches" (
  "mission_no" text,
  "cover_name" text,
  "launch_date" text,
  "nssdc_id_no" text,
  "alt_name" text,
  "camera" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the alternative name/s of those satellites whose nssdc id number is 1970-054a?`:
```sql
                SELECT "alt_name" FROM "launches" WHERE "nssdc_id_no"='1970-054A';
```
## Task
Generate a SQL query to answer the following question:
`What are the alternative names of those satellites where the notes are: mission failed. guidance system failed. no orbit.`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "launches" (
  "mission_no" text,
  "cover_name" text,
  "launch_date" text,
  "nssdc_id_no" text,
  "alt_name" text,
  "camera" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the alternative names of those satellites where the notes are: mission failed. guidance system failed. no orbit.`:
```sql
                SELECT "alt_name" FROM "launches" WHERE "notes"='Mission failed. Guidance system failed. No orbit.';
```
## Task
Generate a SQL query to answer the following question:
`If -750m is 46.436, what is the name of the cyclist? `

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "final_results" (
  "rank" real,
  "race_number" real,
  "name" text,
  "noc" text,
  "250m" text,
  "500m" text,
  "750m" text,
  "1_000m" text
);
### SQL
Given the database schema, here is the SQL query that answers `If -750m is 46.436, what is the name of the cyclist? `:
```sql
                SELECT "name" FROM "final_results" WHERE "750m"='46.436';
```
## Task
Generate a SQL query to answer the following question:
`What is the -500 number for Theo Bos?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "final_results" (
  "rank" real,
  "race_number" real,
  "name" text,
  "noc" text,
  "250m" text,
  "500m" text,
  "750m" text,
  "1_000m" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the -500 number for Theo Bos?`:
```sql
                SELECT "500m" FROM "final_results" WHERE "name"='Theo Bos';
```
## Task
Generate a SQL query to answer the following question:
`If the -250m is 18.852, what is the `

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "final_results" (
  "rank" real,
  "race_number" real,
  "name" text,
  "noc" text,
  "250m" text,
  "500m" text,
  "750m" text,
  "1_000m" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the -250m is 18.852, what is the `:
```sql
                SELECT "750m" FROM "final_results" WHERE "250m"='18.852';
```
## Task
Generate a SQL query to answer the following question:
`If -750 is 45.505, what is the maximum rank?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "final_results" (
  "rank" real,
  "race_number" real,
  "name" text,
  "noc" text,
  "250m" text,
  "500m" text,
  "750m" text,
  "1_000m" text
);
### SQL
Given the database schema, here is the SQL query that answers `If -750 is 45.505, what is the maximum rank?`:
```sql
                SELECT MAX("rank") FROM "final_results" WHERE "750m"='45.505';
```
## Task
Generate a SQL query to answer the following question:
`Where are there 25 episodes in Catfights and Brawls?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_191591_5" (
  "dvd_title" text,
  "number_of_episodes" text,
  "region_2" text,
  "region_4_au" text,
  "region_1_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where are there 25 episodes in Catfights and Brawls?`:
```sql
                SELECT "region_2" FROM "table1_191591_5" WHERE "number_of_episodes"='25' AND "dvd_title"='Catfights and Brawls';
```
## Task
Generate a SQL query to answer the following question:
`Name the missouri for 2002`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "regional_championship" (
  "year" real,
  "iowa" text,
  "kansas" text,
  "minnesota" text,
  "missouri" text,
  "nebraska" text,
  "north_south_dakota" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the missouri for 2002`:
```sql
                SELECT "missouri" FROM "regional_championship" WHERE "year"=2002;
```
## Task
Generate a SQL query to answer the following question:
`How many Bangladeshi citizens are there in the borough ranked at number 7?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "asian_population_of_london" (
  "rank" real,
  "london_borough" text,
  "indian_population" real,
  "pakistani_population" real,
  "bangladeshi_population" real,
  "chinese_population" real,
  "other_asian_population" real,
  "total_asian_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Bangladeshi citizens are there in the borough ranked at number 7?`:
```sql
                SELECT MIN("bangladeshi_population") FROM "asian_population_of_london" WHERE "rank"=7;
```
## Task
Generate a SQL query to answer the following question:
`What's the London borough with 7797 Pakistani citizens?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "asian_population_of_london" (
  "rank" real,
  "london_borough" text,
  "indian_population" real,
  "pakistani_population" real,
  "bangladeshi_population" real,
  "chinese_population" real,
  "other_asian_population" real,
  "total_asian_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the London borough with 7797 Pakistani citizens?`:
```sql
                SELECT "london_borough" FROM "asian_population_of_london" WHERE "pakistani_population"=7797;
```
## Task
Generate a SQL query to answer the following question:
`How many boroughs with different ranks have a total Asian population of 33338?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "asian_population_of_london" (
  "rank" real,
  "london_borough" text,
  "indian_population" real,
  "pakistani_population" real,
  "bangladeshi_population" real,
  "chinese_population" real,
  "other_asian_population" real,
  "total_asian_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many boroughs with different ranks have a total Asian population of 33338?`:
```sql
                SELECT COUNT("rank") FROM "asian_population_of_london" WHERE "total_asian_population"=33338;
```
## Task
Generate a SQL query to answer the following question:
`What's the Chinese population in the borough with 26347 Pakistanis?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "asian_population_of_london" (
  "rank" real,
  "london_borough" text,
  "indian_population" real,
  "pakistani_population" real,
  "bangladeshi_population" real,
  "chinese_population" real,
  "other_asian_population" real,
  "total_asian_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Chinese population in the borough with 26347 Pakistanis?`:
```sql
                SELECT "chinese_population" FROM "asian_population_of_london" WHERE "pakistani_population"=26347;
```
## Task
Generate a SQL query to answer the following question:
`How many Asians live in the borough with 8109 Chinese population?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "asian_population_of_london" (
  "rank" real,
  "london_borough" text,
  "indian_population" real,
  "pakistani_population" real,
  "bangladeshi_population" real,
  "chinese_population" real,
  "other_asian_population" real,
  "total_asian_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Asians live in the borough with 8109 Chinese population?`:
```sql
                SELECT MIN("total_asian_population") FROM "asian_population_of_london" WHERE "chinese_population"=8109;
```
## Task
Generate a SQL query to answer the following question:
`How many Bangladeshi citizens live in the borough ranked at number 14?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "asian_population_of_london" (
  "rank" real,
  "london_borough" text,
  "indian_population" real,
  "pakistani_population" real,
  "bangladeshi_population" real,
  "chinese_population" real,
  "other_asian_population" real,
  "total_asian_population" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Bangladeshi citizens live in the borough ranked at number 14?`:
```sql
                SELECT MAX("bangladeshi_population") FROM "asian_population_of_london" WHERE "rank"=14;
```
## Task
Generate a SQL query to answer the following question:
`How many members did Africa have the year that Australia had 94615?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "chronology_of_worldwide_membership" (
  "year" real,
  "worldwide" real,
  "africa" real,
  "america" real,
  "asia" real,
  "australia" real,
  "europe" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many members did Africa have the year that Australia had 94615?`:
```sql
                SELECT "africa" FROM "chronology_of_worldwide_membership" WHERE "australia"=94615;
```
## Task
Generate a SQL query to answer the following question:
`How many members did Europe have the year that America had 403892?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "chronology_of_worldwide_membership" (
  "year" real,
  "worldwide" real,
  "africa" real,
  "america" real,
  "asia" real,
  "australia" real,
  "europe" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many members did Europe have the year that America had 403892?`:
```sql
                SELECT "europe" FROM "chronology_of_worldwide_membership" WHERE "america"=403892;
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum number of members Europe had at the time Africa had 7375139?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "chronology_of_worldwide_membership" (
  "year" real,
  "worldwide" real,
  "africa" real,
  "america" real,
  "asia" real,
  "australia" real,
  "europe" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum number of members Europe had at the time Africa had 7375139?`:
```sql
                SELECT MIN("europe") FROM "chronology_of_worldwide_membership" WHERE "africa"=7375139;
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum number of members Africa had in 2001?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "chronology_of_worldwide_membership" (
  "year" real,
  "worldwide" real,
  "africa" real,
  "america" real,
  "asia" real,
  "australia" real,
  "europe" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum number of members Africa had in 2001?`:
```sql
                SELECT MIN("africa") FROM "chronology_of_worldwide_membership" WHERE "year"=2001;
```
## Task
Generate a SQL query to answer the following question:
`What is the most members Europe had when Australia had 94615?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "chronology_of_worldwide_membership" (
  "year" real,
  "worldwide" real,
  "africa" real,
  "america" real,
  "asia" real,
  "australia" real,
  "europe" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most members Europe had when Australia had 94615?`:
```sql
                SELECT MAX("europe") FROM "chronology_of_worldwide_membership" WHERE "australia"=94615;
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year that Europe had 471895?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "chronology_of_worldwide_membership" (
  "year" real,
  "worldwide" real,
  "africa" real,
  "america" real,
  "asia" real,
  "australia" real,
  "europe" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year that Europe had 471895?`:
```sql
                SELECT MAX("year") FROM "chronology_of_worldwide_membership" WHERE "europe"=471895;
```
## Task
Generate a SQL query to answer the following question:
`What's the bus width (in bit) of the model whose core is 650 MHz?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_19161046_1" (
  "model" text,
  "year" text,
  "code_name" text,
  "fab_nm" real,
  "bus_interface" text,
  "transistor_count_millions" real,
  "memory_max_mi_b" text,
  "core_m_hz" real,
  "memory_m_hz" text,
  "type" text,
  "bus_width_bit" real,
  "direct_x" text,
  "shader_model" text,
  "open_gl" text,
  "maximum_resolution" text,
  "ice_q4_cooling_system" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the bus width (in bit) of the model whose core is 650 MHz?`:
```sql
                SELECT COUNT("bus_width_bit") FROM "table1_19161046_1" WHERE "core_m_hz"=650;
```
## Task
Generate a SQL query to answer the following question:
`What's the directx of the model with code name RV770 PRO and a core bigger than 650.0 MHz?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_19161046_1" (
  "model" text,
  "year" text,
  "code_name" text,
  "fab_nm" real,
  "bus_interface" text,
  "transistor_count_millions" real,
  "memory_max_mi_b" text,
  "core_m_hz" real,
  "memory_m_hz" text,
  "type" text,
  "bus_width_bit" real,
  "direct_x" text,
  "shader_model" text,
  "open_gl" text,
  "maximum_resolution" text,
  "ice_q4_cooling_system" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the directx of the model with code name RV770 PRO and a core bigger than 650.0 MHz?`:
```sql
                SELECT "direct_x" FROM "table1_19161046_1" WHERE "code_name"='RV770 PRO' AND "core_m_hz">650.0;
```
## Task
Generate a SQL query to answer the following question:
`What are the notes recorded for the model HIS HD4850 (512MB)?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_19161046_1" (
  "model" text,
  "year" text,
  "code_name" text,
  "fab_nm" real,
  "bus_interface" text,
  "transistor_count_millions" real,
  "memory_max_mi_b" text,
  "core_m_hz" real,
  "memory_m_hz" text,
  "type" text,
  "bus_width_bit" real,
  "direct_x" text,
  "shader_model" text,
  "open_gl" text,
  "maximum_resolution" text,
  "ice_q4_cooling_system" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes recorded for the model HIS HD4850 (512MB)?`:
```sql
                SELECT "notes" FROM "table1_19161046_1" WHERE "model"='HIS HD4850 (512MB)';
```
## Task
Generate a SQL query to answer the following question:
`Who directed "Fever"?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_19161605_2" (
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed "Fever"?`:
```sql
                SELECT "directed_by" FROM "table1_19161605_2" WHERE "title"='\"Fever\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date of "Cursed"?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_19161605_2" (
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of "Cursed"?`:
```sql
                SELECT "original_air_date" FROM "table1_19161605_2" WHERE "title"='\"Cursed\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date of "Prophecy"?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_19161605_2" (
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of "Prophecy"?`:
```sql
                SELECT "original_air_date" FROM "table1_19161605_2" WHERE "title"='\"Prophecy\"';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode "Confession"?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_19161605_2" (
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode "Confession"?`:
```sql
                SELECT "written_by" FROM "table1_19161605_2" WHERE "title"='\"Confession\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of episode number 14?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_19161605_2" (
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of episode number 14?`:
```sql
                SELECT "title" FROM "table1_19161605_2" WHERE "num"=14;
```
## Task
Generate a SQL query to answer the following question:
`If the net worth of fixed assets is 621, what is the current ratio?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "example_data" (
  "pair_i_d" real,
  "survive" real,
  "industry" text,
  "current_ratio" real,
  "quick_ratio" real,
  "net_worth_to_fixed_assets" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the net worth of fixed assets is 621, what is the current ratio?`:
```sql
                SELECT "current_ratio" FROM "example_data" WHERE "net_worth_to_fixed_assets"=621;
```
## Task
Generate a SQL query to answer the following question:
`Name the score for opponent of cleveland`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for opponent of cleveland`:
```sql
                SELECT "score" FROM "game_log" WHERE "opponent"='Cleveland';
```
## Task
Generate a SQL query to answer the following question:
`Featherstone Rovers club played a total of how many games?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "pts_diff" real,
  "b_p" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Featherstone Rovers club played a total of how many games?`:
```sql
                SELECT COUNT("played") FROM "table" WHERE "club"='Featherstone Rovers';
```
## Task
Generate a SQL query to answer the following question:
`How many games were lost when the club got 34 points`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "pts_diff" real,
  "b_p" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were lost when the club got 34 points`:
```sql
                SELECT MIN("lost") FROM "table" WHERE "points"=34;
```
## Task
Generate a SQL query to answer the following question:
`What was the B.P. of club Halifax?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "pts_diff" real,
  "b_p" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the B.P. of club Halifax?`:
```sql
                SELECT "b_p" FROM "table" WHERE "club"='Halifax';
```
## Task
Generate a SQL query to answer the following question:
`What is the first year she played in the french open?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "women_s_doubles_14_9_titles_5_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first year she played in the french open?`:
```sql
                SELECT MIN("year") FROM "women_s_doubles_14_9_titles_5_runner_ups" WHERE "championship"='French Open';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the score 6–7(5), 6–2, 6–3?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "women_s_doubles_14_9_titles_5_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the score 6–7(5), 6–2, 6–3?`:
```sql
                SELECT COUNT("opponents") FROM "women_s_doubles_14_9_titles_5_runner_ups" WHERE "score"='6–7(5), 6–2, 6–3';
```
## Task
Generate a SQL query to answer the following question:
`Who was her partner at the US Open and they were runner-up?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "mixed_doubles_8_5_titles_3_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was her partner at the US Open and they were runner-up?`:
```sql
                SELECT "partner" FROM "mixed_doubles_8_5_titles_3_runner_ups" WHERE "championship"='US Open' AND "outcome"='Runner-up';
```
## Task
Generate a SQL query to answer the following question:
`Who was her partner at the US Open and they were runner-up?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "mixed_doubles_8_5_titles_3_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was her partner at the US Open and they were runner-up?`:
```sql
                SELECT "partner" FROM "mixed_doubles_8_5_titles_3_runner_ups" WHERE "outcome"='Runner-up' AND "championship"='US Open';
```
## Task
Generate a SQL query to answer the following question:
`Who did she play with on clay?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "mixed_doubles_8_5_titles_3_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did she play with on clay?`:
```sql
                SELECT "partner" FROM "mixed_doubles_8_5_titles_3_runner_ups" WHERE "surface"='Clay';
```
## Task
Generate a SQL query to answer the following question:
`state the number of surface where championship is australian open and score in the final is 6–3, 4–6, 11–9`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `state the number of surface where championship is australian open and score in the final is 6–3, 4–6, 11–9`:
```sql
                SELECT COUNT("surface") FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "championship"='Australian Open' AND "score_in_the_final"='6–3, 4–6, 11–9';
```
## Task
Generate a SQL query to answer the following question:
`which championship had arantxa sánchez vicario todd woodbridge as opponents in the final `

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `which championship had arantxa sánchez vicario todd woodbridge as opponents in the final `:
```sql
                SELECT "championship" FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "opponents_in_the_final"='Arantxa Sánchez Vicario Todd Woodbridge';
```
## Task
Generate a SQL query to answer the following question:
`what is the surface of the final which had score 6-2, 6-3`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the surface of the final which had score 6-2, 6-3`:
```sql
                SELECT "surface" FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "score_in_the_final"='6-2, 6-3';
```
## Task
Generate a SQL query to answer the following question:
`when were helena suková todd woodbridge the opponents in the final`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `when were helena suková todd woodbridge the opponents in the final`:
```sql
                SELECT "year" FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "opponents_in_the_final"='Helena Suková Todd Woodbridge';
```
## Task
Generate a SQL query to answer the following question:
`which championship had helena suková tom nijssen as opponents in the final and nicole provis as partner, the surface was hard and the outcome was winner`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "mixed_doubles_7_5_titles_2_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `which championship had helena suková tom nijssen as opponents in the final and nicole provis as partner, the surface was hard and the outcome was winner`:
```sql
                SELECT "championship" FROM "mixed_doubles_7_5_titles_2_runner_ups" WHERE "outcome"='Winner' AND "surface"='Hard' AND "partner"='Nicole Provis' AND "opponents_in_the_final"='Helena Suková Tom Nijssen';
```
## Task
Generate a SQL query to answer the following question:
`when was the last performance of the first performance on 11/15/1909`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_19189856_1" (
  "performer" text,
  "performances" real,
  "category" text,
  "first_performance" text,
  "last_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the last performance of the first performance on 11/15/1909`:
```sql
                SELECT "last_performance" FROM "table1_19189856_1" WHERE "first_performance"='11/15/1909';
```
## Task
Generate a SQL query to answer the following question:
`how many first performances where performer is wilfred engelman category:articles with hcards`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_19189856_1" (
  "performer" text,
  "performances" real,
  "category" text,
  "first_performance" text,
  "last_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many first performances where performer is wilfred engelman category:articles with hcards`:
```sql
                SELECT COUNT("first_performance") FROM "table1_19189856_1" WHERE "performer"='Wilfred Engelman Category:Articles with hCards';
```
## Task
Generate a SQL query to answer the following question:
`who was the performer that did last performance on 04/08/1963`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_19189856_1" (
  "performer" text,
  "performances" real,
  "category" text,
  "first_performance" text,
  "last_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `who was the performer that did last performance on 04/08/1963`:
```sql
                SELECT "performer" FROM "table1_19189856_1" WHERE "last_performance"='04/08/1963';
```
## Task
Generate a SQL query to answer the following question:
`what is the first performance of the last performance on 03/29/1957`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_19189856_1" (
  "performer" text,
  "performances" real,
  "category" text,
  "first_performance" text,
  "last_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the first performance of the last performance on 03/29/1957`:
```sql
                SELECT "first_performance" FROM "table1_19189856_1" WHERE "last_performance"='03/29/1957';
```
## Task
Generate a SQL query to answer the following question:
`what is the last performance of leon varkas category:articles with hcards`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "table1_19189856_1" (
  "performer" text,
  "performances" real,
  "category" text,
  "first_performance" text,
  "last_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the last performance of leon varkas category:articles with hcards`:
```sql
                SELECT "last_performance" FROM "table1_19189856_1" WHERE "performer"='Leon Varkas Category:Articles with hCards';
```
## Task
Generate a SQL query to answer the following question:
`How many different finales had the English title "Beyond the Realm of Conscience"?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "highest_rating_drama_series_of_2009" (
  "rank" real,
  "english_title" text,
  "chinese_title" text,
  "average" real,
  "peak" real,
  "premiere" real,
  "finale" real,
  "hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different finales had the English title "Beyond the Realm of Conscience"?`:
```sql
                SELECT COUNT("finale") FROM "highest_rating_drama_series_of_2009" WHERE "english_title"='Beyond the Realm of Conscience';
```