cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which GDP per capita (US$) (2004) is the highest one that has an Area (km²) larger than 148825.6, and a State of roraima?`

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

CREATE TABLE "states_of_brazil" (
  "state" text,
  "abbreviation" text,
  "capital" text,
  "area_km" real,
  "population_2005" real,
  "density_2005" real,
  "gdp_pct_total_2004" text,
  "gdp_per_capita_us_2004" real,
  "hdi_2005" real,
  "literacy_2003" text,
  "infant_mortality_2002" text,
  "life_expectancy_2004" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which GDP per capita (US$) (2004) is the highest one that has an Area (km²) larger than 148825.6, and a State of roraima?`:
```sql
                SELECT MAX("gdp_per_capita_us_2004") FROM "states_of_brazil" WHERE "area_km">148825.6 AND "state"='roraima';
```
## Task
Generate a SQL query to answer the following question:
`Which Literacy (2003) has an HDI (2005) smaller than 0.718, and a GDP per capita (US$) (2004) smaller than 3877, and a State of maranhão?`

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

CREATE TABLE "states_of_brazil" (
  "state" text,
  "abbreviation" text,
  "capital" text,
  "area_km" real,
  "population_2005" real,
  "density_2005" real,
  "gdp_pct_total_2004" text,
  "gdp_per_capita_us_2004" real,
  "hdi_2005" real,
  "literacy_2003" text,
  "infant_mortality_2002" text,
  "life_expectancy_2004" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Literacy (2003) has an HDI (2005) smaller than 0.718, and a GDP per capita (US$) (2004) smaller than 3877, and a State of maranhão?`:
```sql
                SELECT "literacy_2003" FROM "states_of_brazil" WHERE "hdi_2005"<0.718 AND "gdp_per_capita_us_2004"<3877 AND "state"='maranhão';
```
## Task
Generate a SQL query to answer the following question:
`Which GDP per capita (US$) (2004) has a Literacy (2003) of 90%, and an Area (km²) of 1247689.5?`

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

CREATE TABLE "states_of_brazil" (
  "state" text,
  "abbreviation" text,
  "capital" text,
  "area_km" real,
  "population_2005" real,
  "density_2005" real,
  "gdp_pct_total_2004" text,
  "gdp_per_capita_us_2004" real,
  "hdi_2005" real,
  "literacy_2003" text,
  "infant_mortality_2002" text,
  "life_expectancy_2004" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which GDP per capita (US$) (2004) has a Literacy (2003) of 90%, and an Area (km²) of 1247689.5?`:
```sql
                SELECT AVG("gdp_per_capita_us_2004") FROM "states_of_brazil" WHERE "literacy_2003"='90%' AND "area_km"=1247689.5;
```
## Task
Generate a SQL query to answer the following question:
`Name the Date and an Opponent which has a f Position and Career Games of 123 games?`

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

CREATE TABLE "career_points_leaders" (
  "total_points" real,
  "name" text,
  "career_games" text,
  "position" text,
  "years_played" text,
  "scored_1_500_points" text,
  "date_and_opponent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Date and an Opponent which has a f Position and Career Games of 123 games?`:
```sql
                SELECT "date_and_opponent" FROM "career_points_leaders" WHERE "position"='f' AND "career_games"='123 games';
```
## Task
Generate a SQL query to answer the following question:
`Which Name has a Years Played of 2004–2008, and a Date and Opponent of 2/17/07 vs. purdue?`

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

CREATE TABLE "career_points_leaders" (
  "total_points" real,
  "name" text,
  "career_games" text,
  "position" text,
  "years_played" text,
  "scored_1_500_points" text,
  "date_and_opponent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has a Years Played of 2004–2008, and a Date and Opponent of 2/17/07 vs. purdue?`:
```sql
                SELECT "name" FROM "career_points_leaders" WHERE "years_played"='2004–2008' AND "date_and_opponent"='2/17/07 vs. purdue';
```
## Task
Generate a SQL query to answer the following question:
`Which Career Games has a Scored 1,500 Points of sr./92nd game?`

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

CREATE TABLE "career_points_leaders" (
  "total_points" real,
  "name" text,
  "career_games" text,
  "position" text,
  "years_played" text,
  "scored_1_500_points" text,
  "date_and_opponent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Career Games has a Scored 1,500 Points of sr./92nd game?`:
```sql
                SELECT "career_games" FROM "career_points_leaders" WHERE "scored_1_500_points"='sr./92nd game';
```
## Task
Generate a SQL query to answer the following question:
`Which Career Games has a Date and Opponent of 12/15/92 vs. uw–milwaukee?`

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

CREATE TABLE "career_points_leaders" (
  "total_points" real,
  "name" text,
  "career_games" text,
  "position" text,
  "years_played" text,
  "scored_1_500_points" text,
  "date_and_opponent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Career Games has a Date and Opponent of 12/15/92 vs. uw–milwaukee?`:
```sql
                SELECT "career_games" FROM "career_points_leaders" WHERE "date_and_opponent"='12/15/92 vs. uw–milwaukee';
```
## Task
Generate a SQL query to answer the following question:
`WHich Scored 1,500 Points has a Years Played of 2004–2008 and a Name of jolene anderson?`

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

CREATE TABLE "career_points_leaders" (
  "total_points" real,
  "name" text,
  "career_games" text,
  "position" text,
  "years_played" text,
  "scored_1_500_points" text,
  "date_and_opponent" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Scored 1,500 Points has a Years Played of 2004–2008 and a Name of jolene anderson?`:
```sql
                SELECT "scored_1_500_points" FROM "career_points_leaders" WHERE "years_played"='2004–2008' AND "name"='jolene anderson';
```
## Task
Generate a SQL query to answer the following question:
`Which Time has a Round smaller than 3, and an Opponent of bao quach?`

### 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 `Which Time has a Round smaller than 3, and an Opponent of bao quach?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"<3 AND "opponent"='bao quach';
```
## Task
Generate a SQL query to answer the following question:
`Which Round has a Record of 10-6?`

### 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 `Which Round has a Record of 10-6?`:
```sql
                SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "record"='10-6';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Round smaller than 3, and a Time of 1:09?`

### 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 `Which Opponent has a Round smaller than 3, and a Time of 1:09?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"<3 AND "time"='1:09';
```
## Task
Generate a SQL query to answer the following question:
`Which Time has an Opponent of josh branham?`

### 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 `Which Time has an Opponent of josh branham?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='josh branham';
```
## Task
Generate a SQL query to answer the following question:
`Which Time has a Round larger than 2, and an Opponent of jesse brock?`

### 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 `Which Time has a Round larger than 2, and an Opponent of jesse brock?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "round">2 AND "opponent"='jesse brock';
```
## Task
Generate a SQL query to answer the following question:
`Which Round has an Event of nle - capital city carnage?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has an Event of nle - capital city carnage?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "event"='nle - capital city carnage';
```
## Task
Generate a SQL query to answer the following question:
`Which Round has an Opponent of ryan bixler?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has an Opponent of ryan bixler?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='ryan bixler';
```
## Task
Generate a SQL query to answer the following question:
`Which Event has a Record of 19-9?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Event has a Record of 19-9?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='19-9';
```
## Task
Generate a SQL query to answer the following question:
`Which Method has a Round of 1, and a Record of 4–2?`

### 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 `Which Method has a Round of 1, and a Record of 4–2?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "record"='4–2';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Time of 4:51?`

### 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 `Which Opponent has a Time of 4:51?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='4:51';
```
## Task
Generate a SQL query to answer the following question:
`Which Round has an Opponent of jorge magalhaes?`

### 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 `Which Round has an Opponent of jorge magalhaes?`:
```sql
                SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "opponent"='jorge magalhaes';
```
## Task
Generate a SQL query to answer the following question:
`Which Round has a Location of bahia, brazil?`

### 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 `Which Round has a Location of bahia, brazil?`:
```sql
                SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "location"='bahia, brazil';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has an Event of jungle fight 5?`

### 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 `Which Opponent has an Event of jungle fight 5?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "event"='jungle fight 5';
```
## Task
Generate a SQL query to answer the following question:
`Tiger Woods with a total less than 293 had what To par?`

### 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 `Tiger Woods with a total less than 293 had what To par?`:
```sql
                SELECT "to_par" FROM "made_the_cut" WHERE "total"<293 AND "player"='tiger woods';
```
## Task
Generate a SQL query to answer the following question:
`Bernhard Langer maximum total was what?`

### 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 `Bernhard Langer maximum total was what?`:
```sql
                SELECT MAX("total") FROM "made_the_cut" WHERE "player"='bernhard langer';
```
## Task
Generate a SQL query to answer the following question:
`What is the average of the total when t11 is the 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 average of the total when t11 is the finish?`:
```sql
                SELECT AVG("total") FROM "made_the_cut" WHERE "finish"='t11';
```
## Task
Generate a SQL query to answer the following question:
`Which Rider has Laps smaller than 24, and a Grid smaller than 12, and a Manufacturer of aprilia?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rider has Laps smaller than 24, and a Grid smaller than 12, and a Manufacturer of aprilia?`:
```sql
                SELECT "rider" FROM "125cc_classification" WHERE "laps"<24 AND "grid"<12 AND "manufacturer"='aprilia';
```
## Task
Generate a SQL query to answer the following question:
`What were grid 7's laps?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were grid 7's laps?`:
```sql
                SELECT MIN("laps") FROM "125cc_classification" WHERE "grid"=7;
```
## Task
Generate a SQL query to answer the following question:
`Which Time/Retired has Laps smaller than 24, and a Manufacturer of aprilia, and a Grid smaller than 12, and a Rider of ángel rodríguez?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Time/Retired has Laps smaller than 24, and a Manufacturer of aprilia, and a Grid smaller than 12, and a Rider of ángel rodríguez?`:
```sql
                SELECT "time_retired" FROM "125cc_classification" WHERE "laps"<24 AND "manufacturer"='aprilia' AND "grid"<12 AND "rider"='ángel rodríguez';
```
## Task
Generate a SQL query to answer the following question:
`How many Laps have a Time/Retired of +1:42.517, and a Grid larger than 33?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Laps have a Time/Retired of +1:42.517, and a Grid larger than 33?`:
```sql
                SELECT COUNT("laps") FROM "125cc_classification" WHERE "time_retired"='+1:42.517' AND "grid">33;
```
## Task
Generate a SQL query to answer the following question:
`Which chassis-engine had 77 laps?`

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

CREATE TABLE "official_results" (
  "class" text,
  "team" text,
  "driver" text,
  "chassis_engine" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which chassis-engine had 77 laps?`:
```sql
                SELECT "chassis_engine" FROM "official_results" WHERE "laps"=77;
```
## Task
Generate a SQL query to answer the following question:
`What is the class of team liqui moly equipe, which has less than 71 laps?`

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

CREATE TABLE "official_results" (
  "class" text,
  "team" text,
  "driver" text,
  "chassis_engine" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class of team liqui moly equipe, which has less than 71 laps?`:
```sql
                SELECT "class" FROM "official_results" WHERE "laps"<71 AND "team"='liqui moly equipe';
```
## Task
Generate a SQL query to answer the following question:
`What is the team of driver klaus ludwig, who is class c1 and has more than 77 laps?`

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

CREATE TABLE "official_results" (
  "class" text,
  "team" text,
  "driver" text,
  "chassis_engine" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team of driver klaus ludwig, who is class c1 and has more than 77 laps?`:
```sql
                SELECT "team" FROM "official_results" WHERE "class"='c1' AND "laps">77 AND "driver"='klaus ludwig';
```
## Task
Generate a SQL query to answer the following question:
`Who is the driver of the chassis-engine porsche 956 gti?`

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

CREATE TABLE "official_results" (
  "class" text,
  "team" text,
  "driver" text,
  "chassis_engine" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the driver of the chassis-engine porsche 956 gti?`:
```sql
                SELECT "driver" FROM "official_results" WHERE "chassis_engine"='porsche 956 gti';
```
## Task
Generate a SQL query to answer the following question:
`What team has a porsche 956 b chassis-engine with less than 79 laps?`

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

CREATE TABLE "official_results" (
  "class" text,
  "team" text,
  "driver" text,
  "chassis_engine" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team has a porsche 956 b chassis-engine with less than 79 laps?`:
```sql
                SELECT "team" FROM "official_results" WHERE "chassis_engine"='porsche 956 b' AND "laps"<79;
```
## Task
Generate a SQL query to answer the following question:
`What was the worldwide gross for the film directed by joe pytka?`

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

CREATE TABLE "highest_grossing_films_of_1996" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "worldwide_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the worldwide gross for the film directed by joe pytka?`:
```sql
                SELECT "worldwide_gross" FROM "highest_grossing_films_of_1996" WHERE "director"='joe pytka';
```
## Task
Generate a SQL query to answer the following question:
`What was the average rank for the film directed by roland emmerich under the studio of 20th century fox?`

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

CREATE TABLE "highest_grossing_films_of_1996" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "worldwide_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average rank for the film directed by roland emmerich under the studio of 20th century fox?`:
```sql
                SELECT AVG("rank") FROM "highest_grossing_films_of_1996" WHERE "studio"='20th century fox' AND "director"='roland emmerich';
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank for the film directed by michael bay?`

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

CREATE TABLE "highest_grossing_films_of_1996" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "worldwide_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank for the film directed by michael bay?`:
```sql
                SELECT AVG("rank") FROM "highest_grossing_films_of_1996" WHERE "director"='michael bay';
```
## Task
Generate a SQL query to answer the following question:
`What is the 3rd largest where the largest city is Ardabil?`

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

CREATE TABLE "largest_cities_in_the_provinces" (
  "province" text,
  "largest_city" text,
  "2nd_largest" text,
  "3rd_largest" text,
  "4th_largest" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 3rd largest where the largest city is Ardabil?`:
```sql
                SELECT "3rd_largest" FROM "largest_cities_in_the_provinces" WHERE "largest_city"='ardabil';
```
## Task
Generate a SQL query to answer the following question:
`What is the province where the 3rd largest is Savojbolagh?`

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

CREATE TABLE "largest_cities_in_the_provinces" (
  "province" text,
  "largest_city" text,
  "2nd_largest" text,
  "3rd_largest" text,
  "4th_largest" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the province where the 3rd largest is Savojbolagh?`:
```sql
                SELECT "province" FROM "largest_cities_in_the_provinces" WHERE "3rd_largest"='savojbolagh';
```
## Task
Generate a SQL query to answer the following question:
`What is the 4th largest where the 2nd largest is Minab?`

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

CREATE TABLE "largest_cities_in_the_provinces" (
  "province" text,
  "largest_city" text,
  "2nd_largest" text,
  "3rd_largest" text,
  "4th_largest" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 4th largest where the 2nd largest is Minab?`:
```sql
                SELECT "4th_largest" FROM "largest_cities_in_the_provinces" WHERE "2nd_largest"='minab';
```
## Task
Generate a SQL query to answer the following question:
`In which province is the 3rd largest Dehbarez?`

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

CREATE TABLE "largest_cities_in_the_provinces" (
  "province" text,
  "largest_city" text,
  "2nd_largest" text,
  "3rd_largest" text,
  "4th_largest" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which province is the 3rd largest Dehbarez?`:
```sql
                SELECT "province" FROM "largest_cities_in_the_provinces" WHERE "3rd_largest"='dehbarez';
```
## Task
Generate a SQL query to answer the following question:
`What is the 3rd largest when 2nd largest in Minab?`

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

CREATE TABLE "largest_cities_in_the_provinces" (
  "province" text,
  "largest_city" text,
  "2nd_largest" text,
  "3rd_largest" text,
  "4th_largest" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 3rd largest when 2nd largest in Minab?`:
```sql
                SELECT "3rd_largest" FROM "largest_cities_in_the_provinces" WHERE "2nd_largest"='minab';
```
## Task
Generate a SQL query to answer the following question:
`What province has the largest city of Birjand?`

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

CREATE TABLE "largest_cities_in_the_provinces" (
  "province" text,
  "largest_city" text,
  "2nd_largest" text,
  "3rd_largest" text,
  "4th_largest" text
);
### SQL
Given the database schema, here is the SQL query that answers `What province has the largest city of Birjand?`:
```sql
                SELECT "province" FROM "largest_cities_in_the_provinces" WHERE "largest_city"='birjand';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on september 28?`

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

CREATE TABLE "season_schedule" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on september 28?`:
```sql
                SELECT "score" FROM "season_schedule" WHERE "date"='september 28';
```
## Task
Generate a SQL query to answer the following question:
`What date was the score 29-7?`

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

CREATE TABLE "season_schedule" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the score 29-7?`:
```sql
                SELECT "date" FROM "season_schedule" WHERE "score"='29-7';
```
## Task
Generate a SQL query to answer the following question:
`How much January has a Game smaller than 37, and an Opponent of detroit red wings?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much January has a Game smaller than 37, and an Opponent of detroit red wings?`:
```sql
                SELECT COUNT("january") FROM "schedule_and_results" WHERE "game"<37 AND "opponent"='detroit red wings';
```
## Task
Generate a SQL query to answer the following question:
`Which January has an Opponent of toronto maple leafs?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which January has an Opponent of toronto maple leafs?`:
```sql
                SELECT "january" FROM "schedule_and_results" WHERE "opponent"='toronto maple leafs';
```
## Task
Generate a SQL query to answer the following question:
`Which January has an Opponent of @ detroit red wings?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which January has an Opponent of @ detroit red wings?`:
```sql
                SELECT AVG("january") FROM "schedule_and_results" WHERE "opponent"='@ detroit red wings';
```
## Task
Generate a SQL query to answer the following question:
`What date was the score won 1-2?`

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

CREATE TABLE "friendlies" (
  "date" text,
  "opponent" text,
  "venue" text,
  "score" text,
  "attendance" text,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the score won 1-2?`:
```sql
                SELECT "date" FROM "friendlies" WHERE "score"='won 1-2';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when Bornor Regis Town was the opponent?`

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

CREATE TABLE "friendlies" (
  "date" text,
  "opponent" text,
  "venue" text,
  "score" text,
  "attendance" text,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Bornor Regis Town was the opponent?`:
```sql
                SELECT "score" FROM "friendlies" WHERE "opponent"='bornor regis town';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of people in attendance when Tonbridge Angels is the opponent?`

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

CREATE TABLE "friendlies" (
  "date" text,
  "opponent" text,
  "venue" text,
  "score" text,
  "attendance" text,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of people in attendance when Tonbridge Angels is the opponent?`:
```sql
                SELECT "attendance" FROM "friendlies" WHERE "opponent"='tonbridge angels';
```
## Task
Generate a SQL query to answer the following question:
`What is the score when the attendance shows TBC, and Sidley United was the opponent?`

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

CREATE TABLE "friendlies" (
  "date" text,
  "opponent" text,
  "venue" text,
  "score" text,
  "attendance" text,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score when the attendance shows TBC, and Sidley United was the opponent?`:
```sql
                SELECT "score" FROM "friendlies" WHERE "attendance"='tbc' AND "opponent"='sidley united';
```
## Task
Generate a SQL query to answer the following question:
`What is the score when the scorers show match report?`

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

CREATE TABLE "friendlies" (
  "date" text,
  "opponent" text,
  "venue" text,
  "score" text,
  "attendance" text,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score when the scorers show match report?`:
```sql
                SELECT "score" FROM "friendlies" WHERE "scorers"='match report';
```
## Task
Generate a SQL query to answer the following question:
`Which Album has a Label of msb 801?`

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

CREATE TABLE "singles" (
  "year" real,
  "a_side" text,
  "b_side" text,
  "label" text,
  "us_pop" text,
  "album" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Album has a Label of msb 801?`:
```sql
                SELECT "album" FROM "singles" WHERE "label"='msb 801';
```
## Task
Generate a SQL query to answer the following question:
`Which Album has a Label of tumbleweed 1014?`

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

CREATE TABLE "singles" (
  "year" real,
  "a_side" text,
  "b_side" text,
  "label" text,
  "us_pop" text,
  "album" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Album has a Label of tumbleweed 1014?`:
```sql
                SELECT "album" FROM "singles" WHERE "label"='tumbleweed 1014';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the tie no was 12?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the tie no was 12?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='12';
```
## Task
Generate a SQL query to answer the following question:
`What date was the match against carlisle united?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the match against carlisle united?`:
```sql
                SELECT "date" FROM "fourth_round_proper" WHERE "away_team"='carlisle united';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team when millwall was the away team?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team when millwall was the away team?`:
```sql
                SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='millwall';
```
## Task
Generate a SQL query to answer the following question:
`What is International Trade (Millions of USD) 2011 when 2011 GDP is less than 471,890 and UN budget of 0.238% and GDP nominal less than 845,680?`

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

CREATE TABLE "members" (
  "country" text,
  "un_budget" text,
  "international_trade_millions_of_usd_2011" real,
  "gdp_nominal_millions_of_usd_2011" real,
  "gdp_ppp_millions_of_usd_2011" real,
  "population" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is International Trade (Millions of USD) 2011 when 2011 GDP is less than 471,890 and UN budget of 0.238% and GDP nominal less than 845,680?`:
```sql
                SELECT SUM("international_trade_millions_of_usd_2011") FROM "members" WHERE "gdp_ppp_millions_of_usd_2011"<'471,890' AND "un_budget"='0.238%' AND "gdp_nominal_millions_of_usd_2011"<'845,680';
```
## Task
Generate a SQL query to answer the following question:
`What category was the nominated in after 2008?`

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

CREATE TABLE "recording_career" (
  "event" text,
  "year" real,
  "category" text,
  "work" text,
  "outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What category was the nominated in after 2008?`:
```sql
                SELECT "category" FROM "recording_career" WHERE "outcome"='nominated' AND "year">2008;
```
## Task
Generate a SQL query to answer the following question:
`What year had the supernova award?`

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

CREATE TABLE "recording_career" (
  "event" text,
  "year" real,
  "category" text,
  "work" text,
  "outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had the supernova award?`:
```sql
                SELECT "year" FROM "recording_career" WHERE "category"='supernova award';
```
## Task
Generate a SQL query to answer the following question:
`What category was the winner in?`

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

CREATE TABLE "recording_career" (
  "event" text,
  "year" real,
  "category" text,
  "work" text,
  "outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What category was the winner in?`:
```sql
                SELECT "category" FROM "recording_career" WHERE "outcome"='winner';
```
## Task
Generate a SQL query to answer the following question:
`what is the country when the iata is gva?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the country when the iata is gva?`:
```sql
                SELECT "country" FROM "destinations" WHERE "iata"='gva';
```
## Task
Generate a SQL query to answer the following question:
`what is the country for the city of cardiff?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the country for the city of cardiff?`:
```sql
                SELECT "country" FROM "destinations" WHERE "city"='cardiff';
```
## Task
Generate a SQL query to answer the following question:
`what is the icao when the country is norway?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the icao when the country is norway?`:
```sql
                SELECT "icao" FROM "destinations" WHERE "country"='norway';
```
## Task
Generate a SQL query to answer the following question:
`what is the city for the country of netherlands?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the city for the country of netherlands?`:
```sql
                SELECT "city" FROM "destinations" WHERE "country"='netherlands';
```
## Task
Generate a SQL query to answer the following question:
`what is the airport when the city is düsseldorf?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the airport when the city is düsseldorf?`:
```sql
                SELECT "airport" FROM "destinations" WHERE "city"='düsseldorf';
```
## Task
Generate a SQL query to answer the following question:
`what is the iata when the city is leipzig?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the iata when the city is leipzig?`:
```sql
                SELECT "iata" FROM "destinations" WHERE "city"='leipzig';
```
## Task
Generate a SQL query to answer the following question:
`What is the record on February 23?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record on February 23?`:
```sql
                SELECT "record" FROM "schedule_and_results" WHERE "february"=23;
```
## Task
Generate a SQL query to answer the following question:
`What was the rank of the rider whose ascent time was 43:24 before the year 2002?`

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

CREATE TABLE "fastest_ascents_of_the_angliru" (
  "rank" real,
  "year" real,
  "ascent_time" text,
  "speed" text,
  "rider" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of the rider whose ascent time was 43:24 before the year 2002?`:
```sql
                SELECT COUNT("rank") FROM "fastest_ascents_of_the_angliru" WHERE "year"<2002 AND "ascent_time"='43:24';
```
## Task
Generate a SQL query to answer the following question:
`Who is the rider that has a rank of less than 8 in the year 2000, and whose speed was 18.32 km/h?`

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

CREATE TABLE "fastest_ascents_of_the_angliru" (
  "rank" real,
  "year" real,
  "ascent_time" text,
  "speed" text,
  "rider" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the rider that has a rank of less than 8 in the year 2000, and whose speed was 18.32 km/h?`:
```sql
                SELECT "rider" FROM "fastest_ascents_of_the_angliru" WHERE "rank"<8 AND "year"=2000 AND "speed"='18.32 km/h';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of completions and attempts taken in 2009?`

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

CREATE TABLE "college" (
  "season" text,
  "gp_gs" text,
  "comp_att" text,
  "pct" text,
  "yards" text,
  "long" text,
  "avg_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of completions and attempts taken in 2009?`:
```sql
                SELECT "comp_att" FROM "college" WHERE "season"='2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the completion/attempts value for the year with an average per game of 36.5?`

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

CREATE TABLE "college" (
  "season" text,
  "gp_gs" text,
  "comp_att" text,
  "pct" text,
  "yards" text,
  "long" text,
  "avg_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the completion/attempts value for the year with an average per game of 36.5?`:
```sql
                SELECT "comp_att" FROM "college" WHERE "avg_g"='36.5';
```
## Task
Generate a SQL query to answer the following question:
`What is the long value for the year with an average/game of 160.9?`

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

CREATE TABLE "college" (
  "season" text,
  "gp_gs" text,
  "comp_att" text,
  "pct" text,
  "yards" text,
  "long" text,
  "avg_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the long value for the year with an average/game of 160.9?`:
```sql
                SELECT "long" FROM "college" WHERE "avg_g"='160.9';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance of February 7, 2009 and more than 49 points?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest attendance of February 7, 2009 and more than 49 points?`:
```sql
                SELECT MAX("attendance") FROM "game_log" WHERE "date"='february 7, 2009' AND "points">49;
```
## Task
Generate a SQL query to answer the following question:
`Which game has a number lower than 57 and more than 50 points?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which game has a number lower than 57 and more than 50 points?`:
```sql
                SELECT "location" FROM "game_log" WHERE "game"<57 AND "points">50;
```
## Task
Generate a SQL query to answer the following question:
`What game  in February 10, 2009 has the most points and a game number larger than 54?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What game  in February 10, 2009 has the most points and a game number larger than 54?`:
```sql
                SELECT MAX("points") FROM "game_log" WHERE "date"='february 10, 2009' AND "game">54;
```
## Task
Generate a SQL query to answer the following question:
`What's the opponent's venue result when the opponent is tennessee?`

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

CREATE TABLE "record_vs_sec_opponents" (
  "missouri_vs" text,
  "overall_record" text,
  "at_columbia" text,
  "at_opponent_s_venue" text,
  "at_neutral_site" text,
  "last_5_meetings" text,
  "last_10_meetings" text,
  "current_streak" text,
  "since_joining_sec" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the opponent's venue result when the opponent is tennessee?`:
```sql
                SELECT "at_opponent_s_venue" FROM "record_vs_sec_opponents" WHERE "missouri_vs"='tennessee';
```