cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What championship was in the USA after 1994, and resulted in 5th place?`

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

CREATE TABLE "coaching_titles" (
  "year" real,
  "championship" text,
  "event" text,
  "nation" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What championship was in the USA after 1994, and resulted in 5th place?`:
```sql
                SELECT "championship" FROM "coaching_titles" WHERE "nation"='usa' AND "year">1994 AND "result"='5th';
```
## Task
Generate a SQL query to answer the following question:
`What year did Canada get a silver in the olympics in the Men's Coxless Pair event?`

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

CREATE TABLE "coaching_titles" (
  "year" real,
  "championship" text,
  "event" text,
  "nation" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Canada get a silver in the olympics in the Men's Coxless Pair event?`:
```sql
                SELECT MIN("year") FROM "coaching_titles" WHERE "nation"='canada' AND "result"='silver' AND "championship"='olympics' AND "event"='men''s coxless pair';
```
## Task
Generate a SQL query to answer the following question:
`Where is the lacrosse school located?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the lacrosse school located?`:
```sql
                SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "school"='lacrosse';
```
## Task
Generate a SQL query to answer the following question:
`Which IHSAA Class has a Mascot of tigers?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IHSAA Class has a Mascot of tigers?`:
```sql
                SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='tigers';
```
## Task
Generate a SQL query to answer the following question:
`Which Location has an Enrollment larger than 543?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location has an Enrollment larger than 543?`:
```sql
                SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "enrollment">543;
```
## Task
Generate a SQL query to answer the following question:
`Which County has an Enrollment of 297?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which County has an Enrollment of 297?`:
```sql
                SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "enrollment"=297;
```
## Task
Generate a SQL query to answer the following question:
`Which School has an Enrollment larger than 264, and a County of 46 la porte?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School has an Enrollment larger than 264, and a County of 46 la porte?`:
```sql
                SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "enrollment">264 AND "county"='46 la porte';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of silver medals when there are more than 1 gold, and more than 6 bronze?`

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

CREATE TABLE "world_championships_total_medals" (
  "rank" text,
  "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 number of silver medals when there are more than 1 gold, and more than 6 bronze?`:
```sql
                SELECT MIN("silver") FROM "world_championships_total_medals" WHERE "gold">1 AND "bronze">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the total when the Yugoslavia number of silver won is more than 1?`

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

CREATE TABLE "world_championships_total_medals" (
  "rank" text,
  "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 total when the Yugoslavia number of silver won is more than 1?`:
```sql
                SELECT MAX("total") FROM "world_championships_total_medals" WHERE "silver">1 AND "nation"='yugoslavia';
```
## Task
Generate a SQL query to answer the following question:
`What is the total attendance before week 1?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total attendance before week 1?`:
```sql
                SELECT SUM("attendance") FROM "schedule" WHERE "week"<1;
```
## Task
Generate a SQL query to answer the following question:
`When was sniffles and the bookworm released?`

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

CREATE TABLE "1939" (
  "title" text,
  "series" text,
  "director" text,
  "production_num" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was sniffles and the bookworm released?`:
```sql
                SELECT "release_date" FROM "1939" WHERE "title"='sniffles and the bookworm';
```
## Task
Generate a SQL query to answer the following question:
`When was land of the midnight fun in the mm series released?`

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

CREATE TABLE "1939" (
  "title" text,
  "series" text,
  "director" text,
  "production_num" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was land of the midnight fun in the mm series released?`:
```sql
                SELECT "release_date" FROM "1939" WHERE "series"='mm' AND "title"='land of the midnight fun';
```
## Task
Generate a SQL query to answer the following question:
`Which series had a release on 1939-07-15 with the 8863 production number?`

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

CREATE TABLE "1939" (
  "title" text,
  "series" text,
  "director" text,
  "production_num" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which series had a release on 1939-07-15 with the 8863 production number?`:
```sql
                SELECT "series" FROM "1939" WHERE "release_date"='1939-07-15' AND "production_num"='8863';
```
## Task
Generate a SQL query to answer the following question:
`Who directed hamateur night?`

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

CREATE TABLE "1939" (
  "title" text,
  "series" text,
  "director" text,
  "production_num" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed hamateur night?`:
```sql
                SELECT "director" FROM "1939" WHERE "title"='hamateur night';
```
## Task
Generate a SQL query to answer the following question:
`When was Production Number 9105 released?`

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

CREATE TABLE "1939" (
  "title" text,
  "series" text,
  "director" text,
  "production_num" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Production Number 9105 released?`:
```sql
                SELECT "release_date" FROM "1939" WHERE "production_num"='9105';
```
## Task
Generate a SQL query to answer the following question:
`What Class has a Frequency of 90.1 FM?`

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

CREATE TABLE "s_rebroadcaster_of_cbfx_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Class has a Frequency of 90.1 FM?`:
```sql
                SELECT "class" FROM "s_rebroadcaster_of_cbfx_fm" WHERE "frequency"='90.1 fm';
```
## Task
Generate a SQL query to answer the following question:
`What is listed for the RECNet that also has a Frequency of 91.1 FM?`

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

CREATE TABLE "s_rebroadcaster_of_cbfx_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the RECNet that also has a Frequency of 91.1 FM?`:
```sql
                SELECT "rec_net" FROM "s_rebroadcaster_of_cbfx_fm" WHERE "frequency"='91.1 fm';
```
## Task
Generate a SQL query to answer the following question:
`What Class has the Identifier fo CBFX-FM-2?`

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

CREATE TABLE "s_rebroadcaster_of_cbfx_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Class has the Identifier fo CBFX-FM-2?`:
```sql
                SELECT "class" FROM "s_rebroadcaster_of_cbfx_fm" WHERE "identifier"='cbfx-fm-2';
```
## Task
Generate a SQL query to answer the following question:
`What is the RECNet with a Class of B and the City of License of Rouyn-Noranda?`

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

CREATE TABLE "s_rebroadcaster_of_cbfx_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the RECNet with a Class of B and the City of License of Rouyn-Noranda?`:
```sql
                SELECT "rec_net" FROM "s_rebroadcaster_of_cbfx_fm" WHERE "class"='b' AND "city_of_license"='rouyn-noranda';
```
## Task
Generate a SQL query to answer the following question:
`What Class has the Identifier of CBFX-FM-6?`

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

CREATE TABLE "s_rebroadcaster_of_cbfx_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Class has the Identifier of CBFX-FM-6?`:
```sql
                SELECT "class" FROM "s_rebroadcaster_of_cbfx_fm" WHERE "identifier"='cbfx-fm-6';
```
## Task
Generate a SQL query to answer the following question:
`What Frequency has the Identifier of CBFX-FM-6?`

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

CREATE TABLE "s_rebroadcaster_of_cbfx_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Frequency has the Identifier of CBFX-FM-6?`:
```sql
                SELECT "frequency" FROM "s_rebroadcaster_of_cbfx_fm" WHERE "identifier"='cbfx-fm-6';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of gold with less than 1 silver, from Belgium?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "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 total number of gold with less than 1 silver, from Belgium?`:
```sql
                SELECT COUNT("gold") FROM "medals_table" WHERE "silver"<1 AND "nation"='belgium';
```
## Task
Generate a SQL query to answer the following question:
`Which Lost has Points smaller than 15, and a Name of sc forst, and Drawn smaller than 0?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lost has Points smaller than 15, and a Name of sc forst, and Drawn smaller than 0?`:
```sql
                SELECT AVG("lost") FROM "first_round" WHERE "points"<15 AND "name"='sc forst' AND "drawn"<0;
```
## Task
Generate a SQL query to answer the following question:
`How much Position has a Lost of 8, and a Played larger than 14?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Position has a Lost of 8, and a Played larger than 14?`:
```sql
                SELECT SUM("position") FROM "first_round" WHERE "lost"=8 AND "played">14;
```
## Task
Generate a SQL query to answer the following question:
`Which Drawn has a Lost larger than 8, and Points smaller than 7?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Drawn has a Lost larger than 8, and Points smaller than 7?`:
```sql
                SELECT SUM("drawn") FROM "first_round" WHERE "lost">8 AND "points"<7;
```
## Task
Generate a SQL query to answer the following question:
`How much Drawn has a Name of erc lechbruck, and Points smaller than 17?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Drawn has a Name of erc lechbruck, and Points smaller than 17?`:
```sql
                SELECT COUNT("drawn") FROM "first_round" WHERE "name"='erc lechbruck' AND "points"<17;
```
## Task
Generate a SQL query to answer the following question:
`What town is from the molėtai district municipality and has a population rank of 187 and a population less than 470 in 2001?`

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

CREATE TABLE "towns" (
  "town" text,
  "population_2001" real,
  "population_rank" real,
  "county" text,
  "municipality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What town is from the molėtai district municipality and has a population rank of 187 and a population less than 470 in 2001?`:
```sql
                SELECT "town" FROM "towns" WHERE "municipality"='molėtai district municipality' AND "population_2001"<470 AND "population_rank"=187;
```
## Task
Generate a SQL query to answer the following question:
`What county is the town with a rank of 205 located in?`

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

CREATE TABLE "towns" (
  "town" text,
  "population_2001" real,
  "population_rank" real,
  "county" text,
  "municipality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What county is the town with a rank of 205 located in?`:
```sql
                SELECT "county" FROM "towns" WHERE "population_rank"=205;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest draws for percentages of 5.02%?`

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

CREATE TABLE "results_of_heat_6" (
  "draw" real,
  "artist" text,
  "song" text,
  "percentage" text,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest draws for percentages of 5.02%?`:
```sql
                SELECT MIN("draw") FROM "results_of_heat_6" WHERE "percentage"='5.02%';
```
## Task
Generate a SQL query to answer the following question:
`What is the average draws for the song "Europe is My Home!"?`

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

CREATE TABLE "results_of_heat_6" (
  "draw" real,
  "artist" text,
  "song" text,
  "percentage" text,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average draws for the song "Europe is My Home!"?`:
```sql
                SELECT AVG("draw") FROM "results_of_heat_6" WHERE "song"='\"europe is my home!\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player from the denver broncos?`

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

CREATE TABLE "ninth_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player from the denver broncos?`:
```sql
                SELECT "position" FROM "ninth_round" WHERE "team"='denver broncos';
```
## Task
Generate a SQL query to answer the following question:
`What is the average pick of the kansas city chiefs?`

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

CREATE TABLE "ninth_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average pick of the kansas city chiefs?`:
```sql
                SELECT AVG("pick") FROM "ninth_round" WHERE "team"='kansas city chiefs';
```
## Task
Generate a SQL query to answer the following question:
`What is the pick of wiley college?`

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

CREATE TABLE "ninth_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick of wiley college?`:
```sql
                SELECT "pick" FROM "ninth_round" WHERE "college"='wiley';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the game with alfreton town as the home team?`

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

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for the game with alfreton town as the home team?`:
```sql
                SELECT "attendance" FROM "northern_section" WHERE "home_team"='alfreton town';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game where stafford rangers was the away team?`

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

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game where stafford rangers was the away team?`:
```sql
                SELECT "score" FROM "northern_section" WHERE "away_team"='stafford rangers';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team that has a tie no of 1?`

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

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team that has a tie no of 1?`:
```sql
                SELECT "home_team" FROM "northern_section" WHERE "tie_no"='1';
```
## Task
Generate a SQL query to answer the following question:
`What is the tie no that has southport as the away team?`

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

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tie no that has southport as the away team?`:
```sql
                SELECT "tie_no" FROM "northern_section" WHERE "away_team"='southport';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the game that had the king's lynn as the home team?`

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

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for the game that had the king's lynn as the home team?`:
```sql
                SELECT "attendance" FROM "northern_section" WHERE "home_team"='king''s lynn';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the game with a tie no of 1?`

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

CREATE TABLE "northern_section" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the game with a tie no of 1?`:
```sql
                SELECT "score" FROM "northern_section" WHERE "tie_no"='1';
```
## Task
Generate a SQL query to answer the following question:
`What is the game number on December 21?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game number on December 21?`:
```sql
                SELECT COUNT("game") FROM "game_log" WHERE "date"='december 21';
```
## Task
Generate a SQL query to answer the following question:
`What is the Game with a Record of 19-15?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Game with a Record of 19-15?`:
```sql
                SELECT "game" FROM "game_log" WHERE "record"='19-15';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the game against Detroit in game 31 or after?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the game against Detroit in game 31 or after?`:
```sql
                SELECT "date" FROM "game_log" WHERE "game">31 AND "opponent"='detroit';
```
## Task
Generate a SQL query to answer the following question:
`During which years did the golfer with the total of 289 win?`

### 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 `During which years did the golfer with the total of 289 win?`:
```sql
                SELECT "year_s_won" FROM "made_the_cut" WHERE "total"=289;
```
## Task
Generate a SQL query to answer the following question:
`What was the To par for the player who finished t56?`

### 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 was the To par for the player who finished t56?`:
```sql
                SELECT "to_par" FROM "made_the_cut" WHERE "finish"='t56';
```
## Task
Generate a SQL query to answer the following question:
`Which county did the player with a total of 294 represent?`

### 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 county did the player with a total of 294 represent?`:
```sql
                SELECT "country" FROM "made_the_cut" WHERE "total"=294;
```
## Task
Generate a SQL query to answer the following question:
`What was the total for united states player phil mickelson?`

### 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 was the total for united states player phil mickelson?`:
```sql
                SELECT MIN("total") FROM "made_the_cut" WHERE "country"='united states' AND "player"='phil mickelson';
```
## Task
Generate a SQL query to answer the following question:
`With a less than 4 rank, and a time less than 24.42 what is the smallest lane?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a less than 4 rank, and a time less than 24.42 what is the smallest lane?`:
```sql
                SELECT MIN("lane") FROM "semifinal_2" WHERE "rank"<4 AND "time"<24.42;
```
## Task
Generate a SQL query to answer the following question:
`The swimmer from the United States in a lane less than 5, had what as the average time?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `The swimmer from the United States in a lane less than 5, had what as the average time?`:
```sql
                SELECT AVG("time") FROM "semifinal_2" WHERE "nationality"='united states' AND "lane"<5;
```
## Task
Generate a SQL query to answer the following question:
`What nationality is the swimmer that is in the lane that is less than 2?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality is the swimmer that is in the lane that is less than 2?`:
```sql
                SELECT "nationality" FROM "semifinal_2" WHERE "lane"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which Losses have Draws smaller than 0?`

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

CREATE TABLE "2009_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Losses have Draws smaller than 0?`:
```sql
                SELECT MAX("losses") FROM "2009_ladder" WHERE "draws"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Losses have Draws larger than 0?`

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

CREATE TABLE "2009_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Losses have Draws larger than 0?`:
```sql
                SELECT MAX("losses") FROM "2009_ladder" WHERE "draws">0;
```
## Task
Generate a SQL query to answer the following question:
`How much Against has Losses smaller than 7, and a Wimmera FL of horsham?`

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

CREATE TABLE "2009_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Against has Losses smaller than 7, and a Wimmera FL of horsham?`:
```sql
                SELECT SUM("against") FROM "2009_ladder" WHERE "losses"<7 AND "wimmera_fl"='horsham';
```
## Task
Generate a SQL query to answer the following question:
`How many Draws have Wins larger than 7, and a Wimmera FL of nhill, and Losses larger than 8?`

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

CREATE TABLE "2009_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Draws have Wins larger than 7, and a Wimmera FL of nhill, and Losses larger than 8?`:
```sql
                SELECT SUM("draws") FROM "2009_ladder" WHERE "wins">7 AND "wimmera_fl"='nhill' AND "losses">8;
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the match with a score of 3-6, 2-6?`

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

CREATE TABLE "singles_finals_10" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome of the match with a score of 3-6, 2-6?`:
```sql
                SELECT "outcome" FROM "singles_finals_10" WHERE "score"='3-6, 2-6';
```
## Task
Generate a SQL query to answer the following question:
`What was the tournament that had byron black playing against magnus larsson?`

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

CREATE TABLE "singles_finals_10" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tournament that had byron black playing against magnus larsson?`:
```sql
                SELECT "tournament" FROM "singles_finals_10" WHERE "opponent"='magnus larsson';
```
## Task
Generate a SQL query to answer the following question:
`What tournament had a game with a score of 6-7, 4-6?`

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

CREATE TABLE "singles_finals_10" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament had a game with a score of 6-7, 4-6?`:
```sql
                SELECT "tournament" FROM "singles_finals_10" WHERE "score"='6-7, 4-6';
```
## Task
Generate a SQL query to answer the following question:
`What was the yacht type smaller than 16.5 metres that finished in 3:14:41:28?`

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

CREATE TABLE "line_honours_results_top_10" (
  "position" real,
  "sail_number" text,
  "yacht" text,
  "state_country" text,
  "yacht_type" text,
  "loa_metres" real,
  "skipper" text,
  "elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the yacht type smaller than 16.5 metres that finished in 3:14:41:28?`:
```sql
                SELECT "yacht_type" FROM "line_honours_results_top_10" WHERE "loa_metres"<16.5 AND "elapsed_time_d_hh_mm_ss"='3:14:41:28';
```
## Task
Generate a SQL query to answer the following question:
`what is the result when the round is less than 7 and the opponent is melbourne storm?`

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

CREATE TABLE "results" (
  "round" real,
  "opponent" text,
  "result" text,
  "opp" real,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the result when the round is less than 7 and the opponent is melbourne storm?`:
```sql
                SELECT "result" FROM "results" WHERE "round"<7 AND "opponent"='melbourne storm';
```
## Task
Generate a SQL query to answer the following question:
`what is the venue when the result is loss and the opponent is st george-illawarra dragons?`

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

CREATE TABLE "results" (
  "round" real,
  "opponent" text,
  "result" text,
  "opp" real,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the venue when the result is loss and the opponent is st george-illawarra dragons?`:
```sql
                SELECT "venue" FROM "results" WHERE "result"='loss' AND "opponent"='st george-illawarra dragons';
```
## Task
Generate a SQL query to answer the following question:
`Who won silver in 1982?`

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

CREATE TABLE "world_championships_men" (
  "year" real,
  "place" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won silver in 1982?`:
```sql
                SELECT "silver" FROM "world_championships_men" WHERE "year"=1982;
```
## Task
Generate a SQL query to answer the following question:
`What is the Time of the Rowers in Rank 1?`

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

CREATE TABLE "repechage" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time of the Rowers in Rank 1?`:
```sql
                SELECT "time" FROM "repechage" WHERE "rank"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the Time of the Rowers from Belgium?`

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

CREATE TABLE "repechage" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time of the Rowers from Belgium?`:
```sql
                SELECT "time" FROM "repechage" WHERE "country"='belgium';
```
## Task
Generate a SQL query to answer the following question:
`What time does lane 7 have?`

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

CREATE TABLE "semifinal_3" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "country" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time does lane 7 have?`:
```sql
                SELECT "time" FROM "semifinal_3" WHERE "lane"=7;
```
## Task
Generate a SQL query to answer the following question:
`What are the years employed shown for mathematics & prefect master?`

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

CREATE TABLE "notable_masters" (
  "name" text,
  "employed" text,
  "position_held" text,
  "honour" text,
  "citation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the years employed shown for mathematics & prefect master?`:
```sql
                SELECT "employed" FROM "notable_masters" WHERE "position_held"='mathematics & prefect master';
```
## Task
Generate a SQL query to answer the following question:
`What citation is shown for the employed years of 1970–1996?`

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

CREATE TABLE "notable_masters" (
  "name" text,
  "employed" text,
  "position_held" text,
  "honour" text,
  "citation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What citation is shown for the employed years of 1970–1996?`:
```sql
                SELECT "citation" FROM "notable_masters" WHERE "employed"='1970–1996';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the person employed 1970–2005?`

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

CREATE TABLE "notable_masters" (
  "name" text,
  "employed" text,
  "position_held" text,
  "honour" text,
  "citation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the person employed 1970–2005?`:
```sql
                SELECT "name" FROM "notable_masters" WHERE "employed"='1970–2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time of the Rowers from Finland with a Rank of less than 4?`

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

CREATE TABLE "repechage_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time of the Rowers from Finland with a Rank of less than 4?`:
```sql
                SELECT "time" FROM "repechage_1" WHERE "rank"<4 AND "country"='finland';
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the Rowers with a Time of 7:30.92?`

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

CREATE TABLE "repechage_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank of the Rowers with a Time of 7:30.92?`:
```sql
                SELECT SUM("rank") FROM "repechage_1" WHERE "time"='7:30.92';
```
## Task
Generate a SQL query to answer the following question:
`What are the Notes of the Country of finland?`

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

CREATE TABLE "repechage_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Notes of the Country of finland?`:
```sql
                SELECT "notes" FROM "repechage_1" WHERE "country"='finland';
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponents for week 12?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents for week 12?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"=12;
```
## Task
Generate a SQL query to answer the following question:
`Which polling institute showed a lead of 6%?`

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

CREATE TABLE "opinion_polls" (
  "date_s_released" text,
  "polling_institute" text,
  "nationalist" text,
  "labour" text,
  "democratic_alternative" text,
  "undecided_no_answer" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which polling institute showed a lead of 6%?`:
```sql
                SELECT "polling_institute" FROM "opinion_polls" WHERE "lead"='6%';
```
## Task
Generate a SQL query to answer the following question:
`Which date released had a Democratic Alternative value of 1% and Labour of 34%?`

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

CREATE TABLE "opinion_polls" (
  "date_s_released" text,
  "polling_institute" text,
  "nationalist" text,
  "labour" text,
  "democratic_alternative" text,
  "undecided_no_answer" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date released had a Democratic Alternative value of 1% and Labour of 34%?`:
```sql
                SELECT "date_s_released" FROM "opinion_polls" WHERE "democratic_alternative"='1%' AND "labour"='34%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Nationalist share of the poll for the response in which Undecided/No Answer received 29.2%?`

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

CREATE TABLE "opinion_polls" (
  "date_s_released" text,
  "polling_institute" text,
  "nationalist" text,
  "labour" text,
  "democratic_alternative" text,
  "undecided_no_answer" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nationalist share of the poll for the response in which Undecided/No Answer received 29.2%?`:
```sql
                SELECT "nationalist" FROM "opinion_polls" WHERE "undecided_no_answer"='29.2%';
```
## Task
Generate a SQL query to answer the following question:
`What is the value of the Democratic Alternative for the poll released by Malta Today?`

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

CREATE TABLE "opinion_polls" (
  "date_s_released" text,
  "polling_institute" text,
  "nationalist" text,
  "labour" text,
  "democratic_alternative" text,
  "undecided_no_answer" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value of the Democratic Alternative for the poll released by Malta Today?`:
```sql
                SELECT "democratic_alternative" FROM "opinion_polls" WHERE "polling_institute"='malta today';
```
## Task
Generate a SQL query to answer the following question:
`Which polling institute showed a lead of 12% and a Labour share of the poll at 40.2%?`

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

CREATE TABLE "opinion_polls" (
  "date_s_released" text,
  "polling_institute" text,
  "nationalist" text,
  "labour" text,
  "democratic_alternative" text,
  "undecided_no_answer" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which polling institute showed a lead of 12% and a Labour share of the poll at 40.2%?`:
```sql
                SELECT "polling_institute" FROM "opinion_polls" WHERE "lead"='12%' AND "labour"='40.2%';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest week that has Minnesota Vikings as the opponent?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest week that has Minnesota Vikings as the opponent?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "opponent"='minnesota vikings';
```
## Task
Generate a SQL query to answer the following question:
`What opponent has December 6, 1964 as the date?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent has December 6, 1964 as the date?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='december 6, 1964';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance of the game on September 18, 1965 before week 3?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance of the game on September 18, 1965 before week 3?`:
```sql
                SELECT "attendance" FROM "season_schedule" WHERE "week"<3 AND "date"='september 18, 1965';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game before week 3 with an attendance of 53,658?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game before week 3 with an attendance of 53,658?`:
```sql
                SELECT "result" FROM "season_schedule" WHERE "week"<3 AND "attendance"='53,658';
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest week on September 26, 1965?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest week on September 26, 1965?`:
```sql
                SELECT MIN("week") FROM "season_schedule" WHERE "date"='september 26, 1965';
```
## Task
Generate a SQL query to answer the following question:
`What is the total time for one south broad?`

### 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_ft_m" text,
  "floors" real,
  "year" real,
  "address" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total time for one south broad?`:
```sql
                SELECT SUM("year") FROM "tallest_buildings" WHERE "name"='one south broad';
```