cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the Attendance of the game on November 6, 1966?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance of the game on November 6, 1966?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "date"='november 6, 1966';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result of the game on November 6, 1966?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result of the game on November 6, 1966?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='november 6, 1966';
```
## Task
Generate a SQL query to answer the following question:
`Who is the club with a 4:03.63 time?`

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

CREATE TABLE "women" (
  "event" text,
  "time" text,
  "club" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the club with a 4:03.63 time?`:
```sql
                SELECT "club" FROM "women" WHERE "time"='4:03.63';
```
## Task
Generate a SQL query to answer the following question:
`What was the Green-Communist percentage in the poll in which the Socialist Party earned 41.0%?`

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

CREATE TABLE "116_seats_needed_for_a_majority" (
  "date_released" text,
  "institute" text,
  "social_democratic" text,
  "socialist" text,
  "green_communist" text,
  "people_s_party" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Green-Communist percentage in the poll in which the Socialist Party earned 41.0%?`:
```sql
                SELECT "green_communist" FROM "116_seats_needed_for_a_majority" WHERE "socialist"='41.0%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Green-Communist percentage in the poll showing a 9.7% lead?`

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

CREATE TABLE "116_seats_needed_for_a_majority" (
  "date_released" text,
  "institute" text,
  "social_democratic" text,
  "socialist" text,
  "green_communist" text,
  "people_s_party" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Green-Communist percentage in the poll showing a 9.7% lead?`:
```sql
                SELECT "green_communist" FROM "116_seats_needed_for_a_majority" WHERE "lead"='9.7%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Social Democratic percentage for the poll with a Green-Communist rate of 9.0%, People's Party of 10.0%, and Socialist of 39.0%?`

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

CREATE TABLE "116_seats_needed_for_a_majority" (
  "date_released" text,
  "institute" text,
  "social_democratic" text,
  "socialist" text,
  "green_communist" text,
  "people_s_party" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Social Democratic percentage for the poll with a Green-Communist rate of 9.0%, People's Party of 10.0%, and Socialist of 39.0%?`:
```sql
                SELECT "social_democratic" FROM "116_seats_needed_for_a_majority" WHERE "green_communist"='9.0%' AND "people_s_party"='10.0%' AND "socialist"='39.0%';
```
## Task
Generate a SQL query to answer the following question:
`what is the result on 9 october 2012?`

### 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 is the result on 9 october 2012?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "date"='9 october 2012';
```
## Task
Generate a SQL query to answer the following question:
`what is the score when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012?`

### 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 is the score when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "venue"='stade général seyni kountché, niamey' AND "competition"='friendly' AND "date"='9 october 2012';
```
## Task
Generate a SQL query to answer the following question:
`what is the result when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012?`

### 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 is the result when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "venue"='stade général seyni kountché, niamey' AND "competition"='friendly' AND "date"='9 october 2012';
```
## Task
Generate a SQL query to answer the following question:
`what is the competition on 10 august 2011?`

### 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 is the competition on 10 august 2011?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "date"='10 august 2011';
```
## Task
Generate a SQL query to answer the following question:
`what is the date when the venue is stade général seyni kountché , niamey?`

### 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 is the date when the venue is stade général seyni kountché , niamey?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "venue"='stade général seyni kountché , niamey';
```
## Task
Generate a SQL query to answer the following question:
`What place has manfred kokot as the athlete?`

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

CREATE TABLE "top_all_time_athletes_50_metres_men" (
  "rank" real,
  "time" text,
  "athlete" text,
  "date" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place has manfred kokot as the athlete?`:
```sql
                SELECT "place" FROM "top_all_time_athletes_50_metres_men" WHERE "athlete"='manfred kokot';
```
## Task
Generate a SQL query to answer the following question:
`What athlete has reno as the place?`

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

CREATE TABLE "top_all_time_athletes_50_metres_men" (
  "rank" real,
  "time" text,
  "athlete" text,
  "date" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What athlete has reno as the place?`:
```sql
                SELECT "athlete" FROM "top_all_time_athletes_50_metres_men" WHERE "place"='reno';
```
## Task
Generate a SQL query to answer the following question:
`What campus opened in 1970?`

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

CREATE TABLE "campuses" (
  "campus" text,
  "year_opened" text,
  "students" text,
  "size" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What campus opened in 1970?`:
```sql
                SELECT "campus" FROM "campuses" WHERE "year_opened"='1970';
```
## Task
Generate a SQL query to answer the following question:
`What year was the school opened that has a size of 10 acres and students of na?`

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

CREATE TABLE "campuses" (
  "campus" text,
  "year_opened" text,
  "students" text,
  "size" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the school opened that has a size of 10 acres and students of na?`:
```sql
                SELECT "year_opened" FROM "campuses" WHERE "students"='na' AND "size"='10 acres';
```
## Task
Generate a SQL query to answer the following question:
`What location was the campus that has a size of 245 acres?`

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

CREATE TABLE "campuses" (
  "campus" text,
  "year_opened" text,
  "students" text,
  "size" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location was the campus that has a size of 245 acres?`:
```sql
                SELECT "location" FROM "campuses" WHERE "size"='245 acres';
```
## Task
Generate a SQL query to answer the following question:
`What campus was opened in 1977?`

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

CREATE TABLE "campuses" (
  "campus" text,
  "year_opened" text,
  "students" text,
  "size" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What campus was opened in 1977?`:
```sql
                SELECT "campus" FROM "campuses" WHERE "year_opened"='1977';
```
## Task
Generate a SQL query to answer the following question:
`What location was the campus opened in 2005 with students listed as na?`

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

CREATE TABLE "campuses" (
  "campus" text,
  "year_opened" text,
  "students" text,
  "size" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location was the campus opened in 2005 with students listed as na?`:
```sql
                SELECT "location" FROM "campuses" WHERE "students"='na' AND "year_opened"='2005';
```
## Task
Generate a SQL query to answer the following question:
`what is the type when the rank is smaller than 70, the province is british columbia and the capacity (mw) is more than 2,480?`

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

CREATE TABLE "largest_generating_stations" (
  "rank" real,
  "name" text,
  "capacity_mw" real,
  "province" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the type when the rank is smaller than 70, the province is british columbia and the capacity (mw) is more than 2,480?`:
```sql
                SELECT "type" FROM "largest_generating_stations" WHERE "rank"<70 AND "province"='british columbia' AND "capacity_mw">'2,480';
```
## Task
Generate a SQL query to answer the following question:
`what is the least capacity (mw) when the rank is less than 46 and the province is newfoundland and labrador?`

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

CREATE TABLE "largest_generating_stations" (
  "rank" real,
  "name" text,
  "capacity_mw" real,
  "province" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least capacity (mw) when the rank is less than 46 and the province is newfoundland and labrador?`:
```sql
                SELECT MIN("capacity_mw") FROM "largest_generating_stations" WHERE "rank"<46 AND "province"='newfoundland and labrador';
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest rank when the type is hydro, the name is grand rapids generating station and the capacity (mw) is more than 479?`

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

CREATE TABLE "largest_generating_stations" (
  "rank" real,
  "name" text,
  "capacity_mw" real,
  "province" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest rank when the type is hydro, the name is grand rapids generating station and the capacity (mw) is more than 479?`:
```sql
                SELECT MIN("rank") FROM "largest_generating_stations" WHERE "type"='hydro' AND "name"='grand rapids generating station' AND "capacity_mw">479;
```
## Task
Generate a SQL query to answer the following question:
`what is the province when the rank is higher than 24 and the name is laforge-2?`

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

CREATE TABLE "largest_generating_stations" (
  "rank" real,
  "name" text,
  "capacity_mw" real,
  "province" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the province when the rank is higher than 24 and the name is laforge-2?`:
```sql
                SELECT "province" FROM "largest_generating_stations" WHERE "rank">24 AND "name"='laforge-2';
```
## Task
Generate a SQL query to answer the following question:
`what is the name when the type is hydro, the capacity (mw) is less than 478, the rank is more than 85 and the province is quebec?`

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

CREATE TABLE "largest_generating_stations" (
  "rank" real,
  "name" text,
  "capacity_mw" real,
  "province" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name when the type is hydro, the capacity (mw) is less than 478, the rank is more than 85 and the province is quebec?`:
```sql
                SELECT "name" FROM "largest_generating_stations" WHERE "type"='hydro' AND "capacity_mw"<478 AND "rank">85 AND "province"='quebec';
```
## Task
Generate a SQL query to answer the following question:
`How many years have toyota team tom's as the team, with Laps greater than 64?`

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

CREATE TABLE "complete_24_hours_of_le_mans_results" (
  "year" real,
  "class" text,
  "tyres" text,
  "team" text,
  "co_drivers" text,
  "laps" real,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years have toyota team tom's as the team, with Laps greater than 64?`:
```sql
                SELECT COUNT("year") FROM "complete_24_hours_of_le_mans_results" WHERE "team"='toyota team tom''s' AND "laps">64;
```
## Task
Generate a SQL query to answer the following question:
`What round was on 11/11/1992?`

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

CREATE TABLE "anglo_italian_cup" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was on 11/11/1992?`:
```sql
                SELECT "round" FROM "anglo_italian_cup" WHERE "date"='11/11/1992';
```
## Task
Generate a SQL query to answer the following question:
`What is the total against on 08/12/1992?`

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

CREATE TABLE "anglo_italian_cup" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total against on 08/12/1992?`:
```sql
                SELECT SUM("against") FROM "anglo_italian_cup" WHERE "date"='08/12/1992';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue of 24/11/1992?`

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

CREATE TABLE "anglo_italian_cup" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue of 24/11/1992?`:
```sql
                SELECT "venue" FROM "anglo_italian_cup" WHERE "date"='24/11/1992';
```
## Task
Generate a SQL query to answer the following question:
`What round has less than 1 against?`

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

CREATE TABLE "anglo_italian_cup" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round has less than 1 against?`:
```sql
                SELECT "round" FROM "anglo_italian_cup" WHERE "against"<1;
```
## Task
Generate a SQL query to answer the following question:
`How many gold medals for germany (GER) having a rank less than 15?`

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

CREATE TABLE "medal_table" (
  "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 gold medals for germany (GER) having a rank less than 15?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "nation"='germany (ger)' AND "rank"<15;
```
## Task
Generate a SQL query to answer the following question:
`How many silver medals when the bronze is more than 2 and having a rank more than 5?`

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

CREATE TABLE "medal_table" (
  "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 silver medals when the bronze is more than 2 and having a rank more than 5?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "rank">5 AND "bronze">2;
```
## Task
Generate a SQL query to answer the following question:
`What's the average number of silver medals when bronze is less than 0?`

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

CREATE TABLE "medal_table" (
  "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's the average number of silver medals when bronze is less than 0?`:
```sql
                SELECT AVG("silver") FROM "medal_table" WHERE "bronze"<0;
```
## Task
Generate a SQL query to answer the following question:
`What's the average number of silver medals for germany (GER) having more than 3 bronze?`

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

CREATE TABLE "medal_table" (
  "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's the average number of silver medals for germany (GER) having more than 3 bronze?`:
```sql
                SELECT AVG("silver") FROM "medal_table" WHERE "nation"='germany (ger)' AND "bronze">3;
```
## Task
Generate a SQL query to answer the following question:
`What are the notes for 6:31.16?`

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

CREATE TABLE "semifinal_a_b_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 for 6:31.16?`:
```sql
                SELECT "notes" FROM "semifinal_a_b_1" WHERE "time"='6:31.16';
```
## Task
Generate a SQL query to answer the following question:
`What rowers have a 6:29.56 time?`

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

CREATE TABLE "semifinal_a_b_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rowers have a 6:29.56 time?`:
```sql
                SELECT "rowers" FROM "semifinal_a_b_1" WHERE "time"='6:29.56';
```
## Task
Generate a SQL query to answer the following question:
`What is the time with FB notes for Canada?`

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

CREATE TABLE "semifinal_a_b_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 with FB notes for Canada?`:
```sql
                SELECT "time" FROM "semifinal_a_b_1" WHERE "notes"='fb' AND "country"='canada';
```
## Task
Generate a SQL query to answer the following question:
`What country has a time of 6:49.28?`

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

CREATE TABLE "semifinal_a_b_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a time of 6:49.28?`:
```sql
                SELECT "country" FROM "semifinal_a_b_1" WHERE "time"='6:49.28';
```
## Task
Generate a SQL query to answer the following question:
`Which Tries for has Points against larger than 87, and Tries against smaller than 28, and Points diff of +63?`

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

CREATE TABLE "pool_3" (
  "team" text,
  "tries_for" real,
  "tries_against" real,
  "try_diff" text,
  "points_for" real,
  "points_against" real,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tries for has Points against larger than 87, and Tries against smaller than 28, and Points diff of +63?`:
```sql
                SELECT AVG("tries_for") FROM "pool_3" WHERE "points_against">87 AND "tries_against"<28 AND "points_diff"='+63';
```
## Task
Generate a SQL query to answer the following question:
`Which Points for has Points against smaller than 93, and Tries for larger than 25?`

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

CREATE TABLE "pool_3" (
  "team" text,
  "tries_for" real,
  "tries_against" real,
  "try_diff" text,
  "points_for" real,
  "points_against" real,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points for has Points against smaller than 93, and Tries for larger than 25?`:
```sql
                SELECT MIN("points_for") FROM "pool_3" WHERE "points_against"<93 AND "tries_for">25;
```
## Task
Generate a SQL query to answer the following question:
`Which Tries for has Points against smaller than 124, and Points for smaller than 241, and Tries against smaller than 11?`

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

CREATE TABLE "pool_3" (
  "team" text,
  "tries_for" real,
  "tries_against" real,
  "try_diff" text,
  "points_for" real,
  "points_against" real,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tries for has Points against smaller than 124, and Points for smaller than 241, and Tries against smaller than 11?`:
```sql
                SELECT MAX("tries_for") FROM "pool_3" WHERE "points_against"<124 AND "points_for"<241 AND "tries_against"<11;
```
## Task
Generate a SQL query to answer the following question:
`How many Tries against have a Team of dinamo bucureşti, and Tries for smaller than 19?`

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

CREATE TABLE "pool_3" (
  "team" text,
  "tries_for" real,
  "tries_against" real,
  "try_diff" text,
  "points_for" real,
  "points_against" real,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Tries against have a Team of dinamo bucureşti, and Tries for smaller than 19?`:
```sql
                SELECT COUNT("tries_against") FROM "pool_3" WHERE "team"='dinamo bucureşti' AND "tries_for"<19;
```
## Task
Generate a SQL query to answer the following question:
`What week had attendance of 48,667?`

### 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 week had attendance of 48,667?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "attendance"='48,667';
```
## Task
Generate a SQL query to answer the following question:
`What Song has a Draw of less than 4 with a Percentage of 32.22%?`

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

CREATE TABLE "results_of_heat_1" (
  "draw" real,
  "artist" text,
  "song" text,
  "percentage" text,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Song has a Draw of less than 4 with a Percentage of 32.22%?`:
```sql
                SELECT "song" FROM "results_of_heat_1" WHERE "draw"<4 AND "percentage"='32.22%';
```
## Task
Generate a SQL query to answer the following question:
`What Artist has a Place of 3 or less with a Percentage of 38.60%?`

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

CREATE TABLE "results_of_heat_1" (
  "draw" real,
  "artist" text,
  "song" text,
  "percentage" text,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Artist has a Place of 3 or less with a Percentage of 38.60%?`:
```sql
                SELECT "artist" FROM "results_of_heat_1" WHERE "place"<3 AND "percentage"='38.60%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place of Draw 1 by Artist Monika Kirovska?`

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

CREATE TABLE "results_of_heat_1" (
  "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 Place of Draw 1 by Artist Monika Kirovska?`:
```sql
                SELECT AVG("place") FROM "results_of_heat_1" WHERE "artist"='monika kirovska' AND "draw"<1;
```
## Task
Generate a SQL query to answer the following question:
`What were the most byes of Terang-Mortlake when they had more than 11 wins and more than 1118 against?`

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

CREATE TABLE "2009_ladder" (
  "hampden_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the most byes of Terang-Mortlake when they had more than 11 wins and more than 1118 against?`:
```sql
                SELECT MAX("byes") FROM "2009_ladder" WHERE "wins">11 AND "against">1118 AND "hampden_fl"='terang-mortlake';
```
## Task
Generate a SQL query to answer the following question:
`How many wins did South Warrambool have?`

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

CREATE TABLE "2009_ladder" (
  "hampden_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 wins did South Warrambool have?`:
```sql
                SELECT AVG("wins") FROM "2009_ladder" WHERE "hampden_fl"='south warrambool';
```
## Task
Generate a SQL query to answer the following question:
`How many byes when there are more than 16 wins?`

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

CREATE TABLE "2009_ladder" (
  "hampden_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 byes when there are more than 16 wins?`:
```sql
                SELECT AVG("byes") FROM "2009_ladder" WHERE "wins">16;
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of Byes when there are more than 2 wins and 1946 against?`

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

CREATE TABLE "2009_ladder" (
  "hampden_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of Byes when there are more than 2 wins and 1946 against?`:
```sql
                SELECT MIN("byes") FROM "2009_ladder" WHERE "against"=1946 AND "wins">2;
```
## Task
Generate a SQL query to answer the following question:
`How many wins when the draws are less than 1 and more than 4 losses?`

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

CREATE TABLE "2009_ladder" (
  "hampden_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 wins when the draws are less than 1 and more than 4 losses?`:
```sql
                SELECT AVG("wins") FROM "2009_ladder" WHERE "draws"<1 AND "losses">4;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest population of the GEO ID 3805373380 and the water square mileage smaller than 5.729?`

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

CREATE TABLE "s" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest population of the GEO ID 3805373380 and the water square mileage smaller than 5.729?`:
```sql
                SELECT MIN("pop_2010") FROM "s" WHERE "geo_id"=3805373380 AND "water_sqmi"<5.729;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest GEO ID for the longitude of -102.158045 and the water in square miles larger than 0.979?`

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

CREATE TABLE "s" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest GEO ID for the longitude of -102.158045 and the water in square miles larger than 0.979?`:
```sql
                SELECT MIN("geo_id") FROM "s" WHERE "longitude"=-102.158045 AND "water_sqmi">0.979;
```
## Task
Generate a SQL query to answer the following question:
`What is the average ANSI code for the town of Sherman and the smaller of the water area in square miles than 0.005?`

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

CREATE TABLE "s" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average ANSI code for the town of Sherman and the smaller of the water area in square miles than 0.005?`:
```sql
                SELECT AVG("ansi_code") FROM "s" WHERE "township"='sherman' AND "water_sqmi"<0.005;
```
## Task
Generate a SQL query to answer the following question:
`What is the average longitude for the water area of 0.093 and has a GEO ID tag larger than 3808174460?`

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

CREATE TABLE "s" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average longitude for the water area of 0.093 and has a GEO ID tag larger than 3808174460?`:
```sql
                SELECT AVG("longitude") FROM "s" WHERE "water_sqmi"=0.093 AND "geo_id">3808174460;
```
## Task
Generate a SQL query to answer the following question:
`Which Country's Author is based on Sophocles and Euripides?`

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

CREATE TABLE "references" (
  "play" text,
  "author" text,
  "company" text,
  "base" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country's Author is based on Sophocles and Euripides?`:
```sql
                SELECT "country" FROM "references" WHERE "author"='based on sophocles and euripides';
```
## Task
Generate a SQL query to answer the following question:
`Which Author's Company is Ruth Kanner Theatre Group?`

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

CREATE TABLE "references" (
  "play" text,
  "author" text,
  "company" text,
  "base" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Author's Company is Ruth Kanner Theatre Group?`:
```sql
                SELECT "author" FROM "references" WHERE "company"='ruth kanner theatre group';
```
## Task
Generate a SQL query to answer the following question:
`Which Play is from Cyprus, from the Company Magdalena Zira Theatre?`

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

CREATE TABLE "references" (
  "play" text,
  "author" text,
  "company" text,
  "base" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Play is from Cyprus, from the Company Magdalena Zira Theatre?`:
```sql
                SELECT "play" FROM "references" WHERE "country"='cyprus' AND "company"='magdalena zira theatre';
```
## Task
Generate a SQL query to answer the following question:
`Which Country is the Play Electra and Orestes, The Trial from?`

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

CREATE TABLE "references" (
  "play" text,
  "author" text,
  "company" text,
  "base" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country is the Play Electra and Orestes, The Trial from?`:
```sql
                SELECT "country" FROM "references" WHERE "play"='electra and orestes, the trial';
```
## Task
Generate a SQL query to answer the following question:
`How much total time was in lane 4?`

### 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,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much total time was in lane 4?`:
```sql
                SELECT COUNT("time") FROM "semifinal_3" WHERE "lane"=4;
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Reaction time larger than 0.20400000000000001, and a Time larger than 45.56?`

### 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,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Reaction time larger than 0.20400000000000001, and a Time larger than 45.56?`:
```sql
                SELECT MAX("rank") FROM "semifinal_3" WHERE "react">0.20400000000000001 AND "time">45.56;
```
## Task
Generate a SQL query to answer the following question:
`How many ranks have more than 7 lanes, and an Athlete of michael mathieu, and a Reaction time larger than 0.203?`

### 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,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many ranks have more than 7 lanes, and an Athlete of michael mathieu, and a Reaction time larger than 0.203?`:
```sql
                SELECT SUM("rank") FROM "semifinal_3" WHERE "lane">7 AND "athlete"='michael mathieu' AND "react">0.203;
```
## Task
Generate a SQL query to answer the following question:
`Which Time has a Reaction smaller than 0.20400000000000001, and a Rank of 1?`

### 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,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Time has a Reaction smaller than 0.20400000000000001, and a Rank of 1?`:
```sql
                SELECT SUM("time") FROM "semifinal_3" WHERE "react"<0.20400000000000001 AND "rank"=1;
```
## Task
Generate a SQL query to answer the following question:
`What's the average Top-25, that has an Events that's smaller than 12, and has a Top-5 that is larger than 0?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average Top-25, that has an Events that's smaller than 12, and has a Top-5 that is larger than 0?`:
```sql
                SELECT AVG("top_25") FROM "summary" WHERE "events"<12 AND "top_5">0;
```
## Task
Generate a SQL query to answer the following question:
`What's the listed average of Cuts made that has a Top-5 of 3, and a Top-10 that's smaller than 5?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the listed average of Cuts made that has a Top-5 of 3, and a Top-10 that's smaller than 5?`:
```sql
                SELECT AVG("cuts_made") FROM "summary" WHERE "top_5"=3 AND "top_10"<5;
```
## Task
Generate a SQL query to answer the following question:
`What's the sum of Top-25 that has an Events that is smaller than 10?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of Top-25 that has an Events that is smaller than 10?`:
```sql
                SELECT COUNT("top_25") FROM "summary" WHERE "events"<10;
```
## Task
Generate a SQL query to answer the following question:
`What's the sum of Top-10 that has Events that's larger than 16, and has a Top-5 that's also larger than 5?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of Top-10 that has Events that's larger than 16, and has a Top-5 that's also larger than 5?`:
```sql
                SELECT COUNT("top_10") FROM "summary" WHERE "events">16 AND "top_5">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Cuts made that has a Tournament of PGA Championship, and has a Top-5 that is smaller than 2?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Cuts made that has a Tournament of PGA Championship, and has a Top-5 that is smaller than 2?`:
```sql
                SELECT MIN("cuts_made") FROM "summary" WHERE "tournament"='pga championship' AND "top_5"<2;
```
## Task
Generate a SQL query to answer the following question:
`When the nominee(s) is john wells what is the episode for a year before 2004?`

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

CREATE TABLE "humanitas_prize" (
  "year" real,
  "category" text,
  "nominee_s" text,
  "episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the nominee(s) is john wells what is the episode for a year before 2004?`:
```sql
                SELECT "episode" FROM "humanitas_prize" WHERE "year"<2004 AND "nominee_s"='john wells';
```
## Task
Generate a SQL query to answer the following question:
`What is the result when the nominee(s) of janine sherman?`

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

CREATE TABLE "humanitas_prize" (
  "year" real,
  "category" text,
  "nominee_s" text,
  "episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result when the nominee(s) of janine sherman?`:
```sql
                SELECT "result" FROM "humanitas_prize" WHERE "nominee_s"='janine sherman';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for a year after 2003, when the nominee(s) is john wells?`

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

CREATE TABLE "humanitas_prize" (
  "year" real,
  "category" text,
  "nominee_s" text,
  "episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for a year after 2003, when the nominee(s) is john wells?`:
```sql
                SELECT "result" FROM "humanitas_prize" WHERE "year">2003 AND "nominee_s"='john wells';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year with a result of nominated, and a nominee(s) of john wells, for an episode of "makemba"?`

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

CREATE TABLE "humanitas_prize" (
  "year" real,
  "category" text,
  "nominee_s" text,
  "episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year with a result of nominated, and a nominee(s) of john wells, for an episode of "makemba"?`:
```sql
                SELECT MIN("year") FROM "humanitas_prize" WHERE "result"='nominated' AND "nominee_s"='john wells' AND "episode"='\"makemba\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the purse in 2003, which had a 1-1/16 distance?`

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

CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" (
  "year" real,
  "winner" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "distance" text,
  "time" text,
  "purse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the purse in 2003, which had a 1-1/16 distance?`:
```sql
                SELECT "purse" FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "distance"='1-1/16' AND "year"=2003;
```
## Task
Generate a SQL query to answer the following question:
`Who is the trainer of the winner skylighter?`

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

CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" (
  "year" real,
  "winner" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "distance" text,
  "time" text,
  "purse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the trainer of the winner skylighter?`:
```sql
                SELECT "trainer" FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "winner"='skylighter';
```
## Task
Generate a SQL query to answer the following question:
`What is the distance with a 1:46.32 time?`

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

CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" (
  "year" real,
  "winner" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "distance" text,
  "time" text,
  "purse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance with a 1:46.32 time?`:
```sql
                SELECT "distance" FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "time"='1:46.32';
```
## Task
Generate a SQL query to answer the following question:
`What is the average year with a 1:42.85 time?`

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

CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" (
  "year" real,
  "winner" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "distance" text,
  "time" text,
  "purse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year with a 1:42.85 time?`:
```sql
                SELECT AVG("year") FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "time"='1:42.85';
```
## Task
Generate a SQL query to answer the following question:
`What is the distance in 2006?`

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

CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" (
  "year" real,
  "winner" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "distance" text,
  "time" text,
  "purse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance in 2006?`:
```sql
                SELECT "distance" FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "year"=2006;
```
## Task
Generate a SQL query to answer the following question:
`Who was the director of Clean Pastures?`

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

CREATE TABLE "1937" (
  "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 was the director of Clean Pastures?`:
```sql
                SELECT "director" FROM "1937" WHERE "title"='clean pastures';
```
## Task
Generate a SQL query to answer the following question:
`What was the release date for Production Number 8181?`

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

CREATE TABLE "1937" (
  "title" text,
  "series" text,
  "director" text,
  "production_num" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the release date for Production Number 8181?`:
```sql
                SELECT "release_date" FROM "1937" WHERE "production_num"='8181';
```