cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Year has a Quarter-Finalists of £1,000, and Semi-Finalists of £1,500?`

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

CREATE TABLE "prize_money" (
  "year" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text,
  "quarter_finalists" text,
  "last_16" text,
  "last_32" text,
  "last_64" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has a Quarter-Finalists of £1,000, and Semi-Finalists of £1,500?`:
```sql
                SELECT "year" FROM "prize_money" WHERE "quarter_finalists"='£1,000' AND "semi_finalists"='£1,500';
```
## Task
Generate a SQL query to answer the following question:
`How tall is Dylan Postl?`

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

CREATE TABLE "athletes" (
  "nationality" text,
  "height" text,
  "name" text,
  "sport" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is Dylan Postl?`:
```sql
                SELECT "height" FROM "athletes" WHERE "name"='dylan postl';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest amount of goals when the points are less than 0?`

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

CREATE TABLE "2008_squad" (
  "squad_no" real,
  "player" text,
  "position" text,
  "tries" real,
  "goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest amount of goals when the points are less than 0?`:
```sql
                SELECT MAX("goals") FROM "2008_squad" WHERE "points"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which player has more than 0 goals and less than 12 tries?`

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

CREATE TABLE "2008_squad" (
  "squad_no" real,
  "player" text,
  "position" text,
  "tries" real,
  "goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has more than 0 goals and less than 12 tries?`:
```sql
                SELECT "player" FROM "2008_squad" WHERE "goals">0 AND "tries"<12;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of tries when Matt Diskin is the player and there are more than 16 points?`

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

CREATE TABLE "2008_squad" (
  "squad_no" real,
  "player" text,
  "position" text,
  "tries" real,
  "goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of tries when Matt Diskin is the player and there are more than 16 points?`:
```sql
                SELECT MIN("tries") FROM "2008_squad" WHERE "player"='matt diskin' AND "points">16;
```
## Task
Generate a SQL query to answer the following question:
`Which position has more than 4 points, less than 12 tries, a squad number of more than 1, and where Ali Lauitiiti is a player?`

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

CREATE TABLE "2008_squad" (
  "squad_no" real,
  "player" text,
  "position" text,
  "tries" real,
  "goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has more than 4 points, less than 12 tries, a squad number of more than 1, and where Ali Lauitiiti is a player?`:
```sql
                SELECT "position" FROM "2008_squad" WHERE "points">4 AND "tries"<12 AND "squad_no">1 AND "player"='ali lauitiiti';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of squad no when there are more than 8 points, Danny Mcguire is a player, and there are more than 0 goals?`

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

CREATE TABLE "2008_squad" (
  "squad_no" real,
  "player" text,
  "position" text,
  "tries" real,
  "goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of squad no when there are more than 8 points, Danny Mcguire is a player, and there are more than 0 goals?`:
```sql
                SELECT SUM("squad_no") FROM "2008_squad" WHERE "points">8 AND "player"='danny mcguire' AND "goals">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest lost from drawn of 1 or greater?`

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

CREATE TABLE "world_championship_group_b_yugoslavia" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest lost from drawn of 1 or greater?`:
```sql
                SELECT MIN("lost") FROM "world_championship_group_b_yugoslavia" WHERE "drawn">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest games from a game with points less than 4, drawn of 1 and a lost less than 6?`

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

CREATE TABLE "world_championship_group_b_yugoslavia" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest games from a game with points less than 4, drawn of 1 and a lost less than 6?`:
```sql
                SELECT MAX("games") FROM "world_championship_group_b_yugoslavia" WHERE "points"<4 AND "drawn"=1 AND "lost"<6;
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game on January 18?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game on January 18?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "date"='january 18';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game on January 10?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game on January 10?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "date"='january 10';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game on November 12 with the Chicago Black Hawks as the visitor team?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game on November 12 with the Chicago Black Hawks as the visitor team?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "visitor"='chicago black hawks' AND "date"='november 12';
```
## Task
Generate a SQL query to answer the following question:
`What is the series score of the game on May 6?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series score of the game on May 6?`:
```sql
                SELECT "series" FROM "game_log" WHERE "date"='may 6';
```
## Task
Generate a SQL query to answer the following question:
`The Zeehond was built by whom?`

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

CREATE TABLE "the_boats" (
  "ship" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Zeehond was built by whom?`:
```sql
                SELECT "builder" FROM "the_boats" WHERE "ship"='zeehond';
```
## Task
Generate a SQL query to answer the following question:
`What college, junior, or club team did Victor Ignatjev play for?`

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

CREATE TABLE "nhl_entry_draft" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college, junior, or club team did Victor Ignatjev play for?`:
```sql
                SELECT "college_junior_club_team" FROM "nhl_entry_draft" WHERE "player"='victor ignatjev';
```
## Task
Generate a SQL query to answer the following question:
`Which player is from Sweden?`

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

CREATE TABLE "nhl_entry_draft" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player is from Sweden?`:
```sql
                SELECT "player" FROM "nhl_entry_draft" WHERE "nationality"='sweden';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on April 22?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on April 22?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='april 22';
```
## Task
Generate a SQL query to answer the following question:
`What opponent has a score of 1-3?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent has a score of 1-3?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "score"='1-3';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for April 21?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for April 21?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='april 21';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Round larger than 5, and a School/Club Team of bethune-cookman?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Round larger than 5, and a School/Club Team of bethune-cookman?`:
```sql
                SELECT "player" FROM "nfl_draft" WHERE "round">5 AND "school_club_team"='bethune-cookman';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Pick smaller than 152, and a Round smaller than 3?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Pick smaller than 152, and a Round smaller than 3?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "pick"<152 AND "round"<3;
```
## Task
Generate a SQL query to answer the following question:
`How many Picks have a Position of defensive back?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Picks have a Position of defensive back?`:
```sql
                SELECT COUNT("pick") FROM "nfl_draft" WHERE "position"='defensive back';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Round smaller than 11, and a Pick smaller than 152, and a Position of guard?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Round smaller than 11, and a Pick smaller than 152, and a Position of guard?`:
```sql
                SELECT "player" FROM "nfl_draft" WHERE "round"<11 AND "pick"<152 AND "position"='guard';
```
## Task
Generate a SQL query to answer the following question:
`Which participants won the silver medal for the Men's Doubles?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which participants won the silver medal for the Men's Doubles?`:
```sql
                SELECT "name" FROM "list_of_medalists" WHERE "medal"='silver' AND "event"='men''s doubles';
```
## Task
Generate a SQL query to answer the following question:
`What event did Rashid Sidek participate in?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event did Rashid Sidek participate in?`:
```sql
                SELECT "event" FROM "list_of_medalists" WHERE "name"='rashid sidek';
```
## Task
Generate a SQL query to answer the following question:
`Which Olympic Games had a silver medal for the Men's Singles?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Olympic Games had a silver medal for the Men's Singles?`:
```sql
                SELECT "games" FROM "list_of_medalists" WHERE "event"='men''s singles' AND "medal"='silver';
```
## Task
Generate a SQL query to answer the following question:
`Which sport was in the 1992 Barcelona games?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which sport was in the 1992 Barcelona games?`:
```sql
                SELECT "sport" FROM "list_of_medalists" WHERE "games"='1992 barcelona';
```
## Task
Generate a SQL query to answer the following question:
`What event was in the 2008 Beijing games?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event was in the 2008 Beijing games?`:
```sql
                SELECT "event" FROM "list_of_medalists" WHERE "games"='2008 beijing';
```
## Task
Generate a SQL query to answer the following question:
`What is the round of the defense player from the United States?`

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

CREATE TABLE "nhl_entry_draft" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round of the defense player from the United States?`:
```sql
                SELECT "round" FROM "nhl_entry_draft" WHERE "position"='defense' AND "nationality"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of Dale Craigwell?`

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

CREATE TABLE "nhl_entry_draft" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of Dale Craigwell?`:
```sql
                SELECT "position" FROM "nhl_entry_draft" WHERE "player"='dale craigwell';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player from Sweden?`

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

CREATE TABLE "nhl_entry_draft" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player from Sweden?`:
```sql
                SELECT "position" FROM "nhl_entry_draft" WHERE "nationality"='sweden';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player from a round larger than 5 and the college/junior/club team of Leningrad SKA (russia)?`

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

CREATE TABLE "nhl_entry_draft" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from a round larger than 5 and the college/junior/club team of Leningrad SKA (russia)?`:
```sql
                SELECT "player" FROM "nhl_entry_draft" WHERE "round">5 AND "college_junior_club_team"='leningrad ska (russia)';
```
## Task
Generate a SQL query to answer the following question:
`What position does Mikhail Kravets play?`

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

CREATE TABLE "nhl_entry_draft" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Mikhail Kravets play?`:
```sql
                SELECT "position" FROM "nhl_entry_draft" WHERE "player"='mikhail kravets';
```
## Task
Generate a SQL query to answer the following question:
`Which date was held at Laguna Seca Raceway, in class GTX/GTO?`

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

CREATE TABLE "schedule" (
  "race" text,
  "length" text,
  "class" text,
  "circuit" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date was held at Laguna Seca Raceway, in class GTX/GTO?`:
```sql
                SELECT "date" FROM "schedule" WHERE "circuit"='laguna seca raceway' AND "class"='gtx/gto';
```
## Task
Generate a SQL query to answer the following question:
`Which circuit was held on May 7 for 1 hour?`

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

CREATE TABLE "schedule" (
  "race" text,
  "length" text,
  "class" text,
  "circuit" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which circuit was held on May 7 for 1 hour?`:
```sql
                SELECT "circuit" FROM "schedule" WHERE "date"='may 7' AND "length"='1 hour';
```
## Task
Generate a SQL query to answer the following question:
`Which circuit has a length of 45 minutes and is held on August 6?`

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

CREATE TABLE "schedule" (
  "race" text,
  "length" text,
  "class" text,
  "circuit" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which circuit has a length of 45 minutes and is held on August 6?`:
```sql
                SELECT "circuit" FROM "schedule" WHERE "length"='45 minutes' AND "date"='august 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the length of the 6 Hours of Talladega?`

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

CREATE TABLE "schedule" (
  "race" text,
  "length" text,
  "class" text,
  "circuit" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the length of the 6 Hours of Talladega?`:
```sql
                SELECT "length" FROM "schedule" WHERE "race"='6 hours of talladega';
```
## Task
Generate a SQL query to answer the following question:
`Name the class AAAA with class A of lindsay and class AAAAA of galena park north shore`

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

CREATE TABLE "team" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the class AAAA with class A of lindsay and class AAAAA of galena park north shore`:
```sql
                SELECT "class_aaaa" FROM "team" WHERE "class_a"='lindsay' AND "class_aaaaa"='galena park north shore';
```
## Task
Generate a SQL query to answer the following question:
`Name the class A with class AAAA of longview pine tree and school year of 1995-96`

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

CREATE TABLE "team" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the class A with class AAAA of longview pine tree and school year of 1995-96`:
```sql
                SELECT "class_a" FROM "team" WHERE "class_aaaa"='longview pine tree' AND "school_year"='1995-96';
```
## Task
Generate a SQL query to answer the following question:
`Name the class AA with class A of rule and school year of 1995-96`

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

CREATE TABLE "team" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the class AA with class A of rule and school year of 1995-96`:
```sql
                SELECT "class_aa" FROM "team" WHERE "class_a"='rule' AND "school_year"='1995-96';
```
## Task
Generate a SQL query to answer the following question:
`Name the school year with class AAAAA of mcallen and class AAAA of longview pine tree`

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

CREATE TABLE "team" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the school year with class AAAAA of mcallen and class AAAA of longview pine tree`:
```sql
                SELECT "school_year" FROM "team" WHERE "class_aaaaa"='mcallen' AND "class_aaaa"='longview pine tree';
```
## Task
Generate a SQL query to answer the following question:
`Name the class A with school year of 2004-05`

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

CREATE TABLE "team" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the class A with school year of 2004-05`:
```sql
                SELECT "class_a" FROM "team" WHERE "school_year"='2004-05';
```
## Task
Generate a SQL query to answer the following question:
`Name the clas AAAA of school year 2000-01`

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

CREATE TABLE "team" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the clas AAAA of school year 2000-01`:
```sql
                SELECT "class_aaaa" FROM "team" WHERE "school_year"='2000-01';
```
## Task
Generate a SQL query to answer the following question:
`What school is from 45 Lake county and is located in Merrillville?`

### 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,
  "mascot" text,
  "location" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school is from 45 Lake county and is located in Merrillville?`:
```sql
                SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "county"='45 lake' AND "location"='merrillville';
```
## Task
Generate a SQL query to answer the following question:
`What school is located in Michigan City?`

### 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,
  "mascot" text,
  "location" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school is located in Michigan City?`:
```sql
                SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "location"='michigan city';
```
## Task
Generate a SQL query to answer the following question:
`What is the IHSAA class for Chesterton?`

### 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,
  "mascot" text,
  "location" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSAA class for Chesterton?`:
```sql
                SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "school"='chesterton';
```
## Task
Generate a SQL query to answer the following question:
`What is the IHSAA class for Portage?`

### 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,
  "mascot" text,
  "location" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSAA class for Portage?`:
```sql
                SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "school"='portage';
```
## Task
Generate a SQL query to answer the following question:
`What is the IHSAA class for Crown Point?`

### 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,
  "mascot" text,
  "location" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSAA class for Crown Point?`:
```sql
                SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "school"='crown point';
```
## Task
Generate a SQL query to answer the following question:
`What is the average grid of driver Christian Vietoris who has less than 12 laps?`

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

CREATE TABLE "sprint_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average grid of driver Christian Vietoris who has less than 12 laps?`:
```sql
                SELECT AVG("grid") FROM "sprint_race" WHERE "driver"='christian vietoris' AND "laps"<12;
```
## Task
Generate a SQL query to answer the following question:
`What is the grid of driver joão urbano?`

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

CREATE TABLE "sprint_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid of driver joão urbano?`:
```sql
                SELECT SUM("grid") FROM "sprint_race" WHERE "driver"='joão urbano';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest laps a grid less than 22 with a time of +35.268 has?`

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

CREATE TABLE "sprint_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest laps a grid less than 22 with a time of +35.268 has?`:
```sql
                SELECT MIN("laps") FROM "sprint_race" WHERE "grid"<22 AND "time"='+35.268';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest laps driver Christian Vietoris with a grid smaller than 6 has?`

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

CREATE TABLE "sprint_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest laps driver Christian Vietoris with a grid smaller than 6 has?`:
```sql
                SELECT MIN("laps") FROM "sprint_race" WHERE "driver"='christian vietoris' AND "grid"<6;
```
## Task
Generate a SQL query to answer the following question:
`What is the primary sponsor of driver Mark Martin?`

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

CREATE TABLE "teams_and_drivers" (
  "team" text,
  "car_s" text,
  "driver_s" text,
  "primary_sponsor_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the primary sponsor of driver Mark Martin?`:
```sql
                SELECT "primary_sponsor_s" FROM "teams_and_drivers" WHERE "driver_s"='mark martin';
```
## Task
Generate a SQL query to answer the following question:
`Who is the crew chief of team Joe Gibbs Racing, which has a Chevrolet Monte Carlo and Fedex as the primary sponsor?`

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

CREATE TABLE "teams_and_drivers" (
  "team" text,
  "car_s" text,
  "driver_s" text,
  "primary_sponsor_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the crew chief of team Joe Gibbs Racing, which has a Chevrolet Monte Carlo and Fedex as the primary sponsor?`:
```sql
                SELECT "crew_chief" FROM "teams_and_drivers" WHERE "car_s"='chevrolet monte carlo' AND "team"='joe gibbs racing' AND "primary_sponsor_s"='fedex';
```
## Task
Generate a SQL query to answer the following question:
`Who is the driver of the team with the crew chief Derrick Finley?`

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

CREATE TABLE "teams_and_drivers" (
  "team" text,
  "car_s" text,
  "driver_s" text,
  "primary_sponsor_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the driver of the team with the crew chief Derrick Finley?`:
```sql
                SELECT "driver_s" FROM "teams_and_drivers" WHERE "crew_chief"='derrick finley';
```
## Task
Generate a SQL query to answer the following question:
`Who is the crew chief of team Chip Ganassi Racing with Felix Sabates, which has Casey Mears as the driver?`

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

CREATE TABLE "teams_and_drivers" (
  "team" text,
  "car_s" text,
  "driver_s" text,
  "primary_sponsor_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the crew chief of team Chip Ganassi Racing with Felix Sabates, which has Casey Mears as the driver?`:
```sql
                SELECT "crew_chief" FROM "teams_and_drivers" WHERE "team"='chip ganassi racing with felix sabates' AND "driver_s"='casey mears';
```
## Task
Generate a SQL query to answer the following question:
`Which team has Peak Fitness as the primary sponsor?`

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

CREATE TABLE "teams_and_drivers" (
  "team" text,
  "car_s" text,
  "driver_s" text,
  "primary_sponsor_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has Peak Fitness as the primary sponsor?`:
```sql
                SELECT "team" FROM "teams_and_drivers" WHERE "primary_sponsor_s"='peak fitness';
```
## Task
Generate a SQL query to answer the following question:
`What date has w 20-17 as the result, and 1-0 as the record?`

### 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,
  "game_site" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has w 20-17 as the result, and 1-0 as the record?`:
```sql
                SELECT "date" FROM "schedule" WHERE "result"='w 20-17' AND "record"='1-0';
```
## Task
Generate a SQL query to answer the following question:
`What game site has december 24, 2000 as a date?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game site has december 24, 2000 as a date?`:
```sql
                SELECT "game_site" FROM "schedule" WHERE "date"='december 24, 2000';
```
## Task
Generate a SQL query to answer the following question:
`What date has dallas cowboys as the opponent?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has dallas cowboys as the opponent?`:
```sql
                SELECT "date" FROM "schedule" WHERE "opponent"='dallas cowboys';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance that has fedex field as the game site with 3 as the week?`

### 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,
  "game_site" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance that has fedex field as the game site with 3 as the week?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "game_site"='fedex field' AND "week"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the record for April 22?`

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

CREATE TABLE "free_agents" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for April 22?`:
```sql
                SELECT "record" FROM "free_agents" WHERE "date"='april 22';
```
## Task
Generate a SQL query to answer the following question:
`What is the record when the visiting team was the Quebec Nordiques on April 22?`

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

CREATE TABLE "free_agents" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when the visiting team was the Quebec Nordiques on April 22?`:
```sql
                SELECT "record" FROM "free_agents" WHERE "visitor"='quebec nordiques' AND "date"='april 22';
```
## Task
Generate a SQL query to answer the following question:
`What is the longitude of Taurus?`

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

CREATE TABLE "seasons" (
  "longitude" text,
  "sign" text,
  "sanskrit" text,
  "latin" text,
  "ruling_planet" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the longitude of Taurus?`:
```sql
                SELECT "longitude" FROM "seasons" WHERE "latin"='taurus';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location for Belshina?`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_2003" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location for Belshina?`:
```sql
                SELECT "location" FROM "teams_and_venues" WHERE "team"='belshina';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the Team with a Capacity larger than 5,000, and a Position in 2003 of 13?`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_2003" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the Team with a Capacity larger than 5,000, and a Position in 2003 of 13?`:
```sql
                SELECT "team" FROM "teams_and_venues" WHERE "capacity">'5,000' AND "position_in_2003"='13';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number for Capacity at city stadium, borisov?`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_2003" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number for Capacity at city stadium, borisov?`:
```sql
                SELECT COUNT("capacity") FROM "teams_and_venues" WHERE "venue"='city stadium, borisov';
```
## Task
Generate a SQL query to answer the following question:
`Which rating larger than 5 have the lowest amount of views in #3 rank with a share of 9?`

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

CREATE TABLE "season_1_2008" (
  "airdate" text,
  "celebrities" text,
  "rating" real,
  "share" real,
  "18_49" text,
  "viewers_millions" real,
  "weekly_rank" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which rating larger than 5 have the lowest amount of views in #3 rank with a share of 9?`:
```sql
                SELECT MIN("viewers_millions") FROM "season_1_2008" WHERE "weekly_rank"='#3' AND "share"=9 AND "rating">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest played that has a drawn less than 9, 36 as the difference, with a lost greater than 7?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest played that has a drawn less than 9, 36 as the difference, with a lost greater than 7?`:
```sql
                SELECT MAX("played") FROM "campeonato_brasileiro_s_rie_a" WHERE "drawn"<9 AND "difference"='36' AND "lost">7;
```
## Task
Generate a SQL query to answer the following question:
`How many positions have figueirense as the team, with a played greater than 38?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions have figueirense as the team, with a played greater than 38?`:
```sql
                SELECT COUNT("position") FROM "campeonato_brasileiro_s_rie_a" WHERE "team"='figueirense' AND "played">38;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest drawn that has a played less than 38?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest drawn that has a played less than 38?`:
```sql
                SELECT MAX("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "played"<38;
```
## Task
Generate a SQL query to answer the following question:
`How many positions have 9 as a drawn, 5 as a difference, with a lost less than 14?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions have 9 as a drawn, 5 as a difference, with a lost less than 14?`:
```sql
                SELECT COUNT("position") FROM "campeonato_brasileiro_s_rie_a" WHERE "drawn"=9 AND "difference"='5' AND "lost"<14;
```
## Task
Generate a SQL query to answer the following question:
`What date did Episode 2-01 (42) air?`

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

CREATE TABLE "season_2_1938_1939" (
  "episode" text,
  "title" text,
  "writer_s" text,
  "preservation" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did Episode 2-01 (42) air?`:
```sql
                SELECT "original_airdate" FROM "season_2_1938_1939" WHERE "episode"='2-01 (42)';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote Episode 2-15 (56)?`

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

CREATE TABLE "season_2_1938_1939" (
  "episode" text,
  "title" text,
  "writer_s" text,
  "preservation" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote Episode 2-15 (56)?`:
```sql
                SELECT "writer_s" FROM "season_2_1938_1939" WHERE "episode"='2-15 (56)';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of games with 1 loss and points less than 18?`

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

CREATE TABLE "world_championship_group_a_finland" (
  "team" text,
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of games with 1 loss and points less than 18?`:
```sql
                SELECT MAX("games") FROM "world_championship_group_a_finland" WHERE "lost"=1 AND "points"<18;
```
## Task
Generate a SQL query to answer the following question:
`Which City has a Result of w, and a Competition of international friendly (unofficial match), and a Score of 1-0?`

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

CREATE TABLE "brazil_national_team" (
  "date" text,
  "city" text,
  "result" text,
  "score" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has a Result of w, and a Competition of international friendly (unofficial match), and a Score of 1-0?`:
```sql
                SELECT "city" FROM "brazil_national_team" WHERE "result"='w' AND "competition"='international friendly (unofficial match)' AND "score"='1-0';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Result of w, and a Score of 3-0?`

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

CREATE TABLE "brazil_national_team" (
  "date" text,
  "city" text,
  "result" text,
  "score" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Result of w, and a Score of 3-0?`:
```sql
                SELECT "date" FROM "brazil_national_team" WHERE "result"='w' AND "score"='3-0';
```
## Task
Generate a SQL query to answer the following question:
`Which City has a Date of june 9, 1976?`

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

CREATE TABLE "brazil_national_team" (
  "date" text,
  "city" text,
  "result" text,
  "score" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has a Date of june 9, 1976?`:
```sql
                SELECT "city" FROM "brazil_national_team" WHERE "date"='june 9, 1976';
```
## Task
Generate a SQL query to answer the following question:
`Which City has a Date of may 19, 1976?`

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

CREATE TABLE "brazil_national_team" (
  "date" text,
  "city" text,
  "result" text,
  "score" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has a Date of may 19, 1976?`:
```sql
                SELECT "city" FROM "brazil_national_team" WHERE "date"='may 19, 1976';
```