cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What number episode in the series is the episode "things that fly"?`

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

CREATE TABLE "season_two_1999_2000" (
  "series_number" real,
  "season_number" real,
  "episode_title" text,
  "premiere_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What number episode in the series is the episode "things that fly"?`:
```sql
                SELECT MAX("series_number") FROM "season_two_1999_2000" WHERE "episode_title"='Things That Fly';
```
## Task
Generate a SQL query to answer the following question:
`What is the production code for season episode 8?`

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

CREATE TABLE "season_two_1999_2000" (
  "series_number" real,
  "season_number" real,
  "episode_title" text,
  "premiere_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for season episode 8?`:
```sql
                SELECT MIN("production_code") FROM "season_two_1999_2000" WHERE "season_number"=8;
```
## Task
Generate a SQL query to answer the following question:
`How many episodes have a series number of 35?`

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

CREATE TABLE "season_two_1999_2000" (
  "series_number" real,
  "season_number" real,
  "episode_title" text,
  "premiere_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes have a series number of 35?`:
```sql
                SELECT COUNT("episode_title") FROM "season_two_1999_2000" WHERE "series_number"=35;
```
## Task
Generate a SQL query to answer the following question:
`What is the series number for season episode 24?`

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

CREATE TABLE "season_two_1999_2000" (
  "series_number" real,
  "season_number" real,
  "episode_title" text,
  "premiere_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series number for season episode 24?`:
```sql
                SELECT MIN("series_number") FROM "season_two_1999_2000" WHERE "season_number"=24;
```
## Task
Generate a SQL query to answer the following question:
`how many have times of 6`

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

CREATE TABLE "race_results" (
  "rnd" real,
  "race" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many have times of 6`:
```sql
                SELECT COUNT("fastest_lap") FROM "race_results" WHERE "rnd"=6;
```
## Task
Generate a SQL query to answer the following question:
`which brand have drivers who won with the names of ryan briscoe and tomas scheckter`

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

CREATE TABLE "race_results" (
  "rnd" real,
  "race" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `which brand have drivers who won with the names of ryan briscoe and tomas scheckter`:
```sql
                SELECT "winning_team" FROM "race_results" WHERE "winning_driver"='Ryan Briscoe' AND "fastest_lap"='Tomas Scheckter';
```
## Task
Generate a SQL query to answer the following question:
`who else along with scott dixon and graham rahal drove with the most speed`

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

CREATE TABLE "race_results" (
  "rnd" real,
  "race" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `who else along with scott dixon and graham rahal drove with the most speed`:
```sql
                SELECT "fastest_lap" FROM "race_results" WHERE "most_laps_led"='Scott Dixon' AND "pole_position"='Graham Rahal';
```
## Task
Generate a SQL query to answer the following question:
`tell the number of times where kansas was the location`

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

CREATE TABLE "race_results" (
  "rnd" real,
  "race" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `tell the number of times where kansas was the location`:
```sql
                SELECT COUNT("rnd") FROM "race_results" WHERE "race"='Kansas';
```
## Task
Generate a SQL query to answer the following question:
`What TV channel had a license from Boston?`

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

CREATE TABLE "table1_1353096_2" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "years_owned" text,
  "current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What TV channel had a license from Boston?`:
```sql
                SELECT "channel_tv_dt" FROM "table1_1353096_2" WHERE "city_of_license_market"='Boston';
```
## Task
Generate a SQL query to answer the following question:
`Which station has a license in Fort Collins, Colorado?`

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

CREATE TABLE "table1_1353096_2" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "years_owned" text,
  "current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which station has a license in Fort Collins, Colorado?`:
```sql
                SELECT "station" FROM "table1_1353096_2" WHERE "city_of_license_market"='Fort Collins, Colorado';
```
## Task
Generate a SQL query to answer the following question:
`What is the current status of the KDAF ** Station?`

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

CREATE TABLE "table1_1353096_2" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "years_owned" text,
  "current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the current status of the KDAF ** Station?`:
```sql
                SELECT "current_status" FROM "table1_1353096_2" WHERE "station"='KDAF **';
```
## Task
Generate a SQL query to answer the following question:
`How many entries are listed under "current status" for the WJW-TV ++ Station?`

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

CREATE TABLE "table1_1353096_2" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "years_owned" text,
  "current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries are listed under "current status" for the WJW-TV ++ Station?`:
```sql
                SELECT COUNT("current_status") FROM "table1_1353096_2" WHERE "station"='WJW-TV ++';
```
## Task
Generate a SQL query to answer the following question:
`How many stations have fox as the primary affiliation and have been owned since 1986?`

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

CREATE TABLE "stations" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "owned_since" text,
  "primary_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many stations have fox as the primary affiliation and have been owned since 1986?`:
```sql
                SELECT COUNT("station") FROM "stations" WHERE "primary_affiliation"='Fox' AND "owned_since"='1986';
```
## Task
Generate a SQL query to answer the following question:
`What channel has station kdfw ++?`

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

CREATE TABLE "stations" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "owned_since" text,
  "primary_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What channel has station kdfw ++?`:
```sql
                SELECT "channel_tv_dt" FROM "stations" WHERE "station"='KDFW ++';
```
## Task
Generate a SQL query to answer the following question:
`What city has channel tv (dt) 25 (31)?`

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

CREATE TABLE "stations" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "owned_since" text,
  "primary_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city has channel tv (dt) 25 (31)?`:
```sql
                SELECT "city_of_license_market" FROM "stations" WHERE "channel_tv_dt"='25 (31)';
```
## Task
Generate a SQL query to answer the following question:
`How many channel tv (dt)s are in austin, texas?`

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

CREATE TABLE "stations" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "owned_since" text,
  "primary_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many channel tv (dt)s are in austin, texas?`:
```sql
                SELECT COUNT("channel_tv_dt") FROM "stations" WHERE "city_of_license_market"='Austin, Texas';
```
## Task
Generate a SQL query to answer the following question:
`When was 10 (10) bought?`

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

CREATE TABLE "stations" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "owned_since" text,
  "primary_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was 10 (10) bought?`:
```sql
                SELECT "owned_since" FROM "stations" WHERE "channel_tv_dt"='10 (10)';
```
## Task
Generate a SQL query to answer the following question:
`Who were the umpires when Paul Medhurst (C) won the Simpson Medal?`

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

CREATE TABLE "west_australian_football_league_2001" (
  "season" real,
  "premiers" text,
  "runners_up" text,
  "score" text,
  "captain" text,
  "coach" text,
  "simpson_medal" text,
  "venue" text,
  "attendance" real,
  "umpires" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the umpires when Paul Medhurst (C) won the Simpson Medal?`:
```sql
                SELECT "umpires" FROM "west_australian_football_league_2001" WHERE "simpson_medal"='Paul Medhurst (C)';
```
## Task
Generate a SQL query to answer the following question:
`Who were the umpires when Paul Vines (S) won the Simpson Medal?`

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

CREATE TABLE "west_australian_football_league_2001" (
  "season" real,
  "premiers" text,
  "runners_up" text,
  "score" text,
  "captain" text,
  "coach" text,
  "simpson_medal" text,
  "venue" text,
  "attendance" real,
  "umpires" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the umpires when Paul Vines (S) won the Simpson Medal?`:
```sql
                SELECT "umpires" FROM "west_australian_football_league_2001" WHERE "simpson_medal"='Paul Vines (S)';
```
## Task
Generate a SQL query to answer the following question:
`Which venue did Luke Blackwell serve as captain?`

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

CREATE TABLE "west_australian_football_league_2001" (
  "season" real,
  "premiers" text,
  "runners_up" text,
  "score" text,
  "captain" text,
  "coach" text,
  "simpson_medal" text,
  "venue" text,
  "attendance" real,
  "umpires" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue did Luke Blackwell serve as captain?`:
```sql
                SELECT "venue" FROM "west_australian_football_league_2001" WHERE "captain"='Luke Blackwell';
```
## Task
Generate a SQL query to answer the following question:
`what's the minimum 180s value`

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

CREATE TABLE "women_s_statistics" (
  "player" text,
  "played" real,
  "sets_won" real,
  "sets_lost" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the minimum 180s value`:
```sql
                SELECT MIN("180s") FROM "women_s_statistics";
```
## Task
Generate a SQL query to answer the following question:
`what's the sets won with 140+ being 16`

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

CREATE TABLE "women_s_statistics" (
  "player" text,
  "played" real,
  "sets_won" real,
  "sets_lost" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the sets won with 140+ being 16`:
```sql
                SELECT "sets_won" FROM "women_s_statistics" WHERE "140"=16;
```
## Task
Generate a SQL query to answer the following question:
`What channel number is Gladiators on`

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

CREATE TABLE "returning_this_year_after_a_break_of_one" (
  "programme" text,
  "date_s_of_original_removal" text,
  "original_channel" text,
  "date_s_of_return" text,
  "new_channel_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What channel number is Gladiators on`:
```sql
                SELECT "new_channel_s" FROM "returning_this_year_after_a_break_of_one" WHERE "programme"='Gladiators';
```
## Task
Generate a SQL query to answer the following question:
`What show is coming back on in July 2008`

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

CREATE TABLE "returning_this_year_after_a_break_of_one" (
  "programme" text,
  "date_s_of_original_removal" text,
  "original_channel" text,
  "date_s_of_return" text,
  "new_channel_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What show is coming back on in July 2008`:
```sql
                SELECT "programme" FROM "returning_this_year_after_a_break_of_one" WHERE "date_s_of_return"='July 2008';
```
## Task
Generate a SQL query to answer the following question:
`Who are the mens doubles and womens singles is wang shixian?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the mens doubles and womens singles is wang shixian?`:
```sql
                SELECT "mens_doubles" FROM "previous_winners" WHERE "womens_singles"='Wang Shixian';
```
## Task
Generate a SQL query to answer the following question:
`Who is the mens singles and womens singlses is wang shixian?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the mens singles and womens singlses is wang shixian?`:
```sql
                SELECT "mens_singles" FROM "previous_winners" WHERE "womens_singles"='Wang Shixian';
```
## Task
Generate a SQL query to answer the following question:
`Who are the mens doubles and and mens singles is lee hyun-il?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the mens doubles and and mens singles is lee hyun-il?`:
```sql
                SELECT "mens_doubles" FROM "previous_winners" WHERE "mens_singles"='Lee Hyun-il';
```
## Task
Generate a SQL query to answer the following question:
`Who are the mens singles and womens singles with sun yu?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the mens singles and womens singles with sun yu?`:
```sql
                SELECT "mens_singles" FROM "previous_winners" WHERE "womens_singles"='Sun Yu';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest number where people got done at 31.1`

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

CREATE TABLE "average_chart" (
  "rank_by_average" real,
  "competition_finish" real,
  "couple" text,
  "total" real,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest number where people got done at 31.1`:
```sql
                SELECT MAX("competition_finish") FROM "average_chart" WHERE "average"='31.1';
```
## Task
Generate a SQL query to answer the following question:
`who danced 11 and finished at more than a 2.0`

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

CREATE TABLE "average_chart" (
  "rank_by_average" real,
  "competition_finish" real,
  "couple" text,
  "total" real,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `who danced 11 and finished at more than a 2.0`:
```sql
                SELECT "couple" FROM "average_chart" WHERE "number_of_dances"=11 AND "competition_finish">2.0;
```
## Task
Generate a SQL query to answer the following question:
`tell the competitions where the mean is 1`

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

CREATE TABLE "average_chart" (
  "rank_by_average" real,
  "competition_finish" real,
  "couple" text,
  "total" real,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `tell the competitions where the mean is 1`:
```sql
                SELECT "average" FROM "average_chart" WHERE "number_of_dances"=1;
```
## Task
Generate a SQL query to answer the following question:
`tell the mean of the times competition for the 7 jigs`

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

CREATE TABLE "average_chart" (
  "rank_by_average" real,
  "competition_finish" real,
  "couple" text,
  "total" real,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `tell the mean of the times competition for the 7 jigs`:
```sql
                SELECT "rank_by_average" FROM "average_chart" WHERE "number_of_dances"=7;
```
## Task
Generate a SQL query to answer the following question:
`how many turns were completed to make a mean of 34.0`

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

CREATE TABLE "average_chart" (
  "rank_by_average" real,
  "competition_finish" real,
  "couple" text,
  "total" real,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many turns were completed to make a mean of 34.0`:
```sql
                SELECT COUNT("number_of_dances") FROM "average_chart" WHERE "average"='34.0';
```
## Task
Generate a SQL query to answer the following question:
`What is the gender of the junior high school is 24mm?`

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

CREATE TABLE "table_a_fik_specifications_for_competiti" (
  "specification" text,
  "gender" text,
  "junior_high_school_12_15_yrs" text,
  "senior_high_school_15_18_yrs" text,
  "university_students_and_adults_18yrs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gender of the junior high school is 24mm?`:
```sql
                SELECT "gender" FROM "table_a_fik_specifications_for_competiti" WHERE "junior_high_school_12_15_yrs"='24mm';
```
## Task
Generate a SQL query to answer the following question:
`What amount of the university students and adults ehre the the senior high school is 26mm?`

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

CREATE TABLE "table_a_fik_specifications_for_competiti" (
  "specification" text,
  "gender" text,
  "junior_high_school_12_15_yrs" text,
  "senior_high_school_15_18_yrs" text,
  "university_students_and_adults_18yrs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What amount of the university students and adults ehre the the senior high school is 26mm?`:
```sql
                SELECT "university_students_and_adults_18yrs" FROM "table_a_fik_specifications_for_competiti" WHERE "senior_high_school_15_18_yrs"='26mm';
```
## Task
Generate a SQL query to answer the following question:
`What amount of senior high school where junior high school is 114cm?`

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

CREATE TABLE "table_a_fik_specifications_for_competiti" (
  "specification" text,
  "gender" text,
  "junior_high_school_12_15_yrs" text,
  "senior_high_school_15_18_yrs" text,
  "university_students_and_adults_18yrs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What amount of senior high school where junior high school is 114cm?`:
```sql
                SELECT "senior_high_school_15_18_yrs" FROM "table_a_fik_specifications_for_competiti" WHERE "junior_high_school_12_15_yrs"='114cm';
```
## Task
Generate a SQL query to answer the following question:
`What is the specification where senior high school is 25mm?`

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

CREATE TABLE "table_a_fik_specifications_for_competiti" (
  "specification" text,
  "gender" text,
  "junior_high_school_12_15_yrs" text,
  "senior_high_school_15_18_yrs" text,
  "university_students_and_adults_18yrs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the specification where senior high school is 25mm?`:
```sql
                SELECT "specification" FROM "table_a_fik_specifications_for_competiti" WHERE "senior_high_school_15_18_yrs"='25mm';
```
## Task
Generate a SQL query to answer the following question:
`What amount is the junior high school where the gender is male and the specification is minimum diameter of sakigawa?`

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

CREATE TABLE "table_a_fik_specifications_for_competiti" (
  "specification" text,
  "gender" text,
  "junior_high_school_12_15_yrs" text,
  "senior_high_school_15_18_yrs" text,
  "university_students_and_adults_18yrs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What amount is the junior high school where the gender is male and the specification is minimum diameter of sakigawa?`:
```sql
                SELECT "junior_high_school_12_15_yrs" FROM "table_a_fik_specifications_for_competiti" WHERE "gender"='Male' AND "specification"='Minimum diameter of sakigawa';
```
## Task
Generate a SQL query to answer the following question:
`What is the gender of senior high school 26mm?`

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

CREATE TABLE "table_a_fik_specifications_for_competiti" (
  "specification" text,
  "gender" text,
  "junior_high_school_12_15_yrs" text,
  "senior_high_school_15_18_yrs" text,
  "university_students_and_adults_18yrs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gender of senior high school 26mm?`:
```sql
                SELECT "gender" FROM "table_a_fik_specifications_for_competiti" WHERE "senior_high_school_15_18_yrs"='26mm';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the team was 1-2?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game when the team was 1-2?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='1-2';
```
## Task
Generate a SQL query to answer the following question:
`Who had the high assists against charlotte?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the high assists against charlotte?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "team"='Charlotte';
```
## Task
Generate a SQL query to answer the following question:
`How many leading scorers were there in the game against Utah?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many leading scorers were there in the game against Utah?`:
```sql
                SELECT COUNT("high_points") FROM "game_log" WHERE "team"='Utah';
```
## Task
Generate a SQL query to answer the following question:
` how many location attendance with team being charlotte`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many location attendance with team being charlotte`:
```sql
                SELECT COUNT("location_attendance") FROM "game_log" WHERE "team"='Charlotte';
```
## Task
Generate a SQL query to answer the following question:
`what's the game with date being march 7`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the game with date being march 7`:
```sql
                SELECT "game" FROM "game_log" WHERE "date"='March 7';
```
## Task
Generate a SQL query to answer the following question:
`what's the date with game being 72`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the date with game being 72`:
```sql
                SELECT "date" FROM "game_log" WHERE "game"=72;
```
## Task
Generate a SQL query to answer the following question:
` how many high assbeingts with score being l 90–98 (ot)`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many high assbeingts with score being l 90–98 (ot)`:
```sql
                SELECT COUNT("high_assists") FROM "game_log" WHERE "score"='L 90–98 (OT)';
```
## Task
Generate a SQL query to answer the following question:
`who is the the high rebounds with team being vancouver`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the high rebounds with team being vancouver`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "team"='Vancouver';
```
## Task
Generate a SQL query to answer the following question:
`How many pairs of numbers are under record on April 12?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many pairs of numbers are under record on April 12?`:
```sql
                SELECT COUNT("record") FROM "game_log" WHERE "date"='April 12';
```
## Task
Generate a SQL query to answer the following question:
`Name total number of won for tries for 92`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name total number of won for tries for 92`:
```sql
                SELECT COUNT("won") FROM "2009_2010_table" WHERE "tries_for"='92';
```
## Task
Generate a SQL query to answer the following question:
`Name the club when tries for is 83`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the club when tries for is 83`:
```sql
                SELECT "club" FROM "2009_2010_table" WHERE "tries_for"='83';
```
## Task
Generate a SQL query to answer the following question:
`Name the try bonus for kenfig hill rfc`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the try bonus for kenfig hill rfc`:
```sql
                SELECT "try_bonus" FROM "2009_2010_table" WHERE "club"='Kenfig Hill RFC';
```
## Task
Generate a SQL query to answer the following question:
`Name the tries against for played 22 and points against of 183`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tries against for played 22 and points against of 183`:
```sql
                SELECT "tries_against" FROM "2009_2010_table" WHERE "played"='22' AND "points_against"='183';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of points for when try bonus is 10`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of points for when try bonus is 10`:
```sql
                SELECT COUNT("points_for") FROM "2009_2010_table" WHERE "try_bonus"='10';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of won for maesteg harlequins rfc`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of won for maesteg harlequins rfc`:
```sql
                SELECT COUNT("won") FROM "2009_2010_table" WHERE "club"='Maesteg Harlequins RFC';
```
## Task
Generate a SQL query to answer the following question:
`What amount had all played that lost were 8?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What amount had all played that lost were 8?`:
```sql
                SELECT "played" FROM "2009_2010_table" WHERE "lost"='8';
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the club where drawn is 1 and lost is 10?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the club where drawn is 1 and lost is 10?`:
```sql
                SELECT "club" FROM "2009_2010_table" WHERE "drawn"='1' AND "lost"='10';
```
## Task
Generate a SQL query to answer the following question:
`what are the tries where the game was lost by 4?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are the tries where the game was lost by 4?`:
```sql
                SELECT "tries_against" FROM "2009_2010_table" WHERE "lost"='4';
```
## Task
Generate a SQL query to answer the following question:
`what amount of try bonus where the game was won by 11?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what amount of try bonus where the game was won by 11?`:
```sql
                SELECT COUNT("try_bonus") FROM "2009_2010_table" WHERE "won"='11';
```
## Task
Generate a SQL query to answer the following question:
`what is the total amount of tries where the points were 325?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total amount of tries where the points were 325?`:
```sql
                SELECT COUNT("tries_against") FROM "2009_2010_table" WHERE "points_for"='325';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the column points against?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the column points against?`:
```sql
                SELECT "points_against" FROM "2008_2009_table" WHERE "points"='Points';
```
## Task
Generate a SQL query to answer the following question:
`How many points for when the points was 53?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points for when the points was 53?`:
```sql
                SELECT "points_for" FROM "2008_2009_table" WHERE "points"='53';
```
## Task
Generate a SQL query to answer the following question:
`What is the played total when the points against was 321?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the played total when the points against was 321?`:
```sql
                SELECT "played" FROM "2008_2009_table" WHERE "points_against"='321';
```
## Task
Generate a SQL query to answer the following question:
`How many tries for when the points against was 547?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tries for when the points against was 547?`:
```sql
                SELECT "tries_for" FROM "2008_2009_table" WHERE "points_against"='547';
```
## Task
Generate a SQL query to answer the following question:
`How many total games drawn for club tylorstown rfc?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total games drawn for club tylorstown rfc?`:
```sql
                SELECT "drawn" FROM "2008_2009_table" WHERE "club"='Tylorstown RFC';
```
## Task
Generate a SQL query to answer the following question:
`How many communities had a total renewable generation of 1375?`

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

CREATE TABLE "renewable_electricity_in_spain_g_wh_2006" (
  "autonomous_community" text,
  "hydroelectric_power" real,
  "wind_power" real,
  "solar_power" real,
  "biomass_power" real,
  "solid_waste_power" real,
  "total_renewable_generation" real,
  "total_electricity_demand" real,
  "pct_renewable_of_total_electricity_demand" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many communities had a total renewable generation of 1375?`:
```sql
                SELECT COUNT("autonomous_community") FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "total_renewable_generation"=1375;
```
## Task
Generate a SQL query to answer the following question:
`What is the total demand for electricity when the demand for renewable electricity demand is 2.2%?`

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

CREATE TABLE "renewable_electricity_in_spain_g_wh_2006" (
  "autonomous_community" text,
  "hydroelectric_power" real,
  "wind_power" real,
  "solar_power" real,
  "biomass_power" real,
  "solid_waste_power" real,
  "total_renewable_generation" real,
  "total_electricity_demand" real,
  "pct_renewable_of_total_electricity_demand" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total demand for electricity when the demand for renewable electricity demand is 2.2%?`:
```sql
                SELECT "total_electricity_demand" FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "pct_renewable_of_total_electricity_demand"='2.2%';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest numbered hydroelectric power when the renewable electricity demand is 21.5%?`

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

CREATE TABLE "renewable_electricity_in_spain_g_wh_2006" (
  "autonomous_community" text,
  "hydroelectric_power" real,
  "wind_power" real,
  "solar_power" real,
  "biomass_power" real,
  "solid_waste_power" real,
  "total_renewable_generation" real,
  "total_electricity_demand" real,
  "pct_renewable_of_total_electricity_demand" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest numbered hydroelectric power when the renewable electricity demand is 21.5%?`:
```sql
                SELECT MIN("hydroelectric_power") FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "pct_renewable_of_total_electricity_demand"='21.5%';
```
## Task
Generate a SQL query to answer the following question:
`What is the community with a wind power of 1042?`

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

CREATE TABLE "renewable_electricity_in_spain_g_wh_2006" (
  "autonomous_community" text,
  "hydroelectric_power" real,
  "wind_power" real,
  "solar_power" real,
  "biomass_power" real,
  "solid_waste_power" real,
  "total_renewable_generation" real,
  "total_electricity_demand" real,
  "pct_renewable_of_total_electricity_demand" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the community with a wind power of 1042?`:
```sql
                SELECT "autonomous_community" FROM "renewable_electricity_in_spain_g_wh_2006" WHERE "wind_power"=1042;
```
## Task
Generate a SQL query to answer the following question:
`How many races were for a distance of 2020 m?`

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

CREATE TABLE "2002_03_season_as_a_six_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many races were for a distance of 2020 m?`:
```sql
                SELECT COUNT("group") FROM "2002_03_season_as_a_six_year_old" WHERE "distance"='2020 m';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner of the race at Belmont?`

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

CREATE TABLE "2002_03_season_as_a_six_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner of the race at Belmont?`:
```sql
                SELECT "winner_2nd" FROM "2002_03_season_as_a_six_year_old" WHERE "venue"='Belmont';
```
## Task
Generate a SQL query to answer the following question:
`On what date did Northerly place 6th?`

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

CREATE TABLE "2002_03_season_as_a_six_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did Northerly place 6th?`:
```sql
                SELECT "date" FROM "2002_03_season_as_a_six_year_old" WHERE "result"='6th';
```
## Task
Generate a SQL query to answer the following question:
`What was the weight in kg on the day of the race at Ranvet Stakes?`

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

CREATE TABLE "2002_03_season_as_a_six_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the weight in kg on the day of the race at Ranvet Stakes?`:
```sql
                SELECT "weight_kg" FROM "2002_03_season_as_a_six_year_old" WHERE "race"='Ranvet Stakes';
```