cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the venue for the match on 30/03/1985?`

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

CREATE TABLE "1985" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue for the match on 30/03/1985?`:
```sql
                SELECT "venue" FROM "1985" WHERE "date"='30/03/1985';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of the match with 24 against?`

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

CREATE TABLE "1985" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the match with 24 against?`:
```sql
                SELECT "status" FROM "1985" WHERE "against"=24;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opposing team when the status is second test?`

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

CREATE TABLE "1985" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opposing team when the status is second test?`:
```sql
                SELECT "opposing_teams" FROM "1985" WHERE "status"='second test';
```
## Task
Generate a SQL query to answer the following question:
`What is the status when Wales is the opposing team and there are more than 13 against?`

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

CREATE TABLE "1985" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status when Wales is the opposing team and there are more than 13 against?`:
```sql
                SELECT "status" FROM "1985" WHERE "against">13 AND "opposing_teams"='wales';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of households for the entry with a median income of $41,778 and a population greater than 38,319?`

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

CREATE TABLE "alabama_counties_ranked_by_per_capita_in" (
  "county" text,
  "per_capita_income" text,
  "median_household_income_1_000_000" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of households for the entry with a median income of $41,778 and a population greater than 38,319?`:
```sql
                SELECT MIN("number_of_households") FROM "alabama_counties_ranked_by_per_capita_in" WHERE "median_family_income"='$41,778' AND "population">'38,319';
```
## Task
Generate a SQL query to answer the following question:
`Which Church has 27 stops?`

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

CREATE TABLE "ahrend_brunzema_1954_1971" (
  "year" text,
  "opus" real,
  "town" text,
  "church" text,
  "kind" text,
  "manuals" text,
  "stops" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Church has 27 stops?`:
```sql
                SELECT "church" FROM "ahrend_brunzema_1954_1971" WHERE "stops"='27';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent(s) in round 6?`

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

CREATE TABLE "fa_cup" (
  "date" text,
  "round" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent(s) in round 6?`:
```sql
                SELECT "opponents" FROM "fa_cup" WHERE "round"='round 6';
```
## Task
Generate a SQL query to answer the following question:
`In what year was the winner a soccer player from Virginia?`

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

CREATE TABLE "female_athlete_of_the_year" (
  "year" real,
  "winner" text,
  "sport" text,
  "hometown" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was the winner a soccer player from Virginia?`:
```sql
                SELECT SUM("year") FROM "female_athlete_of_the_year" WHERE "sport"='soccer' AND "college"='virginia';
```
## Task
Generate a SQL query to answer the following question:
`In what year did Morgan Brian win?`

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

CREATE TABLE "female_athlete_of_the_year" (
  "year" real,
  "winner" text,
  "sport" text,
  "hometown" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year did Morgan Brian win?`:
```sql
                SELECT AVG("year") FROM "female_athlete_of_the_year" WHERE "winner"='morgan brian';
```
## Task
Generate a SQL query to answer the following question:
`Who is the winner who attended college at Connecticut and is from North Syracuse, NY?`

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

CREATE TABLE "female_athlete_of_the_year" (
  "year" real,
  "winner" text,
  "sport" text,
  "hometown" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the winner who attended college at Connecticut and is from North Syracuse, NY?`:
```sql
                SELECT "winner" FROM "female_athlete_of_the_year" WHERE "college"='connecticut' AND "hometown"='north syracuse, ny';
```
## Task
Generate a SQL query to answer the following question:
`What is the hometown of the player who went to college at USC?`

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

CREATE TABLE "female_athlete_of_the_year" (
  "year" real,
  "winner" text,
  "sport" text,
  "hometown" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown of the player who went to college at USC?`:
```sql
                SELECT "hometown" FROM "female_athlete_of_the_year" WHERE "college"='usc';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Draws, when Against is "1547", and when Wins is greater than 3?`

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

CREATE TABLE "2010_ladder" (
  "golden_rivers" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Draws, when Against is "1547", and when Wins is greater than 3?`:
```sql
                SELECT MIN("draws") FROM "2010_ladder" WHERE "against"=1547 AND "wins">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Wins, when Losses is "6", and when Draws is greater than "0"?`

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

CREATE TABLE "2010_ladder" (
  "golden_rivers" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Wins, when Losses is "6", and when Draws is greater than "0"?`:
```sql
                SELECT COUNT("wins") FROM "2010_ladder" WHERE "losses"=6 AND "draws">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Draws, when Byes is less than 2?`

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

CREATE TABLE "2010_ladder" (
  "golden_rivers" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Draws, when Byes is less than 2?`:
```sql
                SELECT MIN("draws") FROM "2010_ladder" WHERE "byes"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Draws, when Against is "1134", and when Byes is less than 2?`

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

CREATE TABLE "2010_ladder" (
  "golden_rivers" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Draws, when Against is "1134", and when Byes is less than 2?`:
```sql
                SELECT COUNT("draws") FROM "2010_ladder" WHERE "against"=1134 AND "byes"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Wins, when Against is less than 1033, when Golden Rivers is "Nullawil", and when Byes is less than 2?`

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

CREATE TABLE "2010_ladder" (
  "golden_rivers" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Wins, when Against is less than 1033, when Golden Rivers is "Nullawil", and when Byes is less than 2?`:
```sql
                SELECT SUM("wins") FROM "2010_ladder" WHERE "against"<1033 AND "golden_rivers"='nullawil' AND "byes"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is 7:00 am, when 7:30 am is "Good Morning America"?`

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

CREATE TABLE "spring_1999" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 7:00 am, when 7:30 am is "Good Morning America"?`:
```sql
                SELECT "7_00_am" FROM "spring_1999" WHERE "7_30_am"='good morning america';
```
## Task
Generate a SQL query to answer the following question:
`What is 1:30 pm, when 7:00 am is "Tiny Toon Adventures"?`

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

CREATE TABLE "spring_1999" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1:30 pm, when 7:00 am is "Tiny Toon Adventures"?`:
```sql
                SELECT "1_30_pm" FROM "spring_1999" WHERE "7_00_am"='tiny toon adventures';
```
## Task
Generate a SQL query to answer the following question:
`What is 8:00 am, when 11:00 am is "Local Programs"?`

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

CREATE TABLE "spring_1999" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 8:00 am, when 11:00 am is "Local Programs"?`:
```sql
                SELECT "8_00_am" FROM "spring_1999" WHERE "11_00_am"='local programs';
```
## Task
Generate a SQL query to answer the following question:
`What is 1:30 pm, when 3:30 pm is "Young Hercules"?`

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

CREATE TABLE "spring_1999" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1:30 pm, when 3:30 pm is "Young Hercules"?`:
```sql
                SELECT "1_30_pm" FROM "spring_1999" WHERE "3_30_pm"='young hercules';
```
## Task
Generate a SQL query to answer the following question:
`What is 4:30 pm, when Noon is "Local Programs", and when 11:00 am is "Local Programs"?`

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

CREATE TABLE "spring_1999" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 4:30 pm, when Noon is "Local Programs", and when 11:00 am is "Local Programs"?`:
```sql
                SELECT "4_30_pm" FROM "spring_1999" WHERE "noon"='local programs' AND "11_00_am"='local programs';
```
## Task
Generate a SQL query to answer the following question:
`Which Year has a Competition of european championships, and Notes of 66.81 m?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has a Competition of european championships, and Notes of 66.81 m?`:
```sql
                SELECT SUM("year") FROM "achievements" WHERE "competition"='european championships' AND "notes"='66.81 m';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Venue of berlin, germany?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Venue of berlin, germany?`:
```sql
                SELECT "position" FROM "achievements" WHERE "venue"='berlin, germany';
```
## Task
Generate a SQL query to answer the following question:
`Which competition was held in Arles, France?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition was held in Arles, France?`:
```sql
                SELECT "competition" FROM "achievements" WHERE "venue"='arles, france';
```
## Task
Generate a SQL query to answer the following question:
`What is the M1A1 when the M60A3 was T (Short Tons)?`

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

CREATE TABLE "comparison_to_the_alternatives" (
  "lince" text,
  "leopard_2_a4" text,
  "leclerc" text,
  "m1_a1_abrams" text,
  "m60_a3_patton" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the M1A1 when the M60A3 was T (Short Tons)?`:
```sql
                SELECT "m1_a1_abrams" FROM "comparison_to_the_alternatives" WHERE "m60_a3_patton"='t (short tons)';
```
## Task
Generate a SQL query to answer the following question:
`What is the M60A3 when the M1A1 is T (Short Tons)?`

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

CREATE TABLE "comparison_to_the_alternatives" (
  "lince" text,
  "leopard_2_a4" text,
  "leclerc" text,
  "m1_a1_abrams" text,
  "m60_a3_patton" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the M60A3 when the M1A1 is T (Short Tons)?`:
```sql
                SELECT "m60_a3_patton" FROM "comparison_to_the_alternatives" WHERE "m1_a1_abrams"='t (short tons)';
```
## Task
Generate a SQL query to answer the following question:
`What is the M60A3 that has an M1A1 of Km (mi)?`

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

CREATE TABLE "comparison_to_the_alternatives" (
  "lince" text,
  "leopard_2_a4" text,
  "leclerc" text,
  "m1_a1_abrams" text,
  "m60_a3_patton" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the M60A3 that has an M1A1 of Km (mi)?`:
```sql
                SELECT "m60_a3_patton" FROM "comparison_to_the_alternatives" WHERE "m1_a1_abrams"='km (mi)';
```
## Task
Generate a SQL query to answer the following question:
`What is the M60A3 that has 40 rounds as Leclerc?`

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

CREATE TABLE "comparison_to_the_alternatives" (
  "lince" text,
  "leopard_2_a4" text,
  "leclerc" text,
  "m1_a1_abrams" text,
  "m60_a3_patton" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the M60A3 that has 40 rounds as Leclerc?`:
```sql
                SELECT "m60_a3_patton" FROM "comparison_to_the_alternatives" WHERE "leclerc"='40 rounds';
```
## Task
Generate a SQL query to answer the following question:
`What's the lince when Leclerc was Hp (kw)?`

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

CREATE TABLE "comparison_to_the_alternatives" (
  "lince" text,
  "leopard_2_a4" text,
  "leclerc" text,
  "m1_a1_abrams" text,
  "m60_a3_patton" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lince when Leclerc was Hp (kw)?`:
```sql
                SELECT "lince" FROM "comparison_to_the_alternatives" WHERE "leclerc"='hp (kw)';
```
## Task
Generate a SQL query to answer the following question:
`What is the M1A1 when the Lince was T (Short Tons)?`

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

CREATE TABLE "comparison_to_the_alternatives" (
  "lince" text,
  "leopard_2_a4" text,
  "leclerc" text,
  "m1_a1_abrams" text,
  "m60_a3_patton" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the M1A1 when the Lince was T (Short Tons)?`:
```sql
                SELECT "m1_a1_abrams" FROM "comparison_to_the_alternatives" WHERE "lince"='t (short tons)';
```
## Task
Generate a SQL query to answer the following question:
`Which Distance has a Time of 2:20.00?`

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

CREATE TABLE "world_records" (
  "distance" text,
  "event" text,
  "time" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Distance has a Time of 2:20.00?`:
```sql
                SELECT "distance" FROM "world_records" WHERE "time"='2:20.00';
```
## Task
Generate a SQL query to answer the following question:
`Which Distance has an Event of breaststroke, and a Location of beijing, chn?`

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

CREATE TABLE "world_records" (
  "distance" text,
  "event" text,
  "time" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Distance has an Event of breaststroke, and a Location of beijing, chn?`:
```sql
                SELECT "distance" FROM "world_records" WHERE "event"='breaststroke' AND "location"='beijing, chn';
```
## Task
Generate a SQL query to answer the following question:
`What Meet has a Time of 1:04.84?`

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

CREATE TABLE "world_records" (
  "distance" text,
  "event" text,
  "time" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Meet has a Time of 1:04.84?`:
```sql
                SELECT "meet" FROM "world_records" WHERE "time"='1:04.84';
```
## Task
Generate a SQL query to answer the following question:
`What season had a viewer rank of #4?`

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

CREATE TABLE "ratings" (
  "season" real,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "viewer_rank_num" text,
  "households_viewers_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `What season had a viewer rank of #4?`:
```sql
                SELECT COUNT("season") FROM "ratings" WHERE "viewer_rank_num"='#4';
```
## Task
Generate a SQL query to answer the following question:
`Which season had less than 25.4 viewers and had a viewer rank of #6?`

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

CREATE TABLE "ratings" (
  "season" real,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "viewer_rank_num" text,
  "households_viewers_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which season had less than 25.4 viewers and had a viewer rank of #6?`:
```sql
                SELECT MIN("season") FROM "ratings" WHERE "households_viewers_in_millions"<25.4 AND "viewer_rank_num"='#6';
```
## Task
Generate a SQL query to answer the following question:
`When did the season premiere that had a viewer rank of #6?`

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

CREATE TABLE "ratings" (
  "season" real,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "viewer_rank_num" text,
  "households_viewers_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did the season premiere that had a viewer rank of #6?`:
```sql
                SELECT "season_premiere" FROM "ratings" WHERE "viewer_rank_num"='#6';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of gold medals of the ranked 2nd nation, which has less than 2 silvers?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of gold medals of the ranked 2nd nation, which has less than 2 silvers?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "rank"='2' AND "silver"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of gold medals of the nation with 0 silver and more than 1 bronze?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of gold medals of the nation with 0 silver and more than 1 bronze?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "silver"=0 AND "bronze">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of bronze of the nation with more than 13 total medals, more than 10 gold medals, and less than 22 silvers?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of bronze of the nation with more than 13 total medals, more than 10 gold medals, and less than 22 silvers?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "total">13 AND "gold">10 AND "silver"<22;
```
## Task
Generate a SQL query to answer the following question:
`What was the main date of the round with 20 fixtures?`

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

CREATE TABLE "calendar" (
  "round" text,
  "main_date" text,
  "number_of_fixtures" real,
  "clubs" text,
  "new_entries_this_round" text,
  "prize_money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the main date of the round with 20 fixtures?`:
```sql
                SELECT "main_date" FROM "calendar" WHERE "number_of_fixtures"=20;
```
## Task
Generate a SQL query to answer the following question:
`What were the new entries for the Semi-Finals round with fewer than 8 fixtures?`

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

CREATE TABLE "calendar" (
  "round" text,
  "main_date" text,
  "number_of_fixtures" real,
  "clubs" text,
  "new_entries_this_round" text,
  "prize_money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the new entries for the Semi-Finals round with fewer than 8 fixtures?`:
```sql
                SELECT "new_entries_this_round" FROM "calendar" WHERE "number_of_fixtures"<8 AND "round"='semi-finals';
```
## Task
Generate a SQL query to answer the following question:
`What was the club when home ground was Central Reserve?`

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

CREATE TABLE "current" (
  "club" text,
  "nickname" text,
  "location" text,
  "home_ground" text,
  "gfl_premierships" text,
  "years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the club when home ground was Central Reserve?`:
```sql
                SELECT "club" FROM "current" WHERE "home_ground"='central reserve';
```
## Task
Generate a SQL query to answer the following question:
`What's the GFL Premiership when the home ground was Leopold Memorial Park?`

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

CREATE TABLE "current" (
  "club" text,
  "nickname" text,
  "location" text,
  "home_ground" text,
  "gfl_premierships" text,
  "years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the GFL Premiership when the home ground was Leopold Memorial Park?`:
```sql
                SELECT "gfl_premierships" FROM "current" WHERE "home_ground"='leopold memorial park';
```
## Task
Generate a SQL query to answer the following question:
`What's the location where the Years in GFL was 1988-?`

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

CREATE TABLE "current" (
  "club" text,
  "nickname" text,
  "location" text,
  "home_ground" text,
  "gfl_premierships" text,
  "years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the location where the Years in GFL was 1988-?`:
```sql
                SELECT "location" FROM "current" WHERE "years_in_gfl"='1988-';
```
## Task
Generate a SQL query to answer the following question:
`What's the home ground of the Lions?`

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

CREATE TABLE "current" (
  "club" text,
  "nickname" text,
  "location" text,
  "home_ground" text,
  "gfl_premierships" text,
  "years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the home ground of the Lions?`:
```sql
                SELECT "home_ground" FROM "current" WHERE "nickname"='lions';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the Saints having 1979- as Years in GFL?`

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

CREATE TABLE "current" (
  "club" text,
  "nickname" text,
  "location" text,
  "home_ground" text,
  "gfl_premierships" text,
  "years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the Saints having 1979- as Years in GFL?`:
```sql
                SELECT "location" FROM "current" WHERE "years_in_gfl"='1979-' AND "nickname"='saints';
```
## Task
Generate a SQL query to answer the following question:
`What is the type of the player who ended in 2013, had a summer transfer window, and moved from kalmar ff?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of the player who ended in 2013, had a summer transfer window, and moved from kalmar ff?`:
```sql
                SELECT "type" FROM "in" WHERE "ends"=2013 AND "transfer_window"='summer' AND "moving_from"='kalmar ff';
```
## Task
Generate a SQL query to answer the following question:
`Where did the player with a transfer type, a summer transfer window, and ended before 2013 move from?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the player with a transfer type, a summer transfer window, and ended before 2013 move from?`:
```sql
                SELECT "moving_from" FROM "in" WHERE "type"='transfer' AND "transfer_window"='summer' AND "ends"<2013;
```
## Task
Generate a SQL query to answer the following question:
`What is the transfer window for larsson?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer window for larsson?`:
```sql
                SELECT "transfer_window" FROM "in" WHERE "name"='larsson';
```
## Task
Generate a SQL query to answer the following question:
`What is the average end year of the player from swe and a summer transfer window?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average end year of the player from swe and a summer transfer window?`:
```sql
                SELECT AVG("ends") FROM "in" WHERE "nat"='swe' AND "transfer_window"='summer';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome on 2 December 2012?`

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

CREATE TABLE "itf_singles_finals_6_1" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome on 2 December 2012?`:
```sql
                SELECT "outcome" FROM "itf_singles_finals_6_1" WHERE "date"='2 december 2012';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the final in $10,000 – tarakan , indonesia f2?`

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

CREATE TABLE "itf_singles_finals_6_1" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the final in $10,000 – tarakan , indonesia f2?`:
```sql
                SELECT "score_in_final" FROM "itf_singles_finals_6_1" WHERE "tournament"='$10,000 – tarakan , indonesia f2';
```
## Task
Generate a SQL query to answer the following question:
`What was the place for the score 70-72-69=211?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the place for the score 70-72-69=211?`:
```sql
                SELECT "place" FROM "third_round" WHERE "score"='70-72-69=211';
```
## Task
Generate a SQL query to answer the following question:
`What was the player for t9 and a score of 73-69-74=216?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the player for t9 and a score of 73-69-74=216?`:
```sql
                SELECT "player" FROM "third_round" WHERE "place"='t9' AND "score"='73-69-74=216';
```
## Task
Generate a SQL query to answer the following question:
`What was Stacy Lewis' place?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Stacy Lewis' place?`:
```sql
                SELECT "place" FROM "third_round" WHERE "player"='stacy lewis';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the tie no was 13?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the tie no was 13?`:
```sql
                SELECT "score" FROM "second_round_proper" WHERE "tie_no"='13';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when Burnley was the away team?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Burnley was the away team?`:
```sql
                SELECT "score" FROM "second_round_proper" WHERE "away_team"='burnley';
```
## Task
Generate a SQL query to answer the following question:
`What is the To par when the finish is 66?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To par when the finish is 66?`:
```sql
                SELECT "to_par" FROM "made_the_cut" WHERE "finish"='66';
```
## Task
Generate a SQL query to answer the following question:
`When the year won is 1981, 1987, and the finish is t46, what is the lowest total?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the year won is 1981, 1987, and the finish is t46, what is the lowest total?`:
```sql
                SELECT MIN("total") FROM "made_the_cut" WHERE "finish"='t46' AND "year_s_won"='1981, 1987';
```
## Task
Generate a SQL query to answer the following question:
`Which year was won with a finish of 68`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year was won with a finish of 68`:
```sql
                SELECT "year_s_won" FROM "made_the_cut" WHERE "finish"='68';
```
## Task
Generate a SQL query to answer the following question:
`WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT OF 84.15?`

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

CREATE TABLE "light_heavyweight_85_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT OF 84.15?`:
```sql
                SELECT AVG("snatch") FROM "light_heavyweight_85_kg" WHERE "total_kg">318 AND "bodyweight"=84.15;
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SNATCH WITH TOTAL KG SMALLER THAN 318, AND CLEAN JERK LARGER THAN 175?`

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

CREATE TABLE "light_heavyweight_85_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE SNATCH WITH TOTAL KG SMALLER THAN 318, AND CLEAN JERK LARGER THAN 175?`:
```sql
                SELECT MIN("snatch") FROM "light_heavyweight_85_kg" WHERE "total_kg"<318 AND "clean_jerk">175;
```
## Task
Generate a SQL query to answer the following question:
`What date has 2 for killed, and jaffa as the location?`

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

CREATE TABLE "religious_political_or_racial_crimes" (
  "date" text,
  "year" real,
  "location" text,
  "country" text,
  "killed" text,
  "injured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has 2 for killed, and jaffa as the location?`:
```sql
                SELECT "date" FROM "religious_political_or_racial_crimes" WHERE "killed"='2' AND "location"='jaffa';
```
## Task
Generate a SQL query to answer the following question:
`What is the injured that has skierlik as the location?`

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

CREATE TABLE "religious_political_or_racial_crimes" (
  "date" text,
  "year" real,
  "location" text,
  "country" text,
  "killed" text,
  "injured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the injured that has skierlik as the location?`:
```sql
                SELECT "injured" FROM "religious_political_or_racial_crimes" WHERE "location"='skierlik';
```
## Task
Generate a SQL query to answer the following question:
`What shows at 1:00 pm when 4:00 pm shows local programs, and 8:00 am is The Early Show?`

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

CREATE TABLE "summer_2001" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows at 1:00 pm when 4:00 pm shows local programs, and 8:00 am is The Early Show?`:
```sql
                SELECT "1_00_pm" FROM "summer_2001" WHERE "4_00_pm"='local programs' AND "8_00_am"='the early show';
```
## Task
Generate a SQL query to answer the following question:
`What shows at 7:30 am when 3:30 pm is Big Guy and Rusty the Boy Robot?`

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

CREATE TABLE "summer_2001" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows at 7:30 am when 3:30 pm is Big Guy and Rusty the Boy Robot?`:
```sql
                SELECT "7_30_am" FROM "summer_2001" WHERE "3_30_pm"='big guy and rusty the boy robot';
```
## Task
Generate a SQL query to answer the following question:
`What shows at 9:00 am that has a 3:30 pm of passions?`

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

CREATE TABLE "summer_2001" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows at 9:00 am that has a 3:30 pm of passions?`:
```sql
                SELECT "9_00_am" FROM "summer_2001" WHERE "3_30_pm"='passions';
```
## Task
Generate a SQL query to answer the following question:
`What shows at 4:30 pm when 4:00 pm is Pokémon?`

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

CREATE TABLE "summer_2001" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows at 4:30 pm when 4:00 pm is Pokémon?`:
```sql
                SELECT "4_30_pm" FROM "summer_2001" WHERE "4_00_pm"='pokémon';
```
## Task
Generate a SQL query to answer the following question:
`What shows at 12:30 pm when 1:30 pm is All My Children?`

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

CREATE TABLE "summer_2001" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows at 12:30 pm when 1:30 pm is All My Children?`:
```sql
                SELECT "12_30_pm" FROM "summer_2001" WHERE "1_30_pm"='all my children';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg that Team 1 is Union Berlin?`

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

CREATE TABLE "second_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg that Team 1 is Union Berlin?`:
```sql
                SELECT "2nd_leg" FROM "second_round" WHERE "team_1"='union berlin';
```
## Task
Generate a SQL query to answer the following question:
`What is the Apps for the player with 150 Goals and a Ratio of 0.52?`

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

CREATE TABLE "top_30_highest_goalscorers_all_time" (
  "name" text,
  "years" text,
  "goals" real,
  "apps" real,
  "ratio" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Apps for the player with 150 Goals and a Ratio of 0.52?`:
```sql
                SELECT "apps" FROM "top_30_highest_goalscorers_all_time" WHERE "ratio"=0.52 AND "goals"=150;
```
## Task
Generate a SQL query to answer the following question:
`What is on at 3pm on the channel that shows Local Programs at non?`

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

CREATE TABLE "winter_1999_2000" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "10_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is on at 3pm on the channel that shows Local Programs at non?`:
```sql
                SELECT "3_00_pm" FROM "winter_1999_2000" WHERE "noon"='local programs';
```
## Task
Generate a SQL query to answer the following question:
`What is the noon show on the channel that shows General Hospital at 3pm?`

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

CREATE TABLE "winter_1999_2000" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "10_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the noon show on the channel that shows General Hospital at 3pm?`:
```sql
                SELECT "noon" FROM "winter_1999_2000" WHERE "3_00_pm"='general hospital';
```
## Task
Generate a SQL query to answer the following question:
`What is the 5pm show where CBS This Morning is on at 7am?`

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

CREATE TABLE "winter_1999_2000" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "10_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 5pm show where CBS This Morning is on at 7am?`:
```sql
                SELECT "5_00_pm" FROM "winter_1999_2000" WHERE "7_00_am"='cbs this morning';
```
## Task
Generate a SQL query to answer the following question:
`What is on at 12:30pm where Local Programs are on at 1:30pm and Power Rangers Lost Galaxy is on at 3:30pm?`

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

CREATE TABLE "winter_1999_2000" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "10_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is on at 12:30pm where Local Programs are on at 1:30pm and Power Rangers Lost Galaxy is on at 3:30pm?`:
```sql
                SELECT "12_30_pm" FROM "winter_1999_2000" WHERE "1_30_pm"='local programs' AND "3_30_pm"='power rangers lost galaxy';
```