cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`when was the ship laid down when it was completed on 3 july 1926?`

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

CREATE TABLE "list_of_ships" (
  "kanji" text,
  "name" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the ship laid down when it was completed on 3 july 1926?`:
```sql
                SELECT "laid_down" FROM "list_of_ships" WHERE "completed"='3 july 1926';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game at the Chicago Stadium?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" 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 at the Chicago Stadium?`:
```sql
                SELECT "score" FROM "game_log" WHERE "location_attendance"='chicago stadium';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game when the record was 46-31?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game when the record was 46-31?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='46-31';
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the Swimmer in Lane 5?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank of the Swimmer in Lane 5?`:
```sql
                SELECT AVG("rank") FROM "semifinal_1" WHERE "lane"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the swimmer with a Time of 49 in Lane 7 or larger?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank of the swimmer with a Time of 49 in Lane 7 or larger?`:
```sql
                SELECT COUNT("rank") FROM "semifinal_1" WHERE "time"=49 AND "lane">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the Lane of the swimmer with a Rank of 8?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lane of the swimmer with a Rank of 8?`:
```sql
                SELECT MAX("lane") FROM "semifinal_1" WHERE "rank"=8;
```
## Task
Generate a SQL query to answer the following question:
`What Level has a Season larger than 2010?`

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

CREATE TABLE "season_to_season" (
  "season" real,
  "level" text,
  "division" text,
  "administration" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Level has a Season larger than 2010?`:
```sql
                SELECT "level" FROM "season_to_season" WHERE "season">2010;
```
## Task
Generate a SQL query to answer the following question:
`What Adminstration has a Season of 2000?`

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

CREATE TABLE "season_to_season" (
  "season" real,
  "level" text,
  "division" text,
  "administration" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Adminstration has a Season of 2000?`:
```sql
                SELECT "administration" FROM "season_to_season" WHERE "season"=2000;
```
## Task
Generate a SQL query to answer the following question:
`What Position has a Season larger than 2000 with a Level of Tier 3?`

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

CREATE TABLE "season_to_season" (
  "season" real,
  "level" text,
  "division" text,
  "administration" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Position has a Season larger than 2000 with a Level of Tier 3?`:
```sql
                SELECT "position" FROM "season_to_season" WHERE "season">2000 AND "level"='tier 3';
```
## Task
Generate a SQL query to answer the following question:
`What Position has a Level of tier 4 with a Season smaller than 2003?`

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

CREATE TABLE "season_to_season" (
  "season" real,
  "level" text,
  "division" text,
  "administration" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Position has a Level of tier 4 with a Season smaller than 2003?`:
```sql
                SELECT "position" FROM "season_to_season" WHERE "level"='tier 4' AND "season"<2003;
```
## Task
Generate a SQL query to answer the following question:
`Who had the most rebounds in the game against New York?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the most rebounds in the game against New York?`:
```sql
                SELECT "high_rebounds" FROM "regular_season" WHERE "opponent"='new york';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent for game 30?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent for game 30?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "game"=30;
```
## Task
Generate a SQL query to answer the following question:
`Who had the most rebounds in the game at the Mohegan Sun Arena that led to a 24-7 record?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the most rebounds in the game at the Mohegan Sun Arena that led to a 24-7 record?`:
```sql
                SELECT "high_rebounds" FROM "regular_season" WHERE "location"='mohegan sun arena' AND "record"='24-7';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the September 21, 1980 game?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the September 21, 1980 game?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "date"='september 21, 1980';
```
## Task
Generate a SQL query to answer the following question:
`Which Doubles have a Total larger than 176, and a Date smaller than 1907, and Doubles, I Class smaller than 21?`

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

CREATE TABLE "feast_days" (
  "date" real,
  "doubles_i_class" real,
  "doubles_ii_class" real,
  "greater_doubles" real,
  "doubles" real,
  "semidoubles" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Doubles have a Total larger than 176, and a Date smaller than 1907, and Doubles, I Class smaller than 21?`:
```sql
                SELECT MAX("doubles") FROM "feast_days" WHERE "total">176 AND "date"<1907 AND "doubles_i_class"<21;
```
## Task
Generate a SQL query to answer the following question:
`Which Total has a Date of 1602, and Greater Doubles smaller than 16?`

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

CREATE TABLE "feast_days" (
  "date" real,
  "doubles_i_class" real,
  "doubles_ii_class" real,
  "greater_doubles" real,
  "doubles" real,
  "semidoubles" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a Date of 1602, and Greater Doubles smaller than 16?`:
```sql
                SELECT MAX("total") FROM "feast_days" WHERE "date"=1602 AND "greater_doubles"<16;
```
## Task
Generate a SQL query to answer the following question:
`How much Total has Semidoubles smaller than 78, and Doubles, II Class smaller than 17?`

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

CREATE TABLE "feast_days" (
  "date" real,
  "doubles_i_class" real,
  "doubles_ii_class" real,
  "greater_doubles" real,
  "doubles" real,
  "semidoubles" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Total has Semidoubles smaller than 78, and Doubles, II Class smaller than 17?`:
```sql
                SELECT COUNT("total") FROM "feast_days" WHERE "semidoubles"<78 AND "doubles_ii_class"<17;
```
## Task
Generate a SQL query to answer the following question:
`Which Greater Doubles have Doubles, II Class smaller than 17?`

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

CREATE TABLE "feast_days" (
  "date" real,
  "doubles_i_class" real,
  "doubles_ii_class" real,
  "greater_doubles" real,
  "doubles" real,
  "semidoubles" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Greater Doubles have Doubles, II Class smaller than 17?`:
```sql
                SELECT AVG("greater_doubles") FROM "feast_days" WHERE "doubles_ii_class"<17;
```
## Task
Generate a SQL query to answer the following question:
`How much Total has Doubles of 45, and Doubles, II Class larger than 18?`

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

CREATE TABLE "feast_days" (
  "date" real,
  "doubles_i_class" real,
  "doubles_ii_class" real,
  "greater_doubles" real,
  "doubles" real,
  "semidoubles" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Total has Doubles of 45, and Doubles, II Class larger than 18?`:
```sql
                SELECT COUNT("total") FROM "feast_days" WHERE "doubles"=45 AND "doubles_ii_class">18;
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a 2nd run of 1:17.170 (8)?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "name" text,
  "1st_run" text,
  "2nd_run" text,
  "3rd_run" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a 2nd run of 1:17.170 (8)?`:
```sql
                SELECT MAX("rank") FROM "semifinal_1" WHERE "2nd_run"='1:17.170 (8)';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Total smaller than 10, and a 3rd run of 36.457 (2)?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "name" text,
  "1st_run" text,
  "2nd_run" text,
  "3rd_run" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Total smaller than 10, and a 3rd run of 36.457 (2)?`:
```sql
                SELECT MAX("rank") FROM "semifinal_1" WHERE "total"<10 AND "3rd_run"='36.457 (2)';
```
## Task
Generate a SQL query to answer the following question:
`Which Name has a 3rd run of 36.200 (1)?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "name" text,
  "1st_run" text,
  "2nd_run" text,
  "3rd_run" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has a 3rd run of 36.200 (1)?`:
```sql
                SELECT "name" FROM "semifinal_1" WHERE "3rd_run"='36.200 (1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the value of the size (steps) that has just ratio 10:9 and a size (cents) more than 160`

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

CREATE TABLE "size_of_intervals_in_15_equal_temperamen" (
  "interval_name" text,
  "size_steps" real,
  "size_cents" real,
  "just_ratio" text,
  "just_cents" real,
  "error" text,
  "audio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value of the size (steps) that has just ratio 10:9 and a size (cents) more than 160`:
```sql
                SELECT COUNT("size_steps") FROM "size_of_intervals_in_15_equal_temperamen" WHERE "just_ratio"='10:9' AND "size_cents">160;
```
## Task
Generate a SQL query to answer the following question:
`what is the value of the audio with a just ratio 21:20`

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

CREATE TABLE "size_of_intervals_in_15_equal_temperamen" (
  "interval_name" text,
  "size_steps" real,
  "size_cents" real,
  "just_ratio" text,
  "just_cents" real,
  "error" text,
  "audio" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the value of the audio with a just ratio 21:20`:
```sql
                SELECT "audio" FROM "size_of_intervals_in_15_equal_temperamen" WHERE "just_ratio"='21:20';
```
## Task
Generate a SQL query to answer the following question:
`What is the error that has a size (steps) more than 5 and a just (cents) value 536.95`

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

CREATE TABLE "size_of_intervals_in_15_equal_temperamen" (
  "interval_name" text,
  "size_steps" real,
  "size_cents" real,
  "just_ratio" text,
  "just_cents" real,
  "error" text,
  "audio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the error that has a size (steps) more than 5 and a just (cents) value 536.95`:
```sql
                SELECT "error" FROM "size_of_intervals_in_15_equal_temperamen" WHERE "size_steps">5 AND "just_cents"=536.95;
```
## Task
Generate a SQL query to answer the following question:
`What is the average size (cents) with an interval of major third and size (steps) more than 5`

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

CREATE TABLE "size_of_intervals_in_15_equal_temperamen" (
  "interval_name" text,
  "size_steps" real,
  "size_cents" real,
  "just_ratio" text,
  "just_cents" real,
  "error" text,
  "audio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average size (cents) with an interval of major third and size (steps) more than 5`:
```sql
                SELECT AVG("size_cents") FROM "size_of_intervals_in_15_equal_temperamen" WHERE "interval_name"='major third' AND "size_steps">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of points for places over 7 and having a draw order of 4?`

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

CREATE TABLE "semi_final_1_31_january_2009" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of points for places over 7 and having a draw order of 4?`:
```sql
                SELECT AVG("points") FROM "semi_final_1_31_january_2009" WHERE "place">7 AND "draw"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of placings for the song "Tavo Spalvos"?`

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

CREATE TABLE "semi_final_1_31_january_2009" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of placings for the song "Tavo Spalvos"?`:
```sql
                SELECT SUM("place") FROM "semi_final_1_31_january_2009" WHERE "song"='\"tavo spalvos\"';
```
## Task
Generate a SQL query to answer the following question:
`How many league goals did the player with 10 league apps and 0 FA cup goals have?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many league goals did the player with 10 league apps and 0 FA cup goals have?`:
```sql
                SELECT COUNT("league_goals") FROM "appearances_and_goals" WHERE "fa_cup_goals"=0 AND "league_apps"='10';
```
## Task
Generate a SQL query to answer the following question:
`What was the sum of league goals where the toal was 8 and league cup goals were larger than 0?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the sum of league goals where the toal was 8 and league cup goals were larger than 0?`:
```sql
                SELECT SUM("league_goals") FROM "appearances_and_goals" WHERE "total_goals"=8 AND "league_cup_goals">0;
```
## Task
Generate a SQL query to answer the following question:
`For the Japanese title サプリ that had 11 episodes, what is the average ratings?`

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

CREATE TABLE "2006_summer_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the Japanese title サプリ that had 11 episodes, what is the average ratings?`:
```sql
                SELECT "average_ratings" FROM "2006_summer_season" WHERE "episodes"=11 AND "japanese_title"='サプリ';
```
## Task
Generate a SQL query to answer the following question:
`When the average ratings is 10.3%, what is the average episodes?`

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

CREATE TABLE "2006_summer_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the average ratings is 10.3%, what is the average episodes?`:
```sql
                SELECT AVG("episodes") FROM "2006_summer_season" WHERE "average_ratings"='10.3%';
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest episodes with the Romaji title Regatta~Kimi to Ita Eien~?`

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

CREATE TABLE "2006_summer_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest episodes with the Romaji title Regatta~Kimi to Ita Eien~?`:
```sql
                SELECT MIN("episodes") FROM "2006_summer_season" WHERE "romaji_title"='regatta~kimi to ita eien~';
```
## Task
Generate a SQL query to answer the following question:
`With the Romaji title of Hanayome Wa Yakudoshi!, what is the Japanese title?`

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

CREATE TABLE "2006_summer_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `With the Romaji title of Hanayome Wa Yakudoshi!, what is the Japanese title?`:
```sql
                SELECT "japanese_title" FROM "2006_summer_season" WHERE "romaji_title"='hanayome wa yakudoshi!';
```
## Task
Generate a SQL query to answer the following question:
`For what Japanese title is there less than 11 episodes and the Romaji title is Regatta~Kimi to Ita Eien~?`

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

CREATE TABLE "2006_summer_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `For what Japanese title is there less than 11 episodes and the Romaji title is Regatta~Kimi to Ita Eien~?`:
```sql
                SELECT "japanese_title" FROM "2006_summer_season" WHERE "episodes"<11 AND "romaji_title"='regatta~kimi to ita eien~';
```
## Task
Generate a SQL query to answer the following question:
`what is the most episodes when the average ratings is 18.8%?`

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

CREATE TABLE "2006_fall_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the most episodes when the average ratings is 18.8%?`:
```sql
                SELECT MAX("episodes") FROM "2006_fall_season" WHERE "average_ratings"='18.8%';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes when the tv station is ntv and the japanese title is たったひとつの恋?`

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

CREATE TABLE "2006_fall_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes when the tv station is ntv and the japanese title is たったひとつの恋?`:
```sql
                SELECT "episodes" FROM "2006_fall_season" WHERE "tv_station"='ntv' AND "japanese_title"='たったひとつの恋';
```
## Task
Generate a SQL query to answer the following question:
`what is the tv station when the romaji title is kazoku~tsuma no fuzai・otto no sonzai~?`

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

CREATE TABLE "2006_fall_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the tv station when the romaji title is kazoku~tsuma no fuzai・otto no sonzai~?`:
```sql
                SELECT "tv_station" FROM "2006_fall_season" WHERE "romaji_title"='kazoku~tsuma no fuzai・otto no sonzai~';
```
## Task
Generate a SQL query to answer the following question:
`what is the tv station when the average ratings is 19.5%?`

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

CREATE TABLE "2006_fall_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the tv station when the average ratings is 19.5%?`:
```sql
                SELECT "tv_station" FROM "2006_fall_season" WHERE "average_ratings"='19.5%';
```
## Task
Generate a SQL query to answer the following question:
`Of all the schools that left before 2003, what is the average year joined?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `Of all the schools that left before 2003, what is the average year joined?`:
```sql
                SELECT AVG("year_joined") FROM "membership" WHERE "year_left"<2003;
```
## Task
Generate a SQL query to answer the following question:
`What year did the Ingots, who left after 2007, join?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the Ingots, who left after 2007, join?`:
```sql
                SELECT COUNT("year_joined") FROM "membership" WHERE "mascot"='ingots' AND "year_left">2007;
```
## Task
Generate a SQL query to answer the following question:
`What is the original Release date of the Track written by Dallas Frazier?`

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

CREATE TABLE "track_listing" (
  "track" text,
  "song_title" text,
  "writer_s" text,
  "original_artist" text,
  "original_release" real,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original Release date of the Track written by Dallas Frazier?`:
```sql
                SELECT "original_release" FROM "track_listing" WHERE "writer_s"='dallas frazier';
```
## Task
Generate a SQL query to answer the following question:
`What is the Original Artis of the Track with a Length of 2:38?`

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

CREATE TABLE "track_listing" (
  "track" text,
  "song_title" text,
  "writer_s" text,
  "original_artist" text,
  "original_release" real,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Original Artis of the Track with a Length of 2:38?`:
```sql
                SELECT "original_artist" FROM "track_listing" WHERE "length"='2:38';
```
## Task
Generate a SQL query to answer the following question:
`What Song has a Length of 2:50?`

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

CREATE TABLE "track_listing" (
  "track" text,
  "song_title" text,
  "writer_s" text,
  "original_artist" text,
  "original_release" real,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Song has a Length of 2:50?`:
```sql
                SELECT "song_title" FROM "track_listing" WHERE "length"='2:50';
```
## Task
Generate a SQL query to answer the following question:
`What's the title when the genre is drama and network of KBS2 happening before 2011?`

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

CREATE TABLE "television_series" (
  "year" real,
  "title" text,
  "hangul_japanese" text,
  "role" text,
  "network" text,
  "genre" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title when the genre is drama and network of KBS2 happening before 2011?`:
```sql
                SELECT "title" FROM "television_series" WHERE "year"<2011 AND "network"='kbs2' AND "genre"='drama';
```
## Task
Generate a SQL query to answer the following question:
`What's the title when the genre is drama with a network of KBS2 happening in 2011?`

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

CREATE TABLE "television_series" (
  "year" real,
  "title" text,
  "hangul_japanese" text,
  "role" text,
  "network" text,
  "genre" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title when the genre is drama with a network of KBS2 happening in 2011?`:
```sql
                SELECT "title" FROM "television_series" WHERE "genre"='drama' AND "network"='kbs2' AND "year"=2011;
```
## Task
Generate a SQL query to answer the following question:
`What's the network in 2011?`

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

CREATE TABLE "television_series" (
  "year" real,
  "title" text,
  "hangul_japanese" text,
  "role" text,
  "network" text,
  "genre" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the network in 2011?`:
```sql
                SELECT "network" FROM "television_series" WHERE "year"=2011;
```
## Task
Generate a SQL query to answer the following question:
`What's the Hangul/Japanese that happened before 2014 having a role of Baek Seung-Jo?`

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

CREATE TABLE "television_series" (
  "year" real,
  "title" text,
  "hangul_japanese" text,
  "role" text,
  "network" text,
  "genre" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Hangul/Japanese that happened before 2014 having a role of Baek Seung-Jo?`:
```sql
                SELECT "hangul_japanese" FROM "television_series" WHERE "year"<2014 AND "role"='baek seung-jo';
```
## Task
Generate a SQL query to answer the following question:
`What's the Hangul/Japanese of Boys Over Flowers that's drama?`

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

CREATE TABLE "television_series" (
  "year" real,
  "title" text,
  "hangul_japanese" text,
  "role" text,
  "network" text,
  "genre" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Hangul/Japanese of Boys Over Flowers that's drama?`:
```sql
                SELECT "hangul_japanese" FROM "television_series" WHERE "genre"='drama' AND "title"='boys over flowers';
```
## Task
Generate a SQL query to answer the following question:
`What is the IHSAA class in monon?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSAA class in monon?`:
```sql
                SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "location"='monon';
```
## Task
Generate a SQL query to answer the following question:
`What is the IHSAA class with 395 in enrollment?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSAA class with 395 in enrollment?`:
```sql
                SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "enrollment"=395;
```
## Task
Generate a SQL query to answer the following question:
`What school has rebels as their mascot?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school has rebels as their mascot?`:
```sql
                SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='rebels';
```
## Task
Generate a SQL query to answer the following question:
`What is the total enrollment of the aa IHSAA class?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total enrollment of the aa IHSAA class?`:
```sql
                SELECT COUNT("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aa';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest enrollment at the pioneer school?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest enrollment at the pioneer school?`:
```sql
                SELECT MIN("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "school"='pioneer';
```
## Task
Generate a SQL query to answer the following question:
`What is the average enrollment of the IHSAA A class in wolcott?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average enrollment of the IHSAA A class in wolcott?`:
```sql
                SELECT AVG("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='a' AND "location"='wolcott';
```
## Task
Generate a SQL query to answer the following question:
`What is the Shirt No for Henry Bell Cisnero whose height is less than 190?`

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

CREATE TABLE "team_roster_season_2011_2012" (
  "shirt_no" real,
  "nationality" text,
  "player" text,
  "birth_date" text,
  "height" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Shirt No for Henry Bell Cisnero whose height is less than 190?`:
```sql
                SELECT MAX("shirt_no") FROM "team_roster_season_2011_2012" WHERE "height"<190 AND "player"='henry bell cisnero';
```
## Task
Generate a SQL query to answer the following question:
`What is the Shirt No for the person whose height is 188?`

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

CREATE TABLE "team_roster_season_2011_2012" (
  "shirt_no" real,
  "nationality" text,
  "player" text,
  "birth_date" text,
  "height" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Shirt No for the person whose height is 188?`:
```sql
                SELECT SUM("shirt_no") FROM "team_roster_season_2011_2012" WHERE "height"=188;
```
## Task
Generate a SQL query to answer the following question:
`What is the height of the person whose position is Libero?`

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

CREATE TABLE "team_roster_season_2011_2012" (
  "shirt_no" real,
  "nationality" text,
  "player" text,
  "birth_date" text,
  "height" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the person whose position is Libero?`:
```sql
                SELECT MAX("height") FROM "team_roster_season_2011_2012" WHERE "position"='libero';
```
## Task
Generate a SQL query to answer the following question:
`What is the total for the person with free of 47.667, and technical less than 47.417?`

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

CREATE TABLE "final" (
  "country" text,
  "athlete" text,
  "technical" real,
  "free" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for the person with free of 47.667, and technical less than 47.417?`:
```sql
                SELECT SUM("total") FROM "final" WHERE "free"=47.667 AND "technical"<47.417;
```
## Task
Generate a SQL query to answer the following question:
`What is the technical number for Jiang Tingting & Jiang Wenwen, and the total was more than 96.334?`

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

CREATE TABLE "final" (
  "country" text,
  "athlete" text,
  "technical" real,
  "free" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the technical number for Jiang Tingting & Jiang Wenwen, and the total was more than 96.334?`:
```sql
                SELECT MAX("technical") FROM "final" WHERE "athlete"='jiang tingting & jiang wenwen' AND "total">96.334;
```
## Task
Generate a SQL query to answer the following question:
`What is the free of Apolline Dreyfuss & Lila Meesseman-Bakir, when the total was larger than 90.333?`

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

CREATE TABLE "final" (
  "country" text,
  "athlete" text,
  "technical" real,
  "free" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the free of Apolline Dreyfuss & Lila Meesseman-Bakir, when the total was larger than 90.333?`:
```sql
                SELECT MIN("free") FROM "final" WHERE "athlete"='apolline dreyfuss & lila meesseman-bakir' AND "total">90.333;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of games drawn among teams that played over 14 games?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of games drawn among teams that played over 14 games?`:
```sql
                SELECT AVG("drawn") FROM "first_round" WHERE "played">14;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of points combined from the teams that played over 14 games?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of points combined from the teams that played over 14 games?`:
```sql
                SELECT COUNT("points") FROM "first_round" WHERE "played">14;
```
## Task
Generate a SQL query to answer the following question:
`How many points did the ESC Riverrats Geretsried, who lost more than 3 games, score?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the ESC Riverrats Geretsried, who lost more than 3 games, score?`:
```sql
                SELECT SUM("points") FROM "first_round" WHERE "lost">3 AND "name"='esc riverrats geretsried';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of games drawn among the teams that lost over 13 games?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of games drawn among the teams that lost over 13 games?`:
```sql
                SELECT AVG("drawn") FROM "first_round" WHERE "lost">13;
```
## Task
Generate a SQL query to answer the following question:
`What is the date of vacancy when the manner of departure is sacked and the team is nejapa?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of vacancy when the manner of departure is sacked and the team is nejapa?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "manner_of_departure"='sacked' AND "team"='nejapa';
```
## Task
Generate a SQL query to answer the following question:
`what is the date of vacancy when the date of appointment is 1 january 2009?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date of vacancy when the date of appointment is 1 january 2009?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "date_of_appointment"='1 january 2009';
```
## Task
Generate a SQL query to answer the following question:
`what is the date of vacancy when the position in table is 10th and the team is balboa?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date of vacancy when the position in table is 10th and the team is balboa?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "position_in_table"='10th' AND "team"='balboa';
```
## Task
Generate a SQL query to answer the following question:
`Who replaced when the position in table is 5th?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who replaced when the position in table is 5th?`:
```sql
                SELECT "replaced_by" FROM "managerial_changes" WHERE "position_in_table"='5th';
```
## Task
Generate a SQL query to answer the following question:
`Who is the outgoing manager when they were replaced by pablo centrone?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the outgoing manager when they were replaced by pablo centrone?`:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "replaced_by"='pablo centrone';
```
## Task
Generate a SQL query to answer the following question:
`what is the date of vacancy when the team is firpo and replaced by is oscar benitez?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date of vacancy when the team is firpo and replaced by is oscar benitez?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='firpo' AND "replaced_by"='oscar benitez';
```
## Task
Generate a SQL query to answer the following question:
`Which country was ranked 8 and noted as qs?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country was ranked 8 and noted as qs?`:
```sql
                SELECT "country" FROM "heat_2" WHERE "notes"='qs' AND "rank"=8;
```
## Task
Generate a SQL query to answer the following question:
`What are the notes for the contestants that were ranked #1?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes for the contestants that were ranked #1?`:
```sql
                SELECT "notes" FROM "heat_2" WHERE "rank"=1;
```
## Task
Generate a SQL query to answer the following question:
`Who did the Hawks play on 12/21/1973?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the Hawks play on 12/21/1973?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='12/21/1973';
```
## Task
Generate a SQL query to answer the following question:
`What rank does Tricia Flores have?`

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

CREATE TABLE "qualifying_round" (
  "rank" text,
  "group" text,
  "name" text,
  "nationality" text,
  "mark" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank does Tricia Flores have?`:
```sql
                SELECT "rank" FROM "qualifying_round" WHERE "name"='tricia flores';
```