cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the year with a Kurtis Kraft 500a chassis, and less than 1.5 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year with a Kurtis Kraft 500a chassis, and less than 1.5 points?`:
```sql
                SELECT SUM("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='kurtis kraft 500a' AND "points"<1.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the year with a kurtis kraft 500a chassis?`

### 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 year with a kurtis kraft 500a chassis?`:
```sql
                SELECT SUM("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='kurtis kraft 500a';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Pick # of Saint Vincent College?`

### 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 lowest Pick # of Saint Vincent College?`:
```sql
                SELECT MIN("pick_num") FROM "indianapolis_colts_draft_history" WHERE "college"='saint vincent college';
```
## Task
Generate a SQL query to answer the following question:
`What is the Overall for Pick # less than 5 Jack Harmon?`

### 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 for Pick # less than 5 Jack Harmon?`:
```sql
                SELECT MIN("overall") FROM "indianapolis_colts_draft_history" WHERE "name"='jack harmon' AND "pick_num"<5;
```
## Task
Generate a SQL query to answer the following question:
`Which rank has a Total GDP (€ bn) of €11.243??`

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

CREATE TABLE "eurostat_data_for_2009" (
  "rank" text,
  "region" text,
  "total_gdp_bn" text,
  "pct_growth" text,
  "per_capita" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rank has a Total GDP (€ bn) of €11.243??`:
```sql
                SELECT "rank" FROM "eurostat_data_for_2009" WHERE "total_gdp_bn"='€11.243';
```
## Task
Generate a SQL query to answer the following question:
`What is the Region that has a Total GDP (€ bn ) of €11,745.353?`

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

CREATE TABLE "eurostat_data_for_2009" (
  "rank" text,
  "region" text,
  "total_gdp_bn" text,
  "pct_growth" text,
  "per_capita" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Region that has a Total GDP (€ bn ) of €11,745.353?`:
```sql
                SELECT "region" FROM "eurostat_data_for_2009" WHERE "total_gdp_bn"='€11,745.353';
```
## Task
Generate a SQL query to answer the following question:
`Which Region that has a growth of −3.6%?`

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

CREATE TABLE "eurostat_data_for_2009" (
  "rank" text,
  "region" text,
  "total_gdp_bn" text,
  "pct_growth" text,
  "per_capita" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Region that has a growth of −3.6%?`:
```sql
                SELECT "region" FROM "eurostat_data_for_2009" WHERE "pct_growth"='−3.6';
```
## Task
Generate a SQL query to answer the following question:
`What is the per capita of Greece?`

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

CREATE TABLE "eurostat_data_for_2009" (
  "rank" text,
  "region" text,
  "total_gdp_bn" text,
  "pct_growth" text,
  "per_capita" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the per capita of Greece?`:
```sql
                SELECT "per_capita" FROM "eurostat_data_for_2009" WHERE "region"='greece';
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of silver medals received by a nation who received 40 bronze medals and more than 42 gold medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of silver medals received by a nation who received 40 bronze medals and more than 42 gold medals?`:
```sql
                SELECT MIN("silver") FROM "medal_table" WHERE "bronze"=40 AND "gold">42;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of silver medals received by Austria when they receive more than 3 total medals, more than 22 bronze medals, and fewer than 395 gold medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of silver medals received by Austria when they receive more than 3 total medals, more than 22 bronze medals, and fewer than 395 gold medals?`:
```sql
                SELECT MIN("silver") FROM "medal_table" WHERE "total">3 AND "bronze">22 AND "gold"<395 AND "nation"='austria';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of silver medals with more than 6 gold meals and less than 5 bronze medals?`

### 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 silver medals with more than 6 gold meals and less than 5 bronze medals?`:
```sql
                SELECT AVG("silver") FROM "medal_table" WHERE "gold">6 AND "bronze"<5;
```
## Task
Generate a SQL query to answer the following question:
`How many ranks are for Switzerland with more than 2 total medals?`

### 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 `How many ranks are for Switzerland with more than 2 total medals?`:
```sql
                SELECT COUNT("rank") FROM "medal_table" WHERE "nation"='switzerland' AND "total">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the event of the match with a round larger than 2 and ended with a method of ko (kick)?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the event of the match with a round larger than 2 and ended with a method of ko (kick)?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "round">2 AND "method"='ko (kick)';
```
## Task
Generate a SQL query to answer the following question:
`What is the method of the match after round 1 in the k-1 andy memorial 2001 japan gp final?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the method of the match after round 1 in the k-1 andy memorial 2001 japan gp final?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "round">1 AND "event"='k-1 andy memorial 2001 japan gp final';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest round of the match with Rene Rooze as the opponent in Saitama, Japan?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round of the match with Rene Rooze as the opponent in Saitama, Japan?`:
```sql
                SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "opponent"='rene rooze' AND "location"='saitama, japan';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest round of the match with a time of 0:57?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round of the match with a time of 0:57?`:
```sql
                SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "time"='0:57';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the Club score that has a try bonus of 7 and 52 tries for ?`

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

CREATE TABLE "2011_2012_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 Club score that has a try bonus of 7 and 52 tries for ?`:
```sql
                SELECT "points_for" FROM "2011_2012_table" WHERE "tries_for"='52' AND "try_bonus"='7';
```
## Task
Generate a SQL query to answer the following question:
`What is the Losing bonus of the club that has 80 tries against ?`

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

CREATE TABLE "2011_2012_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 Losing bonus of the club that has 80 tries against ?`:
```sql
                SELECT "losing_bonus" FROM "2011_2012_table" WHERE "tries_against"='80';
```
## Task
Generate a SQL query to answer the following question:
`How many tries for does waunarlwydd rfc have ?`

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

CREATE TABLE "2011_2012_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 tries for does waunarlwydd rfc have ?`:
```sql
                SELECT "tries_for" FROM "2011_2012_table" WHERE "club"='waunarlwydd rfc';
```
## Task
Generate a SQL query to answer the following question:
`How many losses did the club with 47 points have ?`

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

CREATE TABLE "2011_2012_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 losses did the club with 47 points have ?`:
```sql
                SELECT "lost" FROM "2011_2012_table" WHERE "points"='47';
```
## Task
Generate a SQL query to answer the following question:
`How many points against does the club that has a try bonus of 6 and tries against of 54 have ?`

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

CREATE TABLE "2011_2012_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 against does the club that has a try bonus of 6 and tries against of 54 have ?`:
```sql
                SELECT "points_against" FROM "2011_2012_table" WHERE "try_bonus"='6' AND "tries_against"='54';
```
## Task
Generate a SQL query to answer the following question:
`Who were the co-drivers in 2008?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the co-drivers in 2008?`:
```sql
                SELECT "co_drivers" FROM "24_hours_of_le_mans_results" WHERE "year"=2008;
```
## Task
Generate a SQL query to answer the following question:
`What was the position in 2006?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position in 2006?`:
```sql
                SELECT "pos" FROM "24_hours_of_le_mans_results" WHERE "year"=2006;
```
## Task
Generate a SQL query to answer the following question:
`What was the class when there were 325 laps?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the class when there were 325 laps?`:
```sql
                SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "laps"=325;
```
## Task
Generate a SQL query to answer the following question:
`What was the position in a year after 2005 with a class position of 5th?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position in a year after 2005 with a class position of 5th?`:
```sql
                SELECT "pos" FROM "24_hours_of_le_mans_results" WHERE "year">2005 AND "class_pos"='5th';
```
## Task
Generate a SQL query to answer the following question:
`What is the English title of the film from 2001?`

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

CREATE TABLE "2000s" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "director_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the English title of the film from 2001?`:
```sql
                SELECT "english_title" FROM "2000s" WHERE "year"=2001;
```
## Task
Generate a SQL query to answer the following question:
`What is the original title of the film from Japan/Taiwan before 2003?`

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

CREATE TABLE "2000s" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "director_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original title of the film from Japan/Taiwan before 2003?`:
```sql
                SELECT "original_title" FROM "2000s" WHERE "year"<2003 AND "country"='japan/taiwan';
```
## Task
Generate a SQL query to answer the following question:
`What is the English title of the film directed by Fernando Meirelles?`

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

CREATE TABLE "2000s" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "director_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the English title of the film directed by Fernando Meirelles?`:
```sql
                SELECT "english_title" FROM "2000s" WHERE "director_s"='fernando meirelles';
```
## Task
Generate a SQL query to answer the following question:
`What is the country of the original title Cidade de deus?`

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

CREATE TABLE "2000s" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "director_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country of the original title Cidade de deus?`:
```sql
                SELECT "country" FROM "2000s" WHERE "original_title"='cidade de deus';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year of a film from Mexico?`

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

CREATE TABLE "2000s" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "director_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year of a film from Mexico?`:
```sql
                SELECT MIN("year") FROM "2000s" WHERE "country"='mexico';
```
## Task
Generate a SQL query to answer the following question:
`What is the average year of the film from France/Hong Kong?`

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

CREATE TABLE "2000s" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "director_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year of the film from France/Hong Kong?`:
```sql
                SELECT AVG("year") FROM "2000s" WHERE "country"='france/hong kong';
```
## Task
Generate a SQL query to answer the following question:
`Name the country for t3 place`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country for t3 place`:
```sql
                SELECT "country" FROM "second_round" WHERE "place"='t3';
```
## Task
Generate a SQL query to answer the following question:
`Name the country with +2 to par`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country with +2 to par`:
```sql
                SELECT "country" FROM "second_round" WHERE "to_par"='+2';
```
## Task
Generate a SQL query to answer the following question:
`Name the to par for colin montgomerie`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the to par for colin montgomerie`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "player"='colin montgomerie';
```
## Task
Generate a SQL query to answer the following question:
`Name the score for scotland`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for scotland`:
```sql
                SELECT "score" FROM "second_round" WHERE "country"='scotland';
```
## Task
Generate a SQL query to answer the following question:
`What island has a population over 76, a height over 210, and an area larger than 12068?`

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

CREATE TABLE "main_list" (
  "island" text,
  "location" text,
  "area_ha" real,
  "population" real,
  "height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What island has a population over 76, a height over 210, and an area larger than 12068?`:
```sql
                SELECT "island" FROM "main_list" WHERE "population">76 AND "height_m">210 AND "area_ha">12068;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest population of Trondra Island in the Scalloway Islands?`

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

CREATE TABLE "main_list" (
  "island" text,
  "location" text,
  "area_ha" real,
  "population" real,
  "height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest population of Trondra Island in the Scalloway Islands?`:
```sql
                SELECT MAX("population") FROM "main_list" WHERE "location"='scalloway islands' AND "island"='trondra';
```
## Task
Generate a SQL query to answer the following question:
`How many matches were drawn associated with a percentage of 7.14% and more than 12 losses?`

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

CREATE TABLE "rugby_spain_internationals_1989" (
  "first_game" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many matches were drawn associated with a percentage of 7.14% and more than 12 losses?`:
```sql
                SELECT COUNT("drawn") FROM "rugby_spain_internationals_1989" WHERE "percentage"='7.14%' AND "lost">12;
```
## Task
Generate a SQL query to answer the following question:
`Which percentage has a first game before 1997, fewer than 2 losses, and fewer than 5 matches played?`

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

CREATE TABLE "rugby_spain_internationals_1989" (
  "first_game" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which percentage has a first game before 1997, fewer than 2 losses, and fewer than 5 matches played?`:
```sql
                SELECT "percentage" FROM "rugby_spain_internationals_1989" WHERE "first_game"<1997 AND "lost"<2 AND "played"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of drawn matches from first game years before 2006 and fewer than 2 matches played?`

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

CREATE TABLE "rugby_spain_internationals_1989" (
  "first_game" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of drawn matches from first game years before 2006 and fewer than 2 matches played?`:
```sql
                SELECT SUM("drawn") FROM "rugby_spain_internationals_1989" WHERE "first_game"<2006 AND "played"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of losses associated with 2 matches played, a first game after 1997, and more than 0 draws?`

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

CREATE TABLE "rugby_spain_internationals_1989" (
  "first_game" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of losses associated with 2 matches played, a first game after 1997, and more than 0 draws?`:
```sql
                SELECT MAX("lost") FROM "rugby_spain_internationals_1989" WHERE "played"=2 AND "first_game">1997 AND "drawn">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the Result of the Test match at the Edgbaston Venue on 5,6,7,8 June 1997?`

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

CREATE TABLE "australia_in_england" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result of the Test match at the Edgbaston Venue on 5,6,7,8 June 1997?`:
```sql
                SELECT "result" FROM "australia_in_england" WHERE "date"='5,6,7,8 june 1997';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the Test match of Australia in England at The Oval Venue?`

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

CREATE TABLE "australia_in_england" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the Test match of Australia in England at The Oval Venue?`:
```sql
                SELECT "date" FROM "australia_in_england" WHERE "venue"='the oval';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Away captain for the Test match of Australia in England where the Result was AUS by 264 runs?`

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

CREATE TABLE "australia_in_england" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Away captain for the Test match of Australia in England where the Result was AUS by 264 runs?`:
```sql
                SELECT "away_captain" FROM "australia_in_england" WHERE "result"='aus by 264 runs';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Home captain for the Test match of Australia in England at the Edgbaston Venue?`

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

CREATE TABLE "australia_in_england" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Home captain for the Test match of Australia in England at the Edgbaston Venue?`:
```sql
                SELECT "home_captain" FROM "australia_in_england" WHERE "venue"='edgbaston';
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the role that has co-protagonist in the notes field and the years of 2008-2009?`

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

CREATE TABLE "telenovelas" (
  "year" text,
  "title" text,
  "production_company" text,
  "role" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the role that has co-protagonist in the notes field and the years of 2008-2009?`:
```sql
                SELECT "role" FROM "telenovelas" WHERE "notes"='co-protagonist' AND "year"='2008-2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the role that has a Title of Olvidarte Jamas?`

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

CREATE TABLE "telenovelas" (
  "year" text,
  "title" text,
  "production_company" text,
  "role" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the role that has a Title of Olvidarte Jamas?`:
```sql
                SELECT "role" FROM "telenovelas" WHERE "title"='olvidarte jamas';
```
## Task
Generate a SQL query to answer the following question:
`Which production company has the year of 2005 listed?`

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

CREATE TABLE "telenovelas" (
  "year" text,
  "title" text,
  "production_company" text,
  "role" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which production company has the year of 2005 listed?`:
```sql
                SELECT "production_company" FROM "telenovelas" WHERE "year"='2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the role that has a Title of Salud, Dinero y Amor and antagonist in the notes field?`

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

CREATE TABLE "telenovelas" (
  "year" text,
  "title" text,
  "production_company" text,
  "role" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the role that has a Title of Salud, Dinero y Amor and antagonist in the notes field?`:
```sql
                SELECT "role" FROM "telenovelas" WHERE "notes"='antagonist' AND "title"='salud, dinero y amor';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the production company that has a year of 2008-2009?`

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

CREATE TABLE "telenovelas" (
  "year" text,
  "title" text,
  "production_company" text,
  "role" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the production company that has a year of 2008-2009?`:
```sql
                SELECT "production_company" FROM "telenovelas" WHERE "year"='2008-2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the Authority for Kuranui Primary School that is located in the Area of Tirau?`

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

CREATE TABLE "south_waikato_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Authority for Kuranui Primary School that is located in the Area of Tirau?`:
```sql
                SELECT "authority" FROM "south_waikato_district" WHERE "area"='tirau' AND "name"='kuranui primary school';
```
## Task
Generate a SQL query to answer the following question:
`Which Names have Deciles larger than 7?`

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

CREATE TABLE "south_waikato_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Names have Deciles larger than 7?`:
```sql
                SELECT "name" FROM "south_waikato_district" WHERE "decile">7;
```
## Task
Generate a SQL query to answer the following question:
`What Gender are the schools that have a Roll of 135?`

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

CREATE TABLE "south_waikato_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Gender are the schools that have a Roll of 135?`:
```sql
                SELECT "gender" FROM "south_waikato_district" WHERE "roll"='135';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of a state Authority that has a Roll of 72?`

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

CREATE TABLE "south_waikato_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of a state Authority that has a Roll of 72?`:
```sql
                SELECT "name" FROM "south_waikato_district" WHERE "authority"='state' AND "roll"='72';
```
## Task
Generate a SQL query to answer the following question:
`Which friendly competition took place on 19 April 1979?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which friendly competition took place on 19 April 1979?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='friendly' AND "date"='19 april 1979';
```
## Task
Generate a SQL query to answer the following question:
`Which Team 1 has a first leg of 1-0 and a second leg of 0-2?`

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

CREATE TABLE "second_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team 1 has a first leg of 1-0 and a second leg of 0-2?`:
```sql
                SELECT "team_1" FROM "second_round" WHERE "1st_leg"='1-0' AND "2nd_leg"='0-2';
```
## Task
Generate a SQL query to answer the following question:
`Which Team 1 faced Dynamos FC?`

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

CREATE TABLE "second_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team 1 faced Dynamos FC?`:
```sql
                SELECT "team_1" FROM "second_round" WHERE "team_2"='dynamos fc';
```
## Task
Generate a SQL query to answer the following question:
`What is Team 1 Al-Hilal's Agg.?`

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

CREATE TABLE "second_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team 1 Al-Hilal's Agg.?`:
```sql
                SELECT "agg" FROM "second_round" WHERE "team_1"='al-hilal';
```
## Task
Generate a SQL query to answer the following question:
`What Team 2 has a second leg of 1-0?`

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

CREATE TABLE "second_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Team 2 has a second leg of 1-0?`:
```sql
                SELECT "team_2" FROM "second_round" WHERE "2nd_leg"='1-0';
```
## Task
Generate a SQL query to answer the following question:
`What Team 2 has a second leg of 3-1?`

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

CREATE TABLE "second_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Team 2 has a second leg of 3-1?`:
```sql
                SELECT "team_2" FROM "second_round" WHERE "2nd_leg"='3-1';
```
## Task
Generate a SQL query to answer the following question:
`Which record happened on the date of May 7?`

### 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 `Which record happened on the date of May 7?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='may 7';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament had Lubomira Bacheva as the opponent in the final?`

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

CREATE TABLE "singles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had Lubomira Bacheva as the opponent in the final?`:
```sql
                SELECT "tournament" FROM "singles" WHERE "opponent_in_the_final"='lubomira bacheva';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in the final on 5 July 1992?`

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

CREATE TABLE "singles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in the final on 5 July 1992?`:
```sql
                SELECT "opponent_in_the_final" FROM "singles" WHERE "date"='5 july 1992';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the tournament where Kyoko Nagatsuka was the opponent in the final?`

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

CREATE TABLE "singles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the tournament where Kyoko Nagatsuka was the opponent in the final?`:
```sql
                SELECT "date" FROM "singles" WHERE "opponent_in_the_final"='kyoko nagatsuka';
```
## Task
Generate a SQL query to answer the following question:
`What is the surface at the tournament of Vaihingen?`

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

CREATE TABLE "singles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface at the tournament of Vaihingen?`:
```sql
                SELECT "surface" FROM "singles" WHERE "tournament"='vaihingen';
```
## Task
Generate a SQL query to answer the following question:
`What was the surface of the tournament where Anna Benzon was the opponent in the final?`

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

CREATE TABLE "singles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface of the tournament where Anna Benzon was the opponent in the final?`:
```sql
                SELECT "surface" FROM "singles" WHERE "opponent_in_the_final"='anna benzon';
```
## Task
Generate a SQL query to answer the following question:
`What is the average position of Eesti Põlevkivi Jõhvi when they had less than 13 points and worse than a -12 goal differential?`

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

CREATE TABLE "eesti_p_levkivi_j_hvi_in_estonian_footba" (
  "year" text,
  "league" text,
  "position" real,
  "goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average position of Eesti Põlevkivi Jõhvi when they had less than 13 points and worse than a -12 goal differential?`:
```sql
                SELECT AVG("position") FROM "eesti_p_levkivi_j_hvi_in_estonian_footba" WHERE "points"<13 AND "goals">-12;
```
## Task
Generate a SQL query to answer the following question:
`What is the to par for the player who had a score of 70-72-70-69=281?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par for the player who had a score of 70-72-70-69=281?`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "score"='70-72-70-69=281';
```
## Task
Generate a SQL query to answer the following question:
`What year had the qual of totals`

### 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 year had the qual of totals`:
```sql
                SELECT "year" FROM "indy_500_results" WHERE "qual"='totals';
```
## Task
Generate a SQL query to answer the following question:
`What qual had a finish of 16 in 1968?`

### 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 qual had a finish of 16 in 1968?`:
```sql
                SELECT "qual" FROM "indy_500_results" WHERE "finish"='16' AND "year"='1968';
```
## Task
Generate a SQL query to answer the following question:
`What was the finish with the start of 25 and a lap larger than 46?`

### 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 finish with the start of 25 and a lap larger than 46?`:
```sql
                SELECT "finish" FROM "indy_500_results" WHERE "start"='25' AND "laps">46;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest lap with the ranking of 19?`

### 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 lowest lap with the ranking of 19?`:
```sql
                SELECT MIN("laps") FROM "indy_500_results" WHERE "start"='19';
```
## Task
Generate a SQL query to answer the following question:
`Name the least ovrs for wkts of 0`

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

CREATE TABLE "one_day_internationals" (
  "player" text,
  "wkts" real,
  "runs" real,
  "econ" real,
  "ovrs" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least ovrs for wkts of 0`:
```sql
                SELECT MIN("ovrs") FROM "one_day_internationals" WHERE "wkts"=0;
```
## Task
Generate a SQL query to answer the following question:
`Name the average econ for runs more than 703 and ovrs more than 25.5`

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

CREATE TABLE "one_day_internationals" (
  "player" text,
  "wkts" real,
  "runs" real,
  "econ" real,
  "ovrs" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average econ for runs more than 703 and ovrs more than 25.5`:
```sql
                SELECT AVG("econ") FROM "one_day_internationals" WHERE "ovrs">25.5 AND "runs">703;
```
## Task
Generate a SQL query to answer the following question:
`What is the average year that has a car that won 0 stages with a position of DNF?`

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

CREATE TABLE "dakar_rally_results" (
  "year" real,
  "class" text,
  "vehicle" text,
  "position" text,
  "stages_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year that has a car that won 0 stages with a position of DNF?`:
```sql
                SELECT AVG("year") FROM "dakar_rally_results" WHERE "class"='car' AND "stages_won"='0' AND "position"='dnf';
```
## Task
Generate a SQL query to answer the following question:
`What is the class that that won 2 stages and has a position of DNF?`

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

CREATE TABLE "dakar_rally_results" (
  "year" real,
  "class" text,
  "vehicle" text,
  "position" text,
  "stages_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class that that won 2 stages and has a position of DNF?`:
```sql
                SELECT "class" FROM "dakar_rally_results" WHERE "stages_won"='2' AND "position"='dnf';
```
## Task
Generate a SQL query to answer the following question:
`What position did the BMW vehicle made in 2006 hold?`

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

CREATE TABLE "dakar_rally_results" (
  "year" real,
  "class" text,
  "vehicle" text,
  "position" text,
  "stages_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the BMW vehicle made in 2006 hold?`:
```sql
                SELECT "position" FROM "dakar_rally_results" WHERE "vehicle"='bmw' AND "year"=2006;
```
## Task
Generate a SQL query to answer the following question:
`Which builder has a Fuel Propulsion of diesel, a Model of d40lf, and an Order Year of 2005?`

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

CREATE TABLE "current_fleet_roster" (
  "builder" text,
  "model" text,
  "length_ft_m" text,
  "order_year" text,
  "fuel_propulsion" text,
  "fleet_series_quantity" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which builder has a Fuel Propulsion of diesel, a Model of d40lf, and an Order Year of 2005?`:
```sql
                SELECT "builder" FROM "current_fleet_roster" WHERE "fuel_propulsion"='diesel' AND "model"='d40lf' AND "order_year"='2005';
```