cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the method used when the time was 4:52?`

### 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 was the method used when the time was 4:52?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='4:52';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when the time was 4:15?`

### 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 was the result when the time was 4:15?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "time"='4:15';
```
## Task
Generate a SQL query to answer the following question:
`Which NHL team chose an American player from the United States Hockey League?`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "nhl_team" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which NHL team chose an American player from the United States Hockey League?`:
```sql
                SELECT "nhl_team" FROM "round_four" WHERE "nationality"='united states' AND "league_from"='united states hockey league';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of player Jani Hakanpaa?`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "nhl_team" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of player Jani Hakanpaa?`:
```sql
                SELECT "nationality" FROM "round_four" WHERE "player"='jani hakanpaa';
```
## Task
Generate a SQL query to answer the following question:
`From which league is the player chosen by the Atlanta Thrashers (from Dallas) 6?`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "nhl_team" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `From which league is the player chosen by the Atlanta Thrashers (from Dallas) 6?`:
```sql
                SELECT "league_from" FROM "round_four" WHERE "nhl_team"='atlanta thrashers (from dallas) 6';
```
## Task
Generate a SQL query to answer the following question:
`What median family income has a population greater than 93,643, with cleveland as the county?`

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

CREATE TABLE "north_carolina_counties_ranked_by_per_ca" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What median family income has a population greater than 93,643, with cleveland as the county?`:
```sql
                SELECT "median_family_income" FROM "north_carolina_counties_ranked_by_per_ca" WHERE "population">'93,643' AND "county"='cleveland';
```
## Task
Generate a SQL query to answer the following question:
`How many households have yadkin as the county?`

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

CREATE TABLE "north_carolina_counties_ranked_by_per_ca" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many households have yadkin as the county?`:
```sql
                SELECT "number_of_households" FROM "north_carolina_counties_ranked_by_per_ca" WHERE "county"='yadkin';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest pick for a year after 2010, and a round smaller than 1?`

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

CREATE TABLE "team_players_drafted_into_the_nba" (
  "year" real,
  "round" real,
  "pick" real,
  "player" text,
  "nba_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest pick for a year after 2010, and a round smaller than 1?`:
```sql
                SELECT MAX("pick") FROM "team_players_drafted_into_the_nba" WHERE "year">2010 AND "round"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest pick for a year after 2010 and a round larger than 1?`

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

CREATE TABLE "team_players_drafted_into_the_nba" (
  "year" real,
  "round" real,
  "pick" real,
  "player" text,
  "nba_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest pick for a year after 2010 and a round larger than 1?`:
```sql
                SELECT MAX("pick") FROM "team_players_drafted_into_the_nba" WHERE "year">2010 AND "round">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum for the pick of the year 2009, and a round smaller than 2 and an NBA Club Denver Nuggets?`

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

CREATE TABLE "team_players_drafted_into_the_nba" (
  "year" real,
  "round" real,
  "pick" real,
  "player" text,
  "nba_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum for the pick of the year 2009, and a round smaller than 2 and an NBA Club Denver Nuggets?`:
```sql
                SELECT SUM("pick") FROM "team_players_drafted_into_the_nba" WHERE "year"=2009 AND "round"<2 AND "nba_club"='denver nuggets';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the total number of Total that has the First round of 0, and the Finals smaller than 5?`

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

CREATE TABLE "numbers_of_moments_by_decades" (
  "first_round" text,
  "semifinals" real,
  "conference_finals" real,
  "finals" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the total number of Total that has the First round of 0, and the Finals smaller than 5?`:
```sql
                SELECT COUNT("total") FROM "numbers_of_moments_by_decades" WHERE "first_round"='0' AND "finals"<5;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the average Conference Finals that has Finals smaller than 5?`

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

CREATE TABLE "numbers_of_moments_by_decades" (
  "first_round" text,
  "semifinals" real,
  "conference_finals" real,
  "finals" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the average Conference Finals that has Finals smaller than 5?`:
```sql
                SELECT AVG("conference_finals") FROM "numbers_of_moments_by_decades" WHERE "finals"<5;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Finals that has the Conference Finals smaller than 12, and the Semifinals of 0, and the Total of 3?`

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

CREATE TABLE "numbers_of_moments_by_decades" (
  "first_round" text,
  "semifinals" real,
  "conference_finals" real,
  "finals" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Finals that has the Conference Finals smaller than 12, and the Semifinals of 0, and the Total of 3?`:
```sql
                SELECT "finals" FROM "numbers_of_moments_by_decades" WHERE "conference_finals"<12 AND "semifinals"=0 AND "total"=3;
```
## Task
Generate a SQL query to answer the following question:
`What's the sum of the headcounts that have an n/a value of $60k to $70K?`

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

CREATE TABLE "faculty_and_staff" (
  "data" text,
  "headcount" real,
  "percent_of_total" text,
  "less_than_25_000" text,
  "25_000_to_40_000" text,
  "40_000_to_50_000" text,
  "50_000_to_60_000" text,
  "60_000_to_70_000" text,
  "70_000_to_80_000" text,
  "more_than_80_000" text,
  "mean" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of the headcounts that have an n/a value of $60k to $70K?`:
```sql
                SELECT SUM("headcount") FROM "faculty_and_staff" WHERE "60_000_to_70_000"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`What's the mean of the $70-80k ones that have 2.80%?`

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

CREATE TABLE "faculty_and_staff" (
  "data" text,
  "headcount" real,
  "percent_of_total" text,
  "less_than_25_000" text,
  "25_000_to_40_000" text,
  "40_000_to_50_000" text,
  "50_000_to_60_000" text,
  "60_000_to_70_000" text,
  "70_000_to_80_000" text,
  "more_than_80_000" text,
  "mean" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the mean of the $70-80k ones that have 2.80%?`:
```sql
                SELECT "mean" FROM "faculty_and_staff" WHERE "70_000_to_80_000"='2.80%';
```
## Task
Generate a SQL query to answer the following question:
`Which have more than $80k and a total percent of 2.2%?`

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

CREATE TABLE "faculty_and_staff" (
  "data" text,
  "headcount" real,
  "percent_of_total" text,
  "less_than_25_000" text,
  "25_000_to_40_000" text,
  "40_000_to_50_000" text,
  "50_000_to_60_000" text,
  "60_000_to_70_000" text,
  "70_000_to_80_000" text,
  "more_than_80_000" text,
  "mean" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which have more than $80k and a total percent of 2.2%?`:
```sql
                SELECT "more_than_80_000" FROM "faculty_and_staff" WHERE "percent_of_total"='2.2%';
```
## Task
Generate a SQL query to answer the following question:
`What's the total percent of the $40-50K ones that have n/a?`

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

CREATE TABLE "faculty_and_staff" (
  "data" text,
  "headcount" real,
  "percent_of_total" text,
  "less_than_25_000" text,
  "25_000_to_40_000" text,
  "40_000_to_50_000" text,
  "50_000_to_60_000" text,
  "60_000_to_70_000" text,
  "70_000_to_80_000" text,
  "more_than_80_000" text,
  "mean" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total percent of the $40-50K ones that have n/a?`:
```sql
                SELECT "percent_of_total" FROM "faculty_and_staff" WHERE "40_000_to_50_000"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`Which Label has a Country of canada, and a Format of cd/digital download?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Label has a Country of canada, and a Format of cd/digital download?`:
```sql
                SELECT "label" FROM "release_history" WHERE "country"='canada' AND "format"='cd/digital download';
```
## Task
Generate a SQL query to answer the following question:
`Which Format has a Date of 14 october 2008, and a Label of eagle eye media?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Format has a Date of 14 october 2008, and a Label of eagle eye media?`:
```sql
                SELECT "format" FROM "release_history" WHERE "date"='14 october 2008' AND "label"='eagle eye media';
```
## Task
Generate a SQL query to answer the following question:
`Which Label has a Country of united kingdom, a Date of 22 september 2008, and a Catalogue number(s) of eredv711?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Label has a Country of united kingdom, a Date of 22 september 2008, and a Catalogue number(s) of eredv711?`:
```sql
                SELECT "label" FROM "release_history" WHERE "country"='united kingdom' AND "date"='22 september 2008' AND "catalogue_number_s"='eredv711';
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a Catalogue number(s) of eredv711?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Catalogue number(s) of eredv711?`:
```sql
                SELECT "country" FROM "release_history" WHERE "catalogue_number_s"='eredv711';
```
## Task
Generate a SQL query to answer the following question:
`Which Format has a Label of eagle eye media, a Catalogue number(s) of —, and a Country of united states?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Format has a Label of eagle eye media, a Catalogue number(s) of —, and a Country of united states?`:
```sql
                SELECT "format" FROM "release_history" WHERE "label"='eagle eye media' AND "catalogue_number_s"='—' AND "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`Which Format has a Label of eagle records, and a Catalogue number(s) of edgcd391?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Format has a Label of eagle records, and a Catalogue number(s) of edgcd391?`:
```sql
                SELECT "format" FROM "release_history" WHERE "label"='eagle records' AND "catalogue_number_s"='edgcd391';
```
## Task
Generate a SQL query to answer the following question:
`What is the Height of the Player with a Date of Birth of 1978-02-16?`

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

CREATE TABLE "greece" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height of the Player with a Date of Birth of 1978-02-16?`:
```sql
                SELECT "height" FROM "greece" WHERE "date_of_birth"='1978-02-16';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of the D Player born on 1983-07-19?`

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

CREATE TABLE "greece" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of the D Player born on 1983-07-19?`:
```sql
                SELECT "name" FROM "greece" WHERE "pos"='d' AND "date_of_birth"='1983-07-19';
```
## Task
Generate a SQL query to answer the following question:
`What is Eftychia Karagianni Pos.?`

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

CREATE TABLE "greece" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Eftychia Karagianni Pos.?`:
```sql
                SELECT "pos" FROM "greece" WHERE "name"='eftychia karagianni';
```
## Task
Generate a SQL query to answer the following question:
`What is the track that from lcd soundsystem?`

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

CREATE TABLE "main_songlist" (
  "track" real,
  "song_title" text,
  "artist" text,
  "album" text,
  "legends_track" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the track that from lcd soundsystem?`:
```sql
                SELECT "track" FROM "main_songlist" WHERE "artist"='lcd soundsystem';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of UEFA Cup(s), when Total is greater than 3?`

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

CREATE TABLE "most_appearances" (
  "player" text,
  "position" text,
  "ekstraklasa" real,
  "polish_cup" real,
  "uefa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of UEFA Cup(s), when Total is greater than 3?`:
```sql
                SELECT COUNT("uefa_cup") FROM "most_appearances" WHERE "total">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Polish Cup, when Position is "Midfielder", when Player is "Miroslav Radović", and when Ekstraklasa is less than 1?`

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

CREATE TABLE "most_appearances" (
  "player" text,
  "position" text,
  "ekstraklasa" real,
  "polish_cup" real,
  "uefa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Polish Cup, when Position is "Midfielder", when Player is "Miroslav Radović", and when Ekstraklasa is less than 1?`:
```sql
                SELECT MIN("polish_cup") FROM "most_appearances" WHERE "position"='midfielder' AND "player"='miroslav radović' AND "ekstraklasa"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Polish Cup, when Player is "Maciej Iwański", and when Ekstraklasa is less than 1?`

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

CREATE TABLE "most_appearances" (
  "player" text,
  "position" text,
  "ekstraklasa" real,
  "polish_cup" real,
  "uefa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Polish Cup, when Player is "Maciej Iwański", and when Ekstraklasa is less than 1?`:
```sql
                SELECT SUM("polish_cup") FROM "most_appearances" WHERE "player"='maciej iwański' AND "ekstraklasa"<1;
```
## Task
Generate a SQL query to answer the following question:
`What Election has a 2nd Member of frederick knight, and a 1st Member of sir edmund lechmere, bt?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Election has a 2nd Member of frederick knight, and a 1st Member of sir edmund lechmere, bt?`:
```sql
                SELECT "election" FROM "m_ps_1832_1885" WHERE "2nd_member"='frederick knight' AND "1st_member"='sir edmund lechmere, bt';
```
## Task
Generate a SQL query to answer the following question:
`What 2nd Member has a 1st Party of conservative, and a 1st Member of william edward dowdeswell?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2nd Member has a 1st Party of conservative, and a 1st Member of william edward dowdeswell?`:
```sql
                SELECT "2nd_member" FROM "m_ps_1832_1885" WHERE "1st_party"='conservative' AND "1st_member"='william edward dowdeswell';
```
## Task
Generate a SQL query to answer the following question:
`What 2nd Party has an Election of 1885?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2nd Party has an Election of 1885?`:
```sql
                SELECT "2nd_party" FROM "m_ps_1832_1885" WHERE "election"='1885';
```
## Task
Generate a SQL query to answer the following question:
`What 2nd Party has an Election of 1834?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2nd Party has an Election of 1834?`:
```sql
                SELECT "2nd_party" FROM "m_ps_1832_1885" WHERE "election"='1834';
```
## Task
Generate a SQL query to answer the following question:
`What 2nd Member has a 2nd Party of conservative, and an Election of 1853 by-election?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2nd Member has a 2nd Party of conservative, and an Election of 1853 by-election?`:
```sql
                SELECT "2nd_member" FROM "m_ps_1832_1885" WHERE "2nd_party"='conservative' AND "election"='1853 by-election';
```
## Task
Generate a SQL query to answer the following question:
`What 2nd Member has an Election of 1833 by-election?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "1st_member" text,
  "1st_party" text,
  "2nd_member" text,
  "2nd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2nd Member has an Election of 1833 by-election?`:
```sql
                SELECT "2nd_member" FROM "m_ps_1832_1885" WHERE "election"='1833 by-election';
```
## Task
Generate a SQL query to answer the following question:
`Golfer Steve Pate has what To par?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Golfer Steve Pate has what To par?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "player"='steve pate';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when they played the Boston Patriots?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when they played the Boston Patriots?`:
```sql
                SELECT "result" FROM "regular_season" WHERE "opponent"='boston patriots';
```
## Task
Generate a SQL query to answer the following question:
`How many apps for the rank of 8 in the 2012/13 season?`

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

CREATE TABLE "most_goals_in_a_la_liga_season_at_least_" (
  "rank" real,
  "name" text,
  "season" text,
  "club" text,
  "goals" real,
  "apps" real,
  "goals_per_match" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many apps for the rank of 8 in the 2012/13 season?`:
```sql
                SELECT MAX("apps") FROM "most_goals_in_a_la_liga_season_at_least_" WHERE "rank"=8 AND "season"='2012/13';
```
## Task
Generate a SQL query to answer the following question:
`How many goals per match when the player has more than 33 goals and more than 38 apps?`

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

CREATE TABLE "most_goals_in_a_la_liga_season_at_least_" (
  "rank" real,
  "name" text,
  "season" text,
  "club" text,
  "goals" real,
  "apps" real,
  "goals_per_match" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals per match when the player has more than 33 goals and more than 38 apps?`:
```sql
                SELECT COUNT("goals_per_match") FROM "most_goals_in_a_la_liga_season_at_least_" WHERE "goals">33 AND "apps">38;
```
## Task
Generate a SQL query to answer the following question:
`What was the score when Nacional was the champion, River Plate was the runner-up, and the venue was Centenario?`

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

CREATE TABLE "finals" (
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text,
  "city" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Nacional was the champion, River Plate was the runner-up, and the venue was Centenario?`:
```sql
                SELECT "score" FROM "finals" WHERE "champion"='nacional' AND "venue"='centenario' AND "runner_up"='river plate';
```
## Task
Generate a SQL query to answer the following question:
`Who was the champion when atlético wanderers was the runner-up?`

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

CREATE TABLE "finals" (
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text,
  "city" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the champion when atlético wanderers was the runner-up?`:
```sql
                SELECT "champion" FROM "finals" WHERE "runner_up"='atlético wanderers';
```
## Task
Generate a SQL query to answer the following question:
`In which city is the San Lorenzo Centenario venue located?`

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

CREATE TABLE "finals" (
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text,
  "city" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which city is the San Lorenzo Centenario venue located?`:
```sql
                SELECT "city" FROM "finals" WHERE "venue"='san lorenzo centenario';
```
## Task
Generate a SQL query to answer the following question:
`The game played 31 May 2010 was played on what surface?`

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

CREATE TABLE "singles_finals_9_4_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `The game played 31 May 2010 was played on what surface?`:
```sql
                SELECT "surface" FROM "singles_finals_9_4_5" WHERE "date"='31 may 2010';
```
## Task
Generate a SQL query to answer the following question:
`What tournament was played 16 September 2012?`

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

CREATE TABLE "singles_finals_9_4_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament was played 16 September 2012?`:
```sql
                SELECT "tournament" FROM "singles_finals_9_4_5" WHERE "date"='16 september 2012';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game played 26 July 2010?`

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

CREATE TABLE "singles_finals_9_4_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game played 26 July 2010?`:
```sql
                SELECT "score" FROM "singles_finals_9_4_5" WHERE "date"='26 july 2010';
```
## Task
Generate a SQL query to answer the following question:
`The match against Paul-Henri Mathieu had what outcome?`

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

CREATE TABLE "singles_finals_9_4_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `The match against Paul-Henri Mathieu had what outcome?`:
```sql
                SELECT "outcome" FROM "singles_finals_9_4_5" WHERE "opponent"='paul-henri mathieu';
```
## Task
Generate a SQL query to answer the following question:
`What is South Africa's 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 `What is South Africa's to par?`:
```sql
                SELECT "to_par" FROM "made_the_cut" WHERE "country"='south africa';
```
## Task
Generate a SQL query to answer the following question:
`Who had a finish of t20?`

### 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 `Who had a finish of t20?`:
```sql
                SELECT "player" FROM "made_the_cut" WHERE "finish"='t20';
```
## Task
Generate a SQL query to answer the following question:
`What is the average pjehun measured by female enrollment?`

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

CREATE TABLE "primary_education_statistics_by_district" (
  "measure" text,
  "bombali" real,
  "bonthe" real,
  "kailahun" real,
  "kambia" text,
  "kenema" real,
  "koinadugu" real,
  "kono" real,
  "moyamba" text,
  "port_loko" text,
  "pujehun" real,
  "tonkolili" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average pjehun measured by female enrollment?`:
```sql
                SELECT AVG("pujehun") FROM "primary_education_statistics_by_district" WHERE "measure"='female enrollment';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest pjuehun with a kenema greater than 559, a kambia of 45,653, and a tonkolili greater than 113,926?`

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

CREATE TABLE "primary_education_statistics_by_district" (
  "measure" text,
  "bombali" real,
  "bonthe" real,
  "kailahun" real,
  "kambia" text,
  "kenema" real,
  "koinadugu" real,
  "kono" real,
  "moyamba" text,
  "port_loko" text,
  "pujehun" real,
  "tonkolili" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest pjuehun with a kenema greater than 559, a kambia of 45,653, and a tonkolili greater than 113,926?`:
```sql
                SELECT MAX("pujehun") FROM "primary_education_statistics_by_district" WHERE "kenema">559 AND "kambia"='45,653' AND "tonkolili">'113,926';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the kono with a bonthe greater than 21,238?`

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

CREATE TABLE "primary_education_statistics_by_district" (
  "measure" text,
  "bombali" real,
  "bonthe" real,
  "kailahun" real,
  "kambia" text,
  "kenema" real,
  "koinadugu" real,
  "kono" real,
  "moyamba" text,
  "port_loko" text,
  "pujehun" real,
  "tonkolili" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the kono with a bonthe greater than 21,238?`:
```sql
                SELECT SUM("kono") FROM "primary_education_statistics_by_district" WHERE "bonthe">'21,238';
```
## Task
Generate a SQL query to answer the following question:
`What party is the person who was first elected in 2000 and was re-elected?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party is the person who was first elected in 2000 and was re-elected?`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "results"='re-elected' AND "first_elected"=2000;
```
## Task
Generate a SQL query to answer the following question:
`Which report has a Set 3 value of 21–25?`

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

CREATE TABLE "nagano_round" (
  "date" text,
  "time" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which report has a Set 3 value of 21–25?`:
```sql
                SELECT "report" FROM "nagano_round" WHERE "set_3"='21–25';
```
## Task
Generate a SQL query to answer the following question:
`What was the Time when Set 3 was 25–14?`

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

CREATE TABLE "nagano_round" (
  "date" text,
  "time" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Time when Set 3 was 25–14?`:
```sql
                SELECT "time" FROM "nagano_round" WHERE "set_3"='25–14';
```
## Task
Generate a SQL query to answer the following question:
`When was there a Time of 18:00, and a Set 1 of 22–25?`

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

CREATE TABLE "nagano_round" (
  "date" text,
  "time" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was there a Time of 18:00, and a Set 1 of 22–25?`:
```sql
                SELECT "date" FROM "nagano_round" WHERE "time"='18:00' AND "set_1"='22–25';
```
## Task
Generate a SQL query to answer the following question:
`How many Totals have a CONCACAF of 0, and an MLS Cup smaller than 6?`

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

CREATE TABLE "most_appearances" (
  "name" text,
  "years" text,
  "mls_cup" real,
  "u_s_open_cup" real,
  "concacaf" real,
  "other" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Totals have a CONCACAF of 0, and an MLS Cup smaller than 6?`:
```sql
                SELECT COUNT("total") FROM "most_appearances" WHERE "concacaf"=0 AND "mls_cup"<6;
```
## Task
Generate a SQL query to answer the following question:
`Which MLS Cup has another larger than 9, and a Total smaller than 72?`

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

CREATE TABLE "most_appearances" (
  "name" text,
  "years" text,
  "mls_cup" real,
  "u_s_open_cup" real,
  "concacaf" real,
  "other" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which MLS Cup has another larger than 9, and a Total smaller than 72?`:
```sql
                SELECT AVG("mls_cup") FROM "most_appearances" WHERE "other">9 AND "total"<72;
```
## Task
Generate a SQL query to answer the following question:
`What year has a not nominated result and a nomination title of "the color of fame"?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "original_title" text,
  "film_title_used_in_nomination" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year has a not nominated result and a nomination title of "the color of fame"?`:
```sql
                SELECT "year_ceremony" FROM "submissions" WHERE "result"='not nominated' AND "film_title_used_in_nomination"='the color of fame';
```
## Task
Generate a SQL query to answer the following question:
`What's the original title of the nomination title, "brecha en el silencio"?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "original_title" text,
  "film_title_used_in_nomination" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the original title of the nomination title, "brecha en el silencio"?`:
```sql
                SELECT "original_title" FROM "submissions" WHERE "film_title_used_in_nomination"='brecha en el silencio';
```
## Task
Generate a SQL query to answer the following question:
`What year has a nomination title of "sangrador"?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "original_title" text,
  "film_title_used_in_nomination" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year has a nomination title of "sangrador"?`:
```sql
                SELECT "year_ceremony" FROM "submissions" WHERE "film_title_used_in_nomination"='sangrador';
```
## Task
Generate a SQL query to answer the following question:
`What year has a original title of "el tinte de la fama"?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "original_title" text,
  "film_title_used_in_nomination" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year has a original title of "el tinte de la fama"?`:
```sql
                SELECT "year_ceremony" FROM "submissions" WHERE "original_title"='el tinte de la fama';
```
## Task
Generate a SQL query to answer the following question:
`What's the result for director elia schneider's punto y raya?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "original_title" text,
  "film_title_used_in_nomination" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the result for director elia schneider's punto y raya?`:
```sql
                SELECT "result" FROM "submissions" WHERE "director"='elia schneider' AND "film_title_used_in_nomination"='punto y raya';
```
## Task
Generate a SQL query to answer the following question:
`What is the score points when the total is 20?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score points when the total is 20?`:
```sql
                SELECT "score_points" FROM "qualification" WHERE "total"='20';
```
## Task
Generate a SQL query to answer the following question:
`What is the score points in WC Kerrville, when rank was points of 8?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score points in WC Kerrville, when rank was points of 8?`:
```sql
                SELECT "score_points" FROM "qualification" WHERE "event"='wc kerrville' AND "rank_points"='8';
```
## Task
Generate a SQL query to answer the following question:
`What is the score points when the total is 16?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score points when the total is 16?`:
```sql
                SELECT "score_points" FROM "qualification" WHERE "total"='16';
```
## Task
Generate a SQL query to answer the following question:
`What is the score points when the rank points is 3?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score points when the rank points is 3?`:
```sql
                SELECT "score_points" FROM "qualification" WHERE "rank_points"='3';
```
## Task
Generate a SQL query to answer the following question:
`What is the total when the score points show Olympic bronze medalist?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total when the score points show Olympic bronze medalist?`:
```sql
                SELECT "total" FROM "qualification" WHERE "score_points"='olympic bronze medalist';
```
## Task
Generate a SQL query to answer the following question:
`What Winning constructor has a Circuit of lasarte?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Winning constructor has a Circuit of lasarte?`:
```sql
                SELECT "winning_constructor" FROM "other_grands_prix" WHERE "circuit"='lasarte';
```
## Task
Generate a SQL query to answer the following question:
`What Date has a Winning driver of ugo sivocci?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Date has a Winning driver of ugo sivocci?`:
```sql
                SELECT "date" FROM "other_grands_prix" WHERE "winning_driver"='ugo sivocci';
```
## Task
Generate a SQL query to answer the following question:
`What Report has a Winning driver of mario razzauti?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Report has a Winning driver of mario razzauti?`:
```sql
                SELECT "report" FROM "other_grands_prix" WHERE "winning_driver"='mario razzauti';
```
## Task
Generate a SQL query to answer the following question:
`What Date has a Circuit of cremona?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Date has a Circuit of cremona?`:
```sql
                SELECT "date" FROM "other_grands_prix" WHERE "circuit"='cremona';
```
## Task
Generate a SQL query to answer the following question:
`What Name has a Winning constructor of ansaldo?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Name has a Winning constructor of ansaldo?`:
```sql
                SELECT "name" FROM "other_grands_prix" WHERE "winning_constructor"='ansaldo';
```
## Task
Generate a SQL query to answer the following question:
`What Winning driver has a Winning constructor of sunbeam?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Winning driver has a Winning constructor of sunbeam?`:
```sql
                SELECT "winning_driver" FROM "other_grands_prix" WHERE "winning_constructor"='sunbeam';
```
## Task
Generate a SQL query to answer the following question:
`What is the average total for 0 bronze?`

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

CREATE TABLE "medals_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 total for 0 bronze?`:
```sql
                SELECT AVG("total") FROM "medals_table" WHERE "bronze"<0;
```