cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`When there is a lost of 2 what is the mumber drawn?`

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

CREATE TABLE "apea_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When there is a lost of 2 what is the mumber drawn?`:
```sql
                SELECT MAX("drawn") FROM "apea_s_campeonato_paulista" WHERE "lost"=2;
```
## Task
Generate a SQL query to answer the following question:
`How many games are played?`

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

CREATE TABLE "apea_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games are played?`:
```sql
                SELECT MIN("played") FROM "apea_s_campeonato_paulista";
```
## Task
Generate a SQL query to answer the following question:
`When the position is 2 what is the number lost?`

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

CREATE TABLE "apea_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the position is 2 what is the number lost?`:
```sql
                SELECT MIN("lost") FROM "apea_s_campeonato_paulista" WHERE "position"=2;
```
## Task
Generate a SQL query to answer the following question:
`When the team is ypiranga-sp what is the number of won games?`

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

CREATE TABLE "apea_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the team is ypiranga-sp what is the number of won games?`:
```sql
                SELECT MIN("won") FROM "apea_s_campeonato_paulista" WHERE "team"='Ypiranga-SP';
```
## Task
Generate a SQL query to answer the following question:
`Name the lease for when points is 19`

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

CREATE TABLE "table1_15400878_1" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lease for when points is 19`:
```sql
                SELECT MIN("for") FROM "table1_15400878_1" WHERE "points"=19;
```
## Task
Generate a SQL query to answer the following question:
`Name the difference for when drawn is larger than 2.0`

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

CREATE TABLE "table1_15400878_1" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the difference for when drawn is larger than 2.0`:
```sql
                SELECT "difference" FROM "table1_15400878_1" WHERE "drawn">2.0;
```
## Task
Generate a SQL query to answer the following question:
`Name the most against for minas gerais`

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

CREATE TABLE "table1_15400878_1" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most against for minas gerais`:
```sql
                SELECT MAX("against") FROM "table1_15400878_1" WHERE "team"='Minas Gerais';
```
## Task
Generate a SQL query to answer the following question:
`What is the LMS class of trains with numbers 14510-5?`

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

CREATE TABLE "peter_drummond_1911_1918" (
  "class" text,
  "wheels" real,
  "date" text,
  "builder" text,
  "no_built" real,
  "1919_nos" text,
  "lms_class" text,
  "lms_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the LMS class of trains with numbers 14510-5?`:
```sql
                SELECT "lms_class" FROM "peter_drummond_1911_1918" WHERE "lms_nos"='14510-5';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the 279 wheels?`

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

CREATE TABLE "peter_drummond_1911_1918" (
  "class" text,
  "wheels" real,
  "date" text,
  "builder" text,
  "no_built" real,
  "1919_nos" text,
  "lms_class" text,
  "lms_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the 279 wheels?`:
```sql
                SELECT "date" FROM "peter_drummond_1911_1918" WHERE "wheels"=279;
```
## Task
Generate a SQL query to answer the following question:
`What is the class when the LMS class is 3F?`

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

CREATE TABLE "peter_drummond_1911_1918" (
  "class" text,
  "wheels" real,
  "date" text,
  "builder" text,
  "no_built" real,
  "1919_nos" text,
  "lms_class" text,
  "lms_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class when the LMS class is 3F?`:
```sql
                SELECT "class" FROM "peter_drummond_1911_1918" WHERE "lms_class"='3F';
```
## Task
Generate a SQL query to answer the following question:
`What is the LMS number of the trains built by G&SWR Kilmarnock?`

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

CREATE TABLE "peter_drummond_1911_1918" (
  "class" text,
  "wheels" real,
  "date" text,
  "builder" text,
  "no_built" real,
  "1919_nos" text,
  "lms_class" text,
  "lms_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the LMS number of the trains built by G&SWR Kilmarnock?`:
```sql
                SELECT "lms_nos" FROM "peter_drummond_1911_1918" WHERE "builder"='G&SWR Kilmarnock';
```
## Task
Generate a SQL query to answer the following question:
`How many figures are there for wheels for LMS numbers 16377-9?`

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

CREATE TABLE "peter_drummond_1911_1918" (
  "class" text,
  "wheels" real,
  "date" text,
  "builder" text,
  "no_built" real,
  "1919_nos" text,
  "lms_class" text,
  "lms_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures are there for wheels for LMS numbers 16377-9?`:
```sql
                SELECT COUNT("wheels") FROM "peter_drummond_1911_1918" WHERE "lms_nos"='16377-9';
```
## Task
Generate a SQL query to answer the following question:
`What is the builder of the train with LMS Class 3f?`

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

CREATE TABLE "peter_drummond_1911_1918" (
  "class" text,
  "wheels" real,
  "date" text,
  "builder" text,
  "no_built" real,
  "1919_nos" text,
  "lms_class" text,
  "lms_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the builder of the train with LMS Class 3f?`:
```sql
                SELECT "builder" FROM "peter_drummond_1911_1918" WHERE "lms_class"='3F';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number for the Saffir-Simpson category in the Carvill Hurricane Index?`

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

CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
  "name" text,
  "year" real,
  "landfall" text,
  "nhc_advisory_number" text,
  "v_mph" real,
  "r_miles" real,
  "saffir_simpson_category" real,
  "chi" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number for the Saffir-Simpson category in the Carvill Hurricane Index?`:
```sql
                SELECT MAX("saffir_simpson_category") FROM "table_1_historical_storms_and_the_chi_19";
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum miles per hour recorded when the  CHI (Carvill Hurricane Index) is equal to 13.5`

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

CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
  "name" text,
  "year" real,
  "landfall" text,
  "nhc_advisory_number" text,
  "v_mph" real,
  "r_miles" real,
  "saffir_simpson_category" real,
  "chi" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum miles per hour recorded when the  CHI (Carvill Hurricane Index) is equal to 13.5`:
```sql
                SELECT MAX("v_mph") FROM "table_1_historical_storms_and_the_chi_19" WHERE "chi"='13.5';
```
## Task
Generate a SQL query to answer the following question:
`What is the CHI (Carvill Hurricane Index) when the NHC advisory number is equal to 49b?`

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

CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
  "name" text,
  "year" real,
  "landfall" text,
  "nhc_advisory_number" text,
  "v_mph" real,
  "r_miles" real,
  "saffir_simpson_category" real,
  "chi" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the CHI (Carvill Hurricane Index) when the NHC advisory number is equal to 49b?`:
```sql
                SELECT "chi" FROM "table_1_historical_storms_and_the_chi_19" WHERE "nhc_advisory_number"='49B';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of miles reached in a Texas landfall when the Saffir-Simpson category is smaller than 3.0?`

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

CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
  "name" text,
  "year" real,
  "landfall" text,
  "nhc_advisory_number" text,
  "v_mph" real,
  "r_miles" real,
  "saffir_simpson_category" real,
  "chi" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of miles reached in a Texas landfall when the Saffir-Simpson category is smaller than 3.0?`:
```sql
                SELECT MAX("r_miles") FROM "table_1_historical_storms_and_the_chi_19" WHERE "landfall"='Texas' AND "saffir_simpson_category"<3.0;
```
## Task
Generate a SQL query to answer the following question:
`What are the miles when the Carvill Hurricane Index (CHI) is equal to 9.9?`

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

CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
  "name" text,
  "year" real,
  "landfall" text,
  "nhc_advisory_number" text,
  "v_mph" real,
  "r_miles" real,
  "saffir_simpson_category" real,
  "chi" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the miles when the Carvill Hurricane Index (CHI) is equal to 9.9?`:
```sql
                SELECT "r_miles" FROM "table_1_historical_storms_and_the_chi_19" WHERE "chi"='9.9';
```
## Task
Generate a SQL query to answer the following question:
`What is the Saffir-Simpson category for the hurricane named Bonnie?`

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

CREATE TABLE "table_1_historical_storms_and_the_chi_19" (
  "name" text,
  "year" real,
  "landfall" text,
  "nhc_advisory_number" text,
  "v_mph" real,
  "r_miles" real,
  "saffir_simpson_category" real,
  "chi" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Saffir-Simpson category for the hurricane named Bonnie?`:
```sql
                SELECT "saffir_simpson_category" FROM "table_1_historical_storms_and_the_chi_19" WHERE "name"='Bonnie';
```
## Task
Generate a SQL query to answer the following question:
`What kind of animal corresponds to the accession number xp_852505.1?`

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

CREATE TABLE "table1_15417439_1" (
  "genus_species" text,
  "common_name" text,
  "accession_number" text,
  "length" text,
  "similarity" text,
  "identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of animal corresponds to the accession number xp_852505.1?`:
```sql
                SELECT "common_name" FROM "table1_15417439_1" WHERE "accession_number"='XP_852505.1';
```
## Task
Generate a SQL query to answer the following question:
`How similar is the genus/species sus scrofa? `

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

CREATE TABLE "table1_15417439_1" (
  "genus_species" text,
  "common_name" text,
  "accession_number" text,
  "length" text,
  "similarity" text,
  "identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `How similar is the genus/species sus scrofa? `:
```sql
                SELECT "similarity" FROM "table1_15417439_1" WHERE "genus_species"='Sus scrofa';
```
## Task
Generate a SQL query to answer the following question:
`What identities do the genus/species arabidopsis thaliana have? `

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

CREATE TABLE "table1_15417439_1" (
  "genus_species" text,
  "common_name" text,
  "accession_number" text,
  "length" text,
  "similarity" text,
  "identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What identities do the genus/species arabidopsis thaliana have? `:
```sql
                SELECT "identity" FROM "table1_15417439_1" WHERE "genus_species"='Arabidopsis thaliana';
```
## Task
Generate a SQL query to answer the following question:
`What's the animals name when the genus/species is rattus norvegicus? `

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

CREATE TABLE "table1_15417439_1" (
  "genus_species" text,
  "common_name" text,
  "accession_number" text,
  "length" text,
  "similarity" text,
  "identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the animals name when the genus/species is rattus norvegicus? `:
```sql
                SELECT "common_name" FROM "table1_15417439_1" WHERE "genus_species"='Rattus norvegicus';
```
## Task
Generate a SQL query to answer the following question:
`For the genus/species arabidopsis thaliana, what are the lengths? `

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

CREATE TABLE "table1_15417439_1" (
  "genus_species" text,
  "common_name" text,
  "accession_number" text,
  "length" text,
  "similarity" text,
  "identity" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the genus/species arabidopsis thaliana, what are the lengths? `:
```sql
                SELECT "length" FROM "table1_15417439_1" WHERE "genus_species"='Arabidopsis thaliana';
```
## Task
Generate a SQL query to answer the following question:
`How many original air dates were there for episode 17?`

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

CREATE TABLE "table1_15430813_1" (
  "no_in_season" real,
  "no_disc" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many original air dates were there for episode 17?`:
```sql
                SELECT COUNT("original_air_date") FROM "table1_15430813_1" WHERE "no_in_season"=17;
```
## Task
Generate a SQL query to answer the following question:
`When did the episode titled "Prisoners" first air?`

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

CREATE TABLE "table1_15430813_1" (
  "no_in_season" real,
  "no_disc" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode titled "Prisoners" first air?`:
```sql
                SELECT "original_air_date" FROM "table1_15430813_1" WHERE "title"='\"Prisoners\"';
```
## Task
Generate a SQL query to answer the following question:
`Which company was based in London, United Kingdom?`

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

CREATE TABLE "table_of_largest_rogue_trader_losses" (
  "name" text,
  "country" text,
  "date_s" real,
  "loss" text,
  "institution" text,
  "market_activity" text,
  "sentence" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which company was based in London, United Kingdom?`:
```sql
                SELECT "institution" FROM "table_of_largest_rogue_trader_losses" WHERE "country"='London, United Kingdom';
```
## Task
Generate a SQL query to answer the following question:
`What was the original air date of Stargate SG-1 written by Peter Deluise?`

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

CREATE TABLE "table1_15431959_1" (
  "no_in_season" real,
  "no_disc" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date of Stargate SG-1 written by Peter Deluise?`:
```sql
                SELECT "original_air_date" FROM "table1_15431959_1" WHERE "written_by"='Peter DeLuise';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons did Peter Deluise direct Stargate SG-1?`

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

CREATE TABLE "table1_15431959_1" (
  "no_in_season" real,
  "no_disc" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons did Peter Deluise direct Stargate SG-1?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_15431959_1" WHERE "directed_by"='Peter DeLuise';
```
## Task
Generate a SQL query to answer the following question:
`Which number episode of season 6 was the title "Sight Unseen"?`

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

CREATE TABLE "table1_15431959_1" (
  "no_in_season" real,
  "no_disc" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which number episode of season 6 was the title "Sight Unseen"?`:
```sql
                SELECT MIN("no_in_season") FROM "table1_15431959_1" WHERE "title"='\"Sight Unseen\"';
```
## Task
Generate a SQL query to answer the following question:
`Name the fifth district for william womer`

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

CREATE TABLE "current_members" (
  "first_district" text,
  "second_district" text,
  "third_district" text,
  "fourth_district" text,
  "fifth_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fifth district for william womer`:
```sql
                SELECT "fifth_district" FROM "current_members" WHERE "third_district"='William Womer';
```
## Task
Generate a SQL query to answer the following question:
`Name the third district for christine young`

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

CREATE TABLE "current_members" (
  "first_district" text,
  "second_district" text,
  "third_district" text,
  "fourth_district" text,
  "fifth_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the third district for christine young`:
```sql
                SELECT "third_district" FROM "current_members" WHERE "fifth_district"='Christine Young';
```
## Task
Generate a SQL query to answer the following question:
`Name the fourth district for joan runnels`

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

CREATE TABLE "current_members" (
  "first_district" text,
  "second_district" text,
  "third_district" text,
  "fourth_district" text,
  "fifth_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fourth district for joan runnels`:
```sql
                SELECT "fourth_district" FROM "current_members" WHERE "second_district"='Joan Runnels';
```
## Task
Generate a SQL query to answer the following question:
`Name the fourth district for beverly bodem`

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

CREATE TABLE "current_members" (
  "first_district" text,
  "second_district" text,
  "third_district" text,
  "fourth_district" text,
  "fifth_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fourth district for beverly bodem`:
```sql
                SELECT "fourth_district" FROM "current_members" WHERE "first_district"='Beverly Bodem';
```
## Task
Generate a SQL query to answer the following question:
`Name the number for fifth district for richard houskamp`

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

CREATE TABLE "current_members" (
  "first_district" text,
  "second_district" text,
  "third_district" text,
  "fourth_district" text,
  "fifth_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number for fifth district for richard houskamp`:
```sql
                SELECT COUNT("fifth_district") FROM "current_members" WHERE "third_district"='Richard Houskamp';
```
## Task
Generate a SQL query to answer the following question:
`Name the fifth district for steve rudoni`

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

CREATE TABLE "current_members" (
  "first_district" text,
  "second_district" text,
  "third_district" text,
  "fourth_district" text,
  "fifth_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fifth district for steve rudoni`:
```sql
                SELECT "fifth_district" FROM "current_members" WHERE "fourth_district"='Steve Rudoni';
```
## Task
Generate a SQL query to answer the following question:
`What was the top ends lost where the ends won 47?`

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

CREATE TABLE "standings" (
  "locale" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the top ends lost where the ends won 47?`:
```sql
                SELECT MAX("ends_lost") FROM "standings" WHERE "ends_won"=47;
```
## Task
Generate a SQL query to answer the following question:
`What was the location when the stolen ends is 12 and shot pct is 77%?`

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

CREATE TABLE "standings" (
  "locale" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location when the stolen ends is 12 and shot pct is 77%?`:
```sql
                SELECT "locale" FROM "standings" WHERE "stolen_ends"=12 AND "shot_pct"='77%';
```
## Task
Generate a SQL query to answer the following question:
`How many stolen ends were there when the locale was Sweden?`

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

CREATE TABLE "standings" (
  "locale" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many stolen ends were there when the locale was Sweden?`:
```sql
                SELECT "stolen_ends" FROM "standings" WHERE "locale"='Sweden';
```
## Task
Generate a SQL query to answer the following question:
`What was the school/club team whose season was in 2012 and were acquired via trade? `

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

CREATE TABLE "s" (
  "name" text,
  "position" text,
  "number" real,
  "school_club_team" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the school/club team whose season was in 2012 and were acquired via trade? `:
```sql
                SELECT "school_club_team" FROM "s" WHERE "season"='2012' AND "acquisition_via"='Trade';
```
## Task
Generate a SQL query to answer the following question:
`Which school/club team has a player named Mark Sanford? `

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

CREATE TABLE "s" (
  "name" text,
  "position" text,
  "number" real,
  "school_club_team" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school/club team has a player named Mark Sanford? `:
```sql
                SELECT "school_club_team" FROM "s" WHERE "name"='Mark Sanford';
```
## Task
Generate a SQL query to answer the following question:
`How many school/club teams have a player named Manuel Luis Quezon? `

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

CREATE TABLE "s" (
  "name" text,
  "position" text,
  "number" real,
  "school_club_team" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many school/club teams have a player named Manuel Luis Quezon? `:
```sql
                SELECT COUNT("number") FROM "s" WHERE "school_club_team"='Manuel Luis Quezon';
```
## Task
Generate a SQL query to answer the following question:
`How many players are listed for the school/club team Washington? `

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

CREATE TABLE "s" (
  "name" text,
  "position" text,
  "number" real,
  "school_club_team" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players are listed for the school/club team Washington? `:
```sql
                SELECT COUNT("name") FROM "s" WHERE "school_club_team"='Washington';
```
## Task
Generate a SQL query to answer the following question:
`How many players with a position are listed for the 2009 season? `

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

CREATE TABLE "s" (
  "name" text,
  "position" text,
  "number" real,
  "school_club_team" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players with a position are listed for the 2009 season? `:
```sql
                SELECT COUNT("position") FROM "s" WHERE "season"='2009';
```
## Task
Generate a SQL query to answer the following question:
`Name the school/club for guard`

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

CREATE TABLE "a" (
  "name" text,
  "position" text,
  "number" real,
  "school_club_team" text,
  "season" real,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the school/club for guard`:
```sql
                SELECT "school_club_team" FROM "a" WHERE "position"='Guard';
```
## Task
Generate a SQL query to answer the following question:
`Name the position for judy-ann ramirez`

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

CREATE TABLE "a" (
  "name" text,
  "position" text,
  "number" real,
  "school_club_team" text,
  "season" real,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for judy-ann ramirez`:
```sql
                SELECT "position" FROM "a" WHERE "name"='judy-ann ramirez';
```
## Task
Generate a SQL query to answer the following question:
`What is the losing bonus for the team with a point difference of -99?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the losing bonus for the team with a point difference of -99?`:
```sql
                SELECT "losing_bonus" FROM "league_table" WHERE "points_difference"='-99';
```
## Task
Generate a SQL query to answer the following question:
`How many games played for teams with 277 points?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games played for teams with 277 points?`:
```sql
                SELECT "played" FROM "league_table" WHERE "points_for"='277';
```
## Task
Generate a SQL query to answer the following question:
`How many games won for teams with 49 tries against?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games won for teams with 49 tries against?`:
```sql
                SELECT "won" FROM "league_table" WHERE "tries_against"='49';
```
## Task
Generate a SQL query to answer the following question:
`How many teams have 62 tries against?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams have 62 tries against?`:
```sql
                SELECT COUNT("points_difference") FROM "league_table" WHERE "tries_against"='62';
```
## Task
Generate a SQL query to answer the following question:
`How many tries for, for club cambrian welfare rfc?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tries for, for club cambrian welfare rfc?`:
```sql
                SELECT "tries_for" FROM "league_table" WHERE "club"='Cambrian Welfare RFC';
```
## Task
Generate a SQL query to answer the following question:
`How many teams have 21 tries for?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams have 21 tries for?`:
```sql
                SELECT COUNT("points_difference") FROM "league_table" WHERE "tries_for"='21';
```
## Task
Generate a SQL query to answer the following question:
`How many chassis used number 34?`

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

CREATE TABLE "entries" (
  "no" real,
  "driver" text,
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many chassis used number 34?`:
```sql
                SELECT COUNT("chassis") FROM "entries" WHERE "no"=34;
```
## Task
Generate a SQL query to answer the following question:
`Who was the constructor of car 22?`

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

CREATE TABLE "entries" (
  "no" real,
  "driver" text,
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the constructor of car 22?`:
```sql
                SELECT "constructor" FROM "entries" WHERE "no"=22;
```
## Task
Generate a SQL query to answer the following question:
`How many cars used number 48?`

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

CREATE TABLE "entries" (
  "no" real,
  "driver" text,
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many cars used number 48?`:
```sql
                SELECT COUNT("engine") FROM "entries" WHERE "no"=48;
```
## Task
Generate a SQL query to answer the following question:
`Who drove car 44?`

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

CREATE TABLE "entries" (
  "no" real,
  "driver" text,
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who drove car 44?`:
```sql
                SELECT "driver" FROM "entries" WHERE "no"=44;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of years where runner-up and championship is us open`

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

CREATE TABLE "mixed_doubles_finals_15_7_8" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of years where runner-up and championship is us open`:
```sql
                SELECT COUNT("year") FROM "mixed_doubles_finals_15_7_8" WHERE "outcome"='Runner-up' AND "championship"='US Open';
```
## Task
Generate a SQL query to answer the following question:
`Name the surfaace where outcome is runner-up and championship is us open`

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

CREATE TABLE "mixed_doubles_finals_15_7_8" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the surfaace where outcome is runner-up and championship is us open`:
```sql
                SELECT "surface" FROM "mixed_doubles_finals_15_7_8" WHERE "outcome"='Runner-up' AND "championship"='US Open';
```
## Task
Generate a SQL query to answer the following question:
`Name the partner for mark woodforde martina navratilova`

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

CREATE TABLE "mixed_doubles_finals_15_7_8" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the partner for mark woodforde martina navratilova`:
```sql
                SELECT "partner" FROM "mixed_doubles_finals_15_7_8" WHERE "opponents"='Mark Woodforde Martina Navratilova';
```
## Task
Generate a SQL query to answer the following question:
`Name the score for rick leach zina garrison`

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

CREATE TABLE "mixed_doubles_finals_15_7_8" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for rick leach zina garrison`:
```sql
                SELECT "score" FROM "mixed_doubles_finals_15_7_8" WHERE "opponents"='Rick Leach Zina Garrison';
```
## Task
Generate a SQL query to answer the following question:
`Name the swimsuit for arizona`

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

CREATE TABLE "semifinal_scores" (
  "state" text,
  "preliminary_average" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "semifinal_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the swimsuit for arizona`:
```sql
                SELECT "swimsuit" FROM "semifinal_scores" WHERE "state"='Arizona';
```
## Task
Generate a SQL query to answer the following question:
`Name the driver for race 2 7`

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

CREATE TABLE "indy_f3_challenge" (
  "pos" real,
  "driver" text,
  "qualifying" real,
  "race_1" text,
  "race_2" text,
  "race_3" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the driver for race 2 7`:
```sql
                SELECT "driver" FROM "indy_f3_challenge" WHERE "race_2"='7';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of qualifiying for race 3 being 3`

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

CREATE TABLE "indy_f3_challenge" (
  "pos" real,
  "driver" text,
  "qualifying" real,
  "race_1" text,
  "race_2" text,
  "race_3" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of qualifiying for race 3 being 3`:
```sql
                SELECT COUNT("qualifying") FROM "indy_f3_challenge" WHERE "race_3"='3';
```
## Task
Generate a SQL query to answer the following question:
`Name the driver for race 2 2 `

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

CREATE TABLE "indy_f3_challenge" (
  "pos" real,
  "driver" text,
  "qualifying" real,
  "race_1" text,
  "race_2" text,
  "race_3" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the driver for race 2 2 `:
```sql
                SELECT "driver" FROM "indy_f3_challenge" WHERE "race_2"='2';
```
## Task
Generate a SQL query to answer the following question:
`Name the race 1 when race 3 is 8`

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

CREATE TABLE "indy_f3_challenge" (
  "pos" real,
  "driver" text,
  "qualifying" real,
  "race_1" text,
  "race_2" text,
  "race_3" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the race 1 when race 3 is 8`:
```sql
                SELECT "race_1" FROM "indy_f3_challenge" WHERE "race_3"='8';
```
## Task
Generate a SQL query to answer the following question:
`Name the race 2 for james winslow`

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

CREATE TABLE "indy_f3_challenge" (
  "pos" real,
  "driver" text,
  "qualifying" real,
  "race_1" text,
  "race_2" text,
  "race_3" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the race 2 for james winslow`:
```sql
                SELECT "race_2" FROM "indy_f3_challenge" WHERE "driver"='James Winslow';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of positions for race 1 being 2`

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

CREATE TABLE "indy_f3_challenge" (
  "pos" real,
  "driver" text,
  "qualifying" real,
  "race_1" text,
  "race_2" text,
  "race_3" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of positions for race 1 being 2`:
```sql
                SELECT COUNT("pos") FROM "indy_f3_challenge" WHERE "race_1"='2';
```
## Task
Generate a SQL query to answer the following question:
`Did the race get reported where the winning team was Newman Wachs racing and the pole belonged to Carl Skerlong`

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

CREATE TABLE "full_series_results" (
  "rd" real,
  "race" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Did the race get reported where the winning team was Newman Wachs racing and the pole belonged to Carl Skerlong`:
```sql
                SELECT "report" FROM "full_series_results" WHERE "pole_position"='Carl Skerlong' AND "winning_team"='Newman Wachs Racing';
```
## Task
Generate a SQL query to answer the following question:
`Did the round 8 race get reported`

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

CREATE TABLE "full_series_results" (
  "rd" real,
  "race" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Did the round 8 race get reported`:
```sql
                SELECT "report" FROM "full_series_results" WHERE "rd"=8;
```
## Task
Generate a SQL query to answer the following question:
`Which race was the winning team mathiasen motorsports and the pole belonged to jonathan bomarito`

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

CREATE TABLE "full_series_results" (
  "rd" real,
  "race" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which race was the winning team mathiasen motorsports and the pole belonged to jonathan bomarito`:
```sql
                SELECT "race" FROM "full_series_results" WHERE "winning_team"='Mathiasen Motorsports' AND "pole_position"='Jonathan Bomarito';
```
## Task
Generate a SQL query to answer the following question:
`how many winners were in round 8`

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

CREATE TABLE "full_series_results" (
  "rd" real,
  "race" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many winners were in round 8`:
```sql
                SELECT COUNT("winning_driver") FROM "full_series_results" WHERE "rd"=8;
```
## Task
Generate a SQL query to answer the following question:
`How many episodes air on Wednesday at 12:00pm?`

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

CREATE TABLE "afternoon" (
  "time" text,
  "12_00_pm" text,
  "01_00_pm" text,
  "02_00_pm" text,
  "03_00_pm" text,
  "04_00_pm" text,
  "05_00_pm" text,
  "05_55_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes air on Wednesday at 12:00pm?`:
```sql
                SELECT COUNT("12_00_pm") FROM "afternoon" WHERE "time"='Wednesday';
```
## Task
Generate a SQL query to answer the following question:
`What are the names of the episodes that airs at 2:00pm?`

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

CREATE TABLE "afternoon" (
  "time" text,
  "12_00_pm" text,
  "01_00_pm" text,
  "02_00_pm" text,
  "03_00_pm" text,
  "04_00_pm" text,
  "05_00_pm" text,
  "05_55_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the names of the episodes that airs at 2:00pm?`:
```sql
                SELECT "02_00_pm" FROM "afternoon";
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the show that airs Friday at 5:55pm?`

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

CREATE TABLE "afternoon" (
  "time" text,
  "12_00_pm" text,
  "01_00_pm" text,
  "02_00_pm" text,
  "03_00_pm" text,
  "04_00_pm" text,
  "05_00_pm" text,
  "05_55_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the show that airs Friday at 5:55pm?`:
```sql
                SELECT "05_55_pm" FROM "afternoon" WHERE "time"='Friday';
```
## Task
Generate a SQL query to answer the following question:
`Name the 10 pm for thursday`

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

CREATE TABLE "night" (
  "time" text,
  "06_00_pm" text,
  "07_00_pm" text,
  "08_00_pm" text,
  "09_00_pm" text,
  "10_00_pm" text,
  "10_30_pm" text,
  "11_00_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 10 pm for thursday`:
```sql
                SELECT "10_00_pm" FROM "night" WHERE "time"='Thursday';
```
## Task
Generate a SQL query to answer the following question:
`Name the 8 pm when time is thursday`

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

CREATE TABLE "night" (
  "time" text,
  "06_00_pm" text,
  "07_00_pm" text,
  "08_00_pm" text,
  "09_00_pm" text,
  "10_00_pm" text,
  "10_30_pm" text,
  "11_00_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 8 pm when time is thursday`:
```sql
                SELECT "08_00_pm" FROM "night" WHERE "time"='Thursday';
```
## Task
Generate a SQL query to answer the following question:
`What channel tv (dt) plays the KPIX station?`

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

CREATE TABLE "television_stations" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_dt" text,
  "years_owned" text,
  "current_affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What channel tv (dt) plays the KPIX station?`:
```sql
                SELECT "channel_tv_dt" FROM "television_stations" WHERE "station"='KPIX';
```