cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many teams had gary megson as an incoming manager`

### 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,
  "incoming_manager" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams had gary megson as an incoming manager`:
```sql
                SELECT COUNT("position_in_table") FROM "managerial_changes" WHERE "incoming_manager"='Gary Megson';
```
## Task
Generate a SQL query to answer the following question:
`who was the incoming manager for the 12th position in the table`

### 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,
  "incoming_manager" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `who was the incoming manager for the 12th position in the table`:
```sql
                SELECT "incoming_manager" FROM "managerial_changes" WHERE "position_in_table"='12th';
```
## Task
Generate a SQL query to answer the following question:
`How tall is the player from farmington, ky?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "age" real,
  "home_town" text,
  "team_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is the player from farmington, ky?`:
```sql
                SELECT "height" FROM "roster" WHERE "home_town"='Farmington, KY';
```
## Task
Generate a SQL query to answer the following question:
`Where did adrian smith go to college?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "age" real,
  "home_town" text,
  "team_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did adrian smith go to college?`:
```sql
                SELECT "team_school" FROM "roster" WHERE "name"='Adrian Smith';
```
## Task
Generate a SQL query to answer the following question:
`What player attended california university?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "age" real,
  "home_town" text,
  "team_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player attended california university?`:
```sql
                SELECT "name" FROM "roster" WHERE "team_school"='California';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player from purcell, ok?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "age" real,
  "home_town" text,
  "team_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player from purcell, ok?`:
```sql
                SELECT "name" FROM "roster" WHERE "home_town"='Purcell, OK';
```
## Task
Generate a SQL query to answer the following question:
`Name the hebrew for  tisʕ-`

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

CREATE TABLE "table1_26919_6" (
  "english" text,
  "proto_semitic" text,
  "ipa" text,
  "arabic" text,
  "hebrew" text,
  "tigrinya" text,
  "sabaean" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the hebrew for  tisʕ-`:
```sql
                SELECT "hebrew" FROM "table1_26919_6" WHERE "arabic"='tisʕ-';
```
## Task
Generate a SQL query to answer the following question:
`Name the tigrinya for χams-`

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

CREATE TABLE "table1_26919_6" (
  "english" text,
  "proto_semitic" text,
  "ipa" text,
  "arabic" text,
  "hebrew" text,
  "tigrinya" text,
  "sabaean" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tigrinya for χams-`:
```sql
                SELECT COUNT("tigrinya") FROM "table1_26919_6" WHERE "arabic"='χams-';
```
## Task
Generate a SQL query to answer the following question:
`Name the hebrew for *tišʻ-`

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

CREATE TABLE "table1_26919_6" (
  "english" text,
  "proto_semitic" text,
  "ipa" text,
  "arabic" text,
  "hebrew" text,
  "tigrinya" text,
  "sabaean" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the hebrew for *tišʻ-`:
```sql
                SELECT "hebrew" FROM "table1_26919_6" WHERE "proto_semitic"='*tišʻ-';
```
## Task
Generate a SQL query to answer the following question:
`Name the arabic for  ħamuʃte`

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

CREATE TABLE "table1_26919_6" (
  "english" text,
  "proto_semitic" text,
  "ipa" text,
  "arabic" text,
  "hebrew" text,
  "tigrinya" text,
  "sabaean" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the arabic for  ħamuʃte`:
```sql
                SELECT "arabic" FROM "table1_26919_6" WHERE "tigrinya"='ħamuʃte';
```
## Task
Generate a SQL query to answer the following question:
`Name the sabaean for sabʕ-`

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

CREATE TABLE "table1_26919_6" (
  "english" text,
  "proto_semitic" text,
  "ipa" text,
  "arabic" text,
  "hebrew" text,
  "tigrinya" text,
  "sabaean" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sabaean for sabʕ-`:
```sql
                SELECT "sabaean" FROM "table1_26919_6" WHERE "arabic"='sabʕ-';
```
## Task
Generate a SQL query to answer the following question:
`Who is the incoming manager when the date of vacancy was 21 march 2011?`

### 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,
  "incoming_manager" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the incoming manager when the date of vacancy was 21 march 2011?`:
```sql
                SELECT "incoming_manager" FROM "managerial_changes" WHERE "date_of_vacancy"='21 March 2011';
```
## Task
Generate a SQL query to answer the following question:
`What is the position in table when the date of vacancy was 4 january 2011?`

### 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,
  "incoming_manager" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position in table when the date of vacancy was 4 january 2011?`:
```sql
                SELECT "position_in_table" FROM "managerial_changes" WHERE "date_of_vacancy"='4 January 2011';
```
## Task
Generate a SQL query to answer the following question:
`What is the team when the incoming manager is martin allen?`

### 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,
  "incoming_manager" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team when the incoming manager is martin allen?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "incoming_manager"='Martin Allen';
```
## Task
Generate a SQL query to answer the following question:
`Who is the incoming manager when the date of appointment is 9 march 2011?`

### 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,
  "incoming_manager" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the incoming manager when the date of appointment is 9 march 2011?`:
```sql
                SELECT "incoming_manager" FROM "managerial_changes" WHERE "date_of_appointment"='9 March 2011';
```
## Task
Generate a SQL query to answer the following question:
`What is the team when the date of appointment is 23 march 2011?`

### 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,
  "incoming_manager" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team when the date of appointment is 23 march 2011?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "date_of_appointment"='23 March 2011';
```
## Task
Generate a SQL query to answer the following question:
`what is the date of appointment  11 june 2010?`

### 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,
  "incoming_manager" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date of appointment  11 june 2010?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "date_of_appointment"='11 June 2010';
```
## Task
Generate a SQL query to answer the following question:
`What is the depth at the UTC time of 12:19:36?`

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

CREATE TABLE "list_of_aftershocks" (
  "date_yyyy_mm_dd" text,
  "time_utc" text,
  "latitude" text,
  "longitude" text,
  "depth" text,
  "magnitude" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the depth at the UTC time of 12:19:36?`:
```sql
                SELECT "depth" FROM "list_of_aftershocks" WHERE "time_utc"='12:19:36';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the UTC time of 03:15:46?`

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

CREATE TABLE "list_of_aftershocks" (
  "date_yyyy_mm_dd" text,
  "time_utc" text,
  "latitude" text,
  "longitude" text,
  "depth" text,
  "magnitude" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the UTC time of 03:15:46?`:
```sql
                SELECT "date_yyyy_mm_dd" FROM "list_of_aftershocks" WHERE "time_utc"='03:15:46';
```
## Task
Generate a SQL query to answer the following question:
`What is the title for episode number 30?`

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

CREATE TABLE "table1_26952212_1" (
  "no_in_total" text,
  "no_in_series" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title for episode number 30?`:
```sql
                SELECT "title" FROM "table1_26952212_1" WHERE "no_in_total"='30';
```
## Task
Generate a SQL query to answer the following question:
`What is the number in series of the episode titled "beauty and the beast"?`

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

CREATE TABLE "table1_26952212_1" (
  "no_in_total" text,
  "no_in_series" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number in series of the episode titled "beauty and the beast"?`:
```sql
                SELECT "no_in_series" FROM "table1_26952212_1" WHERE "title"='\"Beauty and the Beast\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the number in series for the episode title  "crossroads"?`

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

CREATE TABLE "table1_26952212_1" (
  "no_in_total" text,
  "no_in_series" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number in series for the episode title  "crossroads"?`:
```sql
                SELECT "no_in_series" FROM "table1_26952212_1" WHERE "title"='\"Crossroads\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the % identity to C7orf38 of the animal whose genus & species is Mus Musculus?`

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

CREATE TABLE "orthologs" (
  "common_name" text,
  "genus_species" text,
  "ncbi_accession_number" text,
  "length_aa" real,
  "pct_identity_to_c7orf38" real,
  "pct_similarity_to_c7orf38" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the % identity to C7orf38 of the animal whose genus & species is Mus Musculus?`:
```sql
                SELECT MAX("pct_identity_to_c7orf38") FROM "orthologs" WHERE "genus_species"='Mus musculus';
```
## Task
Generate a SQL query to answer the following question:
`What is the length (AA) of the animal whose NCBI accession number is CAM15594.1?`

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

CREATE TABLE "orthologs" (
  "common_name" text,
  "genus_species" text,
  "ncbi_accession_number" text,
  "length_aa" real,
  "pct_identity_to_c7orf38" real,
  "pct_similarity_to_c7orf38" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the length (AA) of the animal whose NCBI accession number is CAM15594.1?`:
```sql
                SELECT MIN("length_aa") FROM "orthologs" WHERE "ncbi_accession_number"='CAM15594.1';
```
## Task
Generate a SQL query to answer the following question:
`What is the % similarity to C7orf38 of the animal whose % identity to C7orf38 is 81?`

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

CREATE TABLE "orthologs" (
  "common_name" text,
  "genus_species" text,
  "ncbi_accession_number" text,
  "length_aa" real,
  "pct_identity_to_c7orf38" real,
  "pct_similarity_to_c7orf38" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the % similarity to C7orf38 of the animal whose % identity to C7orf38 is 81?`:
```sql
                SELECT MAX("pct_similarity_to_c7orf38") FROM "orthologs" WHERE "pct_identity_to_c7orf38"=81;
```
## Task
Generate a SQL query to answer the following question:
`What is the common name of the animal whose length (AA) is 1323?`

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

CREATE TABLE "orthologs" (
  "common_name" text,
  "genus_species" text,
  "ncbi_accession_number" text,
  "length_aa" real,
  "pct_identity_to_c7orf38" real,
  "pct_similarity_to_c7orf38" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the common name of the animal whose length (AA) is 1323?`:
```sql
                SELECT "common_name" FROM "orthologs" WHERE "length_aa"=1323;
```
## Task
Generate a SQL query to answer the following question:
`What is the % identity to C7orf38 of the animal whose common name is rat?`

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

CREATE TABLE "orthologs" (
  "common_name" text,
  "genus_species" text,
  "ncbi_accession_number" text,
  "length_aa" real,
  "pct_identity_to_c7orf38" real,
  "pct_similarity_to_c7orf38" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the % identity to C7orf38 of the animal whose common name is rat?`:
```sql
                SELECT MIN("pct_identity_to_c7orf38") FROM "orthologs" WHERE "common_name"='Rat';
```
## Task
Generate a SQL query to answer the following question:
`What is the genus & species of the animal whose accession number is XP_002439156.1?`

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

CREATE TABLE "orthologs" (
  "common_name" text,
  "genus_species" text,
  "ncbi_accession_number" text,
  "length_aa" real,
  "pct_identity_to_c7orf38" real,
  "pct_similarity_to_c7orf38" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the genus & species of the animal whose accession number is XP_002439156.1?`:
```sql
                SELECT "genus_species" FROM "orthologs" WHERE "ncbi_accession_number"='XP_002439156.1';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were written by Alison McDonald?`

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

CREATE TABLE "table1_26961951_4" (
  "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 Alison McDonald?`:
```sql
                SELECT COUNT("directed_by") FROM "table1_26961951_4" WHERE "written_by"='Alison McDonald';
```
## Task
Generate a SQL query to answer the following question:
`How many viewers in millions did the Alison McDonald episode get?`

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

CREATE TABLE "table1_26961951_4" (
  "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 viewers in millions did the Alison McDonald episode get?`:
```sql
                SELECT "u_s_viewers_million" FROM "table1_26961951_4" WHERE "written_by"='Alison McDonald';
```
## Task
Generate a SQL query to answer the following question:
`How many viewers in millions did "batting practice" get?`

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

CREATE TABLE "table1_26961951_4" (
  "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 viewers in millions did "batting practice" get?`:
```sql
                SELECT "u_s_viewers_million" FROM "table1_26961951_4" WHERE "title"='\"Batting Practice\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the p max ( bar ) for the 6876 f bolt ( kgf )?`

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

CREATE TABLE "bolt_thrust_estimations_for_various_rifl" (
  "chambering" text,
  "p1_diameter_mm" text,
  "a_external_cm_2" text,
  "p_max_bar" real,
  "f_bolt_kgf" real,
  "f_bolt" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the p max ( bar ) for the 6876 f bolt ( kgf )?`:
```sql
                SELECT MIN("p_max_bar") FROM "bolt_thrust_estimations_for_various_rifl" WHERE "f_bolt_kgf"=6876;
```
## Task
Generate a SQL query to answer the following question:
`What is the  p1 diameter (mm) when .300 lapua magnum is the chambering?`

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

CREATE TABLE "bolt_thrust_estimations_for_various_rifl" (
  "chambering" text,
  "p1_diameter_mm" text,
  "a_external_cm_2" text,
  "p_max_bar" real,
  "f_bolt_kgf" real,
  "f_bolt" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the  p1 diameter (mm) when .300 lapua magnum is the chambering?`:
```sql
                SELECT "p1_diameter_mm" FROM "bolt_thrust_estimations_for_various_rifl" WHERE "chambering"='.300 Lapua Magnum';
```
## Task
Generate a SQL query to answer the following question:
`What is the chambering for the 8339 f bolt ( kgf )?`

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

CREATE TABLE "bolt_thrust_estimations_for_various_rifl" (
  "chambering" text,
  "p1_diameter_mm" text,
  "a_external_cm_2" text,
  "p_max_bar" real,
  "f_bolt_kgf" real,
  "f_bolt" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the chambering for the 8339 f bolt ( kgf )?`:
```sql
                SELECT "chambering" FROM "bolt_thrust_estimations_for_various_rifl" WHERE "f_bolt_kgf"=8339;
```
## Task
Generate a SQL query to answer the following question:
`What is the f bolt  for 11.35  p1 diameter (mm)?`

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

CREATE TABLE "bolt_thrust_estimations_for_various_rifl" (
  "chambering" text,
  "p1_diameter_mm" text,
  "a_external_cm_2" text,
  "p_max_bar" real,
  "f_bolt_kgf" real,
  "f_bolt" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the f bolt  for 11.35  p1 diameter (mm)?`:
```sql
                SELECT "f_bolt" FROM "bolt_thrust_estimations_for_various_rifl" WHERE "p1_diameter_mm"='11.35';
```
## Task
Generate a SQL query to answer the following question:
`How many  external (cm 2 ) are there for the .338 lapua magnum chambering?`

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

CREATE TABLE "bolt_thrust_estimations_for_various_rifl" (
  "chambering" text,
  "p1_diameter_mm" text,
  "a_external_cm_2" text,
  "p_max_bar" real,
  "f_bolt_kgf" real,
  "f_bolt" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many  external (cm 2 ) are there for the .338 lapua magnum chambering?`:
```sql
                SELECT COUNT("a_external_cm_2") FROM "bolt_thrust_estimations_for_various_rifl" WHERE "chambering"='.338 Lapua Magnum';
```
## Task
Generate a SQL query to answer the following question:
`Who is the director for the series # 39?`

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

CREATE TABLE "table1_26968451_2" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director for the series # 39?`:
```sql
                SELECT "directed_by" FROM "table1_26968451_2" WHERE "series_num"=39;
```
## Task
Generate a SQL query to answer the following question:
`With what type of chambering is the F bolt n (lbf) and the P max (bar) 3900?`

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

CREATE TABLE "bolt_thrust_estimations_for_various_pist" (
  "chambering" text,
  "p1_diameter_mm" text,
  "a_external_cm_2" text,
  "p_max_bar" real,
  "f_bolt_kgf" real,
  "f_bolt" text
);
### SQL
Given the database schema, here is the SQL query that answers `With what type of chambering is the F bolt n (lbf) and the P max (bar) 3900?`:
```sql
                SELECT "chambering" FROM "bolt_thrust_estimations_for_various_pist" WHERE "f_bolt"='N (lbf)' AND "p_max_bar"=3900;
```
## Task
Generate a SQL query to answer the following question:
`What is the p max (bar) of the pistol with a P1 diameter of 9.70 mm?`

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

CREATE TABLE "bolt_thrust_estimations_for_various_pist" (
  "chambering" text,
  "p1_diameter_mm" text,
  "a_external_cm_2" text,
  "p_max_bar" real,
  "f_bolt_kgf" real,
  "f_bolt" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the p max (bar) of the pistol with a P1 diameter of 9.70 mm?`:
```sql
                SELECT "p_max_bar" FROM "bolt_thrust_estimations_for_various_pist" WHERE "p1_diameter_mm"='9.70';
```
## Task
Generate a SQL query to answer the following question:
`What is the p max (bar) in the pistol where the chambering is .45 ACP?`

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

CREATE TABLE "bolt_thrust_estimations_for_various_pist" (
  "chambering" text,
  "p1_diameter_mm" text,
  "a_external_cm_2" text,
  "p_max_bar" real,
  "f_bolt_kgf" real,
  "f_bolt" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the p max (bar) in the pistol where the chambering is .45 ACP?`:
```sql
                SELECT MAX("p_max_bar") FROM "bolt_thrust_estimations_for_various_pist" WHERE "chambering"='.45 ACP';
```
## Task
Generate a SQL query to answer the following question:
`What is the P max (bar) of the pistol with a P1 diameter of 12.09 mm?`

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

CREATE TABLE "bolt_thrust_estimations_for_various_pist" (
  "chambering" text,
  "p1_diameter_mm" text,
  "a_external_cm_2" text,
  "p_max_bar" real,
  "f_bolt_kgf" real,
  "f_bolt" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the P max (bar) of the pistol with a P1 diameter of 12.09 mm?`:
```sql
                SELECT "p_max_bar" FROM "bolt_thrust_estimations_for_various_pist" WHERE "p1_diameter_mm"='12.09';
```
## Task
Generate a SQL query to answer the following question:
`Who was the  incoming manager for the date of appointment of 15 january 2011?`

### 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,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the  incoming manager for the date of appointment of 15 january 2011?`:
```sql
                SELECT "incoming_manager" FROM "managerial_changes" WHERE "date_of_appointment"='15 January 2011';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of appointment for the date of vacancy of 22 august 2010?`

### 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,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of appointment for the date of vacancy of 22 august 2010?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "date_of_vacancy"='22 August 2010';
```
## Task
Generate a SQL query to answer the following question:
`Who was the outgoing manager for the team of târgu mureş?`

### 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,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the outgoing manager for the team of târgu mureş?`:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='Târgu Mureş';
```
## Task
Generate a SQL query to answer the following question:
`How many date of appointments are there when the date of vacancy was 2 october 2010?`

### 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,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many date of appointments are there when the date of vacancy was 2 october 2010?`:
```sql
                SELECT COUNT("date_of_appointment") FROM "managerial_changes" WHERE "date_of_vacancy"='2 October 2010';
```
## Task
Generate a SQL query to answer the following question:
`Who was the outgoing manager when the incoming manager was laurenţiu reghecampf?`

### 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,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the outgoing manager when the incoming manager was laurenţiu reghecampf?`:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "incoming_manager"='Laurenţiu Reghecampf';
```
## Task
Generate a SQL query to answer the following question:
`What was the manner of departure when the outgoing manager was andrea mandorlini?`

### 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,
  "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 when the outgoing manager was andrea mandorlini?`:
```sql
                SELECT "manner_of_departure" FROM "managerial_changes" WHERE "outgoing_manager"='Andrea Mandorlini';
```
## Task
Generate a SQL query to answer the following question:
`What is the capacity for dundee united?`

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

CREATE TABLE "stadia_and_attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "total" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capacity for dundee united?`:
```sql
                SELECT "capacity" FROM "stadia_and_attendances" WHERE "team"='Dundee United';
```
## Task
Generate a SQL query to answer the following question:
`What was the total attendance at rugby park?`

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

CREATE TABLE "stadia_and_attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "total" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total attendance at rugby park?`:
```sql
                SELECT "total" FROM "stadia_and_attendances" WHERE "stadium"='Rugby Park';
```
## Task
Generate a SQL query to answer the following question:
`What is the total attended for kilmarnock?`

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

CREATE TABLE "stadia_and_attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "total" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total attended for kilmarnock?`:
```sql
                SELECT MIN("total") FROM "stadia_and_attendances" WHERE "team"='Kilmarnock';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the time 19' 38.87 115.219mph on Fri Aug 27?`

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

CREATE TABLE "2010_senior_manx_grand_prix_practice_tim" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the time 19' 38.87 115.219mph on Fri Aug 27?`:
```sql
                SELECT COUNT("mon_23_aug") FROM "2010_senior_manx_grand_prix_practice_tim" WHERE "fri_27_aug"='19'' 38.87 115.219mph';
```
## Task
Generate a SQL query to answer the following question:
`If the time on Tues Aug 24 is 20' 49.46 108.709mph, what is the time on Fri Aug 27?`

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

CREATE TABLE "2010_senior_manx_grand_prix_practice_tim" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the time on Tues Aug 24 is 20' 49.46 108.709mph, what is the time on Fri Aug 27?`:
```sql
                SELECT "fri_27_aug" FROM "2010_senior_manx_grand_prix_practice_tim" WHERE "tues_24_aug"='20'' 49.46 108.709mph';
```
## Task
Generate a SQL query to answer the following question:
`If Wed Aug 25 is —— no time, what is Sat aug 21?`

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

CREATE TABLE "2010_senior_manx_grand_prix_practice_tim" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `If Wed Aug 25 is —— no time, what is Sat aug 21?`:
```sql
                SELECT "sat_21_aug" FROM "2010_senior_manx_grand_prix_practice_tim" WHERE "wed_25_aug"='—— No Time';
```
## Task
Generate a SQL query to answer the following question:
`If the Rank is 10, what was the time on Sat aug 28?`

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

CREATE TABLE "2010_senior_manx_grand_prix_practice_tim" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Rank is 10, what was the time on Sat aug 28?`:
```sql
                SELECT "sat_28_aug" FROM "2010_senior_manx_grand_prix_practice_tim" WHERE "rank"=10;
```
## Task
Generate a SQL query to answer the following question:
`How many times was the time 20' 05.19 112.703mph on Thurs Aug 26th?`

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

CREATE TABLE "2010_senior_manx_grand_prix_practice_tim" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the time 20' 05.19 112.703mph on Thurs Aug 26th?`:
```sql
                SELECT COUNT("sat_21_aug") FROM "2010_senior_manx_grand_prix_practice_tim" WHERE "thurs_26_aug"='20'' 05.19 112.703mph';
```
## Task
Generate a SQL query to answer the following question:
`If the time on Wed aug 25 was 20' 09.25 112.324mph, what was the time on sat Aug 28?`

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

CREATE TABLE "2010_senior_manx_grand_prix_practice_tim" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the time on Wed aug 25 was 20' 09.25 112.324mph, what was the time on sat Aug 28?`:
```sql
                SELECT "sat_28_aug" FROM "2010_senior_manx_grand_prix_practice_tim" WHERE "wed_25_aug"='20'' 09.25 112.324mph';
```
## Task
Generate a SQL query to answer the following question:
`How many times was tues 24 aug 19' 19.83 117.110mph?`

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

CREATE TABLE "2010_junior_manx_grand_prix_practice_tim" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was tues 24 aug 19' 19.83 117.110mph?`:
```sql
                SELECT COUNT("rank") FROM "2010_junior_manx_grand_prix_practice_tim" WHERE "tues_24_aug"='19'' 19.83 117.110mph';
```
## Task
Generate a SQL query to answer the following question:
`how many time is fri 27 aug 19' 38.87 115.219mph?`

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

CREATE TABLE "2010_junior_manx_grand_prix_practice_tim" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many time is fri 27 aug 19' 38.87 115.219mph?`:
```sql
                SELECT COUNT("sat_29_aug") FROM "2010_junior_manx_grand_prix_practice_tim" WHERE "fri_27_aug"='19'' 38.87 115.219mph';
```
## Task
Generate a SQL query to answer the following question:
`what is wed 25 aug when mon 23 aug is 26' 57.82 89.957mph?`

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

CREATE TABLE "2010_junior_manx_grand_prix_practice_tim" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is wed 25 aug when mon 23 aug is 26' 57.82 89.957mph?`:
```sql
                SELECT "wed_25_aug" FROM "2010_junior_manx_grand_prix_practice_tim" WHERE "mon_23_aug"='26'' 57.82 89.957mph';
```
## Task
Generate a SQL query to answer the following question:
`What is thurs 26 aug when wed 25 aug is 19' 59.98 113.192mph?`

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

CREATE TABLE "2010_junior_manx_grand_prix_practice_tim" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is thurs 26 aug when wed 25 aug is 19' 59.98 113.192mph?`:
```sql
                SELECT "thurs_26_aug" FROM "2010_junior_manx_grand_prix_practice_tim" WHERE "wed_25_aug"='19'' 59.98 113.192mph';
```
## Task
Generate a SQL query to answer the following question:
`what is mon 23 aug when fri 27 aug is 18' 59.25 119.226mph?`

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

CREATE TABLE "2010_junior_manx_grand_prix_practice_tim" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is mon 23 aug when fri 27 aug is 18' 59.25 119.226mph?`:
```sql
                SELECT "mon_23_aug" FROM "2010_junior_manx_grand_prix_practice_tim" WHERE "fri_27_aug"='18'' 59.25 119.226mph';
```
## Task
Generate a SQL query to answer the following question:
`When 8 is the rank what is the Saturday August 21st?`

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

CREATE TABLE "2010_lightweight_manx_grand_prix_practic" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 8 is the rank what is the Saturday August 21st?`:
```sql
                SELECT "sat_21_aug" FROM "2010_lightweight_manx_grand_prix_practic" WHERE "rank"=8;
```
## Task
Generate a SQL query to answer the following question:
`When 20' 58.50 107.929mph is Friday August 27th What is Tuesday 24th August?`

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

CREATE TABLE "2010_lightweight_manx_grand_prix_practic" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 20' 58.50 107.929mph is Friday August 27th What is Tuesday 24th August?`:
```sql
                SELECT "tues_24_aug" FROM "2010_lightweight_manx_grand_prix_practic" WHERE "fri_27_aug"='20'' 58.50 107.929mph';
```
## Task
Generate a SQL query to answer the following question:
`When 21' 18.87 106.209mph is Tuesday August 24th what is Monday August 23rd?`

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

CREATE TABLE "2010_lightweight_manx_grand_prix_practic" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 21' 18.87 106.209mph is Tuesday August 24th what is Monday August 23rd?`:
```sql
                SELECT "mon_23_aug" FROM "2010_lightweight_manx_grand_prix_practic" WHERE "tues_24_aug"='21'' 18.87 106.209mph';
```
## Task
Generate a SQL query to answer the following question:
`When 21' 10.25 106.930mph is Tuesday August 24th what is Saturday August 29th?`

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

CREATE TABLE "2010_lightweight_manx_grand_prix_practic" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 21' 10.25 106.930mph is Tuesday August 24th what is Saturday August 29th?`:
```sql
                SELECT "sat_29_aug" FROM "2010_lightweight_manx_grand_prix_practic" WHERE "tues_24_aug"='21'' 10.25 106.930mph';
```
## Task
Generate a SQL query to answer the following question:
`When  21' 05.83 107.304mph is Wednesday August 25th what is Friday August 27th?`

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

CREATE TABLE "2010_lightweight_manx_grand_prix_practic" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `When  21' 05.83 107.304mph is Wednesday August 25th what is Friday August 27th?`:
```sql
                SELECT "fri_27_aug" FROM "2010_lightweight_manx_grand_prix_practic" WHERE "wed_25_aug"='21'' 05.83 107.304mph';
```
## Task
Generate a SQL query to answer the following question:
`When tom snow 250cc honda is the rider what is Monday August 23rd?`

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

CREATE TABLE "2010_lightweight_manx_grand_prix_practic" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `When tom snow 250cc honda is the rider what is Monday August 23rd?`:
```sql
                SELECT "mon_23_aug" FROM "2010_lightweight_manx_grand_prix_practic" WHERE "rider"='Tom Snow 250cc Honda';
```
## Task
Generate a SQL query to answer the following question:
`The episode with the original airdate October 8, 2010, is directed by who?`

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

CREATE TABLE "table1_26982362_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `The episode with the original airdate October 8, 2010, is directed by who?`:
```sql
                SELECT "directed_by" FROM "table1_26982362_2" WHERE "original_airdate"='October 8, 2010';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with production code 693-004?`

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

CREATE TABLE "table1_26982362_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with production code 693-004?`:
```sql
                SELECT "directed_by" FROM "table1_26982362_2" WHERE "production_code"='693-004';
```
## Task
Generate a SQL query to answer the following question:
`The episode with production code 693-002, has how many original airdates?`

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

CREATE TABLE "table1_26982362_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `The episode with production code 693-002, has how many original airdates?`:
```sql
                SELECT COUNT("original_airdate") FROM "table1_26982362_2" WHERE "production_code"='693-002';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode whose original airdate is April 23, 2010?`

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

CREATE TABLE "table1_26982362_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode whose original airdate is April 23, 2010?`:
```sql
                SELECT "title" FROM "table1_26982362_2" WHERE "original_airdate"='April 23, 2010';
```
## Task
Generate a SQL query to answer the following question:
`Who had the time of 22' 09.44 93.840mph on Tuesday August 24th?`

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

CREATE TABLE "2010_newcomers_race_a_practice_times_and" (
  "rank" real,
  "rider" text,
  "sat_21_aug" text,
  "mon_23_aug" text,
  "tues_24_aug" text,
  "wed_25_aug" text,
  "thurs_26_aug" text,
  "fri_27_aug" text,
  "sat_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the time of 22' 09.44 93.840mph on Tuesday August 24th?`:
```sql
                SELECT "rider" FROM "2010_newcomers_race_a_practice_times_and" WHERE "tues_24_aug"='22'' 09.44 93.840mph';
```