cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of drawn games when there are fewer than 4 points and more than 4 lost games?`

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

CREATE TABLE "world_championship_group_c_poland" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of drawn games when there are fewer than 4 points and more than 4 lost games?`:
```sql
                SELECT MIN("drawn") FROM "world_championship_group_c_poland" WHERE "points"<4 AND "lost">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the points when there are fewer than 4 games?`

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

CREATE TABLE "world_championship_group_c_poland" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the points when there are fewer than 4 games?`:
```sql
                SELECT SUM("points") FROM "world_championship_group_c_poland" WHERE "games"<4;
```
## Task
Generate a SQL query to answer the following question:
`Who holds the lead role when Aanders Brorson is third?`

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

CREATE TABLE "teams" (
  "country" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who holds the lead role when Aanders Brorson is third?`:
```sql
                SELECT "lead" FROM "teams" WHERE "third"='aanders brorson';
```
## Task
Generate a SQL query to answer the following question:
`Who has the role of skip when the lead is Dominik Greindl?`

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

CREATE TABLE "teams" (
  "country" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the role of skip when the lead is Dominik Greindl?`:
```sql
                SELECT "skip" FROM "teams" WHERE "lead"='dominik greindl';
```
## Task
Generate a SQL query to answer the following question:
`Who is the second when Mikkel Krause is the third?`

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

CREATE TABLE "teams" (
  "country" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the second when Mikkel Krause is the third?`:
```sql
                SELECT "second" FROM "teams" WHERE "third"='mikkel krause';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Skip when Alasdair Guthrie is the third?`

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

CREATE TABLE "teams" (
  "country" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Skip when Alasdair Guthrie is the third?`:
```sql
                SELECT "skip" FROM "teams" WHERE "third"='alasdair guthrie';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Second when Michel Gribi is the lead?`

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

CREATE TABLE "teams" (
  "country" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Second when Michel Gribi is the lead?`:
```sql
                SELECT "second" FROM "teams" WHERE "lead"='michel gribi';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest position of the team with an against of 12, less than 11 points, more than 2 drawn, and more than 9 played?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest position of the team with an against of 12, less than 11 points, more than 2 drawn, and more than 9 played?`:
```sql
                SELECT MAX("position") FROM "torneio_rio_s_o_paulo" WHERE "against"=12 AND "points"<11 AND "drawn">2 AND "played">9;
```
## Task
Generate a SQL query to answer the following question:
`What is the difference of the team with 12 points?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the difference of the team with 12 points?`:
```sql
                SELECT "difference" FROM "torneio_rio_s_o_paulo" WHERE "points"=12;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against?`:
```sql
                SELECT AVG("played") FROM "torneio_rio_s_o_paulo" WHERE "lost"=3 AND "points">9 AND "position"=5 AND "against"<12;
```
## Task
Generate a SQL query to answer the following question:
`Name the rating % for channel of anhui satellite tv`

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

CREATE TABLE "most_viewed_channels" (
  "position" real,
  "channel" text,
  "owner" text,
  "share_pct" real,
  "rating_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rating % for channel of anhui satellite tv`:
```sql
                SELECT "rating_pct" FROM "most_viewed_channels" WHERE "channel"='anhui satellite tv';
```
## Task
Generate a SQL query to answer the following question:
`Name the most share for anhui satellite tv`

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

CREATE TABLE "most_viewed_channels" (
  "position" real,
  "channel" text,
  "owner" text,
  "share_pct" real,
  "rating_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most share for anhui satellite tv`:
```sql
                SELECT MAX("share_pct") FROM "most_viewed_channels" WHERE "channel"='anhui satellite tv';
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of rating % for cctv and position more than 7`

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

CREATE TABLE "most_viewed_channels" (
  "position" real,
  "channel" text,
  "owner" text,
  "share_pct" real,
  "rating_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of rating % for cctv and position more than 7`:
```sql
                SELECT SUM("rating_pct") FROM "most_viewed_channels" WHERE "owner"='cctv' AND "position">7;
```
## Task
Generate a SQL query to answer the following question:
`Name the average rating % for shandong satellite tv and share % less than 1.74`

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

CREATE TABLE "most_viewed_channels" (
  "position" real,
  "channel" text,
  "owner" text,
  "share_pct" real,
  "rating_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average rating % for shandong satellite tv and share % less than 1.74`:
```sql
                SELECT AVG("rating_pct") FROM "most_viewed_channels" WHERE "channel"='shandong satellite tv' AND "share_pct"<1.74;
```
## Task
Generate a SQL query to answer the following question:
`what year had a dnq of 11`

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

CREATE TABLE "performance_and_ranking_timeline" (
  "2004_05" text,
  "2005_06" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `what year had a dnq of 11`:
```sql
                SELECT "2005_06" FROM "performance_and_ranking_timeline" WHERE "2010_11"='dnq';
```
## Task
Generate a SQL query to answer the following question:
`What date was Montreal the visitor?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was Montreal the visitor?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "visitor"='montreal';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for the NY Rangers?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the NY Rangers?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "home"='ny rangers';
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of round for pick of 169`

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

CREATE TABLE "nhl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of round for pick of 169`:
```sql
                SELECT SUM("round") FROM "nhl_draft" WHERE "pick"=169;
```
## Task
Generate a SQL query to answer the following question:
`Name the nationality for pick of 16`

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

CREATE TABLE "nhl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nationality for pick of 16`:
```sql
                SELECT "nationality" FROM "nhl_draft" WHERE "pick"=16;
```
## Task
Generate a SQL query to answer the following question:
`Which Lead has a Skip of pavol pitonak?`

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

CREATE TABLE "group_b2" (
  "nation" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lead has a Skip of pavol pitonak?`:
```sql
                SELECT "lead" FROM "group_b2" WHERE "skip"='pavol pitonak';
```
## Task
Generate a SQL query to answer the following question:
`What is the skip in Wales?`

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

CREATE TABLE "group_b2" (
  "nation" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the skip in Wales?`:
```sql
                SELECT "skip" FROM "group_b2" WHERE "nation"='wales';
```
## Task
Generate a SQL query to answer the following question:
`Which Nation has a Second of tomas pitonak?`

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

CREATE TABLE "group_b2" (
  "nation" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nation has a Second of tomas pitonak?`:
```sql
                SELECT "nation" FROM "group_b2" WHERE "second"='tomas pitonak';
```
## Task
Generate a SQL query to answer the following question:
`Which Second has a Third of athanassios pantios?`

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

CREATE TABLE "group_b2" (
  "nation" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Second has a Third of athanassios pantios?`:
```sql
                SELECT "second" FROM "group_b2" WHERE "third"='athanassios pantios';
```
## Task
Generate a SQL query to answer the following question:
`Where did Croatia lead?`

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

CREATE TABLE "group_b2" (
  "nation" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Croatia lead?`:
```sql
                SELECT "lead" FROM "group_b2" WHERE "nation"='croatia';
```
## Task
Generate a SQL query to answer the following question:
`Which Skip has a Third of carlo alessandro zisa?`

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

CREATE TABLE "group_b2" (
  "nation" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Skip has a Third of carlo alessandro zisa?`:
```sql
                SELECT "skip" FROM "group_b2" WHERE "third"='carlo alessandro zisa';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of Shaun Sabol?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of Shaun Sabol?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "player"='shaun sabol';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of United States' player Brett Lawrence?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of United States' player Brett Lawrence?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "nationality"='united states' AND "player"='brett lawrence';
```
## Task
Generate a SQL query to answer the following question:
`Which DX 10 Name that has a No Alpha premultiplied and a Description of explicit alpha?`

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

CREATE TABLE "s3_tc_format_comparison" (
  "fourcc" text,
  "dx_10_name" text,
  "description" text,
  "alpha_premultiplied" text,
  "compression_ratio" text,
  "texture_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which DX 10 Name that has a No Alpha premultiplied and a Description of explicit alpha?`:
```sql
                SELECT "dx_10_name" FROM "s3_tc_format_comparison" WHERE "alpha_premultiplied"='no' AND "description"='explicit alpha';
```
## Task
Generate a SQL query to answer the following question:
`Which Compression ratio has a (none) DX 10 Name and a FOURCC of dxt4?`

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

CREATE TABLE "s3_tc_format_comparison" (
  "fourcc" text,
  "dx_10_name" text,
  "description" text,
  "alpha_premultiplied" text,
  "compression_ratio" text,
  "texture_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Compression ratio has a (none) DX 10 Name and a FOURCC of dxt4?`:
```sql
                SELECT "compression_ratio" FROM "s3_tc_format_comparison" WHERE "dx_10_name"='(none)' AND "fourcc"='dxt4';
```
## Task
Generate a SQL query to answer the following question:
`Which Alpha premultiplied has a 4:1 Compression ratio and a dxt3 FOURCC?`

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

CREATE TABLE "s3_tc_format_comparison" (
  "fourcc" text,
  "dx_10_name" text,
  "description" text,
  "alpha_premultiplied" text,
  "compression_ratio" text,
  "texture_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Alpha premultiplied has a 4:1 Compression ratio and a dxt3 FOURCC?`:
```sql
                SELECT "alpha_premultiplied" FROM "s3_tc_format_comparison" WHERE "compression_ratio"='4:1' AND "fourcc"='dxt3';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue of the napa auto parts 200 race with a mrn radio?`

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

CREATE TABLE "schedule" (
  "date" text,
  "race" text,
  "distance" text,
  "venue" text,
  "radio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue of the napa auto parts 200 race with a mrn radio?`:
```sql
                SELECT "venue" FROM "schedule" WHERE "radio"='mrn' AND "race"='napa auto parts 200';
```
## Task
Generate a SQL query to answer the following question:
`What is the race on 10/10/2008?`

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

CREATE TABLE "schedule" (
  "date" text,
  "race" text,
  "distance" text,
  "venue" text,
  "radio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the race on 10/10/2008?`:
```sql
                SELECT "race" FROM "schedule" WHERE "date"='10/10/2008';
```
## Task
Generate a SQL query to answer the following question:
`Which race has a distance of 201.44 miles?`

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

CREATE TABLE "schedule" (
  "date" text,
  "race" text,
  "distance" text,
  "venue" text,
  "radio" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which race has a distance of 201.44 miles?`:
```sql
                SELECT "race" FROM "schedule" WHERE "distance"='201.44 miles';
```
## Task
Generate a SQL query to answer the following question:
`What is the distance of the race at the Atlanta Motor Speedway?`

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

CREATE TABLE "schedule" (
  "date" text,
  "race" text,
  "distance" text,
  "venue" text,
  "radio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance of the race at the Atlanta Motor Speedway?`:
```sql
                SELECT "distance" FROM "schedule" WHERE "venue"='atlanta motor speedway';
```
## Task
Generate a SQL query to answer the following question:
`What is the distance of the Sam's town 250 race?`

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

CREATE TABLE "schedule" (
  "date" text,
  "race" text,
  "distance" text,
  "venue" text,
  "radio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance of the Sam's town 250 race?`:
```sql
                SELECT "distance" FROM "schedule" WHERE "race"='sam''s town 250';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue of teh carfax 250 race?`

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

CREATE TABLE "schedule" (
  "date" text,
  "race" text,
  "distance" text,
  "venue" text,
  "radio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue of teh carfax 250 race?`:
```sql
                SELECT "venue" FROM "schedule" WHERE "race"='carfax 250';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the event where Cornell-Penn played?`

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

CREATE TABLE "football_rivalries" (
  "teams" text,
  "name" text,
  "trophy" text,
  "first_met" real,
  "games_played" text,
  "series_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the event where Cornell-Penn played?`:
```sql
                SELECT "name" FROM "football_rivalries" WHERE "teams"='cornell-penn';
```
## Task
Generate a SQL query to answer the following question:
`Who many games were played for the series with the Sawhorse Dollar trophy?`

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

CREATE TABLE "football_rivalries" (
  "teams" text,
  "name" text,
  "trophy" text,
  "first_met" real,
  "games_played" text,
  "series_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who many games were played for the series with the Sawhorse Dollar trophy?`:
```sql
                SELECT "games_played" FROM "football_rivalries" WHERE "trophy"='sawhorse dollar';
```
## Task
Generate a SQL query to answer the following question:
`How many games have Points smaller than 4, and an October smaller than 5?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games have Points smaller than 4, and an October smaller than 5?`:
```sql
                SELECT COUNT("game") FROM "regular_season" WHERE "points"<4 AND "october"<5;
```
## Task
Generate a SQL query to answer the following question:
`Which Game has a Record of 8–2–0, and Points larger than 16?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a Record of 8–2–0, and Points larger than 16?`:
```sql
                SELECT SUM("game") FROM "regular_season" WHERE "record"='8–2–0' AND "points">16;
```
## Task
Generate a SQL query to answer the following question:
`Which Score has an October smaller than 15, and a Record of 2–0–0?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has an October smaller than 15, and a Record of 2–0–0?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "october"<15 AND "record"='2–0–0';
```
## Task
Generate a SQL query to answer the following question:
`How many games have November 7 as the date, and points greater than 17?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games have November 7 as the date, and points greater than 17?`:
```sql
                SELECT COUNT("game") FROM "regular_season" WHERE "november"=7 AND "points">17;
```
## Task
Generate a SQL query to answer the following question:
`How many points have November of 15?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points have November of 15?`:
```sql
                SELECT SUM("points") FROM "regular_season" WHERE "november"=15;
```
## Task
Generate a SQL query to answer the following question:
`What is the men's doubles for 2003?`

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

CREATE TABLE "past_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 `What is the men's doubles for 2003?`:
```sql
                SELECT "men_s_doubles" FROM "past_winners" WHERE "year"=2003;
```
## Task
Generate a SQL query to answer the following question:
`What is the mixed doubles in the year 2007 when the men's singles is eduards loze?`

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

CREATE TABLE "past_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 `What is the mixed doubles in the year 2007 when the men's singles is eduards loze?`:
```sql
                SELECT "mixed_doubles" FROM "past_winners" WHERE "year">2007 AND "men_s_singles"='eduards loze';
```
## Task
Generate a SQL query to answer the following question:
`Name the winning score for 54 holes of 5 shot deficit`

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

CREATE TABLE "wins_11" (
  "year" real,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winning score for 54 holes of 5 shot deficit`:
```sql
                SELECT "winning_score" FROM "wins_11" WHERE "54_holes"='5 shot deficit';
```
## Task
Generate a SQL query to answer the following question:
`Name the winning score for jim barnes and year of 1924`

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

CREATE TABLE "wins_11" (
  "year" real,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winning score for jim barnes and year of 1924`:
```sql
                SELECT "winning_score" FROM "wins_11" WHERE "runner_up"='jim barnes' AND "year"=1924;
```
## Task
Generate a SQL query to answer the following question:
`What was the Rider of the LCR Honda 600CC Team with a Time of 59’ 22.80?`

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

CREATE TABLE "2008_race_a_tt_final_standings" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Rider of the LCR Honda 600CC Team with a Time of 59’ 22.80?`:
```sql
                SELECT "rider" FROM "2008_race_a_tt_final_standings" WHERE "team"='lcr honda 600cc' AND "time"='59’ 22.80';
```
## Task
Generate a SQL query to answer the following question:
`What Rider had a Speed of 108.347mph and Time of 1:02.40.93?`

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

CREATE TABLE "2008_race_a_tt_final_standings" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Rider had a Speed of 108.347mph and Time of 1:02.40.93?`:
```sql
                SELECT "rider" FROM "2008_race_a_tt_final_standings" WHERE "speed"='108.347mph' AND "time"='1:02.40.93';
```
## Task
Generate a SQL query to answer the following question:
`What Rider had a Time of 1:01.50.57?`

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

CREATE TABLE "2008_race_a_tt_final_standings" (
  "rank" real,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Rider had a Time of 1:01.50.57?`:
```sql
                SELECT "rider" FROM "2008_race_a_tt_final_standings" WHERE "time"='1:01.50.57';
```
## Task
Generate a SQL query to answer the following question:
`What is the average attendance that has june 24 as the date?`

### 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,
  "time" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average attendance that has june 24 as the date?`:
```sql
                SELECT AVG("attendance") FROM "game_log" WHERE "date"='june 24';
```
## Task
Generate a SQL query to answer the following question:
`What date has 2:59 as the time?`

### 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,
  "time" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has 2:59 as the time?`:
```sql
                SELECT "date" FROM "game_log" WHERE "time"='2:59';
```
## Task
Generate a SQL query to answer the following question:
`What is the surface when the tournament is manta, ecuador?`

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

CREATE TABLE "singles_7" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface when the tournament is manta, ecuador?`:
```sql
                SELECT "surface" FROM "singles_7" WHERE "tournament"='manta, ecuador';
```
## Task
Generate a SQL query to answer the following question:
`What is the surface for the tournament of manta, ecuador?`

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

CREATE TABLE "singles_7" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface for the tournament of manta, ecuador?`:
```sql
                SELECT "surface" FROM "singles_7" WHERE "tournament"='manta, ecuador';
```
## Task
Generate a SQL query to answer the following question:
`What tournament is lesley joseph the opponent?`

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

CREATE TABLE "singles_7" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament is lesley joseph the opponent?`:
```sql
                SELECT "tournament" FROM "singles_7" WHERE "opponent"='lesley joseph';
```
## Task
Generate a SQL query to answer the following question:
`What date was marcos daniel the opponent?`

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

CREATE TABLE "singles_7" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was marcos daniel the opponent?`:
```sql
                SELECT "date" FROM "singles_7" WHERE "opponent"='marcos daniel';
```
## Task
Generate a SQL query to answer the following question:
`What is the Copa Libertadores 1999 result for team grêmio, who did not qualify for Copa Conmebol 1999?`

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

CREATE TABLE "brazilian_clubs_in_international_competi" (
  "team" text,
  "copa_libertadores_1999" text,
  "copa_mercosur_1999" text,
  "copa_conmebol_1999" text,
  "intercontinental_cup_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Copa Libertadores 1999 result for team grêmio, who did not qualify for Copa Conmebol 1999?`:
```sql
                SELECT "copa_libertadores_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_conmebol_1999"='did not qualify' AND "team"='grêmio';
```
## Task
Generate a SQL query to answer the following question:
`What is the copa mercosur 1999 result for team grêmio, who did not qualify for the Copa Libertadores 1999 and Copa Conmebol 1999?`

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

CREATE TABLE "brazilian_clubs_in_international_competi" (
  "team" text,
  "copa_libertadores_1999" text,
  "copa_mercosur_1999" text,
  "copa_conmebol_1999" text,
  "intercontinental_cup_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the copa mercosur 1999 result for team grêmio, who did not qualify for the Copa Libertadores 1999 and Copa Conmebol 1999?`:
```sql
                SELECT "copa_mercosur_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_libertadores_1999"='did not qualify' AND "copa_conmebol_1999"='did not qualify' AND "team"='grêmio';
```
## Task
Generate a SQL query to answer the following question:
`What is the intercontinental cup 1999 result of the team who did not qualify for the Copa Libertadores 1999 and made quarterfinals in the Copa Mercosur 1999?`

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

CREATE TABLE "brazilian_clubs_in_international_competi" (
  "team" text,
  "copa_libertadores_1999" text,
  "copa_mercosur_1999" text,
  "copa_conmebol_1999" text,
  "intercontinental_cup_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the intercontinental cup 1999 result of the team who did not qualify for the Copa Libertadores 1999 and made quarterfinals in the Copa Mercosur 1999?`:
```sql
                SELECT "intercontinental_cup_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_libertadores_1999"='did not qualify' AND "copa_mercosur_1999"='quarterfinals';
```
## Task
Generate a SQL query to answer the following question:
`What is the Copa Libertadores 1999 result for team vasco, which made the group stage in the Copa Mercosur 1999?`

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

CREATE TABLE "brazilian_clubs_in_international_competi" (
  "team" text,
  "copa_libertadores_1999" text,
  "copa_mercosur_1999" text,
  "copa_conmebol_1999" text,
  "intercontinental_cup_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Copa Libertadores 1999 result for team vasco, which made the group stage in the Copa Mercosur 1999?`:
```sql
                SELECT "copa_libertadores_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_mercosur_1999"='group stage' AND "team"='vasco';
```
## Task
Generate a SQL query to answer the following question:
`What is the Intercontinental Cup 1999 result for the team with a Copa Conmebol 1999 result of runner-up?`

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

CREATE TABLE "brazilian_clubs_in_international_competi" (
  "team" text,
  "copa_libertadores_1999" text,
  "copa_mercosur_1999" text,
  "copa_conmebol_1999" text,
  "intercontinental_cup_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Intercontinental Cup 1999 result for the team with a Copa Conmebol 1999 result of runner-up?`:
```sql
                SELECT "intercontinental_cup_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_conmebol_1999"='runner-up';
```
## Task
Generate a SQL query to answer the following question:
`What is the Copa Conmebol 1999 result of team cruzeiro, which did not qualify for the Copa Libertadores 1999?`

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

CREATE TABLE "brazilian_clubs_in_international_competi" (
  "team" text,
  "copa_libertadores_1999" text,
  "copa_mercosur_1999" text,
  "copa_conmebol_1999" text,
  "intercontinental_cup_1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Copa Conmebol 1999 result of team cruzeiro, which did not qualify for the Copa Libertadores 1999?`:
```sql
                SELECT "copa_conmebol_1999" FROM "brazilian_clubs_in_international_competi" WHERE "copa_libertadores_1999"='did not qualify' AND "team"='cruzeiro';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game that lost 2-4 and the date was higher than 15?`

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

CREATE TABLE "september" (
  "date" real,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game that lost 2-4 and the date was higher than 15?`:
```sql
                SELECT COUNT("attendance") FROM "september" WHERE "result"='lost 2-4' AND "date">15;
```
## Task
Generate a SQL query to answer the following question:
`What kind of competition had an attendance of more than 914 people and the Wightlink Raiders as an opponent?`

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

CREATE TABLE "september" (
  "date" real,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of competition had an attendance of more than 914 people and the Wightlink Raiders as an opponent?`:
```sql
                SELECT "competition" FROM "september" WHERE "attendance">914 AND "opponent"='wightlink raiders';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the away league competition with a date of 22?`

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

CREATE TABLE "september" (
  "date" real,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the away league competition with a date of 22?`:
```sql
                SELECT "attendance" FROM "september" WHERE "competition"='league' AND "venue"='away' AND "date"=22;
```
## Task
Generate a SQL query to answer the following question:
`Which Series has a Date of may 2?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Series has a Date of may 2?`:
```sql
                SELECT "series" FROM "playoffs" WHERE "date"='may 2';
```
## Task
Generate a SQL query to answer the following question:
`Which Game has a Series of bruins lead 3–1?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a Series of bruins lead 3–1?`:
```sql
                SELECT SUM("game") FROM "playoffs" WHERE "series"='bruins lead 3–1';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Series of bruins lead 2–1?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Series of bruins lead 2–1?`:
```sql
                SELECT "opponent" FROM "playoffs" WHERE "series"='bruins lead 2–1';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Game of 4?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Game of 4?`:
```sql
                SELECT "date" FROM "playoffs" WHERE "game"=4;
```
## Task
Generate a SQL query to answer the following question:
`Which Game has a Score of 3–6?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a Score of 3–6?`:
```sql
                SELECT SUM("game") FROM "playoffs" WHERE "score"='3–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank of industrial and commercial bank of china 277,236?`

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

CREATE TABLE "2008" (
  "rank" real,
  "first_quarter" text,
  "second_quarter" text,
  "third_quarter" text,
  "fourth_quarter" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank of industrial and commercial bank of china 277,236?`:
```sql
                SELECT "rank" FROM "2008" WHERE "first_quarter"='industrial and commercial bank of china 277,236';
```
## Task
Generate a SQL query to answer the following question:
`What was result of goal 4?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was result of goal 4?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "goal"=4;
```
## Task
Generate a SQL query to answer the following question:
`Who is the player that is part of the team Shawinigan Dynamos (Qmjhl)?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player that is part of the team Shawinigan Dynamos (Qmjhl)?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "college_junior_club_team_league"='shawinigan dynamos (qmjhl)';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest round for the Minnesota Junior Stars (Mjhl)?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round for the Minnesota Junior Stars (Mjhl)?`:
```sql
                SELECT MAX("round") FROM "draft_picks" WHERE "college_junior_club_team_league"='minnesota junior stars (mjhl)';
```
## Task
Generate a SQL query to answer the following question:
`When did woking compete?`

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

CREATE TABLE "setanta_shield" (
  "round" text,
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did woking compete?`:
```sql
                SELECT "date" FROM "setanta_shield" WHERE "opponent"='woking';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has an Attendance of 375?`

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

CREATE TABLE "setanta_shield" (
  "round" text,
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has an Attendance of 375?`:
```sql
                SELECT "opponent" FROM "setanta_shield" WHERE "attendance"=375;
```
## Task
Generate a SQL query to answer the following question:
`How much Attendance has an Opponent of oxford united?`

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

CREATE TABLE "setanta_shield" (
  "round" text,
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Attendance has an Opponent of oxford united?`:
```sql
                SELECT SUM("attendance") FROM "setanta_shield" WHERE "opponent"='oxford united';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has an Opponent of crawley town?`

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

CREATE TABLE "setanta_shield" (
  "round" text,
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has an Opponent of crawley town?`:
```sql
                SELECT "attendance" FROM "setanta_shield" WHERE "opponent"='crawley town';
```
## Task
Generate a SQL query to answer the following question:
`How many Podiums where their total for the Series of Macau grand prix, as well as being a season before 2008?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "podiums" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Podiums where their total for the Series of Macau grand prix, as well as being a season before 2008?`:
```sql
                SELECT SUM("podiums") FROM "career_summary" WHERE "series"='macau grand prix' AND "season"<2008;
```
## Task
Generate a SQL query to answer the following question:
`How many wins where there total for Series named formula 3 euro series as well as having more than 2 Podiums?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "podiums" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins where there total for Series named formula 3 euro series as well as having more than 2 Podiums?`:
```sql
                SELECT COUNT("wins") FROM "career_summary" WHERE "series"='formula 3 euro series' AND "podiums">2;
```