cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Affiliation, when Nickname is Bulldogs?`

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

CREATE TABLE "current_teams" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Affiliation, when Nickname is Bulldogs?`:
```sql
                SELECT "affiliation" FROM "current_teams" WHERE "nickname"='bulldogs';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Founded, when Enrollment is 4,000?`

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

CREATE TABLE "current_teams" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Founded, when Enrollment is 4,000?`:
```sql
                SELECT AVG("founded") FROM "current_teams" WHERE "enrollment"='4,000';
```
## Task
Generate a SQL query to answer the following question:
`Which team raced at Amaroo Park?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team raced at Amaroo Park?`:
```sql
                SELECT "team" FROM "race_calendar" WHERE "circuit"='amaroo park';
```
## Task
Generate a SQL query to answer the following question:
`On what date did Dick Johnson with at Calder?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did Dick Johnson with at Calder?`:
```sql
                SELECT "date" FROM "race_calendar" WHERE "winner"='dick johnson' AND "race_title"='calder';
```
## Task
Generate a SQL query to answer the following question:
`Which team raced on Oran Park Raceway?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team raced on Oran Park Raceway?`:
```sql
                SELECT "team" FROM "race_calendar" WHERE "circuit"='oran park raceway';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the race in Melbourne, Victoria?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the race in Melbourne, Victoria?`:
```sql
                SELECT "date" FROM "race_calendar" WHERE "city_state"='melbourne, victoria';
```
## Task
Generate a SQL query to answer the following question:
`Which city or state contains Calder Park Raceway?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city or state contains Calder Park Raceway?`:
```sql
                SELECT "city_state" FROM "race_calendar" WHERE "circuit"='calder park raceway';
```
## Task
Generate a SQL query to answer the following question:
`What is the most reduced Margin that has a St Kilda Saints of 11.13 (79)?`

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

CREATE TABLE "home_and_away_rounds" (
  "round" text,
  "st_kilda_saints" text,
  "opposition" text,
  "their_score" text,
  "margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most reduced Margin that has a St Kilda Saints of 11.13 (79)?`:
```sql
                SELECT MIN("margin") FROM "home_and_away_rounds" WHERE "st_kilda_saints"='11.13 (79)';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Margin that has a Round of 13. (h)?`

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

CREATE TABLE "home_and_away_rounds" (
  "round" text,
  "st_kilda_saints" text,
  "opposition" text,
  "their_score" text,
  "margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Margin that has a Round of 13. (h)?`:
```sql
                SELECT AVG("margin") FROM "home_and_away_rounds" WHERE "round"='13. (h)';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of South Adelaide?`

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

CREATE TABLE "south_australia" (
  "team" text,
  "coach" text,
  "home_ground" text,
  "location" text,
  "founded" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of South Adelaide?`:
```sql
                SELECT "location" FROM "south_australia" WHERE "team"='south adelaide';
```
## Task
Generate a SQL query to answer the following question:
`Which team has an unknown coach and location of Athelstone?`

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

CREATE TABLE "south_australia" (
  "team" text,
  "coach" text,
  "home_ground" text,
  "location" text,
  "founded" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has an unknown coach and location of Athelstone?`:
```sql
                SELECT "team" FROM "south_australia" WHERE "coach"='unknown' AND "location"='athelstone';
```
## Task
Generate a SQL query to answer the following question:
`When was the team that plays at Athelstone founded?`

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

CREATE TABLE "south_australia" (
  "team" text,
  "coach" text,
  "home_ground" text,
  "location" text,
  "founded" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the team that plays at Athelstone founded?`:
```sql
                SELECT "founded" FROM "south_australia" WHERE "location"='athelstone';
```
## Task
Generate a SQL query to answer the following question:
`Who is the coach of the team from Port Pirie?`

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

CREATE TABLE "south_australia" (
  "team" text,
  "coach" text,
  "home_ground" text,
  "location" text,
  "founded" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the coach of the team from Port Pirie?`:
```sql
                SELECT "coach" FROM "south_australia" WHERE "location"='port pirie';
```
## Task
Generate a SQL query to answer the following question:
`Who is the coach of the team with home ground at Club Cove?`

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

CREATE TABLE "south_australia" (
  "team" text,
  "coach" text,
  "home_ground" text,
  "location" text,
  "founded" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the coach of the team with home ground at Club Cove?`:
```sql
                SELECT "coach" FROM "south_australia" WHERE "home_ground"='club cove';
```
## Task
Generate a SQL query to answer the following question:
`Which team was founded in 1970?`

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

CREATE TABLE "south_australia" (
  "team" text,
  "coach" text,
  "home_ground" text,
  "location" text,
  "founded" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team was founded in 1970?`:
```sql
                SELECT "team" FROM "south_australia" WHERE "founded"='1970';
```
## Task
Generate a SQL query to answer the following question:
`When did acharya shree koshalendraprasadji maharaj become acharya?`

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

CREATE TABLE "acharyas" (
  "acharya_number" real,
  "name_of_acharya" text,
  "born_on" text,
  "became_acharya_on" text,
  "death" text,
  "term" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did acharya shree koshalendraprasadji maharaj become acharya?`:
```sql
                SELECT "became_acharya_on" FROM "acharyas" WHERE "name_of_acharya"='acharya shree koshalendraprasadji maharaj';
```
## Task
Generate a SQL query to answer the following question:
`What is the term of acharya shree vasudevprasadji maharaj?`

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

CREATE TABLE "acharyas" (
  "acharya_number" real,
  "name_of_acharya" text,
  "born_on" text,
  "became_acharya_on" text,
  "death" text,
  "term" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the term of acharya shree vasudevprasadji maharaj?`:
```sql
                SELECT "term" FROM "acharyas" WHERE "name_of_acharya"='acharya shree vasudevprasadji maharaj';
```
## Task
Generate a SQL query to answer the following question:
`What was the event where justin robbins had a record of 9-4-1?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the event where justin robbins had a record of 9-4-1?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='9-4-1';
```
## Task
Generate a SQL query to answer the following question:
`Where was the location where justin robbins fought against billy kidd?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the location where justin robbins fought against billy kidd?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='billy kidd';
```
## Task
Generate a SQL query to answer the following question:
`What was the method of resolution for the fight at cage warriors 39?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the method of resolution for the fight at cage warriors 39?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='cage warriors 39';
```
## Task
Generate a SQL query to answer the following question:
`A total larger than 302 and playoffs of 35 also list the total of regular seasons as what?`

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

CREATE TABLE "top_goalscorers" (
  "name" text,
  "years" text,
  "regular_season" real,
  "playoffs" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `A total larger than 302 and playoffs of 35 also list the total of regular seasons as what?`:
```sql
                SELECT SUM("regular_season") FROM "top_goalscorers" WHERE "playoffs"=35 AND "total">302;
```
## Task
Generate a SQL query to answer the following question:
`What is the college/junior/club team (league) of lw position player mark miller, from a round greater than 4?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the college/junior/club team (league) of lw position player mark miller, from a round greater than 4?`:
```sql
                SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round">4 AND "position"='lw' AND "player"='mark miller';
```
## Task
Generate a SQL query to answer the following question:
`Who is the lw position player from a round greater than 10?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the lw position player from a round greater than 10?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "position"='lw' AND "round">10;
```
## Task
Generate a SQL query to answer the following question:
`Who is the player from round 8?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from round 8?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "round"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the player from round 7?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the player from round 7?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "round"=7;
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the player from round 5?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the player from round 5?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "round"=5;
```
## Task
Generate a SQL query to answer the following question:
`What state had an elected/assumed office in 2013?`

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

CREATE TABLE "list_of_current_northeast_governors" (
  "governor" text,
  "state" text,
  "past" text,
  "party" text,
  "elected_assumed_office" real,
  "seat_up" real
);
### SQL
Given the database schema, here is the SQL query that answers `What state had an elected/assumed office in 2013?`:
```sql
                SELECT "state" FROM "list_of_current_northeast_governors" WHERE "elected_assumed_office"=2013;
```
## Task
Generate a SQL query to answer the following question:
`What was the air date of the episode that has an 18-49 of 2.2/7?`

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

CREATE TABLE "season_2_2009_2010_weekly_ratings" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "18_49" text,
  "viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the air date of the episode that has an 18-49 of 2.2/7?`:
```sql
                SELECT "air_date" FROM "season_2_2009_2010_weekly_ratings" WHERE "18_49"='2.2/7';
```
## Task
Generate a SQL query to answer the following question:
`What was the air date of 'Gary tries to do it all'?`

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

CREATE TABLE "season_2_2009_2010_weekly_ratings" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "18_49" text,
  "viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the air date of 'Gary tries to do it all'?`:
```sql
                SELECT "air_date" FROM "season_2_2009_2010_weekly_ratings" WHERE "episode"='gary tries to do it all';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of viewers for the episode that has an 18-49 of 1.8/6?`

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

CREATE TABLE "season_2_2009_2010_weekly_ratings" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "18_49" text,
  "viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of viewers for the episode that has an 18-49 of 1.8/6?`:
```sql
                SELECT MAX("viewers") FROM "season_2_2009_2010_weekly_ratings" WHERE "18_49"='1.8/6';
```
## Task
Generate a SQL query to answer the following question:
`What was the timeslot for the episode with less than 6.76 viewers and an 18-49 of 1.9/5?`

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

CREATE TABLE "season_2_2009_2010_weekly_ratings" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "18_49" text,
  "viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the timeslot for the episode with less than 6.76 viewers and an 18-49 of 1.9/5?`:
```sql
                SELECT "timeslot" FROM "season_2_2009_2010_weekly_ratings" WHERE "viewers"<6.76 AND "18_49"='1.9/5';
```
## Task
Generate a SQL query to answer the following question:
`What is the timeslot for the episode with an 18-49 of 2.2/7?`

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

CREATE TABLE "season_2_2009_2010_weekly_ratings" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "18_49" text,
  "viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the timeslot for the episode with an 18-49 of 2.2/7?`:
```sql
                SELECT "timeslot" FROM "season_2_2009_2010_weekly_ratings" WHERE "18_49"='2.2/7';
```
## Task
Generate a SQL query to answer the following question:
`What is the timeslot for 'gary has to choose' with an 18-49 of 1.8/5?`

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

CREATE TABLE "season_2_2009_2010_weekly_ratings" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "18_49" text,
  "viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the timeslot for 'gary has to choose' with an 18-49 of 1.8/5?`:
```sql
                SELECT "timeslot" FROM "season_2_2009_2010_weekly_ratings" WHERE "18_49"='1.8/5' AND "episode"='gary has to choose';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the university that was established in 2000?`

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

CREATE TABLE "current_women_s_teams" (
  "institution" text,
  "location" text,
  "nickname" text,
  "enrollment" real,
  "established" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the university that was established in 2000?`:
```sql
                SELECT "location" FROM "current_women_s_teams" WHERE "established"=2000;
```
## Task
Generate a SQL query to answer the following question:
`What year was the team with the nickname pride established?`

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

CREATE TABLE "current_women_s_teams" (
  "institution" text,
  "location" text,
  "nickname" text,
  "enrollment" real,
  "established" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the team with the nickname pride established?`:
```sql
                SELECT COUNT("established") FROM "current_women_s_teams" WHERE "nickname"='pride';
```
## Task
Generate a SQL query to answer the following question:
`What is the enrollment of the university established in or after 2011?`

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

CREATE TABLE "current_women_s_teams" (
  "institution" text,
  "location" text,
  "nickname" text,
  "enrollment" real,
  "established" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment of the university established in or after 2011?`:
```sql
                SELECT "enrollment" FROM "current_women_s_teams" WHERE "established">2011;
```
## Task
Generate a SQL query to answer the following question:
`What country was ole ellefsæter from?`

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

CREATE TABLE "men_s_50_km" (
  "winner" text,
  "country" text,
  "winter_olympics" real,
  "fis_nordic_world_ski_championships" text,
  "holmenkollen" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was ole ellefsæter from?`:
```sql
                SELECT "country" FROM "men_s_50_km" WHERE "winner"='ole ellefsæter';
```
## Task
Generate a SQL query to answer the following question:
`Who won the FIS Nordic World Ski Championships in 1972?`

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

CREATE TABLE "men_s_50_km" (
  "winner" text,
  "country" text,
  "winter_olympics" real,
  "fis_nordic_world_ski_championships" text,
  "holmenkollen" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the FIS Nordic World Ski Championships in 1972?`:
```sql
                SELECT "winner" FROM "men_s_50_km" WHERE "fis_nordic_world_ski_championships"='1972';
```
## Task
Generate a SQL query to answer the following question:
`For a country of Spain, place of t6, what is the Money ($)?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a country of Spain, place of t6, what is the Money ($)?`:
```sql
                SELECT "money" FROM "final_round" WHERE "place"='t6' AND "country"='spain';
```
## Task
Generate a SQL query to answer the following question:
`Which country has a to par of e?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has a to par of e?`:
```sql
                SELECT "country" FROM "final_round" WHERE "to_par"='e';
```
## Task
Generate a SQL query to answer the following question:
`Which player is from Australia, and has a place of t9?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player is from Australia, and has a place of t9?`:
```sql
                SELECT "player" FROM "final_round" WHERE "place"='t9' AND "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`What was the place for player John Merrick?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the place for player John Merrick?`:
```sql
                SELECT "place" FROM "final_round" WHERE "player"='john merrick';
```
## Task
Generate a SQL query to answer the following question:
`Which country had a place of t1, as well as a score of 72-68-70-73=283?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country had a place of t1, as well as a score of 72-68-70-73=283?`:
```sql
                SELECT "country" FROM "final_round" WHERE "place"='t1' AND "score"='72-68-70-73=283';
```
## Task
Generate a SQL query to answer the following question:
`What place has jack renner as the player?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place has jack renner as the player?`:
```sql
                SELECT "place" FROM "first_round" WHERE "player"='jack renner';
```
## Task
Generate a SQL query to answer the following question:
`What to par has The United States as the country, t8 as the place, and tommy valentine as the player?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What to par has The United States as the country, t8 as the place, and tommy valentine as the player?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "country"='united states' AND "place"='t8' AND "player"='tommy valentine';
```
## Task
Generate a SQL query to answer the following question:
`What to par has 66 as the score?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What to par has 66 as the score?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "score"=66;
```
## Task
Generate a SQL query to answer the following question:
`Mean of played with smaller than 7 conceded?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Mean of played with smaller than 7 conceded?`:
```sql
                SELECT AVG("played") FROM "torneo_clausura" WHERE "conceded"<7;
```
## Task
Generate a SQL query to answer the following question:
`The highest position with more than 16 points and less than 7 concedes?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `The highest position with more than 16 points and less than 7 concedes?`:
```sql
                SELECT MAX("position") FROM "torneo_clausura" WHERE "points">16 AND "conceded"<7;
```
## Task
Generate a SQL query to answer the following question:
`The highest draws with smaller than 9 played?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `The highest draws with smaller than 9 played?`:
```sql
                SELECT MAX("draws") FROM "torneo_clausura" WHERE "played"<9;
```
## Task
Generate a SQL query to answer the following question:
`Which Home Town has a Took Office of 1983, and a District larger than 15?`

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

CREATE TABLE "senate" (
  "senator" text,
  "party" text,
  "district" real,
  "home_town" text,
  "took_office" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home Town has a Took Office of 1983, and a District larger than 15?`:
```sql
                SELECT "home_town" FROM "senate" WHERE "took_office"=1983 AND "district">15;
```
## Task
Generate a SQL query to answer the following question:
`Which Senator has a Party of republican, a Home Town of houston, and a District of 7?`

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

CREATE TABLE "senate" (
  "senator" text,
  "party" text,
  "district" real,
  "home_town" text,
  "took_office" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Senator has a Party of republican, a Home Town of houston, and a District of 7?`:
```sql
                SELECT "senator" FROM "senate" WHERE "party"='republican' AND "home_town"='houston' AND "district"=7;
```
## Task
Generate a SQL query to answer the following question:
`Which Home Town has a Senator of dan shelley?`

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

CREATE TABLE "senate" (
  "senator" text,
  "party" text,
  "district" real,
  "home_town" text,
  "took_office" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home Town has a Senator of dan shelley?`:
```sql
                SELECT "home_town" FROM "senate" WHERE "senator"='dan shelley';
```
## Task
Generate a SQL query to answer the following question:
`Which Took Office has a Party of democratic, a Home Town of victoria, and a District smaller than 18?`

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

CREATE TABLE "senate" (
  "senator" text,
  "party" text,
  "district" real,
  "home_town" text,
  "took_office" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Took Office has a Party of democratic, a Home Town of victoria, and a District smaller than 18?`:
```sql
                SELECT COUNT("took_office") FROM "senate" WHERE "party"='democratic' AND "home_town"='victoria' AND "district"<18;
```
## Task
Generate a SQL query to answer the following question:
`Which Took Office has a District of 29?`

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

CREATE TABLE "senate" (
  "senator" text,
  "party" text,
  "district" real,
  "home_town" text,
  "took_office" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Took Office has a District of 29?`:
```sql
                SELECT AVG("took_office") FROM "senate" WHERE "district"=29;
```
## Task
Generate a SQL query to answer the following question:
`What are the average Laps on Grid 15?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the average Laps on Grid 15?`:
```sql
                SELECT AVG("laps") FROM "125cc_classification" WHERE "grid"=15;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of Laps that have a Time of +24.440, and a Grid higher than 18?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of Laps that have a Time of +24.440, and a Grid higher than 18?`:
```sql
                SELECT MIN("laps") FROM "125cc_classification" WHERE "time"='+24.440' AND "grid">18;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of Laps that have a Time of +18.366, and a Grid lower than 13?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of Laps that have a Time of +18.366, and a Grid lower than 13?`:
```sql
                SELECT MAX("laps") FROM "125cc_classification" WHERE "grid"<13 AND "time"='+18.366';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Wins, when Season is 2011, when Podiums is 1, and when Poles is less than 0?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Wins, when Season is 2011, when Podiums is 1, and when Poles is less than 0?`:
```sql
                SELECT MIN("wins") FROM "career_summary" WHERE "season"='2011' AND "podiums"=1 AND "poles"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is Position, when Points is greater than 7, and when Series is Toyota Racing Series?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Position, when Points is greater than 7, and when Series is Toyota Racing Series?`:
```sql
                SELECT "position" FROM "career_summary" WHERE "points">7 AND "series"='toyota racing series';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Races, when Series is Toyota Racing Series, and when Podiums is greater than 3?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Races, when Series is Toyota Racing Series, and when Podiums is greater than 3?`:
```sql
                SELECT SUM("races") FROM "career_summary" WHERE "series"='toyota racing series' AND "podiums">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Podiums, when Wins is greater than 1, when Races is 2, and when Points is greater than 150?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Podiums, when Wins is greater than 1, when Races is 2, and when Points is greater than 150?`:
```sql
                SELECT AVG("podiums") FROM "career_summary" WHERE "wins">1 AND "races"=2 AND "points">150;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Poles, when Position is 6th, and when Points is less than 164?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Poles, when Position is 6th, and when Points is less than 164?`:
```sql
                SELECT COUNT("poles") FROM "career_summary" WHERE "position"='6th' AND "points"<164;
```
## Task
Generate a SQL query to answer the following question:
`Which boys/girls school is a day school with an anglican denomination?`

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

CREATE TABLE "current_member_schools" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "boys_girls" text,
  "day_boarding" text,
  "year_entered_competition" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which boys/girls school is a day school with an anglican denomination?`:
```sql
                SELECT "boys_girls" FROM "current_member_schools" WHERE "denomination"='anglican' AND "day_boarding"='day';
```
## Task
Generate a SQL query to answer the following question:
`Which is the earliest founded day school to have entered the competition after 1958?`

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

CREATE TABLE "current_member_schools" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "boys_girls" text,
  "day_boarding" text,
  "year_entered_competition" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the earliest founded day school to have entered the competition after 1958?`:
```sql
                SELECT MIN("founded") FROM "current_member_schools" WHERE "day_boarding"='day' AND "year_entered_competition">1958;
```
## Task
Generate a SQL query to answer the following question:
`How many to par in England?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many to par in England?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "country"='england';
```
## Task
Generate a SQL query to answer the following question:
`Where is David Frost from?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is David Frost from?`:
```sql
                SELECT "place" FROM "second_round" WHERE "player"='david frost';
```
## Task
Generate a SQL query to answer the following question:
`Which country earned place T3 with a score of 70-68=138?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country earned place T3 with a score of 70-68=138?`:
```sql
                SELECT "country" FROM "second_round" WHERE "place"='t3' AND "score"='70-68=138';
```
## Task
Generate a SQL query to answer the following question:
`Which country had a score of 69-67=136?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country had a score of 69-67=136?`:
```sql
                SELECT "country" FROM "second_round" WHERE "score"='69-67=136';
```
## Task
Generate a SQL query to answer the following question:
`How many to par for Greg Norman?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many to par for Greg Norman?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "player"='greg norman';
```
## Task
Generate a SQL query to answer the following question:
`What was the high rebounds after game 14 for Denver?`

### 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 high rebounds after game 14 for Denver?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "game">14 AND "team"='denver';
```
## Task
Generate a SQL query to answer the following question:
`What was the latest game that Sacramento played?`

### 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 latest game that Sacramento played?`:
```sql
                SELECT MAX("game") FROM "game_log" WHERE "team"='sacramento';
```
## Task
Generate a SQL query to answer the following question:
`What was the record of 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 `What was the record of Utah?`:
```sql
                SELECT "record" FROM "game_log" WHERE "team"='utah';
```
## Task
Generate a SQL query to answer the following question:
`What is the parent magazine of Dengeki g's festival! deluxe?`

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

CREATE TABLE "special_editions" (
  "title" text,
  "parent_magazine" text,
  "magazine_type" text,
  "frequency" text,
  "magazine_run" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the parent magazine of Dengeki g's festival! deluxe?`:
```sql
                SELECT "parent_magazine" FROM "special_editions" WHERE "title"='dengeki g''s festival! deluxe';
```
## Task
Generate a SQL query to answer the following question:
`How often does Dengeki girl's style come out?`

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

CREATE TABLE "special_editions" (
  "title" text,
  "parent_magazine" text,
  "magazine_type" text,
  "frequency" text,
  "magazine_run" text
);
### SQL
Given the database schema, here is the SQL query that answers `How often does Dengeki girl's style come out?`:
```sql
                SELECT "frequency" FROM "special_editions" WHERE "parent_magazine"='dengeki girl''s style';
```
## Task
Generate a SQL query to answer the following question:
`What titles come out monthly?`

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

CREATE TABLE "special_editions" (
  "title" text,
  "parent_magazine" text,
  "magazine_type" text,
  "frequency" text,
  "magazine_run" text
);
### SQL
Given the database schema, here is the SQL query that answers `What titles come out monthly?`:
```sql
                SELECT "title" FROM "special_editions" WHERE "frequency"='monthly';
```
## Task
Generate a SQL query to answer the following question:
`What is the parent magazine for Dengeki 5pb.?`

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

CREATE TABLE "special_editions" (
  "title" text,
  "parent_magazine" text,
  "magazine_type" text,
  "frequency" text,
  "magazine_run" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the parent magazine for Dengeki 5pb.?`:
```sql
                SELECT "parent_magazine" FROM "special_editions" WHERE "title"='dengeki 5pb.';
```
## Task
Generate a SQL query to answer the following question:
`What is the magazine type that ran from March 3, 2009–February 5, 2010?`

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

CREATE TABLE "special_editions" (
  "title" text,
  "parent_magazine" text,
  "magazine_type" text,
  "frequency" text,
  "magazine_run" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the magazine type that ran from March 3, 2009–February 5, 2010?`:
```sql
                SELECT "magazine_type" FROM "special_editions" WHERE "magazine_run"='march 3, 2009–february 5, 2010';
```
## Task
Generate a SQL query to answer the following question:
`What is the frequency for the magazine that runs September 2, 2010?`

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

CREATE TABLE "special_editions" (
  "title" text,
  "parent_magazine" text,
  "magazine_type" text,
  "frequency" text,
  "magazine_run" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency for the magazine that runs September 2, 2010?`:
```sql
                SELECT "frequency" FROM "special_editions" WHERE "magazine_run"='september 2, 2010';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of laps with a +1:23.297 time/retired and a grid larger than 4?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of laps with a +1:23.297 time/retired and a grid larger than 4?`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "time_retired"='+1:23.297' AND "grid">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the time/retired with a toyota constructor and a 5 grid?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time/retired with a toyota constructor and a 5 grid?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "constructor"='toyota' AND "grid"=5;
```