cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What season was played at Safeco Field, against the Boston Red Sox, with a decision of L?`

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

CREATE TABLE "pitchers" (
  "season" text,
  "pitcher" text,
  "decision" text,
  "opponent" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season was played at Safeco Field, against the Boston Red Sox, with a decision of L?`:
```sql
                SELECT "season" FROM "pitchers" WHERE "location"='safeco field' AND "decision"='l' AND "opponent"='boston red sox';
```
## Task
Generate a SQL query to answer the following question:
`What was the decision for the 1983 season for the game played against the New York Yankees?`

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

CREATE TABLE "pitchers" (
  "season" text,
  "pitcher" text,
  "decision" text,
  "opponent" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the decision for the 1983 season for the game played against the New York Yankees?`:
```sql
                SELECT "decision" FROM "pitchers" WHERE "opponent"='new york yankees' AND "season"='1983';
```
## Task
Generate a SQL query to answer the following question:
`what is the encoding when the tracks/side is 80  and sectors/track is 11?`

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

CREATE TABLE "common_floppy_disk_formats_logical_chara" (
  "platform" text,
  "size" text,
  "density" text,
  "bytes_sector" real,
  "sectors_track" text,
  "tracks_side" text,
  "sides" real,
  "capacity" text,
  "encoding" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the encoding when the tracks/side is 80  and sectors/track is 11?`:
```sql
                SELECT "encoding" FROM "common_floppy_disk_formats_logical_chara" WHERE "tracks_side"='80' AND "sectors_track"='11';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest bronze for less than 2 total trophies?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest bronze for less than 2 total trophies?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "total"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which Total has a Finish of t64, and a Year won larger than 2006?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_won" real,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a Finish of t64, and a Year won larger than 2006?`:
```sql
                SELECT MAX("total") FROM "made_the_cut" WHERE "finish"='t64' AND "year_won">2006;
```
## Task
Generate a SQL query to answer the following question:
`Which year won has a Finish of t24, and a Country of england?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_won" real,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year won has a Finish of t24, and a Country of england?`:
```sql
                SELECT AVG("year_won") FROM "made_the_cut" WHERE "finish"='t24' AND "country"='england';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest bronze value for countries with totals over 2, golds of 0, silvers under 1, and ranks over 10?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest bronze value for countries with totals over 2, golds of 0, silvers under 1, and ranks over 10?`:
```sql
                SELECT MIN("bronze") FROM "medals_table" WHERE "total">2 AND "silver"<1 AND "rank">10 AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which school has an enrollment of A and had lost river as their previous conference?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" real,
  "enrollment" text,
  "ihsaa_class" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school has an enrollment of A and had lost river as their previous conference?`:
```sql
                SELECT "school" FROM "membership" WHERE "previous_conference"='lost river' AND "enrollment"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is the average year joined of the 277 county?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" real,
  "enrollment" text,
  "ihsaa_class" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year joined of the 277 county?`:
```sql
                SELECT AVG("year_joined") FROM "membership" WHERE "county"=277;
```
## Task
Generate a SQL query to answer the following question:
`What is the IHSAA class of the county that is less than 228?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" real,
  "enrollment" text,
  "ihsaa_class" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSAA class of the county that is less than 228?`:
```sql
                SELECT "ihsaa_class" FROM "membership" WHERE "county"<228;
```
## Task
Generate a SQL query to answer the following question:
`What is the engine when the transmission was 4-speed automatic, and acceleration 0–100km/h (0–62mph) was 10.4 s?`

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

CREATE TABLE "engineering" (
  "engine" text,
  "production" text,
  "transmission" text,
  "power" text,
  "torque" text,
  "acceleration_0_100km_h_0_62mph" text,
  "top_speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the engine when the transmission was 4-speed automatic, and acceleration 0–100km/h (0–62mph) was 10.4 s?`:
```sql
                SELECT "engine" FROM "engineering" WHERE "transmission"='4-speed automatic' AND "acceleration_0_100km_h_0_62mph"='10.4 s';
```
## Task
Generate a SQL query to answer the following question:
`What is the Power when the acceleration 0–100km/h (0–62mph) is 9.1 s?`

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

CREATE TABLE "engineering" (
  "engine" text,
  "production" text,
  "transmission" text,
  "power" text,
  "torque" text,
  "acceleration_0_100km_h_0_62mph" text,
  "top_speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Power when the acceleration 0–100km/h (0–62mph) is 9.1 s?`:
```sql
                SELECT "power" FROM "engineering" WHERE "acceleration_0_100km_h_0_62mph"='9.1 s';
```
## Task
Generate a SQL query to answer the following question:
`What is the transmission when the engine is 2.0l, and acceleration 0–100km/h (0–62mph) is 10.5 s?`

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

CREATE TABLE "engineering" (
  "engine" text,
  "production" text,
  "transmission" text,
  "power" text,
  "torque" text,
  "acceleration_0_100km_h_0_62mph" text,
  "top_speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transmission when the engine is 2.0l, and acceleration 0–100km/h (0–62mph) is 10.5 s?`:
```sql
                SELECT "transmission" FROM "engineering" WHERE "engine"='2.0l' AND "acceleration_0_100km_h_0_62mph"='10.5 s';
```
## Task
Generate a SQL query to answer the following question:
`What is the production when engine is 2.7l, and acceleration 0–100km/h (0–62mph) is 8.5 s?`

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

CREATE TABLE "engineering" (
  "engine" text,
  "production" text,
  "transmission" text,
  "power" text,
  "torque" text,
  "acceleration_0_100km_h_0_62mph" text,
  "top_speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production when engine is 2.7l, and acceleration 0–100km/h (0–62mph) is 8.5 s?`:
```sql
                SELECT "production" FROM "engineering" WHERE "engine"='2.7l' AND "acceleration_0_100km_h_0_62mph"='8.5 s';
```
## Task
Generate a SQL query to answer the following question:
`What is the transmission when the production was 2002-2005?`

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

CREATE TABLE "engineering" (
  "engine" text,
  "production" text,
  "transmission" text,
  "power" text,
  "torque" text,
  "acceleration_0_100km_h_0_62mph" text,
  "top_speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transmission when the production was 2002-2005?`:
```sql
                SELECT "transmission" FROM "engineering" WHERE "production"='2002-2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the acceleration 0–100km/h (0–62mph) when the transmission is 5-speed manual?`

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

CREATE TABLE "engineering" (
  "engine" text,
  "production" text,
  "transmission" text,
  "power" text,
  "torque" text,
  "acceleration_0_100km_h_0_62mph" text,
  "top_speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the acceleration 0–100km/h (0–62mph) when the transmission is 5-speed manual?`:
```sql
                SELECT "acceleration_0_100km_h_0_62mph" FROM "engineering" WHERE "transmission"='5-speed manual';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest year for the Bethesda Game Studios Developer?`

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

CREATE TABLE "giant_bomb" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest year for the Bethesda Game Studios Developer?`:
```sql
                SELECT MAX("year") FROM "giant_bomb" WHERE "developer_s"='bethesda game studios';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest year for the game called The Elder Scrolls v: Skyrim?`

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

CREATE TABLE "giant_bomb" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest year for the game called The Elder Scrolls v: Skyrim?`:
```sql
                SELECT MIN("year") FROM "giant_bomb" WHERE "game"='the elder scrolls v: skyrim';
```
## Task
Generate a SQL query to answer the following question:
`What game was developed by Naughty Dog?`

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

CREATE TABLE "giant_bomb" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game was developed by Naughty Dog?`:
```sql
                SELECT "genre" FROM "giant_bomb" WHERE "developer_s"='naughty dog';
```
## Task
Generate a SQL query to answer the following question:
`What is the imed/avicenna listed for a medical school offshore in saint kitts and nevis which was established before 2000 and will give you an MD?`

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

CREATE TABLE "current_medical_schools_in_the_caribbean" (
  "country_territory" text,
  "established" real,
  "degree" text,
  "regional_offshore" text,
  "imed_avicenna_listed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the imed/avicenna listed for a medical school offshore in saint kitts and nevis which was established before 2000 and will give you an MD?`:
```sql
                SELECT "imed_avicenna_listed" FROM "current_medical_schools_in_the_caribbean" WHERE "regional_offshore"='offshore' AND "country_territory"='saint kitts and nevis' AND "degree"='md' AND "established"<2000;
```
## Task
Generate a SQL query to answer the following question:
`What country has a medical school established in 1969 with both an IMED and avicenna?`

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

CREATE TABLE "current_medical_schools_in_the_caribbean" (
  "country_territory" text,
  "established" real,
  "degree" text,
  "regional_offshore" text,
  "imed_avicenna_listed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a medical school established in 1969 with both an IMED and avicenna?`:
```sql
                SELECT "country_territory" FROM "current_medical_schools_in_the_caribbean" WHERE "imed_avicenna_listed"='both' AND "established"=1969;
```
## Task
Generate a SQL query to answer the following question:
`What is the average year that the medical school in dominican republic was established?`

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

CREATE TABLE "current_medical_schools_in_the_caribbean" (
  "country_territory" text,
  "established" real,
  "degree" text,
  "regional_offshore" text,
  "imed_avicenna_listed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year that the medical school in dominican republic was established?`:
```sql
                SELECT AVG("established") FROM "current_medical_schools_in_the_caribbean" WHERE "country_territory"='dominican republic';
```
## Task
Generate a SQL query to answer the following question:
`What are the most wins with byes more than 0 and 1637 against?`

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

CREATE TABLE "2010_ladder" (
  "sunrayia_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the most wins with byes more than 0 and 1637 against?`:
```sql
                SELECT MAX("wins") FROM "2010_ladder" WHERE "against"=1637 AND "byes">0;
```
## Task
Generate a SQL query to answer the following question:
`What are the total byes for the Red Cliffs with more than 4 losses and more than 2422 against?`

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

CREATE TABLE "2010_ladder" (
  "sunrayia_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the total byes for the Red Cliffs with more than 4 losses and more than 2422 against?`:
```sql
                SELECT COUNT("byes") FROM "2010_ladder" WHERE "losses">4 AND "sunrayia_fl"='red cliffs' AND "against">2422;
```
## Task
Generate a SQL query to answer the following question:
`What's the total wins for Wentworth with less than 0 byes?`

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

CREATE TABLE "2010_ladder" (
  "sunrayia_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total wins for Wentworth with less than 0 byes?`:
```sql
                SELECT COUNT("wins") FROM "2010_ladder" WHERE "sunrayia_fl"='wentworth' AND "byes"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which venue had an opponent of Sunderland and a result of a 1-1 draw?`

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

CREATE TABLE "fa_premier_league" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue had an opponent of Sunderland and a result of a 1-1 draw?`:
```sql
                SELECT "venue" FROM "fa_premier_league" WHERE "opponent"='sunderland' AND "result"='1-1';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of attendance values for ties having an opponent of Middlesbrough and result of 3-1?`

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

CREATE TABLE "fa_premier_league" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of attendance values for ties having an opponent of Middlesbrough and result of 3-1?`:
```sql
                SELECT COUNT("attendance") FROM "fa_premier_league" WHERE "opponent"='middlesbrough' AND "result"='3-1';
```
## Task
Generate a SQL query to answer the following question:
`Which venue ended in a 3-0 result?`

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

CREATE TABLE "fa_premier_league" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue ended in a 3-0 result?`:
```sql
                SELECT "venue" FROM "fa_premier_league" WHERE "result"='3-0';
```
## Task
Generate a SQL query to answer the following question:
`Where was a 0-5 game played?`

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

CREATE TABLE "football_league_first_division" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where was a 0-5 game played?`:
```sql
                SELECT "venue" FROM "football_league_first_division" WHERE "result"='0-5';
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank of a player with fewer than 3 matches?`

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

CREATE TABLE "season" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "matches" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank of a player with fewer than 3 matches?`:
```sql
                SELECT AVG("rank") FROM "season" WHERE "matches"<3;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on April 21?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on April 21?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='april 21';
```
## Task
Generate a SQL query to answer the following question:
`What's the record on April 12 when the location was The Omni?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the record on April 12 when the location was The Omni?`:
```sql
                SELECT "record" FROM "game_log" WHERE "location_attendance"='the omni' AND "date"='april 12';
```
## Task
Generate a SQL query to answer the following question:
`What date was the score "score"?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the score "score"?`:
```sql
                SELECT "date" FROM "game_log" WHERE "score"='score';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on April 12?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on April 12?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='april 12';
```
## Task
Generate a SQL query to answer the following question:
`What's the score of game 77?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score of game 77?`:
```sql
                SELECT "score" FROM "game_log" WHERE "game"='77';
```
## Task
Generate a SQL query to answer the following question:
`What date had a record of 43-34?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date had a record of 43-34?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='43-34';
```
## Task
Generate a SQL query to answer the following question:
`What Artist had a Percentage of 17.14%?`

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

CREATE TABLE "results_of_heat_2" (
  "draw" real,
  "artist" text,
  "song" text,
  "percentage" text,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Artist had a Percentage of 17.14%?`:
```sql
                SELECT "artist" FROM "results_of_heat_2" WHERE "percentage"='17.14%';
```
## Task
Generate a SQL query to answer the following question:
`What Percentage has a Place of 5?`

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

CREATE TABLE "results_of_heat_2" (
  "draw" real,
  "artist" text,
  "song" text,
  "percentage" text,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Percentage has a Place of 5?`:
```sql
                SELECT "percentage" FROM "results_of_heat_2" WHERE "place"=5;
```
## Task
Generate a SQL query to answer the following question:
`Which BR number has an LMS number over 14768?`

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

CREATE TABLE "references" (
  "hr_number" real,
  "name" text,
  "lms_number" real,
  "br_number" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which BR number has an LMS number over 14768?`:
```sql
                SELECT "br_number" FROM "references" WHERE "lms_number">14768;
```
## Task
Generate a SQL query to answer the following question:
`what is the frequency when the city of license is belleville?`

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

CREATE TABLE "s_rebroadcaster_of_cjbc" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the frequency when the city of license is belleville?`:
```sql
                SELECT "frequency" FROM "s_rebroadcaster_of_cjbc" WHERE "city_of_license"='belleville';
```
## Task
Generate a SQL query to answer the following question:
`what is the class when the power is 22500 watts?`

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

CREATE TABLE "s_rebroadcaster_of_cjbc" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the class when the power is 22500 watts?`:
```sql
                SELECT "class" FROM "s_rebroadcaster_of_cjbc" WHERE "power"='22500 watts';
```
## Task
Generate a SQL query to answer the following question:
`what is the class when the identifier is cjbc-1-fm?`

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

CREATE TABLE "s_rebroadcaster_of_cjbc" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the class when the identifier is cjbc-1-fm?`:
```sql
                SELECT "class" FROM "s_rebroadcaster_of_cjbc" WHERE "identifier"='cjbc-1-fm';
```
## Task
Generate a SQL query to answer the following question:
`what is the recnet when the city of license is peterborough?`

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

CREATE TABLE "s_rebroadcaster_of_cjbc" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the recnet when the city of license is peterborough?`:
```sql
                SELECT "rec_net" FROM "s_rebroadcaster_of_cjbc" WHERE "city_of_license"='peterborough';
```
## Task
Generate a SQL query to answer the following question:
`what is the power when the city of license is belleville?`

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

CREATE TABLE "s_rebroadcaster_of_cjbc" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the power when the city of license is belleville?`:
```sql
                SELECT "power" FROM "s_rebroadcaster_of_cjbc" WHERE "city_of_license"='belleville';
```
## Task
Generate a SQL query to answer the following question:
`what is the identifier when the power is 22500 watts?`

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

CREATE TABLE "s_rebroadcaster_of_cjbc" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the identifier when the power is 22500 watts?`:
```sql
                SELECT "identifier" FROM "s_rebroadcaster_of_cjbc" WHERE "power"='22500 watts';
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponents in the game with a Date of nov. 25?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "dolphins_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponents in the game with a Date of nov. 25?`:
```sql
                SELECT MIN("opponents") FROM "schedule" WHERE "date"='nov. 25';
```
## Task
Generate a SQL query to answer the following question:
`How many games does leandro love have?`

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

CREATE TABLE "all_time_records" (
  "name" text,
  "games" text,
  "a_league" text,
  "finals" text,
  "goals" real,
  "assists" real,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games does leandro love have?`:
```sql
                SELECT "games" FROM "all_time_records" WHERE "name"='leandro love';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of goals joe keenan, who has more than 1 assists, had in 2007/08?`

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

CREATE TABLE "all_time_records" (
  "name" text,
  "games" text,
  "a_league" text,
  "finals" text,
  "goals" real,
  "assists" real,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of goals joe keenan, who has more than 1 assists, had in 2007/08?`:
```sql
                SELECT MIN("goals") FROM "all_time_records" WHERE "years"='2007/08' AND "name"='joe keenan' AND "assists">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of goals of the player with 9 (0) games and less than 0 assists?`

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

CREATE TABLE "all_time_records" (
  "name" text,
  "games" text,
  "a_league" text,
  "finals" text,
  "goals" real,
  "assists" real,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of goals of the player with 9 (0) games and less than 0 assists?`:
```sql
                SELECT MIN("goals") FROM "all_time_records" WHERE "games"='9 (0)' AND "assists"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many finals had more than 0 goals and 8 assists?`

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

CREATE TABLE "all_time_records" (
  "name" text,
  "games" text,
  "a_league" text,
  "finals" text,
  "goals" real,
  "assists" real,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many finals had more than 0 goals and 8 assists?`:
```sql
                SELECT "finals" FROM "all_time_records" WHERE "goals">0 AND "assists"=8;
```
## Task
Generate a SQL query to answer the following question:
`When the nationality is united states, and the time is 58.06, and the heat is larger than 5 what is the lowest rank?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the nationality is united states, and the time is 58.06, and the heat is larger than 5 what is the lowest rank?`:
```sql
                SELECT MIN("rank") FROM "heats" WHERE "nationality"='united states' AND "time"='58.06' AND "heat">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank when the lane is larger than 6, and the heat is 3, and the nationality is colombia?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank when the lane is larger than 6, and the heat is 3, and the nationality is colombia?`:
```sql
                SELECT MAX("rank") FROM "heats" WHERE "lane">6 AND "heat"=3 AND "nationality"='colombia';
```
## Task
Generate a SQL query to answer the following question:
`What is the total lane for a heat larger than 7?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total lane for a heat larger than 7?`:
```sql
                SELECT COUNT("lane") FROM "heats" WHERE "heat">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest heat when the nationality is poland, and the lane is smaller than 6?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest heat when the nationality is poland, and the lane is smaller than 6?`:
```sql
                SELECT MAX("heat") FROM "heats" WHERE "nationality"='poland' AND "lane"<6;
```
## Task
Generate a SQL query to answer the following question:
`Which Lead Pitch/mm has a Body Width/mm larger than 10.16?`

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

CREATE TABLE "type_ii" (
  "part_number" text,
  "pins" text,
  "body_width_mm" real,
  "body_length_mm" real,
  "lead_pitch_mm" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lead Pitch/mm has a Body Width/mm larger than 10.16?`:
```sql
                SELECT SUM("lead_pitch_mm") FROM "type_ii" WHERE "body_width_mm">10.16;
```
## Task
Generate a SQL query to answer the following question:
`How much Body Width/mm has a Part Number of tsop40/44, and a Body Length/mm smaller than 18.42?`

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

CREATE TABLE "type_ii" (
  "part_number" text,
  "pins" text,
  "body_width_mm" real,
  "body_length_mm" real,
  "lead_pitch_mm" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Body Width/mm has a Part Number of tsop40/44, and a Body Length/mm smaller than 18.42?`:
```sql
                SELECT SUM("body_width_mm") FROM "type_ii" WHERE "part_number"='tsop40/44' AND "body_length_mm"<18.42;
```
## Task
Generate a SQL query to answer the following question:
`Which Lead Pitch/mm has a Part Number of tsop24/28?`

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

CREATE TABLE "type_ii" (
  "part_number" text,
  "pins" text,
  "body_width_mm" real,
  "body_length_mm" real,
  "lead_pitch_mm" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lead Pitch/mm has a Part Number of tsop24/28?`:
```sql
                SELECT MAX("lead_pitch_mm") FROM "type_ii" WHERE "part_number"='tsop24/28';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of silver when gold is 1 and bronze larger than 0?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest amount of silver when gold is 1 and bronze larger than 0?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "gold"=1 AND "bronze">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the Time of the Athlete with a Reaction time of 0.164?`

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

CREATE TABLE "final" (
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "reaction_time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time of the Athlete with a Reaction time of 0.164?`:
```sql
                SELECT SUM("time") FROM "final" WHERE "reaction_time"=0.164;
```
## Task
Generate a SQL query to answer the following question:
`What is the Time of the Athlete in Lane 4?`

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

CREATE TABLE "final" (
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "reaction_time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time of the Athlete in Lane 4?`:
```sql
                SELECT COUNT("time") FROM "final" WHERE "lane"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the Lane of the Athlete from Great Britain with a Reaction time of less than 0.218 and a Time larger than 44.74?`

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

CREATE TABLE "final" (
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "reaction_time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lane of the Athlete from Great Britain with a Reaction time of less than 0.218 and a Time larger than 44.74?`:
```sql
                SELECT SUM("lane") FROM "final" WHERE "reaction_time"<0.218 AND "time">44.74 AND "nationality"='great britain';
```
## Task
Generate a SQL query to answer the following question:
`What is the time in week 3?`

### 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,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time in week 3?`:
```sql
                SELECT "tv_time" FROM "schedule" WHERE "week"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the week with attendance of 73,572?`

### 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,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week with attendance of 73,572?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "attendance"='73,572';
```
## Task
Generate a SQL query to answer the following question:
`What week was the opponent the San Diego Chargers?`

### 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,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What week was the opponent the San Diego Chargers?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "opponent"='san diego chargers';
```
## Task
Generate a SQL query to answer the following question:
`What week was the result of l 38–21?`

### 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,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What week was the result of l 38–21?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "result"='l 38–21';
```
## Task
Generate a SQL query to answer the following question:
`What's the total of Rank for the County of Galway and has a Total that's larger than 13?`

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

CREATE TABLE "single_game" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total of Rank for the County of Galway and has a Total that's larger than 13?`:
```sql
                SELECT SUM("rank") FROM "single_game" WHERE "county"='galway' AND "total">13;
```
## Task
Generate a SQL query to answer the following question:
`What County has an Opposition of Antrim and the Player Bernie Forde?`

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

CREATE TABLE "single_game" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What County has an Opposition of Antrim and the Player Bernie Forde?`:
```sql
                SELECT "county" FROM "single_game" WHERE "opposition"='antrim' AND "player"='bernie forde';
```
## Task
Generate a SQL query to answer the following question:
`What's the highest Rank for the County of Offaly, the Player of Mark Corrigan, and the Total that is smaller than 8?`

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

CREATE TABLE "single_game" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest Rank for the County of Offaly, the Player of Mark Corrigan, and the Total that is smaller than 8?`:
```sql
                SELECT MAX("rank") FROM "single_game" WHERE "county"='offaly' AND "player"='mark corrigan' AND "total"<8;
```
## Task
Generate a SQL query to answer the following question:
`Which Channel has an Opponent of washington redskins?`

### 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,
  "channel" text,
  "stadium" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Channel has an Opponent of washington redskins?`:
```sql
                SELECT "channel" FROM "schedule" WHERE "opponent"='washington redskins';
```
## Task
Generate a SQL query to answer the following question:
`Which attendance has a Channel of espn, and a Date of september 5, 2002?`

### 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,
  "channel" text,
  "stadium" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which attendance has a Channel of espn, and a Date of september 5, 2002?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "channel"='espn' AND "date"='september 5, 2002';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Result of w 27–20?`

### 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,
  "channel" text,
  "stadium" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Result of w 27–20?`:
```sql
                SELECT "date" FROM "schedule" WHERE "result"='w 27–20';
```
## Task
Generate a SQL query to answer the following question:
`Which Week has an Attendance of 63,447?`

### 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,
  "channel" text,
  "stadium" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Week has an Attendance of 63,447?`:
```sql
                SELECT "week" FROM "schedule" WHERE "attendance"='63,447';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Stadium of giants stadium, and a Week smaller than 13, and an Opponent of seattle seahawks?`

### 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,
  "channel" text,
  "stadium" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Stadium of giants stadium, and a Week smaller than 13, and an Opponent of seattle seahawks?`:
```sql
                SELECT "date" FROM "schedule" WHERE "stadium"='giants stadium' AND "week"<13 AND "opponent"='seattle seahawks';
```
## Task
Generate a SQL query to answer the following question:
`Who was the athlete with react of 0.185?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the athlete with react of 0.185?`:
```sql
                SELECT "athlete" FROM "heat_2" WHERE "react"=0.185;
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest react of Zimbabwe, ranked after 1 in a lane after 3 and a time less than 20.3?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest react of Zimbabwe, ranked after 1 in a lane after 3 and a time less than 20.3?`:
```sql
                SELECT MIN("react") FROM "heat_2" WHERE "lane">3 AND "time"<20.3 AND "nationality"='zimbabwe' AND "rank">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of white (Hispanic/Non-Hispanic) having a black (Hispanic/Non-Hispanic) of 9.9 and Hispanic under 99.5?`

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

CREATE TABLE "racial_composition" (
  "municipality_2010" text,
  "white_both_hispanic_and_non_hispanic" real,
  "black_both_hispanic_and_non_hispanic" real,
  "amerindian_both_hispanic_and_non_hispanic" real,
  "n_asia_both_hispanic_and_non_hispanic" real,
  "multiracial_both_hispanic_and_non_hispanic" real,
  "hispanic_of_any_race" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of white (Hispanic/Non-Hispanic) having a black (Hispanic/Non-Hispanic) of 9.9 and Hispanic under 99.5?`:
```sql
                SELECT COUNT("white_both_hispanic_and_non_hispanic") FROM "racial_composition" WHERE "black_both_hispanic_and_non_hispanic"=9.9 AND "hispanic_of_any_race"<99.5;
```