cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What state had william bigler (d) as a successor)`

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

CREATE TABLE "table1_2417308_3" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What state had william bigler (d) as a successor)`:
```sql
                SELECT "state_class" FROM "table1_2417308_3" WHERE "successor"='William Bigler (D)';
```
## Task
Generate a SQL query to answer the following question:
`Name the date successor seated for successor being vacant`

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

CREATE TABLE "table1_2417330_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date successor seated for successor being vacant`:
```sql
                SELECT "date_successor_seated" FROM "table1_2417330_4" WHERE "successor"='Vacant';
```
## Task
Generate a SQL query to answer the following question:
`Name the vacator for kentucky 2nd`

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

CREATE TABLE "table1_2417330_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the vacator for kentucky 2nd`:
```sql
                SELECT "vacator" FROM "table1_2417330_4" WHERE "district"='Kentucky 2nd';
```
## Task
Generate a SQL query to answer the following question:
`Name the successor for election was successfully contested july 30, 1861`

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

CREATE TABLE "table1_2417330_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the successor for election was successfully contested july 30, 1861`:
```sql
                SELECT "successor" FROM "table1_2417330_4" WHERE "reason_for_change"='Election was successfully contested July 30, 1861';
```
## Task
Generate a SQL query to answer the following question:
`Name the successor for vacant and december 3, 1862`

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

CREATE TABLE "table1_2417330_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the successor for vacant and december 3, 1862`:
```sql
                SELECT "successor" FROM "table1_2417330_4" WHERE "reason_for_change"='Vacant' AND "date_successor_seated"='December 3, 1862';
```
## Task
Generate a SQL query to answer the following question:
`What was the vacator for georgia 2nd?`

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

CREATE TABLE "table1_2417340_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the vacator for georgia 2nd?`:
```sql
                SELECT "vacator" FROM "table1_2417340_4" WHERE "district"='Georgia 2nd';
```
## Task
Generate a SQL query to answer the following question:
`What was the successor for vacant alabama 3rd?`

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

CREATE TABLE "table1_2417340_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the successor for vacant alabama 3rd?`:
```sql
                SELECT "successor" FROM "table1_2417340_4" WHERE "vacator"='Vacant' AND "district"='Alabama 3rd';
```
## Task
Generate a SQL query to answer the following question:
`Who was the successor for vacant louisiana 5th`

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

CREATE TABLE "table1_2417340_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the successor for vacant louisiana 5th`:
```sql
                SELECT "successor" FROM "table1_2417340_4" WHERE "vacator"='Vacant' AND "district"='Louisiana 5th';
```
## Task
Generate a SQL query to answer the following question:
`Who were the successors when the date the successors were installed was February 23, 1870?`

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

CREATE TABLE "table1_2417345_3" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the successors when the date the successors were installed was February 23, 1870?`:
```sql
                SELECT "successor" FROM "table1_2417345_3" WHERE "date_of_successors_formal_installation"='February 23, 1870';
```
## Task
Generate a SQL query to answer the following question:
`Who was the vacator when the successor was formally installed on February 1, 1871?`

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

CREATE TABLE "table1_2417345_3" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the vacator when the successor was formally installed on February 1, 1871?`:
```sql
                SELECT "vacator" FROM "table1_2417345_3" WHERE "date_of_successors_formal_installation"='February 1, 1871';
```
## Task
Generate a SQL query to answer the following question:
`Who was the successor that was formally installed on March 30, 1870?`

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

CREATE TABLE "table1_2417345_3" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the successor that was formally installed on March 30, 1870?`:
```sql
                SELECT "successor" FROM "table1_2417345_3" WHERE "date_of_successors_formal_installation"='March 30, 1870';
```
## Task
Generate a SQL query to answer the following question:
`When did Orville H. Browning (r) succeed?`

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

CREATE TABLE "table1_2417330_3" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Orville H. Browning (r) succeed?`:
```sql
                SELECT "date_of_successors_formal_installation" FROM "table1_2417330_3" WHERE "successor"='Orville H. Browning (R)';
```
## Task
Generate a SQL query to answer the following question:
`List all dates of succession in the state class Missouri (3).`

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

CREATE TABLE "table1_2417330_3" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all dates of succession in the state class Missouri (3).`:
```sql
                SELECT "date_of_successors_formal_installation" FROM "table1_2417330_3" WHERE "state_class"='Missouri (3)';
```
## Task
Generate a SQL query to answer the following question:
`List the number of vacators when successors were formally installed on June 22, 1868.`

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

CREATE TABLE "table1_2417340_3" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of vacators when successors were formally installed on June 22, 1868.`:
```sql
                SELECT COUNT("vacator") FROM "table1_2417340_3" WHERE "date_of_successors_formal_installation"='June 22, 1868';
```
## Task
Generate a SQL query to answer the following question:
`List all state classes when successors were formally installed on June 22, 1868.`

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

CREATE TABLE "table1_2417340_3" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all state classes when successors were formally installed on June 22, 1868.`:
```sql
                SELECT "state_class" FROM "table1_2417340_3" WHERE "date_of_successors_formal_installation"='June 22, 1868';
```
## Task
Generate a SQL query to answer the following question:
`What was the reason for change to the successor that was seated on December 13, 1880?`

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

CREATE TABLE "table1_2417395_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the reason for change to the successor that was seated on December 13, 1880?`:
```sql
                SELECT "reason_for_change" FROM "table1_2417395_4" WHERE "date_successor_seated"='December 13, 1880';
```
## Task
Generate a SQL query to answer the following question:
`When the person died May 22, 1895 is the reason for vacancy what is the district?`

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

CREATE TABLE "table1_2417445_4" (
  "district" text,
  "vacator" text,
  "reason_for_vacancy" text,
  "successor" text,
  "date_of_successors_taking_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the person died May 22, 1895 is the reason for vacancy what is the district?`:
```sql
                SELECT "district" FROM "table1_2417445_4" WHERE "reason_for_vacancy"='Died May 22, 1895';
```
## Task
Generate a SQL query to answer the following question:
`When frederick remann (r) is the vacator what is the reason for vacancy?`

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

CREATE TABLE "table1_2417445_4" (
  "district" text,
  "vacator" text,
  "reason_for_vacancy" text,
  "successor" text,
  "date_of_successors_taking_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `When frederick remann (r) is the vacator what is the reason for vacancy?`:
```sql
                SELECT "reason_for_vacancy" FROM "table1_2417445_4" WHERE "vacator"='Frederick Remann (R)';
```
## Task
Generate a SQL query to answer the following question:
`When rudolph kleberg (d) is the successor is the reason for vacancy?`

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

CREATE TABLE "table1_2417445_4" (
  "district" text,
  "vacator" text,
  "reason_for_vacancy" text,
  "successor" text,
  "date_of_successors_taking_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `When rudolph kleberg (d) is the successor is the reason for vacancy?`:
```sql
                SELECT "reason_for_vacancy" FROM "table1_2417445_4" WHERE "successor"='Rudolph Kleberg (D)';
```
## Task
Generate a SQL query to answer the following question:
`When massachusetts 6th is the district what is the reason for vacancy?`

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

CREATE TABLE "table1_2417445_4" (
  "district" text,
  "vacator" text,
  "reason_for_vacancy" text,
  "successor" text,
  "date_of_successors_taking_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `When massachusetts 6th is the district what is the reason for vacancy?`:
```sql
                SELECT "reason_for_vacancy" FROM "table1_2417445_4" WHERE "district"='Massachusetts 6th';
```
## Task
Generate a SQL query to answer the following question:
`When rudolph kleberg (d) is the successor what is the date of successors taking office?`

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

CREATE TABLE "table1_2417445_4" (
  "district" text,
  "vacator" text,
  "reason_for_vacancy" text,
  "successor" text,
  "date_of_successors_taking_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `When rudolph kleberg (d) is the successor what is the date of successors taking office?`:
```sql
                SELECT "date_of_successors_taking_office" FROM "table1_2417445_4" WHERE "successor"='Rudolph Kleberg (D)';
```
## Task
Generate a SQL query to answer the following question:
`What geographical region is the province distrito nacional located in?`

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

CREATE TABLE "delegates" (
  "province_community" text,
  "contestant" text,
  "age" real,
  "height" text,
  "hometown" text,
  "geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What geographical region is the province distrito nacional located in?`:
```sql
                SELECT "geographical_regions" FROM "delegates" WHERE "province_community"='Distrito Nacional';
```
## Task
Generate a SQL query to answer the following question:
`What geographical region is contestant  laura jiménez ynoa from?`

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

CREATE TABLE "delegates" (
  "province_community" text,
  "contestant" text,
  "age" real,
  "height" text,
  "hometown" text,
  "geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What geographical region is contestant  laura jiménez ynoa from?`:
```sql
                SELECT "geographical_regions" FROM "delegates" WHERE "contestant"='Laura Jiménez Ynoa';
```
## Task
Generate a SQL query to answer the following question:
`How many hometowns have a  height of m (ft 10 1⁄2 in)?`

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

CREATE TABLE "delegates" (
  "province_community" text,
  "contestant" text,
  "age" real,
  "height" text,
  "hometown" text,
  "geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many hometowns have a  height of m (ft 10 1⁄2 in)?`:
```sql
                SELECT COUNT("hometown") FROM "delegates" WHERE "height"='m (ft 10 1⁄2 in)';
```
## Task
Generate a SQL query to answer the following question:
`Which contestant is from the province of baoruco`

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

CREATE TABLE "delegates" (
  "province_community" text,
  "contestant" text,
  "age" real,
  "height" text,
  "hometown" text,
  "geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which contestant is from the province of baoruco`:
```sql
                SELECT "contestant" FROM "delegates" WHERE "province_community"='Baoruco';
```
## Task
Generate a SQL query to answer the following question:
`How old is the person with the height of m (ft 3⁄4 in)?`

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

CREATE TABLE "delegates" (
  "province_community" text,
  "contestant" text,
  "age" real,
  "height" text,
  "hometown" text,
  "geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How old is the person with the height of m (ft 3⁄4 in)?`:
```sql
                SELECT "age" FROM "delegates" WHERE "height"='m (ft 3⁄4 in)';
```
## Task
Generate a SQL query to answer the following question:
`What was the number of viewers in millions for the broadcast from 2010? `

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

CREATE TABLE "episodes" (
  "episode" real,
  "broadcast_date" real,
  "bbc_one_presenter_s" text,
  "starring" text,
  "radio_1_presenter" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of viewers in millions for the broadcast from 2010? `:
```sql
                SELECT "viewers_millions" FROM "episodes" WHERE "broadcast_date"=2010;
```
## Task
Generate a SQL query to answer the following question:
`Who starred in episode 3? `

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

CREATE TABLE "episodes" (
  "episode" real,
  "broadcast_date" real,
  "bbc_one_presenter_s" text,
  "starring" text,
  "radio_1_presenter" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who starred in episode 3? `:
```sql
                SELECT "starring" FROM "episodes" WHERE "episode"=3;
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were broadcast in 2010?`

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

CREATE TABLE "episodes" (
  "episode" real,
  "broadcast_date" real,
  "bbc_one_presenter_s" text,
  "starring" text,
  "radio_1_presenter" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were broadcast in 2010?`:
```sql
                SELECT COUNT("episode") FROM "episodes" WHERE "broadcast_date"=2010;
```
## Task
Generate a SQL query to answer the following question:
`Who was the radio 1 presenter for the broadcast that had 9.73 million viewers? `

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

CREATE TABLE "episodes" (
  "episode" real,
  "broadcast_date" real,
  "bbc_one_presenter_s" text,
  "starring" text,
  "radio_1_presenter" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the radio 1 presenter for the broadcast that had 9.73 million viewers? `:
```sql
                SELECT "radio_1_presenter" FROM "episodes" WHERE "viewers_millions"='9.73';
```
## Task
Generate a SQL query to answer the following question:
`Name the powertrain for kmd and c40lf`

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

CREATE TABLE "current_bus_fleet_roster" (
  "order_year" real,
  "fleet_series_qty" text,
  "manufacturer" text,
  "model" text,
  "powertrain_engine_transmission" text,
  "fuel_or_propulsion" text,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the powertrain for kmd and c40lf`:
```sql
                SELECT "powertrain_engine_transmission" FROM "current_bus_fleet_roster" WHERE "division"='KMD' AND "model"='C40LF';
```
## Task
Generate a SQL query to answer the following question:
`Name the division for  detroit diesel series 50egr allison wb-400r`

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

CREATE TABLE "current_bus_fleet_roster" (
  "order_year" real,
  "fleet_series_qty" text,
  "manufacturer" text,
  "model" text,
  "powertrain_engine_transmission" text,
  "fuel_or_propulsion" text,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the division for  detroit diesel series 50egr allison wb-400r`:
```sql
                SELECT "division" FROM "current_bus_fleet_roster" WHERE "powertrain_engine_transmission"='Detroit Diesel Series 50EGR Allison WB-400R';
```
## Task
Generate a SQL query to answer the following question:
`Name the manufacturer for 2011`

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

CREATE TABLE "current_bus_fleet_roster" (
  "order_year" real,
  "fleet_series_qty" text,
  "manufacturer" text,
  "model" text,
  "powertrain_engine_transmission" text,
  "fuel_or_propulsion" text,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the manufacturer for 2011`:
```sql
                SELECT "manufacturer" FROM "current_bus_fleet_roster" WHERE "order_year"=2011;
```
## Task
Generate a SQL query to answer the following question:
`List the number of locations for the team known as the billikens.`

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

CREATE TABLE "members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real,
  "left" real
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of locations for the team known as the billikens.`:
```sql
                SELECT COUNT("location") FROM "members" WHERE "nickname"='Billikens';
```
## Task
Generate a SQL query to answer the following question:
`How many people are enrolled at the university in milwaukee, wisconsin`

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

CREATE TABLE "members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real,
  "left" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people are enrolled at the university in milwaukee, wisconsin`:
```sql
                SELECT MIN("enrollment") FROM "members" WHERE "location"='Milwaukee, Wisconsin';
```
## Task
Generate a SQL query to answer the following question:
`In what year did the teams leave the conference?`

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

CREATE TABLE "members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real,
  "left" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what year did the teams leave the conference?`:
```sql
                SELECT MAX("left") FROM "members";
```
## Task
Generate a SQL query to answer the following question:
`What university team is referred to as the tigers?`

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

CREATE TABLE "members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real,
  "left" real
);
### SQL
Given the database schema, here is the SQL query that answers `What university team is referred to as the tigers?`:
```sql
                SELECT "institution" FROM "members" WHERE "nickname"='Tigers';
```
## Task
Generate a SQL query to answer the following question:
`When 43.048° n is the latitude what is the magnitude?`

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

CREATE TABLE "list_of_foreshocks_and_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 `When 43.048° n is the latitude what is the magnitude?`:
```sql
                SELECT "magnitude" FROM "list_of_foreshocks_and_aftershocks" WHERE "latitude"='43.048° N';
```
## Task
Generate a SQL query to answer the following question:
`When 9:47:38 is the time (utc) how many measurements of latitude are there?`

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

CREATE TABLE "list_of_foreshocks_and_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 `When 9:47:38 is the time (utc) how many measurements of latitude are there?`:
```sql
                SELECT COUNT("latitude") FROM "list_of_foreshocks_and_aftershocks" WHERE "time_utc"='9:47:38';
```
## Task
Generate a SQL query to answer the following question:
`When 42.903° n is the latitude how many measurements of longitude are there?`

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

CREATE TABLE "list_of_foreshocks_and_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 `When 42.903° n is the latitude how many measurements of longitude are there?`:
```sql
                SELECT COUNT("longitude") FROM "list_of_foreshocks_and_aftershocks" WHERE "latitude"='42.903° N';
```
## Task
Generate a SQL query to answer the following question:
`When 11:40:26 is the time (utc) what is the depth?`

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

CREATE TABLE "list_of_foreshocks_and_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 `When 11:40:26 is the time (utc) what is the depth?`:
```sql
                SELECT "depth" FROM "list_of_foreshocks_and_aftershocks" WHERE "time_utc"='11:40:26';
```
## Task
Generate a SQL query to answer the following question:
`Who is every main presenter for the year 2011?`

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

CREATE TABLE "list_of_reality_television_show_franchis" (
  "region_country" text,
  "local_name" text,
  "main_presenter" text,
  "network" text,
  "year_premiered" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every main presenter for the year 2011?`:
```sql
                SELECT "main_presenter" FROM "list_of_reality_television_show_franchis" WHERE "year_premiered"=2011;
```
## Task
Generate a SQL query to answer the following question:
`Who is every main presenter for the Estonia region/country?`

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

CREATE TABLE "list_of_reality_television_show_franchis" (
  "region_country" text,
  "local_name" text,
  "main_presenter" text,
  "network" text,
  "year_premiered" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every main presenter for the Estonia region/country?`:
```sql
                SELECT "main_presenter" FROM "list_of_reality_television_show_franchis" WHERE "region_country"='Estonia';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest year premiered for the TV2 network when main present is øyvind mund?`

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

CREATE TABLE "list_of_reality_television_show_franchis" (
  "region_country" text,
  "local_name" text,
  "main_presenter" text,
  "network" text,
  "year_premiered" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest year premiered for the TV2 network when main present is øyvind mund?`:
```sql
                SELECT MAX("year_premiered") FROM "list_of_reality_television_show_franchis" WHERE "network"='TV2' AND "main_presenter"='Øyvind Mund';
```
## Task
Generate a SQL query to answer the following question:
`How many years premiered have Sa Beining as main presenter?`

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

CREATE TABLE "list_of_reality_television_show_franchis" (
  "region_country" text,
  "local_name" text,
  "main_presenter" text,
  "network" text,
  "year_premiered" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many years premiered have Sa Beining as main presenter?`:
```sql
                SELECT COUNT("year_premiered") FROM "list_of_reality_television_show_franchis" WHERE "main_presenter"='Sa Beining';
```
## Task
Generate a SQL query to answer the following question:
`What is every year premiered when Behzat Uighur is main presenter?`

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

CREATE TABLE "list_of_reality_television_show_franchis" (
  "region_country" text,
  "local_name" text,
  "main_presenter" text,
  "network" text,
  "year_premiered" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every year premiered when Behzat Uighur is main presenter?`:
```sql
                SELECT "year_premiered" FROM "list_of_reality_television_show_franchis" WHERE "main_presenter"='Behzat Uighur';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest year premiered when Benjamin Castaldi is main presenter?`

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

CREATE TABLE "list_of_reality_television_show_franchis" (
  "region_country" text,
  "local_name" text,
  "main_presenter" text,
  "network" text,
  "year_premiered" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest year premiered when Benjamin Castaldi is main presenter?`:
```sql
                SELECT MAX("year_premiered") FROM "list_of_reality_television_show_franchis" WHERE "main_presenter"='Benjamin Castaldi';
```
## Task
Generate a SQL query to answer the following question:
`Name the episode number for tasers and mind erasers`

### 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_airdate" text,
  "time_of_airing" text,
  "total_viewers_on_hallmark" real,
  "total_viewers_on_hallmark_1" real,
  "total_viewers" real,
  "rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the episode number for tasers and mind erasers`:
```sql
                SELECT "episode_number_production_number" FROM "united_kingdom" WHERE "title"='Tasers and Mind Erasers';
```
## Task
Generate a SQL query to answer the following question:
`Name the original air date for 7 1-07`

### 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_airdate" text,
  "time_of_airing" text,
  "total_viewers_on_hallmark" real,
  "total_viewers_on_hallmark_1" real,
  "total_viewers" real,
  "rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the original air date for 7 1-07`:
```sql
                SELECT "original_airdate" FROM "united_kingdom" WHERE "episode_number_production_number"='7 1-07';
```
## Task
Generate a SQL query to answer the following question:
`Name the total viewers on hallmark for pilot`

### 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_airdate" text,
  "time_of_airing" text,
  "total_viewers_on_hallmark" real,
  "total_viewers_on_hallmark_1" real,
  "total_viewers" real,
  "rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total viewers on hallmark for pilot`:
```sql
                SELECT "total_viewers_on_hallmark_1" FROM "united_kingdom" WHERE "title"='Pilot';
```
## Task
Generate a SQL query to answer the following question:
`Name the rank on channel mooning and crooning`

### 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_airdate" text,
  "time_of_airing" text,
  "total_viewers_on_hallmark" real,
  "total_viewers_on_hallmark_1" real,
  "total_viewers" real,
  "rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rank on channel mooning and crooning`:
```sql
                SELECT "rank_on_channel" FROM "united_kingdom" WHERE "title"='Mooning and Crooning';
```
## Task
Generate a SQL query to answer the following question:
`Name the rank on channel for pilot`

### 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_airdate" text,
  "time_of_airing" text,
  "total_viewers_on_hallmark" real,
  "total_viewers_on_hallmark_1" real,
  "total_viewers" real,
  "rank_on_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rank on channel for pilot`:
```sql
                SELECT "rank_on_channel" FROM "united_kingdom" WHERE "title"='Pilot';
```
## Task
Generate a SQL query to answer the following question:
`What is the manner of departure for the team racing santander?`

### 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,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the manner of departure for the team racing santander?`:
```sql
                SELECT "manner_of_departure" FROM "managerial_changes" WHERE "team"='Racing Santander';
```
## Task
Generate a SQL query to answer the following question:
`Who replaced on the date of appointment 2 november 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,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who replaced on the date of appointment 2 november 2010?`:
```sql
                SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_appointment"='2 November 2010';
```
## Task
Generate a SQL query to answer the following question:
`What is the team for the position in table 19th?`

### 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,
  "replaced_by" 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 for the position in table 19th?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "position_in_table"='19th';
```
## Task
Generate a SQL query to answer the following question:
`What is the team that the replaced by is miroslav đukić?`

### 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,
  "replaced_by" 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 that the replaced by is miroslav đukić?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='Miroslav Đukić';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the date of vacancy 14 february 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,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the date of vacancy 14 february 2011?`:
```sql
                SELECT COUNT("position_in_table") FROM "managerial_changes" WHERE "date_of_vacancy"='14 February 2011';
```
## Task
Generate a SQL query to answer the following question:
`what is the date of appointment for the team osasuna?`

### 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,
  "replaced_by" 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 for the team osasuna?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='Osasuna';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest amount of L in any season? `

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

CREATE TABLE "wilderness_years_1888_1893" (
  "season" real,
  "pl" real,
  "w" real,
  "l" real,
  "d" real,
  "captain" text,
  "most_runs" text,
  "most_wkts" text,
  "wkt_keeper" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest amount of L in any season? `:
```sql
                SELECT MIN("l") FROM "wilderness_years_1888_1893";
```
## Task
Generate a SQL query to answer the following question:
`What was the L in the season where Levi Wright had the most runs? `

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

CREATE TABLE "wilderness_years_1888_1893" (
  "season" real,
  "pl" real,
  "w" real,
  "l" real,
  "d" real,
  "captain" text,
  "most_runs" text,
  "most_wkts" text,
  "wkt_keeper" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the L in the season where Levi Wright had the most runs? `:
```sql
                SELECT "l" FROM "wilderness_years_1888_1893" WHERE "most_runs"='Levi Wright';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of votes for 3rd voted out day 9`

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

CREATE TABLE "table1_24233848_2" (
  "episode" real,
  "airdate" text,
  "reward" text,
  "immunity" text,
  "eliminated" text,
  "vote" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of votes for 3rd voted out day 9`:
```sql
                SELECT COUNT("vote") FROM "table1_24233848_2" WHERE "finish"='3rd Voted Out Day 9';
```
## Task
Generate a SQL query to answer the following question:
`Name the eliminated 7th voted out day 21`

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

CREATE TABLE "table1_24233848_2" (
  "episode" real,
  "airdate" text,
  "reward" text,
  "immunity" text,
  "eliminated" text,
  "vote" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the eliminated 7th voted out day 21`:
```sql
                SELECT "eliminated" FROM "table1_24233848_2" WHERE "finish"='7th Voted Out Day 21';
```
## Task
Generate a SQL query to answer the following question:
`Name the vote for thiago`

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

CREATE TABLE "table1_24233848_2" (
  "episode" real,
  "airdate" text,
  "reward" text,
  "immunity" text,
  "eliminated" text,
  "vote" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the vote for thiago`:
```sql
                SELECT "vote" FROM "table1_24233848_2" WHERE "eliminated"='Thiago';
```
## Task
Generate a SQL query to answer the following question:
`Name the vote for 9th voted out day 22`

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

CREATE TABLE "table1_24233848_2" (
  "episode" real,
  "airdate" text,
  "reward" text,
  "immunity" text,
  "eliminated" text,
  "vote" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the vote for 9th voted out day 22`:
```sql
                SELECT "vote" FROM "table1_24233848_2" WHERE "finish"='9th Voted Out Day 22';
```
## Task
Generate a SQL query to answer the following question:
`Name the reward eliminated hilca`

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

CREATE TABLE "table1_24233848_2" (
  "episode" real,
  "airdate" text,
  "reward" text,
  "immunity" text,
  "eliminated" text,
  "vote" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the reward eliminated hilca`:
```sql
                SELECT "reward" FROM "table1_24233848_2" WHERE "eliminated"='Hilca';
```
## Task
Generate a SQL query to answer the following question:
`When the country is vest, what were the exports?`

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

CREATE TABLE "development_regions" (
  "county" text,
  "exports_us_mil" text,
  "percent_of_total_exports" text,
  "imports_us_mil" text,
  "percent_of_total_imports" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the country is vest, what were the exports?`:
```sql
                SELECT "exports_us_mil" FROM "development_regions" WHERE "county"='Vest';
```
## Task
Generate a SQL query to answer the following question:
`What was the major version when the webkit version was 528.17?`

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

CREATE TABLE "windows" (
  "major_version" text,
  "minor_version" text,
  "web_kit_version" text,
  "operating_system" text,
  "release_date" text,
  "features" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the major version when the webkit version was 528.17?`:
```sql
                SELECT "major_version" FROM "windows" WHERE "web_kit_version"='528.17';
```
## Task
Generate a SQL query to answer the following question:
`List major versions released on May 12, 2009, that had a minor version of 3.2.3.`

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

CREATE TABLE "windows" (
  "major_version" text,
  "minor_version" text,
  "web_kit_version" text,
  "operating_system" text,
  "release_date" text,
  "features" text
);
### SQL
Given the database schema, here is the SQL query that answers `List major versions released on May 12, 2009, that had a minor version of 3.2.3.`:
```sql
                SELECT "major_version" FROM "windows" WHERE "release_date"='May 12, 2009' AND "minor_version"='3.2.3';
```
## Task
Generate a SQL query to answer the following question:
`What was the minor version released on April 16, 2008?`

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

CREATE TABLE "windows" (
  "major_version" text,
  "minor_version" text,
  "web_kit_version" text,
  "operating_system" text,
  "release_date" text,
  "features" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the minor version released on April 16, 2008?`:
```sql
                SELECT "minor_version" FROM "windows" WHERE "release_date"='April 16, 2008';
```
## Task
Generate a SQL query to answer the following question:
`List all webkit versions when the major version was Safari 3, and the minor version was 3.1.2.`

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

CREATE TABLE "windows" (
  "major_version" text,
  "minor_version" text,
  "web_kit_version" text,
  "operating_system" text,
  "release_date" text,
  "features" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all webkit versions when the major version was Safari 3, and the minor version was 3.1.2.`:
```sql
                SELECT "web_kit_version" FROM "windows" WHERE "major_version"='Safari 3' AND "minor_version"='3.1.2';
```
## Task
Generate a SQL query to answer the following question:
`List all OS's with a webkit version of 525.29.1.`

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

CREATE TABLE "windows" (
  "major_version" text,
  "minor_version" text,
  "web_kit_version" text,
  "operating_system" text,
  "release_date" text,
  "features" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all OS's with a webkit version of 525.29.1.`:
```sql
                SELECT "operating_system" FROM "windows" WHERE "web_kit_version"='525.29.1';
```
## Task
Generate a SQL query to answer the following question:
`What is the webkit version when the minor version was 3.1.2.?`

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

CREATE TABLE "windows" (
  "major_version" text,
  "minor_version" text,
  "web_kit_version" text,
  "operating_system" text,
  "release_date" text,
  "features" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the webkit version when the minor version was 3.1.2.?`:
```sql
                SELECT "web_kit_version" FROM "windows" WHERE "minor_version"='3.1.2';
```
## Task
Generate a SQL query to answer the following question:
`What was the main legion base for the Romans when the notes were "primigenia goddess of fate. xx in batavi revolt"?`

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

CREATE TABLE "table1_242785_3" (
  "legion_no_and_title" text,
  "main_legion_base" text,
  "emblem" text,
  "date_founded_founder" text,
  "date_disband" text,
  "castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the main legion base for the Romans when the notes were "primigenia goddess of fate. xx in batavi revolt"?`:
```sql
                SELECT "main_legion_base" FROM "table1_242785_3" WHERE "notes"='Primigenia goddess of Fate. XX in Batavi revolt';
```
## Task
Generate a SQL query to answer the following question:
`What are the notes during 57 bc caesar?`

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

CREATE TABLE "table1_242785_3" (
  "legion_no_and_title" text,
  "main_legion_base" text,
  "emblem" text,
  "date_founded_founder" text,
  "date_disband" text,
  "castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes during 57 bc caesar?`:
```sql
                SELECT "notes" FROM "table1_242785_3" WHERE "date_founded_founder"='57 BC Caesar';
```