cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What are the notes when castra legionaria (legion bases)  is 39-c.300 moguntiacum * (gs)?`

### 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 when castra legionaria (legion bases)  is 39-c.300 moguntiacum * (gs)?`:
```sql
                SELECT "notes" FROM "table1_242785_3" WHERE "castra_legionaria_legion_bases_main_base_start_date_31_bc_if_unspecified"='39-c.300 Moguntiacum * (GS)';
```
## Task
Generate a SQL query to answer the following question:
`What is the date founded/founder when the emblem was Hercules?`

### 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 is the date founded/founder when the emblem was Hercules?`:
```sql
                SELECT "date_founded_founder" FROM "table1_242785_3" WHERE "emblem"='Hercules';
```
## Task
Generate a SQL query to answer the following question:
`What is the main legion base that disbanded 70 xx?`

### 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 is the main legion base that disbanded 70 xx?`:
```sql
                SELECT "main_legion_base" FROM "table1_242785_3" WHERE "date_disband"='70 XX';
```
## Task
Generate a SQL query to answer the following question:
`When did svishtov , bulgaria disband?`

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

CREATE TABLE "table1_242785_1" (
  "legion_no_and_title" text,
  "main_legionary_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 `When did svishtov , bulgaria disband?`:
```sql
                SELECT "date_disband" FROM "table1_242785_1" WHERE "main_legionary_base"='Svishtov , Bulgaria';
```
## Task
Generate a SQL query to answer the following question:
`when notes are prima italica:raised for aborted caucasus war, when was that founded?`

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

CREATE TABLE "table1_242785_1" (
  "legion_no_and_title" text,
  "main_legionary_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 `when notes are prima italica:raised for aborted caucasus war, when was that founded?`:
```sql
                SELECT "date_founded_founder" FROM "table1_242785_1" WHERE "notes"='prima Italica:raised for aborted Caucasus war';
```
## Task
Generate a SQL query to answer the following question:
`What are the notes for svishtov , bulgaria?`

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

CREATE TABLE "table1_242785_1" (
  "legion_no_and_title" text,
  "main_legionary_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 for svishtov , bulgaria?`:
```sql
                SELECT "notes" FROM "table1_242785_1" WHERE "main_legionary_base"='Svishtov , Bulgaria';
```
## Task
Generate a SQL query to answer the following question:
`Name the team ranked 4`

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

CREATE TABLE "pitchers" (
  "pitcher" text,
  "strikeouts" real,
  "season" real,
  "team" text,
  "league" text,
  "overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team ranked 4`:
```sql
                SELECT COUNT("team") FROM "pitchers" WHERE "overall_rank"=4;
```
## Task
Generate a SQL query to answer the following question:
`Name the league for strikeouts being 451`

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

CREATE TABLE "pitchers" (
  "pitcher" text,
  "strikeouts" real,
  "season" real,
  "team" text,
  "league" text,
  "overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the league for strikeouts being 451`:
```sql
                SELECT "league" FROM "pitchers" WHERE "strikeouts"=451;
```
## Task
Generate a SQL query to answer the following question:
`Name the most overall rank for nl/ua league`

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

CREATE TABLE "pitchers" (
  "pitcher" text,
  "strikeouts" real,
  "season" real,
  "team" text,
  "league" text,
  "overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most overall rank for nl/ua league`:
```sql
                SELECT MAX("overall_rank") FROM "pitchers" WHERE "league"='NL/UA';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of pitcher for 9 overall rank`

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

CREATE TABLE "pitchers" (
  "pitcher" text,
  "strikeouts" real,
  "season" real,
  "team" text,
  "league" text,
  "overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of pitcher for 9 overall rank`:
```sql
                SELECT COUNT("pitcher") FROM "pitchers" WHERE "overall_rank"=9;
```
## Task
Generate a SQL query to answer the following question:
`Name the most season for old hoss radbourn`

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

CREATE TABLE "pitchers" (
  "pitcher" text,
  "strikeouts" real,
  "season" real,
  "team" text,
  "league" text,
  "overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most season for old hoss radbourn`:
```sql
                SELECT MAX("season") FROM "pitchers" WHERE "pitcher"='Old Hoss Radbourn';
```
## Task
Generate a SQL query to answer the following question:
`What week did they play the amsterdam admirals?`

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

CREATE TABLE "table1_24278858_2" (
  "week" real,
  "date" text,
  "kickoff" text,
  "opponent" text,
  "final_score" text,
  "team_record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What week did they play the amsterdam admirals?`:
```sql
                SELECT MAX("week") FROM "table1_24278858_2" WHERE "opponent"='Amsterdam Admirals';
```
## Task
Generate a SQL query to answer the following question:
`What date did the team play on week 8?`

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

CREATE TABLE "table1_24278858_2" (
  "week" real,
  "date" text,
  "kickoff" text,
  "opponent" text,
  "final_score" text,
  "team_record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the team play on week 8?`:
```sql
                SELECT "date" FROM "table1_24278858_2" WHERE "week"=8;
```
## Task
Generate a SQL query to answer the following question:
`What country has the most height in the northwestern peak of rysy?`

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

CREATE TABLE "table1_24285393_1" (
  "country_or_region" text,
  "highest_point" text,
  "maximum_elevation" text,
  "lowest_point" text,
  "minimum_elevation" text,
  "elevation_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has the most height in the northwestern peak of rysy?`:
```sql
                SELECT "country_or_region" FROM "table1_24285393_1" WHERE "highest_point"='Northwestern peak of Rysy';
```
## Task
Generate a SQL query to answer the following question:
`What are the highest point in latvia`

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

CREATE TABLE "table1_24285393_1" (
  "country_or_region" text,
  "highest_point" text,
  "maximum_elevation" text,
  "lowest_point" text,
  "minimum_elevation" text,
  "elevation_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the highest point in latvia`:
```sql
                SELECT "highest_point" FROM "table1_24285393_1" WHERE "country_or_region"='Latvia';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum elevation in netherlands?`

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

CREATE TABLE "table1_24285393_1" (
  "country_or_region" text,
  "highest_point" text,
  "maximum_elevation" text,
  "lowest_point" text,
  "minimum_elevation" text,
  "elevation_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum elevation in netherlands?`:
```sql
                SELECT "maximum_elevation" FROM "table1_24285393_1" WHERE "country_or_region"='Netherlands';
```
## Task
Generate a SQL query to answer the following question:
`In what country is mont sokbaro a highest point`

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

CREATE TABLE "table1_24285393_1" (
  "country_or_region" text,
  "highest_point" text,
  "maximum_elevation" text,
  "lowest_point" text,
  "minimum_elevation" text,
  "elevation_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what country is mont sokbaro a highest point`:
```sql
                SELECT "country_or_region" FROM "table1_24285393_1" WHERE "highest_point"='Mont Sokbaro';
```
## Task
Generate a SQL query to answer the following question:
`how many times was third place held by drnovice?`

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

CREATE TABLE "year_by_year" (
  "season" text,
  "champions" text,
  "runner_up" text,
  "third_place" text,
  "top_goalscorer" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times was third place held by drnovice?`:
```sql
                SELECT COUNT("club") FROM "year_by_year" WHERE "third_place"='Drnovice';
```
## Task
Generate a SQL query to answer the following question:
`Who is the top goalscorer for the season 2010-11?`

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

CREATE TABLE "year_by_year" (
  "season" text,
  "champions" text,
  "runner_up" text,
  "third_place" text,
  "top_goalscorer" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the top goalscorer for the season 2010-11?`:
```sql
                SELECT "top_goalscorer" FROM "year_by_year" WHERE "season"='2010-11';
```
## Task
Generate a SQL query to answer the following question:
`Who had third place when the champions is baník ostrava (1)?`

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

CREATE TABLE "year_by_year" (
  "season" text,
  "champions" text,
  "runner_up" text,
  "third_place" text,
  "top_goalscorer" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had third place when the champions is baník ostrava (1)?`:
```sql
                SELECT "third_place" FROM "year_by_year" WHERE "champions"='Baník Ostrava (1)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the top goalscorer for season 2001-02?`

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

CREATE TABLE "year_by_year" (
  "season" text,
  "champions" text,
  "runner_up" text,
  "third_place" text,
  "top_goalscorer" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the top goalscorer for season 2001-02?`:
```sql
                SELECT "top_goalscorer" FROM "year_by_year" WHERE "season"='2001-02';
```
## Task
Generate a SQL query to answer the following question:
`Who is the runner-up for the season 2008-09?`

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

CREATE TABLE "year_by_year" (
  "season" text,
  "champions" text,
  "runner_up" text,
  "third_place" text,
  "top_goalscorer" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the runner-up for the season 2008-09?`:
```sql
                SELECT "runner_up" FROM "year_by_year" WHERE "season"='2008-09';
```
## Task
Generate a SQL query to answer the following question:
`Who is the top goalscorer for season 1998-99?`

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

CREATE TABLE "year_by_year" (
  "season" text,
  "champions" text,
  "runner_up" text,
  "third_place" text,
  "top_goalscorer" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the top goalscorer for season 1998-99?`:
```sql
                SELECT "top_goalscorer" FROM "year_by_year" WHERE "season"='1998-99';
```
## Task
Generate a SQL query to answer the following question:
`In what tournament was the difference only 1 stroke and 54 holes with a 2 shot deficit?`

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

CREATE TABLE "wins_18" (
  "year" text,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what tournament was the difference only 1 stroke and 54 holes with a 2 shot deficit?`:
```sql
                SELECT "championship" FROM "wins_18" WHERE "margin"='1 stroke' AND "54_holes"='2 shot deficit';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number directed by for " france : cap gris-nez to mont-saint-michel "`

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

CREATE TABLE "table1_2430014_6" (
  "series_no" real,
  "episode_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "uk_ratings_bbc2_rank" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number directed by for " france : cap gris-nez to mont-saint-michel "`:
```sql
                SELECT COUNT("directed_by") FROM "table1_2430014_6" WHERE "title"='\" France : Cap Gris-Nez to Mont-Saint-Michel \"';
```
## Task
Generate a SQL query to answer the following question:
`Name the written by for john trefor`

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

CREATE TABLE "table1_2430014_6" (
  "series_no" real,
  "episode_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "uk_ratings_bbc2_rank" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the written by for john trefor`:
```sql
                SELECT "written_by" FROM "table1_2430014_6" WHERE "directed_by"='John Trefor';
```
## Task
Generate a SQL query to answer the following question:
`How many directors worked on the episode with 2.27m (5) is the ratings?`

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

CREATE TABLE "table1_2430014_8" (
  "series_no" real,
  "episode_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "uk_ratings_bbc2_rank" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many directors worked on the episode with 2.27m (5) is the ratings?`:
```sql
                SELECT COUNT("directed_by") FROM "table1_2430014_8" WHERE "uk_ratings_bbc2_rank"='2.27m (5)';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of episode 2?`

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

CREATE TABLE "table1_2430014_8" (
  "series_no" real,
  "episode_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "uk_ratings_bbc2_rank" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of episode 2?`:
```sql
                SELECT "title" FROM "table1_2430014_8" WHERE "episode_no"=2;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode what had the rating 2.27m (5)?`

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

CREATE TABLE "table1_2430014_8" (
  "series_no" real,
  "episode_no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "uk_ratings_bbc2_rank" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode what had the rating 2.27m (5)?`:
```sql
                SELECT "written_by" FROM "table1_2430014_8" WHERE "uk_ratings_bbc2_rank"='2.27m (5)';
```
## Task
Generate a SQL query to answer the following question:
`Name the name for 14.5 2013 rev`

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

CREATE TABLE "forbes_global_2000" (
  "april_2013_cum_rank" real,
  "name" text,
  "rank_2012" real,
  "rank_2013" real,
  "base" text,
  "2013_rev_bil_usd" text,
  "2013_profit_mil_usd" text,
  "assets_2013_bil" text,
  "market_cap_march_15_mil" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for 14.5 2013 rev`:
```sql
                SELECT "name" FROM "forbes_global_2000" WHERE "2013_rev_bil_usd"='14.5';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2013 profit for assets being 11.2`

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

CREATE TABLE "forbes_global_2000" (
  "april_2013_cum_rank" real,
  "name" text,
  "rank_2012" real,
  "rank_2013" real,
  "base" text,
  "2013_rev_bil_usd" text,
  "2013_profit_mil_usd" text,
  "assets_2013_bil" text,
  "market_cap_march_15_mil" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2013 profit for assets being 11.2`:
```sql
                SELECT "2013_profit_mil_usd" FROM "forbes_global_2000" WHERE "assets_2013_bil"='11.2';
```
## Task
Generate a SQL query to answer the following question:
`Name the assets when the rank is 1435`

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

CREATE TABLE "forbes_global_2000" (
  "april_2013_cum_rank" real,
  "name" text,
  "rank_2012" real,
  "rank_2013" real,
  "base" text,
  "2013_rev_bil_usd" text,
  "2013_profit_mil_usd" text,
  "assets_2013_bil" text,
  "market_cap_march_15_mil" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the assets when the rank is 1435`:
```sql
                SELECT "assets_2013_bil" FROM "forbes_global_2000" WHERE "rank_2013"=1435;
```
## Task
Generate a SQL query to answer the following question:
`Name the number of rank for april 2013 for 2012 ran kbeing 225`

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

CREATE TABLE "forbes_global_2000" (
  "april_2013_cum_rank" real,
  "name" text,
  "rank_2012" real,
  "rank_2013" real,
  "base" text,
  "2013_rev_bil_usd" text,
  "2013_profit_mil_usd" text,
  "assets_2013_bil" text,
  "market_cap_march_15_mil" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of rank for april 2013 for 2012 ran kbeing 225`:
```sql
                SELECT COUNT("april_2013_cum_rank") FROM "forbes_global_2000" WHERE "rank_2012"=225;
```
## Task
Generate a SQL query to answer the following question:
`Name the market cap where 2013 rev is 2.8`

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

CREATE TABLE "forbes_global_2000" (
  "april_2013_cum_rank" real,
  "name" text,
  "rank_2012" real,
  "rank_2013" real,
  "base" text,
  "2013_rev_bil_usd" text,
  "2013_profit_mil_usd" text,
  "assets_2013_bil" text,
  "market_cap_march_15_mil" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the market cap where 2013 rev is 2.8`:
```sql
                SELECT "market_cap_march_15_mil" FROM "forbes_global_2000" WHERE "2013_rev_bil_usd"='2.8';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of assets for australia`

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

CREATE TABLE "forbes_global_2000" (
  "april_2013_cum_rank" real,
  "name" text,
  "rank_2012" real,
  "rank_2013" real,
  "base" text,
  "2013_rev_bil_usd" text,
  "2013_profit_mil_usd" text,
  "assets_2013_bil" text,
  "market_cap_march_15_mil" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of assets for australia`:
```sql
                SELECT COUNT("assets_2013_bil") FROM "forbes_global_2000" WHERE "base"='Australia';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player who got 6 (4 in 34.49s) in the 6 atlas stones event?`

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

CREATE TABLE "group_5" (
  "position" text,
  "name" text,
  "nationality" text,
  "event_1_medley" text,
  "event_2_truck_pull" text,
  "event_3_dead_lift" text,
  "event_4_fingals_fingers" text,
  "event_5_keg_toss" text,
  "event_6_atlas_stones" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player who got 6 (4 in 34.49s) in the 6 atlas stones event?`:
```sql
                SELECT "position" FROM "group_5" WHERE "event_6_atlas_stones"='6 (4 in 34.49s)';
```
## Task
Generate a SQL query to answer the following question:
`Who are all the players from the united states?`

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

CREATE TABLE "group_5" (
  "position" text,
  "name" text,
  "nationality" text,
  "event_1_medley" text,
  "event_2_truck_pull" text,
  "event_3_dead_lift" text,
  "event_4_fingals_fingers" text,
  "event_5_keg_toss" text,
  "event_6_atlas_stones" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all the players from the united states?`:
```sql
                SELECT "name" FROM "group_5" WHERE "nationality"='United States';
```
## Task
Generate a SQL query to answer the following question:
`What is the score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event?`

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

CREATE TABLE "group_5" (
  "position" text,
  "name" text,
  "nationality" text,
  "event_1_medley" text,
  "event_2_truck_pull" text,
  "event_3_dead_lift" text,
  "event_4_fingals_fingers" text,
  "event_5_keg_toss" text,
  "event_6_atlas_stones" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event?`:
```sql
                SELECT COUNT("event_6_atlas_stones") FROM "group_5" WHERE "event_3_dead_lift"='2 (6 in 30.89s)';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player with a 5 (4 in 32.66s) in the 6 atlas stones event?`

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

CREATE TABLE "group_5" (
  "position" text,
  "name" text,
  "nationality" text,
  "event_1_medley" text,
  "event_2_truck_pull" text,
  "event_3_dead_lift" text,
  "event_4_fingals_fingers" text,
  "event_5_keg_toss" text,
  "event_6_atlas_stones" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player with a 5 (4 in 32.66s) in the 6 atlas stones event?`:
```sql
                SELECT "position" FROM "group_5" WHERE "event_6_atlas_stones"='5 (4 in 32.66s)';
```
## Task
Generate a SQL query to answer the following question:
`What is the score in the 2 truck pull of the player who got  1 (5 in 33.84s) in the 4 fingals fingers?`

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

CREATE TABLE "group_5" (
  "position" text,
  "name" text,
  "nationality" text,
  "event_1_medley" text,
  "event_2_truck_pull" text,
  "event_3_dead_lift" text,
  "event_4_fingals_fingers" text,
  "event_5_keg_toss" text,
  "event_6_atlas_stones" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score in the 2 truck pull of the player who got  1 (5 in 33.84s) in the 4 fingals fingers?`:
```sql
                SELECT "event_2_truck_pull" FROM "group_5" WHERE "event_4_fingals_fingers"='1 (5 in 33.84s)';
```
## Task
Generate a SQL query to answer the following question:
`When 0 is the top 10's what is the highest amount of cuts made?`

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

CREATE TABLE "lpga_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "3rd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" real,
  "scoring_average" text,
  "scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 0 is the top 10's what is the highest amount of cuts made?`:
```sql
                SELECT MAX("cuts_made") FROM "lpga_tour_career_summary" WHERE "top_10s"=0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall amount of times they've been in 3rd?`

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

CREATE TABLE "lpga_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "3rd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" real,
  "scoring_average" text,
  "scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall amount of times they've been in 3rd?`:
```sql
                SELECT MIN("3rd") FROM "lpga_tour_career_summary";
```
## Task
Generate a SQL query to answer the following question:
`When 2011 is the year what is the lowest money list rank?`

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

CREATE TABLE "lpga_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "3rd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" real,
  "scoring_average" text,
  "scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 2011 is the year what is the lowest money list rank?`:
```sql
                SELECT MIN("money_list_rank") FROM "lpga_tour_career_summary" WHERE "year"=2011;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall money list rank?`

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

CREATE TABLE "lpga_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "3rd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" real,
  "scoring_average" text,
  "scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall money list rank?`:
```sql
                SELECT MIN("money_list_rank") FROM "lpga_tour_career_summary";
```
## Task
Generate a SQL query to answer the following question:
`When t3 is the best finish what is the lowest amount of tournaments played?`

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

CREATE TABLE "lpga_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "3rd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" real,
  "scoring_average" text,
  "scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `When t3 is the best finish what is the lowest amount of tournaments played?`:
```sql
                SELECT MIN("tournaments_played") FROM "lpga_tour_career_summary" WHERE "best_finish"='T3';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest amount of won legs in the payoffs when the prize money was £2,350?`

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

CREATE TABLE "prize_money_won" (
  "player" text,
  "group_legs_won" real,
  "play_off_legs_won" real,
  "winners_group_legs_won" real,
  "winners_play_off_legs_won" real,
  "final_position_money_won" text,
  "total_money_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest amount of won legs in the payoffs when the prize money was £2,350?`:
```sql
                SELECT MAX("winners_play_off_legs_won") FROM "prize_money_won" WHERE "total_money_won"='£2,350';
```
## Task
Generate a SQL query to answer the following question:
`How many group legs were won with player Mark Dudbridge?`

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

CREATE TABLE "prize_money_won" (
  "player" text,
  "group_legs_won" real,
  "play_off_legs_won" real,
  "winners_group_legs_won" real,
  "winners_play_off_legs_won" real,
  "final_position_money_won" text,
  "total_money_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many group legs were won with player Mark Dudbridge?`:
```sql
                SELECT "winners_group_legs_won" FROM "prize_money_won" WHERE "player"='Mark Dudbridge';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of group legs won when the prize money was £21,850?`

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

CREATE TABLE "prize_money_won" (
  "player" text,
  "group_legs_won" real,
  "play_off_legs_won" real,
  "winners_group_legs_won" real,
  "winners_play_off_legs_won" real,
  "final_position_money_won" text,
  "total_money_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest amount of group legs won when the prize money was £21,850?`:
```sql
                SELECT MAX("winners_group_legs_won") FROM "prize_money_won" WHERE "total_money_won"='£21,850';
```
## Task
Generate a SQL query to answer the following question:
`How many play-off legs were won when the prize money was £10,300?`

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

CREATE TABLE "prize_money_won" (
  "player" text,
  "group_legs_won" real,
  "play_off_legs_won" real,
  "winners_group_legs_won" real,
  "winners_play_off_legs_won" real,
  "final_position_money_won" text,
  "total_money_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many play-off legs were won when the prize money was £10,300?`:
```sql
                SELECT COUNT("winners_play_off_legs_won") FROM "prize_money_won" WHERE "total_money_won"='£10,300';
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of playoff legs won?`

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

CREATE TABLE "prize_money_won" (
  "player" text,
  "group_legs_won" real,
  "play_off_legs_won" real,
  "winners_group_legs_won" real,
  "winners_play_off_legs_won" real,
  "final_position_money_won" text,
  "total_money_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of playoff legs won?`:
```sql
                SELECT MIN("winners_play_off_legs_won") FROM "prize_money_won";
```
## Task
Generate a SQL query to answer the following question:
`Who directed episode 53 in the series?`

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

CREATE TABLE "table1_24319661_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed episode 53 in the series?`:
```sql
                SELECT "directed_by" FROM "table1_24319661_5" WHERE "no_in_series"=53;
```
## Task
Generate a SQL query to answer the following question:
`What as the production code for the episode directed by Robert Duncan McNeill?`

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

CREATE TABLE "table1_24319661_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What as the production code for the episode directed by Robert Duncan McNeill?`:
```sql
                SELECT "production_code" FROM "table1_24319661_5" WHERE "directed_by"='Robert Duncan McNeill';
```
## Task
Generate a SQL query to answer the following question:
`What episode number of the season had BCW410 as a production code?`

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

CREATE TABLE "table1_24319661_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number of the season had BCW410 as a production code?`:
```sql
                SELECT "no_in_season" FROM "table1_24319661_5" WHERE "production_code"='BCW410';
```
## Task
Generate a SQL query to answer the following question:
`What episode number in the series had 2.77 million U.S. viewers?`

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

CREATE TABLE "table1_24319661_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number in the series had 2.77 million U.S. viewers?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_24319661_5" WHERE "u_s_viewers_million"='2.77';
```
## Task
Generate a SQL query to answer the following question:
`Name the most times contested for montgomeryshire`

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

CREATE TABLE "welsh_boroughs" (
  "borough" text,
  "county" text,
  "franchise_type" text,
  "members" real,
  "voters_in_1800" real,
  "times_contested" real,
  "fate_in_1832" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most times contested for montgomeryshire`:
```sql
                SELECT MAX("times_contested") FROM "welsh_boroughs" WHERE "county"='Montgomeryshire';
```
## Task
Generate a SQL query to answer the following question:
`Name the fate in 1832 for pembrokeshire`

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

CREATE TABLE "welsh_boroughs" (
  "borough" text,
  "county" text,
  "franchise_type" text,
  "members" real,
  "voters_in_1800" real,
  "times_contested" real,
  "fate_in_1832" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fate in 1832 for pembrokeshire`:
```sql
                SELECT "fate_in_1832" FROM "welsh_boroughs" WHERE "county"='Pembrokeshire';
```
## Task
Generate a SQL query to answer the following question:
`what is the least number of podiums for a formula BMW Americas series? `

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least number of podiums for a formula BMW Americas series? `:
```sql
                SELECT MIN("podiums") FROM "career_summary" WHERE "series"='Formula BMW Americas';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of wins in the formula 3 euro series? `

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of wins in the formula 3 euro series? `:
```sql
                SELECT MAX("wins") FROM "career_summary" WHERE "series"='Formula 3 Euro Series';
```
## Task
Generate a SQL query to answer the following question:
`How many positions were given when 30 points were won? `

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions were given when 30 points were won? `:
```sql
                SELECT COUNT("position") FROM "career_summary" WHERE "points"='30';
```
## Task
Generate a SQL query to answer the following question:
`How many pole positions were there for the 2011 season? `

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many pole positions were there for the 2011 season? `:
```sql
                SELECT MAX("poles") FROM "career_summary" WHERE "season"=2011;
```
## Task
Generate a SQL query to answer the following question:
`List the tournament that kent state won?`

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

CREATE TABLE "table1_24348134_3" (
  "conference" text,
  "regular_season_winner" text,
  "conference_player_of_the_year" text,
  "conference_tournament" text,
  "tournament_venue_city" text,
  "tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the tournament that kent state won?`:
```sql
                SELECT "conference_tournament" FROM "table1_24348134_3" WHERE "tournament_winner"='Kent State';
```
## Task
Generate a SQL query to answer the following question:
`List the team that won the 2001 mwc men's basketball tournament`

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

CREATE TABLE "table1_24348134_3" (
  "conference" text,
  "regular_season_winner" text,
  "conference_player_of_the_year" text,
  "conference_tournament" text,
  "tournament_venue_city" text,
  "tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the team that won the 2001 mwc men's basketball tournament`:
```sql
                SELECT "tournament_winner" FROM "table1_24348134_3" WHERE "conference_tournament"='2001 MWC Men''s Basketball Tournament';
```
## Task
Generate a SQL query to answer the following question:
`What team won the regular season when georgia state won the tournament?`

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

CREATE TABLE "table1_24348134_3" (
  "conference" text,
  "regular_season_winner" text,
  "conference_player_of_the_year" text,
  "conference_tournament" text,
  "tournament_venue_city" text,
  "tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team won the regular season when georgia state won the tournament?`:
```sql
                SELECT "regular_season_winner" FROM "table1_24348134_3" WHERE "tournament_winner"='Georgia State';
```
## Task
Generate a SQL query to answer the following question:
`In what city did oklahoma win the tournament.`

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

CREATE TABLE "table1_24348134_3" (
  "conference" text,
  "regular_season_winner" text,
  "conference_player_of_the_year" text,
  "conference_tournament" text,
  "tournament_venue_city" text,
  "tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what city did oklahoma win the tournament.`:
```sql
                SELECT "tournament_venue_city" FROM "table1_24348134_3" WHERE "tournament_winner"='Oklahoma';
```
## Task
Generate a SQL query to answer the following question:
`List the players of the year for the tournament held in matadome ( northridge, california )?`

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

CREATE TABLE "table1_24348134_3" (
  "conference" text,
  "regular_season_winner" text,
  "conference_player_of_the_year" text,
  "conference_tournament" text,
  "tournament_venue_city" text,
  "tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the players of the year for the tournament held in matadome ( northridge, california )?`:
```sql
                SELECT "conference_player_of_the_year" FROM "table1_24348134_3" WHERE "tournament_venue_city"='Matadome ( Northridge, California )';
```
## Task
Generate a SQL query to answer the following question:
`List the number of tournament winners when iona , siena & niagara won in the regular season.`

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

CREATE TABLE "table1_24348134_3" (
  "conference" text,
  "regular_season_winner" text,
  "conference_player_of_the_year" text,
  "conference_tournament" text,
  "tournament_venue_city" text,
  "tournament_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of tournament winners when iona , siena & niagara won in the regular season.`:
```sql
                SELECT COUNT("tournament_winner") FROM "table1_24348134_3" WHERE "regular_season_winner"='Iona , Siena & Niagara';
```
## Task
Generate a SQL query to answer the following question:
`What is  the population of Mogilev?`

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

CREATE TABLE "table1_24346010_1" (
  "guberniya" text,
  "total_population" real,
  "belarusian" real,
  "russian" real,
  "polish" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is  the population of Mogilev?`:
```sql
                SELECT MIN("total_population") FROM "table1_24346010_1" WHERE "guberniya"='Mogilev';
```
## Task
Generate a SQL query to answer the following question:
`What are the polish population where guberniya is vitebsk?`

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

CREATE TABLE "table1_24346010_1" (
  "guberniya" text,
  "total_population" real,
  "belarusian" real,
  "russian" real,
  "polish" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the polish population where guberniya is vitebsk?`:
```sql
                SELECT "polish" FROM "table1_24346010_1" WHERE "guberniya"='Vitebsk';
```
## Task
Generate a SQL query to answer the following question:
`What is the population of polish where guberniya is grodno?`

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

CREATE TABLE "table1_24346010_1" (
  "guberniya" text,
  "total_population" real,
  "belarusian" real,
  "russian" real,
  "polish" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population of polish where guberniya is grodno?`:
```sql
                SELECT MIN("polish") FROM "table1_24346010_1" WHERE "guberniya"='Grodno';
```
## Task
Generate a SQL query to answer the following question:
`Name the real life for eventual outcome is amtrak`

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

CREATE TABLE "table1_243664_1" (
  "railroad" text,
  "game_cost" text,
  "real_life_years_of_operation" text,
  "real_life_eventual_outcome" text,
  "currently_part_of" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the real life for eventual outcome is amtrak`:
```sql
                SELECT "real_life_eventual_outcome" FROM "table1_243664_1" WHERE "currently_part_of"='Amtrak';
```
## Task
Generate a SQL query to answer the following question:
`Name the real life years of operation for amtrak`

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

CREATE TABLE "table1_243664_1" (
  "railroad" text,
  "game_cost" text,
  "real_life_years_of_operation" text,
  "real_life_eventual_outcome" text,
  "currently_part_of" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the real life years of operation for amtrak`:
```sql
                SELECT "real_life_years_of_operation" FROM "table1_243664_1" WHERE "currently_part_of"='Amtrak';
```
## Task
Generate a SQL query to answer the following question:
`Name the game coast for chicago and north western`

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

CREATE TABLE "table1_243664_1" (
  "railroad" text,
  "game_cost" text,
  "real_life_years_of_operation" text,
  "real_life_eventual_outcome" text,
  "currently_part_of" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the game coast for chicago and north western`:
```sql
                SELECT "game_cost" FROM "table1_243664_1" WHERE "railroad"='Chicago and North Western';
```