cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what is the school when the location is rochester?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" text,
  "previous_conference" text,
  "year_left" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the school when the location is rochester?`:
```sql
                SELECT "school" FROM "former_members" WHERE "location"='rochester';
```
## Task
Generate a SQL query to answer the following question:
`what is the location when the school is muncie burris?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" text,
  "previous_conference" text,
  "year_left" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the location when the school is muncie burris?`:
```sql
                SELECT "location" FROM "former_members" WHERE "school"='muncie burris';
```
## Task
Generate a SQL query to answer the following question:
`what is the mascot when the school is warsaw?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" text,
  "previous_conference" text,
  "year_left" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the mascot when the school is warsaw?`:
```sql
                SELECT "mascot" FROM "former_members" WHERE "school"='warsaw';
```
## Task
Generate a SQL query to answer the following question:
`what is the mascot when the county is 43 kosciusko?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" text,
  "previous_conference" text,
  "year_left" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the mascot when the county is 43 kosciusko?`:
```sql
                SELECT "mascot" FROM "former_members" WHERE "county"='43 kosciusko';
```
## Task
Generate a SQL query to answer the following question:
`what is the county when the year left is 1998?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" text,
  "previous_conference" text,
  "year_left" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the county when the year left is 1998?`:
```sql
                SELECT "county" FROM "former_members" WHERE "year_left"='1998';
```
## Task
Generate a SQL query to answer the following question:
`which Film has a Category of best actress – musical or comedy, and a Lost to of nicole kidman ( moulin rouge! )?`

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

CREATE TABLE "satellite_awards" (
  "year" real,
  "category" text,
  "film" text,
  "result" text,
  "lost_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `which Film has a Category of best actress – musical or comedy, and a Lost to of nicole kidman ( moulin rouge! )?`:
```sql
                SELECT "film" FROM "satellite_awards" WHERE "category"='best actress – musical or comedy' AND "lost_to"='nicole kidman ( moulin rouge! )';
```
## Task
Generate a SQL query to answer the following question:
`which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )?`

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

CREATE TABLE "satellite_awards" (
  "year" real,
  "category" text,
  "film" text,
  "result" text,
  "lost_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )?`:
```sql
                SELECT "category" FROM "satellite_awards" WHERE "result"='nominated' AND "lost_to"='jennifer westfeldt ( kissing jessica stein )';
```
## Task
Generate a SQL query to answer the following question:
`Which the Lost to is in 2000`

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

CREATE TABLE "satellite_awards" (
  "year" real,
  "category" text,
  "film" text,
  "result" text,
  "lost_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which the Lost to is in 2000`:
```sql
                SELECT "lost_to" FROM "satellite_awards" WHERE "year"=2000;
```
## Task
Generate a SQL query to answer the following question:
`What is the average attendance for games against the Pittsburgh Steelers when the opponents scored more than 0 points?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "bills_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average attendance for games against the Pittsburgh Steelers when the opponents scored more than 0 points?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "opponent"='pittsburgh steelers' AND "opponents">0;
```
## Task
Generate a SQL query to answer the following question:
`Who is the team that has a pick less than 154 and an offensive guard position?`

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

CREATE TABLE "twentieth_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the team that has a pick less than 154 and an offensive guard position?`:
```sql
                SELECT "team" FROM "twentieth_round" WHERE "position"='offensive guard' AND "pick"<154;
```
## Task
Generate a SQL query to answer the following question:
`What is the Weight of the GK Player with 2012 Club of CN Atlètic-Barceloneta?`

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

CREATE TABLE "current_roster" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "2012_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Weight of the GK Player with 2012 Club of CN Atlètic-Barceloneta?`:
```sql
                SELECT "weight" FROM "current_roster" WHERE "pos"='gk' AND "2012_club"='cn atlètic-barceloneta';
```
## Task
Generate a SQL query to answer the following question:
`What is the Height of the CF Player with 2012 club of Posillipo?`

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

CREATE TABLE "current_roster" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "2012_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height of the CF Player with 2012 club of Posillipo?`:
```sql
                SELECT "height" FROM "current_roster" WHERE "pos"='cf' AND "2012_club"='posillipo';
```
## Task
Generate a SQL query to answer the following question:
`What is the Attendance of Game 24?`

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

CREATE TABLE "conference_premier" (
  "game" real,
  "date" text,
  "opponents" text,
  "venue" text,
  "result" text,
  "score_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance of Game 24?`:
```sql
                SELECT SUM("attendance") FROM "conference_premier" WHERE "game"=24;
```
## Task
Generate a SQL query to answer the following question:
`What is the Venue of Game 41 with a Score F–A of 1–2?`

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

CREATE TABLE "conference_premier" (
  "game" real,
  "date" text,
  "opponents" text,
  "venue" text,
  "result" text,
  "score_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Venue of Game 41 with a Score F–A of 1–2?`:
```sql
                SELECT "venue" FROM "conference_premier" WHERE "score_f_a"='1–2' AND "game"=41;
```
## Task
Generate a SQL query to answer the following question:
`Who are the opponents in the February 19, 1996 final?`

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

CREATE TABLE "doubles_36_20_16" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the opponents in the February 19, 1996 final?`:
```sql
                SELECT "opponents_in_the_final" FROM "doubles_36_20_16" WHERE "date"='february 19, 1996';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score on March 22, 1993?`

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

CREATE TABLE "doubles_36_20_16" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score on March 22, 1993?`:
```sql
                SELECT "score_in_the_final" FROM "doubles_36_20_16" WHERE "date"='march 22, 1993';
```
## Task
Generate a SQL query to answer the following question:
`What is the outcome on June 9, 1997?`

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

CREATE TABLE "doubles_36_20_16" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the outcome on June 9, 1997?`:
```sql
                SELECT "outcome" FROM "doubles_36_20_16" WHERE "date"='june 9, 1997';
```
## Task
Generate a SQL query to answer the following question:
`What school has an  IHSAA Class of aaa, and their mascot is Tiger Cubs?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school has an  IHSAA Class of aaa, and their mascot is Tiger Cubs?`:
```sql
                SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aaa' AND "mascot"='tiger cubs';
```
## Task
Generate a SQL query to answer the following question:
`What is the IHSAA Football Class for county 67 putnam at Greencastle?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSAA Football Class for county 67 putnam at Greencastle?`:
```sql
                SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "county"='67 putnam' AND "school"='greencastle';
```
## Task
Generate a SQL query to answer the following question:
`What school has more than 533 enrolled and is an IHSAA Football Class of aa?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school has more than 533 enrolled and is an IHSAA Football Class of aa?`:
```sql
                SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "enrollment">533 AND "ihsaa_football_class"='aa';
```
## Task
Generate a SQL query to answer the following question:
`Where is the IHSAA Class of aaa school with more than 590 enrolled?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the IHSAA Class of aaa school with more than 590 enrolled?`:
```sql
                SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aaa' AND "enrollment">590;
```
## Task
Generate a SQL query to answer the following question:
`Which location has 111 as the days held?`

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

CREATE TABLE "title_history" (
  "wrestlers" text,
  "reign" text,
  "days_held" text,
  "location" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location has 111 as the days held?`:
```sql
                SELECT "location" FROM "title_history" WHERE "days_held"='111';
```
## Task
Generate a SQL query to answer the following question:
`What days held has 1 as the reign with eden black as the wrestlers?`

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

CREATE TABLE "title_history" (
  "wrestlers" text,
  "reign" text,
  "days_held" text,
  "location" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What days held has 1 as the reign with eden black as the wrestlers?`:
```sql
                SELECT "days_held" FROM "title_history" WHERE "reign"='1' AND "wrestlers"='eden black';
```
## Task
Generate a SQL query to answer the following question:
`What wrestlers have summer brawl 2006 as the event?`

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

CREATE TABLE "title_history" (
  "wrestlers" text,
  "reign" text,
  "days_held" text,
  "location" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What wrestlers have summer brawl 2006 as the event?`:
```sql
                SELECT "wrestlers" FROM "title_history" WHERE "event"='summer brawl 2006';
```
## Task
Generate a SQL query to answer the following question:
`What is the average amount of points larger than 154 laps?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average amount of points larger than 154 laps?`:
```sql
                SELECT AVG("points") FROM "race" WHERE "laps">154;
```
## Task
Generate a SQL query to answer the following question:
`What home team played against Crystal Palace?`

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

CREATE TABLE "third_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 home team played against Crystal Palace?`:
```sql
                SELECT "home_team" FROM "third_round_proper" WHERE "away_team"='crystal palace';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest win % with a 0-2 record and more than 2 apps?`

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

CREATE TABLE "by_team" (
  "rank" real,
  "team" text,
  "apps" real,
  "record" text,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest win % with a 0-2 record and more than 2 apps?`:
```sql
                SELECT MIN("win_pct") FROM "by_team" WHERE "record"='0-2' AND "apps">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest apps for rank 3 and 0% wins?`

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

CREATE TABLE "by_team" (
  "rank" real,
  "team" text,
  "apps" real,
  "record" text,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest apps for rank 3 and 0% wins?`:
```sql
                SELECT MIN("apps") FROM "by_team" WHERE "rank"=3 AND "win_pct"<0;
```
## Task
Generate a SQL query to answer the following question:
`What artist had a peak position under 2, and more than 200,000 in sales?`

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

CREATE TABLE "top_10_albums" (
  "rank" real,
  "artist" text,
  "album" text,
  "peak_position" real,
  "sales" real,
  "certification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What artist had a peak position under 2, and more than 200,000 in sales?`:
```sql
                SELECT "artist" FROM "top_10_albums" WHERE "peak_position"<2 AND "sales">'200,000';
```
## Task
Generate a SQL query to answer the following question:
`Which points has place smaller than 2?`

### 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,
  "song" text,
  "english_translation" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which points has place smaller than 2?`:
```sql
                SELECT "points" FROM "results" WHERE "place"<2;
```
## Task
Generate a SQL query to answer the following question:
`What's the size of Centerville in 89 Wayne county with an IHSAA class of AA in the year before 1974?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "size" real,
  "ihsaa_class" text,
  "num_county" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the size of Centerville in 89 Wayne county with an IHSAA class of AA in the year before 1974?`:
```sql
                SELECT "size" FROM "membership" WHERE "year_joined"<1974 AND "ihsaa_class"='aa' AND "num_county"='89 wayne' AND "school"='centerville';
```
## Task
Generate a SQL query to answer the following question:
`What's the year that Hagerstown joined?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "size" real,
  "ihsaa_class" text,
  "num_county" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the year that Hagerstown joined?`:
```sql
                SELECT "year_joined" FROM "membership" WHERE "school"='hagerstown';
```
## Task
Generate a SQL query to answer the following question:
`What county is Fountain City?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "size" real,
  "ihsaa_class" text,
  "num_county" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What county is Fountain City?`:
```sql
                SELECT "num_county" FROM "membership" WHERE "location"='fountain city';
```
## Task
Generate a SQL query to answer the following question:
`What's the previous conference of Fountain City with a size more than 287?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "size" real,
  "ihsaa_class" text,
  "num_county" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the previous conference of Fountain City with a size more than 287?`:
```sql
                SELECT "previous_conference" FROM "membership" WHERE "size">287 AND "location"='fountain city';
```
## Task
Generate a SQL query to answer the following question:
`What is the people's party with an 8.0% green-communist?`

### 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,
  "polling_institute" text,
  "socialist" text,
  "social_democratic" text,
  "green_communist" text,
  "people_s_party" text,
  "left_bloc" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the people's party with an 8.0% green-communist?`:
```sql
                SELECT "people_s_party" FROM "116_seats_needed_for_a_majority" WHERE "green_communist"='8.0%';
```
## Task
Generate a SQL query to answer the following question:
`What is the social democrat released on October 10, 1999?`

### 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,
  "polling_institute" text,
  "socialist" text,
  "social_democratic" text,
  "green_communist" text,
  "people_s_party" text,
  "left_bloc" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the social democrat released on October 10, 1999?`:
```sql
                SELECT "social_democratic" FROM "116_seats_needed_for_a_majority" WHERE "date_released"='october 10, 1999';
```
## Task
Generate a SQL query to answer the following question:
`What is the green-communist with a 15.5% 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,
  "polling_institute" text,
  "socialist" text,
  "social_democratic" text,
  "green_communist" text,
  "people_s_party" text,
  "left_bloc" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the green-communist with a 15.5% lead?`:
```sql
                SELECT "green_communist" FROM "116_seats_needed_for_a_majority" WHERE "lead"='15.5%';
```
## Task
Generate a SQL query to answer the following question:
`What is the left bloc with a 49.0% socialist?`

### 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,
  "polling_institute" text,
  "socialist" text,
  "social_democratic" text,
  "green_communist" text,
  "people_s_party" text,
  "left_bloc" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the left bloc with a 49.0% socialist?`:
```sql
                SELECT "left_bloc" FROM "116_seats_needed_for_a_majority" WHERE "socialist"='49.0%';
```
## Task
Generate a SQL query to answer the following question:
`Which polling institute has a 30.7% for social democratic?`

### 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,
  "polling_institute" text,
  "socialist" text,
  "social_democratic" text,
  "green_communist" text,
  "people_s_party" text,
  "left_bloc" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which polling institute has a 30.7% for social democratic?`:
```sql
                SELECT "polling_institute" FROM "116_seats_needed_for_a_majority" WHERE "social_democratic"='30.7%';
```
## Task
Generate a SQL query to answer the following question:
`What is the people's party with a 30.0% social democratic?`

### 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,
  "polling_institute" text,
  "socialist" text,
  "social_democratic" text,
  "green_communist" text,
  "people_s_party" text,
  "left_bloc" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the people's party with a 30.0% social democratic?`:
```sql
                SELECT "people_s_party" FROM "116_seats_needed_for_a_majority" WHERE "social_democratic"='30.0%';
```
## Task
Generate a SQL query to answer the following question:
`What is the week with w 31-21 result?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week with w 31-21 result?`:
```sql
                SELECT "week" FROM "schedule" WHERE "result"='w 31-21';
```
## Task
Generate a SQL query to answer the following question:
`In week 7, what was the average attendance?`

### 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 `In week 7, what was the average attendance?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "week"=7;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on september 10, 1979?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on september 10, 1979?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='september 10, 1979';
```
## Task
Generate a SQL query to answer the following question:
`When was twenty released?`

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

CREATE TABLE "discography" (
  "date_of_release" text,
  "title" text,
  "billboard_peak" text,
  "riaa_cert" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was twenty released?`:
```sql
                SELECT "date_of_release" FROM "discography" WHERE "title"='twenty';
```
## Task
Generate a SQL query to answer the following question:
`On what date was god & guns released?`

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

CREATE TABLE "discography" (
  "date_of_release" text,
  "title" text,
  "billboard_peak" text,
  "riaa_cert" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was god & guns released?`:
```sql
                SELECT "date_of_release" FROM "discography" WHERE "title"='god & guns';
```
## Task
Generate a SQL query to answer the following question:
`What was the Billboard peak for the album released on September 12, 2000 by sanctuary?`

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

CREATE TABLE "discography" (
  "date_of_release" text,
  "title" text,
  "billboard_peak" text,
  "riaa_cert" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Billboard peak for the album released on September 12, 2000 by sanctuary?`:
```sql
                SELECT "billboard_peak" FROM "discography" WHERE "label"='sanctuary' AND "date_of_release"='september 12, 2000';
```
## Task
Generate a SQL query to answer the following question:
`Where did god & guns peak on the Billboard?`

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

CREATE TABLE "discography" (
  "date_of_release" text,
  "title" text,
  "billboard_peak" text,
  "riaa_cert" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did god & guns peak on the Billboard?`:
```sql
                SELECT "billboard_peak" FROM "discography" WHERE "title"='god & guns';
```
## Task
Generate a SQL query to answer the following question:
`What was the Billboard peak for the album released on February 2, 1976 by MCA?`

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

CREATE TABLE "discography" (
  "date_of_release" text,
  "title" text,
  "billboard_peak" text,
  "riaa_cert" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Billboard peak for the album released on February 2, 1976 by MCA?`:
```sql
                SELECT "billboard_peak" FROM "discography" WHERE "label"='mca' AND "date_of_release"='february 2, 1976';
```
## Task
Generate a SQL query to answer the following question:
`What venue was the tour match against eastern province played at with more than 0 against?`

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

CREATE TABLE "results" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue was the tour match against eastern province played at with more than 0 against?`:
```sql
                SELECT "venue" FROM "results" WHERE "status"='tour match' AND "against">0 AND "opposing_team"='eastern province';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of the game where there was more than 22 against?`

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

CREATE TABLE "results" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the game where there was more than 22 against?`:
```sql
                SELECT "status" FROM "results" WHERE "against">22;
```
## Task
Generate a SQL query to answer the following question:
`In which game did the opponents score 14 points?`

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

CREATE TABLE "schedule" (
  "game" text,
  "date" text,
  "opponent" text,
  "result" text,
  "lions_points" text,
  "opponents" text,
  "record" text,
  "streak" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which game did the opponents score 14 points?`:
```sql
                SELECT "game" FROM "schedule" WHERE "opponents"='14';
```
## Task
Generate a SQL query to answer the following question:
`What was the streak after the game on Dec. 12?`

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

CREATE TABLE "schedule" (
  "game" text,
  "date" text,
  "opponent" text,
  "result" text,
  "lions_points" text,
  "opponents" text,
  "record" text,
  "streak" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the streak after the game on Dec. 12?`:
```sql
                SELECT "streak" FROM "schedule" WHERE "date"='dec. 12';
```
## Task
Generate a SQL query to answer the following question:
`What's the AMT 3.0 when it has a feature of Vlan Settings for Intel AMT Network Interfaces?`

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

CREATE TABLE "comparison_of_amt_versions" (
  "feature" text,
  "amt_1_0_desktop" text,
  "amt_2_0_2_1_desktop" text,
  "amt_2_5_2_6_mobile" text,
  "amt_3_0_desktop" text,
  "amt_4_0_mobile" text,
  "amt_5_0_desktop" text,
  "6_0_desktop_mobile" text,
  "7_0_8_0_desktop_mobile" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the AMT 3.0 when it has a feature of Vlan Settings for Intel AMT Network Interfaces?`:
```sql
                SELECT "amt_3_0_desktop" FROM "comparison_of_amt_versions" WHERE "feature"='vlan settings for intel amt network interfaces';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of silver when bronze is 0, and rank is less than 2?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of silver when bronze is 0, and rank is less than 2?`:
```sql
                SELECT SUM("silver") FROM "medal_table" WHERE "bronze"=0 AND "rank"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the silver when the Total is 1, and Gold is 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the silver when the Total is 1, and Gold is 1?`:
```sql
                SELECT AVG("silver") FROM "medal_table" WHERE "total"=1 AND "gold"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of silver when the total is less than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of silver when the total is less than 1?`:
```sql
                SELECT COUNT("silver") FROM "medal_table" WHERE "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest silver number when the rank is smaller than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest silver number when the rank is smaller than 1?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "rank"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of bronze when the total is smaller than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of bronze when the total is smaller than 1?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of bronze when silver is larger than 0, rank is larger than 3?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of bronze when silver is larger than 0, rank is larger than 3?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "silver">0 AND "rank">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of silvers for countries in rank 12 with more than 0 bronze?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of silvers for countries in rank 12 with more than 0 bronze?`:
```sql
                SELECT MIN("silver") FROM "medals_table" WHERE "rank"='12' AND "bronze">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the most number of silvers for teams in rank 5 with more than 6 total medals?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most number of silvers for teams in rank 5 with more than 6 total medals?`:
```sql
                SELECT MAX("silver") FROM "medals_table" WHERE "rank"='5' AND "total">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of golds for teams with a total of 3 and fewer than 2 silvers?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of golds for teams with a total of 3 and fewer than 2 silvers?`:
```sql
                SELECT MIN("gold") FROM "medals_table" WHERE "total"=3 AND "silver"<2;
```
## Task
Generate a SQL query to answer the following question:
`What's the number of wins when the flags were less than 8 and 52.11% of wins?`

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

CREATE TABLE "win_loss_record" (
  "club" text,
  "active" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "percentage_wins" text,
  "flags" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of wins when the flags were less than 8 and 52.11% of wins?`:
```sql
                SELECT COUNT("wins") FROM "win_loss_record" WHERE "percentage_wins"='52.11%' AND "flags"<8;
```
## Task
Generate a SQL query to answer the following question:
`What's the most flags that had 473 wins and less than 633 losses?`

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

CREATE TABLE "win_loss_record" (
  "club" text,
  "active" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "percentage_wins" text,
  "flags" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the most flags that had 473 wins and less than 633 losses?`:
```sql
                SELECT MAX("flags") FROM "win_loss_record" WHERE "wins"=473 AND "losses"<633;
```
## Task
Generate a SQL query to answer the following question:
`How many wins did South Warrnambool have that had more than 6 flags and a draw greater than 10?`

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

CREATE TABLE "win_loss_record" (
  "club" text,
  "active" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "percentage_wins" text,
  "flags" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did South Warrnambool have that had more than 6 flags and a draw greater than 10?`:
```sql
                SELECT "wins" FROM "win_loss_record" WHERE "flags">6 AND "draws">10 AND "club"='south warrnambool';
```
## Task
Generate a SQL query to answer the following question:
`What are the losses of Warrnambool with a draw less than 19?`

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

CREATE TABLE "win_loss_record" (
  "club" text,
  "active" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "percentage_wins" text,
  "flags" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the losses of Warrnambool with a draw less than 19?`:
```sql
                SELECT AVG("losses") FROM "win_loss_record" WHERE "club"='warrnambool' AND "draws"<19;
```
## Task
Generate a SQL query to answer the following question:
`What is the Location of the Competition with a Rank-Final of 10?`

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

CREATE TABLE "senior_career" (
  "year" real,
  "competition_description" text,
  "location" text,
  "apparatus" text,
  "rank_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location of the Competition with a Rank-Final of 10?`:
```sql
                SELECT "location" FROM "senior_career" WHERE "rank_final"='10';
```
## Task
Generate a SQL query to answer the following question:
`How many gold medals for Bulgaria (BUL) with 2 silvers and a less than 18 rank?`

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

CREATE TABLE "men" (
  "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 Bulgaria (BUL) with 2 silvers and a less than 18 rank?`:
```sql
                SELECT SUM("gold") FROM "men" WHERE "silver"=2 AND "nation"='bulgaria (bul)' AND "rank"<18;
```
## Task
Generate a SQL query to answer the following question:
`What's the most bronze medals for Great Britain (GBR) with more than 1 silver and ranked more than 6?`

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

CREATE TABLE "men" (
  "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 most bronze medals for Great Britain (GBR) with more than 1 silver and ranked more than 6?`:
```sql
                SELECT MAX("bronze") FROM "men" WHERE "rank">6 AND "nation"='great britain (gbr)' AND "silver">1;
```
## Task
Generate a SQL query to answer the following question:
`What's the total silver medals having less than 2 gold and 2 bronze?`

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

CREATE TABLE "men" (
  "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 total silver medals having less than 2 gold and 2 bronze?`:
```sql
                SELECT COUNT("silver") FROM "men" WHERE "bronze"=2 AND "gold"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which Name has a Championship larger than 2, and a Total larger than 4, and an FA Cup larger than 0?`

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

CREATE TABLE "yellow_cards" (
  "name" text,
  "championship" real,
  "league_cup" real,
  "fa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has a Championship larger than 2, and a Total larger than 4, and an FA Cup larger than 0?`:
```sql
                SELECT "name" FROM "yellow_cards" WHERE "championship">2 AND "total">4 AND "fa_cup">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Video has a Channel smaller than 35.66, and a Programming of nhk world?`

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

CREATE TABLE "digital_channels" (
  "channel" real,
  "video" text,
  "aspect" text,
  "psip_short_name" text,
  "programming" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Video has a Channel smaller than 35.66, and a Programming of nhk world?`:
```sql
                SELECT "video" FROM "digital_channels" WHERE "channel"<35.66 AND "programming"='nhk world';
```
## Task
Generate a SQL query to answer the following question:
`Which Video has a PSIP Short Name of rt?`

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

CREATE TABLE "digital_channels" (
  "channel" real,
  "video" text,
  "aspect" text,
  "psip_short_name" text,
  "programming" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Video has a PSIP Short Name of rt?`:
```sql
                SELECT "video" FROM "digital_channels" WHERE "psip_short_name"='rt';
```
## Task
Generate a SQL query to answer the following question:
`Which Programming has a Channel of 35.4?`

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

CREATE TABLE "digital_channels" (
  "channel" real,
  "video" text,
  "aspect" text,
  "psip_short_name" text,
  "programming" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Programming has a Channel of 35.4?`:
```sql
                SELECT "programming" FROM "digital_channels" WHERE "channel"=35.4;
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest vuelta wins when the rank is 19 and combo is more than 0?`

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

CREATE TABLE "per_country" (
  "rank" text,
  "country" text,
  "jerseys" real,
  "vuelta_wins" real,
  "points" real,
  "combo" real,
  "different_holders" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest vuelta wins when the rank is 19 and combo is more than 0?`:
```sql
                SELECT MIN("vuelta_wins") FROM "per_country" WHERE "rank"='19' AND "combo">0;
```
## Task
Generate a SQL query to answer the following question:
`How many times is the country ireland and points more than 4?`

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

CREATE TABLE "per_country" (
  "rank" text,
  "country" text,
  "jerseys" real,
  "vuelta_wins" real,
  "points" real,
  "combo" real,
  "different_holders" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the country ireland and points more than 4?`:
```sql
                SELECT COUNT("vuelta_wins") FROM "per_country" WHERE "country"='ireland' AND "points">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the format for the MHCP-66 Catalog?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "format" text,
  "country" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format for the MHCP-66 Catalog?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalog"='mhcp-66';
```
## Task
Generate a SQL query to answer the following question:
`What Catalog came out on August 20, 1965?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "format" text,
  "country" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Catalog came out on August 20, 1965?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "date"='august 20, 1965';
```