cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the average grid for the +2.2 secs time/retired?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average grid for the +2.2 secs time/retired?`:
```sql
                SELECT AVG("grid") FROM "race" WHERE "time_retired"='+2.2 secs';
```
## Task
Generate a SQL query to answer the following question:
`Which Facility ID has a City of license of springfield, ma, and a ERP / Power W smaller than 230?`

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

CREATE TABLE "stations" (
  "call_sign" text,
  "frequency" text,
  "city_of_license" text,
  "facility_id" real,
  "erp_power_w" real,
  "height_m_ft" text,
  "class" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Facility ID has a City of license of springfield, ma, and a ERP / Power W smaller than 230?`:
```sql
                SELECT MAX("facility_id") FROM "stations" WHERE "city_of_license"='springfield, ma' AND "erp_power_w"<230;
```
## Task
Generate a SQL query to answer the following question:
`Which Frequency has a Facility ID of 13598?`

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

CREATE TABLE "stations" (
  "call_sign" text,
  "frequency" text,
  "city_of_license" text,
  "facility_id" real,
  "erp_power_w" real,
  "height_m_ft" text,
  "class" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Frequency has a Facility ID of 13598?`:
```sql
                SELECT "frequency" FROM "stations" WHERE "facility_id"=13598;
```
## Task
Generate a SQL query to answer the following question:
`WHich Facility ID has a Call sign of wnpr?`

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

CREATE TABLE "stations" (
  "call_sign" text,
  "frequency" text,
  "city_of_license" text,
  "facility_id" real,
  "erp_power_w" real,
  "height_m_ft" text,
  "class" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Facility ID has a Call sign of wnpr?`:
```sql
                SELECT AVG("facility_id") FROM "stations" WHERE "call_sign"='wnpr';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank that has a 1st less than 132.5 and a Fin nationality.`

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

CREATE TABLE "bischofshofen_6_january" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_fht_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank that has a 1st less than 132.5 and a Fin nationality.`:
```sql
                SELECT "overall_wc_points_rank" FROM "bischofshofen_6_january" WHERE "1st_m"<132.5 AND "nationality"='fin';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of points that has a 1st of 121.5?`

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

CREATE TABLE "bischofshofen_6_january" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_fht_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of points that has a 1st of 121.5?`:
```sql
                SELECT MAX("points") FROM "bischofshofen_6_january" WHERE "1st_m"=121.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of 1sts that Martin Schmitt had where he less than 235.7 points?`

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

CREATE TABLE "bischofshofen_6_january" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_fht_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of 1sts that Martin Schmitt had where he less than 235.7 points?`:
```sql
                SELECT COUNT("1st_m") FROM "bischofshofen_6_january" WHERE "name"='martin schmitt' AND "points"<235.7;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of attendance for games where buffalo was the home team?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of attendance for games where buffalo was the home team?`:
```sql
                SELECT COUNT("attendance") FROM "playoffs" WHERE "home"='buffalo';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game on April 28 where Buffalo were the visiting team?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game on April 28 where Buffalo were the visiting team?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "visitor"='buffalo' AND "date"='april 28';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game where the visiting team was philadelphia?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game where the visiting team was philadelphia?`:
```sql
                SELECT "date" FROM "playoffs" WHERE "visitor"='philadelphia';
```
## Task
Generate a SQL query to answer the following question:
`Who got the gold in seoul before 2002?`

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

CREATE TABLE "individual" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who got the gold in seoul before 2002?`:
```sql
                SELECT "gold" FROM "individual" WHERE "year"<2002 AND "location"='seoul';
```
## Task
Generate a SQL query to answer the following question:
`Where did sohn bong-gak win silver?`

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

CREATE TABLE "individual" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did sohn bong-gak win silver?`:
```sql
                SELECT "location" FROM "individual" WHERE "silver"='sohn bong-gak';
```
## Task
Generate a SQL query to answer the following question:
`Who won the bronze when jin kanno won the gold?`

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

CREATE TABLE "individual" (
  "year" real,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the bronze when jin kanno won the gold?`:
```sql
                SELECT "bronze" FROM "individual" WHERE "gold"='jin kanno';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has an Outcome of runner-up, and a Tournament of johannesburg?`

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

CREATE TABLE "singles_30_15_15" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has an Outcome of runner-up, and a Tournament of johannesburg?`:
```sql
                SELECT "score" FROM "singles_30_15_15" WHERE "outcome"='runner-up' AND "tournament"='johannesburg';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has an Opponent of kerry melville reid, and a Score of 6–3, 2–6, 3–6?`

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

CREATE TABLE "singles_30_15_15" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has an Opponent of kerry melville reid, and a Score of 6–3, 2–6, 3–6?`:
```sql
                SELECT "surface" FROM "singles_30_15_15" WHERE "opponent"='kerry melville reid' AND "score"='6–3, 2–6, 3–6';
```
## Task
Generate a SQL query to answer the following question:
`Which Outcome has an Opponent of wendy turnbull, and a Surface of grass?`

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

CREATE TABLE "singles_30_15_15" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Outcome has an Opponent of wendy turnbull, and a Surface of grass?`:
```sql
                SELECT "outcome" FROM "singles_30_15_15" WHERE "opponent"='wendy turnbull' AND "surface"='grass';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a Date of 22 january 1979?`

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

CREATE TABLE "singles_30_15_15" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has a Date of 22 january 1979?`:
```sql
                SELECT "tournament" FROM "singles_30_15_15" WHERE "date"='22 january 1979';
```
## Task
Generate a SQL query to answer the following question:
`Which Outcome has a Score of 6–4, 2–6, 6–3?`

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

CREATE TABLE "singles_30_15_15" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Outcome has a Score of 6–4, 2–6, 6–3?`:
```sql
                SELECT "outcome" FROM "singles_30_15_15" WHERE "score"='6–4, 2–6, 6–3';
```
## Task
Generate a SQL query to answer the following question:
`Which nation has total medals under 63, less than 2 silver, more than 2 bronze, and a rank of 8?`

### 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,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which nation has total medals under 63, less than 2 silver, more than 2 bronze, and a rank of 8?`:
```sql
                SELECT "nation" FROM "medal_table" WHERE "total"<63 AND "silver"<2 AND "bronze">2 AND "rank"='8';
```
## Task
Generate a SQL query to answer the following question:
`How many golds have bronze values of 4 and silver values over 2?`

### 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,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds have bronze values of 4 and silver values over 2?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "bronze"=4 AND "silver">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of silver values that have bronze values under 4, golds over 2, and a rank of 3?`

### 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,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of silver values that have bronze values under 4, golds over 2, and a rank of 3?`:
```sql
                SELECT SUM("silver") FROM "medal_table" WHERE "bronze"<4 AND "rank"='3' AND "gold">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of gold values that have bronze values over 0 and totals under 2?`

### 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,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of gold values that have bronze values over 0 and totals under 2?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "bronze">0 AND "total"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest gold value that has a total over 15 and bronze values under 31?`

### 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,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest gold value that has a total over 15 and bronze values under 31?`:
```sql
                SELECT MIN("gold") FROM "medal_table" WHERE "total">15 AND "bronze"<31;
```
## Task
Generate a SQL query to answer the following question:
`What is the Equatorial diameter of the Body: Mars?`

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

CREATE TABLE "other_celestial_bodies" (
  "body" text,
  "equatorial_diameter" text,
  "polar_diameter" text,
  "equatorial_bulge" text,
  "flattening_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Equatorial diameter of the Body: Mars?`:
```sql
                SELECT "equatorial_diameter" FROM "other_celestial_bodies" WHERE "body"='mars';
```
## Task
Generate a SQL query to answer the following question:
`What is the Equatorial diameter of the Body: ceres?`

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

CREATE TABLE "other_celestial_bodies" (
  "body" text,
  "equatorial_diameter" text,
  "polar_diameter" text,
  "equatorial_bulge" text,
  "flattening_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Equatorial diameter of the Body: ceres?`:
```sql
                SELECT "equatorial_diameter" FROM "other_celestial_bodies" WHERE "body"='ceres';
```
## Task
Generate a SQL query to answer the following question:
`What is the Flattening ratio associated with the Equatorial diameter of 49,528km?`

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

CREATE TABLE "other_celestial_bodies" (
  "body" text,
  "equatorial_diameter" text,
  "polar_diameter" text,
  "equatorial_bulge" text,
  "flattening_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Flattening ratio associated with the Equatorial diameter of 49,528km?`:
```sql
                SELECT "flattening_ratio" FROM "other_celestial_bodies" WHERE "equatorial_diameter"='49,528km';
```
## Task
Generate a SQL query to answer the following question:
`What is the Equatorial bulge of the Body: Earth?`

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

CREATE TABLE "other_celestial_bodies" (
  "body" text,
  "equatorial_diameter" text,
  "polar_diameter" text,
  "equatorial_bulge" text,
  "flattening_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Equatorial bulge of the Body: Earth?`:
```sql
                SELECT "equatorial_bulge" FROM "other_celestial_bodies" WHERE "body"='earth';
```
## Task
Generate a SQL query to answer the following question:
`What is the Flattening ratio associated with the Equatorial diameter of 120,536km?`

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

CREATE TABLE "other_celestial_bodies" (
  "body" text,
  "equatorial_diameter" text,
  "polar_diameter" text,
  "equatorial_bulge" text,
  "flattening_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Flattening ratio associated with the Equatorial diameter of 120,536km?`:
```sql
                SELECT "flattening_ratio" FROM "other_celestial_bodies" WHERE "equatorial_diameter"='120,536km';
```
## Task
Generate a SQL query to answer the following question:
`What is the Flattening ratio associated with the Equatorial diameter of 12,756.28km?`

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

CREATE TABLE "other_celestial_bodies" (
  "body" text,
  "equatorial_diameter" text,
  "polar_diameter" text,
  "equatorial_bulge" text,
  "flattening_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Flattening ratio associated with the Equatorial diameter of 12,756.28km?`:
```sql
                SELECT "flattening_ratio" FROM "other_celestial_bodies" WHERE "equatorial_diameter"='12,756.28km';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Yards with an average of less than 4 and the long is 12 with less than 29 attempts?`

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

CREATE TABLE "rushing" (
  "player" text,
  "attempts" real,
  "yards" real,
  "average" real,
  "long" real,
  "touchdowns" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Yards with an average of less than 4 and the long is 12 with less than 29 attempts?`:
```sql
                SELECT AVG("yards") FROM "rushing" WHERE "average"<4 AND "long"=12 AND "attempts"<29;
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of yards when the average is less than 2.6?`

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

CREATE TABLE "rushing" (
  "player" text,
  "attempts" real,
  "yards" real,
  "average" real,
  "long" real,
  "touchdowns" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of yards when the average is less than 2.6?`:
```sql
                SELECT MIN("yards") FROM "rushing" WHERE "average"<2.6;
```
## Task
Generate a SQL query to answer the following question:
`What is the lease amount of touchdowns with 1318 yards?`

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

CREATE TABLE "rushing" (
  "player" text,
  "attempts" real,
  "yards" real,
  "average" real,
  "long" real,
  "touchdowns" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lease amount of touchdowns with 1318 yards?`:
```sql
                SELECT MIN("touchdowns") FROM "rushing" WHERE "yards"=1318;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of touchdowns with the average is less than 2.6?`

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

CREATE TABLE "rushing" (
  "player" text,
  "attempts" real,
  "yards" real,
  "average" real,
  "long" real,
  "touchdowns" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of touchdowns with the average is less than 2.6?`:
```sql
                SELECT COUNT("touchdowns") FROM "rushing" WHERE "average"<2.6;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number for long when there are 19 attempts?`

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

CREATE TABLE "rushing" (
  "player" text,
  "attempts" real,
  "yards" real,
  "average" real,
  "long" real,
  "touchdowns" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number for long when there are 19 attempts?`:
```sql
                SELECT COUNT("long") FROM "rushing" WHERE "attempts"=19;
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory for Olazabal in the German Masters?`

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

CREATE TABLE "european_tour_wins_23" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory for Olazabal in the German Masters?`:
```sql
                SELECT "margin_of_victory" FROM "european_tour_wins_23" WHERE "tournament"='german masters';
```
## Task
Generate a SQL query to answer the following question:
`What was Olazabal's winning score in the event in which Phillip Price finished 2nd?`

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

CREATE TABLE "european_tour_wins_23" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Olazabal's winning score in the event in which Phillip Price finished 2nd?`:
```sql
                SELECT "winning_score" FROM "european_tour_wins_23" WHERE "runner_s_up"='phillip price';
```
## Task
Generate a SQL query to answer the following question:
`What was Olazabal's winning score in the German Masters?`

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

CREATE TABLE "european_tour_wins_23" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Olazabal's winning score in the German Masters?`:
```sql
                SELECT "winning_score" FROM "european_tour_wins_23" WHERE "tournament"='german masters';
```
## Task
Generate a SQL query to answer the following question:
`What was Olazabal's margin of victory int he Ebel European Masters Swiss Open?`

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

CREATE TABLE "european_tour_wins_23" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Olazabal's margin of victory int he Ebel European Masters Swiss Open?`:
```sql
                SELECT "margin_of_victory" FROM "european_tour_wins_23" WHERE "tournament"='ebel european masters swiss open';
```
## Task
Generate a SQL query to answer the following question:
`Which Series Ep has a Netflix of s08e18?`

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

CREATE TABLE "season_16_2010_2011" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Series Ep has a Netflix of s08e18?`:
```sql
                SELECT "series_ep" FROM "season_16_2010_2011" WHERE "netflix"='s08e18';
```
## Task
Generate a SQL query to answer the following question:
`Which Segment B has a Segment D of stone wool insulation?`

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

CREATE TABLE "season_16_2010_2011" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Segment B has a Segment D of stone wool insulation?`:
```sql
                SELECT "segment_b" FROM "season_16_2010_2011" WHERE "segment_d"='stone wool insulation';
```
## Task
Generate a SQL query to answer the following question:
`Which Segment A has a Segment C of poster restoration?`

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

CREATE TABLE "season_16_2010_2011" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Segment A has a Segment C of poster restoration?`:
```sql
                SELECT "segment_a" FROM "season_16_2010_2011" WHERE "segment_c"='poster restoration';
```
## Task
Generate a SQL query to answer the following question:
`Which Segment C has a Segment B of fish food?`

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

CREATE TABLE "season_16_2010_2011" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Segment C has a Segment B of fish food?`:
```sql
                SELECT "segment_c" FROM "season_16_2010_2011" WHERE "segment_b"='fish food';
```
## Task
Generate a SQL query to answer the following question:
`Which Segment C has a Netflix of s08e16?`

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

CREATE TABLE "season_16_2010_2011" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Segment C has a Netflix of s08e16?`:
```sql
                SELECT "segment_c" FROM "season_16_2010_2011" WHERE "netflix"='s08e16';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the competition that had Peterborough Phantoms as an opponent and a date of 2?`

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

CREATE TABLE "december" (
  "date" real,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the competition that had Peterborough Phantoms as an opponent and a date of 2?`:
```sql
                SELECT "competition" FROM "december" WHERE "opponent"='peterborough phantoms' AND "date"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the Tally in Kerry County?`

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

CREATE TABLE "single_game" (
  "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 Tally in Kerry County?`:
```sql
                SELECT "tally" FROM "single_game" WHERE "county"='kerry';
```
## Task
Generate a SQL query to answer the following question:
`With a Total of less than 29, what is Ian Ryan's most Matches?`

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

CREATE TABLE "single_game" (
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "matches" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a Total of less than 29, what is Ian Ryan's most Matches?`:
```sql
                SELECT MAX("matches") FROM "single_game" WHERE "player"='ian ryan' AND "total"<29;
```
## Task
Generate a SQL query to answer the following question:
`Which LEMA/SUBLEMA that has Votes smaller than 218656, and a Ch of Deputies of 0?`

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

CREATE TABLE "results" (
  "lema_sublema" text,
  "candidates" text,
  "votes" real,
  "ch_of_senators" text,
  "ch_of_deputies" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which LEMA/SUBLEMA that has Votes smaller than 218656, and a Ch of Deputies of 0?`:
```sql
                SELECT "lema_sublema" FROM "results" WHERE "votes"<218656 AND "ch_of_deputies"='0';
```
## Task
Generate a SQL query to answer the following question:
`Which LEMA/SUBLEMA has a Ch of Senators of 2?`

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

CREATE TABLE "results" (
  "lema_sublema" text,
  "candidates" text,
  "votes" real,
  "ch_of_senators" text,
  "ch_of_deputies" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which LEMA/SUBLEMA has a Ch of Senators of 2?`:
```sql
                SELECT "lema_sublema" FROM "results" WHERE "ch_of_senators"='2';
```
## Task
Generate a SQL query to answer the following question:
`Which Ch of Senators has a LEMA/SUBLEMA of lema?`

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

CREATE TABLE "results" (
  "lema_sublema" text,
  "candidates" text,
  "votes" real,
  "ch_of_senators" text,
  "ch_of_deputies" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Ch of Senators has a LEMA/SUBLEMA of lema?`:
```sql
                SELECT "ch_of_senators" FROM "results" WHERE "lema_sublema"='lema';
```
## Task
Generate a SQL query to answer the following question:
`what tornament had the scores 6–7, 6–2, 6–4?`

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

CREATE TABLE "wins_22" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `what tornament had the scores 6–7, 6–2, 6–4?`:
```sql
                SELECT "tournament" FROM "wins_22" WHERE "score_in_the_final"='6–7, 6–2, 6–4';
```
## Task
Generate a SQL query to answer the following question:
`what partner made the scores 6–4, 6–1?`

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

CREATE TABLE "wins_22" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `what partner made the scores 6–4, 6–1?`:
```sql
                SELECT "partner" FROM "wins_22" WHERE "score_in_the_final"='6–4, 6–1';
```
## Task
Generate a SQL query to answer the following question:
`What year had 6.62 m in the notes?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had 6.62 m in the notes?`:
```sql
                SELECT "year" FROM "achievements" WHERE "notes"='6.62 m';
```
## Task
Generate a SQL query to answer the following question:
`Which competition in Budapest, Hungary gave a result of 8th?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition in Budapest, Hungary gave a result of 8th?`:
```sql
                SELECT "competition" FROM "achievements" WHERE "position"='8th' AND "venue"='budapest, hungary';
```
## Task
Generate a SQL query to answer the following question:
`Which year did the World indoor championships gave a position of 3rd?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year did the World indoor championships gave a position of 3rd?`:
```sql
                SELECT SUM("year") FROM "achievements" WHERE "competition"='world indoor championships' AND "position"='3rd';
```
## Task
Generate a SQL query to answer the following question:
`What were the notes in Toronto, Canada?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the notes in Toronto, Canada?`:
```sql
                SELECT "notes" FROM "achievements" WHERE "venue"='toronto, canada';
```
## Task
Generate a SQL query to answer the following question:
`Name the most points for class of 125cc and team of mv agusta with year more than 1957`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most points for class of 125cc and team of mv agusta with year more than 1957`:
```sql
                SELECT MAX("points") FROM "motorcycle_grand_prix_results" WHERE "class"='125cc' AND "team"='mv agusta' AND "year">1957;
```
## Task
Generate a SQL query to answer the following question:
`Which ZX Spectrum has a Year larger than 1984, and a Genre of arcade/strategy?`

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

CREATE TABLE "titles_by_beyond_software" (
  "title" text,
  "genre" text,
  "c_64" text,
  "zx_spectrum" text,
  "others" text,
  "year" real,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ZX Spectrum has a Year larger than 1984, and a Genre of arcade/strategy?`:
```sql
                SELECT "zx_spectrum" FROM "titles_by_beyond_software" WHERE "year">1984 AND "genre"='arcade/strategy';
```
## Task
Generate a SQL query to answer the following question:
`How many years have a Title of kriegspiel?`

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

CREATE TABLE "titles_by_beyond_software" (
  "title" text,
  "genre" text,
  "c_64" text,
  "zx_spectrum" text,
  "others" text,
  "year" real,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years have a Title of kriegspiel?`:
```sql
                SELECT COUNT("year") FROM "titles_by_beyond_software" WHERE "title"='kriegspiel';
```
## Task
Generate a SQL query to answer the following question:
`Which ZX Spectrum has a C=64 of c64, and a Title of ankh?`

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

CREATE TABLE "titles_by_beyond_software" (
  "title" text,
  "genre" text,
  "c_64" text,
  "zx_spectrum" text,
  "others" text,
  "year" real,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ZX Spectrum has a C=64 of c64, and a Title of ankh?`:
```sql
                SELECT "zx_spectrum" FROM "titles_by_beyond_software" WHERE "c_64"='c64' AND "title"='ankh';
```
## Task
Generate a SQL query to answer the following question:
`Which Title has Others of amstrad cpc, and a Genre of arcade?`

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

CREATE TABLE "titles_by_beyond_software" (
  "title" text,
  "genre" text,
  "c_64" text,
  "zx_spectrum" text,
  "others" text,
  "year" real,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Title has Others of amstrad cpc, and a Genre of arcade?`:
```sql
                SELECT "title" FROM "titles_by_beyond_software" WHERE "others"='amstrad cpc' AND "genre"='arcade';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when the attendance was 12,000?`

### 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,
  "venue" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when the attendance was 12,000?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='12,000';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for weeks prior to 5 when there was no game scheduled?`

### 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,
  "venue" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for weeks prior to 5 when there was no game scheduled?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week"<5 AND "date"='no game scheduled';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance number for the venue of Lakeside Park?`

### 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,
  "venue" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance number for the venue of Lakeside Park?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "venue"='lakeside park';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest week number for the venue of League Park for the date of November 25, 1920?`

### 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,
  "venue" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest week number for the venue of League Park for the date of November 25, 1920?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "venue"='league park' AND "date"='november 25, 1920';
```
## Task
Generate a SQL query to answer the following question:
`What is Michael's surname?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Michael's surname?`:
```sql
                SELECT "surname" FROM "player_roster" WHERE "first"='michael';
```
## Task
Generate a SQL query to answer the following question:
`Which First has Bats of r, and Throws of l, and a DOB of 12 october 1977?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which First has Bats of r, and Throws of l, and a DOB of 12 october 1977?`:
```sql
                SELECT "first" FROM "player_roster" WHERE "bats"='r' AND "throws"='l' AND "d_o_b"='12 october 1977';
```
## Task
Generate a SQL query to answer the following question:
`When was Maat born?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Maat born?`:
```sql
                SELECT "d_o_b" FROM "player_roster" WHERE "surname"='maat';
```
## Task
Generate a SQL query to answer the following question:
`How many bats does Todd have?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many bats does Todd have?`:
```sql
                SELECT "bats" FROM "player_roster" WHERE "first"='todd';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a DOB of 13 may 1987?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a DOB of 13 may 1987?`:
```sql
                SELECT "position" FROM "player_roster" WHERE "d_o_b"='13 may 1987';
```
## Task
Generate a SQL query to answer the following question:
`Which Bats have Throws of r, and a DOB of 22 may 1973?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bats have Throws of r, and a DOB of 22 may 1973?`:
```sql
                SELECT "bats" FROM "player_roster" WHERE "throws"='r' AND "d_o_b"='22 may 1973';
```
## Task
Generate a SQL query to answer the following question:
`Which Croatia has a Friendly of world cup 2006 qualifier, and a 149 of 152?`

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

CREATE TABLE "2005" (
  "149" real,
  "9_february" text,
  "friendly" text,
  "israel" text,
  "croatia" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Croatia has a Friendly of world cup 2006 qualifier, and a 149 of 152?`:
```sql
                SELECT "croatia" FROM "2005" WHERE "friendly"='world cup 2006 qualifier' AND "149"=152;
```
## Task
Generate a SQL query to answer the following question:
`For which production company did Sam Mccarthy produce?`

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

CREATE TABLE "2006" (
  "rank" text,
  "film" text,
  "director_s" text,
  "producer_s" text,
  "writer_s" text,
  "production_company" text
);
### SQL
Given the database schema, here is the SQL query that answers `For which production company did Sam Mccarthy produce?`:
```sql
                SELECT "production_company" FROM "2006" WHERE "producer_s"='sam mccarthy';
```
## Task
Generate a SQL query to answer the following question:
`Who was the director that worked with Dana Dorian as the writer?`

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

CREATE TABLE "2006" (
  "rank" text,
  "film" text,
  "director_s" text,
  "producer_s" text,
  "writer_s" text,
  "production_company" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director that worked with Dana Dorian as the writer?`:
```sql
                SELECT "director_s" FROM "2006" WHERE "writer_s"='dana dorian';
```
## Task
Generate a SQL query to answer the following question:
`Which film, directed by Dana Dorian, was nominated?`

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

CREATE TABLE "2006" (
  "rank" text,
  "film" text,
  "director_s" text,
  "producer_s" text,
  "writer_s" text,
  "production_company" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which film, directed by Dana Dorian, was nominated?`:
```sql
                SELECT "film" FROM "2006" WHERE "rank"='nominated' AND "director_s"='dana dorian';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum for December against the vancouver canucks earlier than game 33?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum for December against the vancouver canucks earlier than game 33?`:
```sql
                SELECT SUM("december") FROM "schedule_and_results" WHERE "opponent"='vancouver canucks' AND "game"<33;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum for December when the record was 22-12-5?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum for December when the record was 22-12-5?`:
```sql
                SELECT SUM("december") FROM "schedule_and_results" WHERE "record"='22-12-5';
```
## Task
Generate a SQL query to answer the following question:
`When is the earliest year associated with team norton and 0 wins?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `When is the earliest year associated with team norton and 0 wins?`:
```sql
                SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "team"='norton' AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the year that there were 0 wins, team AJS, and under 12 points?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year that there were 0 wins, team AJS, and under 12 points?`:
```sql
                SELECT COUNT("year") FROM "motorcycle_grand_prix_results" WHERE "wins"=0 AND "team"='ajs' AND "points"<12;
```
## Task
Generate a SQL query to answer the following question:
`What year is associated with a drama desk award ceremony and a Category of outstanding featured actress in a musical?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award_ceremony" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year is associated with a drama desk award ceremony and a Category of outstanding featured actress in a musical?`:
```sql
                SELECT AVG("year") FROM "awards_and_nominations" WHERE "award_ceremony"='drama desk award' AND "category"='outstanding featured actress in a musical';
```