cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What league is entering this round with 24 clubs remaining?`

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

CREATE TABLE "format" (
  "phase" text,
  "round" text,
  "clubs_remaining" real,
  "clubs_involved" real,
  "winners_from_previous_round" text,
  "new_entries_this_round" text,
  "leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What league is entering this round with 24 clubs remaining?`:
```sql
                SELECT "leagues_entering_at_this_round" FROM "format" WHERE "clubs_remaining"=24;
```
## Task
Generate a SQL query to answer the following question:
`How many new entries are there for a second phase that has 4 winners from previous rounds?`

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

CREATE TABLE "format" (
  "phase" text,
  "round" text,
  "clubs_remaining" real,
  "clubs_involved" real,
  "winners_from_previous_round" text,
  "new_entries_this_round" text,
  "leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many new entries are there for a second phase that has 4 winners from previous rounds?`:
```sql
                SELECT "new_entries_this_round" FROM "format" WHERE "phase"='second phase' AND "winners_from_previous_round"='4';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of laps with a 21 start?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of laps with a 21 start?`:
```sql
                SELECT MAX("laps") FROM "indy_500_results" WHERE "start"='21';
```
## Task
Generate a SQL query to answer the following question:
`What is the qual for rank 20?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the qual for rank 20?`:
```sql
                SELECT "qual" FROM "indy_500_results" WHERE "rank"='20';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of laps in 1949?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of laps in 1949?`:
```sql
                SELECT AVG("laps") FROM "indy_500_results" WHERE "year"='1949';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of laps with a 128.260 qual?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of laps with a 128.260 qual?`:
```sql
                SELECT COUNT("laps") FROM "indy_500_results" WHERE "qual"='128.260';
```
## Task
Generate a SQL query to answer the following question:
`What is the start number for a rank 11 race with less than 200 laps?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the start number for a rank 11 race with less than 200 laps?`:
```sql
                SELECT "start" FROM "indy_500_results" WHERE "laps"<200 AND "rank"='11';
```
## Task
Generate a SQL query to answer the following question:
`Name the staes on the ballot for jack herer`

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

CREATE TABLE "results_in_presidential_elections" (
  "year" real,
  "candidate" text,
  "state_s_on_the_ballot" text,
  "popular_votes" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the staes on the ballot for jack herer`:
```sql
                SELECT "state_s_on_the_ballot" FROM "results_in_presidential_elections" WHERE "candidate"='jack herer';
```
## Task
Generate a SQL query to answer the following question:
`Name the loss with record of 45-59`

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

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

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

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

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

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

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

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

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent with attendance of 31,777`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "attendance"='31,777';
```
## Task
Generate a SQL query to answer the following question:
`How many points drew 2 with a losing bonus of 5?`

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

CREATE TABLE "2010_2011_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points drew 2 with a losing bonus of 5?`:
```sql
                SELECT "points_for" FROM "2010_2011_table" WHERE "drawn"='2' AND "losing_bonus"='5';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of tries for that has 30 tries against?`

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

CREATE TABLE "2010_2011_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of tries for that has 30 tries against?`:
```sql
                SELECT "tries_for" FROM "2010_2011_table" WHERE "tries_against"='30';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the Bridgend Athletic RFC have?`

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

CREATE TABLE "2010_2011_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the Bridgend Athletic RFC have?`:
```sql
                SELECT "points" FROM "2010_2011_table" WHERE "club"='bridgend athletic rfc';
```
## Task
Generate a SQL query to answer the following question:
`How many points were scored against the club that drew 3 and scored 50 points?`

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

CREATE TABLE "2010_2011_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points were scored against the club that drew 3 and scored 50 points?`:
```sql
                SELECT "points_against" FROM "2010_2011_table" WHERE "drawn"='3' AND "points"='50';
```
## Task
Generate a SQL query to answer the following question:
`What try bonus drew 0 and scored 427 points for?`

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

CREATE TABLE "2010_2011_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What try bonus drew 0 and scored 427 points for?`:
```sql
                SELECT "try_bonus" FROM "2010_2011_table" WHERE "drawn"='0' AND "points_for"='427';
```
## Task
Generate a SQL query to answer the following question:
`What was the qualifying time of Jim Rathmann in 1959?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the qualifying time of Jim Rathmann in 1959?`:
```sql
                SELECT "qual" FROM "indy_500_results" WHERE "year"='1959';
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent championship for FISA?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent championship for FISA?`:
```sql
                SELECT MAX("year") FROM "complete_formula_one_world_championship_" WHERE "entrant"='fisa';
```
## Task
Generate a SQL query to answer the following question:
`What is the average points earned for entrants with ATS V8 engines?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average points earned for entrants with ATS V8 engines?`:
```sql
                SELECT AVG("points") FROM "complete_formula_one_world_championship_" WHERE "engine"='ats v8';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome from the 2009 match in the final against Chong Wei Feng?`

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

CREATE TABLE "career_finals_9_titles_2_runner_ups" (
  "outcome" real,
  "year" real,
  "tournament" text,
  "opponent_in_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome from the 2009 match in the final against Chong Wei Feng?`:
```sql
                SELECT "outcome" FROM "career_finals_9_titles_2_runner_ups" WHERE "year"=2009 AND "opponent_in_final"='chong wei feng';
```
## Task
Generate a SQL query to answer the following question:
`What was the try bonus for the team with 25 tries for?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the try bonus for the team with 25 tries for?`:
```sql
                SELECT "try_bonus" FROM "2007_2008_table" WHERE "tries_for"='25';
```
## Task
Generate a SQL query to answer the following question:
`How many points for did Bridgend Athletic RFC score?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points for did Bridgend Athletic RFC score?`:
```sql
                SELECT "points_for" FROM "2007_2008_table" WHERE "club"='bridgend athletic rfc';
```
## Task
Generate a SQL query to answer the following question:
`How many tries for did the team with a try bonus of 5 score?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tries for did the team with a try bonus of 5 score?`:
```sql
                SELECT "tries_for" FROM "2007_2008_table" WHERE "try_bonus"='5';
```
## Task
Generate a SQL query to answer the following question:
`How many points against did the team that allowed 42 tries against allow?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points against did the team that allowed 42 tries against allow?`:
```sql
                SELECT "points_against" FROM "2007_2008_table" WHERE "tries_against"='42';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of bronze medals associated with 0 silver, 1 total, and ranks over 16?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of bronze medals associated with 0 silver, 1 total, and ranks over 16?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "total"=1 AND "silver"=0 AND "rank">16;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest total number of medals associated with 1 gold, more than 0 silver, and 2 bronze?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total number of medals associated with 1 gold, more than 0 silver, and 2 bronze?`:
```sql
                SELECT MAX("total") FROM "medal_table" WHERE "bronze"=2 AND "gold"=1 AND "silver">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Total values associated with mroe than 3 silvers, more than 2 bronze, and a rank of 3?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Total values associated with mroe than 3 silvers, more than 2 bronze, and a rank of 3?`:
```sql
                SELECT COUNT("total") FROM "medal_table" WHERE "silver">3 AND "rank"=3 AND "bronze">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest Silver value associated with teams having more than 0 gold, 0 bronze, and a rank of 14?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest Silver value associated with teams having more than 0 gold, 0 bronze, and a rank of 14?`:
```sql
                SELECT MIN("silver") FROM "medal_table" WHERE "bronze"=0 AND "rank"=14 AND "gold">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the qual 1 for conquest racing?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" real,
  "best" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the qual 1 for conquest racing?`:
```sql
                SELECT "qual_1" FROM "qualifying_results" WHERE "team"='conquest racing';
```
## Task
Generate a SQL query to answer the following question:
`Graham rahal for n/h/l racing has a qual 2 greater than 59.384 and how much lowest best?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" real,
  "best" real
);
### SQL
Given the database schema, here is the SQL query that answers `Graham rahal for n/h/l racing has a qual 2 greater than 59.384 and how much lowest best?`:
```sql
                SELECT MIN("best") FROM "qualifying_results" WHERE "team"='n/h/l racing' AND "name"='graham rahal' AND "qual_2">59.384;
```
## Task
Generate a SQL query to answer the following question:
`What is the total best for Bruno junqueira`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" real,
  "best" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total best for Bruno junqueira`:
```sql
                SELECT SUM("best") FROM "qualifying_results" WHERE "name"='bruno junqueira';
```
## Task
Generate a SQL query to answer the following question:
`What is the Mascot of Brook?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "num_county" text,
  "year_joined" real,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Mascot of Brook?`:
```sql
                SELECT "mascot" FROM "former_members" WHERE "location"='brook';
```
## Task
Generate a SQL query to answer the following question:
`When was the first year when Fowler joined?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "num_county" text,
  "year_joined" real,
  "year_left" real,
  "conference_joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the first year when Fowler joined?`:
```sql
                SELECT MIN("year_left") FROM "former_members" WHERE "location"='fowler';
```
## Task
Generate a SQL query to answer the following question:
`What is the molecular target of bacterium?`

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

CREATE TABLE "clinical_pipeline_of_marine_pharmacology" (
  "clinical_status" text,
  "compound_name" text,
  "trademark" text,
  "marine_organism" text,
  "chemical_class" text,
  "molecular_target" text,
  "clinical_trials" text,
  "disease_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the molecular target of bacterium?`:
```sql
                SELECT "molecular_target" FROM "clinical_pipeline_of_marine_pharmacology" WHERE "marine_organism"='bacterium';
```
## Task
Generate a SQL query to answer the following question:
`What is the organism that has a disease area of cancer and has 4/4 clinical trial b?`

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

CREATE TABLE "clinical_pipeline_of_marine_pharmacology" (
  "clinical_status" text,
  "compound_name" text,
  "trademark" text,
  "marine_organism" text,
  "chemical_class" text,
  "molecular_target" text,
  "clinical_trials" text,
  "disease_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the organism that has a disease area of cancer and has 4/4 clinical trial b?`:
```sql
                SELECT "marine_organism" FROM "clinical_pipeline_of_marine_pharmacology" WHERE "disease_area"='cancer' AND "clinical_trials"='4/4';
```
## Task
Generate a SQL query to answer the following question:
`What is the molecular target of the organism that has a disease area of antiviral?`

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

CREATE TABLE "clinical_pipeline_of_marine_pharmacology" (
  "clinical_status" text,
  "compound_name" text,
  "trademark" text,
  "marine_organism" text,
  "chemical_class" text,
  "molecular_target" text,
  "clinical_trials" text,
  "disease_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the molecular target of the organism that has a disease area of antiviral?`:
```sql
                SELECT "molecular_target" FROM "clinical_pipeline_of_marine_pharmacology" WHERE "disease_area"='antiviral';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the record 62–84?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the record 62–84?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='62–84';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on September 4?`

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

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

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on September 26?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='september 26';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent with a Loss of Leal (1–4)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent with a Loss of Leal (1–4)?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "loss"='leal (1–4)';
```
## Task
Generate a SQL query to answer the following question:
`In the Class T, what is the total of the 1958 UTA?`

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

CREATE TABLE "great_northern_railway" (
  "class" text,
  "type" text,
  "fleet_numbers" text,
  "quantity_made" real,
  "manufacturer" text,
  "date_made" text,
  "1958_ci" real,
  "1958_uta" real,
  "date_withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the Class T, what is the total of the 1958 UTA?`:
```sql
                SELECT COUNT("1958_uta") FROM "great_northern_railway" WHERE "class"='t';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the match played on 13 October 1993?`

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

CREATE TABLE "jo_o_pinto_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 the result of the match played on 13 October 1993?`:
```sql
                SELECT "result" FROM "jo_o_pinto_international_goals" WHERE "date"='13 october 1993';
```
## Task
Generate a SQL query to answer the following question:
`When did the team score 21 goals?`

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

CREATE TABLE "jo_o_pinto_international_goals" (
  "goal" real,
  "date" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the team score 21 goals?`:
```sql
                SELECT "date" FROM "jo_o_pinto_international_goals" WHERE "goal"=21;
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the match played on 14 October 1998, resulting in more than 10 goals?`

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

CREATE TABLE "jo_o_pinto_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 the score of the match played on 14 October 1998, resulting in more than 10 goals?`:
```sql
                SELECT "score" FROM "jo_o_pinto_international_goals" WHERE "date"='14 october 1998' AND "goal">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of years that Scuderia Guastalla was an entrant?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of years that Scuderia Guastalla was an entrant?`:
```sql
                SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "entrant"='scuderia guastalla';
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest year that Scuderia Ferrari was an entrant with 0 points?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest year that Scuderia Ferrari was an entrant with 0 points?`:
```sql
                SELECT MIN("year") FROM "complete_formula_one_world_championship_" WHERE "points"='0' AND "entrant"='scuderia ferrari';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of years that has a chassis of Ferrari 625 and 2 points?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of years that has a chassis of Ferrari 625 and 2 points?`:
```sql
                SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='ferrari 625' AND "points"='2';
```
## Task
Generate a SQL query to answer the following question:
`What players played mixed doubles when zhang xi played mixed singles?`

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

CREATE TABLE "21st_century" (
  "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 players played mixed doubles when zhang xi played mixed singles?`:
```sql
                SELECT "mixed_doubles" FROM "21st_century" WHERE "women_s_singles"='zhang xi';
```
## Task
Generate a SQL query to answer the following question:
`What player played women's singles when marcus ellis heather olver played mixed doubles?`

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

CREATE TABLE "21st_century" (
  "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 player played women's singles when marcus ellis heather olver played mixed doubles?`:
```sql
                SELECT "women_s_singles" FROM "21st_century" WHERE "mixed_doubles"='marcus ellis heather olver';
```
## Task
Generate a SQL query to answer the following question:
`What player played women's doubles when lee jae-jin lee eun-woo played mixed doubles?`

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

CREATE TABLE "21st_century" (
  "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 player played women's doubles when lee jae-jin lee eun-woo played mixed doubles?`:
```sql
                SELECT "women_s_doubles" FROM "21st_century" WHERE "mixed_doubles"='lee jae-jin lee eun-woo';
```
## Task
Generate a SQL query to answer the following question:
`What year did helle nielsen marie røpke play womens' doubles?`

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

CREATE TABLE "21st_century" (
  "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 year did helle nielsen marie røpke play womens' doubles?`:
```sql
                SELECT "year" FROM "21st_century" WHERE "women_s_doubles"='helle nielsen marie røpke';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year that chou tien-chen played men's singles?`

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

CREATE TABLE "21st_century" (
  "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 latest year that chou tien-chen played men's singles?`:
```sql
                SELECT MAX("year") FROM "21st_century" WHERE "men_s_singles"='chou tien-chen';
```
## Task
Generate a SQL query to answer the following question:
`Which 2006 Cobra Starship song has work done of guest vocals?`

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

CREATE TABLE "guest_appearances" (
  "year" real,
  "song" text,
  "work_done" text,
  "artist_s" text,
  "album" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2006 Cobra Starship song has work done of guest vocals?`:
```sql
                SELECT "song" FROM "guest_appearances" WHERE "work_done"='guest vocals' AND "year"=2006 AND "artist_s"='cobra starship';
```
## Task
Generate a SQL query to answer the following question:
`What is the decile sum with a roll smaller than 25, and franz josef area?`

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

CREATE TABLE "westland_district" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the decile sum with a roll smaller than 25, and franz josef area?`:
```sql
                SELECT SUM("decile") FROM "westland_district" WHERE "roll"<25 AND "area"='franz josef';
```
## Task
Generate a SQL query to answer the following question:
`What is the area with decile of 8, and a 25 roll?`

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

CREATE TABLE "westland_district" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area with decile of 8, and a 25 roll?`:
```sql
                SELECT "area" FROM "westland_district" WHERE "decile"=8 AND "roll"=25;
```
## Task
Generate a SQL query to answer the following question:
`What is the overall pick average with the pick # lower than 15?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the overall pick average with the pick # lower than 15?`:
```sql
                SELECT AVG("overall") FROM "indianapolis_colts_draft_history" WHERE "pick_num"<15;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank for Spain when more than 10 medals were won, 3 of which were bronze?`

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

CREATE TABLE "winter_paralmypics" (
  "games" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank for Spain when more than 10 medals were won, 3 of which were bronze?`:
```sql
                SELECT MIN("rank") FROM "winter_paralmypics" WHERE "bronze"=3 AND "total">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the Qual listed on the Year of 1954?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Qual listed on the Year of 1954?`:
```sql
                SELECT "qual" FROM "indy_500_results" WHERE "year"='1954';
```
## Task
Generate a SQL query to answer the following question:
`Which Year has a Qual of 144.683 and Lap larger than 27?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has a Qual of 144.683 and Lap larger than 27?`:
```sql
                SELECT "year" FROM "indy_500_results" WHERE "laps">27 AND "qual"='144.683';
```
## Task
Generate a SQL query to answer the following question:
`What's the Qual listed with a Rank of 27?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Qual listed with a Rank of 27?`:
```sql
                SELECT "qual" FROM "indy_500_results" WHERE "rank"='27';
```
## Task
Generate a SQL query to answer the following question:
`Which Team has a Year of 1978?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has a Year of 1978?`:
```sql
                SELECT "team" FROM "complete_formula_one_world_championship_" WHERE "year"=1978;
```
## Task
Generate a SQL query to answer the following question:
`Which Engine has a Team of Chesterfield Racing and include a Chassis of March 761?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Engine has a Team of Chesterfield Racing and include a Chassis of March 761?`:
```sql
                SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "team"='chesterfield racing' AND "chassis"='march 761';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest year with a Mintage smaller than 10,000?`

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

CREATE TABLE "first_strikes" (
  "year" real,
  "sport" text,
  "artist" text,
  "mintage" real,
  "issue_price" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest year with a Mintage smaller than 10,000?`:
```sql
                SELECT MIN("year") FROM "first_strikes" WHERE "mintage"<'10,000';
```
## Task
Generate a SQL query to answer the following question:
`Which loss has a Date of april 26?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which loss has a Date of april 26?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "date"='april 26';
```
## Task
Generate a SQL query to answer the following question:
`Which date has an Opponent of angels, and a Loss of sanderson (0–1)?`

### 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 `Which date has an Opponent of angels, and a Loss of sanderson (0–1)?`:
```sql
                SELECT "date" FROM "game_log" WHERE "opponent"='angels' AND "loss"='sanderson (0–1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest Attendance with a Loss of darling (0–1)?`

### 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 largest Attendance with a Loss of darling (0–1)?`:
```sql
                SELECT MAX("attendance") FROM "game_log" WHERE "loss"='darling (0–1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum capacity of the San Agustin Gym?`

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

CREATE TABLE "on_campus_arenas" (
  "arena_venue" text,
  "home_campus" text,
  "location" text,
  "province_region" text,
  "maximum_seating_capacity" text,
  "year_opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum capacity of the San Agustin Gym?`:
```sql
                SELECT "maximum_seating_capacity" FROM "on_campus_arenas" WHERE "arena_venue"='san agustin gym';
```
## Task
Generate a SQL query to answer the following question:
`Where is the Cagayan de Oro city located?`

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

CREATE TABLE "on_campus_arenas" (
  "arena_venue" text,
  "home_campus" text,
  "location" text,
  "province_region" text,
  "maximum_seating_capacity" text,
  "year_opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the Cagayan de Oro city located?`:
```sql
                SELECT "province_region" FROM "on_campus_arenas" WHERE "location"='cagayan de oro city';
```
## Task
Generate a SQL query to answer the following question:
`Where is the Holy Cross of Davao College campus located?`

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

CREATE TABLE "on_campus_arenas" (
  "arena_venue" text,
  "home_campus" text,
  "location" text,
  "province_region" text,
  "maximum_seating_capacity" text,
  "year_opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the Holy Cross of Davao College campus located?`:
```sql
                SELECT "province_region" FROM "on_campus_arenas" WHERE "home_campus"='holy cross of davao college';
```
## Task
Generate a SQL query to answer the following question:
`Which campus has the San Agustin gym?`

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

CREATE TABLE "on_campus_arenas" (
  "arena_venue" text,
  "home_campus" text,
  "location" text,
  "province_region" text,
  "maximum_seating_capacity" text,
  "year_opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which campus has the San Agustin gym?`:
```sql
                SELECT "home_campus" FROM "on_campus_arenas" WHERE "arena_venue"='san agustin gym';
```
## Task
Generate a SQL query to answer the following question:
`What year did the San Agustin gym open?`

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

CREATE TABLE "on_campus_arenas" (
  "arena_venue" text,
  "home_campus" text,
  "location" text,
  "province_region" text,
  "maximum_seating_capacity" text,
  "year_opened" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the San Agustin gym open?`:
```sql
                SELECT "year_opened" FROM "on_campus_arenas" WHERE "arena_venue"='san agustin gym';
```
## Task
Generate a SQL query to answer the following question:
`Which player has a total bigger than 285 and a to par of +14?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a total bigger than 285 and a to par of +14?`:
```sql
                SELECT "player" FROM "made_the_cut" WHERE "total">285 AND "to_par"='+14';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest total with a t12 finish?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total with a t12 finish?`:
```sql
                SELECT MAX("total") FROM "made_the_cut" WHERE "finish"='t12';
```
## Task
Generate a SQL query to answer the following question:
`Which country has a finish of t4?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has a finish of t4?`:
```sql
                SELECT "country" FROM "made_the_cut" WHERE "finish"='t4';
```
## Task
Generate a SQL query to answer the following question:
`What year won has a total less than 281?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year won has a total less than 281?`:
```sql
                SELECT "year_s_won" FROM "made_the_cut" WHERE "total"<281;
```
## Task
Generate a SQL query to answer the following question:
`Which chassis is ranked 24th?`

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

CREATE TABLE "cart" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "rank" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which chassis is ranked 24th?`:
```sql
                SELECT "chassis" FROM "cart" WHERE "rank"='24th';
```
## Task
Generate a SQL query to answer the following question:
`Which chassis was made in 1993?`

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

CREATE TABLE "cart" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "rank" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which chassis was made in 1993?`:
```sql
                SELECT "chassis" FROM "cart" WHERE "year"=1993;
```