cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the lowest league for the Malaysia Cup when it was larger than 0?`

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

CREATE TABLE "scorers" (
  "player" text,
  "league" real,
  "malaysia_cup" real,
  "fa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest league for the Malaysia Cup when it was larger than 0?`:
```sql
                SELECT MIN("league") FROM "scorers" WHERE "malaysia_cup">0;
```
## Task
Generate a SQL query to answer the following question:
`How many Bronze medals did Switzerland with less than 3 Silver medals receive?`

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

CREATE TABLE "medallists_by_nation" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Bronze medals did Switzerland with less than 3 Silver medals receive?`:
```sql
                SELECT MIN("bronze") FROM "medallists_by_nation" WHERE "nation"='switzerland' AND "silver"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of Silver medals that have more than 3 Bronze?`

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

CREATE TABLE "medallists_by_nation" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of Silver medals that have more than 3 Bronze?`:
```sql
                SELECT MIN("silver") FROM "medallists_by_nation" WHERE "bronze">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the average game for March 8 with less than 84 points?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average game for March 8 with less than 84 points?`:
```sql
                SELECT AVG("game") FROM "regular_season" WHERE "points"<84 AND "march"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the latest in March when the record of 35–16–6–3?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest in March when the record of 35–16–6–3?`:
```sql
                SELECT MAX("march") FROM "regular_season" WHERE "record"='35–16–6–3';
```
## Task
Generate a SQL query to answer the following question:
`Name the competition for score of 3-0`

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

CREATE TABLE "brazil_national_team" (
  "date" text,
  "city" text,
  "result" text,
  "score" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the competition for score of 3-0`:
```sql
                SELECT "competition" FROM "brazil_national_team" WHERE "score"='3-0';
```
## Task
Generate a SQL query to answer the following question:
`Name the competition for september 10, 2008`

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

CREATE TABLE "brazil_national_team" (
  "date" text,
  "city" text,
  "result" text,
  "score" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the competition for september 10, 2008`:
```sql
                SELECT "competition" FROM "brazil_national_team" WHERE "date"='september 10, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Name the sscore for world cup qualifying october 15, 2008`

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

CREATE TABLE "brazil_national_team" (
  "date" text,
  "city" text,
  "result" text,
  "score" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sscore for world cup qualifying october 15, 2008`:
```sql
                SELECT "score" FROM "brazil_national_team" WHERE "competition"='world cup qualifying' AND "date"='october 15, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Name the competition for november 19, 2008`

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

CREATE TABLE "brazil_national_team" (
  "date" text,
  "city" text,
  "result" text,
  "score" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the competition for november 19, 2008`:
```sql
                SELECT "competition" FROM "brazil_national_team" WHERE "date"='november 19, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for rio de janeiro`

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

CREATE TABLE "brazil_national_team" (
  "date" text,
  "city" text,
  "result" text,
  "score" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for rio de janeiro`:
```sql
                SELECT "date" FROM "brazil_national_team" WHERE "city"='rio de janeiro';
```
## Task
Generate a SQL query to answer the following question:
`What number is Fall 08 from the state with 57 in Fall 06 and 74 or less in Fall 05?`

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

CREATE TABLE "geography_of_students" (
  "states" text,
  "fall_05" real,
  "fall_06" real,
  "fall_07" real,
  "fall_08" real,
  "fall_09" real
);
### SQL
Given the database schema, here is the SQL query that answers `What number is Fall 08 from the state with 57 in Fall 06 and 74 or less in Fall 05?`:
```sql
                SELECT COUNT("fall_08") FROM "geography_of_students" WHERE "fall_06"=57 AND "fall_05"<74;
```
## Task
Generate a SQL query to answer the following question:
`What number is Fall 06 from the state with 79 or less in Fall 08, 36 or greater in Fall 07 and greater than 74 in Fall 05?`

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

CREATE TABLE "geography_of_students" (
  "states" text,
  "fall_05" real,
  "fall_06" real,
  "fall_07" real,
  "fall_08" real,
  "fall_09" real
);
### SQL
Given the database schema, here is the SQL query that answers `What number is Fall 06 from the state with 79 or less in Fall 08, 36 or greater in Fall 07 and greater than 74 in Fall 05?`:
```sql
                SELECT AVG("fall_06") FROM "geography_of_students" WHERE "fall_08"<79 AND "fall_07">36 AND "fall_05">74;
```
## Task
Generate a SQL query to answer the following question:
`What number is Fall 06 from the state with 34 for Fall 09?`

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

CREATE TABLE "geography_of_students" (
  "states" text,
  "fall_05" real,
  "fall_06" real,
  "fall_07" real,
  "fall_08" real,
  "fall_09" real
);
### SQL
Given the database schema, here is the SQL query that answers `What number is Fall 06 from the state with 34 for Fall 09?`:
```sql
                SELECT AVG("fall_06") FROM "geography_of_students" WHERE "fall_09"=34;
```
## Task
Generate a SQL query to answer the following question:
`What was the record when the visitor was toronto maple leafs and the score was 3–10?`

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

CREATE TABLE "toronto_maple_leafs_4_montreal_canadiens" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record when the visitor was toronto maple leafs and the score was 3–10?`:
```sql
                SELECT "record" FROM "toronto_maple_leafs_4_montreal_canadiens" WHERE "visitor"='toronto maple leafs' AND "score"='3–10';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the visitor was toronto maple leafs on march 22?`

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

CREATE TABLE "toronto_maple_leafs_4_montreal_canadiens" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the visitor was toronto maple leafs on march 22?`:
```sql
                SELECT "score" FROM "toronto_maple_leafs_4_montreal_canadiens" WHERE "visitor"='toronto maple leafs' AND "date"='march 22';
```
## Task
Generate a SQL query to answer the following question:
`What was the Visitor when the home was toronto maple leafs and the score was 4–1?`

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

CREATE TABLE "toronto_maple_leafs_4_montreal_canadiens" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Visitor when the home was toronto maple leafs and the score was 4–1?`:
```sql
                SELECT "visitor" FROM "toronto_maple_leafs_4_montreal_canadiens" WHERE "home"='toronto maple leafs' AND "score"='4–1';
```
## Task
Generate a SQL query to answer the following question:
`What is the average GBP Price with an event in Monterey, a RM auction house, and a price of $154,000 later than 2003?`

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

CREATE TABLE "auction_history" (
  "auction_house" text,
  "year" real,
  "event" text,
  "price" real,
  "gbp_price" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average GBP Price with an event in Monterey, a RM auction house, and a price of $154,000 later than 2003?`:
```sql
                SELECT AVG("gbp_price") FROM "auction_history" WHERE "event"='monterey' AND "auction_house"='rm' AND "price"='154,000' AND "year">2003;
```
## Task
Generate a SQL query to answer the following question:
`How many total episodes aired over all seasons with 7.79 million viewers?`

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

CREATE TABLE "seasonal_ratings_broadcast_history" (
  "season" real,
  "network" text,
  "time_slot" text,
  "season_premiere" text,
  "season_finale" text,
  "episode_count" real,
  "tv_season" text,
  "season_rank" text,
  "viewers_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total episodes aired over all seasons with 7.79 million viewers?`:
```sql
                SELECT COUNT("episode_count") FROM "seasonal_ratings_broadcast_history" WHERE "viewers_in_millions"=7.79;
```
## Task
Generate a SQL query to answer the following question:
`Was the semi-final round held at home or away?`

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

CREATE TABLE "manchester_and_district_challenge_cup" (
  "date" text,
  "round" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was the semi-final round held at home or away?`:
```sql
                SELECT "h_a" FROM "manchester_and_district_challenge_cup" WHERE "round"='semi-final';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent made it to the final round?`

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

CREATE TABLE "manchester_and_district_challenge_cup" (
  "date" text,
  "round" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent made it to the final round?`:
```sql
                SELECT "opponents" FROM "manchester_and_district_challenge_cup" WHERE "round"='final';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game played in hurst?`

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

CREATE TABLE "manchester_and_district_challenge_cup" (
  "date" text,
  "round" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game played in hurst?`:
```sql
                SELECT "result_f_a" FROM "manchester_and_district_challenge_cup" WHERE "h_a"='hurst';
```
## Task
Generate a SQL query to answer the following question:
`When did the game in whalley range take place?`

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

CREATE TABLE "manchester_and_district_challenge_cup" (
  "date" text,
  "round" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the game in whalley range take place?`:
```sql
                SELECT "date" FROM "manchester_and_district_challenge_cup" WHERE "h_a"='whalley range';
```
## Task
Generate a SQL query to answer the following question:
`Which ERP W is the lowest one that has a Frequency MHz of 91.3?`

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

CREATE TABLE "full_powered_stations" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ERP W is the lowest one that has a Frequency MHz of 91.3?`:
```sql
                SELECT MIN("erp_w") FROM "full_powered_stations" WHERE "frequency_m_hz"=91.3;
```
## Task
Generate a SQL query to answer the following question:
`Which Class has a Frequency MHz of 107.5?`

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

CREATE TABLE "full_powered_stations" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Class has a Frequency MHz of 107.5?`:
```sql
                SELECT "class" FROM "full_powered_stations" WHERE "frequency_m_hz"=107.5;
```
## Task
Generate a SQL query to answer the following question:
`Which Frequency MHz is the highest one that has a City of license of byron, ga?`

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

CREATE TABLE "full_powered_stations" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Frequency MHz is the highest one that has a City of license of byron, ga?`:
```sql
                SELECT MAX("frequency_m_hz") FROM "full_powered_stations" WHERE "city_of_license"='byron, ga';
```
## Task
Generate a SQL query to answer the following question:
`Which FCC info has a Call sign of wsja?`

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

CREATE TABLE "full_powered_stations" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which FCC info has a Call sign of wsja?`:
```sql
                SELECT "fcc_info" FROM "full_powered_stations" WHERE "call_sign"='wsja';
```
## Task
Generate a SQL query to answer the following question:
`Which District has a Party of republican and a Result of lost re-election democratic gain?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which District has a Party of republican and a Result of lost re-election democratic gain?`:
```sql
                SELECT "district" FROM "california" WHERE "party"='republican' AND "result"='lost re-election democratic gain';
```
## Task
Generate a SQL query to answer the following question:
`What is First elected that has republican Party and a Result of retired democratic gain?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is First elected that has republican Party and a Result of retired democratic gain?`:
```sql
                SELECT "first_elected" FROM "california" WHERE "party"='republican' AND "result"='retired democratic gain';
```
## Task
Generate a SQL query to answer the following question:
`What is the First elected of california 3?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the First elected of california 3?`:
```sql
                SELECT "first_elected" FROM "california" WHERE "district"='california 3';
```
## Task
Generate a SQL query to answer the following question:
`Which Incumbent has a Result of retired democratic gain?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Incumbent has a Result of retired democratic gain?`:
```sql
                SELECT "incumbent" FROM "california" WHERE "result"='retired democratic gain';
```
## Task
Generate a SQL query to answer the following question:
`Which First elected has a Incumbent of none (new seat)?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which First elected has a Incumbent of none (new seat)?`:
```sql
                SELECT "first_elected" FROM "california" WHERE "incumbent"='none (new seat)';
```
## Task
Generate a SQL query to answer the following question:
`What is the First elected that has a republican party and california 4?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the First elected that has a republican party and california 4?`:
```sql
                SELECT "first_elected" FROM "california" WHERE "party"='republican' AND "district"='california 4';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when Dundee was the opponent?`

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

CREATE TABLE "tennent_s_scottish_cup" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when Dundee was the opponent?`:
```sql
                SELECT "result" FROM "tennent_s_scottish_cup" WHERE "opponent"='dundee';
```
## Task
Generate a SQL query to answer the following question:
`Who entered on day 1 and exited on day 20?`

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

CREATE TABLE "series_9_2009" (
  "celebrity" text,
  "famous_for" text,
  "entered" text,
  "exited" text,
  "finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who entered on day 1 and exited on day 20?`:
```sql
                SELECT "celebrity" FROM "series_9_2009" WHERE "entered"='day 1' AND "exited"='day 20';
```
## Task
Generate a SQL query to answer the following question:
`When did lucy benjamin exit?`

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

CREATE TABLE "series_9_2009" (
  "celebrity" text,
  "famous_for" text,
  "entered" text,
  "exited" text,
  "finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did lucy benjamin exit?`:
```sql
                SELECT "exited" FROM "series_9_2009" WHERE "celebrity"='lucy benjamin';
```
## Task
Generate a SQL query to answer the following question:
`When did camilla dallerup finish?`

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

CREATE TABLE "series_9_2009" (
  "celebrity" text,
  "famous_for" text,
  "entered" text,
  "exited" text,
  "finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did camilla dallerup finish?`:
```sql
                SELECT "finished" FROM "series_9_2009" WHERE "celebrity"='camilla dallerup';
```
## Task
Generate a SQL query to answer the following question:
`When did kim woodburn enter?`

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

CREATE TABLE "series_9_2009" (
  "celebrity" text,
  "famous_for" text,
  "entered" text,
  "exited" text,
  "finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did kim woodburn enter?`:
```sql
                SELECT "entered" FROM "series_9_2009" WHERE "celebrity"='kim woodburn';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game with a record of 37–26–9?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game with a record of 37–26–9?`:
```sql
                SELECT "score" FROM "march" WHERE "record"='37–26–9';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game with a record of 33–25–9?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game with a record of 33–25–9?`:
```sql
                SELECT "score" FROM "march" WHERE "record"='33–25–9';
```
## Task
Generate a SQL query to answer the following question:
`Loss of francis (4–9) has what highest attendance figure?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Loss of francis (4–9) has what highest attendance figure?`:
```sql
                SELECT MAX("attendance") FROM "game_log" WHERE "loss"='francis (4–9)';
```
## Task
Generate a SQL query to answer the following question:
`Loss of de la rosa (8–8) has what average attendance?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Loss of de la rosa (8–8) has what average attendance?`:
```sql
                SELECT AVG("attendance") FROM "game_log" WHERE "loss"='de la rosa (8–8)';
```
## Task
Generate a SQL query to answer the following question:
`Loss of francis (4–10) happened on what date?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Loss of francis (4–10) happened on what date?`:
```sql
                SELECT "date" FROM "game_log" WHERE "loss"='francis (4–10)';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on 8 September 1999?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on 8 September 1999?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='8 september 1999';
```
## Task
Generate a SQL query to answer the following question:
`What was the result on 16 November 2003?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result on 16 November 2003?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "date"='16 november 2003';
```
## Task
Generate a SQL query to answer the following question:
`Which Set 1 has a Set 2 of 26–24?`

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

CREATE TABLE "pool_a" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Set 1 has a Set 2 of 26–24?`:
```sql
                SELECT "set_1" FROM "pool_a" WHERE "set_2"='26–24';
```
## Task
Generate a SQL query to answer the following question:
`Which Set 2 has a Date of 25 may, and a Set 3 of 21–25?`

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

CREATE TABLE "pool_a" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Set 2 has a Date of 25 may, and a Set 3 of 21–25?`:
```sql
                SELECT "set_2" FROM "pool_a" WHERE "date"='25 may' AND "set_3"='21–25';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Set 3 of 21–25?`

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

CREATE TABLE "pool_a" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Set 3 of 21–25?`:
```sql
                SELECT "date" FROM "pool_a" WHERE "set_3"='21–25';
```
## Task
Generate a SQL query to answer the following question:
`Which Set 1 has a Date of 24 may, and a Total of 57–75?`

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

CREATE TABLE "pool_a" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Set 1 has a Date of 24 may, and a Total of 57–75?`:
```sql
                SELECT "set_1" FROM "pool_a" WHERE "date"='24 may' AND "total"='57–75';
```
## Task
Generate a SQL query to answer the following question:
`Which Set 2 has a Set 1 of 25–15, and a Score of 3–0?`

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

CREATE TABLE "pool_a" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Set 2 has a Set 1 of 25–15, and a Score of 3–0?`:
```sql
                SELECT "set_2" FROM "pool_a" WHERE "set_1"='25–15' AND "score"='3–0';
```
## Task
Generate a SQL query to answer the following question:
`Which Total has a Set 1 of 25–22?`

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

CREATE TABLE "pool_a" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a Set 1 of 25–22?`:
```sql
                SELECT "total" FROM "pool_a" WHERE "set_1"='25–22';
```
## Task
Generate a SQL query to answer the following question:
`What was the segment b for Netflix s01e21?`

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

CREATE TABLE "season_2_2002" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the segment b for Netflix s01e21?`:
```sql
                SELECT "segment_b" FROM "season_2_2002" WHERE "netflix"='s01e21';
```
## Task
Generate a SQL query to answer the following question:
`What segment d is associated with an episode number above 16 and a segment c of laser eye surgery?`

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

CREATE TABLE "season_2_2002" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `What segment d is associated with an episode number above 16 and a segment c of laser eye surgery?`:
```sql
                SELECT "segment_d" FROM "season_2_2002" WHERE "episode">16 AND "segment_c"='laser eye surgery';
```
## Task
Generate a SQL query to answer the following question:
`What team had less than 291 total points whole having 76 bronze and over 21 gold?`

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

CREATE TABLE "top_ten_medals" (
  "rank" real,
  "province" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team had less than 291 total points whole having 76 bronze and over 21 gold?`:
```sql
                SELECT SUM("silver") FROM "top_ten_medals" WHERE "gold">21 AND "bronze"=76 AND "total"<291;
```
## Task
Generate a SQL query to answer the following question:
`What was the average rank for team with more than 44 gold, more and 76 bronze and a higher total than 73?`

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

CREATE TABLE "top_ten_medals" (
  "rank" real,
  "province" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average rank for team with more than 44 gold, more and 76 bronze and a higher total than 73?`:
```sql
                SELECT AVG("rank") FROM "top_ten_medals" WHERE "total">73 AND "gold">44 AND "bronze">76;
```
## Task
Generate a SQL query to answer the following question:
`On what date was the team's record 61-66?`

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

CREATE TABLE "game_log" (
  "date" text,
  "time" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the team's record 61-66?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='61-66';
```
## Task
Generate a SQL query to answer the following question:
`At what time was the game when they played the White Sox and had a record of 63-70?`

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

CREATE TABLE "game_log" (
  "date" text,
  "time" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what time was the game when they played the White Sox and had a record of 63-70?`:
```sql
                SELECT "time" FROM "game_log" WHERE "opponent"='white sox' AND "record"='63-70';
```
## Task
Generate a SQL query to answer the following question:
`What shows for gold when bronze is 1?`

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

CREATE TABLE "medals" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for gold when bronze is 1?`:
```sql
                SELECT "gold" FROM "medals" WHERE "bronze"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the gold number when the total is less than 8, silver less than 1 and the rank is more than 7?`

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

CREATE TABLE "medals" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gold number when the total is less than 8, silver less than 1 and the rank is more than 7?`:
```sql
                SELECT COUNT("gold") FROM "medals" WHERE "total"<8 AND "silver"<1 AND "rank">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Total for the Rank of 6, when Silver is smaller than 0?`

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

CREATE TABLE "medals" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Total for the Rank of 6, when Silver is smaller than 0?`:
```sql
                SELECT AVG("total") FROM "medals" WHERE "rank"=6 AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Team wins has an Individual winner smaller than 1 and Total win larger than 1?`

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

CREATE TABLE "national_summary" (
  "nation" text,
  "total_wins" real,
  "team_wins" real,
  "individual_wins" real,
  "individual_winners" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team wins has an Individual winner smaller than 1 and Total win larger than 1?`:
```sql
                SELECT SUM("team_wins") FROM "national_summary" WHERE "individual_winners"<1 AND "total_wins">1;
```
## Task
Generate a SQL query to answer the following question:
`Which Team Win is from sweden and has a Individual win smaller than 1`

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

CREATE TABLE "national_summary" (
  "nation" text,
  "total_wins" real,
  "team_wins" real,
  "individual_wins" real,
  "individual_winners" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team Win is from sweden and has a Individual win smaller than 1`:
```sql
                SELECT MAX("team_wins") FROM "national_summary" WHERE "nation"='sweden' AND "individual_wins"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which channel did Going for Gold air on?`

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

CREATE TABLE "returning_this_year_after_a_break_of_one" (
  "programme" text,
  "date_s_of_original_removal" text,
  "original_channel" text,
  "date_s_of_return" text,
  "new_channel_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which channel did Going for Gold air on?`:
```sql
                SELECT "original_channel" FROM "returning_this_year_after_a_break_of_one" WHERE "programme"='going for gold';
```
## Task
Generate a SQL query to answer the following question:
`What channel is Gladiators on?`

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

CREATE TABLE "returning_this_year_after_a_break_of_one" (
  "programme" text,
  "date_s_of_original_removal" text,
  "original_channel" text,
  "date_s_of_return" text,
  "new_channel_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What channel is Gladiators on?`:
```sql
                SELECT "new_channel_s" FROM "returning_this_year_after_a_break_of_one" WHERE "programme"='gladiators';
```
## Task
Generate a SQL query to answer the following question:
`When did Going for Gold return in BBC One?`

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

CREATE TABLE "returning_this_year_after_a_break_of_one" (
  "programme" text,
  "date_s_of_original_removal" text,
  "original_channel" text,
  "date_s_of_return" text,
  "new_channel_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Going for Gold return in BBC One?`:
```sql
                SELECT "date_s_of_return" FROM "returning_this_year_after_a_break_of_one" WHERE "original_channel"='bbc one' AND "programme"='going for gold';
```
## Task
Generate a SQL query to answer the following question:
`Which faith has a name of Belswains?`

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

CREATE TABLE "south_east" (
  "name" text,
  "faith" text,
  "type" text,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which faith has a name of Belswains?`:
```sql
                SELECT "faith" FROM "south_east" WHERE "name"='belswains';
```
## Task
Generate a SQL query to answer the following question:
`Which school is a primary school with DCSF number 2045?`

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

CREATE TABLE "south_east" (
  "name" text,
  "faith" text,
  "type" text,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which school is a primary school with DCSF number 2045?`:
```sql
                SELECT "name" FROM "south_east" WHERE "type"='primary' AND "dcsf_number"=2045;
```
## Task
Generate a SQL query to answer the following question:
`Which position had fewer rounds than 3, and an overall of less than 48?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position had fewer rounds than 3, and an overall of less than 48?`:
```sql
                SELECT "position" FROM "jacksonville_jaguars_draft_history" WHERE "round"<3 AND "overall"<48;
```
## Task
Generate a SQL query to answer the following question:
`Which highest pick number's name was Adam Podlesh, when the overall was less than 101?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which highest pick number's name was Adam Podlesh, when the overall was less than 101?`:
```sql
                SELECT MAX("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "name"='adam podlesh' AND "overall"<101;
```
## Task
Generate a SQL query to answer the following question:
`What is the IHSAA class in Batesville?`

### 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,
  "city" text,
  "team_name" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSAA class in Batesville?`:
```sql
                SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "city"='batesville';
```
## Task
Generate a SQL query to answer the following question:
`Which city is Lawrenceburg school, with an IHSAA football class of aaa and less than 676 enrollments, located in?`

### 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,
  "city" text,
  "team_name" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city is Lawrenceburg school, with an IHSAA football class of aaa and less than 676 enrollments, located in?`:
```sql
                SELECT "city" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_football_class"='aaa' AND "enrollment"<676 AND "school"='lawrenceburg';
```
## Task
Generate a SQL query to answer the following question:
`What school is in Brookville?`

### 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,
  "city" text,
  "team_name" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school is in Brookville?`:
```sql
                SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "city"='brookville';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Record of 36–61?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Record of 36–61?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='36–61';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Record of 34–51?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has a Record of 34–51?`:
```sql
                SELECT MIN("attendance") FROM "game_log" WHERE "record"='34–51';
```
## Task
Generate a SQL query to answer the following question:
`Which Loss has a Date of july 2?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Loss has a Date of july 2?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "date"='july 2';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament's 2001 and 2008 were a when 2010 was qf?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament's 2001 and 2008 were a when 2010 was qf?`:
```sql
                SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2001"='a' AND "2008"='a' AND "2010"='qf';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament's 2001 and 2006s were a?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament's 2001 and 2006s were a?`:
```sql
                SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2001"='a' AND "2006"='a';
```
## Task
Generate a SQL query to answer the following question:
`Which 2007 had a 2009 taht was qf when its 2000 was a?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007 had a 2009 taht was qf when its 2000 was a?`:
```sql
                SELECT "2007" FROM "doubles_performance_timeline" WHERE "2009"='qf' AND "2000"='a';
```
## Task
Generate a SQL query to answer the following question:
`Which 2008 had a 1998 and 2006 that were a when 2009 was sf?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2008 had a 1998 and 2006 that were a when 2009 was sf?`:
```sql
                SELECT "2008" FROM "doubles_performance_timeline" WHERE "1998"='a' AND "2009"='sf' AND "2006"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of floors for the Citic Square?`

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

CREATE TABLE "tallest_buildings" (
  "rank" text,
  "name" text,
  "height_m_ft" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of floors for the Citic Square?`:
```sql
                SELECT AVG("floors") FROM "tallest_buildings" WHERE "name"='citic square';
```