cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What country is ranked higher than 5?`

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

CREATE TABLE "semifinal_c_d_2" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is ranked higher than 5?`:
```sql
                SELECT "country" FROM "semifinal_c_d_2" WHERE "rank">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the total rank and fc notes from South Africa?`

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

CREATE TABLE "semifinal_c_d_2" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total rank and fc notes from South Africa?`:
```sql
                SELECT COUNT("rank") FROM "semifinal_c_d_2" WHERE "notes"='fc' AND "country"='south africa';
```
## Task
Generate a SQL query to answer the following question:
`From what series was the title with a production number of 1614 that was directed by Friz Freleng?`

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

CREATE TABLE "1963" (
  "title" text,
  "series" text,
  "director" text,
  "production_number" real,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `From what series was the title with a production number of 1614 that was directed by Friz Freleng?`:
```sql
                SELECT "series" FROM "1963" WHERE "director"='friz freleng' AND "production_number"=1614;
```
## Task
Generate a SQL query to answer the following question:
`What is the Result of the event with a Record of 1-3?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "record" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result of the event with a Record of 1-3?`:
```sql
                SELECT "result" FROM "kickboxing_record" WHERE "record"='1-3';
```
## Task
Generate a SQL query to answer the following question:
`What is the Round of the event with a Record of 5-4?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "record" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Round of the event with a Record of 5-4?`:
```sql
                SELECT "round" FROM "kickboxing_record" WHERE "record"='5-4';
```
## Task
Generate a SQL query to answer the following question:
`What was the latitude for van meter who had a land(sqmi) larger than 35.747, Water(sqmi) of 0 and a GEO ID smaller than 3809981860?`

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

CREATE TABLE "v" (
  "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 latitude for van meter who had a land(sqmi) larger than 35.747, Water(sqmi) of 0 and a GEO ID smaller than 3809981860?`:
```sql
                SELECT COUNT("latitude") FROM "v" WHERE "land_sqmi">35.747 AND "water_sqmi"=0 AND "geo_id"<3809981860 AND "township"='van meter';
```
## Task
Generate a SQL query to answer the following question:
`What was the population fo the township with a Latitude of 48.853051, and a Water (sqmi) smaller than 0.9590000000000001?`

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

CREATE TABLE "v" (
  "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 population fo the township with a Latitude of 48.853051, and a Water (sqmi) smaller than 0.9590000000000001?`:
```sql
                SELECT MAX("pop_2010") FROM "v" WHERE "latitude"=48.853051 AND "water_sqmi"<0.9590000000000001;
```
## Task
Generate a SQL query to answer the following question:
`Van Meter has a water(sqmi) of 0 and a longitude larger than -98.444062, what was their highest ANSI code?`

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

CREATE TABLE "v" (
  "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 `Van Meter has a water(sqmi) of 0 and a longitude larger than -98.444062, what was their highest ANSI code?`:
```sql
                SELECT MAX("ansi_code") FROM "v" WHERE "water_sqmi"=0 AND "township"='van meter' AND "longitude">-98.444062;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest water(sqmi) in the county of dickey where the longitude was smaller than -98.444062?`

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

CREATE TABLE "v" (
  "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 water(sqmi) in the county of dickey where the longitude was smaller than -98.444062?`:
```sql
                SELECT MIN("water_sqmi") FROM "v" WHERE "county"='dickey' AND "longitude"<-98.444062;
```
## Task
Generate a SQL query to answer the following question:
`Who is the coach for the Northamptonshire Steelbacks?`

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

CREATE TABLE "teams" (
  "team" text,
  "location" text,
  "county" text,
  "division" text,
  "home_ground" text,
  "coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the coach for the Northamptonshire Steelbacks?`:
```sql
                SELECT "coach" FROM "teams" WHERE "team"='northamptonshire steelbacks';
```
## Task
Generate a SQL query to answer the following question:
`Which team is located in Leicester?`

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

CREATE TABLE "teams" (
  "team" text,
  "location" text,
  "county" text,
  "division" text,
  "home_ground" text,
  "coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team is located in Leicester?`:
```sql
                SELECT "team" FROM "teams" WHERE "location"='leicester';
```
## Task
Generate a SQL query to answer the following question:
`Which team is in Sussex county?`

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

CREATE TABLE "teams" (
  "team" text,
  "location" text,
  "county" text,
  "division" text,
  "home_ground" text,
  "coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team is in Sussex county?`:
```sql
                SELECT "team" FROM "teams" WHERE "county"='sussex';
```
## Task
Generate a SQL query to answer the following question:
`What is the home ground for the team located in Canterbury?`

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

CREATE TABLE "teams" (
  "team" text,
  "location" text,
  "county" text,
  "division" text,
  "home_ground" text,
  "coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home ground for the team located in Canterbury?`:
```sql
                SELECT "home_ground" FROM "teams" WHERE "location"='canterbury';
```
## Task
Generate a SQL query to answer the following question:
`Who is the captain of the team coached by Giles White?`

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

CREATE TABLE "teams" (
  "team" text,
  "location" text,
  "county" text,
  "division" text,
  "home_ground" text,
  "coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the captain of the team coached by Giles White?`:
```sql
                SELECT "captain" FROM "teams" WHERE "coach"='giles white';
```
## Task
Generate a SQL query to answer the following question:
`Which division is the Derbyshire Falcons in?`

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

CREATE TABLE "teams" (
  "team" text,
  "location" text,
  "county" text,
  "division" text,
  "home_ground" text,
  "coach" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which division is the Derbyshire Falcons in?`:
```sql
                SELECT "division" FROM "teams" WHERE "team"='derbyshire falcons';
```
## Task
Generate a SQL query to answer the following question:
`Which tie number had a home team of Derby County?`

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

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tie number had a home team of Derby County?`:
```sql
                SELECT "tie_no" FROM "fifth_round_proper" WHERE "home_team"='derby county';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the tie with an away team of Stoke City?`

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

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the tie with an away team of Stoke City?`:
```sql
                SELECT "score" FROM "fifth_round_proper" WHERE "away_team"='stoke city';
```
## Task
Generate a SQL query to answer the following question:
`Which Artist has a Draw smaller than 14, and Points less than 73, and a Language of turkish?`

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

CREATE TABLE "results" (
  "draw" real,
  "language" text,
  "artist" text,
  "english_translation" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Artist has a Draw smaller than 14, and Points less than 73, and a Language of turkish?`:
```sql
                SELECT "artist" FROM "results" WHERE "draw"<14 AND "points"<73 AND "language"='turkish';
```
## Task
Generate a SQL query to answer the following question:
`How many points does mia martini have?`

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

CREATE TABLE "results" (
  "draw" real,
  "language" text,
  "artist" text,
  "english_translation" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points does mia martini have?`:
```sql
                SELECT COUNT("points") FROM "results" WHERE "artist"='mia martini';
```
## Task
Generate a SQL query to answer the following question:
`Which Artist has an English translation of all this is music?`

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

CREATE TABLE "results" (
  "draw" real,
  "language" text,
  "artist" text,
  "english_translation" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Artist has an English translation of all this is music?`:
```sql
                SELECT "artist" FROM "results" WHERE "english_translation"='all this is music';
```
## Task
Generate a SQL query to answer the following question:
`What athlete has a Grenoble 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_women" (
  "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 a Grenoble place?`:
```sql
                SELECT "athlete" FROM "top_all_time_athletes_50_metres_women" WHERE "place"='grenoble';
```
## Task
Generate a SQL query to answer the following question:
`What is the Pick number of the Player from Syracuse?`

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

CREATE TABLE "sixth_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 number of the Player from Syracuse?`:
```sql
                SELECT "pick" FROM "sixth_round" WHERE "college"='syracuse';
```
## Task
Generate a SQL query to answer the following question:
`What is the Offensive Guard Player from Mississippi State College with a Pick number larter than 44?`

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

CREATE TABLE "sixth_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 Offensive Guard Player from Mississippi State College with a Pick number larter than 44?`:
```sql
                SELECT "player" FROM "sixth_round" WHERE "pick">44 AND "position"='offensive guard' AND "college"='mississippi state';
```
## Task
Generate a SQL query to answer the following question:
`What is the College of the Pick from Denver Broncos?`

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

CREATE TABLE "sixth_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 College of the Pick from Denver Broncos?`:
```sql
                SELECT "college" FROM "sixth_round" WHERE "team"='denver broncos';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2008 Status of Rosa Delauro?`

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

CREATE TABLE "match_up_summary" (
  "district" real,
  "incumbent" text,
  "2008_status" text,
  "democratic" text,
  "republican" text,
  "green" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2008 Status of Rosa Delauro?`:
```sql
                SELECT "2008_status" FROM "match_up_summary" WHERE "democratic"='rosa delauro';
```
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent when Bo Itshaky was the Republican?`

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

CREATE TABLE "match_up_summary" (
  "district" real,
  "incumbent" text,
  "2008_status" text,
  "democratic" text,
  "republican" text,
  "green" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the incumbent when Bo Itshaky was the Republican?`:
```sql
                SELECT "incumbent" FROM "match_up_summary" WHERE "republican"='bo itshaky';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Republican in the district more than 4?`

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

CREATE TABLE "match_up_summary" (
  "district" real,
  "incumbent" text,
  "2008_status" text,
  "democratic" text,
  "republican" text,
  "green" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Republican in the district more than 4?`:
```sql
                SELECT "republican" FROM "match_up_summary" WHERE "district">4;
```
## Task
Generate a SQL query to answer the following question:
`Who was the Republican when the green was Harold Burbank?`

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

CREATE TABLE "match_up_summary" (
  "district" real,
  "incumbent" text,
  "2008_status" text,
  "democratic" text,
  "republican" text,
  "green" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Republican when the green was Harold Burbank?`:
```sql
                SELECT "republican" FROM "match_up_summary" WHERE "green"='harold burbank';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Democratic when then Incumbent was Christopher Shays?`

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

CREATE TABLE "match_up_summary" (
  "district" real,
  "incumbent" text,
  "2008_status" text,
  "democratic" text,
  "republican" text,
  "green" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Democratic when then Incumbent was Christopher Shays?`:
```sql
                SELECT "democratic" FROM "match_up_summary" WHERE "incumbent"='christopher shays';
```
## Task
Generate a SQL query to answer the following question:
`Who is the director of Antz?`

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

CREATE TABLE "1990s" (
  "year" real,
  "title" text,
  "director" text,
  "studio_s" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of Antz?`:
```sql
                SELECT "director" FROM "1990s" WHERE "title"='antz';
```
## Task
Generate a SQL query to answer the following question:
`What studio has the director Philip Frank Messina?`

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

CREATE TABLE "1990s" (
  "year" real,
  "title" text,
  "director" text,
  "studio_s" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What studio has the director Philip Frank Messina?`:
```sql
                SELECT "studio_s" FROM "1990s" WHERE "director"='philip frank messina';
```
## Task
Generate a SQL query to answer the following question:
`What are the club number for the first round?`

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

CREATE TABLE "calendar" (
  "round" text,
  "main_date" text,
  "number_of_fixtures" real,
  "clubs" text,
  "new_entries_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the club number for the first round?`:
```sql
                SELECT "clubs" FROM "calendar" WHERE "round"='first round';
```
## Task
Generate a SQL query to answer the following question:
`when there were 48 → 32 clubs?`

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

CREATE TABLE "calendar" (
  "round" text,
  "main_date" text,
  "number_of_fixtures" real,
  "clubs" text,
  "new_entries_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `when there were 48 → 32 clubs?`:
```sql
                SELECT "new_entries_this_round" FROM "calendar" WHERE "clubs"='48 → 32';
```
## Task
Generate a SQL query to answer the following question:
`Where was the fight that took a time of 1:37?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the fight that took a time of 1:37?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "time"='1:37';
```
## Task
Generate a SQL query to answer the following question:
`What was the resolution of the fight against kiuma kunioku with a time of 15:00?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the resolution of the fight against kiuma kunioku with a time of 15:00?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "time"='15:00' AND "opponent"='kiuma kunioku';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of bronze medals won by Poland?`

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

CREATE TABLE "medals_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 is the average number of bronze medals won by Poland?`:
```sql
                SELECT AVG("bronze") FROM "medals_table" WHERE "nation"='poland';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of gold medals Switzerland received when they ranked larger than 1st and received fewer than 10 bronze medals and more than 1 silver medal?`

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

CREATE TABLE "medals_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 is the average number of gold medals Switzerland received when they ranked larger than 1st and received fewer than 10 bronze medals and more than 1 silver medal?`:
```sql
                SELECT AVG("gold") FROM "medals_table" WHERE "total">1 AND "bronze"<10 AND "nation"='switzerland' AND "silver">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank when the col is larger than 0?`

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

CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" (
  "rank" real,
  "peak" text,
  "country" text,
  "island" text,
  "elevation_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank when the col is larger than 0?`:
```sql
                SELECT COUNT("rank") FROM "the_six_s_ultra_prominent_summit_of_the_" WHERE "col_m">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank when the elevation is 1,628, and Col (m) is larger than 0?`

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

CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" (
  "rank" real,
  "peak" text,
  "country" text,
  "island" text,
  "elevation_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank when the elevation is 1,628, and Col (m) is larger than 0?`:
```sql
                SELECT COUNT("rank") FROM "the_six_s_ultra_prominent_summit_of_the_" WHERE "elevation_m"='1,628' AND "col_m">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the elevation of Vanuatu, when the rank is smaller than 3?`

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

CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" (
  "rank" real,
  "peak" text,
  "country" text,
  "island" text,
  "elevation_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the elevation of Vanuatu, when the rank is smaller than 3?`:
```sql
                SELECT AVG("elevation_m") FROM "the_six_s_ultra_prominent_summit_of_the_" WHERE "country"='vanuatu' AND "rank"<3;
```
## Task
Generate a SQL query to answer the following question:
`What's the platform of Super Mario All-Stars?`

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

CREATE TABLE "best_selling_video_games_of_the_1990s_sa" (
  "rank" real,
  "title" text,
  "release_date" text,
  "franchise" text,
  "developer_s" text,
  "platform" text,
  "units_sold_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the platform of Super Mario All-Stars?`:
```sql
                SELECT "platform" FROM "best_selling_video_games_of_the_1990s_sa" WHERE "title"='super mario all-stars';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of losses when there are more than 4 wins, and the against matches is more than 1728?`

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

CREATE TABLE "1938_ladder" (
  "club" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of losses when there are more than 4 wins, and the against matches is more than 1728?`:
```sql
                SELECT AVG("losses") FROM "1938_ladder" WHERE "wins"<4 AND "against">1728;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of draws when there is 1 Win, and less than 1728 against matches?`

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

CREATE TABLE "1938_ladder" (
  "club" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of draws when there is 1 Win, and less than 1728 against matches?`:
```sql
                SELECT COUNT("draws") FROM "1938_ladder" WHERE "wins"=1 AND "against"<1728;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of wins when there are less than 2 losses?`

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

CREATE TABLE "1938_ladder" (
  "club" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of wins when there are less than 2 losses?`:
```sql
                SELECT MAX("wins") FROM "1938_ladder" WHERE "losses"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of losses for the Cobden club when there is less than 1 win?`

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

CREATE TABLE "1938_ladder" (
  "club" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of losses for the Cobden club when there is less than 1 win?`:
```sql
                SELECT MAX("losses") FROM "1938_ladder" WHERE "club"='cobden' AND "wins"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of wins for the Terang Club, when there are less than 0 draws?`

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

CREATE TABLE "1938_ladder" (
  "club" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of wins for the Terang Club, when there are less than 0 draws?`:
```sql
                SELECT AVG("wins") FROM "1938_ladder" WHERE "club"='terang' AND "draws"<0;
```
## Task
Generate a SQL query to answer the following question:
`What year was Clark-Smith Autos, Phoenix, AZ in 2nd place?`

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

CREATE TABLE "national_softball_congress_1947_to_1957" (
  "year" real,
  "1st_place_team" text,
  "2nd_place_team" text,
  "3rd_place_team" text,
  "4th_place_team" text,
  "host_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Clark-Smith Autos, Phoenix, AZ in 2nd place?`:
```sql
                SELECT "year" FROM "national_softball_congress_1947_to_1957" WHERE "2nd_place_team"='clark-smith autos, phoenix, az';
```
## Task
Generate a SQL query to answer the following question:
`Who was the 2nd place team when the location was Tulsa, OK before 1956?`

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

CREATE TABLE "national_softball_congress_1947_to_1957" (
  "year" real,
  "1st_place_team" text,
  "2nd_place_team" text,
  "3rd_place_team" text,
  "4th_place_team" text,
  "host_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 2nd place team when the location was Tulsa, OK before 1956?`:
```sql
                SELECT "2nd_place_team" FROM "national_softball_congress_1947_to_1957" WHERE "host_location"='tulsa, ok' AND "year"<1956;
```
## Task
Generate a SQL query to answer the following question:
`In what Year is the Location of the Festival Koror, Palau?`

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

CREATE TABLE "locations" (
  "iteration" text,
  "year" real,
  "dates" text,
  "location" text,
  "theme" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Year is the Location of the Festival Koror, Palau?`:
```sql
                SELECT SUM("year") FROM "locations" WHERE "location"='koror, palau';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location of the 10th Iteration?`

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

CREATE TABLE "locations" (
  "iteration" text,
  "year" real,
  "dates" text,
  "location" text,
  "theme" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location of the 10th Iteration?`:
```sql
                SELECT "location" FROM "locations" WHERE "iteration"='10th';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location of the "My Pacific" Theme?`

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

CREATE TABLE "locations" (
  "iteration" text,
  "year" real,
  "dates" text,
  "location" text,
  "theme" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location of the "My Pacific" Theme?`:
```sql
                SELECT "location" FROM "locations" WHERE "theme"='\"my pacific\"';
```
## Task
Generate a SQL query to answer the following question:
`How many counties have people before profit as the party, and a borough greater than 0?`

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

CREATE TABLE "all_councils" (
  "party" text,
  "county" real,
  "city" real,
  "borough" real,
  "town" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many counties have people before profit as the party, and a borough greater than 0?`:
```sql
                SELECT SUM("county") FROM "all_councils" WHERE "party"='people before profit' AND "borough">0;
```
## Task
Generate a SQL query to answer the following question:
`How many counties have 2 as the total, 0 as the city with a town less than 1?`

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

CREATE TABLE "all_councils" (
  "party" text,
  "county" real,
  "city" real,
  "borough" real,
  "town" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many counties have 2 as the total, 0 as the city with a town less than 1?`:
```sql
                SELECT SUM("county") FROM "all_councils" WHERE "total"=2 AND "city"=0 AND "town"<1;
```
## Task
Generate a SQL query to answer the following question:
`What average city has a total less than 2, with a borough greater than 0?`

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

CREATE TABLE "all_councils" (
  "party" text,
  "county" real,
  "city" real,
  "borough" real,
  "town" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What average city has a total less than 2, with a borough greater than 0?`:
```sql
                SELECT AVG("city") FROM "all_councils" WHERE "total"<2 AND "borough">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank # of the swimmer in Lane 5?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank # of the swimmer in Lane 5?`:
```sql
                SELECT COUNT("rank") FROM "semifinal_1" WHERE "lane"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the total fat with a smoke point of °c () and 37g of polyunsaturated fat?`

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

CREATE TABLE "comparative_properties_of_common_cooking" (
  "total_fat" text,
  "saturated_fat" text,
  "monounsaturated_fat" text,
  "polyunsaturated_fat" text,
  "smoke_point" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total fat with a smoke point of °c () and 37g of polyunsaturated fat?`:
```sql
                SELECT "total_fat" FROM "comparative_properties_of_common_cooking" WHERE "smoke_point"='°c ()' AND "polyunsaturated_fat"='37g';
```
## Task
Generate a SQL query to answer the following question:
`What is the saturated fat with 28g of polyunsaturated fat?`

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

CREATE TABLE "comparative_properties_of_common_cooking" (
  "total_fat" text,
  "saturated_fat" text,
  "monounsaturated_fat" text,
  "polyunsaturated_fat" text,
  "smoke_point" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the saturated fat with 28g of polyunsaturated fat?`:
```sql
                SELECT "saturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "polyunsaturated_fat"='28g';
```
## Task
Generate a SQL query to answer the following question:
`What is the monounsaturated fat with 15g of saturated fat?`

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

CREATE TABLE "comparative_properties_of_common_cooking" (
  "total_fat" text,
  "saturated_fat" text,
  "monounsaturated_fat" text,
  "polyunsaturated_fat" text,
  "smoke_point" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the monounsaturated fat with 15g of saturated fat?`:
```sql
                SELECT "monounsaturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "saturated_fat"='15g';
```
## Task
Generate a SQL query to answer the following question:
`What is the saturated fat with a total fat of 100g and 11g of polyunsaturated fat?`

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

CREATE TABLE "comparative_properties_of_common_cooking" (
  "total_fat" text,
  "saturated_fat" text,
  "monounsaturated_fat" text,
  "polyunsaturated_fat" text,
  "smoke_point" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the saturated fat with a total fat of 100g and 11g of polyunsaturated fat?`:
```sql
                SELECT "saturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "total_fat"='100g' AND "polyunsaturated_fat"='11g';
```
## Task
Generate a SQL query to answer the following question:
`What is the monounsaturated fat with a smoke point of °c (), a total fat of 100g, 11g of polyunsaturated fat, and 14g of saturated fat?`

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

CREATE TABLE "comparative_properties_of_common_cooking" (
  "total_fat" text,
  "saturated_fat" text,
  "monounsaturated_fat" text,
  "polyunsaturated_fat" text,
  "smoke_point" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the monounsaturated fat with a smoke point of °c (), a total fat of 100g, 11g of polyunsaturated fat, and 14g of saturated fat?`:
```sql
                SELECT "monounsaturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "smoke_point"='°c ()' AND "total_fat"='100g' AND "polyunsaturated_fat"='11g' AND "saturated_fat"='14g';
```
## Task
Generate a SQL query to answer the following question:
`What is the polyunsaturated fat with a smoke point of °c (), a total fat of 100g and 63g of monounsaturated fat?`

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

CREATE TABLE "comparative_properties_of_common_cooking" (
  "total_fat" text,
  "saturated_fat" text,
  "monounsaturated_fat" text,
  "polyunsaturated_fat" text,
  "smoke_point" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the polyunsaturated fat with a smoke point of °c (), a total fat of 100g and 63g of monounsaturated fat?`:
```sql
                SELECT "polyunsaturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "smoke_point"='°c ()' AND "total_fat"='100g' AND "monounsaturated_fat"='63g';
```
## Task
Generate a SQL query to answer the following question:
`What is the win % of the 2003 atp world tour finals?`

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

CREATE TABLE "grand_slam_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the win % of the 2003 atp world tour finals?`:
```sql
                SELECT "win_pct" FROM "grand_slam_timeline" WHERE "2003"='atp world tour finals';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2006 value of the 2011 grand slam tournaments?`

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

CREATE TABLE "grand_slam_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2006 value of the 2011 grand slam tournaments?`:
```sql
                SELECT "2006" FROM "grand_slam_timeline" WHERE "2011"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2007 value with a 1r in 2009?`

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

CREATE TABLE "grand_slam_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007 value with a 1r in 2009?`:
```sql
                SELECT "2007" FROM "grand_slam_timeline" WHERE "2009"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2007 value with a 4r in 2006, a 1r in 2004, and a 4r in 2009?`

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

CREATE TABLE "grand_slam_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007 value with a 4r in 2006, a 1r in 2004, and a 4r in 2009?`:
```sql
                SELECT "2007" FROM "grand_slam_timeline" WHERE "2006"='4r' AND "2004"='1r' AND "2009"='4r';
```
## Task
Generate a SQL query to answer the following question:
`who is the home team when the away team is rivercity rage?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "home_team" text,
  "away_team" text,
  "winner" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the home team when the away team is rivercity rage?`:
```sql
                SELECT "home_team" FROM "year_by_year" WHERE "away_team"='rivercity rage';
```
## Task
Generate a SQL query to answer the following question:
`who is the winner when the score is 71-62?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "home_team" text,
  "away_team" text,
  "winner" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the winner when the score is 71-62?`:
```sql
                SELECT "winner" FROM "year_by_year" WHERE "score"='71-62';
```
## Task
Generate a SQL query to answer the following question:
`who is the winner when the home team is sioux falls storm and the year is earlier than 2012?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "home_team" text,
  "away_team" text,
  "winner" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the winner when the home team is sioux falls storm and the year is earlier than 2012?`:
```sql
                SELECT "winner" FROM "year_by_year" WHERE "home_team"='sioux falls storm' AND "year"<2012;
```
## Task
Generate a SQL query to answer the following question:
`what is the score when the away team is rivercity rage?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "home_team" text,
  "away_team" text,
  "winner" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score when the away team is rivercity rage?`:
```sql
                SELECT "score" FROM "year_by_year" WHERE "away_team"='rivercity rage';
```
## Task
Generate a SQL query to answer the following question:
`what is the year when the score is 59-32?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "home_team" text,
  "away_team" text,
  "winner" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the year when the score is 59-32?`:
```sql
                SELECT SUM("year") FROM "year_by_year" WHERE "score"='59-32';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue established after 1948?`

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

CREATE TABLE "sport" (
  "club" text,
  "league" text,
  "sport" text,
  "venue" text,
  "established" real,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue established after 1948?`:
```sql
                SELECT "venue" FROM "sport" WHERE "established">1948;
```
## Task
Generate a SQL query to answer the following question:
`What is the league established before 1930 with the rayo vallecano club?`

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

CREATE TABLE "sport" (
  "club" text,
  "league" text,
  "sport" text,
  "venue" text,
  "established" real,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the league established before 1930 with the rayo vallecano club?`:
```sql
                SELECT "league" FROM "sport" WHERE "established"<1930 AND "club"='rayo vallecano';
```
## Task
Generate a SQL query to answer the following question:
`What sport is the rayo vallecano club in?`

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

CREATE TABLE "sport" (
  "club" text,
  "league" text,
  "sport" text,
  "venue" text,
  "established" real,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `What sport is the rayo vallecano club in?`:
```sql
                SELECT "sport" FROM "sport" WHERE "club"='rayo vallecano';
```
## Task
Generate a SQL query to answer the following question:
`What sport is the cb estudiantes club in?`

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

CREATE TABLE "sport" (
  "club" text,
  "league" text,
  "sport" text,
  "venue" text,
  "established" real,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `What sport is the cb estudiantes club in?`:
```sql
                SELECT "sport" FROM "sport" WHERE "club"='cb estudiantes';
```
## Task
Generate a SQL query to answer the following question:
`What is the label for CAD 2014 CD?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the label for CAD 2014 CD?`:
```sql
                SELECT "label" FROM "release_history" WHERE "catalogue_num"='cad 2014 cd';
```
## Task
Generate a SQL query to answer the following question:
`What is the format for the catalogue number GAD 2014 CD on July 6, 1998?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format for the catalogue number GAD 2014 CD on July 6, 1998?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalogue_num"='gad 2014 cd' AND "date"='july 6, 1998';
```
## Task
Generate a SQL query to answer the following question:
`How many wins are there when the draws are less than 0?`

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

CREATE TABLE "1940_ladder" (
  "club" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins are there when the draws are less than 0?`:
```sql
                SELECT SUM("wins") FROM "1940_ladder" WHERE "draws"<0;
```
## Task
Generate a SQL query to answer the following question:
`What are the most losses when there are 5 wins and draws less than 0?`

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

CREATE TABLE "1940_ladder" (
  "club" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the most losses when there are 5 wins and draws less than 0?`:
```sql
                SELECT MAX("losses") FROM "1940_ladder" WHERE "wins"=5 AND "draws"<0;
```