cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the rank on channel for january 21, 2011`

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

CREATE TABLE "united_kingdom" (
  "episode_number_production_number" text,
  "title" text,
  "original_air_date" text,
  "total_viewers_on_fx" text,
  "total_viewers_on_fx" text,
  "total_viewers" text,
  "rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rank on channel for january 21, 2011`:
```sql
                SELECT "rank_on_channel" FROM "united_kingdom" WHERE "original_air_date"='January 21, 2011';
```
## Task
Generate a SQL query to answer the following question:
`How many different people wrote the episode "Beautifully Broken"?`

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

CREATE TABLE "table1_26493520_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different people wrote the episode "Beautifully Broken"?`:
```sql
                SELECT COUNT("written_by") FROM "table1_26493520_1" WHERE "title"='\"Beautifully Broken\"';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were written by Alexander Woo and directed by Scott Winant?`

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

CREATE TABLE "table1_26493520_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were written by Alexander Woo and directed by Scott Winant?`:
```sql
                SELECT COUNT("title") FROM "table1_26493520_1" WHERE "written_by"='Alexander Woo' AND "directed_by"='Scott Winant';
```
## Task
Generate a SQL query to answer the following question:
`Name the most round for jordan cameron`

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

CREATE TABLE "2010_pacific_10_conference_football_seas" (
  "round" real,
  "overall_pick" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most round for jordan cameron`:
```sql
                SELECT MAX("round") FROM "2010_pacific_10_conference_football_seas" WHERE "player"='Jordan Cameron';
```
## Task
Generate a SQL query to answer the following question:
`Name the position for jordan cameron`

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

CREATE TABLE "2010_pacific_10_conference_football_seas" (
  "round" real,
  "overall_pick" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for jordan cameron`:
```sql
                SELECT "position" FROM "2010_pacific_10_conference_football_seas" WHERE "player"='Jordan Cameron';
```
## Task
Generate a SQL query to answer the following question:
`Name the position for stanley havili`

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

CREATE TABLE "2010_pacific_10_conference_football_seas" (
  "round" real,
  "overall_pick" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for stanley havili`:
```sql
                SELECT "position" FROM "2010_pacific_10_conference_football_seas" WHERE "player"='Stanley Havili';
```
## Task
Generate a SQL query to answer the following question:
`Name the college for david carter`

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

CREATE TABLE "2010_pacific_10_conference_football_seas" (
  "round" real,
  "overall_pick" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the college for david carter`:
```sql
                SELECT "college" FROM "2010_pacific_10_conference_football_seas" WHERE "player"='David Carter';
```
## Task
Generate a SQL query to answer the following question:
`What is the democratic coalation when together we can do more is sergio castro ( pc )?`

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

CREATE TABLE "chamber_of_deputies" (
  "dist" real,
  "democratic_coalition" text,
  "alliance" text,
  "together_we_can_do_more" text,
  "independent_regional_force" text,
  "independents" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the democratic coalation when together we can do more is sergio castro ( pc )?`:
```sql
                SELECT "democratic_coalition" FROM "chamber_of_deputies" WHERE "together_we_can_do_more"='Sergio Castro ( PC )';
```
## Task
Generate a SQL query to answer the following question:
`What is the independent regional force when alliance is (r) iván norambuena ( udi )?`

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

CREATE TABLE "chamber_of_deputies" (
  "dist" real,
  "democratic_coalition" text,
  "alliance" text,
  "together_we_can_do_more" text,
  "independent_regional_force" text,
  "independents" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the independent regional force when alliance is (r) iván norambuena ( udi )?`:
```sql
                SELECT "independent_regional_force" FROM "chamber_of_deputies" WHERE "alliance"='(R) Iván Norambuena ( UDI )';
```
## Task
Generate a SQL query to answer the following question:
`Who is the together we can do more when democratic coalition is rené alinco ( ppd )?`

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

CREATE TABLE "chamber_of_deputies" (
  "dist" real,
  "democratic_coalition" text,
  "alliance" text,
  "together_we_can_do_more" text,
  "independent_regional_force" text,
  "independents" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the together we can do more when democratic coalition is rené alinco ( ppd )?`:
```sql
                SELECT "together_we_can_do_more" FROM "chamber_of_deputies" WHERE "democratic_coalition"='René Alinco ( PPD )';
```
## Task
Generate a SQL query to answer the following question:
`Who is the independent regional force when democratic coalition is (r) jorge tarud ( ppd )?`

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

CREATE TABLE "chamber_of_deputies" (
  "dist" real,
  "democratic_coalition" text,
  "alliance" text,
  "together_we_can_do_more" text,
  "independent_regional_force" text,
  "independents" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the independent regional force when democratic coalition is (r) jorge tarud ( ppd )?`:
```sql
                SELECT "independent_regional_force" FROM "chamber_of_deputies" WHERE "democratic_coalition"='(R) Jorge Tarud ( PPD )';
```
## Task
Generate a SQL query to answer the following question:
`where together we can do more is gloria mujica ( ph ) what are all the cons.`

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

CREATE TABLE "senate" (
  "cons" text,
  "democratic_coalition" text,
  "alliance" text,
  "together_we_can_do_more" text,
  "independent_regional_force" text,
  "independents" text
);
### SQL
Given the database schema, here is the SQL query that answers `where together we can do more is gloria mujica ( ph ) what are all the cons.`:
```sql
                SELECT "cons" FROM "senate" WHERE "together_we_can_do_more"='Gloria Mujica ( PH )';
```
## Task
Generate a SQL query to answer the following question:
`where democratic coalition is eduardo frei ( pdc ) what are all the alliance`

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

CREATE TABLE "senate" (
  "cons" text,
  "democratic_coalition" text,
  "alliance" text,
  "together_we_can_do_more" text,
  "independent_regional_force" text,
  "independents" text
);
### SQL
Given the database schema, here is the SQL query that answers `where democratic coalition is eduardo frei ( pdc ) what are all the alliance`:
```sql
                SELECT "alliance" FROM "senate" WHERE "democratic_coalition"='Eduardo Frei ( PDC )';
```
## Task
Generate a SQL query to answer the following question:
` What's the name of the episode associated with Nick production number 342? `

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

CREATE TABLE "table1_2655016_4" (
  "season_num" real,
  "series_num" real,
  "episode_title" text,
  "original_air_date" text,
  "nick_prod_num" real
);
### SQL
Given the database schema, here is the SQL query that answers ` What's the name of the episode associated with Nick production number 342? `:
```sql
                SELECT "episode_title" FROM "table1_2655016_4" WHERE "nick_prod_num"=342;
```
## Task
Generate a SQL query to answer the following question:
` What date did season 12 premiere? `

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

CREATE TABLE "table1_2655016_4" (
  "season_num" real,
  "series_num" real,
  "episode_title" text,
  "original_air_date" text,
  "nick_prod_num" real
);
### SQL
Given the database schema, here is the SQL query that answers ` What date did season 12 premiere? `:
```sql
                SELECT "original_air_date" FROM "table1_2655016_4" WHERE "season_num"=12;
```
## Task
Generate a SQL query to answer the following question:
` What is the lowest Nick production number? `

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

CREATE TABLE "table1_2655016_4" (
  "season_num" real,
  "series_num" real,
  "episode_title" text,
  "original_air_date" text,
  "nick_prod_num" real
);
### SQL
Given the database schema, here is the SQL query that answers ` What is the lowest Nick production number? `:
```sql
                SELECT MIN("nick_prod_num") FROM "table1_2655016_4";
```
## Task
Generate a SQL query to answer the following question:
`When did the episode originally air with a nick production number of 945?`

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

CREATE TABLE "table1_2655016_10" (
  "season_num" real,
  "series_num" real,
  "episode_title" text,
  "original_air_date" text,
  "nick_prod_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode originally air with a nick production number of 945?`:
```sql
                SELECT "original_air_date" FROM "table1_2655016_10" WHERE "nick_prod_num"=945;
```
## Task
Generate a SQL query to answer the following question:
`What was the latest season with a nick production number of 942?`

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

CREATE TABLE "table1_2655016_10" (
  "season_num" real,
  "series_num" real,
  "episode_title" text,
  "original_air_date" text,
  "nick_prod_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest season with a nick production number of 942?`:
```sql
                SELECT MAX("season_num") FROM "table1_2655016_10" WHERE "nick_prod_num"=942;
```
## Task
Generate a SQL query to answer the following question:
`Name the metrical equivalence for linha`

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

CREATE TABLE "table1_26538461_2" (
  "portuguese_name" text,
  "english_name" text,
  "subdivides_in" text,
  "equivalence_in_varas" text,
  "metrical_equivalence" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the metrical equivalence for linha`:
```sql
                SELECT "metrical_equivalence" FROM "table1_26538461_2" WHERE "portuguese_name"='Linha';
```
## Task
Generate a SQL query to answer the following question:
`Name the equivalence for varas for geometrical pace`

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

CREATE TABLE "table1_26538461_2" (
  "portuguese_name" text,
  "english_name" text,
  "subdivides_in" text,
  "equivalence_in_varas" text,
  "metrical_equivalence" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the equivalence for varas for geometrical pace`:
```sql
                SELECT "equivalence_in_varas" FROM "table1_26538461_2" WHERE "english_name"='Geometrical pace';
```
## Task
Generate a SQL query to answer the following question:
`Name the subdivides in equivalence for varas 1/5`

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

CREATE TABLE "table1_26538461_2" (
  "portuguese_name" text,
  "english_name" text,
  "subdivides_in" text,
  "equivalence_in_varas" text,
  "metrical_equivalence" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the subdivides in equivalence for varas 1/5`:
```sql
                SELECT "subdivides_in" FROM "table1_26538461_2" WHERE "equivalence_in_varas"='1/5';
```
## Task
Generate a SQL query to answer the following question:
`How many  season # where episode title is " Avril Lavigne "? `

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

CREATE TABLE "season_10_2005" (
  "season_num" real,
  "series_num" real,
  "episode_title" text,
  "original_air_date" text,
  "nick_prod_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many  season # where episode title is " Avril Lavigne "? `:
```sql
                SELECT "season_num" FROM "season_10_2005" WHERE "episode_title"='\" Avril Lavigne \"';
```
## Task
Generate a SQL query to answer the following question:
`When موسم زيتون is the arabic title when is the year (ceremony)?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "english_title" text,
  "arabic_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When موسم زيتون is the arabic title when is the year (ceremony)?`:
```sql
                SELECT "year_ceremony" FROM "submissions" WHERE "arabic_title"='موسم زيتون';
```
## Task
Generate a SQL query to answer the following question:
`When ملح هذا البحر is the arabic title what is the english title?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "english_title" text,
  "arabic_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When ملح هذا البحر is the arabic title what is the english title?`:
```sql
                SELECT "english_title" FROM "submissions" WHERE "arabic_title"='ملح هذا البحر';
```
## Task
Generate a SQL query to answer the following question:
`When nominee is the result who is the director?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "english_title" text,
  "arabic_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When nominee is the result who is the director?`:
```sql
                SELECT "director" FROM "submissions" WHERE "result"='Nominee';
```
## Task
Generate a SQL query to answer the following question:
`When  hany abu-assad category:articles with hcards is the director what is the result?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "english_title" text,
  "arabic_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When  hany abu-assad category:articles with hcards is the director what is the result?`:
```sql
                SELECT "result" FROM "submissions" WHERE "director"='Hany Abu-Assad Category:Articles with hCards';
```
## Task
Generate a SQL query to answer the following question:
`When 2012 (85th) is the year (ceremony) how many results?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "english_title" text,
  "arabic_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 2012 (85th) is the year (ceremony) how many results?`:
```sql
                SELECT COUNT("result") FROM "submissions" WHERE "year_ceremony"='2012 (85th)';
```
## Task
Generate a SQL query to answer the following question:
`When salt of this sea is the english title who is the director?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "english_title" text,
  "arabic_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When salt of this sea is the english title who is the director?`:
```sql
                SELECT "director" FROM "submissions" WHERE "english_title"='Salt of this Sea';
```
## Task
Generate a SQL query to answer the following question:
`What was the record lowest temperature with a precipitation of 1.71 in.?`

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

CREATE TABLE "climate" (
  "month" text,
  "avg_high" text,
  "avg_low" text,
  "mean_avg" text,
  "precip" text,
  "record_high" text,
  "record_low" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record lowest temperature with a precipitation of 1.71 in.?`:
```sql
                SELECT "record_low" FROM "climate" WHERE "precip"='1.71 in.';
```
## Task
Generate a SQL query to answer the following question:
`who directed and produced 176452?`

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

CREATE TABLE "table1_26561498_1" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "patient_portrayer" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `who directed and produced 176452?`:
```sql
                SELECT "directed_by" FROM "table1_26561498_1" WHERE "production_code"=176452;
```
## Task
Generate a SQL query to answer the following question:
`what is the original air date for julie warner?`

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

CREATE TABLE "table1_26561498_1" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "patient_portrayer" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the original air date for julie warner?`:
```sql
                SELECT "original_air_date" FROM "table1_26561498_1" WHERE "patient_portrayer"='Julie Warner';
```
## Task
Generate a SQL query to answer the following question:
`what was written by alex carter?`

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

CREATE TABLE "table1_26561498_1" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "patient_portrayer" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `what was written by alex carter?`:
```sql
                SELECT "written_by" FROM "table1_26561498_1" WHERE "patient_portrayer"='Alex Carter';
```
## Task
Generate a SQL query to answer the following question:
`Who is the patient portrayer of the episode with the production code 3T5004?`

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

CREATE TABLE "table1_26561509_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "patient_portrayer" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the patient portrayer of the episode with the production code 3T5004?`:
```sql
                SELECT "patient_portrayer" FROM "table1_26561509_1" WHERE "production_code"='3T5004';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with the title "Conor McNamara, 2026"?`

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

CREATE TABLE "table1_26561509_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "patient_portrayer" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with the title "Conor McNamara, 2026"?`:
```sql
                SELECT "directed_by" FROM "table1_26561509_1" WHERE "title"='\"Conor McNamara, 2026\"';
```
## Task
Generate a SQL query to answer the following question:
`The episode with the no. 54, directed by Charles Haid, is written by who?`

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

CREATE TABLE "table1_26561509_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "patient_portrayer" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `The episode with the no. 54, directed by Charles Haid, is written by who?`:
```sql
                SELECT "written_by" FROM "table1_26561509_1" WHERE "directed_by"='Charles Haid' AND "no"=54;
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date of the episode with the title "Monica Wilder"?`

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

CREATE TABLE "table1_26561509_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "patient_portrayer" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of the episode with the title "Monica Wilder"?`:
```sql
                SELECT "original_air_date" FROM "table1_26561509_1" WHERE "title"='\"Monica Wilder\"';
```
## Task
Generate a SQL query to answer the following question:
`How many are directed by episodes with the production code 3T5009?`

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

CREATE TABLE "table1_26561509_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "patient_portrayer" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many are directed by episodes with the production code 3T5009?`:
```sql
                SELECT COUNT("directed_by") FROM "table1_26561509_1" WHERE "production_code"='3T5009';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of US viewers for the episode "the last word"?`

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

CREATE TABLE "table1_26565904_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of US viewers for the episode "the last word"?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_26565904_2" WHERE "title"='\"The Last Word\"';
```
## Task
Generate a SQL query to answer the following question:
`When was the first UK broadcast for episode 9?`

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

CREATE TABLE "episodes_and_ratings" (
  "episode" real,
  "first_broadcast_denmark_dr1" text,
  "official_tns_gallup_ratings" real,
  "first_broadcast_uk_bbc_four" text,
  "official_barb_ratings" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was the first UK broadcast for episode 9?`:
```sql
                SELECT "first_broadcast_uk_bbc_four" FROM "episodes_and_ratings" WHERE "episode"=9;
```
## Task
Generate a SQL query to answer the following question:
`When was the first UK broadcast for the episode with an official TNS Gallup rating of 1575000?`

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

CREATE TABLE "episodes_and_ratings" (
  "episode" real,
  "first_broadcast_denmark_dr1" text,
  "official_tns_gallup_ratings" real,
  "first_broadcast_uk_bbc_four" text,
  "official_barb_ratings" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was the first UK broadcast for the episode with an official TNS Gallup rating of 1575000?`:
```sql
                SELECT "first_broadcast_uk_bbc_four" FROM "episodes_and_ratings" WHERE "official_tns_gallup_ratings"=1575000;
```
## Task
Generate a SQL query to answer the following question:
`When was the first UK broadcast when the official Barb ratings was 1085000?`

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

CREATE TABLE "episodes_and_ratings" (
  "episode" real,
  "first_broadcast_denmark_dr1" text,
  "official_tns_gallup_ratings" real,
  "first_broadcast_uk_bbc_four" text,
  "official_barb_ratings" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was the first UK broadcast when the official Barb ratings was 1085000?`:
```sql
                SELECT "first_broadcast_uk_bbc_four" FROM "episodes_and_ratings" WHERE "official_barb_ratings"=1085000;
```
## Task
Generate a SQL query to answer the following question:
`Who is the writer with the ratings 14.8?`

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

CREATE TABLE "episode_information" (
  "episode" real,
  "title" text,
  "writer" text,
  "director" text,
  "original_airdate" text,
  "ratings_kanto" text,
  "ratings_kansai" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the writer with the ratings 14.8?`:
```sql
                SELECT "writer" FROM "episode_information" WHERE "ratings_kanto"='14.8';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date for the writer tanaka shinichi?`

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

CREATE TABLE "episode_information" (
  "episode" real,
  "title" text,
  "writer" text,
  "director" text,
  "original_airdate" text,
  "ratings_kanto" text,
  "ratings_kansai" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date for the writer tanaka shinichi?`:
```sql
                SELECT "original_airdate" FROM "episode_information" WHERE "writer"='Tanaka Shinichi';
```
## Task
Generate a SQL query to answer the following question:
`What is the ratings for the original air date may 25, 2010 22.00 - 22.54?`

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

CREATE TABLE "episode_information" (
  "episode" real,
  "title" text,
  "writer" text,
  "director" text,
  "original_airdate" text,
  "ratings_kanto" text,
  "ratings_kansai" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ratings for the original air date may 25, 2010 22.00 - 22.54?`:
```sql
                SELECT "ratings_kansai" FROM "episode_information" WHERE "original_airdate"='May 25, 2010 22.00 - 22.54';
```
## Task
Generate a SQL query to answer the following question:
`What was the ratings for episode 11?`

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

CREATE TABLE "episode_information" (
  "episode" real,
  "title" text,
  "writer" text,
  "director" text,
  "original_airdate" text,
  "ratings_kanto" text,
  "ratings_kansai" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the ratings for episode 11?`:
```sql
                SELECT "ratings_kanto" FROM "episode_information" WHERE "episode"=11;
```
## Task
Generate a SQL query to answer the following question:
`Who was the outgoing manager of the team whose incoming manager was Dougie Freedman?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "position_in_table" text,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the outgoing manager of the team whose incoming manager was Dougie Freedman?`:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "incoming_manager"='Dougie Freedman';
```
## Task
Generate a SQL query to answer the following question:
`What was the table position for the team whose outgoing manager was Brian Laws?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "position_in_table" text,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the table position for the team whose outgoing manager was Brian Laws?`:
```sql
                SELECT "position_in_table" FROM "managerial_changes" WHERE "outgoing_manager"='Brian Laws';
```
## Task
Generate a SQL query to answer the following question:
`How many incoming managers did Burnley have?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "position_in_table" text,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many incoming managers did Burnley have?`:
```sql
                SELECT COUNT("incoming_manager") FROM "managerial_changes" WHERE "team"='Burnley';
```
## Task
Generate a SQL query to answer the following question:
`What was the manner of departure for the team whose incoming manager was George Burley?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "position_in_table" text,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the manner of departure for the team whose incoming manager was George Burley?`:
```sql
                SELECT "manner_of_departure" FROM "managerial_changes" WHERE "incoming_manager"='George Burley';
```
## Task
Generate a SQL query to answer the following question:
`What is the Galician (reintegrationist) word of the Galician (Official) is bo día / bos días?`

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

CREATE TABLE "examples" (
  "english" text,
  "galician_official" text,
  "galician_reintegrationist" text,
  "portuguese" text,
  "spanish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Galician (reintegrationist) word of the Galician (Official) is bo día / bos días?`:
```sql
                SELECT "galician_reintegrationist" FROM "examples" WHERE "galician_official"='Bo día / Bos días';
```
## Task
Generate a SQL query to answer the following question:
`What is the Galician (reintegrationist) word of the Galician (Official) is adeus*?`

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

CREATE TABLE "examples" (
  "english" text,
  "galician_official" text,
  "galician_reintegrationist" text,
  "portuguese" text,
  "spanish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Galician (reintegrationist) word of the Galician (Official) is adeus*?`:
```sql
                SELECT "galician_reintegrationist" FROM "examples" WHERE "galician_official"='Adeus*';
```
## Task
Generate a SQL query to answer the following question:
`What is the Portuguese word for the English word 'grandfather'?`

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

CREATE TABLE "examples" (
  "english" text,
  "galician_official" text,
  "galician_reintegrationist" text,
  "portuguese" text,
  "spanish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Portuguese word for the English word 'grandfather'?`:
```sql
                SELECT "portuguese" FROM "examples" WHERE "english"='Grandfather';
```
## Task
Generate a SQL query to answer the following question:
`How many Spanish word is there for the Portuguese bem-vindo?`

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

CREATE TABLE "examples" (
  "english" text,
  "galician_official" text,
  "galician_reintegrationist" text,
  "portuguese" text,
  "spanish" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Spanish word is there for the Portuguese bem-vindo?`:
```sql
                SELECT COUNT("spanish") FROM "examples" WHERE "portuguese"='Bem-vindo';
```
## Task
Generate a SQL query to answer the following question:
`What is the Portuguese word for the English word 'welcome'?`

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

CREATE TABLE "examples" (
  "english" text,
  "galician_official" text,
  "galician_reintegrationist" text,
  "portuguese" text,
  "spanish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Portuguese word for the English word 'welcome'?`:
```sql
                SELECT "portuguese" FROM "examples" WHERE "english"='Welcome';
```
## Task
Generate a SQL query to answer the following question:
`what gender has an asian black bear?`

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

CREATE TABLE "sweetspets" (
  "name" text,
  "sweet" text,
  "species" text,
  "gender" text,
  "attribute" text,
  "birthday" text,
  "media_debut" text,
  "voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `what gender has an asian black bear?`:
```sql
                SELECT "gender" FROM "sweetspets" WHERE "species"='Asian black bear';
```
## Task
Generate a SQL query to answer the following question:
`what is the sweet for voice actor saki fujita?`

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

CREATE TABLE "sweetspets" (
  "name" text,
  "sweet" text,
  "species" text,
  "gender" text,
  "attribute" text,
  "birthday" text,
  "media_debut" text,
  "voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the sweet for voice actor saki fujita?`:
```sql
                SELECT "sweet" FROM "sweetspets" WHERE "voice_actor"='Saki Fujita';
```
## Task
Generate a SQL query to answer the following question:
`whatis the gender wher ethe species is holland lop?`

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

CREATE TABLE "sweetspets" (
  "name" text,
  "sweet" text,
  "species" text,
  "gender" text,
  "attribute" text,
  "birthday" text,
  "media_debut" text,
  "voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `whatis the gender wher ethe species is holland lop?`:
```sql
                SELECT "gender" FROM "sweetspets" WHERE "species"='Holland Lop';
```
## Task
Generate a SQL query to answer the following question:
`what is the media debut for the asian black bear?`

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

CREATE TABLE "sweetspets" (
  "name" text,
  "sweet" text,
  "species" text,
  "gender" text,
  "attribute" text,
  "birthday" text,
  "media_debut" text,
  "voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the media debut for the asian black bear?`:
```sql
                SELECT "media_debut" FROM "sweetspets" WHERE "species"='Asian black bear';
```
## Task
Generate a SQL query to answer the following question:
`What is the Spanish word for cas [ˈkas]?`

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

CREATE TABLE "table1_26614365_1" (
  "western" text,
  "central" text,
  "eastern" text,
  "old_galician_13th_15th_c" text,
  "portuguese" text,
  "spanish" text,
  "latin" text,
  "english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Spanish word for cas [ˈkas]?`:
```sql
                SELECT "spanish" FROM "table1_26614365_1" WHERE "central"='cas [ˈkas]';
```
## Task
Generate a SQL query to answer the following question:
`What is the eastern word for "light"?`

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

CREATE TABLE "table1_26614365_1" (
  "western" text,
  "central" text,
  "eastern" text,
  "old_galician_13th_15th_c" text,
  "portuguese" text,
  "spanish" text,
  "latin" text,
  "english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the eastern word for "light"?`:
```sql
                SELECT "eastern" FROM "table1_26614365_1" WHERE "english"='light';
```
## Task
Generate a SQL query to answer the following question:
`What is the central word for "robbers"?`

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

CREATE TABLE "table1_26614365_1" (
  "western" text,
  "central" text,
  "eastern" text,
  "old_galician_13th_15th_c" text,
  "portuguese" text,
  "spanish" text,
  "latin" text,
  "english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the central word for "robbers"?`:
```sql
                SELECT "central" FROM "table1_26614365_1" WHERE "english"='robbers';
```
## Task
Generate a SQL query to answer the following question:
`What is the Latin for "you sang"?`

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

CREATE TABLE "table1_26614365_1" (
  "western" text,
  "central" text,
  "eastern" text,
  "old_galician_13th_15th_c" text,
  "portuguese" text,
  "spanish" text,
  "latin" text,
  "english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Latin for "you sang"?`:
```sql
                SELECT "latin" FROM "table1_26614365_1" WHERE "english"='you sang';
```
## Task
Generate a SQL query to answer the following question:
`What is the western word for "latrones" in Latin?`

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

CREATE TABLE "table1_26614365_1" (
  "western" text,
  "central" text,
  "eastern" text,
  "old_galician_13th_15th_c" text,
  "portuguese" text,
  "spanish" text,
  "latin" text,
  "english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the western word for "latrones" in Latin?`:
```sql
                SELECT "western" FROM "table1_26614365_1" WHERE "latin"='latrones';
```
## Task
Generate a SQL query to answer the following question:
`What is the Old Galician for cantaste in Portuguese?`

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

CREATE TABLE "table1_26614365_1" (
  "western" text,
  "central" text,
  "eastern" text,
  "old_galician_13th_15th_c" text,
  "portuguese" text,
  "spanish" text,
  "latin" text,
  "english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Old Galician for cantaste in Portuguese?`:
```sql
                SELECT "old_galician_13th_15th_c" FROM "table1_26614365_1" WHERE "portuguese"='cantaste';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall amount of rainfall totals (million m 3)?`

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

CREATE TABLE "major_water_basins_of_jamaica" (
  "hydrographic_basin" text,
  "surface_area_km_2" real,
  "rainfall_totals_million_m_3" real,
  "evapotranspiration_million_m_3" real,
  "surface_water_runoff_million_m_3" real,
  "groundwater_discharge_million_m_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall amount of rainfall totals (million m 3)?`:
```sql
                SELECT MIN("rainfall_totals_million_m_3") FROM "major_water_basins_of_jamaica";
```
## Task
Generate a SQL query to answer the following question:
`When cabarita river is the hydrographic basin what is the lowest groundwater discharge (million m 3)?`

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

CREATE TABLE "major_water_basins_of_jamaica" (
  "hydrographic_basin" text,
  "surface_area_km_2" real,
  "rainfall_totals_million_m_3" real,
  "evapotranspiration_million_m_3" real,
  "surface_water_runoff_million_m_3" real,
  "groundwater_discharge_million_m_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `When cabarita river is the hydrographic basin what is the lowest groundwater discharge (million m 3)?`:
```sql
                SELECT MIN("groundwater_discharge_million_m_3") FROM "major_water_basins_of_jamaica" WHERE "hydrographic_basin"='Cabarita River';
```
## Task
Generate a SQL query to answer the following question:
`When martha brae, river is the hydrographic basin what is the rainfall totals (million m 3)?`

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

CREATE TABLE "major_water_basins_of_jamaica" (
  "hydrographic_basin" text,
  "surface_area_km_2" real,
  "rainfall_totals_million_m_3" real,
  "evapotranspiration_million_m_3" real,
  "surface_water_runoff_million_m_3" real,
  "groundwater_discharge_million_m_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `When martha brae, river is the hydrographic basin what is the rainfall totals (million m 3)?`:
```sql
                SELECT "rainfall_totals_million_m_3" FROM "major_water_basins_of_jamaica" WHERE "hydrographic_basin"='Martha Brae, River';
```
## Task
Generate a SQL query to answer the following question:
`Name the average for assists per game`

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

CREATE TABLE "statistics_leaders" (
  "category" text,
  "player" text,
  "games_played" real,
  "totals" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average for assists per game`:
```sql
                SELECT "average" FROM "statistics_leaders" WHERE "category"='Assists per game';
```
## Task
Generate a SQL query to answer the following question:
`Name the average for 23 games played`

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

CREATE TABLE "statistics_leaders" (
  "category" text,
  "player" text,
  "games_played" real,
  "totals" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average for 23 games played`:
```sql
                SELECT "average" FROM "statistics_leaders" WHERE "games_played"=23;
```
## Task
Generate a SQL query to answer the following question:
`Name the category for 50 totals`

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

CREATE TABLE "statistics_leaders" (
  "category" text,
  "player" text,
  "games_played" real,
  "totals" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the category for 50 totals`:
```sql
                SELECT "category" FROM "statistics_leaders" WHERE "totals"='50';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of average for steals per game`

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

CREATE TABLE "statistics_leaders" (
  "category" text,
  "player" text,
  "games_played" real,
  "totals" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of average for steals per game`:
```sql
                SELECT COUNT("average") FROM "statistics_leaders" WHERE "category"='Steals per game';
```
## Task
Generate a SQL query to answer the following question:
`who was the voice actor when the species is hedgehog?`

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

CREATE TABLE "jewelpets" (
  "name" text,
  "jewel" text,
  "species" text,
  "gender" text,
  "jewel_power" text,
  "attribute" text,
  "birthday" text,
  "media_debut" text,
  "voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `who was the voice actor when the species is hedgehog?`:
```sql
                SELECT "voice_actor" FROM "jewelpets" WHERE "species"='Hedgehog';
```
## Task
Generate a SQL query to answer the following question:
`who is the voice actor with the birthday march 26?`

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

CREATE TABLE "jewelpets" (
  "name" text,
  "jewel" text,
  "species" text,
  "gender" text,
  "jewel_power" text,
  "attribute" text,
  "birthday" text,
  "media_debut" text,
  "voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the voice actor with the birthday march 26?`:
```sql
                SELECT "voice_actor" FROM "jewelpets" WHERE "birthday"='March 26';
```
## Task
Generate a SQL query to answer the following question:
`what is the jewel power when the media debut is ep 17?`

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

CREATE TABLE "jewelpets" (
  "name" text,
  "jewel" text,
  "species" text,
  "gender" text,
  "jewel_power" text,
  "attribute" text,
  "birthday" text,
  "media_debut" text,
  "voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the jewel power when the media debut is ep 17?`:
```sql
                SELECT "jewel_power" FROM "jewelpets" WHERE "media_debut"='EP 17';
```
## Task
Generate a SQL query to answer the following question:
`how many times is the jewel malachite?`

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

CREATE TABLE "jewelpets" (
  "name" text,
  "jewel" text,
  "species" text,
  "gender" text,
  "jewel_power" text,
  "attribute" text,
  "birthday" text,
  "media_debut" text,
  "voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the jewel malachite?`:
```sql
                SELECT COUNT("birthday") FROM "jewelpets" WHERE "jewel"='Malachite';
```