cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`how many countries have remittances in 2008 of 9.07?`

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

CREATE TABLE "top_recipient_countries_of_remittances_i" (
  "country" text,
  "remittances_2008" text,
  "remittances_2009" text,
  "remittances_2010" text,
  "remittances_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many countries have remittances in 2008 of 9.07?`:
```sql
                SELECT COUNT("country") FROM "top_recipient_countries_of_remittances_i" WHERE "remittances_2008"='9.07';
```
## Task
Generate a SQL query to answer the following question:
`how many remittances in 2010 where the remittances is 19.73?`

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

CREATE TABLE "top_recipient_countries_of_remittances_i" (
  "country" text,
  "remittances_2008" text,
  "remittances_2009" text,
  "remittances_2010" text,
  "remittances_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many remittances in 2010 where the remittances is 19.73?`:
```sql
                SELECT COUNT("remittances_2010") FROM "top_recipient_countries_of_remittances_i" WHERE "remittances_2009"='19.73';
```
## Task
Generate a SQL query to answer the following question:
`how many remittances in 2010 for nigeria?`

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

CREATE TABLE "top_recipient_countries_of_remittances_i" (
  "country" text,
  "remittances_2008" text,
  "remittances_2009" text,
  "remittances_2010" text,
  "remittances_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many remittances in 2010 for nigeria?`:
```sql
                SELECT "remittances_2010" FROM "top_recipient_countries_of_remittances_i" WHERE "country"='Nigeria';
```
## Task
Generate a SQL query to answer the following question:
`how many countiers had 2009 remittances of 6.02?`

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

CREATE TABLE "top_recipient_countries_of_remittances_i" (
  "country" text,
  "remittances_2008" text,
  "remittances_2009" text,
  "remittances_2010" text,
  "remittances_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many countiers had 2009 remittances of 6.02?`:
```sql
                SELECT COUNT("country") FROM "top_recipient_countries_of_remittances_i" WHERE "remittances_2009"='6.02';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest year with field reporter Steve Lyons?`

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

CREATE TABLE "2000s" (
  "year" real,
  "network" text,
  "play_by_play_announcer" text,
  "color_commentator" text,
  "s_field_reporter" text,
  "pregame_hosts" text,
  "pregame_analysts" text,
  "trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest year with field reporter Steve Lyons?`:
```sql
                SELECT MAX("year") FROM "2000s" WHERE "s_field_reporter"='Steve Lyons';
```
## Task
Generate a SQL query to answer the following question:
`What is every pregame analyst with Chris Rose as trophy presenter?`

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

CREATE TABLE "2000s" (
  "year" real,
  "network" text,
  "play_by_play_announcer" text,
  "color_commentator" text,
  "s_field_reporter" text,
  "pregame_hosts" text,
  "pregame_analysts" text,
  "trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every pregame analyst with Chris Rose as trophy presenter?`:
```sql
                SELECT "pregame_analysts" FROM "2000s" WHERE "trophy_presentation"='Chris Rose';
```
## Task
Generate a SQL query to answer the following question:
`Who is every play-by-play announcer when Chris Rose is the trophy presenter?`

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

CREATE TABLE "2000s" (
  "year" real,
  "network" text,
  "play_by_play_announcer" text,
  "color_commentator" text,
  "s_field_reporter" text,
  "pregame_hosts" text,
  "pregame_analysts" text,
  "trophy_presentation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every play-by-play announcer when Chris Rose is the trophy presenter?`:
```sql
                SELECT "play_by_play_announcer" FROM "2000s" WHERE "trophy_presentation"='Chris Rose';
```
## Task
Generate a SQL query to answer the following question:
`Who directed "I am Dick Pentameter!"?`

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

CREATE TABLE "table1_29436178_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed "I am Dick Pentameter!"?`:
```sql
                SELECT "directed_by" FROM "table1_29436178_1" WHERE "title"='\"I Am Dick Pentameter!\"';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes are titled "dick's big giant headache (part 1)"?`

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

CREATE TABLE "table1_29436178_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes are titled "dick's big giant headache (part 1)"?`:
```sql
                SELECT COUNT("no_in_season") FROM "table1_29436178_1" WHERE "title"='\"Dick''s Big Giant Headache (Part 1)\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the episode number od "Dick Vs. Strudwick"?`

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

CREATE TABLE "table1_29436178_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode number od "Dick Vs. Strudwick"?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_29436178_1" WHERE "title"='\"Dick vs. Strudwick\"';
```
## Task
Generate a SQL query to answer the following question:
`How many teams came in fourth when Otsuka Pharmaceuticals won?`

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

CREATE TABLE "japan_football_league_jfl_1999_2013" (
  "season" real,
  "winner" text,
  "runner_up" text,
  "third_place" text,
  "fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams came in fourth when Otsuka Pharmaceuticals won?`:
```sql
                SELECT COUNT("fourth_place") FROM "japan_football_league_jfl_1999_2013" WHERE "winner"='Otsuka Pharmaceuticals';
```
## Task
Generate a SQL query to answer the following question:
`Who was the runner up the season that Sagawa Express came in fourth?`

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

CREATE TABLE "japan_football_league_jfl_1999_2013" (
  "season" real,
  "winner" text,
  "runner_up" text,
  "third_place" text,
  "fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner up the season that Sagawa Express came in fourth?`:
```sql
                SELECT "runner_up" FROM "japan_football_league_jfl_1999_2013" WHERE "fourth_place"='Sagawa Express';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons did Otsuka Pharmaceuticals come in third?`

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

CREATE TABLE "japan_football_league_jfl_1999_2013" (
  "season" real,
  "winner" text,
  "runner_up" text,
  "third_place" text,
  "fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons did Otsuka Pharmaceuticals come in third?`:
```sql
                SELECT COUNT("season") FROM "japan_football_league_jfl_1999_2013" WHERE "third_place"='Otsuka Pharmaceuticals';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were written by Gregg Mettler?`

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

CREATE TABLE "table1_29436238_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were written by Gregg Mettler?`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_29436238_1" WHERE "written_by"='Gregg Mettler';
```
## Task
Generate a SQL query to answer the following question:
`What date did episode 4 in the season originally air?`

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

CREATE TABLE "table1_29436238_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date did episode 4 in the season originally air?`:
```sql
                SELECT "original_air_date" FROM "table1_29436238_1" WHERE "no_in_season"=4;
```
## Task
Generate a SQL query to answer the following question:
`What date did "the big giant head returns again (part 1)" originally air?`

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

CREATE TABLE "table1_29436238_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date did "the big giant head returns again (part 1)" originally air?`:
```sql
                SELECT "original_air_date" FROM "table1_29436238_1" WHERE "title"='\"The Big Giant Head Returns Again (Part 1)\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the production code when the title is "you don't know dick"?`

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

CREATE TABLE "table1_29436311_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code when the title is "you don't know dick"?`:
```sql
                SELECT MIN("production_code") FROM "table1_29436311_1" WHERE "title"='\"You Don''t Know Dick\"';
```
## Task
Generate a SQL query to answer the following question:
`Who are all the major users of the Gordon Close-Support Weapon System?`

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

CREATE TABLE "table1_29474407_11" (
  "name_designation" text,
  "year_of_intro" real,
  "country_of_origin" text,
  "primary_cartridge" text,
  "major_users" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all the major users of the Gordon Close-Support Weapon System?`:
```sql
                SELECT "major_users" FROM "table1_29474407_11" WHERE "name_designation"='Gordon Close-Support Weapon System';
```
## Task
Generate a SQL query to answer the following question:
`What country made the Flieger-Doppelpistole 1919?`

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

CREATE TABLE "table1_29474407_11" (
  "name_designation" text,
  "year_of_intro" real,
  "country_of_origin" text,
  "primary_cartridge" text,
  "major_users" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country made the Flieger-Doppelpistole 1919?`:
```sql
                SELECT "country_of_origin" FROM "table1_29474407_11" WHERE "name_designation"='Flieger-Doppelpistole 1919';
```
## Task
Generate a SQL query to answer the following question:
`How many years of introduction does the Neal Submachine Gun have?`

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

CREATE TABLE "table1_29474407_11" (
  "name_designation" text,
  "year_of_intro" real,
  "country_of_origin" text,
  "primary_cartridge" text,
  "major_users" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years of introduction does the Neal Submachine Gun have?`:
```sql
                SELECT COUNT("year_of_intro") FROM "table1_29474407_11" WHERE "name_designation"='Neal submachine gun';
```
## Task
Generate a SQL query to answer the following question:
`Who are the major users from Australia?`

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

CREATE TABLE "table1_29474407_11" (
  "name_designation" text,
  "year_of_intro" real,
  "country_of_origin" text,
  "primary_cartridge" text,
  "major_users" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the major users from Australia?`:
```sql
                SELECT "major_users" FROM "table1_29474407_11" WHERE "country_of_origin"='Australia';
```
## Task
Generate a SQL query to answer the following question:
`Who are all the major users of the Saturn Machine Pistol?`

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

CREATE TABLE "table1_29474407_11" (
  "name_designation" text,
  "year_of_intro" real,
  "country_of_origin" text,
  "primary_cartridge" text,
  "major_users" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all the major users of the Saturn Machine Pistol?`:
```sql
                SELECT "major_users" FROM "table1_29474407_11" WHERE "name_designation"='Saturn machine pistol';
```
## Task
Generate a SQL query to answer the following question:
`in how many of the arkansas colomel the county was pope`

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

CREATE TABLE "arkansas_militia_act_of_1843" (
  "division" text,
  "brigade" text,
  "regiment" text,
  "colonel" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `in how many of the arkansas colomel the county was pope`:
```sql
                SELECT COUNT("colonel") FROM "arkansas_militia_act_of_1843" WHERE "county"='Pope';
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the coloneo of the 35th regiment `

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

CREATE TABLE "arkansas_militia_act_of_1843" (
  "division" text,
  "brigade" text,
  "regiment" text,
  "colonel" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the coloneo of the 35th regiment `:
```sql
                SELECT "colonel" FROM "arkansas_militia_act_of_1843" WHERE "regiment"='35th Regiment';
```
## Task
Generate a SQL query to answer the following question:
`which regiment was in the Fulton County`

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

CREATE TABLE "arkansas_militia_act_of_1843" (
  "division" text,
  "brigade" text,
  "regiment" text,
  "colonel" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `which regiment was in the Fulton County`:
```sql
                SELECT "regiment" FROM "arkansas_militia_act_of_1843" WHERE "county"='Fulton';
```
## Task
Generate a SQL query to answer the following question:
`what is he name of the county where the 2nd division and the 41st regiment was`

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

CREATE TABLE "arkansas_militia_act_of_1843" (
  "division" text,
  "brigade" text,
  "regiment" text,
  "colonel" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is he name of the county where the 2nd division and the 41st regiment was`:
```sql
                SELECT "county" FROM "arkansas_militia_act_of_1843" WHERE "division"='2nd Division' AND "regiment"='41st Regiment';
```
## Task
Generate a SQL query to answer the following question:
`which regimen was in the arkansas county`

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

CREATE TABLE "arkansas_militia_act_of_1843" (
  "division" text,
  "brigade" text,
  "regiment" text,
  "colonel" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `which regimen was in the arkansas county`:
```sql
                SELECT "regiment" FROM "arkansas_militia_act_of_1843" WHERE "county"='Arkansas';
```
## Task
Generate a SQL query to answer the following question:
`When nicole dubuc duane capizzi is the writer who is the director?`

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

CREATE TABLE "table1_29475589_3" (
  "no" real,
  "num" real,
  "episode_title" text,
  "director" text,
  "writer_s" text,
  "u_s_original_airdate" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When nicole dubuc duane capizzi is the writer who is the director?`:
```sql
                SELECT "director" FROM "table1_29475589_3" WHERE "writer_s"='Nicole Dubuc Duane Capizzi';
```
## Task
Generate a SQL query to answer the following question:
`When "speed metal" is the episode title what is the lowest number?`

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

CREATE TABLE "table1_29475589_3" (
  "no" real,
  "num" real,
  "episode_title" text,
  "director" text,
  "writer_s" text,
  "u_s_original_airdate" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When "speed metal" is the episode title what is the lowest number?`:
```sql
                SELECT MIN("no") FROM "table1_29475589_3" WHERE "episode_title"='\"Speed Metal\"';
```
## Task
Generate a SQL query to answer the following question:
`When 22 is the number what is the episode title?`

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

CREATE TABLE "table1_29475589_3" (
  "no" real,
  "num" real,
  "episode_title" text,
  "director" text,
  "writer_s" text,
  "u_s_original_airdate" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 22 is the number what is the episode title?`:
```sql
                SELECT "episode_title" FROM "table1_29475589_3" WHERE "no"=22;
```
## Task
Generate a SQL query to answer the following question:
`When the # is 9 what is the U.S original airdate?`

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

CREATE TABLE "table1_29475589_5" (
  "no" real,
  "num" real,
  "episode_title" text,
  "director" text,
  "writer_s" text,
  "u_s_original_airdate" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the # is 9 what is the U.S original airdate?`:
```sql
                SELECT "u_s_original_airdate" FROM "table1_29475589_5" WHERE "num"=9;
```
## Task
Generate a SQL query to answer the following question:
`how many representatives from hanover twp were first elected in 2008`

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

CREATE TABLE "house_of_representatives" (
  "district" real,
  "representative" text,
  "party" text,
  "residence" text,
  "first_elected" text,
  "term_limited" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many representatives from hanover twp were first elected in 2008`:
```sql
                SELECT COUNT("representative") FROM "house_of_representatives" WHERE "first_elected"='2008' AND "residence"='Hanover Twp';
```
## Task
Generate a SQL query to answer the following question:
`when was al landis first elected`

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

CREATE TABLE "house_of_representatives" (
  "district" real,
  "representative" text,
  "party" text,
  "residence" text,
  "first_elected" text,
  "term_limited" real
);
### SQL
Given the database schema, here is the SQL query that answers `when was al landis first elected`:
```sql
                SELECT "first_elected" FROM "house_of_representatives" WHERE "representative"='Al Landis';
```
## Task
Generate a SQL query to answer the following question:
`which representative is from willowick`

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

CREATE TABLE "house_of_representatives" (
  "district" real,
  "representative" text,
  "party" text,
  "residence" text,
  "first_elected" text,
  "term_limited" real
);
### SQL
Given the database schema, here is the SQL query that answers `which representative is from willowick`:
```sql
                SELECT "representative" FROM "house_of_representatives" WHERE "residence"='Willowick';
```
## Task
Generate a SQL query to answer the following question:
`which district does andy thompson represent`

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

CREATE TABLE "house_of_representatives" (
  "district" real,
  "representative" text,
  "party" text,
  "residence" text,
  "first_elected" text,
  "term_limited" real
);
### SQL
Given the database schema, here is the SQL query that answers `which district does andy thompson represent`:
```sql
                SELECT COUNT("district") FROM "house_of_representatives" WHERE "representative"='Andy Thompson';
```
## Task
Generate a SQL query to answer the following question:
`which party is the newark representative from`

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

CREATE TABLE "house_of_representatives" (
  "district" real,
  "representative" text,
  "party" text,
  "residence" text,
  "first_elected" text,
  "term_limited" real
);
### SQL
Given the database schema, here is the SQL query that answers `which party is the newark representative from`:
```sql
                SELECT "party" FROM "house_of_representatives" WHERE "residence"='Newark';
```
## Task
Generate a SQL query to answer the following question:
`who is beavercreek's representative`

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

CREATE TABLE "house_of_representatives" (
  "district" real,
  "representative" text,
  "party" text,
  "residence" text,
  "first_elected" text,
  "term_limited" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is beavercreek's representative`:
```sql
                SELECT "representative" FROM "house_of_representatives" WHERE "residence"='Beavercreek';
```
## Task
Generate a SQL query to answer the following question:
`What was Reid's rolex ranking in the year that her money list rank was 3?`

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

CREATE TABLE "ladies_european_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "3rd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" text,
  "money_list_rank" text,
  "scoring_average" text,
  "scoring_rank" text,
  "rolex_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Reid's rolex ranking in the year that her money list rank was 3?`:
```sql
                SELECT MAX("rolex_ranking") FROM "ladies_european_tour_career_summary" WHERE "money_list_rank"='3';
```
## Task
Generate a SQL query to answer the following question:
`What was the money list rank for Reid in the year that she had 0 top 10s?`

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

CREATE TABLE "ladies_european_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "3rd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" text,
  "money_list_rank" text,
  "scoring_average" text,
  "scoring_rank" text,
  "rolex_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the money list rank for Reid in the year that she had 0 top 10s?`:
```sql
                SELECT "money_list_rank" FROM "ladies_european_tour_career_summary" WHERE "top_10s"=0;
```
## Task
Generate a SQL query to answer the following question:
`How many cuts did Reid make in the year when her earnings were n/a?`

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

CREATE TABLE "ladies_european_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "3rd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" text,
  "money_list_rank" text,
  "scoring_average" text,
  "scoring_rank" text,
  "rolex_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many cuts did Reid make in the year when her earnings were n/a?`:
```sql
                SELECT MAX("cuts_made") FROM "ladies_european_tour_career_summary" WHERE "earnings"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`In what year were Reid's earnings €4,050 1?`

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

CREATE TABLE "ladies_european_tour_career_summary" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "3rd" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" text,
  "money_list_rank" text,
  "scoring_average" text,
  "scoring_rank" text,
  "rolex_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what year were Reid's earnings €4,050 1?`:
```sql
                SELECT MIN("year") FROM "ladies_european_tour_career_summary" WHERE "earnings"='4,050 1';
```
## Task
Generate a SQL query to answer the following question:
`What is the best finish for the player whose earnings was $421050?`

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

CREATE TABLE "2005_results" (
  "player" text,
  "starts" real,
  "cuts_made" real,
  "best_finish" text,
  "money_list_rank" real,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the best finish for the player whose earnings was $421050?`:
```sql
                SELECT "best_finish" FROM "2005_results" WHERE "earnings"=421050;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum start record for player of Jeff Brehaut?`

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

CREATE TABLE "2005_results" (
  "player" text,
  "starts" real,
  "cuts_made" real,
  "best_finish" text,
  "money_list_rank" real,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum start record for player of Jeff Brehaut?`:
```sql
                SELECT MAX("starts") FROM "2005_results" WHERE "player"='Jeff Brehaut';
```
## Task
Generate a SQL query to answer the following question:
`What is the best finish record for Carl Paulson?`

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

CREATE TABLE "2005_results" (
  "player" text,
  "starts" real,
  "cuts_made" real,
  "best_finish" text,
  "money_list_rank" real,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the best finish record for Carl Paulson?`:
```sql
                SELECT "best_finish" FROM "2005_results" WHERE "player"='Carl Paulson';
```
## Task
Generate a SQL query to answer the following question:
`What is the best finish record for Sean O'hair?`

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

CREATE TABLE "2005_results" (
  "player" text,
  "starts" real,
  "cuts_made" real,
  "best_finish" text,
  "money_list_rank" real,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the best finish record for Sean O'hair?`:
```sql
                SELECT "best_finish" FROM "2005_results" WHERE "player"='Sean O''Hair';
```
## Task
Generate a SQL query to answer the following question:
`What is the money list rank for player Doug Barron?`

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

CREATE TABLE "2005_results" (
  "player" text,
  "starts" real,
  "cuts_made" real,
  "best_finish" text,
  "money_list_rank" real,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the money list rank for player Doug Barron?`:
```sql
                SELECT MAX("money_list_rank") FROM "2005_results" WHERE "player"='Doug Barron';
```
## Task
Generate a SQL query to answer the following question:
`How many athletes were named federico muller?`

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

CREATE TABLE "table1_29521180_35" (
  "athlete" text,
  "event" text,
  "elimination_poule" text,
  "round_of_16" text,
  "quarterfinals" text,
  "semifinals" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many athletes were named federico muller?`:
```sql
                SELECT COUNT("quarterfinals") FROM "table1_29521180_35" WHERE "athlete"='Federico Muller';
```
## Task
Generate a SQL query to answer the following question:
`What was the round of 16 result for felipe saucedo?`

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

CREATE TABLE "table1_29521180_35" (
  "athlete" text,
  "event" text,
  "elimination_poule" text,
  "round_of_16" text,
  "quarterfinals" text,
  "semifinals" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the round of 16 result for felipe saucedo?`:
```sql
                SELECT "round_of_16" FROM "table1_29521180_35" WHERE "athlete"='Felipe Saucedo';
```
## Task
Generate a SQL query to answer the following question:
`The Ring of Steel possesses what ISBN?`

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

CREATE TABLE "original_audiobooks" (
  "num" real,
  "title" text,
  "author" text,
  "doctor" text,
  "featuring" text,
  "read_by" text,
  "published" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Ring of Steel possesses what ISBN?`:
```sql
                SELECT "isbn" FROM "original_audiobooks" WHERE "title"='The Ring Of Steel';
```
## Task
Generate a SQL query to answer the following question:
`THe audio book with ISBN 978-1-4084-6879-1 is read by whom?`

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

CREATE TABLE "original_audiobooks" (
  "num" real,
  "title" text,
  "author" text,
  "doctor" text,
  "featuring" text,
  "read_by" text,
  "published" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `THe audio book with ISBN 978-1-4084-6879-1 is read by whom?`:
```sql
                SELECT "read_by" FROM "original_audiobooks" WHERE "isbn"='ISBN 978-1-4084-6879-1';
```
## Task
Generate a SQL query to answer the following question:
`The Empty House audiobook has what #?`

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

CREATE TABLE "original_audiobooks" (
  "num" real,
  "title" text,
  "author" text,
  "doctor" text,
  "featuring" text,
  "read_by" text,
  "published" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Empty House audiobook has what #?`:
```sql
                SELECT "num" FROM "original_audiobooks" WHERE "title"='The Empty House';
```
## Task
Generate a SQL query to answer the following question:
`How many people directed episode 2?`

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

CREATE TABLE "table1_29545336_2" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "featured_character_s" text,
  "u_s_viewers_millions" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people directed episode 2?`:
```sql
                SELECT COUNT("directed_by") FROM "table1_29545336_2" WHERE "no"=2;
```
## Task
Generate a SQL query to answer the following question:
`What date did "stanley" originally air?`

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

CREATE TABLE "table1_29545336_2" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "featured_character_s" text,
  "u_s_viewers_millions" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did "stanley" originally air?`:
```sql
                SELECT "original_air_date" FROM "table1_29545336_2" WHERE "title"='\"Stanley\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode that featured Abbud Siddiqui?`

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

CREATE TABLE "table1_29545336_2" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "featured_character_s" text,
  "u_s_viewers_millions" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode that featured Abbud Siddiqui?`:
```sql
                SELECT "title" FROM "table1_29545336_2" WHERE "featured_character_s"='Abbud Siddiqui';
```
## Task
Generate a SQL query to answer the following question:
`How many million U.S. viewers was written by Matt Pelfrey?`

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

CREATE TABLE "table1_29545336_2" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "featured_character_s" text,
  "u_s_viewers_millions" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many million U.S. viewers was written by Matt Pelfrey?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_29545336_2" WHERE "written_by"='Matt Pelfrey';
```
## Task
Generate a SQL query to answer the following question:
`When 8.9% is the electricity reduction percentage how many sets of tonnes of co2 saved is there?`

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

CREATE TABLE "results" (
  "year" text,
  "universities" real,
  "no_of_students_signed_up" real,
  "pct_electricity_reduction" text,
  "tonnes_of_co2_saved" real,
  "saved" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 8.9% is the electricity reduction percentage how many sets of tonnes of co2 saved is there?`:
```sql
                SELECT COUNT("tonnes_of_co2_saved") FROM "results" WHERE "pct_electricity_reduction"='8.9%';
```
## Task
Generate a SQL query to answer the following question:
`When 1522 is the tonnes of co2 saved what is the year?`

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

CREATE TABLE "results" (
  "year" text,
  "universities" real,
  "no_of_students_signed_up" real,
  "pct_electricity_reduction" text,
  "tonnes_of_co2_saved" real,
  "saved" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1522 is the tonnes of co2 saved what is the year?`:
```sql
                SELECT "year" FROM "results" WHERE "tonnes_of_co2_saved"=1522;
```
## Task
Generate a SQL query to answer the following question:
`When £337,000 is £ saved what is the percentage of electricity reduction?`

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

CREATE TABLE "results" (
  "year" text,
  "universities" real,
  "no_of_students_signed_up" real,
  "pct_electricity_reduction" text,
  "tonnes_of_co2_saved" real,
  "saved" text
);
### SQL
Given the database schema, here is the SQL query that answers `When £337,000 is £ saved what is the percentage of electricity reduction?`:
```sql
                SELECT "pct_electricity_reduction" FROM "results" WHERE "saved"='£337,000';
```
## Task
Generate a SQL query to answer the following question:
`When 8.9% is the electricity reduction percentage what is the £ saved?`

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

CREATE TABLE "results" (
  "year" text,
  "universities" real,
  "no_of_students_signed_up" real,
  "pct_electricity_reduction" text,
  "tonnes_of_co2_saved" real,
  "saved" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 8.9% is the electricity reduction percentage what is the £ saved?`:
```sql
                SELECT "saved" FROM "results" WHERE "pct_electricity_reduction"='8.9%';
```
## Task
Generate a SQL query to answer the following question:
`When 10% is the percentage of electricity reduction how many sets of universities are there?`

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

CREATE TABLE "results" (
  "year" text,
  "universities" real,
  "no_of_students_signed_up" real,
  "pct_electricity_reduction" text,
  "tonnes_of_co2_saved" real,
  "saved" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 10% is the percentage of electricity reduction how many sets of universities are there?`:
```sql
                SELECT COUNT("universities") FROM "results" WHERE "pct_electricity_reduction"='10%';
```
## Task
Generate a SQL query to answer the following question:
`What is maximum loss record when the pa record is 47?`

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

CREATE TABLE "asham_black_group" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is maximum loss record when the pa record is 47?`:
```sql
                SELECT MAX("l") FROM "asham_black_group" WHERE "pa"=47;
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum ends lost record when the stolen ends records is 6 and the loss record is bigger than 5.0?`

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

CREATE TABLE "asham_black_group" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum ends lost record when the stolen ends records is 6 and the loss record is bigger than 5.0?`:
```sql
                SELECT MIN("ends_lost") FROM "asham_black_group" WHERE "stolen_ends"=6 AND "l">5.0;
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum stolen ends record where the pa record is 40?`

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

CREATE TABLE "asham_black_group" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum stolen ends record where the pa record is 40?`:
```sql
                SELECT MIN("stolen_ends") FROM "asham_black_group" WHERE "pa"=40;
```
## Task
Generate a SQL query to answer the following question:
`When 39 is the amount of ends won who is the skip (club)?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 39 is the amount of ends won who is the skip (club)?`:
```sql
                SELECT "skip_club" FROM "standings" WHERE "ends_won"=39;
```
## Task
Generate a SQL query to answer the following question:
`When nicole backe (nanaimo curling club) is the skip (club) how many sets of w's are there?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `When nicole backe (nanaimo curling club) is the skip (club) how many sets of w's are there?`:
```sql
                SELECT COUNT("w") FROM "standings" WHERE "skip_club"='Nicole Backe (Nanaimo Curling Club)';
```
## Task
Generate a SQL query to answer the following question:
`When 36 is the amount of ends won how many sets of pf's are there?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 36 is the amount of ends won how many sets of pf's are there?`:
```sql
                SELECT COUNT("pf") FROM "standings" WHERE "ends_won"=36;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall amount of w's?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall amount of w's?`:
```sql
                SELECT MIN("w") FROM "standings";
```
## Task
Generate a SQL query to answer the following question:
`What is the highest L of the tournament?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest L of the tournament?`:
```sql
                SELECT MAX("l") FROM "standings";
```
## Task
Generate a SQL query to answer the following question:
`What is the highest W of the 0 L?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest W of the 0 L?`:
```sql
                SELECT MAX("w") FROM "standings" WHERE "l"=0;
```
## Task
Generate a SQL query to answer the following question:
`Name the least pa for w being 2`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least pa for w being 2`:
```sql
                SELECT MIN("pa") FROM "standings" WHERE "w"=2;
```
## Task
Generate a SQL query to answer the following question:
`Name the least ends lost for joëlle belley (glenmore)`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least ends lost for joëlle belley (glenmore)`:
```sql
                SELECT MIN("ends_lost") FROM "standings" WHERE "skip_club"='Joëlle Belley (Glenmore)';
```
## Task
Generate a SQL query to answer the following question:
`Which skip (club) had 28 PA?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which skip (club) had 28 PA?`:
```sql
                SELECT "skip_club" FROM "standings" WHERE "pa"=28;
```
## Task
Generate a SQL query to answer the following question:
`What is the most amount of stolen ends for a skip with 1 W?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most amount of stolen ends for a skip with 1 W?`:
```sql
                SELECT MAX("stolen_ends") FROM "standings" WHERE "w"=1;
```
## Task
Generate a SQL query to answer the following question:
`Which skip (club) had 31 PA and 9 blank ends?`

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which skip (club) had 31 PA and 9 blank ends?`:
```sql
                SELECT "skip_club" FROM "standings" WHERE "pa"=31 AND "blank_ends"=9;
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of blank ends for a skip who has 44 PF? `

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

CREATE TABLE "standings" (
  "skip_club" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of blank ends for a skip who has 44 PF? `:
```sql
                SELECT MIN("blank_ends") FROM "standings" WHERE "pf"=44;
```