cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Network is on a Vidéotron (Gatineau)  channel lower than 8 and a Rogers Cable (Ottawa) channel lower than 8 and has a Call Sign of cjoh-dt?`

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

CREATE TABLE "television" (
  "digital_channel" text,
  "digital_psip" real,
  "rogers_cable_ottawa" real,
  "vid_otron_gatineau" real,
  "call_sign" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Network is on a Vidéotron (Gatineau)  channel lower than 8 and a Rogers Cable (Ottawa) channel lower than 8 and has a Call Sign of cjoh-dt?`:
```sql
                SELECT "network" FROM "television" WHERE "vid_otron_gatineau"<8 AND "rogers_cable_ottawa"<8 AND "call_sign"='cjoh-dt';
```
## Task
Generate a SQL query to answer the following question:
`What was the record after the fight that lasted 8:17?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record after the fight that lasted 8:17?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='8:17';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the fight with Tony Halme?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the fight with Tony Halme?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='tony halme';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the record was 63-59 and the attendance was larger than 32,027?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game when the record was 63-59 and the attendance was larger than 32,027?`:
```sql
                SELECT "score" FROM "game_log" WHERE "attendance">'32,027' AND "record"='63-59';
```
## Task
Generate a SQL query to answer the following question:
`Who did they play on August 26?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did they play on August 26?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='august 26';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the game on August 16?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for the game on August 16?`:
```sql
                SELECT SUM("attendance") FROM "game_log" WHERE "date"='august 16';
```
## Task
Generate a SQL query to answer the following question:
`What team did Johnson (11-7) play for?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team did Johnson (11-7) play for?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "loss"='johnson (11-7)';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of points the cosworth straight-4 engine scored?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of points the cosworth straight-4 engine scored?`:
```sql
                SELECT MAX("pts") FROM "complete_formula_one_world_championship_" WHERE "engine"='cosworth straight-4';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year that shadow racing team scored more than 0 points?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year that shadow racing team scored more than 0 points?`:
```sql
                SELECT MAX("year") FROM "complete_formula_one_world_championship_" WHERE "entrant"='shadow racing team' AND "pts">0;
```
## Task
Generate a SQL query to answer the following question:
`What round was held in palavas-les-flots , herault , france?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was held in palavas-les-flots , herault , france?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "location"='palavas-les-flots , herault , france';
```
## Task
Generate a SQL query to answer the following question:
`Who played in the men's singles during the tournament where Ragna Ingolfsdottir played in the women's singles?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played in the men's singles during the tournament where Ragna Ingolfsdottir played in the women's singles?`:
```sql
                SELECT "men_s_singles" FROM "previous_winners" WHERE "women_s_singles"='ragna ingolfsdottir';
```
## Task
Generate a SQL query to answer the following question:
`Who won the men's doubles in 1995?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the men's doubles in 1995?`:
```sql
                SELECT "men_s_doubles" FROM "previous_winners" WHERE "year"=1995;
```
## Task
Generate a SQL query to answer the following question:
`What is the second leg that Valencia was on?`

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

CREATE TABLE "round_of_32" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the second leg that Valencia was on?`:
```sql
                SELECT "2nd_leg" FROM "round_of_32" WHERE "team_2"='valencia';
```
## Task
Generate a SQL query to answer the following question:
`Name the loss with record of 14-19`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the loss with record of 14-19`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='14-19';
```
## Task
Generate a SQL query to answer the following question:
`Name the score with record of 17-27`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score with record of 17-27`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='17-27';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent with record of 12-18`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent with record of 12-18`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='12-18';
```
## Task
Generate a SQL query to answer the following question:
`Who was the General classification when Pascal Richard was the winner?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the General classification when Pascal Richard was the winner?`:
```sql
                SELECT "general_classification" FROM "classification_leadership_by_stage" WHERE "winner"='pascal richard';
```
## Task
Generate a SQL query to answer the following question:
`Who had the Points classification for Stage 13?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the Points classification for Stage 13?`:
```sql
                SELECT "points_classification" FROM "classification_leadership_by_stage" WHERE "stage"='13';
```
## Task
Generate a SQL query to answer the following question:
`What was the Stage when Pascal Richard had the Mountains classification and Vladimir Poulnikov won?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Stage when Pascal Richard had the Mountains classification and Vladimir Poulnikov won?`:
```sql
                SELECT "stage" FROM "classification_leadership_by_stage" WHERE "mountains_classification"='pascal richard' AND "winner"='vladimir poulnikov';
```
## Task
Generate a SQL query to answer the following question:
`What's the total score of Danny Edwards?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total score of Danny Edwards?`:
```sql
                SELECT SUM("score") FROM "first_round" WHERE "player"='danny edwards';
```
## Task
Generate a SQL query to answer the following question:
`Where was the place in Australia that had a score of 70?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the place in Australia that had a score of 70?`:
```sql
                SELECT "place" FROM "first_round" WHERE "score"=70 AND "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`The entrepreneur Adam Weaver was featured in which episode?`

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

CREATE TABLE "series_8" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `The entrepreneur Adam Weaver was featured in which episode?`:
```sql
                SELECT "episode" FROM "series_8" WHERE "entrepreneur_s"='adam weaver';
```
## Task
Generate a SQL query to answer the following question:
`The entrepreneur Layla Bennett was featured in which episode?`

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

CREATE TABLE "series_8" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `The entrepreneur Layla Bennett was featured in which episode?`:
```sql
                SELECT "episode" FROM "series_8" WHERE "entrepreneur_s"='layla bennett';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank of the region with an area larger than 3,185,263 and a population of 16,760,000?`

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

CREATE TABLE "with_population_above_10_million" (
  "rank" real,
  "country_region" text,
  "population" real,
  "area_km_2" real,
  "density_pop_per_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank of the region with an area larger than 3,185,263 and a population of 16,760,000?`:
```sql
                SELECT MIN("rank") FROM "with_population_above_10_million" WHERE "area_km_2">'3,185,263' AND "population"='16,760,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest area of the region with a population less than 22,955,395 in Bangladesh with a density less than 1034?`

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

CREATE TABLE "with_population_above_10_million" (
  "rank" real,
  "country_region" text,
  "population" real,
  "area_km_2" real,
  "density_pop_per_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest area of the region with a population less than 22,955,395 in Bangladesh with a density less than 1034?`:
```sql
                SELECT MIN("area_km_2") FROM "with_population_above_10_million" WHERE "population"<'22,955,395' AND "country_region"='bangladesh' AND "density_pop_per_km_2"<1034;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest population of the region with a rank bigger than 9?`

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

CREATE TABLE "with_population_above_10_million" (
  "rank" real,
  "country_region" text,
  "population" real,
  "area_km_2" real,
  "density_pop_per_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest population of the region with a rank bigger than 9?`:
```sql
                SELECT MAX("population") FROM "with_population_above_10_million" WHERE "rank">9;
```
## Task
Generate a SQL query to answer the following question:
`What is the average population of the region with a density less than 487, a rank of 9, and an area larger than 377,944?`

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

CREATE TABLE "with_population_above_10_million" (
  "rank" real,
  "country_region" text,
  "population" real,
  "area_km_2" real,
  "density_pop_per_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average population of the region with a density less than 487, a rank of 9, and an area larger than 377,944?`:
```sql
                SELECT AVG("population") FROM "with_population_above_10_million" WHERE "density_pop_per_km_2"<487 AND "rank"=9 AND "area_km_2">'377,944';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the region with an area larger than 41,526, a density greater than 345, and a population larger than 48,456,369?`

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

CREATE TABLE "with_population_above_10_million" (
  "rank" real,
  "country_region" text,
  "population" real,
  "area_km_2" real,
  "density_pop_per_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the region with an area larger than 41,526, a density greater than 345, and a population larger than 48,456,369?`:
```sql
                SELECT COUNT("rank") FROM "with_population_above_10_million" WHERE "area_km_2">'41,526' AND "density_pop_per_km_2">345 AND "population">'48,456,369';
```
## Task
Generate a SQL query to answer the following question:
`What is the TDP (w) of the chipset with a codename sb850?`

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

CREATE TABLE "a_link_express" (
  "model" text,
  "codename" text,
  "released" text,
  "fab_nm" real,
  "sata" text,
  "usb_2_0_1_1" text,
  "usb_3_0" text,
  "parallel_ata_1" text,
  "raid" real,
  "gb_ethernet_mac" text,
  "package" text,
  "tdp_w" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the TDP (w) of the chipset with a codename sb850?`:
```sql
                SELECT COUNT("tdp_w") FROM "a_link_express" WHERE "codename"='sb850';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Fab (nm) of the chipset released in q4 2008 with a RAID larger than 0,1,5,10?`

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

CREATE TABLE "a_link_express" (
  "model" text,
  "codename" text,
  "released" text,
  "fab_nm" real,
  "sata" text,
  "usb_2_0_1_1" text,
  "usb_3_0" text,
  "parallel_ata_1" text,
  "raid" real,
  "gb_ethernet_mac" text,
  "package" text,
  "tdp_w" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Fab (nm) of the chipset released in q4 2008 with a RAID larger than 0,1,5,10?`:
```sql
                SELECT AVG("fab_nm") FROM "a_link_express" WHERE "released"='q4 2008' AND "raid">'0,1,5,10';
```
## Task
Generate a SQL query to answer the following question:
`Which round is a lower score than 21.5?`

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

CREATE TABLE "campus_superstar_2007" (
  "round" text,
  "name" text,
  "song" text,
  "score" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round is a lower score than 21.5?`:
```sql
                SELECT "round" FROM "campus_superstar_2007" WHERE "score"<21.5;
```
## Task
Generate a SQL query to answer the following question:
`Which round status is in with this song: 叶良俊 - 爱你不是爱给别人看?`

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

CREATE TABLE "campus_superstar_2007" (
  "round" text,
  "name" text,
  "song" text,
  "score" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round status is in with this song: 叶良俊 - 爱你不是爱给别人看?`:
```sql
                SELECT "round" FROM "campus_superstar_2007" WHERE "status"='in' AND "song"='叶良俊 - 爱你不是爱给别人看';
```
## Task
Generate a SQL query to answer the following question:
`Which status accompanies the score 21.5?`

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

CREATE TABLE "campus_superstar_2007" (
  "round" text,
  "name" text,
  "song" text,
  "score" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which status accompanies the score 21.5?`:
```sql
                SELECT "status" FROM "campus_superstar_2007" WHERE "score"=21.5;
```
## Task
Generate a SQL query to answer the following question:
`Wjat score is greater than 22 with this song: 林俊杰 - 木乃伊?`

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

CREATE TABLE "campus_superstar_2007" (
  "round" text,
  "name" text,
  "song" text,
  "score" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Wjat score is greater than 22 with this song: 林俊杰 - 木乃伊?`:
```sql
                SELECT "name" FROM "campus_superstar_2007" WHERE "score">22 AND "song"='林俊杰 - 木乃伊';
```
## Task
Generate a SQL query to answer the following question:
`What round has this song: 陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你?`

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

CREATE TABLE "campus_superstar_2007" (
  "round" text,
  "name" text,
  "song" text,
  "score" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round has this song: 陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你?`:
```sql
                SELECT "round" FROM "campus_superstar_2007" WHERE "song"='陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你';
```
## Task
Generate a SQL query to answer the following question:
`What is the artist with less than a 2 draw?`

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

CREATE TABLE "melodifestivalen_1959" (
  "draw" real,
  "artist" text,
  "song" text,
  "songwriters" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the artist with less than a 2 draw?`:
```sql
                SELECT "artist" FROM "melodifestivalen_1959" WHERE "draw"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the average issue price with from Toronto maple leafs gift set, and a Mintage of 3527?`

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

CREATE TABLE "twenty_five_cents" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" text,
  "issue_price" real,
  "special_notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average issue price with from Toronto maple leafs gift set, and a Mintage of 3527?`:
```sql
                SELECT AVG("issue_price") FROM "twenty_five_cents" WHERE "special_notes"='from toronto maple leafs gift set' AND "mintage"='3527';
```
## Task
Generate a SQL query to answer the following question:
`What theme has a mintage of 3527?`

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

CREATE TABLE "twenty_five_cents" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" text,
  "issue_price" real,
  "special_notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What theme has a mintage of 3527?`:
```sql
                SELECT "theme" FROM "twenty_five_cents" WHERE "mintage"='3527';
```
## Task
Generate a SQL query to answer the following question:
`When was a mintage of 1264 with more than 24.95 issued?`

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

CREATE TABLE "twenty_five_cents" (
  "year" real,
  "theme" text,
  "artist" text,
  "mintage" text,
  "issue_price" real,
  "special_notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was a mintage of 1264 with more than 24.95 issued?`:
```sql
                SELECT MAX("year") FROM "twenty_five_cents" WHERE "mintage"='1264' AND "issue_price">24.95;
```
## Task
Generate a SQL query to answer the following question:
`Name the most year for team motul brm and chassis of brm p201 and points less than 0`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most year for team motul brm and chassis of brm p201 and points less than 0`:
```sql
                SELECT MAX("year") FROM "complete_formula_one_world_championship_" WHERE "entrant"='team motul brm' AND "chassis"='brm p201' AND "points"<0;
```
## Task
Generate a SQL query to answer the following question:
`Name the entrant for 1975 and chassis of hill gh1`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the entrant for 1975 and chassis of hill gh1`:
```sql
                SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "year"=1975 AND "chassis"='hill gh1';
```
## Task
Generate a SQL query to answer the following question:
`Name the chassis for engine of brm v12`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the chassis for engine of brm v12`:
```sql
                SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "engine"='brm v12';
```
## Task
Generate a SQL query to answer the following question:
`Name the most year for points more than 0`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most year for points more than 0`:
```sql
                SELECT MAX("year") FROM "complete_formula_one_world_championship_" WHERE "points">0;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of points for chassis of brm p160e and year more than 1974`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of points for chassis of brm p160e and year more than 1974`:
```sql
                SELECT SUM("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='brm p160e' AND "year">1974;
```
## Task
Generate a SQL query to answer the following question:
`What is the chassis after 1991?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the chassis after 1991?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_results" WHERE "year">1991;
```
## Task
Generate a SQL query to answer the following question:
`What are the average points after 1992?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the average points after 1992?`:
```sql
                SELECT AVG("points") FROM "complete_formula_one_results" WHERE "year">1992;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of points in 1991, for footwork a11c chassis?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of points in 1991, for footwork a11c chassis?`:
```sql
                SELECT SUM("points") FROM "complete_formula_one_results" WHERE "year"=1991 AND "chassis"='footwork a11c';
```
## Task
Generate a SQL query to answer the following question:
`How many points does an entrant of Martini Racing, the engine of an Alfa Romeo flat-12 a chassis of brabham bt45, and the year 1976 have?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points does an entrant of Martini Racing, the engine of an Alfa Romeo flat-12 a chassis of brabham bt45, and the year 1976 have?`:
```sql
                SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "entrant"='martini racing' AND "engine"='alfa romeo flat-12' AND "chassis"='brabham bt45' AND "year"=1976;
```
## Task
Generate a SQL query to answer the following question:
`Which chassis is from 1974 and was an entrant of Goldie Hexagon racing?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which chassis is from 1974 and was an entrant of Goldie Hexagon racing?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "year"=1974 AND "entrant"='goldie hexagon racing';
```
## Task
Generate a SQL query to answer the following question:
`What is the average points of a Cosworth v8 engine in 1973.`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average points of a Cosworth v8 engine in 1973.`:
```sql
                SELECT AVG("points") FROM "complete_formula_one_world_championship_" WHERE "engine"='cosworth v8' AND "year"=1973;
```
## Task
Generate a SQL query to answer the following question:
`Which chassis has an Alfa Romeo flat-12 engine.`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which chassis has an Alfa Romeo flat-12 engine.`:
```sql
                SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "engine"='alfa romeo flat-12';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game that had an attendance of 32,036?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game that had an attendance of 32,036?`:
```sql
                SELECT "score" FROM "game_log" WHERE "attendance"='32,036';
```
## Task
Generate a SQL query to answer the following question:
`On what date did the result leave the team with a record of 46-34?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did the result leave the team with a record of 46-34?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='46-34';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent with round of 1 and time of n/a`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent with round of 1 and time of n/a`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"='1' AND "time"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`Name the record with opponent of christian nielson`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record with opponent of christian nielson`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='christian nielson';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent with decision`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent with decision`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "method"='decision';
```
## Task
Generate a SQL query to answer the following question:
`What was the 3rd place value in 2011?`

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

CREATE TABLE "previous_winners" (
  "year" text,
  "venue" text,
  "winners" text,
  "runner_up" text,
  "3rd_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 3rd place value in 2011?`:
```sql
                SELECT "3rd_place" FROM "previous_winners" WHERE "year"='2011';
```
## Task
Generate a SQL query to answer the following question:
`Name the tries for points against of 583`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tries for points against of 583`:
```sql
                SELECT "tries_for" FROM "2009_2010_table" WHERE "points_against"='583';
```
## Task
Generate a SQL query to answer the following question:
`Nam the points for when tries for is 91 and played of 22`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Nam the points for when tries for is 91 and played of 22`:
```sql
                SELECT "points_for" FROM "2009_2010_table" WHERE "played"='22' AND "tries_for"='91';
```
## Task
Generate a SQL query to answer the following question:
`Name the drawn for tries for of 42`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the drawn for tries for of 42`:
```sql
                SELECT "drawn" FROM "2009_2010_table" WHERE "tries_for"='42';
```
## Task
Generate a SQL query to answer the following question:
`Name the Drawn for tries against of 36 and points of 66`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Drawn for tries against of 36 and points of 66`:
```sql
                SELECT "drawn" FROM "2009_2010_table" WHERE "tries_against"='36' AND "points"='66';
```
## Task
Generate a SQL query to answer the following question:
`Name the Try bonus with lost of 10`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Try bonus with lost of 10`:
```sql
                SELECT "try_bonus" FROM "2009_2010_table" WHERE "lost"='10';
```
## Task
Generate a SQL query to answer the following question:
`Name the points for when points against is of 450`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the points for when points against is of 450`:
```sql
                SELECT "points_for" FROM "2009_2010_table" WHERE "points_against"='450';
```
## Task
Generate a SQL query to answer the following question:
`who won the women's doubles at the same time the men's doubles had tijs creemers quinten van dalm?`

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

CREATE TABLE "past_winners" (
  "year" text,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who won the women's doubles at the same time the men's doubles had tijs creemers quinten van dalm?`:
```sql
                SELECT "women_s_doubles" FROM "past_winners" WHERE "men_s_doubles"='tijs creemers quinten van dalm';
```
## Task
Generate a SQL query to answer the following question:
`what year saw georgy trouerbach nicole van hooren win the women's doubles?`

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

CREATE TABLE "past_winners" (
  "year" text,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `what year saw georgy trouerbach nicole van hooren win the women's doubles?`:
```sql
                SELECT "year" FROM "past_winners" WHERE "women_s_doubles"='georgy trouerbach nicole van hooren';
```
## Task
Generate a SQL query to answer the following question:
`who won the women's singles in 1992?`

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

CREATE TABLE "past_winners" (
  "year" text,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who won the women's singles in 1992?`:
```sql
                SELECT "women_s_singles" FROM "past_winners" WHERE "year"='1992';
```
## Task
Generate a SQL query to answer the following question:
`who won the women's singles at the same time the men's doubles was won by seno the uun santosa?`

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

CREATE TABLE "past_winners" (
  "year" text,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who won the women's singles at the same time the men's doubles was won by seno the uun santosa?`:
```sql
                SELECT "women_s_singles" FROM "past_winners" WHERE "men_s_doubles"='seno the uun santosa';
```
## Task
Generate a SQL query to answer the following question:
`who won the men's doubles in 1933?`

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

CREATE TABLE "past_winners" (
  "year" text,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who won the men's doubles in 1933?`:
```sql
                SELECT "men_s_doubles" FROM "past_winners" WHERE "year"='1933';
```
## Task
Generate a SQL query to answer the following question:
`What was the 1st leg when Team 2 was Aurora?`

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

CREATE TABLE "first_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 1st leg when Team 2 was Aurora?`:
```sql
                SELECT "1st_leg" FROM "first_round" WHERE "team_2"='aurora';
```
## Task
Generate a SQL query to answer the following question:
`What was the 2nd leg when Team 1 was Chicago Croatian?`

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

CREATE TABLE "first_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2nd leg when Team 1 was Chicago Croatian?`:
```sql
                SELECT "2nd_leg" FROM "first_round" WHERE "team_1"='chicago croatian';
```
## Task
Generate a SQL query to answer the following question:
`Who was Team 2 when Team 1 was América?`

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

CREATE TABLE "first_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Team 2 when Team 1 was América?`:
```sql
                SELECT "team_2" FROM "first_round" WHERE "team_1"='américa';
```
## Task
Generate a SQL query to answer the following question:
`Which nationality do the Montreal Canadiens belong to with a pick# of 25?`

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

CREATE TABLE "round_two" (
  "pick_num" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nationality do the Montreal Canadiens belong to with a pick# of 25?`:
```sql
                SELECT "nationality" FROM "round_two" WHERE "nhl_team"='montreal canadiens' AND "pick_num"='25';
```
## Task
Generate a SQL query to answer the following question:
`What is the pick# for the California Golden Seals?`

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

CREATE TABLE "round_two" (
  "pick_num" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick# for the California Golden Seals?`:
```sql
                SELECT "pick_num" FROM "round_two" WHERE "nhl_team"='california golden seals';
```
## Task
Generate a SQL query to answer the following question:
`What was the Goal in Stade Roi Baudouin, Brussels?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Goal in Stade Roi Baudouin, Brussels?`:
```sql
                SELECT AVG("goal") FROM "international_goals" WHERE "venue"='stade roi baudouin, brussels';
```
## Task
Generate a SQL query to answer the following question:
`What Venue had 2 or more Goals in a Friendly Competition?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Venue had 2 or more Goals in a Friendly Competition?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "competition"='friendly' AND "goal">2;
```
## Task
Generate a SQL query to answer the following question:
`Which Site that has a Sex and other data of old male?`

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

CREATE TABLE "table_2_data_from_all_known_specimens_of" (
  "number_cmnh" real,
  "number_pnm" text,
  "date" text,
  "site" real,
  "altitude" text,
  "sex_and_other_data" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Site that has a Sex and other data of old male?`:
```sql
                SELECT MAX("site") FROM "table_2_data_from_all_known_specimens_of" WHERE "sex_and_other_data"='old male';
```