cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many people voted in the election of 1941?`

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

CREATE TABLE "president" (
  "election" real,
  "candidate" text,
  "number_of_votes" text,
  "share_of_votes" text,
  "outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people voted in the election of 1941?`:
```sql
                SELECT "number_of_votes" FROM "president" WHERE "election"=1941;
```
## Task
Generate a SQL query to answer the following question:
`Which candidate lost the election that 770,046 people voted in?`

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

CREATE TABLE "president" (
  "election" real,
  "candidate" text,
  "number_of_votes" text,
  "share_of_votes" text,
  "outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which candidate lost the election that 770,046 people voted in?`:
```sql
                SELECT "candidate" FROM "president" WHERE "outcome_of_election"='lost' AND "number_of_votes"='770,046';
```
## Task
Generate a SQL query to answer the following question:
`Which candidate won 61.47% of the votes?`

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

CREATE TABLE "president" (
  "election" real,
  "candidate" text,
  "number_of_votes" text,
  "share_of_votes" text,
  "outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which candidate won 61.47% of the votes?`:
```sql
                SELECT "candidate" FROM "president" WHERE "share_of_votes"='61.47%';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of votes did the candidate win in the election of 1969?`

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

CREATE TABLE "president" (
  "election" real,
  "candidate" text,
  "number_of_votes" text,
  "share_of_votes" text,
  "outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of votes did the candidate win in the election of 1969?`:
```sql
                SELECT "share_of_votes" FROM "president" WHERE "election"=1969;
```
## Task
Generate a SQL query to answer the following question:
`Which GWR numbers had a quantity less than 2 when the M&SWJ number was 9?`

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

CREATE TABLE "locomotives_of_the_great_western_railway" (
  "manufacturer" text,
  "type" text,
  "quantity" real,
  "m_swj_nos" text,
  "gwr_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which GWR numbers had a quantity less than 2 when the M&SWJ number was 9?`:
```sql
                SELECT "gwr_nos" FROM "locomotives_of_the_great_western_railway" WHERE "quantity"<2 AND "m_swj_nos"='9';
```
## Task
Generate a SQL query to answer the following question:
`Which manucfaturer's type was 2-6-0?`

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

CREATE TABLE "locomotives_of_the_great_western_railway" (
  "manufacturer" text,
  "type" text,
  "quantity" real,
  "m_swj_nos" text,
  "gwr_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which manucfaturer's type was 2-6-0?`:
```sql
                SELECT "manufacturer" FROM "locomotives_of_the_great_western_railway" WHERE "type"='2-6-0';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the Devils had a record of 14–10–2?`

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

CREATE TABLE "december" (
  "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 was the score of the game when the Devils had a record of 14–10–2?`:
```sql
                SELECT "score" FROM "december" WHERE "record"='14–10–2';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game when the Devils had a record of 21–14–3?`

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

CREATE TABLE "december" (
  "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 was the date of the game when the Devils had a record of 21–14–3?`:
```sql
                SELECT "date" FROM "december" WHERE "record"='21–14–3';
```
## Task
Generate a SQL query to answer the following question:
`What distance did the winning horse run in the Summer Doldrums.`

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

CREATE TABLE "belmont_stakes_feature_key_prep_races_li" (
  "date" text,
  "track" text,
  "race" text,
  "distance" text,
  "surface_track" text,
  "winning_horse" text,
  "winning_jockey" text
);
### SQL
Given the database schema, here is the SQL query that answers `What distance did the winning horse run in the Summer Doldrums.`:
```sql
                SELECT "distance" FROM "belmont_stakes_feature_key_prep_races_li" WHERE "winning_horse"='summer doldrums';
```
## Task
Generate a SQL query to answer the following question:
`Who is the jockey for the winning horse Rafael Bejarano?`

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

CREATE TABLE "belmont_stakes_feature_key_prep_races_li" (
  "date" text,
  "track" text,
  "race" text,
  "distance" text,
  "surface_track" text,
  "winning_horse" text,
  "winning_jockey" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the jockey for the winning horse Rafael Bejarano?`:
```sql
                SELECT "winning_horse" FROM "belmont_stakes_feature_key_prep_races_li" WHERE "winning_jockey"='rafael bejarano';
```
## Task
Generate a SQL query to answer the following question:
`What is the race with the track distance of 6 furlongs and spectacular bid stakes?`

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

CREATE TABLE "belmont_stakes_feature_key_prep_races_li" (
  "date" text,
  "track" text,
  "race" text,
  "distance" text,
  "surface_track" text,
  "winning_horse" text,
  "winning_jockey" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the race with the track distance of 6 furlongs and spectacular bid stakes?`:
```sql
                SELECT "track" FROM "belmont_stakes_feature_key_prep_races_li" WHERE "distance"='6 furlongs' AND "race"='spectacular bid stakes';
```
## Task
Generate a SQL query to answer the following question:
`what race did Dominican win with a distance of 1-1/16 miles?`

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

CREATE TABLE "belmont_stakes_feature_key_prep_races_li" (
  "date" text,
  "track" text,
  "race" text,
  "distance" text,
  "surface_track" text,
  "winning_horse" text,
  "winning_jockey" text
);
### SQL
Given the database schema, here is the SQL query that answers `what race did Dominican win with a distance of 1-1/16 miles?`:
```sql
                SELECT "race" FROM "belmont_stakes_feature_key_prep_races_li" WHERE "winning_horse"='dominican' AND "distance"='1-1/16 miles';
```
## Task
Generate a SQL query to answer the following question:
`What tournament since 1973 has a result of 1st?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament since 1973 has a result of 1st?`:
```sql
                SELECT "tournament" FROM "achievements" WHERE "result"='1st' AND "year">1973;
```
## Task
Generate a SQL query to answer the following question:
`In what tournament was there an extra of 400 m hurdles?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what tournament was there an extra of 400 m hurdles?`:
```sql
                SELECT "tournament" FROM "achievements" WHERE "extra"='400 m hurdles';
```
## Task
Generate a SQL query to answer the following question:
`What was the Result in Year 1973?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Result in Year 1973?`:
```sql
                SELECT "result" FROM "achievements" WHERE "year"=1973;
```
## Task
Generate a SQL query to answer the following question:
`In which year was the Tournament of european indoor championships played where the Extra was 800 m and the Result was 2nd?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which year was the Tournament of european indoor championships played where the Extra was 800 m and the Result was 2nd?`:
```sql
                SELECT "year" FROM "achievements" WHERE "extra"='800 m' AND "tournament"='european indoor championships' AND "result"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`What player is from Chula Vista, Ca?`

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

CREATE TABLE "2000_team" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "mlb_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player is from Chula Vista, Ca?`:
```sql
                SELECT "player" FROM "2000_team" WHERE "hometown"='chula vista, ca';
```
## Task
Generate a SQL query to answer the following question:
`What MLB draft has Shaun Boyd?`

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

CREATE TABLE "2000_team" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "mlb_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What MLB draft has Shaun Boyd?`:
```sql
                SELECT "mlb_draft" FROM "2000_team" WHERE "player"='shaun boyd';
```
## Task
Generate a SQL query to answer the following question:
`what is the college/junior/club team (league) when the round is more than 2 and the player is bert robertsson (d)?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the college/junior/club team (league) when the round is more than 2 and the player is bert robertsson (d)?`:
```sql
                SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round">2 AND "player"='bert robertsson (d)';
```
## Task
Generate a SQL query to answer the following question:
`what is the college/junior/club team (league) when the round is less than 7?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the college/junior/club team (league) when the round is less than 7?`:
```sql
                SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round"<7;
```
## Task
Generate a SQL query to answer the following question:
`what is the nhl team for round 10?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the nhl team for round 10?`:
```sql
                SELECT "nhl_team" FROM "draft_picks" WHERE "round"=10;
```
## Task
Generate a SQL query to answer the following question:
`what is the highest round when the player is troy creurer (d)?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest round when the player is troy creurer (d)?`:
```sql
                SELECT MAX("round") FROM "draft_picks" WHERE "player"='troy creurer (d)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on week 3?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on week 3?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"=3;
```
## Task
Generate a SQL query to answer the following question:
`What chapter is located in Normal, Illinois?`

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

CREATE TABLE "list_of_college_chapters_and_colonies" (
  "number" real,
  "chapter" text,
  "installation_date" text,
  "location" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What chapter is located in Normal, Illinois?`:
```sql
                SELECT "chapter" FROM "list_of_college_chapters_and_colonies" WHERE "location"='normal, illinois';
```
## Task
Generate a SQL query to answer the following question:
`What is the average position for tb2l teams promoted champion?`

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

CREATE TABLE "season_by_season" (
  "season" text,
  "tier" real,
  "league" text,
  "pos" real,
  "postseason" text,
  "turkish_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average position for tb2l teams promoted champion?`:
```sql
                SELECT AVG("pos") FROM "season_by_season" WHERE "league"='tb2l' AND "postseason"='promoted champion';
```
## Task
Generate a SQL query to answer the following question:
`How many teams were promoted in the postseason in a tier above 2?`

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

CREATE TABLE "season_by_season" (
  "season" text,
  "tier" real,
  "league" text,
  "pos" real,
  "postseason" text,
  "turkish_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams were promoted in the postseason in a tier above 2?`:
```sql
                SELECT COUNT("pos") FROM "season_by_season" WHERE "postseason"='promoted' AND "tier"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team score At Windy Hill?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team score At Windy Hill?`:
```sql
                SELECT "home_team_score" FROM "round_15" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`How big of a crowd was attending the game whose Away team scored 9.10 (64)?`

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

CREATE TABLE "round_15" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How big of a crowd was attending the game whose Away team scored 9.10 (64)?`:
```sql
                SELECT "crowd" FROM "round_15" WHERE "away_team_score"='9.10 (64)';
```
## Task
Generate a SQL query to answer the following question:
`Who is the partner in the final with a score of 2–6, 7–6, 7–6?`

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

CREATE TABLE "doubles_finals_19_10_9" (
  "outcome" text,
  "date" real,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the partner in the final with a score of 2–6, 7–6, 7–6?`:
```sql
                SELECT "partner" FROM "doubles_finals_19_10_9" WHERE "score_in_the_final"='2–6, 7–6, 7–6';
```
## Task
Generate a SQL query to answer the following question:
`On what surface was Ivan Lendl a partner with a runner-up outcome and final score of 2–6, 6–7?`

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

CREATE TABLE "doubles_finals_19_10_9" (
  "outcome" text,
  "date" real,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what surface was Ivan Lendl a partner with a runner-up outcome and final score of 2–6, 6–7?`:
```sql
                SELECT "surface" FROM "doubles_finals_19_10_9" WHERE "outcome"='runner-up' AND "partner"='ivan lendl' AND "score_in_the_final"='2–6, 6–7';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest crowd at the venue MCG?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest crowd at the venue MCG?`:
```sql
                SELECT MAX("crowd") FROM "round_8" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team score at the Windy Hill venue?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team score at the Windy Hill venue?`:
```sql
                SELECT "away_team_score" FROM "round_8" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game against the pirates with over 48,308 attending?`

### 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 is the score of the game against the pirates with over 48,308 attending?`:
```sql
                SELECT "score" FROM "game_log" WHERE "attendance">'48,308' AND "opponent"='pirates';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game with a crowd of 18,817 and an away team score of 11.14 (80) held?`

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

CREATE TABLE "round_13" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game with a crowd of 18,817 and an away team score of 11.14 (80) held?`:
```sql
                SELECT "venue" FROM "round_13" WHERE "crowd">'18,817' AND "away_team_score"='11.14 (80)';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game held when the home team scored 12.21 (93)?`

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

CREATE TABLE "round_13" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game held when the home team scored 12.21 (93)?`:
```sql
                SELECT "venue" FROM "round_13" WHERE "home_team_score"='12.21 (93)';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game when Melbourne was the away team?`

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

CREATE TABLE "round_13" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game when Melbourne was the away team?`:
```sql
                SELECT "venue" FROM "round_13" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the away score when the game was at Brunswick Street Oval?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away score when the game was at Brunswick Street Oval?`:
```sql
                SELECT "away_team_score" FROM "round_9" WHERE "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds were run at Calder Park?`

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

CREATE TABLE "calendar" (
  "round" real,
  "circuit" text,
  "state" text,
  "date" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds were run at Calder Park?`:
```sql
                SELECT COUNT("round") FROM "calendar" WHERE "circuit"='calder park';
```
## Task
Generate a SQL query to answer the following question:
`In which state can you find the Sandown circuit?`

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

CREATE TABLE "calendar" (
  "round" real,
  "circuit" text,
  "state" text,
  "date" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which state can you find the Sandown circuit?`:
```sql
                SELECT "state" FROM "calendar" WHERE "circuit"='sandown';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds were run in New South Wales?`

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

CREATE TABLE "calendar" (
  "round" real,
  "circuit" text,
  "state" text,
  "date" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds were run in New South Wales?`:
```sql
                SELECT COUNT("round") FROM "calendar" WHERE "state"='new south wales';
```
## Task
Generate a SQL query to answer the following question:
`Who is the driver from 1969?`

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

CREATE TABLE "by_year" (
  "year" text,
  "driver" text,
  "constructor" text,
  "location" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the driver from 1969?`:
```sql
                SELECT "driver" FROM "by_year" WHERE "year"='1969';
```
## Task
Generate a SQL query to answer the following question:
`Who was the driver in 1964?`

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

CREATE TABLE "by_year" (
  "year" text,
  "driver" text,
  "constructor" text,
  "location" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the driver in 1964?`:
```sql
                SELECT "driver" FROM "by_year" WHERE "year"='1964';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest diff with drawn of 6 and play larger than 18?`

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

CREATE TABLE "torneo_apertura_opening_tournament" (
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "diff" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest diff with drawn of 6 and play larger than 18?`:
```sql
                SELECT MAX("diff") FROM "torneo_apertura_opening_tournament" WHERE "drawn"=6 AND "played">18;
```
## Task
Generate a SQL query to answer the following question:
`How many games were played when the loss is less than 5 and points greater than 41?`

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

CREATE TABLE "torneo_apertura_opening_tournament" (
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "diff" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were played when the loss is less than 5 and points greater than 41?`:
```sql
                SELECT SUM("played") FROM "torneo_apertura_opening_tournament" WHERE "lost"<5 AND "points">41;
```
## Task
Generate a SQL query to answer the following question:
`How many genes are in species burkholderia pseudomallei with 4,126,292 base pairs?`

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

CREATE TABLE "list_of_sequenced_bacterial_genomes" (
  "species" text,
  "strain" text,
  "type" text,
  "base_pairs" text,
  "genes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many genes are in species burkholderia pseudomallei with 4,126,292 base pairs?`:
```sql
                SELECT "genes" FROM "list_of_sequenced_bacterial_genomes" WHERE "species"='burkholderia pseudomallei' AND "base_pairs"='4,126,292';
```
## Task
Generate a SQL query to answer the following question:
`Which strain has 1,312 genes?`

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

CREATE TABLE "list_of_sequenced_bacterial_genomes" (
  "species" text,
  "strain" text,
  "type" text,
  "base_pairs" text,
  "genes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which strain has 1,312 genes?`:
```sql
                SELECT "strain" FROM "list_of_sequenced_bacterial_genomes" WHERE "genes"='1,312';
```
## Task
Generate a SQL query to answer the following question:
`Which gene has 4,895,836 base pairs?`

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

CREATE TABLE "list_of_sequenced_bacterial_genomes" (
  "species" text,
  "strain" text,
  "type" text,
  "base_pairs" text,
  "genes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which gene has 4,895,836 base pairs?`:
```sql
                SELECT "genes" FROM "list_of_sequenced_bacterial_genomes" WHERE "base_pairs"='4,895,836';
```
## Task
Generate a SQL query to answer the following question:
`Which species has 3,441 genes?`

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

CREATE TABLE "list_of_sequenced_bacterial_genomes" (
  "species" text,
  "strain" text,
  "type" text,
  "base_pairs" text,
  "genes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which species has 3,441 genes?`:
```sql
                SELECT "species" FROM "list_of_sequenced_bacterial_genomes" WHERE "genes"='3,441';
```
## Task
Generate a SQL query to answer the following question:
`How many base pairs are there in the tohamai strain?`

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

CREATE TABLE "list_of_sequenced_bacterial_genomes" (
  "species" text,
  "strain" text,
  "type" text,
  "base_pairs" text,
  "genes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many base pairs are there in the tohamai strain?`:
```sql
                SELECT "base_pairs" FROM "list_of_sequenced_bacterial_genomes" WHERE "strain"='tohamai';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team score at junction oval?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home team score at junction oval?`:
```sql
                SELECT "home_team_score" FROM "round_10" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team score at western oval?`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team score at western oval?`:
```sql
                SELECT "away_team_score" FROM "round_10" WHERE "venue"='western oval';
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest crowd at kardinia park`

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

CREATE TABLE "round_10" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest crowd at kardinia park`:
```sql
                SELECT MIN("crowd") FROM "round_10" WHERE "venue"='kardinia park';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the tournament in Budapest?`

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

CREATE TABLE "2008" (
  "tournament" text,
  "winner" text,
  "runner_up" text,
  "score" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the tournament in Budapest?`:
```sql
                SELECT "score" FROM "2008" WHERE "tournament"='budapest';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament did Patrick Rafter win?`

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

CREATE TABLE "2008" (
  "tournament" text,
  "winner" text,
  "runner_up" text,
  "score" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament did Patrick Rafter win?`:
```sql
                SELECT "tournament" FROM "2008" WHERE "winner"='patrick rafter';
```
## Task
Generate a SQL query to answer the following question:
`Which winner won by a score of 6–7(4), 7–6(3), [11–9]?`

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

CREATE TABLE "2008" (
  "tournament" text,
  "winner" text,
  "runner_up" text,
  "score" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which winner won by a score of 6–7(4), 7–6(3), [11–9]?`:
```sql
                SELECT "winner" FROM "2008" WHERE "score"='6–7(4), 7–6(3), [11–9]';
```
## Task
Generate a SQL query to answer the following question:
`what was the score when goran ivanišević was runner up and the tournament was in algarve?`

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

CREATE TABLE "2008" (
  "tournament" text,
  "winner" text,
  "runner_up" text,
  "score" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the score when goran ivanišević was runner up and the tournament was in algarve?`:
```sql
                SELECT "score" FROM "2008" WHERE "runner_up"='goran ivanišević' AND "tournament"='algarve';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when Stefan Edberg won?`

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

CREATE TABLE "2008" (
  "tournament" text,
  "winner" text,
  "runner_up" text,
  "score" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Stefan Edberg won?`:
```sql
                SELECT "score" FROM "2008" WHERE "winner"='stefan edberg';
```
## Task
Generate a SQL query to answer the following question:
`Which Away team that has a Crowd greater than 15,481, and a Home team score of 20.17 (137)?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Away team that has a Crowd greater than 15,481, and a Home team score of 20.17 (137)?`:
```sql
                SELECT "away_team" FROM "round_5" WHERE "crowd">'15,481' AND "home_team_score"='20.17 (137)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Away team score when home's score is 10.16 (76)?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Away team score when home's score is 10.16 (76)?`:
```sql
                SELECT "away_team_score" FROM "round_5" WHERE "home_team_score"='10.16 (76)';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has an Away team of south melbourne?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has an Away team of south melbourne?`:
```sql
                SELECT "date" FROM "round_5" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the Away team score for mcg?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Away team score for mcg?`:
```sql
                SELECT "away_team_score" FROM "round_5" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`What is the total Crowd with a Home team of collingwood?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total Crowd with a Home team of collingwood?`:
```sql
                SELECT SUM("crowd") FROM "round_5" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`When mcg is the Venue what's the Away team?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When mcg is the Venue what's the Away team?`:
```sql
                SELECT "away_team" FROM "round_16" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`When the Away team footscray played on the Date of 19 july 1980, what was the amount of people in the Crowd?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Away team footscray played on the Date of 19 july 1980, what was the amount of people in the Crowd?`:
```sql
                SELECT "crowd" FROM "round_16" WHERE "date"='19 july 1980' AND "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`When the Home team of collingwood played, what was the opposing Away team score?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Home team of collingwood played, what was the opposing Away team score?`:
```sql
                SELECT "away_team_score" FROM "round_16" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`When the Crowd is larger than 23,327, what Home team is playing?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Crowd is larger than 23,327, what Home team is playing?`:
```sql
                SELECT "home_team" FROM "round_16" WHERE "crowd">'23,327';
```
## Task
Generate a SQL query to answer the following question:
`When vfl park is the venue what's the Away team playing?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When vfl park is the venue what's the Away team playing?`:
```sql
                SELECT "away_team" FROM "round_16" WHERE "venue"='vfl park';
```
## Task
Generate a SQL query to answer the following question:
`If collingwood was the Home team, what Date did they play?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If collingwood was the Home team, what Date did they play?`:
```sql
                SELECT "date" FROM "round_16" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`What division has a Rank in Respective Divisions of 5, and is the Altrincham club?`

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

CREATE TABLE "existing_stadiums" (
  "stadium" text,
  "capacity" text,
  "club" text,
  "division" text,
  "rank_in_respective_divisions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What division has a Rank in Respective Divisions of 5, and is the Altrincham club?`:
```sql
                SELECT "division" FROM "existing_stadiums" WHERE "rank_in_respective_divisions"='5' AND "club"='altrincham';
```
## Task
Generate a SQL query to answer the following question:
`Which club has a capacity of 25138?`

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

CREATE TABLE "existing_stadiums" (
  "stadium" text,
  "capacity" text,
  "club" text,
  "division" text,
  "rank_in_respective_divisions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club has a capacity of 25138?`:
```sql
                SELECT "club" FROM "existing_stadiums" WHERE "capacity"='25138';
```
## Task
Generate a SQL query to answer the following question:
`What Rank in Respective Divisions has a capacity of 4100?`

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

CREATE TABLE "existing_stadiums" (
  "stadium" text,
  "capacity" text,
  "club" text,
  "division" text,
  "rank_in_respective_divisions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Rank in Respective Divisions has a capacity of 4100?`:
```sql
                SELECT "rank_in_respective_divisions" FROM "existing_stadiums" WHERE "capacity"='4100';
```
## Task
Generate a SQL query to answer the following question:
`What stadium has a club of west ham united?`

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

CREATE TABLE "existing_stadiums" (
  "stadium" text,
  "capacity" text,
  "club" text,
  "division" text,
  "rank_in_respective_divisions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What stadium has a club of west ham united?`:
```sql
                SELECT "stadium" FROM "existing_stadiums" WHERE "club"='west ham united';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of week 16?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of week 16?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"=16;
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game with a score of 4-3?`

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

CREATE TABLE "sunderland_a_f_c_goals" (
  "date" text,
  "venue" text,
  "opposition" text,
  "score" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game with a score of 4-3?`:
```sql
                SELECT "date" FROM "sunderland_a_f_c_goals" WHERE "score"='4-3';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game on 8 Sep 1990?`

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

CREATE TABLE "sunderland_a_f_c_goals" (
  "date" text,
  "venue" text,
  "opposition" text,
  "score" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game on 8 Sep 1990?`:
```sql
                SELECT "score" FROM "sunderland_a_f_c_goals" WHERE "date"='8 sep 1990';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opposition on the division 1 game at Stamford Bridge?`

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

CREATE TABLE "sunderland_a_f_c_goals" (
  "date" text,
  "venue" text,
  "opposition" text,
  "score" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opposition on the division 1 game at Stamford Bridge?`:
```sql
                SELECT "opposition" FROM "sunderland_a_f_c_goals" WHERE "competition"='division 1' AND "venue"='stamford bridge';
```
## Task
Generate a SQL query to answer the following question:
`Which rank has a total less than 9, less than 2 bronze, and from France?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which rank has a total less than 9, less than 2 bronze, and from France?`:
```sql
                SELECT "rank" FROM "medals_table" WHERE "total"<9 AND "bronze"<2 AND "nation"='france';
```
## Task
Generate a SQL query to answer the following question:
`Which rank has more than 1 silver, more than 1 gold, and more than 4 bronze?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which rank has more than 1 silver, more than 1 gold, and more than 4 bronze?`:
```sql
                SELECT "rank" FROM "medals_table" WHERE "silver">1 AND "gold">1 AND "bronze">4;
```
## Task
Generate a SQL query to answer the following question:
`How many silver have a Total smaller than 3, a Bronze of 1, and a Gold larger than 0?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many silver have a Total smaller than 3, a Bronze of 1, and a Gold larger than 0?`:
```sql
                SELECT MAX("silver") FROM "medals_table" WHERE "total"<3 AND "bronze"=1 AND "gold">0;
```
## Task
Generate a SQL query to answer the following question:
`How many gold have a National of New Zealand with a total less than 2?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many gold have a National of New Zealand with a total less than 2?`:
```sql
                SELECT SUM("gold") FROM "medals_table" WHERE "nation"='new zealand' AND "total"<2;
```